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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Pd,WRC,OmW,OU,yG,JmC,j8,QG,Cm,EU,BSA,nWW,gS,ym7,KRo,hm,SUo,m7o,V8R,yZ,jom,Qox,Amm,EWd,gWm,pM,Aw,gk,Mb,wdA,$i,hxU,wk,cm,fM,exC,TA,ip,aAU,XdW,fAm,Wy,lAm,x4,TSU,J9,NSx,By,rmx,FR7,PpA,DB,xbG,I3S,OMG,Jw7,BkU,gM,qUC,zd,LRW,WPo,Scm,dbR,sWR,cy,viS,mbx,VzR,tzm,jWR,QWx,zd8,rM,gim,Mzm,wmS,cwd,a3U,qL,IK,bMS,NkR,BZ,l3W,RdR,rwo,yc,iMC,nx,pmt,S$,uI,dD,ZS,si,LPd,FPd,qc8,px,WOx,P3A,xLm,O2m,IB7,gD,J9R,BMd,Vc,Yvm,y9m,wD,Z2U,dLm,e$,tmx,o4R,pym,jGd,QGd,g4G,zQR,Ui,fx,Mmo,wyt,hQC,aBR,fB8,FOm,PIo,nTU,B6,y2R,ZxG,Kz,o$,
S5,d9,s0,AH,GI,E0,m5G,H6,t$R,QKC,NE,l5,A2S,r9,R$,FV,qE,Gk7,ETG,gTo,D58,M$d,$5S,wZo,hXU,HxS,c28,It,xD,aSx,bxR,kkU,XZC,U5d,fSA,Zu,lSm,ot,Su,d_,sT,mJ,r2C,Vn,RXS,P5C,Qn,xEU,IHm,Ozm,Ao,JHS,B9R,zE,GE,yHS,g_,oHd,S0U,Du,dEW,uVS,s$W,vHR,mEU,V5t,w_,t57,p6x,ho,j$C,Q$W,Hr,eu,cr,at,C5S,z5W,AHR,bt,EHt,gHm,DEC,UT,fl,Ni,lt,r_,Rt,Fb,M57,$Em,w6m,h5G,Hzm,e5o,cHG,aH8,bzm,kIm,UEU,Ll,X6x,fHR,xK,N9o,Oh,Jl,lHt,izR,R5G,Fyt,Lym,WJR,PtR,JoA,B_o,nDG,YT8,yom,KJC,Zlm,di8,YK,stC,vDA,miA,VuR,tuA,pr8,QtR,Hlo,eY7,cod,bld,kEm,sh,UiU,
v9,T_o,roS,ilm,RYU,FJU,qTR,LJx,WYt,Q7,xTS,N_t,ICt,O5m,Jlo,BJm,nK7,Yh7,ylm,KYC,Z5o,uPS,Sh8,vKR,dTC,sQx,tUt,p9C,jQR,mTo,Czd,VUR,z6U,aQ,GDR,bz,Uh,EKo,DTW,MU7,h6C,NJm,e67,H5C,aCG,kD7,clG,FYo,rlW,qhR,LYW,Wxt,PZt,xpU,OUt,IVU,Bvm,njA,YWo,yzR,ZUS,SWt,uJS,dpG,vjU,sEd,gjA,lz,DpR,$pC,wnW,hIC,HUm,eIm,aVx,bU8,kFU,Wn,Pn,Upd,rzU,OW,Jz,qW8,W9d,K9S,Vjm,yk,jCt,flG,C_A,Ago,uZ,N1R,llS,rg8,i48,R_x,F98,qwm,L9C,Wkm,xRR,I$U,JQA,OXW,YVR,Qk,zF,Kkm,ZXt,o$8,SVA,uYC,dRG,v$t,VLx,mRS,kj,XJ,g$R,fU,lZ,woS,TF,hiS,HXW,rv,cQt,eim,Tom,
rQ8,Ri8,Lko,WWS,xM8,I8G,Ojm,BOS,Yy7,yYA,WJ,SyS,s6W,vOW,mMm,VBG,tBS,dMm,oOC,Zjt,Ow,KW8,pid,Q6R,AYC,EOt,zMW,n4,DMS,$MR,wiW,hM7,Hjm,Zl,eMS,a8W,cY7,bjS,UMU,u_,RMR,qyG,WpC,xtx,IqG,J0o,VU,p4,tg,y0t,ODC,Kpm,Ag,uGR,Ew,g1,vNm,tVx,jDW,QDR,CEx,Dl,A0G,zhm,GrA,gNS,Dto,MVt,$tx,hhR,$V,HDt,eh7,hg,cJ,bDo,krd,Utx,b_,N3o,lqm,r0W,TB,WnU,Psx,xlx,IwC,Oam,L4,Wo,Po,x$,nMU,OV,YAA,yyC,Knm,ZaS,SAA,uLW,oMt,Bo,dld,VoR,nX,ml7,tod,sR8,pBC,ya,QRx,Cso,Ayd,zUt,EMx,G$G,gMC,$lG,Dl8,hU7,k$R,XBU,NeW,TeR,RUm,iaS,ryo,Fnd,Ln7,PVU,Whd,x18,
OJW,JCt,pX,yCt,CX,oQW,ZJ7,SSt,zO,GO,umm,EV,d1W,vQo,VkU,jhx,CVd,QhU,ro,AC8,m18,$1o,wfW,hym,LX,HJd,cCR,kYG,fNW,XfR,rCR,iJo,Rym,Fh7,Lhm,Ofm,W1m,xVm,It7,J1d,BUS,Y_S,naG,K18,y1t,o6,ZfU,S_d,uuR,mVR,tY,pj,Vn7,tnS,jB,COG,zM,GM,Ey,Eam,gO,Mnt,$O,$Vx,wVd,h3G,HfC,Hi,e3S,atm,bfC,UVo,ftd,TU8,ifo,NM,R3R,F1U,q_W,L1R,WZx,PBR,xUG,IEx,rO,Bwo,n6t,YLG,ynS,KZU,ZKd,o6U,SLG,uBm,dUS,suo,v6R,mUU,xN,DUm,MIC,ID,Oz,J0,$Ux,w7S,hSA,HKm,eSG,cnW,aEU,fER,NwG,lER,Tw7,rnU,yd,Zq,oD,d3,Vd,t0,pD,RSo,Qd,qLU,CD,LZR,WBG,A0,PxR,xBt,I5W,ozx,
ueo,Vl8,QYx,jYA,SnG,Cxx,GKm,UBR,wuC,TEW,HRS,l58,rb7,Mt,Rp8,w3,qnm,LB8,PSW,xam,IzR,Jqd,eV,n3W,Yoo,yqA,K77,ZLS,o3R,SoR,BTm,sfW,v3m,ma8,aD,CSG,AqA,QfA,G1R,E3m,DaS,M9R,g38,azo,k1m,X5t,NTm,iE,F77,Rkd,xnG,O_S,JER,BY7,nlA,YZA,yEW,BB,mnt,tdG,s7S,dnR,Vdm,Z_o,j7G,wMR,AE7,zo8,GnU,feR,leR,XMm,qZm,Unt,KrR,Frx,Cw8,$nR,NYW,pMC,SZU,olU,u4R,vlS,knS,jo,S2R,dgU,sxS,vYG,mgt,GmG,wWG,hVo,HB,eV8,btR,f1R,XWG,l1W,Tcm,RVR,itC,FTm,WQA,LTR,ls,PhG,xxG,OES,IhR,T$,KQW,ydR,Y4o,u_m,ZEA,dx7,S4o,sPW,is,vCR,pFm,Vy8,tyW,QPR,ChA,zWA,
La,gCm,G4R,DxR,hWR,HEG,ahW,k4W,Ih,OS,NLm,lhS,JC,Bf,TLU,nJ,YQ,rdS,yD,iEo,KJ,RWS,FQR,oh,q4S,LQW,WGm,Prm,xId,OCx,IZR,Bpm,ypR,Ya8,KGm,ZCU,Jp8,osm,dIC,udd,nsR,sSU,vsG,vf,mIR,tKx,VKS,pqm,jSd,CrR,QSC,ApG,VD,GSU,Esd,z07,MKG,$Ix,wqC,cpm,kSG,lZm,R07,tC,LGA,W0A,pJ,P6R,AC,zY,nAC,QD,g7,YrS,y3S,Zot,oAm,ujC,sq8,vAG,mzR,VQd,jqd,Ga8,A3G,pO7,EAo,gA7,w7,zJR,DzA,ek,MQU,$zW,wOd,hJm,aId,HoR,c3t,XOR,fIm,iox,r3d,qrU,OPW,JMW,ncG,yMR,Kfx,oc8,SeA,u3C,szR,vcR,m$R,pXS,AMC,zuC,jzd,Ecx,D$S,gcm,Gco,M_U,wXx,huU,HPR,euW,cMA,iV,Rh,
LJ,PV,kct,U$8,fsU,Thm,xa,Ii,rMA,O_,Ffo,qe7,LfC,BV,OWm,Y18,KSA,ZWR,o5U,S1x,u0m,v57,Ya,mYU,pIW,yS,jdC,A88,zwx,GeW,C9C,wIA,ewm,hwU,c8R,keC,XId,NgU,iWR,r8m,LSA,dU,WeA,PY8,s_,xQU,vV,I9W,OdA,J6S,n_G,BNR,YF8,y6d,Keo,ZdS,mQR,tAo,j_8,px7,dQd,SFA,CYm,zRW,MAx,$QC,HdC,UQ7,f9m,pf,NNU,TNo,r6U,RRS,WzR,xmW,OAG,JW7,B0G,nfC,ofR,Y77,s1S,vfm,V3G,A1,p17,j1m,Q1U,CkC,AWt,z$R,GQR,gfd,Dmo,gU,M3C,$mA,HAm,MV,h$R,cWG,UmC,wU,X17,fGR,N0R,rWR,iAU,lGU,FzS,Pm8,xCC,Ino,bO,ObA,YPx,yVm,ff,o1G,KmA,Zbt,uqm,sp8,v1R,pLG,Cm7,Qp8,jpm,AVR,
Gud,E1G,hsU,g1A,HbR,an7,esG,NiR,rVU,RsC,qP7,nUU,yZt,KaW,uco,seA,pK,$6,jeC,z2x,AZd,EUR,gUS,M2R,D_U,$_x,wpA,ww,tlA,Qe7,GX8,CdG,DE,fK,e2C,cZR,U_C,Xpt,fgd,Nlt,lgR,Tlm,rZt,TZ,i0R,rw,R2U,Fax,qjt,LaC,FB,WsR,IRA,JhS,BQU,S87,dcm,sIx,vBW,VYC,tYm,Bu,jIG,QIR,Ce8,AhG,zKR,GPx,gBS,MYx,wzS,hKS,kPS,aRR,Ucm,NQm,lRo,Sl,TQx,rhx,iho,q8o,WwA,Lst,xKA,OTR,vu,BKo,nuA,JuC,YkR,yum,UKC,fbU,XTW,NKC,kbm,lbR,TKU,ru7,iTC,RNR,Fw8,qkS,Lwd,W48,IyU,x3R,OwS,B6t,JcR,mB,nZt,K4m,d3G,YtS,s9o,vZx,m3U,VOS,GNt,gZS,D3A,$3C,wA7,gE,ccd,U3m,fy8,
D5,rcW,T6A,iwR,wE,REm,F4R,qtR,W8S,PgC,xGG,If8,JNC,Bx8,smC,oPG,uzC,mGd,vPG,Vvm,tvm,jmt,Cgm,zlS,EPo,afm,UGo,ff8,NxC,lfW,Txm,rNC,Rlm,F88,WXt,PcS,xHx,IiR,O6C,JeA,Bbt,n9U,KXd,uU7,rE,ix,RY,Fe,dHG,W5,v9W,zTG,$Hm,DHm,i6t,RTt,FXW,VxR,Aem,jsd,q3d,LXS,WAR,E9R,xoR,Ok8,Bym,yJR,KA7,of,vXG,sMW,pUG,Cbm,zfm,EXt,gX8,$om,hfo,wUx,cJd,bkm,TyU,NyA,Uo7,lFG,XUR,rJR,qNd,CL,nyU,OBx,yxt,KIA,oyt,Smx,z1,uNR,vyx,mWG,VZm,tZx,EyW,GpR,hq,k3,HBU,eHt,Xy,cxx,axG,bBC,kp7,UWt,Xbt,fxt,NWt,lxG,TWW,rxW,iBR,RHm,FIA,qmG,fL,LIo,W3d,PRR,xfR,
IdW,O7A,JfR,BqS,nwS,Yfm,yfm,K38,lS,owG,uKm,sVd,Vg7,jVA,QVt,CRm,z9t,EwR,gw8,DfR,LL,H7G,wwR,e9m,cfo,adA,Ufd,Xw8,fdR,ldR,Sd,rfC,Ze,R9m,F3R,uw,qfR,L3C,Wlm,PWA,sZ,JTC,ntW,otm,ZrR,u7m,d0R,QL,s8S,vto,Vpo,pgo,j8W,CWm,ATd,tpR,zLd,Mpo,HrG,eLt,C_,cTW,aWS,fWx,brx,U0d,Xgt,RLm,lWm,FlC,LlW,P8U,x2U,Ivt,OOm,JLU,BCA,YB7,yLA,Kct,ZOA,oJ8,uxo,srW,VMC,Qrt,zZG,EJx,MMS,Mn,$2m,we8,hZS,HOS,eZm,avd,bOo,kiU,U27,XeG,fvm,NCm,lvU,TCS,rLU,iOA,FcR,RZt,WUd,xv8,hE,IL7,BBm,J77,ed,y7m,KUo,uvx,vnx,dv7,SJd,tX8,VXW,A7C,pax,UZ,Qvm,$vA,EnW,
gnd,Dvm,MXR,waR,Hst,hOm,X4,f_,XaR,c7S,UvW,kWA,aLR,bsm,lLt,r7t,ROA,isd,WCA,LUS,Icm,OqC,Bdm,nLm,JsG,YdU,KCA,ysC,oLo,dOG,qn,sXU,vLR,tbd,As8,Mb8,WW,wco,csS,UOm,kwU,aco,bq8,JF,TdG,fcm,NdR,rsU,RFx,iqm,LCU,Wot,xXo,IKW,OcR,Jam,BGx,YH7,yaG,vW,ZcS,VH,omx,sjR,vmm,QH,mXR,tqm,gmW,E2,C0C,EmC,AaW,ztC,wRx,htm,$XA,Hcm,etW,kvx,cam,UXd,XRR,Mg,NGU,lKS,TGt,fK7,icS,ra8,$Y,LoR,Ba7,nqx,YIA,yGo,KqS,ZId,dsG,SId,uTm,oqA,vqm,tP8,QA8,CUW,zCU,cW,Gym,Eqt,gqd,MPU,$so,wQS,hCC,HIR,eC8,aOA,Xo,bI8,XQC,UsR,NaR,fOW,lOx,TaC,rGW,ft,RC8,
n8W,JSS,KtC,ZZS,v8d,mNS,Vh8,thx,p_S,jkt,ASC,z4U,Gf8,E8R,Mho,$NG,w_x,h4G,HZt,e4U,cSW,aPm,bZU,kfU,UNt,fPx,Ntx,lPo,rSt,R47,qYR,xrm,Pot,WE7,LtU,Onm,Jko,KE,B87,n2U,Yut,ykS,o2G,KEt,SuC,Zn7,uRS,uh,drx,s0S,v2o,mrG,Vwx,Q0R,Com,Akx,E28,G2A,zjA,VB,g2G,Drd,Mwt,$rx,wsm,hjm,ejU,ckG,akS,bnW,Xs7,UrU,rkG,k2U,pE,inU,fkU,T8t,quG,WgW,JIR,Ipo,Oe7,x6U,PHG,E4,BV8,YCU,yIS,KgC,ZeU,oIC,Dh,Mx,vIR,urG,SC8,d6S,EIU,zmS,sJt,AIx,He8,emR,cIG,T4,apC,beS,kLo,fpm,lpW,rIA,RmG,FgR,qCS,x8G,Puo,Ijm,JXR,Wq,YRU,yXx,K58,Z3m,xs,IS,uXR,vG8,
QcR,Jp,G0G,EGo,gGS,D8W,MGR,wkm,H3o,hDA,eDR,cXo,b3x,k0G,U8d,XkR,fjt,Nuo,y2,i3d,ljt,KC,F5m,RDG,qRS,JAU,Bj8,xwW,P1C,OFo,IUU,ZFm,oem,SbA,ur,uiG,dwm,sFx,ve7,mwS,ptW,V47,t4x,jFx,C1d,znm,Eem,Dw8,$wG,enm,cA8,aUx,bFG,kt8,sa,Xt8,UwR,vq,fUR,lUS,Tjo,rAR,iF8,WHR,PD7,xdt,IDt,OQo,JRA,BmG,Q2,YMC,yRA,KHR,o7t,ZQm,SMR,ddR,sZC,v78,VHC,tHt,mdU,zcx,g7C,DdR,MHd,$dW,hcR,w4S,HQU,bQ7,k6U,Udo,X4d,Nmm,fDU,TmS,qMx,FHU,Wdm,PfW,xhR,nRm,YKG,ytt,KdW,dhd,u1S,SKo,mhU,t7R,V7R,pNm,ks,j2d,Q2m,ERR,GjA,gRR,DhC,$ht,wNW,eeo,ctd,aXo,bYS,kjx,
UhG,XNm,fXW,N4t,lXS,T4W,rt8,Ret,iYd,Fdd,qKU,LdC,Wjd,PN8,xkm,IYm,O8x,Brt,npW,JOU,ir,Kj7,Z8A,op8,SEU,uEU,sUR,vpG,QUd,CNC,gpU,Mr7,$kR,H8S,eqA,cOU,aYC,b8R,klR,XSt,fYt,lYt,rOt,RqW,W$G,qEC,FjG,Lj8,PKW,Oyd,xeS,ITm,Bsm,yDm,K$G,ZyR,Ssd,uQt,deC,vEt,Vso,sBC,tsx,p$8,jBm,QBS,CK8,zzm,Gxm,EEd,gEU,Mso,DeR,$e8,w$R,hzG,Hy8,ezU,cDU,aTW,byd,X$W,fTm,kxt,UeG,Tsm,RzU,F$C,YQG,OHU,ndx,yjG,BPR,YA,K28,ZHR,SQx,sHt,dqm,vdR,mqW,Ko,oq,tFC,p2G,dn,sr,Ajx,jHm,QHt,Edm,MFC,w2W,h1C,HHR,e1o,cjC,bHm,kzm,Uqm,X2S,fJ8,NPW,lJW,Vt,TP8,rjG,
po,iHm,R1d,F2d,qQG,L2x,WDo,Co,A3,PlR,xDd,za,I6d,OiC,J4S,B2G,YGW,y4W,ZiC,sLR,dDR,uZR,vgU,mDt,ClA,pCR,jLG,tiR,QLm,Er,EgR,ggA,DDd,Mi7,$DA,hbG,a6U,ebS,gn,HiU,f6t,l6o,T2S,r4W,iiC,RbC,LDd,WVS,IoR,O9G,Jid,Bzm,YOC,yim,KVG,Z9R,SOW,un8,dy7,v0A,myx,t6o,pYd,zP8,E0t,Gox,Dym,H9o,eP7,ci8,ao8,HO,cO,eQ,b9W,koS,UyR,XYt,fom,loG,TzS,riR,i9C,FV8,LVt,W_o,PaC,aq,xFC,OSU,J$8,Y9R,y$G,b6,kA,ooC,K_W,S9R,sNd,ua8,voG,Xj,VEW,tEC,QNo,A$7,fo,GUA,Eo7,got,DFC,MEU,$FW,w0R,HSo,bSR,kUm,f4W,UFt,X0m,N5o,l4G,Rrm,T5G,iSm,F_8,q9A,L_7,x9G,
IQA,O1m,JUx,BFm,oxt,Z1G,m9C,phm,xc,jyR,MaU,Qy8,C$U,z78,Exm,gxm,e7R,cUR,nP,aQR,b1R,k9m,U9R,XhR,NF8,TFS,fQt,lQt,i1m,rUC,F6t,qqd,L6x,Wbx,PTC,xPW,IrR,OvG,YpU,Zvt,yPG,ohR,SpG,ugx,KP,dPC,s4m,oz,mPW,vhR,VCW,tCt,j4d,Q4S,APW,z8W,GHm,Ehx,ghd,$PS,HvA,arC,cPR,bvG,kHS,fro,WFR,rPt,xjG,IMW,Jvd,B$C,KFS,S68,djS,u2d,vvm,mjm,VWC,tWU,p3x,j3S,CJm,GJ7,Evo,gvU,DjW,w37,$jd,cvt,aM8,bpx,kJ7,UjU,X3R,N$U,Ee,T$R,$c,ipS,FF7,q6C,Im7,J5R,y5m,ZGd,okW,uSm,dAt,sw7,mAR,tTU,pHS,C2A,zam,gkx,Ekm,GV7,az,MTC,DAA,$Am,wHo,haU,HGm,ea8,c5d,
amS,kVt,UAt,XHU,Nfm,r5C,fmC,lm8,iGG,RaR,FKo,qgU,Wid,Pyo,yBG,KiG,Z$m,orS,SDR,sbS,l4,jbW,QbU,Cyd,ABR,zgW,Tc,rh,UW,hgR,Rz,H$t,b$o,UZo,k3S,F3,X8W,fam,NDR;_.Wd=function(W,P){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Wd);else{var x=Error().stack;x&&(this.stack=x)}W&&(this.message=String(W));P!==void 0&&(this.cause=P)};
Pd=function(){throw Error("B");};
WRC=function(W,P){P=String.fromCharCode.apply(null,P);return W==null?P:W+P};
OmW=function(W){var P=!1;P=P===void 0?!1:P;if(PCW){if(P&&(x7m?!W.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(W)))throw Error("C");W=(IAt||(IAt=new TextEncoder)).encode(W)}else{for(var x=0,I=new Uint8Array(3*W.length),O=0;O<W.length;O++){var B=W.charCodeAt(O);if(B<128)I[x++]=B;else{if(B<2048)I[x++]=B>>6|192;else{if(B>=55296&&B<=57343){if(B<=56319&&O<W.length){var Y=W.charCodeAt(++O);if(Y>=56320&&Y<=57343){B=(B-55296)*1024+Y-56320+65536;I[x++]=B>>18|
240;I[x++]=B>>12&63|128;I[x++]=B>>6&63|128;I[x++]=B&63|128;continue}else O--}if(P)throw Error("C");B=65533}I[x++]=B>>12|224;I[x++]=B>>6&63|128}I[x++]=B&63|128}}W=x===I.length?I:I.subarray(0,x)}return W};
OU=function(W){_.xW.setTimeout(function(){throw W;},0)};
_.Bd=function(W,P){return W.lastIndexOf(P,0)==0};
yG=function(W,P){var x=W.length-P.length;return x>=0&&W.indexOf(P,x)==x};
_.Km=function(W){return/^[\s\xa0]*$/.test(W)};
_.ZA=function(W,P){return W.indexOf(P)!=-1};
_.S8=function(W,P){return _.ZA(W.toLowerCase(),P.toLowerCase())};
_.dS=function(W,P){var x=0;W=uC(String(W)).split(".");P=uC(String(P)).split(".");for(var I=Math.max(W.length,P.length),O=0;x==0&&O<I;O++){var B=W[O]||"",Y=P[O]||"";do{B=/(\d*)(\D*)(.*)/.exec(B)||["","","",""];Y=/(\d*)(\D*)(.*)/.exec(Y)||["","","",""];if(B[0].length==0&&Y[0].length==0)break;x=JmC(B[1].length==0?0:parseInt(B[1],10),Y[1].length==0?0:parseInt(Y[1],10))||JmC(B[2].length==0,Y[2].length==0)||JmC(B[2],Y[2]);B=B[3];Y=Y[3]}while(x==0)}return x};
JmC=function(W,P){return W<P?-1:W>P?1:0};
_.sU=function(){var W=_.xW.navigator;return W&&(W=W.userAgent)?W:""};
j8=function(W){if(!vd||!VG)return!1;for(var P=0;P<VG.brands.length;P++){var x=VG.brands[P].brand;if(x&&_.ZA(x,W))return!0}return!1};
QG=function(W){return _.ZA(_.sU(),W)};
Cm=function(){return vd?!!VG&&VG.brands.length>0:!1};
EU=function(){return Cm()?!1:QG("Opera")};
BSA=function(){return Cm()?!1:QG("Trident")||QG("MSIE")};
nWW=function(){return Cm()?j8("Microsoft Edge"):QG("Edg/")};
gS=function(){return QG("Firefox")||QG("FxiOS")};
_.M7=function(){return QG("Safari")&&!(_.DA()||(Cm()?0:QG("Coast"))||EU()||(Cm()?0:QG("Edge"))||nWW()||(Cm()?j8("Opera"):QG("OPR"))||gS()||QG("Silk")||QG("Android"))};
_.DA=function(){return Cm()?j8("Chromium"):(QG("Chrome")||QG("CriOS"))&&!(Cm()?0:QG("Edge"))||QG("Silk")};
_.YUG=function(){return QG("Android")&&!(_.DA()||gS()||EU()||QG("Silk"))};
ym7=function(W){var P={};W.forEach(function(x){P[x[0]]=x[1]});
return function(x){return P[x.find(function(I){return I in P})]||""}};
KRo=function(W){var P=_.sU();if(W==="Internet Explorer"){if(BSA())if((W=/rv: *([\d\.]*)/.exec(P))&&W[1])P=W[1];else{W="";var x=/MSIE +([\d\.]+)/.exec(P);if(x&&x[1])if(P=/Trident\/(\d.\d)/.exec(P),x[1]=="7.0")if(P&&P[1])switch(P[1]){case "4.0":W="8.0";break;case "5.0":W="9.0";break;case "6.0":W="10.0";break;case "7.0":W="11.0"}else W="7.0";else W=x[1];P=W}else P="";return P}var I=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");x=[];for(var O;O=I.exec(P);)x.push([O[1],O[2],O[3]||void 0]);
P=ym7(x);switch(W){case "Opera":if(EU())return P(["Version","Opera"]);if(Cm()?j8("Opera"):QG("OPR"))return P(["OPR"]);break;case "Microsoft Edge":if(Cm()?0:QG("Edge"))return P(["Edge"]);if(nWW())return P(["Edg"]);break;case "Chromium":if(_.DA())return P(["Chrome","CriOS","HeadlessChrome"])}return W==="Firefox"&&gS()||W==="Safari"&&_.M7()||W==="Android Browser"&&_.YUG()||W==="Silk"&&QG("Silk")?(P=x[2])&&P[1]||"":""};
_.Zmt=function(W){if(Cm()&&W!=="Silk"){var P=VG.brands.find(function(x){return x.brand===W});
if(!P||!P.version)return NaN;P=P.version.split(".")}else{P=KRo(W);if(P==="")return NaN;P=P.split(".")}return P.length===0?NaN:Number(P[0])};
hm=function(){return vd?!!VG&&!!VG.platform:!1};
_.oWW=function(){return hm()?VG.platform==="Android":QG("Android")};
SUo=function(){return QG("iPhone")&&!QG("iPod")&&!QG("iPad")};
_.Hd=function(){return SUo()||QG("iPad")||QG("iPod")};
_.utW=function(){return hm()?VG.platform==="macOS":QG("Macintosh")};
_.d7C=function(){return hm()?VG.platform==="Windows":QG("Windows")};
_.soR=function(){return hm()?VG.platform==="Chrome OS":QG("CrOS")};
_.cd=function(W){return W[W.length-1]};
_.bC=function(W,P,x){P=_.vWA(W,P,x);return P<0?null:typeof W==="string"?W.charAt(P):W[P]};
_.vWA=function(W,P,x){for(var I=W.length,O=typeof W==="string"?W.split(""):W,B=0;B<I;B++)if(B in O&&P.call(x,O[B],B,W))return B;return-1};
m7o=function(W){for(var P=_.UU,x=typeof W==="string"?W.split(""):W,I=W.length-1;I>=0;I--)if(I in x&&P.call(void 0,x[I],I,W))return I;return-1};
_.N7=function(W,P){return _.fm(W,P)>=0};
_.lC=function(W,P){_.N7(W,P)||W.push(P)};
_.Ft=function(W,P){P=_.fm(W,P);var x;(x=P>=0)&&_.TR(W,P);return x};
_.TR=function(W,P){Array.prototype.splice.call(W,P,1)};
_.Lm=function(W){var P=W.length;if(P>0){for(var x=Array(P),I=0;I<P;I++)x[I]=W[I];return x}return[]};
_.IW=function(W,P){for(var x=1;x<arguments.length;x++){var I=arguments[x];if(_.xi(I)){var O=W.length||0,B=I.length||0;W.length=O+B;for(var Y=0;Y<B;Y++)W[O+Y]=I[Y]}else W.push(I)}};
_.t8t=function(W,P,x,I){Array.prototype.splice.apply(W,V8R(arguments,1))};
V8R=function(W,P,x){return arguments.length<=2?Array.prototype.slice.call(W,P):Array.prototype.slice.call(W,P,x)};
yZ=function(W,P){P=P||W;for(var x=0,I=0,O={};I<W.length;){var B=W[I++],Y=_.Jw(B)?"o"+_.nM(B):(typeof B).charAt(0)+B;Object.prototype.hasOwnProperty.call(O,Y)||(O[Y]=!0,P[x++]=B)}P.length=x};
_.pdU=function(W,P,x){x=x||_.Z3;for(var I=0,O=W.length,B;I<O;){var Y=I+(O-I>>>1);var K=x(P,W[Y]);K>0?I=Y+1:(O=Y,B=!K)}return B?I:-I-1};
_.oW=function(W,P,x){if(!_.xi(W)||!_.xi(P)||W.length!=P.length)return!1;var I=W.length;x=x||jom;for(var O=0;O<I;O++)if(!x(W[O],P[O]))return!1;return!0};
_.Z3=function(W,P){return W>P?1:W<P?-1:0};
jom=function(W,P){return W===P};
Qox=function(W,P,x){P=Array.prototype.splice.call(W,P,1);Array.prototype.splice.call(W,x,0,P[0])};
Amm=function(W){return CCx[W]||""};
EWd=function(W){if(!zxR)return _.up(W);W=GRo.test(W)?W.replace(GRo,Amm):W;W=atob(W);for(var P=new Uint8Array(W.length),x=0;x<W.length;x++)P[x]=W.charCodeAt(x);return P};
gWm=function(W,P){W.__closure__error__context__984382||(W.__closure__error__context__984382={});W.__closure__error__context__984382.severity=P};
_.mP=function(W){W=Error(W);gWm(W,"warning");return W};
pM=function(W,P){if(W!=null){var x;var I=(x=D77)!=null?x:D77={};x=I[W]||0;x>=P||(I[W]=x+1,W=Error(),gWm(W,"incident"),OU(W))}};
Aw=function(W,P,x){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(x===void 0?0:x)&&Symbol.for&&W?Symbol.for(W):W!=null?Symbol(W):Symbol():P};
gk=function(W,P){zA||_.Ec in W||M8U(W,$77);W[_.Ec]|=P};
Mb=function(W,P){zA||_.Ec in W||M8U(W,$77);W[_.Ec]=P};
wdA=function(W){if(4&W)return 512&W?512:1024&W?1024:0};
$i=function(W){gk(W,34);return W};
hxU=function(W){gk(W,32);return W};
wk=function(){return typeof BigInt==="function"};
cm=function(W,P){return P===void 0?W.copyOnWrite!==Hm&&!!(2&(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Ec]|0)):!!(2&P)&&W.copyOnWrite!==Hm};
_.Uc=function(W,P){if(W!=null)if(typeof W==="string")W=W?new aW(W,bp):_.ki();else if(W.constructor!==aW)if(HmR&&W!=null&&W instanceof Uint8Array)W=W.length?new aW(new Uint8Array(W),bp):_.ki();else{if(!P)throw Error();W=void 0}return W};
fM=function(W,P){if(typeof P!=="number"||P<0||P>=W.length)throw Error();};
exC=function(W,P,x){P=P&128?0:-1;var I=W.length,O;if(O=!!I)O=W[I-1],O=O!=null&&typeof O==="object"&&O.constructor===Object;for(var B=I+(O?-1:0),Y=0;Y<B;Y++)x(Y-P,W[Y]);if(O){W=W[I-1];for(var K in W)!isNaN(K)&&x(+K,W[K])}};
TA=function(W){return W&128?Nb:void 0};
ip=function(W){W.isGuard_doNotManuallySetPrettyPlease=!0;return W};
aAU=function(){var W=cmR;return ip(function(P){for(var x in W)if(P===W[x]&&!/^[0-9]+$/.test(x))return!0;return!1})};
_.Fl=function(W){var P=W;if(bmt(P)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(P))throw Error(String(P));}else if(kRR(P)&&!Number.isSafeInteger(P))throw Error(String(P));return RW?BigInt(W):W=U7R(W)?W?"1":"0":bmt(W)?W.trim()||"0":String(W)};
XdW=function(W,P){if(W.length>P.length)return!1;if(W.length<P.length||W===P)return!0;for(var x=0;x<W.length;x++){var I=W[x],O=P[x];if(I>O)return!1;if(I<O)return!0}};
fAm=function(W){var P=W>>>0;qb=P;LM=(W-P)/4294967296>>>0};
Wy=function(W){if(W<0){fAm(-W);var P=_.n(NSx(qb,LM));W=P.next().value;P=P.next().value;qb=W>>>0;LM=P>>>0}else fAm(W)};
lAm=function(W,P){var x=P*4294967296+(W>>>0);return Number.isSafeInteger(x)?x:_.Py(W,P)};
x4=function(W,P){var x=P&2147483648;x&&(W=~W+1>>>0,P=~P>>>0,W==0&&(P=P+1>>>0));W=lAm(W,P);return typeof W==="number"?x?-W:W:x?"-"+W:W};
_.Py=function(W,P){P>>>=0;W>>>=0;if(P<=2097151)var x=""+(4294967296*P+W);else wk()?x=""+(BigInt(P)<<BigInt(32)|BigInt(W)):(x=(W>>>24|P<<8)&16777215,P=P>>16&65535,W=(W&16777215)+x*6777216+P*6710656,x+=P*8147497,P*=2,W>=1E7&&(x+=W/1E7>>>0,W%=1E7),x>=1E7&&(P+=x/1E7>>>0,x%=1E7),x=P+TSU(x)+TSU(W));return x};
TSU=function(W){W=String(W);return"0000000".slice(W.length)+W};
_.IG=function(W,P){P&2147483648?wk()?W=""+(BigInt(P|0)<<BigInt(32)|BigInt(W>>>0)):(P=_.n(NSx(W,P)),W=P.next().value,P=P.next().value,W="-"+_.Py(W,P)):W=_.Py(W,P);return W};
J9=function(W){if(W.length<16)Wy(Number(W));else if(wk())W=BigInt(W),qb=Number(W&BigInt(4294967295))>>>0,LM=Number(W>>BigInt(32)&BigInt(4294967295));else{var P=+(W[0]==="-");LM=qb=0;for(var x=W.length,I=P,O=(x-P)%6+P;O<=x;I=O,O+=6)I=Number(W.slice(I,O)),LM*=1E6,qb=qb*1E6+I,qb>=4294967296&&(LM+=Math.trunc(qb/4294967296),LM>>>=0,qb>>>=0);P&&(P=_.n(NSx(qb,LM)),W=P.next().value,P=P.next().value,qb=W,LM=P)}};
NSx=function(W,P){P=~P;W?W=~W+1:P+=1;return[W,P]};
By=function(W){return Array.prototype.slice.call(W)};
_.n2=function(W,P){throw Error(P===void 0?"unexpected value "+W+"!":P);};
_.Y4=function(W){if(W!=null&&typeof W!=="number")throw Error("I`"+typeof W+"`"+W);return W};
_.K2=function(W){if(W==null||typeof W==="number")return W;if(W==="NaN"||W==="Infinity"||W==="-Infinity")return Number(W)};
rmx=function(W){if(W!=null&&typeof W!=="boolean")throw Error("J`"+_.u3(W)+"`"+W);return W};
_.imS=function(W){if(W==null||typeof W==="boolean")return W;if(typeof W==="number")return!!W};
_.mO=function(W){switch(typeof W){case "bigint":return!0;case "number":return sv(W);case "string":return RxG.test(W);default:return!1}};
_.p2=function(W){if(!sv(W))throw _.mP("enum");return W|0};
_.jm=function(W){return W==null?W:sv(W)?W|0:void 0};
FR7=function(W){if(typeof W!=="number")throw _.mP("int32");if(!sv(W))throw _.mP("int32");return W|0};
_.Qf=function(W){return W==null?W:FR7(W)};
_.C2=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return sv(W)?W|0:void 0};
_.A9=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return sv(W)?W>>>0:void 0};
PpA=function(W){var P=0;P=P===void 0?0:P;if(!_.mO(W))throw _.mP("int64");var x=typeof W;switch(P){case 512:switch(x){case "string":return zd(W);case "bigint":return String(Gd(64,W));default:return qUC(W)}case 1024:switch(x){case "string":return LRW(W);case "bigint":return _.Fl(Gd(64,W));default:return WPo(W)}case 0:switch(x){case "string":return zd(W);case "bigint":return _.Fl(Gd(64,W));default:return gM(W)}default:return _.n2(P,"Unknown format requested type for int64")}};
DB=function(W){return W==null?W:PpA(W)};
xbG=function(W){if(W[0]==="-")return!1;var P=W.length;return P<20?!0:P===20&&Number(W.substring(0,6))<184467};
I3S=function(W){var P=W.length;return W[0]==="-"?P<20?!0:P===20&&Number(W.substring(0,7))>-922337:P<19?!0:P===19&&Number(W.substring(0,6))<922337};
OMG=function(W){if(W<0){Wy(W);var P=_.Py(qb,LM);W=Number(P);return ML(W)?W:P}P=String(W);if(xbG(P))return P;Wy(W);return lAm(qb,LM)};
Jw7=function(W){if(I3S(W))return W;J9(W);return _.IG(qb,LM)};
BkU=function(W){if(xbG(W))return W;J9(W);return _.Py(qb,LM)};
gM=function(W){W=wM(W);ML(W)||(Wy(W),W=x4(qb,LM));return W};
_.nim=function(W){W=wM(W);return W>=0&&ML(W)?W:OMG(W)};
qUC=function(W){W=wM(W);if(ML(W))W=String(W);else{var P=String(W);I3S(P)?W=P:(Wy(W),W=_.IG(qb,LM))}return W};
_.YcA=function(W){W=wM(W);if(W>=0&&ML(W))W=String(W);else{var P=String(W);xbG(P)?W=P:(Wy(W),W=_.Py(qb,LM))}return W};
zd=function(W){var P=wM(Number(W));if(ML(P))return String(P);P=W.indexOf(".");P!==-1&&(W=W.substring(0,P));return Jw7(W)};
LRW=function(W){var P=wM(Number(W));if(ML(P))return _.Fl(P);P=W.indexOf(".");P!==-1&&(W=W.substring(0,P));return wk()?_.Fl(Gd(64,BigInt(W))):_.Fl(Jw7(W))};
WPo=function(W){return ML(W)?_.Fl(gM(W)):_.Fl(qUC(W))};
_.ywR=function(W){return ML(W)?_.Fl(_.nim(W)):_.Fl(_.YcA(W))};
_.KPU=function(W){var P=wM(Number(W));if(ML(P)&&P>=0)return String(P);P=W.indexOf(".");P!==-1&&(W=W.substring(0,P));return BkU(W)};
_.ZMG=function(W){var P=wM(Number(W));if(ML(P)&&P>=0)return _.Fl(P);P=W.indexOf(".");P!==-1&&(W=W.substring(0,P));return wk()?_.Fl((0,_.h9)(64,BigInt(W))):_.Fl(BkU(W))};
_.oiC=function(W){if(W==null)return W;if(typeof W==="bigint")return Hy(W)?W=Number(W):(W=Gd(64,W),W=Hy(W)?Number(W):String(W)),W;if(_.mO(W))return typeof W==="number"?gM(W):zd(W)};
Scm=function(W,P){P=P===void 0?!1:P;var x=typeof W;if(W==null)return W;if(x==="bigint")return String(Gd(64,W));if(_.mO(W))return x==="string"?zd(W):P?qUC(W):gM(W)};
_.ulo=function(W){var P=typeof W;if(W==null)return W;if(P==="bigint")return _.Fl(Gd(64,W));if(_.mO(W))return P==="string"?LRW(W):WPo(W)};
dbR=function(W){if(W==null)return W;var P=typeof W;if(P==="bigint")return String(Gd(64,W));if(_.mO(W)){if(P==="string")return zd(W);if(P==="number")return gM(W)}};
sWR=function(W){if(W==null)return W;var P=typeof W;if(P==="bigint")return String((0,_.h9)(64,W));if(_.mO(W)){if(P==="string")return _.KPU(W);if(P==="number")return _.nim(W)}};
_.em=function(W){if(typeof W!=="string")throw Error();return W};
cy=function(W){if(W!=null&&typeof W!=="string")throw Error();return W};
_.aG=function(W){return W==null||typeof W==="string"?W:void 0};
viS=function(W,P,x,I){if(W!=null&&W[Uv]===X6)return W;if(!Array.isArray(W))return x?I&2?((W=P[f2])||(W=new P,$i(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),W=P[f2]=W),P=W):P=new P:P=void 0,P;x=W[_.Ec]|0;I=x|I&32|I&2;I!==x&&Mb(W,I);return new P(W)};
mbx=function(W,P,x){W=P?FR7(W):_.C2(W);return W==null?x?0:void 0:W|0};
VzR=function(W){return W};
tzm=function(W){return W};
jWR=function(W,P,x,I,O,B){W=viS(W,I,x,B);O&&(W=pmt(W));return W};
QWx=function(W){return[W,this.get(W)]};
zd8=function(){return Cpx||(Cpx=new NL($i([]),void 0,void 0,void 0,Aw8))};
rM=function(W){var P=l3(Td);return P?W[P]:void 0};
gim=function(W,P){var x=x===void 0?!1:x;if(l3(GAR)&&l3(Td)&&void 0===GAR){var I=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=I[Td];if(!O)return;if(O=O.reviveUnknownFields)try{O(I,P,Eid);return}catch(B){OU(B)}}x&&(W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(x=l3(Td))&&x in W&&(W=W[x])&&delete W[P])};
Mzm=function(W,P){var x=l3(Td),I;zA&&x&&((I=W[x])==null?void 0:I[P])!=null&&pM(DbG,3)};
wmS=function(W,P){P<100||pM($bd,1)};
cwd=function(W,P,x,I){var O=I!==void 0;I=!!I;var B=l3(Td),Y;!O&&zA&&B&&(Y=W[B])&&i3(Y,wmS);B=[];var K=W.length;Y=4294967295;var Z=!1,d=!!(P&64),v=d?P&128?0:-1:void 0;if(!(P&1)){var m=K&&W[K-1];m!=null&&typeof m==="object"&&m.constructor===Object?(K--,Y=K):m=void 0;if(d&&!(P&128)&&!O){Z=!0;var t;Y=((t=hdA)!=null?t:VzR)(Y-v,v,W,m)+v}}P=void 0;for(t=0;t<K;t++){var C=W[t];if(C!=null&&(C=x(C,I))!=null)if(d&&t>=Y){var z=t-v,D=void 0;((D=P)!=null?D:P={})[z]=C}else B[t]=C}if(m)for(var w in m)K=m[w],K!=null&&
(K=x(K,I))!=null&&(t=+w,C=void 0,d&&!Number.isNaN(t)&&(C=t+v)<Y?B[C]=K:(t=void 0,((t=P)!=null?t:P={})[w]=K));P&&(Z?B.push(P):B[Y]=P);O&&l3(Td)&&(W=rM(W))&&W instanceof HMm&&(B[Td]=edR(W));return B};
a3U=function(W){W[0]=qL(W[0]);W[1]=qL(W[1]);return W};
qL=function(W){switch(typeof W){case "number":return Number.isFinite(W)?W:""+W;case "bigint":return Hy(W)?Number(W):""+W;case "boolean":return W?1:0;case "object":if(Array.isArray(W)){var P=W[_.Ec]|0;return W.length===0&&P&1?void 0:cwd(W,P,qL)}if(W!=null&&W[Uv]===X6)return bMS(W);if(W instanceof aW){P=W.JSC$6716_value_;if(P==null)W="";else if(typeof P==="string")W=P;else{if(zxR){for(var x="",I=0,O=P.length-10240;I<O;)x+=String.fromCharCode.apply(null,P.subarray(I,I+=10240));x+=String.fromCharCode.apply(null,
I?P.subarray(I):P);P=btoa(x)}else P=_.L2(P);W=W.JSC$6716_value_=P}return W}if(W instanceof NL)return W=W.size!==0?Array.from(WZ.prototype.entries.call(W),a3U):void 0,W;return}return W};
IK=function(W,P){if(P){hdA=P==null||P===VzR||P[kAS]!==UbR?VzR:P;try{return bMS(W)}finally{hdA=void 0}}return bMS(W)};
bMS=function(W){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return cwd(W,W[_.Ec]|0,qL)};
NkR=function(W){switch(typeof W){case "boolean":return Xmm||(Xmm=[0,void 0,!0]);case "number":return W>0?void 0:W===0?f3U||(f3U=[0,void 0]):[-W,void 0];case "string":return[0,W];case "object":return W}};
BZ=function(W,P,x){return W=_.Oi(W,P[0],P[1],x?1:2)};
_.Oi=function(W,P,x,I){I=I===void 0?0:I;if(W==null){var O=32;x?(W=[x],O|=128):W=[];P&&(O=O&-8380417|(P&1023)<<13)}else{if(!Array.isArray(W))throw Error("L");O=W[_.Ec]|0;2048&O&&!(2&O)&&l3W();if(O&256)throw Error("N");if(O&64)return I!==0||O&2048||Mb(W,O|2048),W;if(x&&(O|=128,x!==W[0]))throw Error("O");a:{x=W;O|=64;var B=x.length;if(B){var Y=B-1,K=x[Y];if(K!=null&&typeof K==="object"&&K.constructor===Object){P=O&128?0:-1;Y-=P;if(Y>=1024)throw Error("Q");for(var Z in K)B=+Z,B<Y&&(x[B+P]=K[Z],delete K[Z]);
O=O&-8380417|(Y&1023)<<13;break a}}if(P){Z=Math.max(P,B-(O&128?0:-1));if(Z>1024)throw Error("R");O=O&-8380417|(Z&1023)<<13}}}O|=64;I===0&&(O|=2048);Mb(W,O);return W};
l3W=function(){pM(TkU,5)};
RdR=function(W,P){if(typeof W!=="object")return W;if(Array.isArray(W)){var x=W[_.Ec]|0;return W.length===0&&x&1?void 0:rwo(W,x,P)}if(W!=null&&W[Uv]===X6)return iMC(W);if(W instanceof NL){P=W.arrayState;if(P&2)return W;if(!W.size)return;x=$i(Array.from(WZ.prototype.entries.call(W)));if(W.valueCtor)for(W=0;W<x.length;W++){var I=x[W],O=I[1];O==null||typeof O!=="object"?O=void 0:O!=null&&O[Uv]===X6?O=iMC(O):Array.isArray(O)?O=rwo(O,O[_.Ec]|0,!!(P&32)):O=void 0;I[1]=O}return x}if(W instanceof aW)return W};
rwo=function(W,P,x){if(P&2)return W;!x||4096&P||16&P?W=nx(W,P,!1,x&&!(P&16)):(gk(W,34),P&4&&Object.freeze(W));return W};
yc=function(W,P,x){W=new W.constructor(P);x&&(W.copyOnWrite=Hm);W.noLegacyNull=Hm;return W};
iMC=function(W){var P=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=P[_.Ec]|0;return cm(W,x)?W:ZS(W,P,x)?yc(W,P):nx(P,x)};
nx=function(W,P,x,I){I!=null||(I=!!(34&P));W=cwd(W,P,RdR,I);I=32;x&&(I|=2);P=P&8380609|I;Mb(W,P);return W};
pmt=function(W){var P=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=P[_.Ec]|0;return cm(W,x)?ZS(W,P,x)?yc(W,P,!0):new W.constructor(nx(P,x,!1)):W};
S$=function(W){if(W.copyOnWrite!==Hm)return!1;var P=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;P=nx(P,P[_.Ec]|0);gk(P,2048);W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=P;W.copyOnWrite=void 0;W.noLegacyNull=void 0;return!0};
uI=function(W){if(!S$(W)&&cm(W,W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Ec]|0))throw Error();};
dD=function(W,P){P===void 0&&(P=W[_.Ec]|0);P&32&&!(P&4096)&&Mb(W,P|4096)};
ZS=function(W,P,x){return x&2?!0:x&32&&!(x&4096)?(Mb(P,x|2),W.copyOnWrite=Hm,!0):!1};
si=function(W,P,x,I,O){var B=x+(O?0:-1),Y=W.length-1;if(Y>=1+(O?0:-1)&&B>=Y){var K=W[Y];if(K!=null&&typeof K==="object"&&K.constructor===Object)return K[x]=I,P}if(B<=Y)return W[B]=I,P;if(I!==void 0){var Z;Y=((Z=P)!=null?Z:P=W[_.Ec]|0)>>13&1023||536870912;x>=Y?I!=null&&(B={},W[Y+(O?0:-1)]=(B[x]=I,B)):W[B]=I}return P};
_.t2=function(W,P,x,I,O){var B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=B[_.Ec]|0;I=cm(W,Y)?1:I;O=!!O||I===3;I===2&&S$(W)&&(B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=B[_.Ec]|0);W=FPd(B,P);var K=W===mu?7:W[_.Ec]|0,Z=qc8(K,Y);var d=4&Z?!1:!0;if(d){4&Z&&(W=By(W),K=0,Z=Vc(Z,Y),Y=si(B,Y,P,W));for(var v=0,m=0;v<W.length;v++){var t=x(W[v]);t!=null&&(W[m++]=t)}m<v&&(W.length=m);x=(Z|4)&-513;Z=x&=-1025;Z&=-4097}Z!==K&&(Mb(W,Z),2&Z&&Object.freeze(W));return W=LPd(W,Z,B,
Y,P,I,d,O)};
LPd=function(W,P,x,I,O,B,Y,K){var Z=P;B===1||(B!==4?0:2&P||!(16&P)&&32&I)?px(P)||(P|=!W.length||Y&&!(4096&P)||32&I&&!(4096&P||16&P)?2:256,P!==Z&&Mb(W,P),Object.freeze(W)):(B===2&&px(P)&&(W=By(W),Z=0,P=Vc(P,I),I=si(x,I,O,W)),px(P)||(K||(P|=16),P!==Z&&Mb(W,P)));2&P||!(4096&P||16&P)||dD(x,I);return W};
FPd=function(W,P,x){W=Qc(W,P,x);return Array.isArray(W)?W:mu};
qc8=function(W,P){2&P&&(W|=2);return W|1};
px=function(W){return!!(2&W)&&!!(4&W)||!!(256&W)};
WOx=function(W){return _.Uc(W,!0)};
P3A=function(W,P){var x=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=x[_.Ec]|0;a:{var O=I;I=cm(W,I);!I&&S$(W)&&(x=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=x[_.Ec]|0);var B=Qc(x,P);W=!1;if(B==null){if(I){P=zd8();break a}B=[]}else if(B.constructor===NL)if(B.arrayState&2&&!I)B=Array.from(WZ.prototype.entries.call(B));else{P=B;break a}else Array.isArray(B)?W=!!((B[_.Ec]|0)&2):B=[];if(I){if(!B.length){P=zd8();break a}W||(W=!0,$i(B))}else if(W){W=!1;I=B;I=By(I);for(B=0;B<
I.length;B++){var Y=I[B]=By(I[B]);Array.isArray(Y[1])&&(Y[1]=$i(Y[1]))}B=I}!W&&O&32&&hxU(B);I=new NL(B,void 0,mbx,mbx);O=si(x,O,P,I);W||dD(x,O);P=I}return P};
_.Cx=function(W,P,x,I){uI(W);var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=O[_.Ec]|0;if(x==null)return si(O,B,P),W;var Y=x===mu?7:x[_.Ec]|0,K=Y,Z=px(Y),d=Z||Object.isFrozen(x);Z||(Y=0);d||(x=By(x),K=0,Y=Vc(Y,B),d=!1);Y|=5;var v;Z=(v=wdA(Y))!=null?v:0;for(v=0;v<x.length;v++){var m=x[v],t=I(m,Z);Object.is(m,t)||(d&&(x=By(x),K=0,Y=Vc(Y,B),d=!1),x[v]=t)}Y!==K&&(d&&(x=By(x),Y=Vc(Y,B)),Mb(x,Y));si(O,B,P,x);return W};
_.A2=function(W,P,x,I,O){uI(W);var B=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;si(B,B[_.Ec]|0,P,(I==="0"?Number(x)===0:x===I)?void 0:x,O);return W};
_.Gk=function(W,P,x){if(P&2)throw Error();var I=TA(P),O=FPd(W,x,I),B=O===mu?7:O[_.Ec]|0,Y=qc8(B,P);if(2&Y||px(Y)||16&Y)O=By(O),B=0,Y=Vc(Y,P),si(W,P,x,O,I);Y&=-13;Y!==B&&Mb(O,Y);return O};
xLm=function(W){if(zA){var P;return(P=W[Ei])!=null?P:W[Ei]=new Map}if(Ei in W)return W[Ei];P=new Map;Object.defineProperty(W,Ei,{value:P});return P};
O2m=function(W,P,x,I,O){var B=xLm(W),Y=IB7(B,W,P,x,O);Y!==I&&(Y&&(P=si(W,P,Y,void 0,O)),B.set(x,I));return P};
IB7=function(W,P,x,I,O){var B=W.get(I);if(B!=null)return B;for(var Y=B=0;Y<I.length;Y++){var K=I[Y];Qc(P,K,O)!=null&&(B!==0&&(x=si(P,x,B,void 0,O)),B=K)}W.set(I,B);return B};
gD=function(W,P,x,I,O){var B=!1;I=Qc(W,I,O,function(Y){var K=viS(Y,x,!1,P);B=K!==Y&&K!=null;return K});
if(I!=null)return B&&!cm(I)&&dD(W,P),I};
J9R=function(W,P,x,I,O,B,Y,K){var Z=cm(W,x);B=Z?1:B;Y=!!Y||B===3;Z=K&&!Z;(B===2||Z)&&S$(W)&&(P=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=P[_.Ec]|0);W=FPd(P,O);var d=W===mu?7:W[_.Ec]|0,v=qc8(d,x);if(K=!(4&v)){var m=W,t=x,C=!!(2&v);C&&(t|=2);for(var z=!C,D=!0,w=0,a=0;w<m.length;w++){var k=viS(m[w],I,!1,t);if(k instanceof I){if(!C){var T=cm(k);z&&(z=!T);D&&(D=T)}m[a++]=k}}a<w&&(m.length=a);v|=4;v=D?v&-4097:v|4096;v=z?v|8:v&-9}v!==d&&(Mb(W,v),2&v&&Object.freeze(W));if(Z&&!(8&v||!W.length&&
(B===1||(B!==4?0:2&v||!(16&v)&&32&x)))){px(v)&&(W=By(W),v=Vc(v,x),x=si(P,x,O,W));I=W;Z=v;for(d=0;d<I.length;d++)m=I[d],v=pmt(m),m!==v&&(I[d]=v);Z|=8;v=Z=I.length?Z|4096:Z&-4097;Mb(W,v)}return W=LPd(W,v,P,x,O,B,K,Y)};
BMd=function(W){W==null&&(W=void 0);return W};
Vc=function(W,P){return W=(2&P?W|2:W&-3)&-273};
_.n4m=function(W,P,x,I,O){uI(W);P=_.t2(W,P,O,2,!0);var B;O=(B=wdA(P===mu?7:P[_.Ec]|0))!=null?B:0;P.push(x(I,O));return W};
Yvm=function(W,P,x,I,O,B,Y){uI(W);var K=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=J9R(W,K,K[_.Ec]|0,x,P,2,!0);if(B&&Y)O!=null||(O=W.length-1),fM(W,O),W.splice(O,B),W.length||(W[_.Ec]&=-4097);else{if(B){if(typeof O!=="number"||O<0||O>W.length)throw Error();}else I=I!=null?I:new x;O!=void 0?W.splice(O,B,I):W.push(I);O=x=W===mu?7:W[_.Ec]|0;(I=cm(I))?(x&=-9,W.length===1&&(x&=-4097)):x|=4096;x!==O&&Mb(W,x);I||dD(K)}};
y9m=function(W,P){if(typeof W==="string")return new DS(EWd(W),P);if(Array.isArray(W))return new DS(new Uint8Array(W),P);if(W.constructor===Uint8Array)return new DS(W,!1);if(W.constructor===ArrayBuffer)return W=new Uint8Array(W),new DS(W,!1);if(W.constructor===aW)return P=$T(W)||new Uint8Array(0),new DS(P,!0,W);if(W instanceof Uint8Array)return W=W.constructor===Uint8Array?W:new Uint8Array(W.buffer,W.byteOffset,W.byteLength),new DS(W,!1);throw Error();};
wD=function(){var W=function(){throw Error();};
Object.setPrototypeOf(W,W.prototype);return W};
Z2U=function(W,P){var x=x===void 0?KOd:x;return new HZ(W,P,x)};
dLm=function(W,P,x,I,O){P=o4R(P,I);P!=null&&(x=_.Svd(W,x),O(P,W),_.u6R(W,x))};
e$=function(W,P,x,I){var O=I[W];if(O)return O;O={};O.binaryFields=I;O.messageMetadata=NkR(I[0]);var B=I[1],Y=1;B&&B.constructor===Object&&(O.extensions=B,B=I[++Y],typeof B==="function"&&(O.isMessageSet=!0,sGm!=null||(sGm=B),v4C!=null||(v4C=I[Y+1]),B=I[Y+=2]));for(var K={};B&&Array.isArray(B)&&B.length&&typeof B[0]==="number"&&B[0]>0;){for(var Z=0;Z<B.length;Z++)K[B[Z]]=B;B=I[++Y]}for(Z=1;B!==void 0;){typeof B==="number"&&(Z+=B,B=I[++Y]);var d=void 0;if(B instanceof HZ)var v=B;else v=mLW,Y--;B=void 0;
if((B=v)==null?0:B.$$isMsg){B=I[++Y];d=I;var m=Y;typeof B==="function"&&(B=B(),d[m]=B);d=B}B=I[++Y];m=Z+1;typeof B==="number"&&B<0&&(m-=B,B=I[++Y]);for(;Z<m;Z++){var t=K[Z];d?x(O,Z,v,d,t):P(O,Z,v,t)}}return I[W]=O};
tmx=function(W){return Array.isArray(W)?W[0]instanceof HZ?W:[Vmm,W]:[W,void 0]};
o4R=function(W,P){if(W instanceof _.aK)return W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(W))return BZ(W,P,!1)};
pym=function(W,P,x,I){var O=x.$$binaryReaderFn;W[P]=I?function(B,Y,K){return O(B,Y,K,I)}:O};
jGd=function(W,P,x,I,O){var B=x.$$binaryReaderFn,Y,K;W[P]=function(Z,d,v){return B(Z,d,v,K||(K=e$(bI,pym,jGd,I).messageMetadata),Y||(Y=QGd(I)),O)}};
QGd=function(W){var P=W[C3S];if(P!=null)return P;var x=e$(bI,pym,jGd,W);P=x.isMessageSet?function(I,O){return sGm(I,O,x)}:function(I,O){for(;A9R(O)&&O.nextWireType_!=4;){var B=O.nextField_,Y=x[B];
if(Y==null){var K=x.extensions;K&&(K=K[B])&&(K=zQR(K),K!=null&&(Y=x[B]=K))}if(Y==null||!Y(O,I,B)){K=O;Y=K.fieldCursor_;kT(K);if(K.discardUnknownFields)var Z=void 0;else{var d=K.decoder_.cursor_-Y;K.decoder_.cursor_=Y;Z=Gdd(K.decoder_,d)}d=K=Y=void 0;var v=I;Z&&((Y=(K=(d=v[Td])!=null?d:v[Td]=new HMm)[B])!=null?Y:K[B]=[]).push(Z)}}if(I=rM(I))I.reviveUnknownFields=x.binaryFields[E4R];return!0};
W[C3S]=P;W[E4R]=g4G.bind(W);return P};
g4G=function(W,P,x,I){var O=this[bI],B=this[C3S],Y=BZ(void 0,O.messageMetadata,!1),K=rM(W);if(K){var Z=!1,d=O.extensions;if(d){O=function(z,D,w){if(w.length!==0)if(d[D])for(z=_.n(w),D=z.next();!D.done;D=z.next()){D=DLR(D.value);try{Z=!0,B(Y,D)}finally{D.free()}}else I==null||I(W,D,w)};
if(P==null)i3(K,O);else if(K!=null){var v=K[P];v&&O(K,P,v)}if(Z){var m=W[_.Ec]|0;if(m&2&&m&2048&&(x==null||!x.reviveIntoImmutable))throw Error();var t=TA(m),C=function(z,D){if(Qc(W,z,t)!=null)switch(x==null?void 0:x.resolutionBehavior){case 1:return;default:throw Error();}D!=null&&(m=si(W,m,z,D,t));delete K[z]};
P==null?exC(Y,Y[_.Ec]|0,function(z,D){C(z,D)}):C(P,Qc(Y,P,t))}}}};
zQR=function(W){W=tmx(W);var P=W[0].$$binaryReaderFn;if(W=W[1]){var x=QGd(W),I=e$(bI,pym,jGd,W).messageMetadata;return function(O,B,Y){return P(O,B,Y,I,x)}}return P};
Ui=function(W,P,x){W[P]=x.$$binaryWriterFn};
fx=function(W,P,x,I){var O,B,Y=x.$$binaryWriterFn;W[P]=function(K,Z,d){return Y(K,Z,d,B||(B=e$(X5,Ui,fx,I).messageMetadata),O||(O=Mmo(I)))}};
Mmo=function(W){var P=W[$Lo];if(!P){var x=e$(X5,Ui,fx,W);P=function(I,O){return wyt(I,O,x)};
W[$Lo]=P}return P};
wyt=function(W,P,x){exC(W,W[_.Ec]|0,function(I,O){if(O!=null){var B=hQC(x,I);B?B(P,O,I):I<500||pM(H2S,3)}});
(W=rM(W))&&i3(W,function(I,O,B){N5(P,P.encoder_.end());for(I=0;I<B.length;I++)N5(P,$T(B[I])||new Uint8Array(0))})};
hQC=function(W,P){var x=W[P];if(x)return x;if(x=W.extensions)if(x=x[P]){x=tmx(x);var I=x[0].$$binaryWriterFn;if(x=x[1]){var O=Mmo(x),B=e$(X5,Ui,fx,x).messageMetadata;x=W.isMessageSet?v4C(B,O):function(Y,K,Z){return I(Y,K,Z,B,O)}}else x=I;
return W[P]=x}};
_.eQG=function(W,P,x){if(Array.isArray(P)){var I=P[_.Ec]|0;if(I&4)return P;for(var O=0,B=0;O<P.length;O++){var Y=W(P[O]);Y!=null&&(P[B++]=Y)}B<O&&(P.length=B);x&&(Mb(P,(I|5)&-1537),I&2&&Object.freeze(P));return P}};
_.lI=function(W,P,x){return new HZ(W,P,x)};
_.c9x=function(W,P,x){return new HZ(W,P,x)};
_.Tk=function(W,P,x){si(W,W[_.Ec]|0,P,x,TA(W[_.Ec]|0))};
aBR=function(W,P,x){P=_.K2(P);P!=null&&(_.iI(W,x,1),W=W.encoder_,x=RK||(RK=new DataView(new ArrayBuffer(8))),x.setFloat64(0,+P,!0),qb=x.getUint32(0,!0),LM=x.getUint32(4,!0),_.F5(W,qb),_.F5(W,LM))};
_.q5=function(W,P,x){P=dbR(P);if(P!=null){switch(typeof P){case "string":b2m(P)}if(P!=null)switch(_.iI(W,x,0),typeof P){case "number":W=W.encoder_;Wy(P);kd8(W,qb,LM);break;case "bigint":x=BigInt.asUintN(64,P);x=new ULW(Number(x&BigInt(4294967295)),Number(x>>BigInt(32)));kd8(W.encoder_,x.JSC$6768_lo,x.JSC$6768_hi);break;default:x=b2m(P),kd8(W.encoder_,x.JSC$6768_lo,x.JSC$6768_hi)}}};
fB8=function(W,P,x){P=_.C2(P);P!=null&&P!=null&&(_.iI(W,x,0),_.Xy8(W.encoder_,P))};
_.lBS=function(W,P,x){NM8(W,x,sWR(P))};
_.TMo=function(W,P,x){P=_.imS(P);P!=null&&(_.iI(W,x,0),W.encoder_.JSC$6770_buffer_.push(P?1:0))};
_.i2t=function(W,P,x){P=_.aG(P);P!=null&&r9R(W,x,OmW(P))};
FOm=function(W,P,x,I,O){P=o4R(P,I);P!=null&&(x=_.Svd(W,x),O(P,W),_.u6R(W,x))};
_.qvo=function(W,P,x){P=P==null||typeof P=="string"||P instanceof aW?P:void 0;P!=null&&r9R(W,x,y9m(P,!0).buffer)};
_.LO8=function(W,P,x){P=_.C2(P);P!=null&&(P=parseInt(P,10),_.iI(W,x,0),_.Xy8(W.encoder_,P))};
_.Lx=function(W,P){return function(x,I){var O={treatNewDataAsImmutable:!0};I&&Object.assign(O,I);x=DLR(x,void 0,void 0,O);try{var B=new W,Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;QGd(P)(Y,x);var K=B}finally{x.free()}return K}};
_.W6=function(W){return function(P){return Wud(P,W)}};
PIo=function(W){return function(){return Wud(this,W)}};
_.x5S=function(W){return ip(function(P){return P instanceof W&&!cm(P)})};
_.P6=function(W){return function(P){return ISW(W,P)}};
nTU=function(W,P){return OxR({child:W,origin:P||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:J2U,getPayloadCase:function(x){return x.getPayloadCase()},
createInitMessage:function(x){var I=new xH,O=new BDG;x=_.I$(O,1,x);return _.O0(I,5,JH,x)}})};
B6=function(W){return{valueOf:W}.valueOf()};
y2R=function(){var W=null;if(!YiG)return W;try{var P=function(x){return x};
W=YiG.createPolicy("goog#html",{createHTML:P,createScript:P,createScriptURL:P})}catch(x){}return W};
ZxG=function(){KuG===void 0&&(KuG=y2R());return KuG};
_.YH=function(W){var P=ZxG();W=P?P.createScriptURL(W):W;return new nz(W)};
_.y4=function(W){if(W instanceof nz)return W.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
Kz=function(W){return W.toString().indexOf("`")===-1};
o$=function(W){return new _.ZH(oTG,W)};
S5=function(W){return W instanceof _.ZH};
_.u5=function(W){if(S5(W))return W.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
d9=function(W){return new Sit(function(P){return P.substr(0,W.length+1).toLowerCase()===W+":"})};
s0=function(W,P){P=P===void 0?u5m:P;if(S5(W))return W;for(var x=0;x<P.length;++x){var I=P[x];if(I instanceof Sit&&I.isValid(W))return o$(W)}};
_.my=function(W,P){P=P===void 0?u5m:P;return s0(W,P)||v6};
_.V4=function(W){var P=window;if(typeof MediaSource!=="undefined"&&W instanceof MediaSource||typeof P.ManagedMediaSource!=="undefined"&&W instanceof P.ManagedMediaSource)return o$(URL.createObjectURL(W));P=W.type;P.toLowerCase()==="application/octet-stream"?P=!0:(P=P.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),P=(P==null?void 0:P.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(P[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(P[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(P[1])||/^font\/[\w-]+$/i.test(P[1])));if(!P)throw Error("da");return o$(URL.createObjectURL(W))};
_.pz=function(W){for(var P=_.tH.apply(1,arguments),x=[W[0]],I=0;I<P.length;I++)x.push(String(P[I])),x.push(W[I+1]);return o$(x.join(""))};
_.sKm=function(W){if(!d5U){a:{var P=document.createElement("a");try{P.href=W}catch(x){W=void 0;break a}W=P.protocol;W=W===":"||W===""?"https:":W}return W}try{P=new URL(W)}catch(x){return"https:"}return P.protocol};
_.Q4=function(W){W instanceof _.ZH?W=_.u5(W):W=vTd.test(W)?W:void 0;return W};
AH=function(W,P){P=_.Q4(P);P!==void 0&&(W.href=P)};
GI=function(W){var P=ZxG();W=P?P.createHTML(W):W;return new zI(W)};
E0=function(W){if(W instanceof zI)return W.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.g9=function(W,P){W.src=_.y4(P).toString()};
m5G=function(W,P){W.setAttribute("sandbox","");for(var x=0;x<P.length;x++)W.sandbox.supports&&!W.sandbox.supports(P[x])||W.sandbox.add(P[x])};
_.V$G=function(W,P,x){W.removeAttribute("srcdoc");switch(P){case 0:if(x instanceof nz)throw new DH("TrustedResourceUrl",0);m5G(W,[]);P=_.Q4(x);P!==void 0&&(W.src=P);break;case 1:if(!(x instanceof nz))throw new DH(typeof x,1);m5G(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.g9(W,x);break;case 2:if(x instanceof nz)throw new DH("TrustedResourceUrl",2);m5G(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
P=_.Q4(x);P!==void 0&&(W.src=P);break;default:_.n2(P)}};
_.ME=function(W,P,x,I){P=_.Q4(P);return P!==void 0?W.open(P,x,I):null};
_.$H=function(W){W=W===void 0?document:W;var P,x;W=(x=(P=W).querySelector)==null?void 0:x.call(P,"script[nonce]");return W==null?"":W.nonce||W.getAttribute("nonce")||""};
_.hH=function(W){var P=ZxG();W=P?P.createScript(W):W;return new _.w9(W)};
H6=function(W){if(W instanceof _.w9)return W.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
t$R=function(W){var P=_.$H(W.ownerDocument);P&&W.setAttribute("nonce",P)};
_.e5=function(W,P){W.textContent=H6(P);t$R(W)};
_.c6=function(W,P){W.src=_.y4(P);t$R(W)};
_.a$=function(W,P){if(W.nodeType===1&&/^(script|style)$/i.test(W.tagName))throw Error("da");W.innerHTML=E0(P)};
_.b5=function(W,P,x,I){if(W.length===0)throw Error("da");W=W.map(function(B){if(B instanceof pZU)B=B.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return B});
var O=x.toLowerCase();if(W.every(function(B){return O.indexOf(B)!==0}))throw Error("ea`"+x);
P.setAttribute(x,I)};
_.kH=function(W,P,x){if(P instanceof nz)W.href=_.y4(P).toString(),W.rel=x;else{if(jKA.indexOf(x)===-1)throw Error("fa`"+x);P=_.Q4(P);P!==void 0&&(W.href=P,W.rel=x)}};
QKC=function(W){return"function"==typeof _.U0&&W instanceof _.U0};
_.CId=function(W){if(QKC(W))return W.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.XV=function(W,P){P=_.Q4(P);P!==void 0&&(W.href=P)};
NE=function(W,P){W&&(P=W.indexOf(P),0<=P&&W.splice(P,1))};
l5=function(W){return typeof W==="function"};
A2S=function(W){return W instanceof TI||W&&"closed"in W&&l5(W.remove)&&l5(W.add)&&l5(W.unsubscribe)};
r9=function(){};
R$=function(W){zXt(function(){throw W;})};
FV=function(W){return W};
qE=function(){return Gk7(_.tH.apply(0,arguments))};
Gk7=function(W){return W.length===0?FV:W.length===1?W[0]:function(P){return W.reduce(function(x,I){return I(x)},P)}};
ETG=function(W){var P;return(P=W!=null?W:void 0)!=null?P:Promise};
gTo=function(W,P){return new Lz(function(x){var I=0;return P.schedule(function(){I===W.length?x.complete():(x.next(W[I++]),x.closed||this.schedule())})})};
D58=function(W,P){if(!W)throw Error("ga");return new Lz(function(x){var I=new TI;I.add(P.schedule(function(){var O=W[Symbol.asyncIterator]();I.add(P.schedule(function(){var B=this;O.next().then(function(Y){Y.done?x.complete():(x.next(Y.value),B.schedule())})}))}));
return I})};
M$d=function(W,P,x){P=P.schedule(function(){try{x.call(this)}catch(I){W.error(I)}},0);
W.add(P)};
$5S=function(W,P){return new Lz(function(x){var I;x.add(P.schedule(function(){I=W[Wr]();M$d(x,P,function(){var O=I.next(),B=O.value;O.done?x.complete():(x.next(B),this.schedule())})}));
return function(){var O;return l5((O=I)==null?void 0:O.return)&&I.return()}})};
wZo=function(W,P){return new Lz(function(x){var I=new TI;I.add(P.schedule(function(){var O=W[Pr]();I.add(O.subscribe({next:function(B){I.add(P.schedule(function(){return x.next(B)}))},
error:function(B){I.add(P.schedule(function(){return x.error(B)}))},
complete:function(){I.add(P.schedule(function(){return x.complete()}))}}))}));
return I})};
hXU=function(W,P){return new Lz(function(x){return P.schedule(function(){return W.then(function(I){x.add(P.schedule(function(){x.next(I);x.add(P.schedule(function(){return x.complete()}))}))},function(I){x.add(P.schedule(function(){return x.error(I)}))})})})};
HxS=function(W){return new TypeError("ha`"+(W!==null&&typeof W==="object"?"an invalid object":"'"+W+"'"))};
c28=function(W,P){if(W!=null){if(l5(W[Pr]))return wZo(W,P);if(eXd(W))return gTo(W,P);if(l5(W==null?void 0:W.then))return hXU(W,P);if(Symbol.asyncIterator&&l5(W==null?void 0:W[Symbol.asyncIterator]))return D58(W,P);if(l5(W==null?void 0:W[Wr]))return $5S(W,P)}throw HxS(W);};
It=function(W,P){return P?c28(W,P):xD(W)};
xD=function(W){if(W instanceof Lz)return W;if(W!=null){if(l5(W[Pr]))return aSx(W);if(eXd(W))return bxR(W);if(l5(W==null?void 0:W.then))return kkU(W);if(Symbol.asyncIterator&&l5(W==null?void 0:W[Symbol.asyncIterator]))return U5d(W);if(l5(W==null?void 0:W[Wr]))return XZC(W)}throw HxS(W);};
aSx=function(W){return new Lz(function(P){var x=W[Pr]();if(l5(x.subscribe))return x.subscribe(P);throw new TypeError("ia");})};
bxR=function(W){return new Lz(function(P){for(var x=0;x<W.length&&!P.closed;x++)P.next(W[x]);P.complete()})};
kkU=function(W){return new Lz(function(P){W.then(function(x){P.closed||(P.next(x),P.complete())},function(x){return P.error(x)}).then(null,R$)})};
XZC=function(W){return new Lz(function(P){for(var x=W[Wr]();!P.closed;){var I=x.next(),O=I.value;I.done?P.complete():P.next(O)}return function(){return l5(x==null?void 0:x.return)&&x.return()}})};
U5d=function(W){return new Lz(function(P){fSA(W,P).catch(function(x){return P.error(x)})})};
fSA=function(W,P){var x,I,O,B,Y,K;return _.y(function(Z){switch(Z.nextAddress){case 1:_.OT(Z,2,3);var d=W[Symbol.asyncIterator];B=d!==void 0?d.call(W):new NDR(_.n(W));case 5:return _.S(Z,B.next(),8);case 8:I=Z.yieldResult;if(I.done){Z.jumpTo(3);break}Y=I.value;P.next(Y);Z.jumpTo(5);break;case 3:_.Jo(Z);_.Br(Z,9);if(!I||I.done||!(O=B.return)){Z.jumpTo(9);break}return _.S(Z,O.call(B),9);case 9:_.Jo(Z,0,0,1);if(x)throw x.error;_.YD(Z,10,1);break;case 10:_.YD(Z,4);break;case 2:K=_.yn(Z);x={error:K};Z.jumpTo(3);
break;case 4:P.complete(),_.Kl(Z)}})};
Zu=function(W,P){return P?gTo(W,P):bxR(W)};
lSm=function(W){return l5(W[W.length-1])?W.pop():void 0};
ot=function(W){var P=W[W.length-1];return P&&l5(P.schedule)?W.pop():void 0};
Su=function(){var W=_.tH.apply(0,arguments),P=ot(W);return P?gTo(W,P):Zu(W)};
d_=function(W){var P=l5(W)?W:function(){return W};
return new Lz(function(x){return x.error(P())})};
sT=function(W){return function(P){if(l5(P==null?void 0:P.lift))return P.lift(function(x){try{return W(x,this)}catch(I){this.error(I)}});
throw new TypeError("ja");}};
mJ=function(){return sT(function(W,P){var x=null;W._refCount++;var I=new vr(P,void 0,void 0,void 0,function(){if(!W||W._refCount<=0||0<--W._refCount)x=null;else{var O=W._connection,B=x;x=null;!O||B&&O!==B||O.unsubscribe();P.unsubscribe()}});
W.subscribe(I);I.closed||(x=W.connect())})};
r2C=function(){var W=TDA;var P=P===void 0?0:P;return sT(function(x,I){I.add(W.schedule(function(){return x.subscribe(I)},P))})};
Vn=function(W){return sT(function(P,x){var I=0;P.subscribe(new vr(x,function(O){x.next(W.call(void 0,O,I++))}))})};
RXS=function(W){return Vn(function(P){return ixS(P)?W.apply(null,_.ju(P)):W(P)})};
P5C=function(W){if(W.length===1){var P=W[0];if(Fux(P))return{args:P,keys:null};if(P&&typeof P==="object"&&qiC(P)===LuA)return W=WyG(P),{args:W.map(function(x){return P[x]}),
keys:W}}return{args:W,keys:null}};
Qn=function(){var W=_.tH.apply(0,arguments),P=ot(W),x=lSm(W);W=P5C(W);var I=W.args,O=W.keys;if(I.length===0)return It([],P);P=new Lz(xEU(I,P,O?function(B){for(var Y={},K=0;K<B.length;K++)Y[O[K]]=B[K];return Y}:FV));
return x?P.pipe(RXS(x)):P};
xEU=function(W,P,x){x=x===void 0?FV:x;return function(I){IHm(P,function(){for(var O=W.length,B=Array(O),Y=O,K=W.map(function(){return!1}),Z=!0,d={i$jscomp$260:0};d.i$jscomp$260<O;d={i$jscomp$260:d.i$jscomp$260},d.i$jscomp$260++)IHm(P,function(v){return function(){It(W[v.i$jscomp$260],P).subscribe(new Cl(I,function(m){B[v.i$jscomp$260]=m;
Z&&(K[v.i$jscomp$260]=!0,Z=!K.every(FV));Z||I.next(x(B.slice()))},function(){return--Y===0}))}}(d),I)},I)}};
IHm=function(W,P,x){W?x.add(W.schedule(P)):P()};
Ozm=function(W,P,x,I){var O=[],B=0,Y=0,K=!1,Z=function(d){B++;xD(x(d,Y++)).subscribe(new vr(P,function(v){P.next(v)},void 0,function(){B--;
for(var v={};O.length&&B<I;v={bufferedValue:void 0})v.bufferedValue=O.shift(),Z(v.bufferedValue);!K||O.length||B||P.complete()}))};
W.subscribe(new vr(P,function(d){return B<I?Z(d):O.push(d)},void 0,function(){K=!0;
!K||O.length||B||P.complete()}));
return function(){O=null}};
Ao=function(W,P){var x=x===void 0?Infinity:x;if(l5(P))return Ao(function(I,O){return Vn(function(B,Y){return P(I,B,O,Y)})(xD(W(I,O)))},x);
typeof P==="number"&&(x=P);return sT(function(I,O){return Ozm(I,O,W,x)})};
JHS=function(W){W=W===void 0?Infinity:W;return Ao(FV,W)};
B9R=function(){var W=_.tH.apply(0,arguments);return JHS(1)(Zu(W,ot(W)))};
zE=function(W){return new Lz(function(P){xD(W()).subscribe(P)})};
GE=function(W,P,x){if(l5(x)){var I=x;x=void 0}if(I)return GE(W,P,x).pipe(RXS(I));I=_.n(l5(W.addEventListener)&&l5(W.removeEventListener)?nHC.map(function(Y){return function(K){return W[Y](P,K,x)}}):l5(W.addListener)&&l5(W.removeListener)?Y08.map(yHS(W,P)):l5(W.on)&&l5(W.off)?KyS.map(yHS(W,P)):[]);
var O=I.next().value,B=I.next().value;return!O&&eXd(W)?Ao(function(Y){return GE(Y,P,x)})(Zu(W)):new Lz(function(Y){if(!O)throw new TypeError("ka");
var K=function(){var Z=_.tH.apply(0,arguments);return Y.next(1<Z.length?Z:Z[0])};
O(K);return function(){return B(K)}})};
yHS=function(W,P){return function(x){return function(I){return W[x](P,I)}}};
g_=function(){var W=_.tH.apply(0,arguments),P=ot(W);var x=typeof W[W.length-1]==="number"?W.pop():Infinity;return W.length?W.length===1?xD(W[0]):JHS(x)(Zu(W,P)):ET};
oHd=function(W){return W.length===1&&Zz7(W[0])?W[0]:W};
S0U=function(){var W=oHd(_.tH.apply(0,arguments));return sT(function(P,x){var I=[P].concat(_.ju(W)),O=function(){if(!x.closed)if(I.length>0){try{var B=xD(I.shift())}catch(K){O();return}var Y=new vr(x,void 0,r9,r9);x.add(B.subscribe(Y));Y.add(O)}else x.complete()};
O()})};
Du=function(W){return sT(function(P,x){var I=0;P.subscribe(new vr(x,function(O){return W.call(void 0,O,I++)&&x.next(O)}))})};
dEW=function(){var W=_.tH.apply(0,arguments);W=oHd(W);return W.length===1?xD(W[0]):new Lz(uVS(W))};
uVS=function(W){return function(P){for(var x=[],I={i$jscomp$263:0};x&&!P.closed&&I.i$jscomp$263<W.length;I={i$jscomp$263:I.i$jscomp$263},I.i$jscomp$263++)x.push(xD(W[I.i$jscomp$263]).subscribe(new vr(P,function(O){return function(B){if(x){for(var Y=0;Y<x.length;Y++)Y!==O.i$jscomp$263&&x[Y].unsubscribe();x=null}P.next(B)}}(I))))}};
s$W=function(){var W=_.tH.apply(0,arguments),P=lSm(W),x=oHd(W);return x.length?new Lz(function(I){var O=x.map(function(){return[]}),B=x.map(function(){return!1});
I.add(function(){O=B=null});
for(var Y={sourceIndex$jscomp$1:0};!I.closed&&Y.sourceIndex$jscomp$1<x.length;Y={sourceIndex$jscomp$1:Y.sourceIndex$jscomp$1},Y.sourceIndex$jscomp$1++)xD(x[Y.sourceIndex$jscomp$1]).subscribe(new vr(I,function(K){return function(Z){O[K.sourceIndex$jscomp$1].push(Z);O.every(function(d){return d.length})&&(Z=O.map(function(d){return d.shift()}),I.next(P?P.apply(null,_.ju(Z)):Z),O.some(function(d,v){return!d.length&&B[v]})&&I.complete())}}(Y),void 0,function(K){return function(){B[K.sourceIndex$jscomp$1]=
!0;
!O[K.sourceIndex$jscomp$1].length&&I.complete()}}(Y)));
return function(){O=B=null}}):ET};
vHR=function(W){var P,x,I;return!!W&&typeof W.active==="boolean"&&typeof((P=W.clock)==null?void 0:P.now)==="function"&&((x=W.clock)==null?void 0:x.timeline)!==void 0&&!((I=W.lastMeasurement)==null||!I.timestamp)&&typeof W.equivalentTo==="function"&&typeof W.extrapolateToNow==="function"&&typeof W.extrapolateToTime==="function"&&typeof W.map==="function"&&typeof W.joinWith==="function"};
mEU=function(W){function P(x){return typeof x==="boolean"||typeof x==="string"||typeof x==="number"||x===void 0||x===null}
return P(W)?!0:Array.isArray(W)?W.every(P):typeof W==="object"?Object.keys(W).every(function(x){return typeof x==="string"})&&Object.values(W).every(function(x){return Array.isArray(x)?x.every(P):P(x)}):!1};
V5t=function(W){if(mEU(W))return W;if(vHR(W))return{lastMeasurement:{value:V5t(W.lastMeasurement.value),timestamp:Mi(W.lastMeasurement.timestamp,new $D(0,W.lastMeasurement.timestamp.timeline))},active:W.active};try{return JSON.parse(JSON.stringify(W))}catch(P){}return String(W)};
w_=function(W,P){return function(x){return new Lz(function(I){return x.subscribe(function(O){W.timeExecution(P,function(){I.next(O)})()},function(O){W.timeExecution(P,function(){I.error(O)})()},function(){W.timeExecution(P,function(){I.complete()})()})})}};
t57=function(W,P){var x=!1;return new Lz(function(I){var O=W.setTimeout(function(){x=!0;I.next(!0);I.complete()},P);
return function(){x||W.clearTimeout(O)}})};
p6x=function(W){W=W.global;if(W.fetchLater)return W.fetchLater.bind(W)};
ho=function(W){return sT(function(P,x){var I=null,O=!1,B;I=P.subscribe(new vr(x,void 0,function(Y){B=xD(W(Y,ho(W)(P)));I?(I.unsubscribe(),I=null,B.subscribe(x)):O=!0}));
O&&(I.unsubscribe(),I=null,B.subscribe(x))})};
j$C=function(W,P,x){return function(I,O){var B=x,Y=P,K=0;I.subscribe(new vr(O,function(Z){var d=K++;Y=B?W(Y,Z,d):(B=!0,Z);O.next(Y)},void 0,void 0))}};
Q$W=function(W){W=W===void 0?null:W;return sT(function(P,x){var I=!1;P.subscribe(new vr(x,function(O){I=!0;x.next(O)},void 0,function(){I||x.next(W);
x.complete()}))})};
Hr=function(){return sT(function(W,P){W.subscribe(new vr(P,r9))})};
eu=function(W){return sT(function(P,x){P.subscribe(new vr(x,function(){return x.next(W)}))})};
cr=function(W){return W<=0?function(){return ET}:sT(function(P,x){var I=0;
P.subscribe(new vr(x,function(O){++I<=W&&(x.next(O),W<=I&&x.complete())}))})};
at=function(W){var P=P===void 0?FV:P;var x;W=(x=W)!=null?x:C5S;return sT(function(I,O){var B,Y=!0;I.subscribe(new vr(O,function(K){var Z=P(K);if(Y||!W(B,Z))Y=!1,B=Z,O.next(K)}))})};
C5S=function(W,P){return W===P};
z5W=function(W){W=W===void 0?AHR:W;return sT(function(P,x){var I=!1;P.subscribe(new vr(x,function(O){I=!0;x.next(O)},void 0,function(){return I?x.complete():x.error(W())}))})};
AHR=function(){return new GIo};
bt=function(){var W=_.tH.apply(0,arguments);return function(P){return B9R(P,Su.apply(null,_.ju(W)))}};
EHt=function(W){return sT(function(P,x){var I=0;P.subscribe(new vr(x,function(O){W.call(void 0,O,I++,P)||(x.next(!1),x.complete())},void 0,function(){x.next(!0);
x.complete()}))})};
gHm=function(){return sT(function(W,P){var x=[];W.subscribe(new vr(P,function(I){x.push(I);1<x.length&&x.shift()},void 0,function(){for(var I=_.n(x),O=I.next();!O.done;O=I.next())P.next(O.value);
P.complete()},function(){x=null}))})};
DEC=function(W,P){var x=arguments.length>=2;return function(I){return I.pipe(W?Du(function(O,B){return W(O,B,I)}):FV,gHm(),x?Q$W(P):z5W(function(){return new GIo}))}};
UT=function(W){var P=l5(W)?W:function(){return W};
return l5()?sT(function(x,I){var O=P();(void 0)(O).subscribe(I).add(x.subscribe(O))}):function(x){var I=new kD(x,P);
l5(x==null?void 0:x.lift)&&(I.lift=x.lift);I.source=x;I.subjectFactory=P;return I}};
fl=function(W){var P=new Xb(W,void 0,void 0);return function(x){return UT(function(){return P})(x)}};
Ni=function(W,P){return sT(j$C(W,P,arguments.length>=2))};
lt=function(){var W=_.tH.apply(0,arguments),P=ot(W);return sT(function(x,I){(P?B9R(W,x,P):B9R(W,x)).subscribe(I)})};
r_=function(W){return sT(function(P,x){var I=null,O=0,B=!1;P.subscribe(new vr(x,function(Y){var K;(K=I)==null||K.unsubscribe();K=O++;xD(W(Y,K)).subscribe(I=new vr(x,function(Z){return x.next(Z)},void 0,function(){I=null;
B&&!I&&x.complete()}))},void 0,function(){(B=!0,!I)&&x.complete()}))})};
Rt=function(W,P){P=P===void 0?!1:P;return sT(function(x,I){var O=0;x.subscribe(new vr(I,function(B){var Y=W(B,O++);(Y||P)&&I.next(B);!Y&&I.complete()}))})};
Fb=function(W,P,x){var I=l5(W)||P||x?{next:W,error:P,complete:x}:W;return I?sT(function(O,B){O.subscribe(new vr(B,function(Y){var K;(K=I.next)==null||K.call(I,Y);B.next(Y)},function(Y){var K;
(K=I.error)==null||K.call(I,Y);B.error(Y)},function(){var Y;
(Y=I.complete)==null||Y.call(I);B.complete()}))}):FV};
M57=function(){var W=_.tH.apply(0,arguments),P=lSm(W);return sT(function(x,I){for(var O=W.length,B=Array(O),Y=W.map(function(){return!1}),K=!1,Z={i$jscomp$273:0};Z.i$jscomp$273<O;Z={i$jscomp$273:Z.i$jscomp$273},Z.i$jscomp$273++)xD(W[Z.i$jscomp$273]).subscribe(new vr(I,function(d){return function(v){B[d.i$jscomp$273]=v;
K||Y[d.i$jscomp$273]||(Y[d.i$jscomp$273]=!0,(K=Y.every(FV))&&(Y=null))}}(Z),void 0,r9));
x.subscribe(new vr(I,function(d){K&&(d=[d].concat(_.ju(B)),I.next(P?P.apply(null,_.ju(d)):d))}))})};
$Em=function(W){var P=[],x=0,I;for(I in W)P[x++]=I;return P};
w6m=function(W,P){for(var x in W)if(W[x]==P)return!0;return!1};
h5G=function(W,P,x){for(var I in W)if(P.call(x,W[I],I,W))return I};
Hzm=function(W){if(!W||typeof W!=="object")return W;if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);if(W instanceof Date)return new Date(W.getTime());var P=Array.isArray(W)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(W)||W instanceof DataView?{}:new W.constructor(W.length),x;for(x in W)P[x]=Hzm(W[x]);return P};
e5o=function(W){var P=arguments.length;if(P==1&&Array.isArray(arguments[0]))return e5o.apply(null,arguments[0]);if(P%2)throw Error("oa");for(var x={},I=0;I<P;I+=2)x[arguments[I]]=arguments[I+1];return x};
cHG=function(W){var P=arguments.length;if(P==1&&Array.isArray(arguments[0]))return cHG.apply(null,arguments[0]);for(var x={},I=0;I<P;I++)x[arguments[I]]=!0;return x};
_.qi=function(W){return new pZU(W[0].toLowerCase())};
aH8=function(W){try{return new URL(W,window.document.baseURI)}catch(P){return new URL("about:invalid")}};
bzm=function(W,P){var x=P.createRange();x.selectNode(P.body);W=GI(W);return x.createContextualFragment(E0(W))};
kIm=function(W){W=W.nodeName;return typeof W==="string"?W:"FORM"};
UEU=function(W){W=W.nodeType;return W===1||typeof W!=="number"};
Ll=function(W,P,x){W.setAttribute(P,x)};
X6x=function(W){return W.parts.map(function(P){var x=P.descriptor;return""+P.url+(x?" "+x:"")}).join(" , ")};
_.W9=function(W){var P=_.tH.apply(1,arguments);if(P.length===0)return _.YH(W[0]);for(var x=W[0],I=0;I<P.length;I++)x+=encodeURIComponent(P[I])+W[I+1];return _.YH(x)};
_.P9=function(W,P){W=_.y4(W).toString();var x=W.split(/[?#]/),I=/[?]/.test(W)?"?"+x[1]:"";return fHR(x[0],I,/[#]/.test(W)?"#"+(I?x[2]:x[1]):"",P)};
fHR=function(W,P,x,I){function O(Y,K){Y!=null&&(Array.isArray(Y)?Y.forEach(function(Z){return O(Z,K)}):(P+=B+encodeURIComponent(K)+"="+encodeURIComponent(Y),B="&"))}
var B=P.length?"&":"?";I.constructor===Object&&(I=Object.entries(I));Array.isArray(I)?I.forEach(function(Y){return O(Y[1],Y[0])}):I.forEach(O);
return _.YH(W+P+x)};
xK=function(W,P,x,I){this.top=W;this.right=P;this.bottom=x;this.left=I};
N9o=function(W){W=W.global;if(W.PendingGetBeacon)return W.PendingGetBeacon};
Oh=function(W){return function(P){return P.pipe(lHt(W,UT(new IQ)))}};
Jl=function(W){return function(P){return P.pipe(lHt(W,fl(1)))}};
lHt=function(W,P){function x(I){return new Lz(function(O){return I.subscribe(function(B){B9(W,function(){return void O.next(B)},3)},function(B){B9(W,function(){return void O.error(B)},3)},function(){B9(W,function(){return void O.complete()},3)})})}
return qE(x,r2C(),P,mJ(),x)};
izR=function(W){var P=T9U(W);return P===null?new n5(null):P.pipe(Vn(function(x){x=x.serialize();if(rHm)x=_.xW.btoa(x);else{for(var I=[],O=0,B=0;B<x.length;B++){var Y=x.charCodeAt(B);Y>255&&(I[O++]=Y&255,Y>>=8);I[O++]=Y}x=_.L2(I)}return x}),cr(1),Jl(W.queue))};
R5G=function(W){var P=P===void 0?{}:P;if(typeof Event==="function")return new Event(W,P);if(typeof document!=="undefined"){var x=document.createEvent("CustomEvent");x.initCustomEvent(W,P.bubbles||!1,P.cancelable||!1,P.detail);return x}throw Error();};
Fyt=function(W){return typeof W==="string"?document.getElementById(W):W};
Lym=function(W){var P=!1;P=P===void 0?!1:P;if(W.tagName==="IMG"){if(W.complete&&(!W.naturalWidth||!W.naturalHeight))return!0;var x;if(P&&((x=W.style)==null?void 0:x.display)==="none")return!0}var I,O;return q0R.test((I=W.getAttribute("width"))!=null?I:"")&&q0R.test((O=W.getAttribute("height"))!=null?O:"")};
WJR=function(W,P){if(W.tagName==="IMG")return W.naturalWidth&&W.naturalHeight?!0:!1;try{if(W.readyState)var x=W.readyState;else{var I,O;x=(I=W.contentWindow)==null?void 0:(O=I.document)==null?void 0:O.readyState}return x==="complete"}catch(B){return P===void 0?!1:P}};
PtR=function(W){W||(W=function(P,x,I){P.addEventListener(x,I)});
return W};
JoA=function(W,P){var x=xix();x=x===void 0?new Iuo:x;if(W=Fyt(W)){var I=PtR(I);for(var O=!1,B=function(w){O||(O=!0,P(w))},Y,K=2,Z=0;Z<Olx.length;++Z)if(Olx[Z]===W.tagName){K=3;
Y=[W];break}Y||(Y=W.querySelectorAll(Olx.join(",")));var d=0,v=0,m=!0,t=W=!1;Z={};for(var C=0;C<Y.length;Z={isImg:void 0},C++){var z=Y[C];if(!Lym(z))if(Z.isImg=z.tagName==="IMG",WJR(z,x.crossDomainLoadedDefault))W=!0,Z.isImg&&(m=!0);else{d++;var D=function(w){return function(a){d--;!d&&m&&B(K);w.isImg&&(a=a&&a.type==="error",v--,a||(m=!0),!v&&t&&m&&B(K))}}(Z);
I(z,"load",D);Z.isImg&&(v++,I(z,"error",D))}}v===0&&(m=!0);Y=null;Y=_.xW.document.readyState==="complete";if(d===0&&!W&&Y)K=5;else if(d||!W){I(_.xW,"load",function(){!x.pendingImagesBlockLoad||!v&&m?B(4):t=!0});
return}B(K)}};
B_o=function(W,P,x){if(W)for(var I=0;W!=null&&I<500&&!x(W);++I)W=P(W)};
nDG=function(W,P){B_o(W,function(x){try{return x===x.parent?null:x.parent}catch(I){}return null},P)};
YT8=function(W,P){if(W.tagName=="IFRAME")P(W);else{W=W.querySelectorAll("IFRAME");for(var x=0;x<W.length&&!P(W[x]);++x);}};
yom=function(W){return(W=W.ownerDocument)&&(W.parentWindow||W.defaultView)||null};
KJC=function(W,P,x){try{var I=JSON.parse(x.data)}catch(Y){}if(typeof I==="object"&&I&&I.type==="creativeLoad"){var O=yom(W);if(x.source&&O){var B;nDG(x.source,function(Y){try{if(Y.parent===O)return B=Y,!0}catch(K){}});
B&&YT8(W,function(Y){if(Y.contentWindow===B)return P(I),!0})}}};
Zlm=function(W){return typeof W==="string"?document.getElementById(W):W};
di8=function(){var W={};return W[0]=_.W9(oDR,"current"),W[1]=_.W9(STS),W[2]=_.W9(ubm),W};
YK=function(W,P){return W.left===P.left&&W.top===P.top&&W.width===P.width&&W.height===P.height};
stC=function(W,P){return{left:Math.max(W.left,P.left),top:Math.max(W.top,P.top),width:Math.max(0,Math.min(W.left+W.width,P.left+P.width)-Math.max(W.left,P.left)),height:Math.max(0,Math.min(W.top+W.height,P.top+P.height)-Math.max(W.top,P.top))}};
vDA=function(W,P){return{left:Math.round(W.left+P.x),top:Math.round(W.top+P.y),width:W.width,height:W.height}};
miA=function(W,P,x){if(W&&P!==null&&P!=P.top){if(!P.top)return new _.y7(-12245933,-12245933);P=P.top}try{return(x===void 0?0:x)?(new _.y7(P.innerWidth,P.innerHeight)).round():_.K5(P).round()}catch(I){return new _.y7(-12245933,-12245933)}};
VuR=function(W,P,x){try{if(W){if(!P.top)return new xK(-12245933,-12245933,-12245933,-12245933);P=P.top}var I=miA(W,P,x),O=I.height,B=I.width;if(B===-12245933)return new xK(B,B,B,B);var Y=ZC(oQ(P.document)),K=Y.x,Z=Y.y;return new xK(Z,K+B,Z+O,K)}catch(d){return new xK(-12245933,-12245933,-12245933,-12245933)}};
tuA=function(W){var P;return(P=W.google_tag_data)!=null?P:W.google_tag_data={}};
pr8=function(W){var P,x;return typeof((P=W.navigator)==null?void 0:(x=P.userAgentData)==null?void 0:x.getHighEntropyValues)==="function"};
QtR=function(W){if(!pr8(W))return null;var P=tuA(W);if(P.uach_promise)return P.uach_promise;W=W.navigator.userAgentData.getHighEntropyValues(jt7).then(function(x){P.uach!=null||(P.uach=x);return x});
return P.uach_promise=W};
Hlo=function(W){var P;return CtG(Aom(zYm(GEW(EDG(gDC(DiC(Muo($iC(new wrR,W.architecture||""),W.bitness||""),W.mobile||!1),W.model||""),W.platform||""),W.platformVersion||""),W.uaFullVersion||""),((P=W.fullVersionList)==null?void 0:P.map(function(x){var I=new hYd;I=_.SU(I,1,x.brand);return _.SU(I,2,x.version)}))||[]),W.wow64||!1)};
eY7=function(W){var P,x;return(x=(P=QtR(W))==null?void 0:P.then(function(I){return Hlo(I)}))!=null?x:null};
cod=function(W,P){return new Lz(function(x){var I=!1,O=Array(P.length);O.fill(void 0);var B=new Set,Y=new Set,K=function(m,t){W.running?(O[t]=m,B.add(t),I||(I=!0,B9(W,function(){I=!1;x.next(_.Lm(O))},1))):x.error(new uz(t))},Z=function(m,t){Y.add(t);
B.add(t);B9(W,function(){x.error(m)},1)},d=function(m){Y.add(m);
B9(W,function(){Y.size===P.length&&x.complete()},1)},v=P.map(function(m,t){return m.subscribe(function(C){return void K(C,t)},function(C){return void Z(C,t)},function(){return void d(t)})});
return function(){v.forEach(function(m){return void m.unsubscribe()})}})};
bld=function(W,P,x){function I(){if(P.debugChannel){var w=P.debugChannel,a=w.next;var k={creativeId:P.debugNames.getName(x),requiredSignals:O,signals:Object.assign({},B),hasPrematurelyCompleted:Y,errorMessage:K,erroredSignalKey:Z};k={specMajor:2,specMinor:0,specPatch:0,timestamp:Mi(P.timeProvider.now(),new $D(0,P.timeProvider.timeline)),instanceId:P.debugNames.getName(P.symbol),creativeState:k};a.call(w,k)}}
for(var O=Object.keys(W),B={},Y=!1,K=null,Z=null,d={},v=new Set,m=[],t=[],C=_.n(O),z=C.next(),D={};!z.done;D={key$jscomp$374:void 0},z=C.next())D.key$jscomp$374=z.value,z=W[D.key$jscomp$374],z instanceof n5?(d[D.key$jscomp$374]=z.value,v.add(D.key$jscomp$374),P.debugChannel&&(B[String(D.key$jscomp$374)]=V5t(z.value))):(z=z.pipe(at(function(w,a){return vHR(w)||vHR(a)?!1:w===a}),Vn(function(w){return function(a){P.debugChannel&&(B[String(w.key$jscomp$374)]=V5t(a),I());
var k={};return k[w.key$jscomp$374]=a,k}}(D)),ho(function(w){return function(a){if(a instanceof uz)throw new au8(String(w.key$jscomp$374));
throw a;}}(D)),Fb(function(w){return function(){v.add(w.key$jscomp$374)}}(D),function(w){return function(a){Z=String(w.key$jscomp$374);
K=String(a);I()}}(D),function(w){return function(){v.has(w.key$jscomp$374)||(Y=!0,I())}}(D))),t.push(D.key$jscomp$374),m.push(z));
(W=Object.keys(B).length>0)&&I();C=cod(P.queue,m).pipe(ho(function(w){if(w instanceof uz)throw new dJ(String(t[w.inputObservableIndex]));throw w;}),Vn(function(w){return Object.freeze(Object.assign.apply(Object,[{},
d].concat(_.ju(w))))}));
return(m=m.length>0)&&W?g_(Su(Object.freeze(d)),C):m?C:Su(Object.freeze(d))};
kEm=function(W,P,x,I,O){return W.performanceMonitor.timeExecution.bind(W.performanceMonitor)(733,function(){var B={};try{return P.pipe(ho(function(Y){I(Object.assign({},B,{error:Y}));return ET}),Ao(function(Y){try{var K=x(W,Y)}catch(d){return I(Object.assign({},B,{error:d instanceof Error?d:String(d)})),ET}var Z={};
return bld(K,W,Y.symbol).pipe(Fb(function(d){Z=d}),fl(1),mJ()).pipe(O,ho(function(d){I(Object.assign({},Z,{error:d}));
return ET}),bt(void 0),Vn(function(){return!0}))})).pipe(Ni(function(Y){return Y+1},0),ho(function(Y){I(Object.assign({},B,{error:Y}));
return ET}))}catch(Y){return I(Object.assign({},B,{error:Y})),ET}})()};
sh=function(W){var P=new Map;if(typeof W!=="object"||W===null)return P;Object.values(W).forEach(function(x){x&&typeof x.extrapolateToNow==="function"&&(P.has(x.clock.timeline)||P.set(x.clock.timeline,x.clock.now()))});
return P};
UiU=function(W,P){return typeof W==="string"?encodeURIComponent(W):typeof W==="number"?String(W):Array.isArray(W)?W.map(function(x){return UiU(x,P)}).join(","):W instanceof $D?W.toString():W&&typeof W.extrapolateToNow==="function"?UiU(W.extrapolateUsingTimestampMap(P).value,P):W===!0?"1":W===!1?"0":W===void 0||W===null?null:W instanceof Xro?fuW(W):[W.top,
W.left,W.top+W.height,W.left+W.width].join()};
v9=function(W,P){W=Object.entries(W).map(function(x){var I=_.n(x);x=I.next().value;I=I.next().value;I=UiU(I,P);return I===null?"":x+"="+I}).filter(function(x){return x!==""});
return W.length?W.join("&"):""};
T_o=function(W,P){var x=N_t,I=luA;P=P===void 0?.01:P;return function(O){P>0&&Math.random()<=P&&(W.global.HTMLFencedFrameElement&&W.global.fence&&typeof W.global.fence.reportEvent==="function"&&W.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),O=Object.assign({},O,{errorMessage:O.error instanceof Error&&O.error.message?O.error.message:String(O.error),errorStack:O.error instanceof Error&&O.error.stack?String(O.error.stack):null,errorName:O.error instanceof
Error&&O.error.name?String(O.error.name):null,errorContext:String(W.performanceMonitor.timedFunctionContext),errorEscapedQueryId:O.escapedQueryId}),x(Object.assign({},O,{payloadMapper:function(){return function(B){try{return I(Object.assign({},B))}catch(Y){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),sh(O)).forEach(function(B){W.beaconFactory.makeBeacon(B).sendNow()}))}};
roS=function(){var W=_.tH.apply(0,arguments);return function(P){var x=P.pipe(fl(1),mJ());P=W.map(function(I){return x.pipe(I,bt(!0))});
return Qn(P).pipe(cr(1),Hr())}};
ilm=function(){var W=_.tH.apply(0,arguments);return function(P){var x=P.pipe(fl(1),mJ());P=W.map(function(I){return x.pipe(I,bt(!0))});
return g_.apply(null,_.ju(P)).pipe(cr(1),Hr())}};
RYU=function(W,P){return function(x){var I=x.pipe(fl(1),mJ());x=I.pipe(W,bt(!0));I=I.pipe(qE(P,fl(),mJ()),bt(!0));x=Qn([x,I]);return dEW(x,I).pipe(cr(1),Hr())}};
FJU=function(W,P,x){x(!0)};
qTR=function(W,P){return qE(r_(function(x){var I=W(x),O=P(x),B={};return I&&O&&B?new Lz(function(Y){O(I,B,function(K){Y.next(Object.assign({},x,{canEmit:K}));Y.complete()});
return function(){}}):V7}),Du(function(x){return x.canEmit}))};
LJx=function(W){var P={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(x){return x.pipe(r_(function(I){return new Lz(function(O){function B(){K.disconnect();Z.unsubscribe()}
var Y=W.MutationObserver;if(Y&&I.ref!==void 0){var K=new Y(function(d){O.next(d)});
K.observe(I.ref,P);var Z=I.JSC$7265_released.subscribe(B);return B}})}))}};
WYt=function(W){if(W.measurementDeferralState===3)return null;if(W.timeOnScreenReason!==void 0){var P=W.creativeFound===!1?"n":null;if(P!==null)return P}return W.geometricMeasurementErrors instanceof tl?"msf":W.contextValidationErrors instanceof p5?"c":W.contextVisibilityKnown===!1?"pv":W.geometricMeasurementErrors||W.contextValidationErrors?"x":null};
Q7=function(W,P){return W.replace(PzR,function(x,I){try{var O=_.jU.get(P,I);if(O==null||O.toString()==null)return x;O=O.toString();if(O==""||!_.Km(O==null?"":String(O)))return encodeURIComponent(O).replace(/%2C/g,",")}catch(B){}return x})};
xTS=function(W,P){var x=Object.assign({},W),I=W.userAgentClientHints;x=(delete x.userAgentClientHints,x);x=W.payloadMapper(x);var O=v9(x,P);return _.C5(W.urlPrefixes,function(B){var Y="";typeof I==="string"&&(Y="&"+v9({uach:I},P));var K={};return Q7(B,(K.VIEWABILITY=O,K))+Y})};
N_t=function(W,P){var x=W.payloadMapper(W),I=v9(x,P);return I?_.C5(W.urlPrefixes,function(O){O=O.indexOf("?")>=0?O:O+"?";O="?&".indexOf(O.slice(-1))>=0?O:O+"&";return O+I}):W.urlPrefixes};
ICt=function(){return qE(Du(function(W){return W!==void 0}),Vn(function(W){return W}))};
O5m=function(W){return qE(Vn(function(){return!0}),lt(!1),Jl(W))};
Jlo=function(W){return W.length<=0?ET:Qn(W.map(function(P){var x=0;return P.pipe(Vn(function(I){return{index:x++,value:I}}))})).pipe(Du(function(P){return P.every(function(x){return x.index===P[0].index})}),Vn(function(P){return P.map(function(x){return x.value})}))};
BJm=function(W,P){W.currentState&&(W.previousState=W.currentState);W.currentState=P;W.previousState&&W.previousState.value?(P=Math.max(0,Mi(P.timestamp,W.previousState.timestamp)),W.totalTime+=P,W.consecutiveTime+=P):W.consecutiveTime=0;return W};
nK7=function(){return qE(Ni(BJm,{totalTime:0,consecutiveTime:0}),Vn(function(W){return W.totalTime}))};
Yh7=function(){return qE(Ni(BJm,{totalTime:0,consecutiveTime:0}),Vn(function(W){return W.consecutiveTime}))};
ylm=function(W,P){return function(x){return Jlo(P.map(function(I){return x.pipe(W(I))}))}};
KYC=function(){var W;return qE(Fb(function(P){return void(W=P.timestamp)}),Yh7(),Vn(function(P){return{timestamp:W,
value:Math.round(P)}}))};
Z5o=function(W,P){return YK(W.topWindowViewportExternalGeometry,P.topWindowViewportExternalGeometry)&&YK(W.elementGeometry,P.elementGeometry)&&YK(W.exposedViewportLocalGeometry,P.exposedViewportLocalGeometry)&&YK(W.intersectionGeometry,P.intersectionGeometry)&&W.elementGeometrySourceName===P.elementGeometrySourceName&&W.measurementRequests===P.measurementRequests&&W.viewportGeometrySourceName===P.viewportGeometrySourceName&&W.viewportLocalAppOffset.x===P.viewportLocalAppOffset.x&&W.viewportLocalAppOffset.y===
P.viewportLocalAppOffset.y};
uPS=function(W,P){return function(x){return function(I){var O=I.pipe(UT(new IQ),mJ());I=x.element.pipe(at());O=O.pipe(Vn(function(B){return B.value}));
return Qn([I,O,P]).pipe(Vn(function(B){var Y=_.n(B);B=Y.next().value;var K=Y.next().value;Y=Y.next().value;if(B.ref===void 0)var Z={top:0,left:0,width:0,height:0};else{Z=B.ref.getBoundingClientRect();var d=B.ref,v=W.global,m=new _.Al(0,0),t=zD(_.GD(d));if(Eh(t,"parent")){do{if(t==v)var C=_.gJ(d);else C=oK7(d),C=new _.Al(C.left,C.top);m.x+=C.x;m.y+=C.y}while(t&&t!=v&&t!=t.parent&&(d=t.frameElement)&&(t=t.parent))}Z={top:m.y,left:m.x,width:Z.width,height:Z.height}}Z=vDA(Z,K.viewportLocalAppOffset);
v=stC(Z,K.exposedViewportLocalGeometry);m=W.timeProvider.now();t=Object;d=t.assign;if(Y!==2||W.inCrossDomainIframe||v.width<=0||v.height<=0)var z=!1;else try{var D=W.document.elementFromPoint(v.left+v.width/2,v.top+v.height/2);z=D?!Sh8(D,B):!1}catch(w){z=!1}return{timestamp:m,value:d.call(t,{},K,{elementGeometrySourceName:"geo",intersectionGeometry:z?DC.intersectionGeometry:v,elementGeometry:Z})}}),Oh(W.queue))}}};
Sh8=function(W,P,x){x=x===void 0?0:x;return W.ref===void 0||P.ref===void 0?!1:W.ref===P.ref||_.MT(P.ref,function(I){return I===W.ref})?!0:P.ref.ownerDocument&&P.ref.ownerDocument.defaultView&&P.ref.ownerDocument.defaultView===P.ref.ownerDocument.defaultView.top?!1:x<10&&P.ref.ownerDocument&&P.ref.ownerDocument.defaultView&&P.ref.ownerDocument.defaultView.frameElement?Sh8(W,new $K(P.ref.ownerDocument.defaultView.frameElement),x+1):!0};
vKR=function(W){return function(P){return P.pipe(W.ResizeObserver?dTC(W):sQx(W),fl(1),mJ())}};
dTC=function(W){return function(P){return P.pipe(r_(function(x){var I=W.ResizeObserver;if(!I||x.ref===void 0)return Su(DC.elementGeometry);var O=(new Lz(function(B){function Y(){x.ref!==void 0&&K.unobserve(x.ref);K.disconnect();Z.unsubscribe()}
if(x.ref===void 0)return B.complete(),function(){};
var K=new I(function(d){d.forEach(function(v){B.next(v)})});
K.observe(x.ref);var Z=x.JSC$7265_released.subscribe(Y);return Y})).pipe(w_(W.performanceMonitor,736),Vn(function(B){return B.contentRect}));
return g_(Su(x.ref.getBoundingClientRect()),O)}),at(YK))}};
sQx=function(W){return function(P){var x=P.pipe(LJx(W)),I=W.onResize;x=g_(P.pipe(Vn(function(){return R5G("resize")})),x,I);
return Qn(P,x).pipe(w_(W.performanceMonitor,737),Vn(function(O){O=_.n(O).next().value;return O.ref===void 0?void 0:O.ref.getBoundingClientRect()}),ICt(),at(YK))}};
tUt=function(W,P){var x=mTo(W,P).pipe(fl(1),mJ());return function(I){return function(O){O=O.pipe(r_(function(B){return B.element}),at());
return Qn([x,O]).pipe(r_(function(B){var Y=_.n(B);B=Y.next().value;Y=Y.next().value;return VUR(W,B.intersectionObserver,vKR(W),B.observations,I,B.flushRecords,Y)}),Oh(W.queue))}}};
p9C=function(W){return Vn(function(P){return P.value.viewportGeometrySourceName!=="nio"?P:Object.assign({},P,{value:Object.assign({},P.value,{exposedViewportLocalGeometry:wJ(W,!0),topWindowViewportExternalGeometry:wJ(W,!0)})})})};
jQR=function(W,P){return Su(P).pipe(W,Vn(function(){return P}))};
mTo=function(W,P){return W.timeProvider.timeline!==QQm?d_(new tl(2)):W.MutationObserver?typeof IntersectionObserver==="undefined"?d_(new tl(0)):(new Lz(function(x){var I=new IQ,O=new hl(I.next.bind(I),{threshold:[].concat(_.ju(P))});x.next({observations:I.pipe(w_(W.performanceMonitor,735)),intersectionObserver:O,flushRecords:function(B){B=O.takeRecords(B);B.length>0&&I.next(B)}})})).pipe(cr(1),fl(1),mJ()):d_(new tl(1))};
Czd=function(W){return c28(W.sort(function(P,x){return P.time-x.time}),TDA)};
VUR=function(W,P,x,I,O,B,Y){return new Lz(function(K){function Z(){z||(z=!0,Y.ref!==void 0&&P.unobserve(O,Y.ref),v.unsubscribe(),C.unsubscribe(),t.unsubscribe(),D.unsubscribe())}
if(Y.ref!==void 0){Ald(P,O);P.observe(O,Y.ref);var d=new H9({timestamp:W.timeProvider.now(),value:Object.assign({},DC,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),v=I.pipe(Ao(function(w){return Czd(w)}),Du(function(w){return w.target===Y.ref}),Vn(function(w){return{timestamp:new $D(w.time,QQm),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:w.rootBounds||eU,topWindowViewportExternalGeometry:w.rootBounds||wJ(W,!0),measurementRequests:m,elementGeometrySourceName:"nio",intersectionGeometry:w.intersectionRect,elementGeometry:w.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:w.isIntersecting,isV2Visible:w.isVisible}}}),UT(d),mJ()).subscribe(K),m=new IQ,t=m.subscribe(function(){B(O);
K.next({timestamp:W.timeProvider.now(),value:d.value.value});Y.ref!==void 0&&(P.unobserve(O,Y.ref),P.observe(O,Y.ref))}),C=jQR(x,Y).subscribe(function(){m.next()}),z=!1,D=Y.JSC$7265_released.subscribe(function(){return Z()});
return Z}})};
z6U=function(W,P){var x=W.getOnBackgrounded().pipe(Vn(function(){return"b"}));
return dEW(P,x).pipe(cr(1),Jl(W.queue))};
aQ=function(W){return function(P){var x;return P.pipe(Fb(function(I){return void(x=I.timestamp)}),Vn(function(I){return I.value}),W,Vn(function(I){return{timestamp:x,
value:I}}))}};
GDR=function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.elementGeometry.width*W.elementGeometry.height)};
bz=function(W,P,x){x=x===void 0?function(I,O){return I===O}:x;
return W.timestamp.equals(P.timestamp)&&x(W.value,P.value)};
Uh=function(W,P){return P.pipe(Vn(function(x){return new kK(W.timeProvider,{timestamp:W.timeProvider.now(),value:x})}))};
EKo=function(W){return function(P){return P.pipe(M57(W),Vn(function(x){var I=_.n(x);x=I.next().value;I=I.next().value;var O=x.value;return{timestamp:x.timestamp,value:O>=1?!0:O<=0?!1:O>=I}}))}};
DTW=function(){return qE(Du(function(W,P){return P>0}),gKm,lt(-1),at())};
MU7=function(W,P,x){return W?Qn([P,x]).pipe(Du(function(I){var O=_.n(I);I=O.next().value;O=O.next().value;return I.timestamp.equals(O.timestamp)}),Vn(function(I){var O=_.n(I);
I=O.next().value;O=O.next().value;return I.value>O.value?I:O})):P};
h6C=function(W){return function(P){var x=P.pipe($TR),I=P.pipe(w9G);return W instanceof Lz?W.pipe(r_(function(O){return MU7(O,x,I)})):MU7(W.value,x,I)}};
NJm=function(W,P,x,I){var O=I.geometryIsOccluded,B=I.exposureThreshold,Y=I.wasLargeAdAtRender,K=I.allowLargeAdThreshold,Z=I.largeAdExposureThreshold,d=I.mayUseViewportShareExposure,v=I.hasMeasurementStarted;I=I.useIntersectionObserverV2;P=H5C(W,x,P);x=e67(W,x);I=clG(P,I);var m=aCG(W,O,d,P),t=m.pipe(Vn(function(Io){return Io.value}),at(),Jl(W),Ni(function(Io,F){return Math.max(Io,F)},0)),C=m.pipe(Vn(function(Io){return Io.value}),DTW(),Jl(W)),z=P.pipe(b5m,Vn(function(Io){return Io.value}),cr(2),at(),
Jl(W));
Y=kD7(W,P,Y,K);var D=Y.pipe(lt(!1),at(),Vn(function(Io){return Io?Z:B}));
K=m.pipe(EKo(D),at(),Jl(W));var w=Qn([K,P]).pipe(Du(function(Io){var F=_.n(Io);Io=F.next().value;F=F.next().value;return Io.timestamp.equals(F.timestamp)}),Vn(function(Io){var F=_.n(Io);
Io=F.next().value;F=F.next().value;return{visible:Io.value,geometry:F.value.elementGeometry}}),Ni(function(Io,F){return!F.visible&&Io.visible?Io:F},{visible:!1,
geometry:eU}),Vn(function(Io){return Io.geometry}),lt(eU),Jl(W),at(YK));
d=d instanceof Lz?d.pipe(at(),eu()):V7;D=Qn([d,D]).pipe(eu());var a=P.pipe(Du(function(Io){return Io.value.viewportGeometrySourceName!=="ns"&&Io.value.elementGeometrySourceName!=="ns"}),Ni(function(Io){return Io+1},0),lt(0),Jl(W)),k=x.pipe(eu(!0),lt(!1),Jl(W));
k=Qn([v,k]).pipe(Vn(function(Io){var F=_.n(Io);Io=F.next().value;F=F.next().value;return Io&&!F}),Jl(W));
var T=P.pipe(UTU,at()),N=T.pipe(Vn(function(Io){return Io.value}),Ni(function(Io,F){return Math.max(Io,F)},0),at(),Jl(W));
W=T.pipe(Vn(function(Io){return Io.value}),DTW(),Jl(W));
return{shouldResetExposureSignals:d,shouldResetViewabilitySignals:D,geometrySignals:{readyGeometryWithDefault:P,measurementStrategy:P.pipe(X98),creativePosition:w.pipe(at(YK)),visible:K.pipe(at(bz)),timestampedExposure:m.pipe(at(bz)),maximumExposure:t,minimumExposure:C,browserSize:P.pipe(fCU,at(_.oW)),timestampedScreenShare:T,maxScreenShare:N,minScreenShare:W,geometricMeasurementErrors:x,measurementRequests:P.pipe(Vn(function(Io){return Io.value.measurementRequests})),
isLargeAd:Y,geometryIsOccluded:O,hasMeasurementStarted:v,geometryMeasurable:k,validMeasurementCount:a,loadTimeExposure:z,v2VisibilityBitVector:I}}};
e67=function(W,P){return P.pipe(Du(function(){return!1}),Vn(function(x){return x}),ho(function(x){return XP(new n5(x),W)}))};
H5C=function(W,P,x){return P.pipe(S0U(V7),Jl(W)).pipe(at(function(I,O){return bz(I,O,Z5o)}),lt({timestamp:x.now(),
value:DC}),Jl(W))};
aCG=function(W,P,x,I){x=I.pipe(h6C(x),aQ(Vn(function(O){return Math.round(O*100)/100})),Jl(W));
return P instanceof n5?x:Qn([x,P]).pipe(Vn(function(O){var B=_.n(O);O=B.next().value;B=B.next().value;return{timestamp:B.timestamp.maximum(O.timestamp),value:B.value?0:O.value}}),at(bz),Jl(W))};
kD7=function(W,P,x,I){P=[P.pipe(Vn(function(O){return O.value.elementGeometry.width*O.value.elementGeometry.height>=242500}))];
x instanceof Lz&&P.push(x.pipe(Vn(function(O){return!!O})));
x=Qn(P);return I?x.pipe(Vn(function(O){return O.some(function(B){return B})}),lt(!1),at(),Jl(W)):XP(new n5(!1),W)};
clG=function(W,P){W=Qn([W,P]).pipe(Vn(function(O){var B=_.n(O);O=B.next().value;if(B.next().value&&O.value.isIntersecting)return O.value.isV2Visible}),at());
var x=W.pipe(Vn(function(O){return O===void 0?!0:O}),Ni(function(O,B){return O||!B},!1)),I=W.pipe(Ni(function(O,B){return B===void 0?O:B?!1:O!=null?O:!0},void 0),Vn(function(O){return!!O}));
return Qn([P,s$W(W,x,I)]).pipe(Vn(function(O){var B=_.n(O);O=B.next().value;var Y=_.n(B.next().value);B=Y.next().value;var K=Y.next().value;Y=Y.next().value;var Z=0;if(!O)return 0;if(B===void 0)return 16;B&&(Z|=1);B||(Z|=2);K&&(Z|=4);Y&&(Z|=8);return Z}))};
FYo=function(W,P,x,I,O){var B=lC8.timeThresholdMs;var Y=Y===void 0?new TJR(P,I):Y;return(new Lz(function(K){var Z=x.pipe(lt(void 0),r_(function(){return rlW(O)})).pipe(Vn(function(d){var v=d.value;
d=d.timestamp;var m=v.visible;v=v.consecutiveViewTime;var t=v>=B;t||!m?i5t(Y):(d=Math.max(0,Mi(P.now(),d)),R6C(Y,Math.max(0,B-v-d)));return t}),Ni(function(d,v){return v||d},!1),at()).subscribe(K);
return function(){Y.dispose();Z.unsubscribe()}})).pipe(Rt(function(K){return!K},!0),Jl(W))};
rlW=function(W){return Jlo([W,W.pipe(KYC())]).pipe(Vn(function(P){var x=_.n(P);P=x.next().value;x=x.next().value;return{timestamp:P.timestamp,value:{visible:P.value,consecutiveViewTime:x.value}}}),at(function(P,x){return bz(P,x,function(I,O){return I.consecutiveViewTime===O.consecutiveViewTime&&I.visible===O.visible})}))};
qhR=function(){return qE(Yh7(),Ni(function(W,P){return Math.max(W,P)},0),Vn(function(W){return Math.round(W)}))};
LYW=function(W){return qE(EKo(Su(W)),qhR())};
Wxt=function(W,P){return P instanceof Lz?P.pipe(r_(function(x){return(x=x?15:null)?d_(new tl(x)):W})):(P=P.value?15:null)?d_(new tl(P)):W};
PZt=function(W){var P=new tl(13);if(W.length<1)return{chain:ET,capturedErrors:ET};var x=new IQ,I=W[0];return{chain:W.slice(1).reduce(function(O,B){return O.pipe(ho(function(Y){x.next(Y);return B}))},I).pipe(ho(function(O){x.next(O);
return d_(P)}),UT(new IQ),mJ()),
capturedErrors:x}};
xpU=function(W,P){var x=W.pipe(UT(new IQ),mJ());return r_(function(I){return x.pipe(P(I))})};
OUt=function(W,P){if(W.inCrossDomainIframe)return d_(new tl(6));var x=new IQ;return g_(Su({}),P,x).pipe(Vn(function(){return{timestamp:W.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:IVU(W),topWindowViewportExternalGeometry:wJ(W,!0),measurementRequests:x,viewportLocalAppOffset:{x:0,y:0}}}}),Oh(W.queue))};
IVU=function(W){var P=wJ(W,!1);if(!W.inIframe||!Jzo(W.global.parent)||W.global.parent===W.global)return P;var x=new f5(W.global.parent,W.debugChannel);x.beaconFactory=W.beaconFactory;x=IVU(x);W=W.global.frameElement.getBoundingClientRect();return stC(vDA(stC(x,W),{x:P.left-W.left,y:P.top-W.top}),P)};
Bvm=function(W){if(W.prerendering)return 3;var P;return(P={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[W.visibilityState||W.webkitVisibilityState||W.mozVisibilityState||""])!=null?P:0};
njA=function(W){return W.document.JSC$7276_onVisibilityChange.pipe(Vn(function(P){return P==="visible"}),at(),Jl(W.queue))};
YWo=function(W,P,x){var I;return P.pipe(at(),r_(function(O){return x.pipe(Vn(function(){if(!I){I=!0;try{O.next()}finally{I=!1}}return!0}))}),lt(!1),Jl(W.queue))};
yzR=function(W){return qE(aQ(Vn(function(P){return P>=1?!0:P<=0?!1:P>=W})),nK7(),Vn(function(P){return Math.round(P)}))};
ZUS=function(W,P,x,I,O){var B=Kx8;if(B.length>1)for(var Y=0;Y<B.length-1;Y++)if(B[Y]<B[Y+1])throw Error();Y=O.pipe(lt(void 0),r_(function(){return x.pipe(KYC())}),at(),Jl(W));
O=O.pipe(lt(void 0),r_(function(){return x.pipe(qhR())}),at(),Jl(W));
return{totalMeasurementTime:I.pipe(lt(void 0),r_(function(){return P.pipe(Vn(function(K){return{timestamp:K.timestamp,value:!0}}),nK7())}),at(),Jl(W)),
totalUnviewedTime:I.pipe(lt(void 0),r_(function(){return P.pipe(Vn(function(K){return{timestamp:K.timestamp,value:K.value===0}}),nK7())}),at(),Jl(W)),
maxTimeOnScreen:I.pipe(lt(void 0),r_(function(){return P.pipe(ylm(LYW,B))}),at(_.oW),Jl(W)),
timeOnScreen:I.pipe(lt(void 0),r_(function(){return P.pipe(ylm(yzR,B),Vn(function(K){return K.map(function(Z,d){return d>0?Z-K[d-1]:Z})}))}),at(_.oW),Jl(W)),
maxConsecutiveViewTime:O,consecutiveViewTime:Y.pipe(at(bz),Jl(W))}};
SWt=function(W){var P=!0;P=P===void 0?!1:P;return qE(r_(function(x){return ojU(W.document,x,P)}),Jl(W.queue))};
uJS=function(W,P,x){var I=x.pipe(Vn(function(O){return{value:O,timestamp:W.timeProvider.now()}}),at(bz));
return P instanceof Lz?P.pipe(at(),r_(function(O){return O?XP(new n5({value:!1,timestamp:W.timeProvider.now()}),W.queue):I})):P.value===!1?I:new n5(!1)};
dpG=function(W,P,x,I,O,B,Y){var K=lC8;P=P instanceof Lz?P.pipe(lt(!1),at()):P;var Z=!W.isMobile();x=uJS(W,x,I);W=Y.measurableCreative.pipe(O5m(W.queue));return Object.assign({},K,{geometryIsOccluded:x,wasLargeAdAtRender:O,allowLargeAdThreshold:Z,mayUseViewportShareExposure:P,hasMeasurementStarted:W,useIntersectionObserverV2:B})};
vjU=function(W,P,x,I,O,B){var Y=1;B=B===void 0?!0:B;Y=Y===void 0?.01:Y;var K=K===void 0?W.timeProvider.intervalObservable(100).pipe(Jl(W.queue)):K;return W.performanceMonitor.timeExecution(916,function(){return sEd(W,P.pipe(Oh(W.queue)),x.pipe(Oh(W.queue)),I,O,B,Y,K)})()};
sEd=function(W,P,x,I,O,B,Y,K){var Z=njA(W).pipe(Vn(function(v){return!v})),d=new mpG(W,[new VaC(W,Kx8),
new tao(W,K)]);K=roS(pnC,jEm);return kEm(W,P,function(v,m){var t=XP(new n5(m.element),v.queue).pipe(SWt(v),Jl(v.queue)),C={loadedElement:t,shouldMeasure:t.pipe(eu(!0)),measurableCreative:t.pipe(Vn(function(Io){var F=F===void 0?Symbol():F;return Object.freeze({symbol:F,element:XP(new n5(Io),v.queue)})})),
creativeSearchResult:XP(new n5("mue"),v.queue)},z=new n5(!1),D=new n5(!1),w=new n5(17),a=new n5(!1),k=new n5(!1),T=XP(NT,v.queue);z=d.buildGeometrySource(C,{inApp:z,useV2:!1,requestSource:XP(w,v.queue)}).geometrySource;C=dpG(v,a,D,Z,k,T,C);D=NJm(v.queue,v.timeProvider,z,C);C=D.geometrySignals;a=D.shouldResetViewabilitySignals;D=ZUS(v.queue,C.timestampedExposure,C.visible,D.shouldResetExposureSignals,a);a=FYo(v.queue,v.timeProvider,a,C.measurementRequests,C.visible);k=x.pipe(Du(function(Io){return Io===
m.element.ref}),Vn(function(){return"ur"}));
T=t57(v.timeProvider,O).pipe(eu("t"));k=z6U(v,g_(k,T));T=YWo(v,C.measurementRequests,k.pipe(Du(function(Io){return Io!==null})));
z=k.pipe(Du(function(Io){return Io!==null}),Vn(function(){return Bvm(v.global.document)===1}));
var N=QEU(v.document);return Object.assign({},{beaconFactory:new n5(v.beaconFactory),context:new n5(v),inferredPingId:new n5("lidar2"),timeOnScreenPingId:new n5("lidartos"),binaryContext:new n5(17),binaryVersion:new n5(I),requestSource:w,contextValidationErrors:new n5(v.validate()?null:new p5),contextVisibilityKnown:new n5(N),payloadMapper:new n5(luA),endOfSessionReason:k,timeOnScreenReason:k,requestMeasurementOnEndOfSession:T,hasImpressionFired:CZt,crossDomainIframeState:new n5(v.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:NT,inFetchLaterBeaconExperiment:NT,isTurtlex:NT,turtlexReportEventData:new n5(""),reportFencedFrameEvent:V7,isViewableAttributionEnabled:NT,inViewableAttributionExperiment:new n5(0),fetchBeaconFactory:V7,supportsPendingBeacon:NT,supportsFetchLater:NT,emit:new n5(FJU),beginToRenderEvent:new n5(Symbol()),activeViewUnmeasurableEvent:new n5(Symbol()),activeViewViewableEvent:new n5(Symbol()),creativeFound:CZt,immediateUrlPrefixes:new n5(m.immediateUrls),timeOnScreenUrlPrefixes:new n5(m.timeOnScreenUrls),
cpmavUrls:V7,viewableRelayUrls:V7,measurementDeferralState:new n5(2),urlSerializer:new n5(xTS),viewUrlSerializer:new n5(AzR),isCreativeLoaded:t.pipe(O5m(v.queue)),pageVisible:Z.pipe(Vn(function(Io){return!Io})),
eosPageVisible:z,timestampedExposureHistory:C.timestampedExposure.pipe(Ni(function(Io,F){Io.push(F);return Io},[]))},C,{viewable:Uh(v,a),
maxTimeOnScreen:Uh(v,D.maxTimeOnScreen),timeOnScreen:Uh(v,D.timeOnScreen),maxConsecutiveViewTime:Uh(v,D.maxConsecutiveViewTime),consecutiveViewTime:D.consecutiveViewTime.pipe(Vn(function(Io){return new kK(v.timeProvider,Io)})),
totalMeasurementTime:Uh(v,D.totalMeasurementTime),totalUnviewedTime:Uh(v,D.totalUnviewedTime),userAgentClientHints:izR(v),clientOrderPingCounter:new n5(new Xro)})},T_o(W,Y),ilm(B?RYU(K,zI7):RYU(K,GFo),Ejd))};
gjA=function(W){var P=_.tH.apply(1,arguments).filter(Boolean).join("&");if(!P)return W;var x=W.match(/[?&]adurl=/);return x?W.slice(0,x.index+1)+P+"&"+W.slice(x.index+1):W+(W.indexOf("?")<0?"?":"&")+P};
lz=function(W,P){return P?"&"+W+"="+encodeURIComponent(P):""};
DpR=function(){try{var W,P;return!!((W=window)==null?0:(P=W.top)==null?0:P.location.href)&&!1}catch(x){return!0}};
_.TD=function(W){W&&typeof W.dispose=="function"&&W.dispose()};
_.rJ=function(W){for(var P=0,x=arguments.length;P<x;++P){var I=arguments[P];_.xi(I)?_.rJ.apply(null,I):_.TD(I)}};
$pC=function(){var W=MaU();W=W===void 0?"bevasrsg":W;return new Promise(function(P){var x=window===window.top?window:DpR()?window:window.top,I=x[W],O;((O=I)==null?0:O.bevasrs)?P(new iz(I.bevasrs)):(I||(I={},I=(I.nqfbel=[],I),x[W]=I),I.nqfbel.push(function(B){P(new iz(B))}))})};
wnW=function(W){var P={c:W.za,e:W.b8O,mc:W.tJF,me:W.bFW};W.vL&&(P.co={c:W.vL.drT,a:W.vL.tzd,s:W.vL.g4A});return P};
hIC=function(W){var P,x,I={za:W.c,b8O:W.e,tJF:(P=W.mc)!=null?P:!1,bFW:(x=W.me)!=null?x:!1};W.co&&(I.vL={drT:W.co.c,tzd:W.co.a,g4A:W.co.s});return I};
HUm=function(W){return function(){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,W(),2);P=x.yieldResult;return x.return({f:function(){return P.ugT()},
c:function(I){return P.aOu(I)},
m:function(I){return P.gv(hIC(I))},
mws:function(I){return P.x0(hIC(I))}})})}};
eIm=function(W,P){var x=MaU();x=x===void 0?"bevasrsg":x;P={s:function(B){var Y;return W.snapshot(Object.assign({},B.c&&{za:B.c},B.s&&{wra:B.s},{aHR:(Y=B.p)!=null?Y:!0}))},
e:function(B){var Y;return void((Y=W.vxc)==null?void 0:Y.call(W,B))},
c:function(B,Y){return W.uJQ(B,Y)},
p:W.fPT,l:function(){return W.b9w()},
wpc:P?HUm(P):void 0};var I=window===window.top?window:DpR()?window:window.top,O=I[x];if(O){O.bevasrs=P;if(O.nqfbel!==void 0)for(x=_.n(O.nqfbel),I=x.next();!I.done;I=x.next())I=I.value,I(P);O.nqfbel=void 0}else O={},O=(O.bevasrs=P,O.nqfbel=void 0,O),I[x]=O};
aVx=function(W){var P=P===void 0?49:P;var x=[];_.RQ(W,czC,6,_.qT()).forEach(function(I){_.L5(I,2)<=P&&x.push(_.L5(I,1))});
return x};
bU8=function(W){var P=P===void 0?49:P;var x=[];_.RQ(W,czC,6,_.qT()).forEach(function(I){_.L5(I,2)>P&&x.push(_.L5(I,1))});
return x};
kFU=function(W){W.then(function(){},function(){})};
Wn=function(W){return{fieldType:1,fieldName:W}};
Pn=function(W){return{fieldType:2,fieldName:W}};
_.xj=function(W){return{fieldType:3,fieldName:W}};
Upd=function(){function W(){O[0]=1732584193;O[1]=4023233417;O[2]=2562383102;O[3]=271733878;O[4]=3285377520;v=d=0}
function P(m){for(var t=Y,C=0;C<64;C+=4)t[C/4]=m[C]<<24|m[C+1]<<16|m[C+2]<<8|m[C+3];for(C=16;C<80;C++)m=t[C-3]^t[C-8]^t[C-14]^t[C-16],t[C]=(m<<1|m>>>31)&4294967295;m=O[0];var z=O[1],D=O[2],w=O[3],a=O[4];for(C=0;C<80;C++){if(C<40)if(C<20){var k=w^z&(D^w);var T=1518500249}else k=z^D^w,T=1859775393;else C<60?(k=z&D|w&(z|D),T=2400959708):(k=z^D^w,T=3395469782);k=((m<<5|m>>>27)&4294967295)+k+a+T+t[C]&4294967295;a=w;w=D;D=(z<<30|z>>>2)&4294967295;z=m;m=k}O[0]=O[0]+m&4294967295;O[1]=O[1]+z&4294967295;O[2]=
O[2]+D&4294967295;O[3]=O[3]+w&4294967295;O[4]=O[4]+a&4294967295}
function x(m,t){if(typeof m==="string"){m=unescape(encodeURIComponent(m));for(var C=[],z=0,D=m.length;z<D;++z)C.push(m.charCodeAt(z));m=C}t||(t=m.length);C=0;if(d==0)for(;C+64<t;)P(m.slice(C,C+64)),C+=64,v+=64;for(;C<t;)if(B[d++]=m[C++],v++,d==64)for(d=0,P(B);C+64<t;)P(m.slice(C,C+64)),C+=64,v+=64}
function I(){var m=[],t=v*8;d<56?x(K,56-d):x(K,64-(d-56));for(var C=63;C>=56;C--)B[C]=t&255,t>>>=8;P(B);for(C=t=0;C<5;C++)for(var z=24;z>=0;z-=8)m[t++]=O[C]>>z&255;return m}
for(var O=[],B=[],Y=[],K=[128],Z=1;Z<64;++Z)K[Z]=0;var d,v;W();return{reset:W,update:x,digest:I,digestString:function(){for(var m=I(),t="",C=0;C<m.length;C++)t+="0123456789ABCDEF".charAt(Math.floor(m[C]/16))+"0123456789ABCDEF".charAt(m[C]%16);return t}}};
rzU=function(W,P){P=P===void 0?Xno:P;if(!fVx){var x;W=(x=W.navigator)==null?void 0:x.userAgentData;if(!W||typeof W.getHighEntropyValues!=="function"||W.brands&&typeof W.brands.map!=="function")return Promise.reject(Error("ya"));NvA((W.brands||[]).map(function(O){var B=new lVU;B=_.SU(B,1,O.brand);return _.SU(B,2,O.version)}));
typeof W.mobile==="boolean"&&_.IE(TvC,2,W.mobile);fVx=W.getHighEntropyValues(P)}var I=new Set(P);return fVx.then(function(O){var B=TvC.clone();I.has("platform")&&_.SU(B,3,O.platform);I.has("platformVersion")&&_.SU(B,4,O.platformVersion);I.has("architecture")&&_.SU(B,5,O.architecture);I.has("model")&&_.SU(B,6,O.model);I.has("uaFullVersion")&&_.SU(B,7,O.uaFullVersion);return B.serialize()}).catch(function(){return TvC.serialize()})};
OW=function(W,P,x,I){this.initialValue_=W;this.maxValue_=P;this.currBaseValue_=this.currValue_=W;this.randomFactor_=x||0;this.backoffFactor_=I||2};
Jz=function(W){this.src=W;this.listeners={};this.typeCount_=0};
qW8=function(){for(var W;W=iUm.remove();){try{W.fn.call(W.scope)}catch(P){OU(P)}RIx.put(W)}FxA=!1};
_.Lx7=function(W){switch(W){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}};
W9d=function(W){switch(W){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""}};
_.P_m=function(){};
K9S=function(W){return{vky:new xS8(W),errorCount:new IlG(W),eventCount:new O4o(W),x1w:new JgU(W),shC:new B1W(W),cHF:new nVS(W),f7M:new Yw7(W),ogQ:new ygU(W)}};
Vjm=function(W,P,x,I){W=Z4C(oVW(Swt(new _.Bn(1828,"0"),W),new u8R));P.length&&dSm(W,sCt(new vVW,P));I!==void 0&&(W.destinationUrl=I);var O=new mS7(1828,"","",!1,"",W.build());_.nU(O,W);var B=new Yj({flush:function(Y){try{O.flush(Y)}catch(K){x(K)}}});
B.addOnDisposeCallback(function(){setTimeout(function(){try{B.snapshotAndFlush()}finally{O.dispose()}})});
B.invocationLimit=1E5;B.flushInterval=3E4;B.JSC$7692_flushTimer.setInterval(3E4);return B};
yk=function(){var W,P,x;return(x=(W=globalThis.performance)==null?void 0:(P=W.now)==null?void 0:P.call(W))!=null?x:Date.now()};
jCt=function(W,P,x){if(W.disable)return new tj8;P=P?aVx(P):[];if(x)return x.s6w(P),x.share();W={cD:W.cD,vga:W.zVG,oaK:W.a2b,destinationUrl:W.destinationUrl,tBQ:W.tBQ,pU:W.pU};x=P;x=x===void 0?[]:x;return new pJR(W,x)};
_.QC7=function(W){if(!W)return null;W=_.KU(W,4);return W===null||W===void 0?null:_.YH(W)};
flG=function(W,P){return P?C_A(P):W?Ago(W):Promise.resolve()};
C_A=function(W){return new Promise(function(P,x){var I=_.ZV("SCRIPT"),O=_.QC7(W);_.c6(I,O);I.onload=function(){_.oE(I);P()};
I.onerror=function(){_.oE(I);x(Error("Ja"))};
(Sa("HEAD")[0]||document.documentElement).appendChild(I)})};
Ago=function(W){return new Promise(function(P){var x=_.ZV("SCRIPT");if(W){var I=_.KU(W,6);I=I===null||I===void 0?null:_.hH(I)}else I=null;_.e5(x,I);(Sa("HEAD")[0]||document.documentElement).appendChild(x);_.oE(x);P()})};
uZ=function(W,P,x){var I,O=new Promise(function(B){I=setTimeout(B,P)});
return Promise.race([W.finally(function(){return void clearTimeout(I)}),
O.then(x)])};
N1R=function(W,P){try{return globalThis.sessionStorage.setItem(W,P),!0}catch(x){return!1}};
llS=function(W,P,x,I){P=P===void 0?0:P;x=x===void 0?W.length:x;var O=0;for(I&&(O=llS(I));P<x;P++)I=typeof W==="string"?W.charCodeAt(P):W[P],O=T1d(31,O)+I|0;return O};
rg8=function(W,P){return[llS(W,0,W.length>>1,P),llS(W,W.length>>1)]};
i48=function(W){var P=_.n(rg8(W,dv));W=P.next().value;P=P.next().value;return W.toString(16)+P.toString(16)};
R_x=function(W,P){var x=rg8(P);W=new Uint32Array(W.buffer);P=W[0];var I=_.n(x);x=I.next().value;I=I.next().value;for(var O=1;O<W.length;O+=2){for(var B=P,Y=O,K=x,Z=I,d=0;d<22;d++)Y=Y>>>8|Y<<24,Y+=B|0,Y^=K+38293,B=B<<3|B>>>29,B^=Y,Z=Z>>>8|Z<<24,Z+=K|0,Z^=d+38293,K=K<<3|K>>>29,K^=Z;B=[B,Y];W[O]^=B[0];O+1<W.length&&(W[O+1]^=B[1])}};
F98=function(W,P,x,I,O){var B=(4-(dv.length+x.length)%4)%4,Y=new Uint8Array(4+B+dv.length+4+x.length),K=new DataView(Y.buffer),Z=0;K.setUint32(Z,Math.random()*4294967295);Z=Z+4+B;Y.set(dv,Z);Z+=dv.length;K.setUint32(Z,O);Y.set(x,Z+4);R_x(Y,I);return W.insert(P,function(d){return void globalThis.sessionStorage.removeItem(d)})?N1R(P,_.L2(Y))?"s":"t":"i"};
qwm=function(W,P){var x=globalThis.sessionStorage.getItem(W);if(!x)return["m"];try{var I=_.up(x);R_x(I,P)}catch(O){return globalThis.sessionStorage.removeItem(W),["c"]}for(P=4;P<7&&I[P]===0;)P++;for(x=0;x<dv.length;x++)if(I[P++]!==dv[x])return globalThis.sessionStorage.removeItem(W),["d"];x=(new DataView(I.buffer)).getUint32(P);return Math.floor(Date.now()/1E3)>=x?(globalThis.sessionStorage.removeItem(W),["e"]):["a",new Uint8Array(I.buffer,P+4)]};
L9C=function(W){return globalThis.TextEncoder?(new TextEncoder).encode(W):_.sW(W)};
Wkm=function(W){var P=W,x;return function(){if(P){var I=P;P=void 0;x=I.apply(this,arguments)}return x}};
xRR=function(W){return ip(function(P){if(P instanceof W)return!0;var x,I,O=P==null?void 0:(x=P.ownerDocument)==null?void 0:(I=x.defaultView)==null?void 0:I[W.name];return PPA(O)&&P instanceof O})};
_.Vk=function(W,P,x){_.vn.call(this);this.JSC$7902_listener_=W;this.JSC$7902_interval_=P||0;this.handler_=x;this.callback_=(0,_.mx)(this.JSC$7904_doAction_,this)};
_.tz=function(W){W=I$U(W);return _.YH(W)};
I$U=function(W){return W===null?"null":W===void 0?"undefined":W};
JQA=function(W){if(W&&W.focus)if(W!==document.activeElement)W.focus();else return OXW(function(){return _.y(function(P){document.activeElement&&document.activeElement.blur();return P.return(OXW(function(){W.focus()}))})})};
_.Bom=function(W){var P=P===void 0?5:P;setTimeout(function(){var x;return _.y(function(I){I.nextAddress==1&&(x=document.activeElement);if(I.nextAddress!=5)return(document.activeElement===x||document.activeElement===document.body)&&P>=0&&W?_.S(I,JQA(W),5):I.jumpTo(0);if(document.activeElement===W)return I.return();W=W.parentElement;--P;return I.jumpTo(2)})},15)};
OXW=function(W){return new Promise(function(P){requestAnimationFrame(function(){P(W())})})};
YVR=function(W){if(_.pU)W(_.pU);else{var P;((P=n$x)!=null?P:n$x=[]).push(W)}};
Qk=function(){!_.pU&&_.ja&&_.yQA(_.ja());return _.pU};
_.yQA=function(W){_.pU=W;var P;(P=n$x)==null||P.forEach(YVR);n$x=void 0};
_.CU=function(W){_.pU&&_.pU.beforeLoadModuleCode(W)};
_.Az=function(){_.pU&&_.pU.JSC$8853_setLoaded()};
zF=function(W){return Hy(W)?Number(W):String(W)};
Kkm=function(W){this.action=W;this.wfv=!1};
ZXt=function(W,P){Kkm.call(this,"set-drive-options");this.appId=W;this.appOrigin=P};
o$8=function(W){Kkm.call(this,"visibility");this.visible=W};
SVA=function(W,P,x){GF.call(this,W,P,x)};
uYC=function(W){gv.call(this,W)};
dRG=function(W){W=W&&W.getWindow()||window;return W.gadgets&&W.gadgets.rpc};
v$t=function(W,P){var x=P&&P.getWindow()||window;if(dRG(P))W();else if(slW)slW.push(W);else var I=slW=[W],O=x.setInterval(function(){if(dRG(P)){x.clearInterval(O);for(var B=0;B<I.length;B++)I[B]();slW=null}},100)};
VLx=function(W,P){var x=new DV(W);_.nU(P,x);var I={passive:!1};P.listen(x,"mousewheel",function(O){return void mRS(W,O)},I).listen(W,"scroll",function(O){return void mRS(W,O)},I)};
mRS=function(W,P){var x;a:{for(x=P.target;x;){if(x.nodeType==1){var I=_.Mp(x,"overflowY");if(I=="auto"||I=="scroll")break a}x=x.parentNode}x=null}if(!x||!_.wv(W,x)||x.scrollHeight==x.clientHeight||P.deltaY>0&&Math.abs(x.scrollTop-(x.scrollHeight-x.clientHeight))<=1||P.deltaY<0&&x.scrollTop==0)P.preventDefault(),P.stopPropagation()};
kj=function(W,P,x,I,O,B,Y,K,Z){K=K===void 0?!1:K;Z=Z===void 0?!1:Z;GF.call(this,void 0,void 0,void 0);GF.call(this,B?B+" picker modal-dialog":"picker modal-dialog",!0,x);_.hz(W,"protocol");this.iframeManager_=new tLC;this.targetId_=Hn();this.rpcToken_=Hn();W=_.ea(W);_.cn(W,"hostId");x=_.cn(W,"parent");this.useGapi_=!Z&&!0||(x==null?void 0:x.includes("onepick.corp.google.com"));K&&_.aE(W,"fv2","true");this.setUrl(W.toString());this.preferredDialogWidth_=I;this.preferredDialogHeight_=O;I!==void 0||
O!==void 0?I=!0:(I=_.cn(_.ea(W.toString()),"hostId"),po7||(po7=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),I=!po7.has(I));this.autoSizeDialog_=I;this.JSC$8092_gadgetsDomHelper_=Y||this.JSC$8043_dom_;P&&(Y=this.JSC$8092_gadgetsDomHelper_,P=_.cn(_.ea(this.JSC$8094_url_),"grugl")=="true"?jlm:QlU,dRG(Y)||(Y=Y||oQ(document),I=Y.createElement("SCRIPT"),_.c6(I,P),I.type="text/javascript",Y.JSC$7231_document_.body.appendChild(I)));
W=W.toString();P=null;Y=W.indexOf("/picker?");Y>-1?P=W.substring(0,Y+8-1):yG(W,"/picker")&&(P=W);P&&this.setRelayUrl(P+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(W=this.buttons_,W.JSC$8077_element_=this.buttonEl_,W.render()):_.a$(this.buttonEl_,CPU),_.bZ(this.buttonEl_,!!this.buttons_))};
_.E$x=function(W){var P=P===void 0?AQm:P;var x=_.nM(W),I=function(B){B=_.n(B);B.next();B=UW(B);return P(x,B)},O=function(B){var Y=_.n(B);
B=Y.next().value;Y=UW(Y);return W.apply(B,Y)};
return function(){var B=_.tH.apply(0,arguments),Y=this||_.xW,K=zio.get(Y);K||(K={},zio.set(Y,K));return GOR(K,[this].concat(_.ju(B)),O,I)}};
XJ=function(W){var P={};W=W.replace(/\r/g,"").split("\n");for(var x=0;x<W.length;x++){var I=W[x],O=I.indexOf(":");O<0||(P[I.substring(0,O)]=I.substring(O+2,I.length))}return P};
g$R=function(W,P,x){x=x===void 0?function(){}:x;
P=_.n(P);for(var I=P.next();!I.done;I=P.next()){var O=_.n(I.value);I=O.next().value;O=O.next().value;if(I instanceof Array&&I.includes(W)||I===W)return O()}return x()};
fU=function(W,P,x){x=x===void 0?function(){}:x;
return W?P():x()};
_.MLR=function(W){var P;return((P=DRd.documentOverride)!=null?P:W).__wizdispatcher};
lZ=function(W){var P=Np;Np=W;return P};
woS=function(W,P){var x;if((x=W)==null?0:x.isDisposed)throw Error("nb`"+String(W.debugName));for(;W!==void 0;){x=W;if(x.retrieve)return x.retrieve(P,{optional:!0});W=W.parent}return $Rm};
TF=function(W){return{"\u0275prov":{providedIn:"root",token:Symbol(W),factory:void 0,value:void 0}}};
hiS=function(W){var P=lZ(W);W={};return W[Symbol.dispose]=function(){lZ(P)},W};
HXW=function(W,P){W.disposables||(W.disposables=[]);W.disposables.push(P)};
rv=function(W){var P=Np;P&&!P.isDisposed&&(HXW(P,W),W.parent=P)};
cQt=function(W){if(W.disposables){for(var P=_.n(W.disposables),x=P.next();!x.done;x=P.next())x=x.value,typeof x==="function"?x():eim(x);W.disposables.length=0}};
eim=function(W){if(!W.isDisposed){W.isDisposed=!0;var P;(P=W[Symbol.dispose])==null||P.call(W);delete W.parent;cQt(W)}};
Tom=function(W){var P={retrieve:function(x){switch(x.\u0275prov.token){case a$7.\u0275prov.token:var I=W.asyncDeps;break;case bXm.\u0275prov.token:I=W.rootElement;break;case kO7.\u0275prov.token:I=W.modelRootElement;break;case URd.\u0275prov.token:I=W.appContext;break;case XoR.\u0275prov.token:I=W.rendererData;break;case f$S.\u0275prov.token:I=W.injectingConstructor;break;case Noo.\u0275prov.token:I=W.dispatcher}if(I)x=I;else a:{for(I=P.parent;I;){var O=I;if(O.retrieve){x=O.retrieve(x);break a}I=
I.parent}I=x.\u0275prov.token;O=l$8[I];O!==void 0?x=O:(O=x.\u0275prov.providedIn,x.\u0275prov.factory?(x=x.\u0275prov.factory(),I&&O==="root"&&(l$8[I]=x)):x=$Rm)}return x}};
rv(P);return P};
rQ8=function(W){if(typeof document!=="undefined"&&document&&document.getElementById&&(W=document.getElementById(W))){var P=W.tagName.toUpperCase();if(P=="SCRIPT"||P=="LINK")return W}return null};
Ri8=function(W,P){if((W=W===void 0?"":W)&&P)throw Error("ub");var x="";var I=_.xW._F_jsUrl;(W=P||rQ8(W))&&(x=W.src?W.src:W.getAttribute("href"));if(I&&x){if(I!=x)throw Error("vb`"+I+"`"+x);x=I}else x=I||x;if(!iXR(x))throw Error("wb");return x};
Lko=function(){if(!FkG){FkG=!0;try{var W=Ri8(_.xW._F_jsUrl?"":"base-js")}catch(I){return}var P=qVd(iZ(W)),x=Object.keys(P);x.length!==0&&YVR(function(I){for(var O=_.n(x),B=O.next();!B.done;B=O.next()){B=B.value;for(var Y=_.n(Object.keys(P[B])),K=Y.next();!K.done;K=Y.next())I.addExtraEdge(B,K.value)}})}};
WWS=function(W,P,x){var I;return W&&P?W+"__"+P:(I=W!=null?W:P)!=null?I:x};
xM8=function(){var W=Object.assign({},PAx);Object.getOwnPropertyNames(PAx).forEach(function(P){FJ[P]!==void 0&&(W[P]=FJ[P])});
return W};
I8G=function(W,P){if(FJ.enablePerformanceTiming){var x,I;(I=(x=performance).mark)==null||I.call(x,W+"Start__"+P)}};
Ojm=function(W,P){if(FJ.enablePerformanceTiming){var x,I;(I=(x=performance).measure)==null||I.call(x,W+"__"+P,W+"Start__"+P)}};
BOS=function(W,P){var x=Object.create(JYR);x.debugName=P;!Np||rv(x);P=lZ(x);try{W(x)}finally{lZ(P)}return function(){return void eim(x)}};
Yy7=function(W){return qp(W)&&nOx in W};
yYA=function(W,P){return Object.is(W,P)};
WJ=function(W){var P=LU;LU=W;return P};
SyS=function(W){if(IC)throw Error("da");if(LU!==null){var P=LU.nextProducerIndex++;KW8(LU);P<LU.producerNode.length&&LU.producerNode[P]!==W&&Ow(LU)&&Zjt(LU.producerNode[P],LU.producerIndexOfThis[P]);LU.producerNode[P]!==W&&(LU.producerNode[P]=W,LU.producerIndexOfThis[P]=Ow(LU)?oOC(W,LU,P):0);LU.producerLastReadVersion[P]=W.version}};
s6W=function(W){if(!Ow(W)||W.dirty)if(W.dirty||W.lastCleanEpoch!==u98)(W.producerMustRecompute(W)||dMm(W))&&W.producerRecomputeValue(W),W.dirty=!1,W.lastCleanEpoch=u98};
vOW=function(W){if(W.liveConsumerNode!==void 0){var P=IC;IC=!0;try{for(var x=_.n(W.liveConsumerNode),I=x.next();!I.done;I=x.next()){var O=I.value;O.dirty||(W=void 0,O.dirty=!0,vOW(O),(W=O.consumerMarkedDirty)==null||W.call(O,O))}}finally{IC=P}}};
mMm=function(){var W;return((W=LU)==null?void 0:W.consumerAllowSignalWrites)!==!1};
VBG=function(W){W&&(W.nextProducerIndex=0);return WJ(W)};
tBS=function(W,P){WJ(P);if(W&&W.producerNode!==void 0&&W.producerIndexOfThis!==void 0&&W.producerLastReadVersion!==void 0){if(Ow(W))for(P=W.nextProducerIndex;P<W.producerNode.length;P++)Zjt(W.producerNode[P],W.producerIndexOfThis[P]);for(;W.producerNode.length>W.nextProducerIndex;)W.producerNode.pop(),W.producerLastReadVersion.pop(),W.producerIndexOfThis.pop()}};
dMm=function(W){KW8(W);for(var P=0;P<W.producerNode.length;P++){var x=W.producerNode[P],I=W.producerLastReadVersion[P];if(I!==x.version)return!0;s6W(x);if(I!==x.version)return!0}return!1};
oOC=function(W,P,x){pid(W);if(W.liveConsumerNode.length===0&&W.producerNode!==void 0)for(var I=0;I<W.producerNode.length;I++)W.producerIndexOfThis[I]=oOC(W.producerNode[I],W,I);W.liveConsumerIndexOfThis.push(x);return W.liveConsumerNode.push(P)-1};
Zjt=function(W,P){pid(W);if(W.liveConsumerNode.length===1&&W.producerNode!==void 0)for(var x=0;x<W.producerNode.length;x++)Zjt(W.producerNode[x],W.producerIndexOfThis[x]);x=W.liveConsumerNode.length-1;W.liveConsumerNode[P]=W.liveConsumerNode[x];W.liveConsumerIndexOfThis[P]=W.liveConsumerIndexOfThis[x];W.liveConsumerNode.length--;W.liveConsumerIndexOfThis.length--;P<W.liveConsumerNode.length&&(x=W.liveConsumerIndexOfThis[P],W=W.liveConsumerNode[P],KW8(W),W.producerIndexOfThis[x]=P)};
Ow=function(W){var P,x;return W.consumerIsAlwaysLive||((x=W==null?void 0:(P=W.liveConsumerNode)==null?void 0:P.length)!=null?x:0)>0};
KW8=function(W){W.producerNode!=null||(W.producerNode=[]);W.producerIndexOfThis!=null||(W.producerIndexOfThis=[]);W.producerLastReadVersion!=null||(W.producerLastReadVersion=[])};
pid=function(W){W.liveConsumerNode!=null||(W.liveConsumerNode=[]);W.liveConsumerIndexOfThis!=null||(W.liveConsumerIndexOfThis=[])};
Q6R=function(W){var P=Object.create(j6C);P.computation=W;W=function(){s6W(P);SyS(P);if(P.value===Jg)throw P.error;return P.value};
W[BJ]=P;return W};
AYC=function(W,P){var x=Object.create(CAR);x.value=W;P!==void 0&&(x.equal=P);W=function(){SyS(x);return x.value};
W[BJ]=x;return W};
EOt=function(W,P){W=AYC(W,P);var x=W[BJ];return[W,function(I){return zMW(x,I)},
function(I){mMm()||GMm(x);zMW(x,I(x.value))}]};
zMW=function(W,P){mMm()||GMm(W);if(!W.equal(W.value,P)){W.value=P;W.version++;u98++;vOW(W);var x;(x=gOo)==null||x(W)}};
n4=function(W){var P=WJ(null);try{return W()}finally{WJ(P)}};
_.YV=function(W,P,x){x=x===void 0?"":x;W=EOt(W,P==null?void 0:P.equals);var I=W[0],O=I[BJ];O.debugName=WWS(P==null?void 0:P.debugName,x,"[signal]");if(!FJ.enablePerformanceTiming)return W;var B=W[1],Y=W[2];return[I,function(K){DMS(function(){return void B(K)},O)},
function(K){DMS(function(){return void Y(K)},O)}]};
DMS=function(W,P){I8G("signalSet",P.debugName);try{W()}finally{Ojm("signalSet",P.debugName)}};
$MR=function(W,P){var x=_.n(_.YV(W,void 0,"cPpJzc"));W=x.next().value;x=x.next().value;W[MBU]=x;W[yU]=P;return W};
wiW=function(W){return!!W&&typeof W==="object"&&Object.getPrototypeOf(W)===Object.prototype};
hM7=function(W){return typeof W==="function"&&MBU in W&&typeof W[MBU]==="function"};
Hjm=function(W,P){Object.defineProperty(W,yU,{get:function(){return P}})};
Zl=function(W,P){if(K4(W)){var x=W.map(function(B){return Zl(B,P)});
Hjm(x,P);return x}if(wiW(W)){x={};W=_.n(Object.entries(W));for(var I=W.next();!I.done;I=W.next()){var O=_.n(I.value);I=O.next().value;O=O.next().value;x[I]=Zl(O,P)}Hjm(x,P);return x}return $MR(W,P)};
eMS=function(W){if(K4(W))return W.map(function(O){return eMS(O)});
if(wiW(W)){var P={};W=_.n(Object.entries(W));for(var x=W.next();!x.done;x=W.next()){var I=_.n(x.value);x=I.next().value;I=I.next().value;P[x]=eMS(I)}return P}return hM7(W)?W():W};
a8W=function(){var W={height:0,width:0};if(!wiW(W))throw Error("Ib");var P=Symbol("Jb");return[Zl(W,P),function(x,I){if(x[yU]===P)if(typeof I==="function"){var O=[].concat(_.ju(eMS(x)));I=I(O)||O;cY7(x,[].concat(_.ju(I)))}else cY7(x,I);else throw Error("Kb");}]};
cY7=function(W,P){if(hM7(W))W[MBU](P);else if(K4(W)&&K4(P))P=Zl(P,W[yU]),W.length=0,W.push.apply(W,_.ju(P));else if((wiW(W)||K4(W))&&(K4(P)||typeof P==="object"&&P!==null)){P=_.n(Object.entries(P));for(var x=P.next();!x.done;x=P.next()){var I=_.n(x.value);x=I.next().value;I=I.next().value;var O=W,B=O[x];Object.hasOwn(W,x)?cY7(B,I):O[x]=Zl(I,W[yU])}}else throw Error("Lb");};
bjS=function(W){return Object.create(Object.assign({},oC,W))};
UMU=function(){var W;return(W=kMx)!=null?W:kMx=bjS({consumerAllowSignalWrites:!0})};
_.Sj=function(W,P,x){x=x===void 0?"":x;W=Q6R(W);var I=W[BJ];I.debugName=WWS(P==null?void 0:P.debugName,x,"[computed]");(P==null?void 0:P.equals)!=null&&(I.equal=P.equals);return W};
u_=function(W){var P=WJ(Xim);try{W()}finally{WJ(P)}};
RMR=function(W){if(!W.isDisposed)switch(W.effectType){case f8o:NOW.schedule(W);break;case l8m:TOU.schedule(W);break;case rYS:ijo.schedule(W);break;default:_.n2(W.effectType)}};
qyG=function(W){FWd.push(W);return function(){var P=FWd.indexOf(W);P!==-1&&FWd.splice(P,1)}};
WpC=function(){if(d1>0)NOW.flush();else for(var W=_.n(LWW),P=W.next();!P.done;P=W.next())P.value.flush()};
xtx=function(W){for(var P=_.n(W),x=P.next();!x.done;x=P.next()){var I=x.value;for(x=[I];I.parent!==void 0;)I=I.parent,PEm(I)&&W.has(I)&&x.push(I);for(;x.length>0;)I=x.pop(),W.delete(I),I.run()}};
IqG=function(W){d1--;if(W){W=_.n(LWW);for(var P=W.next();!P.done;P=W.next())P.value.clear()}else d1>0||WpC()};
J0o=function(W){var P=W.component;var x=W.debugInstance;W=W.fn;var I=ODC(P);sw={name:x?I+" ("+x+")":I,isReactive:P.componentType!==vJ,parent:sw};P=W();sw=sw.parent;return P};
VU=function(){var W=sw;return W?W.isReactive:!1};
p4=function(W,P){var x=sw;P&&(sw=P);try{return W()}catch(B){W=B;tg(W,sw);if(W!==B3C){nNW=sw;P=[];for(var I=Np;I;){var O=void 0;P.push((O=I.debugName)!=null?O:"[context]");O=void 0;I=(O=I.parent)!=null?O:null}Yz7=P.reverse()}B3C=W;throw W;}finally{sw=x}};
tg=function(W,P){try{var x=y0t(P===void 0?null:P);if(x&&!W.componentStack&&(W.componentStack=x,FJ.enableComponentStacksInErrorMessages)){var I=W.message+"\n\nComponent stack: "+x;W.stack&&(W.stack=W.stack.replace(W.message,I));W.message=I}}catch(O){}};
y0t=function(W){if(qp(W)&&W.name!==void 0&&W.isReactive!==void 0&&W.parent!==void 0||W===null){for(var P=0,x="";P<20&&W;)x+=W.name+" > ",W=W.parent,P++;W=x.slice(0,-3)}else if(FJ.enableContextBasedComponentStacks){a:{for(W=W===void 0?Np:W;W;){if(Yy7(W))break a;P=void 0;W=(P=W.parent)!=null?P:null}W=null}W=W.getComponentStack().slice(0,20).join(" > ")}else W="";return W};
ODC=function(W){return W.debugName||W.name||"[component]"};
Kpm=function(W,P,x){P=Object.create(P);P.effectFn=W;x&&(P.debugName=x);rv(P);FJ.enableContextBasedComponentStacks||(P.componentStack=sw);return P};
_.jj=function(W,P){W=Kpm(W,ZDx,P);RMR(W)};
_.C4=function(W){var P=Np;if(P){var x=FJ.enableContextBasedComponentStacks?void 0:sw;HXW(P,function(){var I=WJ(UMU());try{FJ.enableContextBasedComponentStacks?W():p4(function(){return void W()},x)}catch(O){throw FJ.enableContextBasedComponentStacks&&tg(O),O;
}finally{WJ(I)}})}};
Ag=function(W,P){var x={};(P===void 0||P)&&rv(x);P=lZ(x);try{W(x)}finally{lZ(P)}return function(){return void eim(x)}};
_.zB=function(W){return typeof W==="function"?W():(W==null?0:W[oN7])?W.get():W};
_.GB=function(W,P){W=Kpm(W,Szx,P);RMR(W)};
uGR=function(W){if(Np)throw Error("rb");Ag(W,!1)};
Ew=function(W,P){W=lZ(W);try{return n4(P)}finally{lZ(W)}};
g1=function(W,P,x){x=x===void 0?3:x;var I=y0t(nNW),O,B;var Y=(B=(O=Yz7)==null?void 0:O.slice())!=null?B:[];P={componentStack:I,contextTrace:Y,errorSeverity:x,featureFlags:xM8(),tagName:P};return[W,P]};
vNm=function(W,P,x){if(Object.hasOwnProperty.call(dtA,W)&&(W=dtA[W],Object.hasOwnProperty.call(W,P)&&(W=W[P],W instanceof Array))){for(var I=null,O=!1,B=0,Y=W.length;B<Y;++B){var K=W[B],Z=K.contingentAttribute;if(!Z)return K.contract;I===null&&(I={});Z=Object.hasOwnProperty.call(I,Z)?I[Z]:I[Z]=x(Z);if(Z===K.requiredValue)return K.contract;Z==null&&(O=!0)}if(O)return null}P=sDm[P];return typeof P==="number"?P:null};
tVx=function(W,P,x){var I=null;(W=mtC[W])&&(I=W[P]);return typeof I!=="number"&&((W=mtC["*"])&&(I=W[P]),typeof I!=="number")?!1:!0===VVt[I][String(x).toLowerCase()]};
jDW=function(W,P){P=vNm(W.toLowerCase(),P,function(){var I;(I=FJ.handleError)==null||I.call.apply(I,[FJ].concat(_.ju(g1(Error("Qb"),W.toLowerCase()))))});
if(P===null)return null;var x;return(x=pPG[P])!=null?x:null};
QDR=function(W,P,x){if(x===null||x===void 0)return x;W=jDW(W,P);return W===null?x:W(P,x)};
CEx=function(){};
Dl=function(W,P){for(;W.length>P;)W.pop()};
A0G=function(W){W=Array(W);Dl(W,0);return W};
zhm=function(W,P,x){if(x==null)W.removeAttribute(P);else{var I;(I=P.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":P.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?W.setAttributeNS(I,P,x):W.setAttribute(P,x)}};
GrA=function(W,P,x){W[P]=x};
gNS=function(W,P,x){W=W.style;if(typeof x==="string")W.cssText=x;else{W.cssText="";for(var I in x)if(ENC.call(x,I)){P=W;var O=I,B=x[I];O.indexOf("-")>=0?P.setProperty(O,B):P[O]=B}}};
Dto=function(W,P,x){var I=typeof x;I==="object"||I==="function"?W[P]=x:zhm(W,P,x)};
MVt=function(){var W=new CEx;W[MS.default]=Dto;W.style=gNS;return W};
$tx=function(W,P,x,I){(I[P]||I[MS.default])(W,P,x)};
hhR=function(W,P,x){P=new wPA(P,x);return W.__incrementalDOMData=P};
$V=function(W,P){if(W.__incrementalDOMData)return W.__incrementalDOMData;var x=W.nodeType===1?W.localName:W.nodeName,I=W.nodeType===1?W.getAttribute("key"):null;P=hhR(W,x,W.nodeType===1?I||P:null);if(W.nodeType===1&&(W=W.attributes,x=W.length)){I=P._attrsArr||(P._attrsArr=A0G(x*2));for(var O=0,B=0;O<x;O+=1,B+=2){var Y=W[O],K=Y.value;I[B]=Y.name;I[B+1]=K}}return P};
HDt=function(W,P,x,I,O){return P==x&&I==O};
eh7=function(W){for(var P=w1,x=hg();x!==W;){var I=x.nextSibling;P.removeChild(x);HJ.deleted.push(x);x=I}};
hg=function(){return ej?ej.nextSibling:w1.firstChild};
cJ=function(){ej=hg()};
bDo=function(W,P,x){cJ();var I;a:{if(I=ej){do{var O=I,B=W,Y=P,K=$V(O,Y);if(c0R(O,B,K.nameOrCtor,Y,K.key))break a}while(P&&(I=I.nextSibling))}I=null}I||(W==="#text"?(x=aC.createTextNode(""),hhR(x,"#text",null),W=x):(I=aC,O=w1,typeof W==="function"?I=new W:I=(O=W==="svg"?"http://www.w3.org/2000/svg":W==="math"?"http://www.w3.org/1998/Math/MathML":O==null||$V(O).nameOrCtor==="foreignObject"?null:O.namespaceURI)?I.createElementNS(O,W):I.createElement(W),hhR(I,W,P),W=I,x&&W.setAttribute("nonce",x)),HJ.created.push(W),
I=W);x=I;if(x!==ej){if(aqW.indexOf(x)>=0)for(W=w1,P=x.nextSibling,I=ej;I!==null&&I!==x;)O=I.nextSibling,W.insertBefore(I,P),I=O;else w1.insertBefore(x,ej);ej=x}};
krd=function(W,P,x){bDo(W,P,x);w1=ej;ej=null;return w1};
Utx=function(){eh7(null);ej=w1;w1=w1.parentNode};
b_=function(){ej=w1.lastChild};
N3o=function(W,P){P=P===void 0?{}:P;var x=P.matches===void 0?HDt:P.matches;return function(I,O,B){var Y=HJ,K=aC,Z=aqW,d=kV,v=X8,m=ej,t=w1,C=c0R;aC=I.ownerDocument;HJ=new XPm(I);c0R=x;kV=[];X8=[];ej=null;var z=w1=I.parentNode,D,w=fqU.call(I);if((D=w.nodeType===11||w.nodeType===9?w.activeElement:null)&&I.contains(D)){for(w=[];D!==z;)w.push(D),D=D.parentNode||(z?D.host:null);z=w}else z=[];aqW=z;try{return W(I,O,B)}finally{I=HJ,f4&&I.deleted.length>0&&f4(I.deleted),aC=K,HJ=Y,c0R=C,kV=d,X8=v,ej=m,w1=t,
aqW=Z}}};
lqm=function(W,P,x,I){NS.push($tx);NS.push(W);NS.push(P);NS.push(x);NS.push(I)};
r0W=function(W,P,x){var I=X8;P=P._attrsArr||(P._attrsArr=A0G(I.length));for(var O=!P.length||!1,B=0;B<I.length;B+=2){var Y=I[B];if(O)P[B]=Y;else if(P[B]!==Y)break;var K=I[B+1];if(O||P[B+1]!==K)P[B+1]=K,lqm(W,Y,K,x)}if(B<I.length||B<P.length){for(B=O=B;B<P.length;B+=2)l_[P[B]]=P[B+1];for(B=O;B<I.length;B+=2)O=I[B],Y=I[B+1],l_[O]!==Y&&lqm(W,O,Y,x),P[B]=O,P[B+1]=Y,delete l_[O];Dl(P,I.length);for(var Z in l_)lqm(W,Z,void 0,x),delete l_[Z]}W=T3t;T3t=x=NS.length;for(Z=W;Z<x;Z+=5)(0,NS[Z])(NS[Z+1],NS[Z+
2],NS[Z+3],NS[Z+4]);T3t=W;Dl(NS,W);Dl(I,0)};
TB=function(W){bDo("#text",null);var P=ej;var x=$V(P);if(x.text!==W){x=x.text=W;for(var I=1;I<arguments.length;I+=1)x=(0,arguments[I])(x);P.data!==x&&(P.data=x)}};
WnU=function(W,P,x){if(x===!1&&iDR.has(P))zhm(W,P,null);else if(P!=="idomKey"&&P!=="skip"&&P!=="skipchildren"&&P!=="children"&&P!=="el"){if(P.startsWith("on"))if(P[2]===":"){if(x===void 0||x===null){var I;(I=FJ.handleError)==null||I.call.apply(I,[FJ].concat(_.ju(g1(Error("Wb`"+P),W.tagName))));W[P]=void 0;return}if(typeof x!=="object"||x===null)throw Error("Xb`"+P+"`"+typeof x);if(typeof x.getFn!=="function")throw Error("Yb`"+P+"`"+Object.keys(x));var O=x.getFn(0),B=P.slice(3);if((I=VU())&&W["on"+
B]===void 0)W.addEventListener(B,O),_.C4(function(){return void W.removeEventListener(B,O)});
else if(I||!Rhx.includes(B))W["on"+B]=O}else{Fpt(W,P,x);return}else if(P.startsWith("data-")&&typeof x==="string")try{x=qzt(x)}catch(Y){x="zSoyz"}typeof x!=="function"||W._disposeEffects!=null?(FJ.enableAttributeSanitization&&(x=QDR(W.tagName,P,x)),P==="style"?LpG(W,P,x):P.startsWith("prop:")?(P=P.slice(5),W[P]=x):Fpt(W,P,x)):(W._signalProps||(W._signalProps=[]),W._signalValues||(W._signalValues=[]),W._signalProps.push(P))}};
Psx=function(W,P,x){x=(x===void 0?{}:x).isReactive;if(P==null?0:P.el){var I=P.el;if(typeof I==="function")I(W);else{var O;(O=I.onRender)==null||O.call(I,W);W._disposeRef||(W._disposeRef=function(){var B;(B=I.onUnmount)==null||B.call(I);delete W._disposeRef},x&&_.C4(function(){var B;
return void((B=W._disposeRef)==null?void 0:B.call(W))}))}}};
xlx=function(W){return qp(W)&&RC in W};
IwC=function(W){return xlx(W)?W[RC].flattened:W};
Oam=function(W,P){var x=_.tH.apply(2,arguments),I;P=(I=P)!=null?I:{};I={};return I.type=W,I.props=P,I.children=x,I[F8]=!0,I};
_.qS=function(W){return W.children};
L4=function(W){var P=Jy7!==Oam;Jy7=W?BeR:Oam;return P};
Wo=function(W){return _.Jw(W)?"nodeType"in W:!1};
Po=function(){return document.createTextNode("")};
x$=function(W){W=document.createTextNode(String(W));W._isSignalTextNode=!0;return W};
nMU=function(W){var P=document.createElement("div");if(!(W instanceof zI)){if(W.contentKind!==Il)throw Error("Ub");W=GI(W.toString())}_.a$(P,W);W=_.n(P.childNodes);for(var x=W.next();!x.done;x=W.next())x.value._isSafeOrSanitizedHtmlNode=!0;return P};
OV=function(W){W=typeof W;return W==="string"||W==="number"||W==="boolean"};
YAA=function(W){return W instanceof nz||S5(W)||"function"==typeof _.U0&&W instanceof _.U0||!1};
yyC=function(W,P){var x=W.parentElement;if(!x)return P;x.replaceChild(P,W);return P};
Knm=function(W,P){var x=W[0].parentElement;if(x)if(W[0].previousSibling||W[W.length-1].nextSibling){x.insertBefore(P,W[0]);for(var I=W.length-1;I>=0;I--)x.removeChild(W[I])}else x.textContent="",x.appendChild(P);return P};
ZaS=function(W,P){if(W[0].parentElement)for(var x=W[0].parentElement,I=P.length,O=W.length,B=I,Y=0,K=0,Z=W[O-1].nextSibling,d=null;Y<O||K<B;)if(W[Y]===P[K])Y++,K++;else{for(;W[O-1]===P[B-1];)O--,B--;if(O===Y)for(var v=B<I?K?P[K-1].nextSibling:P[B-K]:Z;K<B;){var m=P[K++];x.insertBefore(m,v)}else if(B===K)for(;Y<O;)v=W[Y],d&&d.has(v)||x.removeChild(v),Y++;else if(W[Y]===P[B-1]&&P[K]===W[O-1])v=W[--O].nextSibling,x.insertBefore(P[K++],W[Y++].nextSibling),x.insertBefore(P[--B],v),W[O]=P[B];else{if(!d)for(d=
new Map,v=K;v<B;)d.set(P[v],v++);v=d.get(W[Y]);if(v==null)x.removeChild(W[Y]),Y++;else if(K<v&&v<B){m=Y;for(var t=1,C=void 0;++m<O&&m<B&&(C=d.get(W[m]))!=null&&C===v+t;)t++;if(t>v-K)for(m=W[Y];K<v;)x.insertBefore(P[K++],m);else x.replaceChild(P[K++],W[Y++])}else Y++}}return P};
SAA=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("gc`"+W.length+"`"+W.map(oMt).join(", "));W=W[0]}if(W==null)return null;if(!(W instanceof _.w9)){var P,x;if((P=window)==null?0:(x=P.trustedTypes)==null?0:x.isScript(W))throw Error("fc");if(String(W).trim().length===0)return null;throw Error("hc`"+oMt(W));}return W};
uLW=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("ic`"+W.length+"`"+W.map(oMt).join(", "));W=W[0]}if(W==null)return null;if(!QKC(W)){if(String(W).trim().length===0)return null;throw Error("jc`"+oMt(W));}return W};
oMt=function(W){return"("+typeof W+") "+(W!=null&&typeof W==="object"?W.constructor.name:typeof W)+" "+W};
Bo=function(W,P){function x(){O=!1;P.isControlFlowComponent&&d1++;var B=I[0],Y=I[RC].flattened,K=L4(!0);try{var Z=W(),d=dld(B,Z,I);Array.isArray(d)||(I[RC].flattened=[d]);var v=I[RC].flattened;if(Y&&(!Array.isArray(Y)||Y.length!==0)){var m=Array.isArray(Y)?Y[0]:Y,t=m[JQ],C=m._disposeEffects;m._disposeEffects=void 0;m=Array.isArray(v)?v[0]:v;m[JQ]=t;m[JQ]&&(m[JQ].numNodes=m===v?1:v.length);m._disposeEffects=C}I[0]=d;P.isControlFlowComponent&&IqG(!1)}catch(z){throw P.isControlFlowComponent&&IqG(!0),
z;}finally{L4(K)}}
P=P===void 0?{}:P;var I=sR8(),O=!0;_.GB(function(){(vMR==null?0:vMR.logger)&&!O?vMR.logger.logGraft(I[0],x):x()},P.debugName);
return I};
dld=function(W,P,x){for(;typeof P==="function";)P=P();if(P!=null&&P[F8]){var I,O,B;(B=FJ.handleError)==null||B.call.apply(B,[FJ].concat(_.ju(g1(Error("kc`"+((I=P.type)==null?void 0:I.TAG_NAME)),(O=P.type)==null?void 0:O.TAG_NAME))))}if(W==null)return P==null?Po():OV(P)?x$(P):YAA(P)?x$(P.toString()):Wo(P)?P:P.length===0?Po():ml7(P,x);if(Wo(W)){if(P==null)return yyC(W,Po());if(OV(P))return VoR(W,P);if(YAA(P))return VoR(W,P.toString());if(Wo(P))return yyC(W,P);if(P.length===0)return yyC(W,Po());P=ml7(P,
x);ZaS([W],x[RC].flattened);return P}W=nX(W);if(P==null)return Knm(W,Po());if(OV(P))return Knm(W,x$(P));if(YAA(P))return Knm(W,x$(P.toString()));if(Wo(P))return ZaS(W,[P])[0];if(P.length===0)return Knm(W,Po());P=ml7(P,x);ZaS(W,x[RC].flattened);return P};
VoR=function(W,P){W.nodeType===Node.TEXT_NODE?W.textContent!==String(P)&&(W.textContent=String(P)):W=yyC(W,x$(P));return W};
nX=function(W,P,x){return tod(W,P!=null?P:[],x===void 0?!1:x)};
ml7=function(W,P){var x=nX(W,void 0,!0);if(x.length===0)return Po();P[RC].flattened=x;return W};
tod=function(W,P,x,I,O){P=P===void 0?[]:P;x=x===void 0?!1:x;O=O===void 0?-1:O;if(W==null)return P;if(W instanceof Y$)return W=W.render(),tod(W,P,x,I,O);if(Wo(P)&&P.nodeType===Node.ELEMENT_NODE)switch(P.tagName){case "SCRIPT":x=SAA(W);x!==null&&_.e5(P,x);return;case "STYLE":x=uLW(W);x!==null&&(P.textContent=_.CId(x));return}OV(W)&&(W=x$(W),I&&x&&(I[O]=W));if(W!=null&&W.contentKind===Il||W instanceof zI){x=nMU(W);x=Array.from(x.childNodes);x=_.n(x);for(W=x.next();!W.done;W=x.next())pBC(P,W.value);return P}YAA(W)&&
(W=x$(W.toString()),I&&x&&(I[O]=W));if(Wo(W))return pBC(P,W);if(Array.isArray(W)){for(var B=0;B<W.length;B++)tod(W[B],P,x,W,B);return P}if(typeof W==="function"){W=Bo(W,{debugName:"qmF2ne"})[0];if(Array.isArray(W)){x=_.n(W);for(W=x.next();!W.done;W=x.next())pBC(P,W.value);return P}I&&x&&(I[O]=W);return pBC(P,W)}if(W!=null&&W[F8]){I=L4(!0);O=Jy7;try{B=O.apply(null,[W.type,W.props].concat(_.ju(W.children)))}finally{L4(I)}return tod(B,P,x)}var Y;(Y=FJ.handleError)==null||Y.call.apply(Y,[FJ].concat(_.ju(g1(Error("lc")))));
return P};
sR8=function(W){var P={};P=Object.assign([],(P[RC]={flattened:[]},P));if(!W)return P;P[0]=ml7(W,P);return P};
pBC=function(W,P){Array.isArray(W)?W.push(P):W.appendChild(P);return W};
ya=function(W){if(!FJ.enableLazyTsx)return W;if(Array.isArray(W)){for(var P=0;P<W.length;P++)W[P]=ya(W[P]);return W}return W instanceof Y$?(W=W.render(),ya(W)):W};
QRx=function(W,P){var x,I,O=ODC(W),B=function(C){I=C;C=L4(!0);var z=WJ(KX);I8G("render",O);try{x=ya(W(P))}finally{Ojm("render",O),WJ(z),L4(C)}};
B=FJ.enableContextPerComponent?BOS(B,O):Ag(B,FJ.alwaysTrackContexts||!!Np);Yy7(I);if(!P.renderedFromIdom){var Y=lZ(I);try{return jRd(W,P,x),x}finally{lZ(Y)}}!xlx(x)&&Array.isArray(x)&&(x=sR8(x));var K=IwC(x);Y=Array.isArray(K)?K[0]:K;var Z=!1;if(Y){var d,v=(d=P==null?void 0:P.idomKey)!=null?d:W;d=K!==Y;Y._disposeEffects=B;var m=Y[JQ]||{},t=xlx(x)?x:m.sourceDynamicRange;Object.assign(m,{key:v,numNodes:d?K.length:1,context:I,higherOrder:!!Y[JQ],sourceDynamicRange:t});Y[JQ]=m}else Z=!0;(function(){var C=
lZ(I);try{jRd(W,P,K)}finally{lZ(C)}})();
Z&&B();return x};
Cso=function(W){var P={},x;for(x in W)P={prev$jscomp$23:void 0,next$jscomp$32:void 0},P.prev$jscomp$23=Z$[x],P.next$jscomp$32=W[x],Z$[x]=function(I){return function(){var O=_.tH.apply(0,arguments);I.prev$jscomp$23.apply(null,_.ju(O));I.next$jscomp$32.apply(null,_.ju(O))}}(P)};
Ayd=function(){if(VU())throw Error("mc");return ol};
zUt=function(W,P){if(!W.__unmounted&&P){W.__unmounted=!0;try{W.didUnmount()}catch(O){var x,I;(I=FJ.handleError)==null||I.call.apply(I,[FJ].concat(_.ju(g1(O,(x=W.JSC$8167___type)==null?void 0:x.TAG_NAME))))}Z$.didUnmount(W);W.el=null;P.__instance&&delete P.__instance}};
EMx=function(W,P,x){W._signalProps!=null&&W._disposeEffects==null&&((x===void 0?0:x)?W._disposeEffects=Ag(function(){return void G$G(W,P)},FJ.alwaysTrackContexts||!!Np):G$G(W,P))};
G$G=function(W,P){_.GB(function(){for(var x=W._signalProps,I=W._signalValues,O=0;O<x.length;O++){var B=x[O],Y=P[B]();I[O]!==Y&&(I[O]=Y,WnU(W,B,Y))}},"e3YVbb")};
gMC=function(W,P,x){var I,O=[];W._disposeEffects=Ag(function(){_.GB(function(){var B=x();if(B===null||B===void 0)B="";if(OV(B)||B===null)I!=null||(I=document.createTextNode("")),I.parentNode!==W&&(I._isSignalTextNode=!0,W.insertBefore(I,P)),I.textContent=String(B);else if(B!=null&&B.contentKind===Il||B instanceof zI){for(var Y=O.length>0?O[O.length-1].nextSibling:P,K=_.n(O),Z=K.next();!Z.done;Z=K.next())W.removeChild(Z.value);B=nMU(B);O=Array.from(B.childNodes);B=_.n(O);for(K=B.next();!K.done;K=B.next())W.insertBefore(K.value,
Y)}else throw Z=(K=(Y=sw)==null?void 0:Y.name)!=null?K:"unknown",Error("bc`"+Z+"`"+typeof B);},"VvDgC")},FJ.alwaysTrackContexts||!!Np)};
$lG=function(W,P){var x=_.tH.apply(2,arguments);P!=null||(P={});return!FJ.enableLazyTsx||sw!=null&&!VU()?Dl8(W,P,x):new Mox(W,P,x)};
Dl8=function(W,P,x){if(W===_.qS)return x;if(typeof W==="function"){sw&&!VU()&&(P.renderedFromIdom=!0);var I=function(){var B=wBC(W,P,x);if(B)return B;x.length>0&&(P.children=x.length===1?x[0]:x);if(W.componentType===vJ){var Y;BOS(function(){var K=P;if(W.componentType!==vJ)Y=!1;else{K||(K={});var Z=new SL(K,W),d=WJ(KX);try{var v=Z.render(K)}finally{WJ(d)}v instanceof HTMLElement?(v.__instance=Z,Z.el=v,Z.JSC$8167___type=W,W.TAG_NAME=v.tagName.toLowerCase(),Z$.didPatch(Z),Y=v):Y=v}},W.name);
if(Y)return Y}return QRx(W,P)};
return FJ.enableContextBasedComponentStacks?I():J0o({component:W,debugInstance:P.debugInstance,fn:I})}I=hU7(W,P);for(var O in P)WnU(I,O,P[O]);EMx(I,P);nX(x,I);Psx(I,P,{isReactive:!0});HaC(I,P);return I};
hU7=function(W,P){W=(eU8.has(W.toLowerCase())?0:cyd.has(W.startsWith("svg:")?W.replace("svg:",""):W))?document.createElementNS("http://www.w3.org/2000/svg",W.startsWith("svg:")?W.replace("svg:",""):W):awR(W,P)||document.createElement(W);W[baR]=!0;return W};
k$R=function(W){if(W){var P;(P=W._disposeRef)==null||P.call(W);var x;(x=W._disposeEffects)==null||x.call(W);W.__instance&&W.__instance instanceof uP&&(P=W.__instance,zUt(P,W),P instanceof SL&&P.disposeEffects());for(P=0;P<W.childNodes.length;P++)k$R(W.childNodes[P])}};
XBU=function(W){Ulo.push(W)===1&&requestAnimationFrame(function(){setTimeout(function(){var P=[].concat(_.ju(Ulo));Ulo=[];P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;try{for(var I=0;I<x.length;I++)k$R(x[I])}catch(O){I=x=void 0,(I=(x=FJ).handleError)==null||I.call.apply(I,[x].concat(_.ju(g1(O))))}}})})};
_.u=function(W,P){return Jy7.apply(null,[W,P].concat(_.ju(_.tH.apply(2,arguments))))};
NeW=function(){var W=document.body.firstElementChild;window.ng||W.__ngContext__||(W.__ngContext__={},W.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=fwG)};
_.V=function(W){var P=W.cond;if(P===void 0)return W.else&&W.else();var x=_.Sj(function(){return!!P()},void 0,"y0Xknf"),I=function(){var O=P();
if(!O){var B;(B=FJ.handleError)==null||B.call.apply(B,[FJ].concat(_.ju(g1(lwd.nonNullableCondIsNull()))))}return O};
return Bo(function(){var O=x(),B;Ag(function(){var Y=WJ(KX);try{B=ya(O?W.then(I):W.else&&W.else())}finally{WJ(Y)}},!0);
return B},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
TeR=function(W){return _.V(W)};
_.sV=function(W){return W.keyBy==="INDEX"?ryo(W):iaS(W)};
RUm=function(W){W=_.n(W);for(var P=W.next();!P.done;P=W.next()){var x=void 0;(x=P.value)==null||x()}};
iaS=function(W){var P=W.keyBy===void 0||W.keyBy==="REFERENCE",x=P?function(v){return v}:W.keyBy,I=[],O=[],B=[],Y=[],K=[],Z=[],d=!0;
_.C4(function(){RUm(Y)});
return Bo(function(){var v=W.each(),m=v.length;if(m===0){if(I.length===0&&!d)return B;RUm(Y);I=v;O=[];for(v=0;v<I.length;v++)O.push(x(I[v]));B=[];Y=[];K=[];Z=[];W.fallback&&(Y[0]=Fnd(function(){B[0]=ya(W.fallback())}));
d=!1;return B}for(var t=new qAm,C=I.length-1;C>=0;C--)t.push(O[C],C);C=Array(m);for(var z=Array(m),D=Array(m),w=Array(m),a=Array(P?0:m),k={i$jscomp$486:0};k.i$jscomp$486<m;k={i$jscomp$486:k.i$jscomp$486,item$jscomp$103:void 0,key$jscomp$523:void 0},k.i$jscomp$486++){k.item$jscomp$103=v[k.i$jscomp$486];k.key$jscomp$523=x(k.item$jscomp$103);var T=t.pop(k.key$jscomp$523);T!=null?(D[k.i$jscomp$486]=B[T],z[k.i$jscomp$486]=O[T],C[k.i$jscomp$486]=Y[T],w[k.i$jscomp$486]=K[T],P||(a[k.i$jscomp$486]=Z[T]),u_(function(N){return function(){w[N.i$jscomp$486](N.i$jscomp$486);
if(!P)a[N.i$jscomp$486](N.item$jscomp$103)}}(k)),delete Y[T]):C[k.i$jscomp$486]=Fnd(function(N){return function(){var Io=_.n(_.YV(N.i$jscomp$486,void 0,"g4fKif")),F=Io.next().value;
Io=Io.next().value;w[N.i$jscomp$486]=Io;z[N.i$jscomp$486]=N.key$jscomp$523;if(P)D[N.i$jscomp$486]=ya(W.children(N.item$jscomp$103,F));else{var nm=_.n(_.YV(N.item$jscomp$103,void 0,"Ile0Kc"));Io=nm.next().value;nm=nm.next().value;a[N.i$jscomp$486]=nm;D[N.i$jscomp$486]=ya(W.children(Io,F))}}}(k))}RUm(Y);
I=v;O=z;B=D;Y=C;K=w;Z=a;d=!1;return D},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
ryo=function(W){var P=[],x=[],I=[],O=[],B=!1;_.C4(function(){for(var Y=_.n(O),K=Y.next();!K.done;K=Y.next())K=K.value,K()});
return Bo(function(){var Y=W.each();B&&Y.length>0&&(O.pop()(),P.pop(),B=!1);for(var K=Array(Y.length),Z={i$jscomp$487:0};Z.i$jscomp$487<Y.length;Z={i$jscomp$487:Z.i$jscomp$487},Z.i$jscomp$487++)if(Z.i$jscomp$487<P.length)P[Z.i$jscomp$487]!==Y[Z.i$jscomp$487]&&(u_(function(v){return function(){return void x[v.i$jscomp$487](Y[v.i$jscomp$487])}}(Z)),P[Z.i$jscomp$487]=Y[Z.i$jscomp$487]),K[Z.i$jscomp$487]=I[Z.i$jscomp$487];
else{var d=Fnd(function(v){return function(){P[v.i$jscomp$487]=Y[v.i$jscomp$487];var m=_.n(_.YV(Y[v.i$jscomp$487],void 0,"QVJXFd")),t=m.next().value;m=m.next().value;x[v.i$jscomp$487]=m;K[v.i$jscomp$487]=ya(W.children(t,v.i$jscomp$487))}}(Z));
O[Z.i$jscomp$487]=d}for(;P.length>Y.length;)P.pop(),O.pop()(),x.pop();Y.length===0&&!B&&W.fallback&&(Z=Fnd(function(){K[0]=ya(W.fallback())}),O[0]=Z,B=!0);
return I=K},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
Fnd=function(W){var P=Np;return Ag(function(x){var I=WJ(KX);try{x.parent=P,W(x)}finally{WJ(I)}},!1)};
_.mk=function(W){return W};
_.Va=function(W){return{isDefault:!0,children:W.children}};
_.tQ=function(W){var P=Ln7(W),x=_.Sj(function(){return Whd(P)},void 0,"BHmkEe");
return Bo(function(){var I=x(),O;Ag(function(){var B=WJ(KX);try{O=ya(I())}finally{WJ(B)}});
return O},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
Ln7=function(W){W=W.children;return Array.isArray(W)?W:[W]};
PVU=function(W){var P=W.props;W=W.getChildren()[0];return P.when?{when:P.when,children:W}:{isDefault:!0,children:W}};
Whd=function(W){var P=function(){return null};
W=_.n(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,x!=null&&x[F8]&&(x=x.type===_.Va?{isDefault:!0,children:x.children[0]}:{when:x.props.when,children:x.children[0]}),x instanceof Y$&&(x=PVU(x)),x.isDefault)P=x.children;else if(x.when())return x.children;return P};
x18=function(W){var P=null,x;return{value:null,onRender:function(I){if(x&&I!==x){var O;(O=P)==null||O();x._disposeRef=void 0}x=I;P=W(I)||null},
onUnmount:function(){var I;(I=P)==null||I();P=null}}};
OJW=function(W){var P=Ayd();if(P==null)throw INR.PRIMITIVE_INVALID_HOOK_CALL();var x=P.hookCounter++;P.hooks||(P.hooks=[]);var I=P.hooks;I[x]||(I[x]={key:W,host:P});if(W!==I[x].key){if(P.JSC$8167___type){var O;W=(O=P.JSC$8167___type)==null?void 0:O.name}else W=P instanceof SL?ODC(P.functionComponent):"<"+P.el.tagName.toLowerCase()+">";throw INR.OUT_OF_ORDER_HOOK_CALL(W);}return I[x]};
JCt=function(W,P){return!W||W.length!==(P==null?void 0:P.length)||W.some(function(x,I){return x!==P[I]})};
pX=function(W,P){var x=OJW("onChange"),I=Ayd();JCt(x.deps,P)&&(x.deps=P,x.pendingEffect=W,I.__syncEffects||(I.__syncEffects=[]),I.__syncEffects.push(x))};
yCt=function(W,P){var x;P!=null?x=P:x=_.MLR(document).getAppContext();x.get(B7R).JSC$25349_getEventTarget().dispatchEvent(new nQU(YSR,W,Il))};
_.jL=function(W,P){var x=x===void 0?{enableDevtools:!1}:x;var I=function(){var B=WJ(KX);try{return Ag(function(){var Y=_.MLR(_.GD(W)),K;var Z=Tom({rootElement:{value:W},appContext:x.appContext||(Y==null?void 0:(K=Y.getOptionalAppContext)==null?void 0:K.call(Y)),dispatcher:Y});Y=lZ(Z);Z=L4(!0);d1++;try{nX(P(),W),IqG(!1)}catch(d){throw IqG(!0),d;}finally{L4(Z),lZ(Y)}},!1)}catch(Y){throw FJ.enableContextBasedComponentStacks&&tg(Y),Y;
}finally{WJ(B)}},O=FJ.enableContextBasedComponentStacks?I():p4(I);
W[KhW]=!0;x.legacyTriggerSoyRendererEvents&&yCt(W,x.appContext);return function(){W.textContent="";O();W[KhW]=!1}};
_.Qa=function(W){if(PEm(LU)){var P;(P=FJ.handleError)==null||P.call.apply(P,[FJ].concat(_.ju(g1(Error("ac")))))}var x=Np,I=FJ.enableContextBasedComponentStacks?void 0:sw;Promise.resolve().then(function(){if(x&&!x.isDisposed){var O=lZ(x);try{FJ.enableContextBasedComponentStacks?W():p4(function(){return void W()},I)}catch(B){throw FJ.enableContextBasedComponentStacks&&tg(B),B;
}finally{lZ(O)}}})};
CX=function(W,P){pX(function(){return n4(W)},P)};
_.AQ=function(W){VU()?_.Qa(function(){n4(W)}):pX(function(){return n4(W)},[])};
oQW=function(W){var P=[].concat(_.ju(W));W.length=0;W=_.n(P);for(P=W.next();!P.done;P=W.next()){P=P.value;ZJ7(P);var x=P.pendingEffect;P.pendingEffect=null;if(x=x==null?void 0:x())P.pendingCleanup=x}};
ZJ7=function(W){var P=W.pendingCleanup;W.pendingCleanup=null;P==null||P()};
SSt=function(W,P){if(VU())return W();var x=OJW("useMemoInternal");JCt(x.deps,P)&&(x.deps=P,x.value=W());return x.value};
zO=function(W,P){return SSt(W,P)};
GO=function(W){return SSt(W,[])};
umm=function(){var W=_.tH.apply(0,arguments),P=GO(function(){return W.map(function(x){return _.YV(x,void 0,"lnSD0c")})});
CX(function(){for(var x=0;x<W.length;x++)(0,P[x][1])(W[x])},W);
return P.map(function(x){return _.n(x).next().value})};
EV=function(W){return GO(function(){return{value:W}})};
_.go=function(W,P){if(!W)return null;W=Object.keys(W);W=_.n(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;var I=x.toLowerCase();if(I.indexOf(P,I.length-P.length)>-1)return x}return null};
_.MR=function(){var W=arguments,P=_.D$;W.length>1?P[W[0]]=W[1]:W.length===1&&Object.assign(P,W[0])};
_.$$=function(W,P){return W in _.D$?_.D$[W]:P};
_.wo=function(W,P){return!!_.$$(W,P)};
d1W=function(W){var P=_.D$.EXPERIMENT_FLAGS;return P?P[W]:void 0};
vQo=function(W){shd.forEach(function(P){return P(W)})};
_.Ho=function(W){return W&&window.yterr?function(){try{return W.apply(this,arguments)}catch(P){_.hQ(P)}}:W};
_.hQ=function(W){var P=_.eL("yt.logging.errors.log");P?P(W,"ERROR",void 0,void 0,void 0,void 0,void 0):(P=_.$$("ERRORS",[]),P.push([W,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.MR("ERRORS",P));vQo(W)};
_.co=function(W,P,x,I,O){var B=_.eL("yt.logging.errors.log");B?B(W,"WARNING",P,x,I,void 0,O):(B=_.$$("ERRORS",[]),B.push([W,"WARNING",P,x,I,void 0,O]),_.MR("ERRORS",B))};
VkU=function(W,P){P=W.split(P);for(var x={},I=0,O=P.length;I<O;I++){var B=P[I].split("=");if(B.length===1&&B[0]||B.length===2)try{var Y=m18(B[0]||""),K=m18(B[1]||"");if(Y in x){var Z=x[Y];Array.isArray(Z)?_.IW(Z,K):x[Y]=[Z,K]}else x[Y]=K}catch(t){var d=t,v=B[0],m=String(VkU);d.args=[{key:v,value:B[1],query:W,method:tkA===m?"unchanged":m}];pfo.hasOwnProperty(v)||_.co(d)}}return x};
jhx=function(W){var P=[];_.jU.forEach(W,function(x,I){var O=_.al(I);_.bP(Array.isArray(x)?x:[x],function(B){B==""?P.push(O):P.push(O+"="+_.al(B))})});
return P.join("&")};
_.k$=function(W){W.charAt(0)==="?"&&(W=W.substring(1));return VkU(W,"&")};
_.UV=function(W){return W.indexOf("?")!==-1?(W=(W||"").split("#")[0],W=W.split("?",2),_.k$(W.length>1?W[1]:W[0])):{}};
_.XY=function(W,P){return QhU(W,P||{},!0)};
CVd=function(W,P){return QhU(W,P||{},!1)};
QhU=function(W,P,x){var I=W.split("#",2);W=I[0];I=I.length>1?"#"+I[1]:"";var O=W.split("?",2);W=O[0];O=_.k$(O[1]||"");for(var B in P)if(x||!_.jU.containsKey(O,B))O[B]=P[B];return _.fX(W,O)+I};
ro=function(W){if(!P)var P=window.location.href;var x=_.NR(W)[1]||null,I=_.lP(W);return x&&I?TO(W,P):I?_.lP(P)===I&&(Number(_.NR(P)[4]||null)||null)===(Number(_.NR(W)[4]||null)||null):!0};
_.zyA=function(W){W=AC8(W);return W===null?!1:W[0]==="com"&&W[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
AC8=function(W){W=_.lP(W);return W!==null?W.split(".").reverse():null};
m18=function(W){return W&&W.match(GYA)?W:iP(W)};
_.Rl=function(W){return new EQx(W)};
_.FY=function(){gQU||(gQU=new D1m);return gQU};
$1o=function(W){var P=_.qR,x,I;_.y(function(O){x=_.FY();return(I=x.resolve(_.Rl(P)))?(W(I),O.return(Promise.resolve(I))):O.return(x.resolve(new Mkx(P)).then(function(B){W(B);return B}))})};
_.p=function(W){W=LX(W);return typeof W==="string"&&W==="false"?!1:!!W};
_.Wi=function(W,P){W=LX(W);return W===void 0&&P!==void 0?P:Number(W||0)};
wfW=function(W){W=LX(W);return Array.isArray(W)?_.C5(W,function(P){return Number(P||0)}):[Number(W||0)]};
_.Pi=function(W){W=LX(W);return W!==void 0?String(W):""};
_.xO=function(W){W=LX(W);return Array.isArray(W)?_.C5(W,function(P){return String(P||"")}):[String(W||"")]};
hym=function(){return _.$$("EXPERIMENTS_TOKEN","")};
LX=function(W){return _.$$("EXPERIMENT_FLAGS",{})[W]};
HJd=function(){for(var W=[],P=_.$$("EXPERIMENTS_FORCED_FLAGS",{}),x=_.n(Object.keys(P)),I=x.next();!I.done;I=x.next())I=I.value,W.push({key:I,value:String(P[I])});x=_.$$("EXPERIMENT_FLAGS",{});I=_.n(Object.keys(x));for(var O=I.next();!O.done;O=I.next())O=O.value,O.startsWith("force_")&&P[O]===void 0&&W.push({key:O,value:String(x[O])});return W};
cCR=function(){if(!eyG)return null;var W=eyG();return"open"in W?W:null};
_.aNd=function(W){switch(_.I6(W)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.I6=function(W){return W&&"status"in W?W.status:-1};
_.Oy=function(W,P){typeof W==="function"&&(W=_.Ho(W));return window.setTimeout(W,P)};
_.JY=function(W,P){typeof W==="function"&&(W=_.Ho(W));return window.setInterval(W,P)};
_.nj=function(W){window.clearTimeout(W)};
kYG=function(W){W=_.UV(W);for(var P=_.n(bJG),x=P.next();!x.done;x=P.next())if(W[x.value]!==void 0)return!0;return!1};
fNW=function(W,P,x,I,O,B,Y,K){x=x===void 0?"GET":x;I=I===void 0?"":I;K=K===void 0?!1:K;var Z=cCR();if(!Z)return null;var d=function(){(Z&&"readyState"in Z?Z.readyState:0)===4&&P&&_.Ho(P)(Z)};
"onloadend"in Z?Z.addEventListener("loadend",d,!1):Z.onreadystatechange=d;_.p("debug_forward_web_query_parameters")&&(W=U17(W,window.location.search));Z.open(x,W,!0);B&&(Z.responseType=B);Y&&(Z.withCredentials=!0);x=x==="POST"&&(window.FormData===void 0||!(I instanceof FormData));if(O=XfR(W,O))for(var v in O)Z.setRequestHeader(v,O[v]),"content-type"===v.toLowerCase()&&(x=!1);x&&Z.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(K&&"setAttributionReporting"in XMLHttpRequest.prototype){W=
{eventSourceEligible:!0,triggerEligible:!1};try{Z.setAttributionReporting(W)}catch(m){_.co(m)}}Z.send(I);return Z};
XfR=function(W,P){P=P===void 0?{}:P;var x=ro(W),I=_.$$("INNERTUBE_CLIENT_NAME"),O=_.p("web_ajax_ignore_global_headers_if_set"),B;for(B in N7R){var Y=_.$$(N7R[B]),K=B==="X-Goog-AuthUser"||B==="X-Goog-PageId";B!=="X-Goog-Visitor-Id"||Y||(Y=_.$$("VISITOR_DATA"));var Z;if(!(Z=!Y)){if(!(Z=x||(_.lP(W)?!1:!0))){Z=W;var d;if(d=_.p("add_auth_headers_to_remarketing_google_dot_com_ping")&&B==="Authorization"&&(I==="TVHTML5"||I==="TVHTML5_UNPLUGGED"||I==="TVHTML5_SIMPLY"))d=AC8(Z),d=d===null?!1:d[1]==="google"?
!0:d[2]==="google"?d[0]==="au"&&d[1]==="com"?!0:d[0]==="uk"&&d[1]==="co"?!0:!1:!1;d&&(Z=_.YO(Z)||"",Z=Z.split("/"),Z="/"+(Z.length>1?Z[1]:""),d=Z==="/pagead");Z=d?!0:!1}Z=!Z}Z||O&&P[B]!==void 0||I==="TVHTML5_UNPLUGGED"&&K||(P[B]=Y)}"X-Goog-EOM-Visitor-Id"in P&&"X-Goog-Visitor-Id"in P&&delete P["X-Goog-Visitor-Id"];if(x||!_.lP(W))P["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(x||!_.lP(W)){try{var v=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}v&&(P["X-YouTube-Time-Zone"]=
v)}document.location.hostname.endsWith("youtubeeducation.com")||!x&&_.lP(W)||(P["X-YouTube-Ad-Signals"]=jhx(lNC()));return P};
_.T7R=function(W,P){var x=_.lP(W);_.p("debug_handle_relative_url_for_query_forward_killswitch")||!x&&ro(W)&&(x=document.location.hostname);var I=_.YO(W);I=(x=x&&(x.endsWith("youtube.com")||x.endsWith("youtube-nocookie.com")))&&I&&I.startsWith("/api/");if(!x||I)return W;var O=_.k$(P),B={};_.bP(bJG,function(Y){O[Y]&&(B[Y]=O[Y])});
return CVd(W,B)};
rCR=function(W,P){P.method="POST";P.postParams||(P.postParams={});return _.yO(W,P)};
iJo=function(W,P){var x=_.$$("XSRF_FIELD_NAME"),I;P.headers&&(I=P.headers["Content-Type"]);return!P.excludeXsrf&&(!_.lP(W)||P.withCredentials||_.lP(W)===document.location.hostname)&&P.method==="POST"&&(!I||I==="application/x-www-form-urlencoded")&&!(P.postParams&&P.postParams[x])};
_.yO=function(W,P){var x=P.format||"JSON";W=Rym(W,P);var I=Fh7(W,P),O=!1,B=qSU(W,function(Z){if(!O){O=!0;K&&_.nj(K);var d=_.aNd(Z),v=null,m=400<=Z.status&&Z.status<500,t=500<=Z.status&&Z.status<600;if(d||m||t)v=Lhm(W,x,Z,P.convertToSafeHtml);d&&(d=W1m(x,Z,v));v=v||{};m=P.context||_.xW;d?P.onSuccess&&P.onSuccess.call(m,Z,v):P.onError&&P.onError.call(m,Z,v);P.onFinish&&P.onFinish.call(m,Z,v)}},P.method,I,P.headers,P.responseType,P.withCredentials);
I=P.timeout||0;if(P.onTimeout&&I>0){var Y=P.onTimeout;var K=_.Oy(function(){O||(O=!0,B.abort(),_.nj(K),Y.call(P.context||_.xW,B))},I)}return B};
Rym=function(W,P){P.includeDomain&&(W=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+W);var x=_.$$("XSRF_FIELD_NAME");if(P=P.urlParams)P[x]&&delete P[x],W=_.XY(W,P);return W};
Fh7=function(W,P){var x=_.$$("XSRF_FIELD_NAME"),I=_.$$("XSRF_TOKEN"),O=P.postBody||"",B=P.postParams;iJo(W,P)&&(B||(B={}),B[x]=I);(_.p("ajax_parse_query_data_only_when_filled")&&B&&Object.keys(B).length>0||B)&&typeof O==="string"&&(O=_.k$(O),_.jU.extend(O,B),O=P.postBodyFormat&&P.postBodyFormat==="JSON"?JSON.stringify(O):_.Kj(O));B=O||B&&!_.jU.isEmpty(B);!POm&&B&&P.method!=="POST"&&(POm=!0,_.hQ(Error("Gc")));return O};
Lhm=function(W,P,x,I){var O=null;switch(P){case "JSON":try{var B=x.responseText}catch(Y){throw I=Error("Hc"),I.params=W,_.co(I),Y;}W=x.getResponseHeader("Content-Type")||"";B&&W.indexOf("json")>=0&&(B.substring(0,5)===")]}'\n"&&(B=B.substring(5)),O=JSON.parse(B));break;case "XML":if(W=(W=x.responseXML)?xVm(W):null)O={},_.bP(W.getElementsByTagName("*"),function(Y){O[Y.tagName]=It7(Y)})}I&&Ofm(O);
return O};
Ofm=function(W){if(_.Jw(W))for(var P in W)P==="html_content"||yG(P,"_html")?W[P]=GI(W[P]):Ofm(W[P])};
W1m=function(W,P,x){if(P&&P.status===204)return!0;switch(W){case "JSON":return!!x;case "XML":return Number(x&&x.return_code)===0;case "RAW":return!0;default:return!!x}};
xVm=function(W){return W?(W=("responseXML"in W?W.responseXML:W).getElementsByTagName("root"))&&W.length>0?W[0]:null:null};
It7=function(W){var P="";_.bP(W.childNodes,function(x){P+=x.nodeValue});
return P};
J1d=function(W){if(W.name==="JavaException")return!0;W=W.stack;return W.includes("chrome://")||W.includes("-extension://")||W.includes("webkit-masked-url://")};
BUS=function(W){if(!W.stack)return!0;var P=!W.stack.includes("\n");return P&&W.stack.includes("ErrorType: ")||P&&W.stack.includes("Anonymous function (Unknown script")||W.stack.toLowerCase()==="not available"||W.fileName==="user-script"||W.fileName.startsWith("user-script:")?!0:!1};
_.Z8=function(W){_.vn.call(this);this.JSC$8345_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!W};
Y_S=function(W,P){var x=W.length,I=0,O=function(){return W.charCodeAt(I++)};
do{var B=naG(O);if(B===Infinity)break;var Y=B>>3;switch(B&7){case 0:B=naG(O);if(Y===P)return B;break;case 1:if(Y===P)return;I+=8;break;case 2:B=naG(O);if(Y===P)return W.substr(I,B);I+=B;break;case 5:if(Y===P)return;I+=4;break;default:return}}while(I<x)};
naG=function(W){var P=W(),x=P&127;if(P<128)return x;P=W();x|=(P&127)<<7;if(P<128)return x;P=W();x|=(P&127)<<14;if(P<128)return x;P=W();return P<128?x|(P&127)<<21:Infinity};
K18=function(W,P,x,I){if(W)if(Array.isArray(W)){var O=I;for(I=0;I<W.length&&!(W[I]&&(O+=y1t(I,W[I],P,x),O>500));I++);I=O}else if(typeof W==="object")for(O in W){if(W[O]){var B=O;var Y=W[O],K=P,Z=x;B=typeof Y!=="string"||B!=="clickTrackingParams"&&B!=="trackingParams"?0:(Y=Y_S(atob(Y.replace(/-/g,"+").replace(/_/g,"/")),2))?y1t(B+".ve",Y,K,Z):0;I+=B;I+=y1t(O,W[O],P,x);if(I>500)break}}else x[P]=o6(W),I+=x[P].length;else x[P]=o6(W),I+=x[P].length;return I};
y1t=function(W,P,x,I){x+="."+W;W=o6(P);I[x]=W;return x.length+W.length};
o6=function(W){try{return(typeof W==="string"?W:String(JSON.stringify(W))).substr(0,500)}catch(P){return"unable to serialize "+typeof W+" ("+P.message+")"}};
ZfU=function(W){switch(W){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}};
_.uA=function(W,P,x,I,O){_.SB.set(W,P,{maxAge:x,path:"/",domain:I===void 0?"youtube.com":I,secure:O===void 0?!1:O})};
_.oam=function(W,P,x){_.SB.remove(W,P===void 0?"/":P,x===void 0?"youtube.com":x)};
_.dO=function(){if(_.p("embeds_web_enable_cookie_detection_fix")){if(!_.xW.navigator.cookieEnabled)return!1}else if(!_.SB.isEnabled())return!1;if(!_.SB.isEmpty())return!0;_.p("embeds_web_enable_cookie_detection_fix")?_.SB.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.SB.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.SB.get("TESTCOOKIESENABLED")!=="1")return!1;_.SB.remove("TESTCOOKIESENABLED");return!0};
S_d=function(){var W=_.xW.navigator;return W?W.connection:void 0};
uuR=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(W){}};
_.siS=function(){var W=S_d();if(W){var P=dVR[W.type||"unknown"]||"CONN_UNKNOWN";W=dVR[W.effectiveType||"unknown"]||"CONN_UNKNOWN";P==="CONN_CELLULAR_UNKNOWN"&&W!=="CONN_UNKNOWN"&&(P=W);if(P!=="CONN_UNKNOWN")return P;if(W!=="CONN_UNKNOWN")return W}};
mVR=function(){var W=S_d();if(W!=null&&W.effectiveType)return vaW.hasOwnProperty(W.effectiveType)?vaW[W.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.vi=function(){try{return _.sy(),!0}catch(W){return!1}};
_.sy=function(W){if(_.$$("DATASYNC_ID")!==void 0)return _.$$("DATASYNC_ID");throw new _.mW("Datasync ID not set",W===void 0?"unknown":W);};
_.VO=function(W){this.mechanism=W};
tY=function(W){this.mechanism=W};
pj=function(W){this.storage_=W;this.cachedIsStorageAvailable_=null};
Vn7=function(){var W=null;try{W=_.xW.localStorage||null}catch(P){}pj.call(this,W)};
tnS=function(){var W=null;try{W=_.xW.sessionStorage||null}catch(P){}pj.call(this,W)};
jB=function(W,P){this.mechanism_=W;this.JSC$8447_prefix_=P+"::"};
_.pVx=function(W){var P=new Vn7;return P.isAvailable()?W?new jB(P,W):P:null};
_.ji8=function(W){var P=new tnS;return P.isAvailable()?W?new jB(P,W):P:null};
COG=function(){var W;return(W=QiW())==null?void 0:W.get("LAST_RESULT_ENTRY_KEY",!0)};
_.AY=function(W){A1A||(_.QO?_.QO.logError(W):(_.Cj.push({type:"ERROR",payload:W}),_.Cj.length>10&&_.Cj.shift()))};
zM=function(W,P){A1A||(_.QO?_.QO.logEvent(W,P):(_.Cj.push({type:"EVENT",eventType:W,payload:P}),_.Cj.length>10&&_.Cj.shift()))};
GM=function(W){if(W.indexOf(":")>=0)throw Error("Oc");};
Ey=function(W){return W.substr(0,W.indexOf(":"))||W};
Eam=function(){return(z3m||G78)&&gO("applewebkit")&&!gO("version")&&(!gO("safari")||gO("gsa/"))};
gO=function(W){var P=_.sU();return P?P.toLowerCase().indexOf(W)>=0:!1};
Mnt=function(W,P,x,I){P=Ey(P);var O=W instanceof Error?W:Error("Pc`"+W);if(O instanceof D8)return O;W={objectStoreNames:x,dbName:P,dbVersion:I};if(O.name==="QuotaExceededError")return new D8("QUOTA_EXCEEDED",W);if(_.MM&&O.name==="UnknownError")return new D8("QUOTA_MAYBE_EXCEEDED",W);if(O instanceof gaW)return new D8("MISSING_INDEX",Object.assign({},W,{objectStore:O.objectStore,index:O.index}));if(O.name==="InvalidStateError"&&DV7.some(function(B){return O.message.includes(B)}))return new D8("EXECUTE_TRANSACTION_ON_CLOSED_DB",
W);
if(O.name==="AbortError")return new D8("UNKNOWN_ABORT",W,O.message);O.args=[Object.assign({},W,{name:"IdbError",originalName:O.name})];O.level="WARNING";return O};
$O=function(W,P,x){var I=COG();return new D8("IDB_NOT_SUPPORTED",{context:{caller:W,publicName:P,version:x,hasSucceededOnce:I==null?void 0:I.hasSucceededOnce}})};
$Vx=function(W){if(!W)throw Error();throw W;};
wVd=function(W){return W};
h3G=function(W,P,x){var I=function(){try{W.removeEventListener("success",O),W.removeEventListener("error",B)}catch(Y){}},O=function(){P(W.result);
I()},B=function(){x(W.error);
I()};
W.addEventListener("success",O);W.addEventListener("error",B)};
HfC=function(W){return new Promise(function(P,x){h3G(W,P,x)})};
Hi=function(W){return new wO(new hY(function(P,x){h3G(W,P,x)}))};
e3S=function(W,P){return new wO(new hY(function(x,I){var O=function(){var B=W?P(W):null;B?B.then(function(Y){W=Y;O()},I):x()};
O()}))};
atm=function(W,P,x){return new Promise(function(I,O){var B=P!==void 0?self.indexedDB.open(W,P):self.indexedDB.open(W);var Y=x.blocked,K=x.blocking,Z=x.terminated,d=x.upgrade,v=x.closed,m,t=function(){m||(m=new eB(B.result,{closed:v}));return m};
B.addEventListener("upgradeneeded",function(C){try{if(C.newVersion===null)throw Error("Uc");if(B.transaction===null)throw Error("Vc");C.dataLoss&&C.dataLoss!=="none"&&zM("IDB_DATA_CORRUPTED",{reason:C.dataLossMessage||"unknown reason",dbName:Ey(W)});var z=t(),D=new c1o(B.transaction);d&&d(z,function(w){return C.oldVersion<w&&C.newVersion>=w},D);
D.done.catch(function(w){O(w)})}catch(w){O(w)}});
B.addEventListener("success",function(){var C=B.result;K&&C.addEventListener("versionchange",function(){K(t())});
C.addEventListener("close",function(){zM("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ey(W),dbVersion:C.version});Z&&Z()});
I(t())});
B.addEventListener("error",function(){O(B.error)});
Y&&B.addEventListener("blocked",function(){Y()})})};
bfC=function(W,P,x){x=x===void 0?{}:x;return atm(W,P,x)};
_.a6=function(W,P){P=P===void 0?{}:P;var x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return _.OT(Y,2),x=self.indexedDB.deleteDatabase(W),I=P,(O=I.blocked)&&x.addEventListener("blocked",function(){O()}),_.S(Y,HfC(x),4);
if(Y.nextAddress!=2)return _.ci(Y,0);B=_.yn(Y);throw Mnt(B,W,"",-1);})};
UVo=function(W,P){var x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,_.bA(k7S,P),2);x=I.yieldResult;return I.return(_.kO(x,["databases"],{enableRetries:!0,mode:"readwrite"},function(O){var B=O.objectStore("databases");return B.get(W.actualName).then(function(Y){if(Y?W.actualName!==Y.actualName||W.publicName!==Y.publicName||W.userIdentifier!==Y.userIdentifier:1)return B.put(W).then(function(){})})}))})};
_.Uy=function(W,P){var x;return _.y(function(I){if(I.nextAddress==1)return W?_.S(I,_.bA(k7S,P),2):I.return();x=I.yieldResult;return I.return(x.delete("databases",W))})};
_.XVA=function(W,P){var x,I;return _.y(function(O){return O.nextAddress==1?(x=[],_.S(O,_.bA(k7S,P),2)):O.nextAddress!=3?(I=O.yieldResult,_.S(O,_.kO(I,["databases"],{enableRetries:!0,mode:"readonly"},function(B){x.length=0;return X9(B.objectStore("databases"),{},function(Y){W(Y.getValue())&&x.push(Y.getValue());return Y.continue()})}),3)):O.return(x)})};
ftd=function(W,P){return _.XVA(function(x){return x.publicName===W&&x.userIdentifier!==void 0},P)};
TU8=function(){var W,P,x,I;return _.y(function(O){switch(O.nextAddress){case 1:W=COG();if((P=W)==null?0:P.hasSucceededOnce)return O.return(!0);var B;if(B=NU8)B=/WebKit\/([0-9]+)/.exec(_.sU()),B=!!(B&&parseInt(B[1],10)>=600);B&&(B=/WebKit\/([0-9]+)/.exec(_.sU()),B=!(B&&parseInt(B[1],10)>=602));if(B||fj)return O.return(!1);try{if(x=self,!(x.indexedDB&&x.IDBIndex&&x.IDBKeyRange&&x.IDBObjectStore))return O.return(!1)}catch(Y){return O.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return O.return(!1);
_.OT(O,2);I={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.S(O,UVo(I,ltR),4);case 4:return _.S(O,_.Uy("yt-idb-test-do-not-use",ltR),5);case 5:return O.return(!0);case 2:return _.yn(O),O.return(!1)}})};
ifo=function(){if(r1S!==void 0)return r1S;A1A=!0;return r1S=TU8().then(function(W){A1A=!1;var P;if((P=QiW())!=null&&P.expiringStorage_){var x;P={hasSucceededOnce:((x=COG())==null?void 0:x.hasSucceededOnce)||W};var I;(I=QiW())==null||I.set("LAST_RESULT_ENTRY_KEY",P,2592E3,!0)}return W})};
NM=function(){return _.eL("ytglobal.idbToken_")||void 0};
_.TM=function(){var W=NM();return W?Promise.resolve(W):ifo().then(function(P){(P=P?ltR:void 0)&&_.lA("ytglobal.idbToken_",P);return P})};
R3R=function(W){if(!_.vi())throw W=new D8("AUTH_INVALID",{dbName:W}),_.AY(W),W;var P=_.sy();return{actualName:W+":"+P,publicName:W,userIdentifier:P}};
F1U=function(W,P,x,I){var O,B,Y,K,Z,d;return _.y(function(v){switch(v.nextAddress){case 1:return B=(O=Error().stack)!=null?O:"",_.S(v,_.TM(),2);case 2:Y=v.yieldResult;if(!Y)throw K=$O("openDbImpl",W,P),_.p("ytidb_async_stack_killswitch")||(K.stack=K.stack+"\n"+B.substring(B.indexOf("\n")+1)),_.AY(K),K;GM(W);Z=x?{actualName:W,publicName:W,userIdentifier:void 0}:R3R(W);_.OT(v,3);return _.S(v,UVo(Z,Y),5);case 5:return _.S(v,bfC(Z.actualName,P,I),6);case 6:return v.return(v.yieldResult);case 3:return d=
_.yn(v),_.OT(v,7),_.S(v,_.Uy(Z.actualName,Y),9);case 9:_.ci(v,8);break;case 7:_.yn(v);case 8:throw d;}})};
q_W=function(W,P,x){x=x===void 0?{}:x;return F1U(W,P,!1,x)};
L1R=function(W,P,x){x=x===void 0?{}:x;return F1U(W,P,!0,x)};
WZx=function(W,P){P=P===void 0?{}:P;var x,I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,_.TM(),2);if(O.nextAddress!=3){x=O.yieldResult;if(!x)return O.return();GM(W);I=R3R(W);return _.S(O,_.a6(I.actualName,P),3)}return _.S(O,_.Uy(I.actualName,x),0)})};
PBR=function(W,P,x){W=W.map(function(I){return _.y(function(O){return O.nextAddress==1?_.S(O,_.a6(I.actualName,P),2):_.S(O,_.Uy(I.actualName,x),0)})});
return Promise.all(W).then(function(){})};
xUG=function(W){var P=P===void 0?{}:P;var x,I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,_.TM(),2);if(O.nextAddress!=3){x=O.yieldResult;if(!x)return O.return();GM(W);return _.S(O,ftd(W,x),3)}I=O.yieldResult;return _.S(O,PBR(I,P,x),0)})};
IEx=function(W,P){P=P===void 0?{}:P;var x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,_.TM(),2);if(I.nextAddress!=3){x=I.yieldResult;if(!x)return I.return();GM(W);return _.S(I,_.a6(W,P),3)}return _.S(I,_.Uy(W,x),0)})};
rO=function(W,P){return OKm(W,P)};
Bwo=function(W){return _.bA(JnR(),W)};
n6t=function(W,P,x,I){var O,B,Y;return _.y(function(K){switch(K.nextAddress){case 1:return O={config:W,hashData:P,timestamp:I!==void 0?I:(0,_.iA)()},_.S(K,Bwo(x),2);case 2:return B=K.yieldResult,_.S(K,B.clear("hotConfigStore"),3);case 3:return _.S(K,B.put("hotConfigStore",O),4);case 4:return Y=K.yieldResult,K.return(Y)}})};
YLG=function(W,P,x,I,O){var B,Y,K;return _.y(function(Z){switch(Z.nextAddress){case 1:return B={config:W,hashData:P,configData:x,timestamp:O!==void 0?O:(0,_.iA)()},_.S(Z,Bwo(I),2);case 2:return Y=Z.yieldResult,_.S(Z,Y.clear("coldConfigStore"),3);case 3:return _.S(Z,Y.put("coldConfigStore",B),4);case 4:return K=Z.yieldResult,Z.return(K)}})};
ynS=function(W){var P,x;return _.y(function(I){return I.nextAddress==1?_.S(I,Bwo(W),2):I.nextAddress!=3?(P=I.yieldResult,x=void 0,_.S(I,_.kO(P,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(O){return _.R6(O.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(B){x=B.getValue()})}),3)):I.return(x)})};
KZU=function(W){var P,x;return _.y(function(I){return I.nextAddress==1?_.S(I,Bwo(W),2):I.nextAddress!=3?(P=I.yieldResult,x=void 0,_.S(I,_.kO(P,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(O){return _.R6(O.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(B){x=B.getValue()})}),3)):I.return(x)})};
ZKd=function(){return _.y(function(W){return _.S(W,xUG("ytGcfConfig"),0)})};
o6U=function(){return"INNERTUBE_API_KEY"in _.D$&&"INNERTUBE_API_VERSION"in _.D$};
_.F9=function(){return{innertubeApiKey:_.$$("INNERTUBE_API_KEY"),innertubeApiVersion:_.$$("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.$$("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.$$("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.$$("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.$$("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.$$("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.$$("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.$$("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.wo("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.wo("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.$$("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.VIG=function(W){var P={client:{hl:W.innertubeContextHostLanguage,gl:W.innertubeContextGeoLocation,clientName:W.innertubeContextClientName,clientVersion:W.innertubeContextClientVersion,configInfo:W.innertubeContextClientConfigInfo}};navigator.userAgent&&(P.client.userAgent=String(navigator.userAgent));var x=_.xW.devicePixelRatio;x&&x!=1&&(P.client.screenDensityFloat=String(x));x=hym();x!==""&&(P.client.experimentsToken=x);x=HJd();x.length>0&&(P.request={internalExperimentFlags:x});SLG(W,void 0,P);
uBm(void 0,P);dUS(void 0,P);suo(W,void 0,P);v6R(void 0,P);_.p("start_client_gcf")&&mUU(void 0,P);_.$$("DELEGATED_SESSION_ID")&&!_.p("pageid_as_header_web")&&(P.user={onBehalfOfUser:_.$$("DELEGATED_SESSION_ID")});!_.p("fill_delegate_context_in_gel_killswitch")&&(W=_.$$("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(P.user=Object.assign({},P.user,{serializedDelegationContext:W}));W=_.$$("INNERTUBE_CONTEXT");var I;if(_.p("enable_persistent_device_token")&&(W==null?0:(I=W.client)==null?0:I.rolloutToken)){var O;
P.client.rolloutToken=W==null?void 0:(O=W.client)==null?void 0:O.rolloutToken}I=Object;O=I.assign;W=P.client;x={};for(var B=_.n(Object.entries(_.k$(_.$$("DEVICE","")))),Y=B.next();!Y.done;Y=B.next()){var K=_.n(Y.value);Y=K.next().value;K=K.next().value;Y==="cbrand"?x.deviceMake=K:Y==="cmodel"?x.deviceModel=K:Y==="cbr"?x.browserName=K:Y==="cbrver"?x.browserVersion=K:Y==="cos"?x.osName=K:Y==="cosver"?x.osVersion=K:Y==="cplatform"&&(x.platform=K)}P.client=O.call(I,W,x);return P};
SLG=function(W,P,x){W=W.innertubeContextClientName;if(W==="WEB"||W==="MWEB"||W===1||W===2)if(P){x=_.qM(P,tIm,96)||new tIm;var I=p7W();I=Object.keys(juR).indexOf(I);I=I===-1?null:I;I!==null&&_.Lj(x,3,I);_.I$(P,96,x)}else x&&(x.client.mainAppWebInfo=(I=x.client.mainAppWebInfo)!=null?I:{},x.client.mainAppWebInfo.webDisplayMode=p7W())};
uBm=function(W,P){var x=_.eL("yt.embedded_player.embed_url");x&&(W?(P=_.qM(W,QuG,7)||new QuG,_.SU(P,4,x),_.I$(W,7,P)):P&&(P.thirdParty={embedUrl:x}))};
dUS=function(W,P){var x;if(_.p("web_log_memory_total_kbytes")&&((x=_.xW.navigator)==null?0:x.deviceMemory)){var I;x=(I=_.xW.navigator)==null?void 0:I.deviceMemory;W?_.WP(W,95,DB(x*1E6)):P&&(P.client.memoryTotalKbytes=""+x*1E6)}};
suo=function(W,P,x){if(W.appInstallData)if(P){var I;x=(I=_.qM(P,PP,62))!=null?I:new PP;_.SU(x,6,W.appInstallData);_.I$(P,62,x)}else x&&(x.client.configInfo=x.client.configInfo||{},x.client.configInfo.appInstallData=W.appInstallData)};
v6R=function(W,P){var x=_.siS();x&&(W?_.Lj(W,61,CBR[x]):P&&(P.client.connectionType=x));_.p("web_log_effective_connection_type")&&(x=mVR())&&(W?_.Lj(W,94,AnG[x]):P&&(P.client.effectiveConnectionType=x))};
_.E6m=function(W,P,x){x=x===void 0?{}:x;var I={};_.$$("EOM_VISITOR_DATA")?I={"X-Goog-EOM-Visitor-Id":_.$$("EOM_VISITOR_DATA")}:I={"X-Goog-Visitor-Id":x.visitorData||_.$$("VISITOR_DATA","")};if(P&&P.includes("www.youtube-nocookie.com"))return I;P=x.authorization||_.$$("AUTHORIZATION");P||(W?P="Bearer "+_.eL("gapi.auth.getToken")().access_token:(zSW.instance||(zSW.instance=new zSW),W=GZC(),_.p("pageid_as_header_web")||delete W["X-Goog-PageId"],I=Object.assign({},I,W)));P&&(I.Authorization=P);return I};
mUU=function(W,P){var x=g68();if(x){var I=x.coldConfigData,O=x.coldHashData;x=x.hotHashData;if(W){var B;P=(B=_.qM(W,PP,62))!=null?B:new PP;I=_.SU(P,1,I);_.SU(I,3,O).setHotHashData(x);_.I$(W,62,P)}else P&&(P.client.configInfo=P.client.configInfo||{},I&&(P.client.configInfo.coldConfigData=I),O&&(P.client.configInfo.coldHashData=O),x&&(P.client.configInfo.hotHashData=x))}};
xN=function(W){for(var P=W.length;--P>=0;)W[P]=0};
DUm=function(W,P,x,I,O){this.static_tree=W;this.extra_bits=P;this.extra_base=x;this.elems=I;this.max_length=O;this.has_stree=W&&W.length};
MIC=function(W,P){this.dyn_tree=W;this.max_code=0;this.stat_desc=P};
ID=function(W,P){W.pending_buf[W.pending++]=P&255;W.pending_buf[W.pending++]=P>>>8&255};
Oz=function(W,P,x){W.bi_valid>16-x?(W.bi_buf|=P<<W.bi_valid&65535,ID(W,W.bi_buf),W.bi_buf=P>>16-W.bi_valid,W.bi_valid+=x-16):(W.bi_buf|=P<<W.bi_valid&65535,W.bi_valid+=x)};
J0=function(W,P,x){Oz(W,x[P*2],x[P*2+1])};
$Ux=function(W,P){var x=0;do x|=W&1,W>>>=1,x<<=1;while(--P>0);return x>>>1};
w7S=function(W,P,x){var I=Array(16),O=0,B;for(B=1;B<=15;B++)I[B]=O=O+x[B-1]<<1;for(x=0;x<=P;x++)O=W[x*2+1],O!==0&&(W[x*2]=$Ux(I[O]++,O))};
hSA=function(W){var P;for(P=0;P<286;P++)W.dyn_ltree[P*2]=0;for(P=0;P<30;P++)W.dyn_dtree[P*2]=0;for(P=0;P<19;P++)W.bl_tree[P*2]=0;W.dyn_ltree[512]=1;W.opt_len=W.static_len=0;W.last_lit=W.matches=0};
HKm=function(W){W.bi_valid>8?ID(W,W.bi_buf):W.bi_valid>0&&(W.pending_buf[W.pending++]=W.bi_buf);W.bi_buf=0;W.bi_valid=0};
eSG=function(W,P,x){HKm(W);ID(W,x);ID(W,~x);BP.arraySet(W.pending_buf,W.window,P,x,W.pending);W.pending+=x};
cnW=function(W,P,x,I){var O=P*2,B=x*2;return W[O]<W[B]||W[O]===W[B]&&I[P]<=I[x]};
aEU=function(W,P,x){for(var I=W.heap[x],O=x<<1;O<=W.heap_len;){O<W.heap_len&&cnW(P,W.heap[O+1],W.heap[O],W.depth)&&O++;if(cnW(P,I,W.heap[O],W.depth))break;W.heap[x]=W.heap[O];x=O;O<<=1}W.heap[x]=I};
fER=function(W,P,x){var I=0;if(W.last_lit!==0){do{var O=W.pending_buf[W.d_buf+I*2]<<8|W.pending_buf[W.d_buf+I*2+1];var B=W.pending_buf[W.l_buf+I];I++;if(O===0)J0(W,B,P);else{var Y=nD[B];J0(W,Y+256+1,P);var K=bKd[Y];K!==0&&(B-=kZG[Y],Oz(W,B,K));O--;Y=O<256?YN[O]:YN[256+(O>>>7)];J0(W,Y,x);K=UUR[Y];K!==0&&(O-=X7R[Y],Oz(W,O,K))}}while(I<W.last_lit)}J0(W,256,P)};
NwG=function(W,P){var x=P.dyn_tree,I=P.stat_desc.static_tree,O=P.stat_desc.has_stree,B=P.stat_desc.elems,Y,K=-1;W.heap_len=0;W.heap_max=573;for(Y=0;Y<B;Y++)x[Y*2]!==0?(W.heap[++W.heap_len]=K=Y,W.depth[Y]=0):x[Y*2+1]=0;for(;W.heap_len<2;){var Z=W.heap[++W.heap_len]=K<2?++K:0;x[Z*2]=1;W.depth[Z]=0;W.opt_len--;O&&(W.static_len-=I[Z*2+1])}P.max_code=K;for(Y=W.heap_len>>1;Y>=1;Y--)aEU(W,x,Y);Z=B;do Y=W.heap[1],W.heap[1]=W.heap[W.heap_len--],aEU(W,x,1),I=W.heap[1],W.heap[--W.heap_max]=Y,W.heap[--W.heap_max]=
I,x[Z*2]=x[Y*2]+x[I*2],W.depth[Z]=(W.depth[Y]>=W.depth[I]?W.depth[Y]:W.depth[I])+1,x[Y*2+1]=x[I*2+1]=Z,W.heap[1]=Z++,aEU(W,x,1);while(W.heap_len>=2);W.heap[--W.heap_max]=W.heap[1];Y=P.dyn_tree;Z=P.max_code;I=P.stat_desc.static_tree;O=P.stat_desc.has_stree;B=P.stat_desc.extra_bits;var d=P.stat_desc.extra_base,v=P.stat_desc.max_length,m,t=0;for(m=0;m<=15;m++)W.bl_count[m]=0;Y[W.heap[W.heap_max]*2+1]=0;for(P=W.heap_max+1;P<573;P++){var C=W.heap[P];m=Y[Y[C*2+1]*2+1]+1;m>v&&(m=v,t++);Y[C*2+1]=m;if(!(C>
Z)){W.bl_count[m]++;var z=0;C>=d&&(z=B[C-d]);var D=Y[C*2];W.opt_len+=D*(m+z);O&&(W.static_len+=D*(I[C*2+1]+z))}}if(t!==0){do{for(m=v-1;W.bl_count[m]===0;)m--;W.bl_count[m]--;W.bl_count[m+1]+=2;W.bl_count[v]--;t-=2}while(t>0);for(m=v;m!==0;m--)for(C=W.bl_count[m];C!==0;)I=W.heap[--P],I>Z||(Y[I*2+1]!==m&&(W.opt_len+=(m-Y[I*2+1])*Y[I*2],Y[I*2+1]=m),C--)}w7S(x,K,W.bl_count)};
lER=function(W,P,x){var I,O=-1,B=P[1],Y=0,K=7,Z=4;B===0&&(K=138,Z=3);P[(x+1)*2+1]=65535;for(I=0;I<=x;I++){var d=B;B=P[(I+1)*2+1];++Y<K&&d===B||(Y<Z?W.bl_tree[d*2]+=Y:d!==0?(d!==O&&W.bl_tree[d*2]++,W.bl_tree[32]++):Y<=10?W.bl_tree[34]++:W.bl_tree[36]++,Y=0,O=d,B===0?(K=138,Z=3):d===B?(K=6,Z=3):(K=7,Z=4))}};
Tw7=function(W,P,x){var I,O=-1,B=P[1],Y=0,K=7,Z=4;B===0&&(K=138,Z=3);for(I=0;I<=x;I++){var d=B;B=P[(I+1)*2+1];if(!(++Y<K&&d===B)){if(Y<Z){do J0(W,d,W.bl_tree);while(--Y!==0)}else d!==0?(d!==O&&(J0(W,d,W.bl_tree),Y--),J0(W,16,W.bl_tree),Oz(W,Y-3,2)):Y<=10?(J0(W,17,W.bl_tree),Oz(W,Y-3,3)):(J0(W,18,W.bl_tree),Oz(W,Y-11,7));Y=0;O=d;B===0?(K=138,Z=3):d===B?(K=6,Z=3):(K=7,Z=4)}}};
rnU=function(W){var P=4093624447,x;for(x=0;x<=31;x++,P>>>=1)if(P&1&&W.dyn_ltree[x*2]!==0)return 0;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return 1;for(x=32;x<256;x++)if(W.dyn_ltree[x*2]!==0)return 1;return 0};
yd=function(W,P,x){W.pending_buf[W.d_buf+W.last_lit*2]=P>>>8&255;W.pending_buf[W.d_buf+W.last_lit*2+1]=P&255;W.pending_buf[W.l_buf+W.last_lit]=x&255;W.last_lit++;P===0?W.dyn_ltree[x*2]++:(W.matches++,P--,W.dyn_ltree[(nD[x]+256+1)*2]++,W.dyn_dtree[(P<256?YN[P]:YN[256+(P>>>7)])*2]++);return W.last_lit===W.lit_bufsize-1};
Zq=function(W,P){W.msg=KD[P];return P};
oD=function(W){for(var P=W.length;--P>=0;)W[P]=0};
d3=function(W){var P=W.state,x=P.pending;x>W.avail_out&&(x=W.avail_out);x!==0&&(BP.arraySet(W.output,P.pending_buf,P.pending_out,x,W.next_out),W.next_out+=x,P.pending_out+=x,W.total_out+=x,W.avail_out-=x,P.pending-=x,P.pending===0&&(P.pending_out=0))};
Vd=function(W,P){var x=W.block_start>=0?W.block_start:-1,I=W.strstart-W.block_start,O=0;if(W.level>0){W.strm.data_type===2&&(W.strm.data_type=rnU(W));NwG(W,W.l_desc);NwG(W,W.d_desc);lER(W,W.dyn_ltree,W.l_desc.max_code);lER(W,W.dyn_dtree,W.d_desc.max_code);NwG(W,W.bl_desc);for(O=18;O>=3&&W.bl_tree[iK8[O]*2+1]===0;O--);W.opt_len+=3*(O+1)+5+5+4;var B=W.opt_len+3+7>>>3;var Y=W.static_len+3+7>>>3;Y<=B&&(B=Y)}else B=Y=I+5;if(I+4<=B&&x!==-1)Oz(W,P?1:0,3),eSG(W,x,I);else if(W.strategy===4||Y===B)Oz(W,2+(P?
1:0),3),fER(W,sz,vP);else{Oz(W,4+(P?1:0),3);x=W.l_desc.max_code+1;I=W.d_desc.max_code+1;O+=1;Oz(W,x-257,5);Oz(W,I-1,5);Oz(W,O-4,4);for(B=0;B<O;B++)Oz(W,W.bl_tree[iK8[B]*2+1],3);Tw7(W,W.dyn_ltree,x-1);Tw7(W,W.dyn_dtree,I-1);fER(W,W.dyn_ltree,W.dyn_dtree)}hSA(W);P&&HKm(W);W.block_start=W.strstart;d3(W.strm)};
t0=function(W,P){W.pending_buf[W.pending++]=P};
pD=function(W,P){W.pending_buf[W.pending++]=P>>>8&255;W.pending_buf[W.pending++]=P&255};
RSo=function(W,P){var x=W.max_chain_length,I=W.strstart,O=W.prev_length,B=W.nice_match,Y=W.strstart>W.w_size-262?W.strstart-(W.w_size-262):0,K=W.window,Z=W.w_mask,d=W.prev,v=W.strstart+258,m=K[I+O-1],t=K[I+O];W.prev_length>=W.good_match&&(x>>=2);B>W.lookahead&&(B=W.lookahead);do{var C=P;if(K[C+O]===t&&K[C+O-1]===m&&K[C]===K[I]&&K[++C]===K[I+1]){I+=2;for(C++;K[++I]===K[++C]&&K[++I]===K[++C]&&K[++I]===K[++C]&&K[++I]===K[++C]&&K[++I]===K[++C]&&K[++I]===K[++C]&&K[++I]===K[++C]&&K[++I]===K[++C]&&I<v;);
C=258-(v-I);I=v-258;if(C>O){W.match_start=P;O=C;if(C>=B)break;m=K[I+O-1];t=K[I+O]}}}while((P=d[P&Z])>Y&&--x!==0);return O<=W.lookahead?O:W.lookahead};
Qd=function(W){var P=W.w_size,x;do{var I=W.window_size-W.lookahead-W.strstart;if(W.strstart>=P+(P-262)){BP.arraySet(W.window,W.window,P,P,0);W.match_start-=P;W.strstart-=P;W.block_start-=P;var O=x=W.hash_size;do{var B=W.head[--O];W.head[O]=B>=P?B-P:0}while(--x);O=x=P;do B=W.prev[--O],W.prev[O]=B>=P?B-P:0;while(--x);I+=P}if(W.strm.avail_in===0)break;O=W.strm;x=W.window;B=W.strstart+W.lookahead;var Y=O.avail_in;Y>I&&(Y=I);Y===0?x=0:(O.avail_in-=Y,BP.arraySet(x,O.input,O.next_in,Y,B),O.state.wrap===
1?O.adler=FZA(O.adler,x,Y,B):O.state.wrap===2&&(O.adler=jV(O.adler,x,Y,B)),O.next_in+=Y,O.total_in+=Y,x=Y);W.lookahead+=x;if(W.lookahead+W.insert>=3)for(I=W.strstart-W.insert,W.ins_h=W.window[I],W.ins_h=(W.ins_h<<W.hash_shift^W.window[I+1])&W.hash_mask;W.insert&&!(W.ins_h=(W.ins_h<<W.hash_shift^W.window[I+3-1])&W.hash_mask,W.prev[I&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=I,I++,W.insert--,W.lookahead+W.insert<3););}while(W.lookahead<262&&W.strm.avail_in!==0)};
qLU=function(W,P){for(var x;;){if(W.lookahead<262){Qd(W);if(W.lookahead<262&&P===0)return 1;if(W.lookahead===0)break}x=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,x=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);x!==0&&W.strstart-x<=W.w_size-262&&(W.match_length=RSo(W,x));if(W.match_length>=3)if(x=yd(W,W.strstart-W.match_start,W.match_length-3),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=3){W.match_length--;
do W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!==0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else x=yd(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(x&&(Vd(W,!1),W.strm.avail_out===0))return 1}W.insert=W.strstart<2?W.strstart:2;return P===4?(Vd(W,
!0),W.strm.avail_out===0?3:4):W.last_lit&&(Vd(W,!1),W.strm.avail_out===0)?1:2};
CD=function(W,P){for(var x,I;;){if(W.lookahead<262){Qd(W);if(W.lookahead<262&&P===0)return 1;if(W.lookahead===0)break}x=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,x=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);W.prev_length=W.match_length;W.prev_match=W.match_start;W.match_length=2;x!==0&&W.prev_length<W.max_lazy_match&&W.strstart-x<=W.w_size-262&&(W.match_length=RSo(W,x),W.match_length<=5&&(W.strategy===1||W.match_length===3&&
W.strstart-W.match_start>4096)&&(W.match_length=2));if(W.prev_length>=3&&W.match_length<=W.prev_length){I=W.strstart+W.lookahead-3;x=yd(W,W.strstart-1-W.prev_match,W.prev_length-3);W.lookahead-=W.prev_length-1;W.prev_length-=2;do++W.strstart<=I&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!==0);W.match_available=0;W.match_length=2;W.strstart++;if(x&&(Vd(W,!1),W.strm.avail_out===0))return 1}else if(W.match_available){if((x=
yd(W,0,W.window[W.strstart-1]))&&Vd(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return 1}else W.match_available=1,W.strstart++,W.lookahead--}W.match_available&&(yd(W,0,W.window[W.strstart-1]),W.match_available=0);W.insert=W.strstart<2?W.strstart:2;return P===4?(Vd(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Vd(W,!1),W.strm.avail_out===0)?1:2};
LZR=function(W,P){for(var x,I,O,B=W.window;;){if(W.lookahead<=258){Qd(W);if(W.lookahead<=258&&P===0)return 1;if(W.lookahead===0)break}W.match_length=0;if(W.lookahead>=3&&W.strstart>0&&(I=W.strstart-1,x=B[I],x===B[++I]&&x===B[++I]&&x===B[++I])){for(O=W.strstart+258;x===B[++I]&&x===B[++I]&&x===B[++I]&&x===B[++I]&&x===B[++I]&&x===B[++I]&&x===B[++I]&&x===B[++I]&&I<O;);W.match_length=258-(O-I);W.match_length>W.lookahead&&(W.match_length=W.lookahead)}W.match_length>=3?(x=yd(W,1,W.match_length-3),W.lookahead-=
W.match_length,W.strstart+=W.match_length,W.match_length=0):(x=yd(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++);if(x&&(Vd(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return P===4?(Vd(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Vd(W,!1),W.strm.avail_out===0)?1:2};
WBG=function(W,P){for(var x;;){if(W.lookahead===0&&(Qd(W),W.lookahead===0)){if(P===0)return 1;break}W.match_length=0;x=yd(W,0,W.window[W.strstart]);W.lookahead--;W.strstart++;if(x&&(Vd(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return P===4?(Vd(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Vd(W,!1),W.strm.avail_out===0)?1:2};
A0=function(W,P,x,I,O){this.good_length=W;this.max_lazy=P;this.nice_length=x;this.max_chain=I;this.func=O};
PxR=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 BP.Buf16(1146);this.dyn_dtree=new BP.Buf16(122);this.bl_tree=new BP.Buf16(78);oD(this.dyn_ltree);oD(this.dyn_dtree);oD(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new BP.Buf16(16);this.heap=new BP.Buf16(573);oD(this.heap);this.heap_max=this.heap_len=0;this.depth=new BP.Buf16(573);oD(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};
xBt=function(W,P){if(!W||!W.state||P>5||P<0)return W?Zq(W,-2):-2;var x=W.state;if(!W.output||!W.input&&W.avail_in!==0||x.status===666&&P!==4)return Zq(W,W.avail_out===0?-5:-2);x.strm=W;var I=x.last_flush;x.last_flush=P;if(x.status===42)if(x.wrap===2)W.adler=0,t0(x,31),t0(x,139),t0(x,8),x.gzhead?(t0(x,(x.gzhead.text?1:0)+(x.gzhead.hcrc?2:0)+(x.gzhead.extra?4:0)+(x.gzhead.name?8:0)+(x.gzhead.comment?16:0)),t0(x,x.gzhead.time&255),t0(x,x.gzhead.time>>8&255),t0(x,x.gzhead.time>>16&255),t0(x,x.gzhead.time>>
24&255),t0(x,x.level===9?2:x.strategy>=2||x.level<2?4:0),t0(x,x.gzhead.os&255),x.gzhead.extra&&x.gzhead.extra.length&&(t0(x,x.gzhead.extra.length&255),t0(x,x.gzhead.extra.length>>8&255)),x.gzhead.hcrc&&(W.adler=jV(W.adler,x.pending_buf,x.pending,0)),x.gzindex=0,x.status=69):(t0(x,0),t0(x,0),t0(x,0),t0(x,0),t0(x,0),t0(x,x.level===9?2:x.strategy>=2||x.level<2?4:0),t0(x,3),x.status=113);else{var O=8+(x.w_bits-8<<4)<<8;O|=(x.strategy>=2||x.level<2?0:x.level<6?1:x.level===6?2:3)<<6;x.strstart!==0&&(O|=
32);x.status=113;pD(x,O+(31-O%31));x.strstart!==0&&(pD(x,W.adler>>>16),pD(x,W.adler&65535));W.adler=1}if(x.status===69)if(x.gzhead.extra){for(O=x.pending;x.gzindex<(x.gzhead.extra.length&65535)&&(x.pending!==x.pending_buf_size||(x.gzhead.hcrc&&x.pending>O&&(W.adler=jV(W.adler,x.pending_buf,x.pending-O,O)),d3(W),O=x.pending,x.pending!==x.pending_buf_size));)t0(x,x.gzhead.extra[x.gzindex]&255),x.gzindex++;x.gzhead.hcrc&&x.pending>O&&(W.adler=jV(W.adler,x.pending_buf,x.pending-O,O));x.gzindex===x.gzhead.extra.length&&
(x.gzindex=0,x.status=73)}else x.status=73;if(x.status===73)if(x.gzhead.name){O=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>O&&(W.adler=jV(W.adler,x.pending_buf,x.pending-O,O)),d3(W),O=x.pending,x.pending===x.pending_buf_size)){var B=1;break}B=x.gzindex<x.gzhead.name.length?x.gzhead.name.charCodeAt(x.gzindex++)&255:0;t0(x,B)}while(B!==0);x.gzhead.hcrc&&x.pending>O&&(W.adler=jV(W.adler,x.pending_buf,x.pending-O,O));B===0&&(x.gzindex=0,x.status=91)}else x.status=91;if(x.status===
91)if(x.gzhead.comment){O=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>O&&(W.adler=jV(W.adler,x.pending_buf,x.pending-O,O)),d3(W),O=x.pending,x.pending===x.pending_buf_size)){B=1;break}B=x.gzindex<x.gzhead.comment.length?x.gzhead.comment.charCodeAt(x.gzindex++)&255:0;t0(x,B)}while(B!==0);x.gzhead.hcrc&&x.pending>O&&(W.adler=jV(W.adler,x.pending_buf,x.pending-O,O));B===0&&(x.status=103)}else x.status=103;x.status===103&&(x.gzhead.hcrc?(x.pending+2>x.pending_buf_size&&d3(W),
x.pending+2<=x.pending_buf_size&&(t0(x,W.adler&255),t0(x,W.adler>>8&255),W.adler=0,x.status=113)):x.status=113);if(x.pending!==0){if(d3(W),W.avail_out===0)return x.last_flush=-1,0}else if(W.avail_in===0&&(P<<1)-(P>4?9:0)<=(I<<1)-(I>4?9:0)&&P!==4)return Zq(W,-5);if(x.status===666&&W.avail_in!==0)return Zq(W,-5);if(W.avail_in!==0||x.lookahead!==0||P!==0&&x.status!==666){I=x.strategy===2?WBG(x,P):x.strategy===3?LZR(x,P):zr[x.level].func(x,P);if(I===3||I===4)x.status=666;if(I===1||I===3)return W.avail_out===
0&&(x.last_flush=-1),0;if(I===2&&(P===1?(Oz(x,2,3),J0(x,256,sz),x.bi_valid===16?(ID(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):x.bi_valid>=8&&(x.pending_buf[x.pending++]=x.bi_buf&255,x.bi_buf>>=8,x.bi_valid-=8)):P!==5&&(Oz(x,0,3),eSG(x,0,0),P===3&&(oD(x.head),x.lookahead===0&&(x.strstart=0,x.block_start=0,x.insert=0))),d3(W),W.avail_out===0))return x.last_flush=-1,0}if(P!==4)return 0;if(x.wrap<=0)return 1;x.wrap===2?(t0(x,W.adler&255),t0(x,W.adler>>8&255),t0(x,W.adler>>16&255),t0(x,W.adler>>24&255),t0(x,
W.total_in&255),t0(x,W.total_in>>8&255),t0(x,W.total_in>>16&255),t0(x,W.total_in>>24&255)):(pD(x,W.adler>>>16),pD(x,W.adler&65535));d3(W);x.wrap>0&&(x.wrap=-x.wrap);return x.pending!==0?0:1};
I5W=function(W){if(!(this instanceof I5W))return new I5W(W);W=this.options=BP.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},W||{});W.raw&&W.windowBits>0?W.windowBits=-W.windowBits:W.gzip&&W.windowBits>0&&W.windowBits<16&&(W.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new OR8;this.strm.avail_out=0;var P=this.strm;var x=W.level,I=W.method,O=W.windowBits,B=W.memLevel,Y=W.strategy;if(P){var K=1;x===-1&&(x=6);O<0?(K=0,O=-O):O>15&&
(K=2,O-=16);if(B<1||B>9||I!==8||O<8||O>15||x<0||x>9||Y<0||Y>4)P=Zq(P,-2);else{O===8&&(O=9);var Z=new PxR;P.state=Z;Z.strm=P;Z.wrap=K;Z.gzhead=null;Z.w_bits=O;Z.w_size=1<<Z.w_bits;Z.w_mask=Z.w_size-1;Z.hash_bits=B+7;Z.hash_size=1<<Z.hash_bits;Z.hash_mask=Z.hash_size-1;Z.hash_shift=~~((Z.hash_bits+3-1)/3);Z.window=new BP.Buf8(Z.w_size*2);Z.head=new BP.Buf16(Z.hash_size);Z.prev=new BP.Buf16(Z.w_size);Z.lit_bufsize=1<<B+6;Z.pending_buf_size=Z.lit_bufsize*4;Z.pending_buf=new BP.Buf8(Z.pending_buf_size);
Z.d_buf=Z.lit_bufsize;Z.l_buf=3*Z.lit_bufsize;Z.level=x;Z.strategy=Y;Z.method=I;if(P&&P.state){P.total_in=P.total_out=0;P.data_type=2;x=P.state;x.pending=0;x.pending_out=0;x.wrap<0&&(x.wrap=-x.wrap);x.status=x.wrap?42:113;P.adler=x.wrap===2?0:1;x.last_flush=0;if(!JbC){I=Array(16);for(B=Y=0;B<28;B++)for(kZG[B]=Y,O=0;O<1<<bKd[B];O++)nD[Y++]=B;nD[Y-1]=B;for(B=Y=0;B<16;B++)for(X7R[B]=Y,O=0;O<1<<UUR[B];O++)YN[Y++]=B;for(Y>>=7;B<30;B++)for(X7R[B]=Y<<7,O=0;O<1<<UUR[B]-7;O++)YN[256+Y++]=B;for(O=0;O<=15;O++)I[O]=
0;for(O=0;O<=143;)sz[O*2+1]=8,O++,I[8]++;for(;O<=255;)sz[O*2+1]=9,O++,I[9]++;for(;O<=279;)sz[O*2+1]=7,O++,I[7]++;for(;O<=287;)sz[O*2+1]=8,O++,I[8]++;w7S(sz,287,I);for(O=0;O<30;O++)vP[O*2+1]=5,vP[O*2]=$Ux(O,5);BER=new DUm(sz,bKd,257,286,15);nzR=new DUm(vP,UUR,0,30,15);Ynx=new DUm([],ybU,0,19,7);JbC=!0}x.l_desc=new MIC(x.dyn_ltree,BER);x.d_desc=new MIC(x.dyn_dtree,nzR);x.bl_desc=new MIC(x.bl_tree,Ynx);x.bi_buf=0;x.bi_valid=0;hSA(x);x=0}else x=Zq(P,-2);x===0&&(P=P.state,P.window_size=2*P.w_size,oD(P.head),
P.max_lazy_match=zr[P.level].max_lazy,P.good_match=zr[P.level].good_length,P.nice_match=zr[P.level].nice_length,P.max_chain_length=zr[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=2,P.match_available=0,P.ins_h=0);P=x}}else P=-2;if(P!==0)throw Error(KD[P]);W.header&&(P=this.strm)&&P.state&&P.state.wrap===2&&(P.state.gzhead=W.header);if(W.dictionary){var d;typeof W.dictionary==="string"?d=KBx(W.dictionary):ZRC.call(W.dictionary)==="[object ArrayBuffer]"?
d=new Uint8Array(W.dictionary):d=W.dictionary;W=this.strm;B=d;Y=B.length;if(W&&W.state)if(d=W.state,P=d.wrap,P===2||P===1&&d.status!==42||d.lookahead)P=-2;else{P===1&&(W.adler=FZA(W.adler,B,Y,0));d.wrap=0;Y>=d.w_size&&(P===0&&(oD(d.head),d.strstart=0,d.block_start=0,d.insert=0),x=new BP.Buf8(d.w_size),BP.arraySet(x,B,Y-d.w_size,d.w_size,0),B=x,Y=d.w_size);x=W.avail_in;I=W.next_in;O=W.input;W.avail_in=Y;W.next_in=0;W.input=B;for(Qd(d);d.lookahead>=3;){B=d.strstart;Y=d.lookahead-2;do d.ins_h=(d.ins_h<<
d.hash_shift^d.window[B+3-1])&d.hash_mask,d.prev[B&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=B,B++;while(--Y);d.strstart=B;d.lookahead=2;Qd(d)}d.strstart+=d.lookahead;d.block_start=d.strstart;d.insert=d.lookahead;d.lookahead=0;d.match_length=d.prev_length=2;d.match_available=0;W.next_in=I;W.input=O;W.avail_in=x;d.wrap=P;P=0}else P=-2;if(P!==0)throw Error(KD[P]);this._dict_set=!0}};
ozx=function(W,P){P=P||{};P.gzip=!0;P=new I5W(P);P.push(W,!0);if(P.err)throw P.msg||KD[P.err];return P.result};
ueo=function(W,P){var x=SnG();x&&x.publish.call(x,W.toString(),W,P)};
Vl8=function(W,P,x){var I=SnG();if(!I)return 0;var O=I.subscribe(W.toString(),function(B,Y){var K=_.eL("ytPubsub2Pubsub2SkipSubKey");K&&K==O||(K=function(){if(dBt[O])try{if(Y&&W instanceof sY8&&W!=B)try{var Z=W.dataClass,d=Y;if(!d.args||!d.version)throw Error("Xc");try{if(!Z.version_){var v=new Z;Z.version_=v.version}var m=Z.version_}catch(t){}if(!m||d.version!=m)throw Error("Yc");try{Y=Reflect.construct(Z,_.Lm(d.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+t.message,t;}P.call(x||window,Y)}catch(t){_.hQ(t)}},vzC[W.toString()]?_.eL("yt.scheduler.instance")?_.Gr.addLowPriorityJob(K):_.Oy(K,0):K())});
dBt[O]=!0;mBR[W.toString()]||(mBR[W.toString()]=[]);mBR[W.toString()].push(O);return O};
QYx=function(){var W=tlA,P=Vl8(puG,function(x){W.apply(void 0,arguments);jYA(P)});
return P};
jYA=function(W){var P=SnG();P&&(typeof W==="number"&&(W=[W]),_.bP(W,function(x){P.unsubscribeByKey(x);delete dBt[x]}))};
SnG=function(){return _.eL("ytPubsub2Pubsub2Instance")};
Cxx=function(W,P,x){x=x===void 0?{sampleRate:.1}:x;Math.random()<Math.min(.02,x.sampleRate/100)&&ueo("meta_logging_csi_event",{timerName:W,timelineData:P})};
_.AbR=function(W){return W?(W=W.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.hH(W):null:null};
_.Ez=function(W){return W?(W=W.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.YH(W):null:null};
GKm=function(){zpm||(zpm=_.Ez(_.$$("WORKER_SERIALIZATION_URL")));return zpm||void 0};
_.gzx=function(){var W=GKm();Ezm||W===void 0||(Ezm=new Worker(_.y4(W),void 0));return Ezm};
_.DB7=function(){return typeof Worker==="function"&&GKm()?!0:!1};
_.hpR=function(){if(_.DB7()&&!Mlt){var W=function(x){x=x.data;if(x.op==="gzippedGelBatch"){var I=$Bm.get(x.key);I&&(wuC(x.gzippedBatch,I.latencyPayload,I.url,I.options,I.sendFn),$Bm.delete(x.key))}},P=_.gzx();
P&&(P.addEventListener("message",W),P.onerror=function(){$Bm.clear()},Mlt=!0)}};
UBR=function(W,P,x,I,O){O=O===void 0?!1:O;var B={startTime:(0,_.iA)(),ticks:{},infos:{}};if(g3)try{var Y=HRS(P);if(Y!=null&&(Y>epd||Y<cbd))I(W,x);else{if(_.p("gzip_gel_with_worker")&&(_.p("initial_gzip_use_main_thread")&&!a5S||!_.p("initial_gzip_use_main_thread"))){Mlt||_.hpR();var K=_.gzx();if(K&&!O){$Bm.set(bRU,{latencyPayload:B,url:W,options:x,sendFn:I});K.postMessage({op:"gelBatchToGzip",serializedBatch:P,key:bRU});bRU++;return}}var Z=ozx(kKC(P));wuC(Z,B,W,x,I)}}catch(d){_.co(d),I(W,x)}else I(W,
x)};
wuC=function(W,P,x,I,O){a5S=!1;var B=(0,_.iA)();P.ticks.gelc=B;Dq++;_.p("disable_compression_due_to_performance_degredation")&&B-P.startTime>=XuG&&(f5C++,_.p("abandon_compression_after_N_slow_zips")?Dq===_.Wi("compression_disable_point")&&f5C>NES&&(g3=!1):g3=!1);l58(P);I.headers||(I.headers={});I.headers["Content-Encoding"]="gzip";I.postBody=W;I.postParams=void 0;O(x,I)};
TEW=function(W){var P=P===void 0?!1:P;var x=x===void 0?!1:x;var I=(0,_.iA)(),O={startTime:I,ticks:{},infos:{}},B=P?_.eL("yt.logging.gzipForFetch",!1):!0;if(g3&&B){if(!W.body)return W;try{var Y=x?W.body:typeof W.body==="string"?W.body:JSON.stringify(W.body);B=Y;if(!x&&typeof Y==="string"){var K=HRS(Y);if(K!=null&&(K>epd||K<cbd))return W;x=P?{level:1}:void 0;B=ozx(kKC(Y),x);var Z=(0,_.iA)();O.ticks.gelc=Z;if(P){Dq++;if((_.p("disable_compression_due_to_performance_degredation")||_.p("disable_compression_due_to_performance_degradation_lr"))&&
Z-I>=XuG)if(f5C++,_.p("abandon_compression_after_N_slow_zips")||_.p("abandon_compression_after_N_slow_zips_lr")){P=f5C/Dq;var d=NES/_.Wi("compression_disable_point");Dq>0&&Dq%_.Wi("compression_disable_point")===0&&P>=d&&(g3=!1)}else g3=!1;l58(O)}}W.headers=Object.assign({},{"Content-Encoding":"gzip"},W.headers||{});W.body=B;return W}catch(v){return _.co(v),W}}else return W};
HRS=function(W){try{return(new Blob(W.split(""))).size}catch(P){return _.co(P),null}};
l58=function(W){_.p("gel_compression_csi_killswitch")||!_.p("log_gel_compression_latency")&&!_.p("log_gel_compression_latency_lr")||Cxx("gel_compression",W,{sampleRate:.1})};
rb7=function(){this.blockSize=-1};
Mt=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var W=1;W<this.blockSize;++W)this.pad_[W]=0;this.total_=this.inbuf_=0;this.reset()};
Rp8=function(W){W=Object.assign({},W);delete W.Authorization;var P=iRd();if(P){var x=new Mt;x.update(_.$$("INNERTUBE_API_KEY"));x.update(P);W.hash=_.L2(x.digest(),3)}return W};
w3=function(){FB8||(FB8=new _.$N("yt.innertube"));return FB8};
qnm=function(W,P,x,I){if(I)return null;I=w3().get("nextId",!0)||1;var O=w3().get("requests",!0)||{};O[I]={method:W,request:P,authState:Rp8(x),requestTime:Math.round((0,_.iA)())};w3().set("nextId",I+1,86400,!0);w3().set("requests",O,86400,!0);return I};
LB8=function(W){var P=w3().get("requests",!0)||{};delete P[W];w3().set("requests",P,86400,!0)};
PSW=function(W){var P=w3().get("requests",!0);if(P){for(var x in P){var I=P[x];if(!(Math.round((0,_.iA)())-I.requestTime<6E4)){var O=I.authState,B=Rp8(_.E6m(!1));_.jU.equals(O,B)&&(O=I.request,"requestTimeMs"in O&&(O.requestTimeMs=Math.round((0,_.iA)())),W78(W,I.method,O,{}));delete P[x]}}w3().set("requests",P,86400,!0)}};
xam=function(W){var P;return(W=W==null?void 0:(P=W.error)==null?void 0:P.code)&&W>=400&&W<=599?!1:!0};
IzR=function(W){var P;W=W==null?void 0:(P=W.error)==null?void 0:P.code;return!(W!==400&&W!==415)};
Jqd=function(){if(OLm)return OLm();var W={};OLm=rO("LogsDatabaseV2",{objectStores:(W.LogsRequestsStore={addedAtVersion:2},W),shared:!1,upgrade:function(P,x,I){x(2)&&h0(P,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});x(3);x(5)&&(I=I.objectStore("LogsRequestsStore"),I.JSC$8506_wrapped.indexNames.contains("newRequest")&&I.JSC$8506_wrapped.deleteIndex("newRequest"),HP(I,"newRequestV2",["status","interface","timestamp"]));x(7)&&P.JSC$8491_wrapped.objectStoreNames.contains("sapisid")&&P.JSC$8491_wrapped.deleteObjectStore("sapisid");
x(9)&&P.JSC$8491_wrapped.objectStoreNames.contains("SWHealthLog")&&P.JSC$8491_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return OLm()};
eV=function(W){return _.bA(Jqd(),W)};
n3W=function(W,P){var x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return x={startTime:(0,_.iA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.S(Y,eV(P),2);if(Y.nextAddress!=3)return I=Y.yieldResult,O=Object.assign({},W,{options:JSON.parse(JSON.stringify(W.options)),interface:_.$$("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.S(Y,I.put("LogsRequestsStore",O),3);B=Y.yieldResult;x.ticks.tc=(0,_.iA)();BTm(x);return Y.return(B)})};
Yoo=function(W,P){var x,I,O,B,Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1)return x={startTime:(0,_.iA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.S(v,eV(P),2);if(v.nextAddress!=3)return I=v.yieldResult,O=_.$$("INNERTUBE_CONTEXT_CLIENT_NAME",0),B=[W,O,0],Y=[W,O,(0,_.iA)()],K=IDBKeyRange.bound(B,Y),Z="prev",_.p("use_fifo_for_networkless")&&(Z="next"),d=void 0,_.S(v,_.kO(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(m){return _.R6(m.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:K,direction:Z},function(t){t.getValue()&&(d=t.getValue(),W==="NEW"&&(d.status="QUEUED",t.update(d)))})}),3);
x.ticks.tc=(0,_.iA)();BTm(x);return v.return(d)})};
yqA=function(W,P){var x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,eV(P),2);x=I.yieldResult;return I.return(_.kO(x,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(O){var B=O.objectStore("LogsRequestsStore");return B.get(W).then(function(Y){if(Y)return Y.status="QUEUED",B.put(Y).then(function(){return Y})})}))})};
K77=function(W,P,x,I){x=x===void 0?!0:x;var O;return _.y(function(B){if(B.nextAddress==1)return _.S(B,eV(P),2);O=B.yieldResult;return B.return(_.kO(O,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var K=Y.objectStore("LogsRequestsStore");return K.get(W).then(function(Z){return Z?(Z.status="NEW",x&&(Z.sendCount+=1),I!==void 0&&(Z.options.compress=I),K.put(Z).then(function(){return Z})):wO.resolve(void 0)})}))})};
ZLS=function(W,P){var x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,eV(P),2);x=I.yieldResult;return I.return(x.delete("LogsRequestsStore",W))})};
o3R=function(W){var P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,eV(W),2);P=I.yieldResult;x=(0,_.iA)()-2592E6;return _.S(I,_.kO(P,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(O){return X9(O.objectStore("LogsRequestsStore"),{},function(B){if(B.getValue().timestamp<=x)return B.delete().then(function(){return B.continue()})})}),0)})};
SoR=function(){_.y(function(W){return _.S(W,xUG("LogsDatabaseV2"),0)})};
BTm=function(W){_.p("nwl_csi_killswitch")||Cxx("networkless_performance",W,{sampleRate:1})};
_.dam=function(W){return _.bA(uy7(),W)};
sfW=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,_.dam(W),2);P=I.yieldResult;x=(0,_.iA)()-2592E6;return _.S(I,_.kO(P,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(O){return X9(O.objectStore("SWHealthLog"),{},function(B){if(B.getValue().timestamp<=x)return B.delete().then(function(){return B.continue()})})}),0)})};
v3m=function(W){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,_.dam(W),2);P=x.yieldResult;return _.S(x,P.clear("SWHealthLog"),0)})};
_.cP=function(W,P,x,I,O,B,Y){O=O===void 0?"":O;B=B===void 0?!1:B;Y=Y===void 0?!1:Y;if(W)if(x&&!gO("cobalt"))_.co(new _.mW("Legacy referrer-scrubbed ping detected")),W&&ma8(W,void 0,{scrubReferrer:!0});else if(O)fNW(W,P,"POST",O,I);else if(_.$$("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||I||Y)fNW(W,P,"GET","",I,void 0,B,Y);else{b:{try{c:{var K=new V9m({url:W});if(K.urlParamValues_.dsh==="1")var Z=null;else{var d=K.urlParamValues_.ae;if(d==="1"){var v=K.urlParamValues_.adurl;if(v)try{Z={version:3,directUrl:decodeURIComponent(v),
asyncUrl:gjA(K.JSC$7381_url_,"act=1","ri=1",t9t(K))};break c}catch(z){}}Z=d==="2"?{version:4,directUrl:gjA(K.JSC$7381_url_,"dct=1","suid="+K.suid_,""),asyncUrl:gjA(K.JSC$7381_url_,"act=1","ri=1","suid="+K.suid_)}:null}}if(Z){var m=_.YO(W);var t=!(!m||!m.endsWith("/aclk")||_.hz(W,"ri")!=="1");break b}}catch(z){}t=!1}if(t){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(W,"")){var C=!0;break b}}catch(z){}C=!1}C?(P&&P(),x=!0):x=!1}else x=!1;x||ma8(W,P)}};
ma8=function(W,P,x){x=x===void 0?{}:x;var I=new Image,O=""+p5U++;jfU[O]=I;I.onload=I.onerror=function(){P&&jfU[O]&&P();delete jfU[O]};
x.scrubReferrer&&(I.referrerPolicy="no-referrer");I.src=W};
aD=function(W,P){QfA(W,P==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
CSG=function(W){var P;return((P=document.featurePolicy)==null?0:P.allowedFeatures().includes("attribution-reporting"))?W+"&nis=6":W+"&nis=5"};
AqA=function(W){if(!W)return!1;try{var P;if(((P=_.k$(W))==null?void 0:P.asm)==="4")return!0}catch(x){_.hQ(x)}return!1};
QfA=function(W,P){P?(W=CSG(W),_.cP(W,void 0,void 0,void 0,"",!0,!0)):_.cP(W)};
G1R=function(){zk8||(zk8=new _.$N("yt.offline"));return zk8};
E3m=function(W){if(_.p("offline_error_handling")){var P=G1R().get("errors",!0)||{};P[W.message]={name:W.name,stack:W.stack};W.level&&(P[W.message].level=W.level);G1R().set("errors",P,2592E3,!0)}};
DaS=function(W,P,x,I){I=I===void 0?!1:I;P=_.p("web_fp_via_jspb")?Object.assign({},P):P;_.p("use_cfr_monitor")&&g38(W,P);if(_.p("use_request_time_ms_header"))P.headers&&ro(W)&&(P.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.iA)())));else{var O;if((O=P.postParams)==null?0:O.requestTimeMs)P.postParams.requestTimeMs=Math.round((0,_.iA)())}x&&Object.keys(P).length===0?_.cP(W):P.compress?P.postBody?(typeof P.postBody!=="string"&&(P.postBody=JSON.stringify(P.postBody)),UBR(W,P.postBody,
P,_.yO,I)):UBR(W,JSON.stringify(P.postParams),P,rCR,I):_.yO(W,P)};
M9R=function(W,P){_.p("use_event_time_ms_header")&&ro(W)&&(P.headers||(P.headers={}),P.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.iA)())));return P};
_.w5R=function(){$aS||($aS=new _.bE({logOfflineErrors:!0,enablePolling:!0}));return $aS};
g38=function(W,P){var x=P.onError?P.onError:function(){};
P.onError=function(O,B){kN().requestComplete(W,!1);x(O,B)};
var I=P.onSuccess?P.onSuccess:function(){};
P.onSuccess=function(O,B){kN().requestComplete(W,!0);I(O,B)}};
_.hkW=function(){return _.lP(document.location.toString())!=="www.youtube-nocookie.com"};
_.cqC=function(){return _.eL("ytNetworklessLoggingInitializationOptions")?_.HLU.isNwlInitialized:_.ekm};
azo=function(W,P){if(_.p("polymer_on_demand_shady_dom")){var x;var I=(x=W.__shady_native_firstElementChild)!=null?x:W.firstElementChild}else I=W.firstElementChild;for(;I;){if(W=P(I)?I:azo(I,P))return W;I=I.nextElementSibling}return null};
k1m=function(){var W=document;if("visibilityState"in W)return W.visibilityState;var P=bLR+"VisibilityState";if(P in W)return W[P]};
_.Uat=function(W,P){var x;Uz(W,function(I){x=P[I];return!!x});
return x};
_.fD=function(W){var P=X5t(W);P?P.focus():_.XG(W)};
X5t=function(W){return(W=azo(W,function(P){return _.Nt(P)?fzo(P)&&!!P.offsetParent:!1}))?W:null};
_.XG=function(W,P){W.hasAttribute("tabindex")||W.setAttribute("tabindex","-1");W.focus(P)};
NTm=function(W,P,x,I){I=I===void 0?{}:I;W.addEventListener&&(P!="mouseenter"||"onmouseenter"in document?P!="mouseleave"||"onmouseenter"in document?P=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(P="MozMousePixelScroll"):P="mouseout":P="mouseover");return _.jU.findKey(lE,function(O){var B=typeof O[4]==="boolean"&&O[4]==!!I,Y=_.Jw(O[4])&&_.Jw(I)&&_.jU.equals(O[4],I);return!!O.length&&O[0]==W&&O[1]==P&&O[2]==x&&(B||Y)})};
_.r3=function(W,P,x,I){I=I===void 0?{}:I;if(!W||!W.addEventListener&&!W.attachEvent)return"";var O=NTm(W,P,x,I);if(O)return O;O=++lzR.count+"";var B=!(P!="mouseenter"&&P!="mouseleave"||!W.addEventListener||"onmouseenter"in document);var Y=B?function(K){K=new Tr(K);if(!_.MT(K.relatedTarget,function(Z){return Z==W},!0))return K.currentTarget=W,K.type=P,x.call(W,K)}:function(K){K=new Tr(K);
K.currentTarget=W;return x.call(W,K)};
Y=_.Ho(Y);W.addEventListener?(P=="mouseenter"&&B?P="mouseover":P=="mouseleave"&&B?P="mouseout":P=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(P="MozMousePixelScroll"),TTS()||typeof I==="boolean"?W.addEventListener(P,Y,I):W.addEventListener(P,Y,!!I.capture)):W.attachEvent("on"+P,Y);lE[O]=[W,P,x,Y,I];return O};
_.iLC=function(W,P,x){var I=I===void 0?{}:I;var O=_.r3(W,P,function(){_.rqd(O);x.apply(W,arguments)},I)};
_.rqd=function(W){W&&(typeof W=="string"&&(W=[W]),_.bP(W,function(P){if(P in lE){var x=lE[P],I=x[0],O=x[1],B=x[3];x=x[4];I.removeEventListener?TTS()||typeof x==="boolean"?I.removeEventListener(O,B,x):I.removeEventListener(O,B,!!x.capture):I.detachEvent&&I.detachEvent("on"+O,B);delete lE[P]}}))};
iE=function(W){this.callback_=W;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(W=0;W<4;W++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.r3(window,"mousemove",(0,_.mx)(this.onMouseMove_,this));this.timerId_=_.JY((0,_.mx)(this.checkPosition_,this),25)};
F77=function(){var W={};var P=W.preferMobileEvents===void 0?!1:W.preferMobileEvents;W=W.enableScrollEventListener===void 0?!0:W.enableScrollEventListener;if(_.eL("_lact",window)==null){var x=parseInt(_.$$("LACT"),10);x=isFinite(x)?Date.now()-Math.max(x,0):-1;_.lA("_lact",x,window);_.lA("_fact",x,window);x==-1&&_.qt();_.r3(document,"keydown",_.qt);_.r3(document,"keyup",_.qt);_.r3(document,"mousedown",_.qt);_.r3(document,"mouseup",_.qt);P?_.r3(window,"touchmove",function(){Rkd("touchmove",200)},{passive:!0}):
(_.r3(window,"resize",function(){Rkd("resize",200)}),W&&_.r3(window,"scroll",function(){Rkd("scroll",200)}));
new iE(function(){Rkd("mouse",100)});
_.r3(document,"touchstart",_.qt,{passive:!0});_.r3(document,"touchend",_.qt,{passive:!0})}};
Rkd=function(W,P){qoW[W]||(qoW[W]=!0,_.Gr.addLowPriorityJob(function(){_.qt();qoW[W]=!1},P))};
_.qt=function(){_.eL("_lact",window)==null&&F77();var W=Date.now();_.lA("_lact",W,window);_.eL("_fact",window)==-1&&_.lA("_fact",W,window);(W=_.eL("ytglobal.ytUtilActivityCallback_"))&&W()};
_.LD=function(){var W=_.eL("_lact",window);return W==null?-1:Math.max(Date.now()-W,0)};
_.IR=function(W,P,x){var I=_.WB();if(I&&P){var O=I.subscribe(W,function(){var B=arguments,Y=function(){PB[O]&&P.apply&&typeof P.apply=="function"&&P.apply(x||window,B)};
try{_.L7m[W]?Y():_.Oy(Y,0)}catch(K){_.hQ(K)}},x);
PB[O]=!0;xM[W]||(xM[W]=[]);xM[W].push(O);return O}return 0};
_.Wrt=function(W){var P=_.WB();P&&(typeof W==="number"?W=[W]:typeof W==="string"&&(W=[parseInt(W,10)]),_.bP(W,function(x){P.unsubscribeByKey(x);delete PB[x]}))};
_.PwC=function(W,P){var x=_.WB();x&&x.publish.apply(x,arguments)};
_.IeU=function(W){var P=_.WB();if(P)if(P.clear(W),W)xnG(W);else for(var x in xM)xnG(x)};
_.WB=function(){return _.xW.ytPubsubPubsubInstance};
xnG=function(W){xM[W]&&(W=xM[W],_.bP(W,function(P){PB[P]&&delete PB[P]}),W.length=0)};
O_S=function(){var W,P;return"h5vcc"in OA&&((W=OA.h5vcc.traceEvent)==null?0:W.traceBegin)&&((P=OA.h5vcc.traceEvent)==null?0:P.traceEnd)?1:"performance"in OA&&OA.performance.mark&&OA.performance.measure?2:0};
JER=function(W){var P=O_S();switch(P){case 1:OA.h5vcc.traceEvent.traceBegin("YTLR",W);break;case 2:OA.performance.mark(W+"-start");break;case 0:break;default:_.n2(P,"unknown trace type")}};
BY7=function(W){var P=O_S();switch(P){case 1:OA.h5vcc.traceEvent.traceEnd("YTLR",W);break;case 2:P=W+"-start";var x=W+"-end";OA.performance.mark(x);OA.performance.measure(W,P,x);break;case 0:break;default:_.n2(P,"unknown trace type")}};
nlA=function(W){var P,x;(x=(P=window).onerror)==null||x.call(P,W.message,"",0,0,W)};
YZA=function(W){if(_.p("web_lifecycle_error_handling_killswitch"))return W();try{return W()}catch(P){nlA(P)}};
yEW=function(W){return[W.auth===void 0?"undefined":W.auth,W.isJspb===void 0?"undefined":W.isJspb,W.cttAuthInfo===void 0?"undefined":W.cttAuthInfo,W.tier===void 0?"undefined":W.tier].join("/")};
_.Q=function(W,P){if(W)return W[P.name]};
BB=function(){var W=_.eL("yt.logging.ims");W||(W=new Jy,_.lA("yt.logging.ims",W));return W};
mnt=function(W,P){if(W.endpoint==="log_event"){KrR(W);var x=Z_o(W),I=olU(W.payload)||"",O=SZU(I),B=200;if(O){if(O.enabled===!1&&!_.p("web_payload_policy_disabled_killswitch"))return;B=u4R(O.tier);if(B===400){dnR(W,P);return}}na[x]=!0;x={cttAuthInfo:x,isJspb:!1,tier:B};BB().storePayload(x,W.payload);s7S(P,!1,x,vlS(I))}};
tdG=function(W,P,x){if(P.endpoint==="log_event"){KrR(void 0,P);var I=Z_o(P,!0),O=SZU(W),B=200;if(O){if(O.enabled===!1&&!_.p("web_payload_policy_disabled_killswitch"))return;B=u4R(O.tier);if(B===400){Vdm(W,P,x);return}}na[I]=!0;I={cttAuthInfo:I,isJspb:!0,tier:B};BB().storePayload(I,IK(P.payload));s7S(x,!0,I,vlS(W))}};
s7S=function(W,P,x,I){P=P===void 0?!1:P;I=I===void 0?!1:I;W&&(YM=new W);W=_.Wi("tvhtml5_logging_max_batch_ads_fork")||_.Wi("tvhtml5_logging_max_batch")||_.Wi("web_logging_max_batch")||100;var O=(0,_.iA)(),B=pMC(P,x.tier),Y=B.lastDebounceQueueFromLogTimeMs;I&&(B.useVideoStatsEndPoint=!0);I=0;x&&(I=BB().getSequenceCount(x));var K=function(){j7G({writeThenSend:!0},P,x.tier)};
I>=1E3?K():I>=W?Q7W||(Q7W=Cw8(function(){K();Q7W=void 0},0)):O-Y>=10&&(AE7(P,x.tier),B.lastDebounceQueueFromLogTimeMs=O)};
dnR=function(W,P){if(W.endpoint==="log_event"){_.p("more_accurate_gel_parser")&&BB().storePayload({isJspb:!1},W.payload);KrR(W);var x=Z_o(W),I=new Map;I.set(x,[W.payload]);var O=olU(W.payload)||"";P&&(YM=new P);return new _.yE(function(B,Y){YM&&YM.isReady()?zo8(I,YM,B,Y,{bypassNetworkless:!0},!0,vlS(O)):B()})}};
Vdm=function(W,P,x){if(P.endpoint==="log_event"){KrR(void 0,P);var I=Z_o(P,!0),O=new Map;O.set(I,[IK(P.payload)]);x&&(YM=new x);return new _.yE(function(B){YM&&YM.isReady()?GnU(O,YM,B,{bypassNetworkless:!0},!0,vlS(W)):B()})}};
Z_o=function(W,P){var x="";if(W.dangerousLogToVisitorSession)x="visitorOnlyApprovedKey";else if(W.cttAuthInfo){if(P===void 0?0:P){P=W.cttAuthInfo.token;x=W.cttAuthInfo;var I=new Elm;x.videoId?I.setVideoId(x.videoId):x.playlistId&&Ka(I,2,glt,cy(x.playlistId));Dnx[P]=I}else P=W.cttAuthInfo,x={},P.videoId?x.videoId=P.videoId:P.playlistId&&(x.playlistId=P.playlistId),MdG[W.cttAuthInfo.token]=x;x=W.cttAuthInfo.token}return x};
j7G=function(W,P,x){W=W===void 0?{}:W;P=P===void 0?!1:P;new _.yE(function(I,O){var B=pMC(P,x),Y=B.useVideoStatsEndPoint;B.useVideoStatsEndPoint=!1;$nR(B.queueTimer);$nR(B.queueMaxTimer);B.queueMaxTimer=0;YM&&YM.isReady()?x===void 0&&_.p("enable_web_tiered_gel")?wMR(I,O,W,P,300,Y):wMR(I,O,W,P,x,Y):(AE7(P,x),I())})};
wMR=function(W,P,x,I,O,B){var Y=YM;x=x===void 0?{}:x;I=I===void 0?!1:I;O=O===void 0?200:O;B=B===void 0?!1:B;var K=new Map,Z=new Map,d={isJspb:I,cttAuthInfo:void 0,tier:O},v={isJspb:I,cttAuthInfo:void 0};if(I){P=_.n(Object.keys(na));for(O=P.next();!O.done;O=P.next())O=O.value,Z=_.p("enable_web_tiered_gel")?BB().smartExtractMatchingEntries({keys:[d,v],sizeLimit:1E3}):BB().extractMatchingEntries({isJspb:!0,cttAuthInfo:O}),Z.length>0&&K.set(O,Z),(_.p("web_fp_via_jspb_and_json")&&x.writeThenSend||!_.p("web_fp_via_jspb_and_json"))&&
delete na[O];GnU(K,Y,W,x,!1,B)}else{K=_.n(Object.keys(na));for(d=K.next();!d.done;d=K.next())d=d.value,v=_.p("enable_web_tiered_gel")?BB().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:O},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):BB().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),v.length>0&&Z.set(d,v),(_.p("web_fp_via_jspb_and_json")&&x.writeThenSend||!_.p("web_fp_via_jspb_and_json"))&&delete na[d];zo8(Z,Y,W,P,x,!1,B)}};
AE7=function(W,P){W=W===void 0?!1:W;P=P===void 0?200:P;var x=function(){j7G({writeThenSend:!0},W,P)},I=pMC(W,P),O=I===hoR||I===H_8?5E3:eoA;
_.p("web_gel_timeout_cap")&&!I.queueMaxTimer&&(O=Cw8(function(){x()},O),I.queueMaxTimer=O);
$nR(I.queueTimer);O=_.$$("LOGGING_BATCH_TIMEOUT",_.Wi("web_gel_debounce_ms",1E4));_.p("shorten_initial_gel_batch_timeout")&&cES&&(O=aet);O=Cw8(function(){_.Wi("gel_min_batch_size")>0?BB().getSequenceCount({cttAuthInfo:void 0,isJspb:W,tier:P})>=b_o&&x():x()},O);
I.queueTimer=O};
zo8=function(W,P,x,I,O,B,Y){O=O===void 0?{}:O;var K=Math.round((0,_.iA)()),Z=W.size,d=knS(Y);W=_.n(W);var v=W.next();for(Y={};!v.done;Y={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},v=W.next()){var m=_.n(v.value);v=m.next().value;m=m.next().value;Y.batchRequest=_.jU.unsafeClone({context:_.VIG(P.config_||_.F9())});if(!_.xi(m)&&!_.p("throw_err_when_logevent_malformed_killswitch")){I();break}Y.batchRequest.events=m;
(m=MdG[v])&&Unt(Y.batchRequest,v,m);delete MdG[v];Y.dangerousLogToVisitorSession=v==="visitorOnlyApprovedKey";XMm(Y.batchRequest,K,Y.dangerousLogToVisitorSession);feR(O);Y.onSuccess$jscomp$3=function(t){_.p("start_client_gcf")&&_.Gr.addLowPriorityJob(function(){return _.y(function(C){return _.S(C,NYW(t),0)})});
Z--;Z||x()};
Y.networkFailures=0;Y.onError$jscomp$5=function(t){return function(){t.networkFailures++;if(O.bypassNetworkless&&t.networkFailures===1)try{W78(P,d,t.batchRequest,leR({writeThenSend:!0},t.dangerousLogToVisitorSession,t.onSuccess$jscomp$3,t.onError$jscomp$5,B)),cES=!1}catch(C){_.hQ(C),I()}Z--;Z||x()}}(Y);
try{W78(P,d,Y.batchRequest,leR(O,Y.dangerousLogToVisitorSession,Y.onSuccess$jscomp$3,Y.onError$jscomp$5,B)),cES=!1}catch(t){_.hQ(t),I()}}};
GnU=function(W,P,x,I,O,B){I=I===void 0?{}:I;var Y=Math.round((0,_.iA)()),K={value:W.size},Z=new Map([].concat(_.ju(W)));Z=_.n(Z);for(var d=Z.next();!d.done;d=Z.next()){var v=_.n(d.value).next().value,m=W.get(v);d=new TYm;var t=P.config_||_.F9(),C=new Zw,z=new rER;_.SU(z,1,t.innertubeContextHostLanguage);_.SU(z,2,t.innertubeContextGeoLocation);_.Lj(z,16,t.innertubeContextClientNameFieldNumber);_.SU(z,17,t.innertubeContextClientVersion);if(t.innertubeContextClientConfigInfo){var D=t.innertubeContextClientConfigInfo,
w=new PP;D.coldConfigData&&_.SU(w,1,D.coldConfigData);D.appInstallData&&_.SU(w,6,D.appInstallData);D.coldHashData&&_.SU(w,3,D.coldHashData);D.hotHashData&&w.setHotHashData(D.hotHashData);_.I$(z,62,w)}(D=_.xW.devicePixelRatio)&&D!=1&&_.WP(z,65,_.Y4(D));D=hym();D!==""&&_.SU(z,54,D);D=HJd();if(D.length>0){w=new i_R;for(var a=0;a<D.length;a++){var k=new oR;k.setKey(D[a].key);Ka(k,2,RoR,cy(D[a].value));So(w,15,oR,k)}_.I$(C,5,w)}SLG(t,z);uBm(C);dUS(z);suo(t,z);v6R(z);_.p("start_client_gcf")&&mUU(z);_.$$("DELEGATED_SESSION_ID")&&
!_.p("pageid_as_header_web")&&(t=new us,_.SU(t,3,_.$$("DELEGATED_SESSION_ID")));!_.p("fill_delegate_context_in_gel_killswitch")&&(D=_.$$("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(w=_.qM(C,us,3)||new us,t=C,D=_.SU(w,18,D),_.I$(t,3,D));t=z;D=_.n(Object.entries(_.k$(_.$$("DEVICE",""))));for(w=D.next();!w.done;w=D.next())a=_.n(w.value),w=a.next().value,a=a.next().value,w==="cbrand"?_.SU(t,12,a):w==="cmodel"?_.SU(t,13,a):w==="cbr"?_.SU(t,87,a):w==="cbrver"?_.SU(t,88,a):w==="cos"?_.SU(t,18,
a):w==="cosver"?_.SU(t,19,a):w==="cplatform"&&_.Lj(t,42,ZfU(a));C.setClient(z);_.I$(d,1,C);if(z=Dnx[v])a:{if(_.KU(z,de(z,glt,1)))C=1;else if(z.getPlaylistId())C=2;else break a;_.I$(d,4,z);z=d.getContext()||new Zw;t=_.qM(z,us,3)||new us;D=new sA;D.setToken(v);_.Lj(D,1,C);So(t,12,sA,D);_.I$(z,3,t)}delete Dnx[v];v=v==="visitorOnlyApprovedKey";Frx()||_.vB(d,2,Y);!v&&(C=_.$$("EVENT_ID"))&&(z=qZm(),t=new LrA,_.SU(t,1,C),_.vB(t,2,z),_.I$(d,5,t));feR(I);if(_.p("jspb_serialize_with_worker")&&(C=_.gzx())&&
I.writeThenSend){_.WTt.set(Pqt,{client:P,resolve:x,networklessOptions:I,isIsolated:O,useVSSEndpoint:B,dangerousLogToVisitorSession:v,requestsOutstanding:K});C.postMessage({op:"gelBatchToSerialize",batchRequest:IK(d),clientEvents:m,key:Pqt});Pqt++;break}if(m){C=[];for(z=0;z<m.length;z++)try{C.push(new mn(m[z]))}catch(T){_.hQ(new _.mW("Transport failed to deserialize "+String(m[z])))}m=C}else m=[];m=_.n(m);for(C=m.next();!C.done;C=m.next())So(d,3,mn,C.value);m={startTime:(0,_.iA)(),ticks:{},infos:{}};
d=d.serialize();m.ticks.geljspc=(0,_.iA)();_.p("log_jspb_serialize_latency")&&Cxx("gel_jspb_serialize",m,{sampleRate:.1});_.xgd(d,P,x,I,O,B,v,K)}};
_.xgd=function(W,P,x,I,O,B,Y,K){I=I===void 0?{}:I;K=K===void 0?{value:0}:K;B=knS(B);I=leR(I,Y,function(Z){_.p("start_client_gcf")&&_.Gr.addLowPriorityJob(function(){return _.y(function(d){return _.S(d,NYW(Z),0)})});
K.value--;K.value||x()},function(){K.value--;
K.value||x()},O);
I.headers["Content-Type"]="application/json+protobuf";I.postBodyFormat="JSPB";I.postBody=W;W78(P,B,"",I);cES=!1};
feR=function(W){_.p("always_send_and_write")&&(W.writeThenSend=!1)};
leR=function(W,P,x,I,O){W={retry:!0,onSuccess:x,onError:I,networklessOptions:W,dangerousLogToVisitorSession:P,bypassMonitoring:!!O,headers:{},postBodyFormat:"",postBody:"",compress:_.p("compress_gel")||_.p("compress_gel_lr")};Frx()&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.iA)())));return W};
XMm=function(W,P,x){Frx()||(W.requestTimeMs=String(P));_.p("unsplit_gel_payloads_in_logs")&&(W.unsplitGelPayloadsInLogs=!0);!x&&(P=_.$$("EVENT_ID"))&&(x=qZm(),W.serializedClientEventId={serializedEventId:P,clientCounter:String(x)})};
qZm=function(){var W=_.$$("BATCH_CLIENT_COUNTER")||0;W||(W=Math.floor(Math.random()*65535/2));W++;W>65535&&(W=1);_.MR("BATCH_CLIENT_COUNTER",W);return W};
Unt=function(W,P,x){if(x.videoId)var I="VIDEO";else if(x.playlistId)I="PLAYLIST";else return;W.credentialTransferTokenTargetId=x;W.context=W.context||{};W.context.user=W.context.user||{};W.context.user.credentialTransferTokens=[{token:P,scope:I}]};
KrR=function(W,P){var x=_.Pi("il_payload_scraping")==="enable_il_payload_scraping";if(!_.eL("yt.logging.transport.enableScrapingForTest"))if(x)I1m=[],_.lA("yt.logging.transport.enableScrapingForTest",!0),_.lA("yt.logging.transport.scrapedPayloadsForTesting",I1m),_.lA("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.lA("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.lA("yt.logging.transport.scrapeClientEvent",!0);else return;x=_.eL("yt.logging.transport.scrapedPayloadsForTesting");var I=_.eL("yt.logging.transport.payloadToScrape");P&&(P=_.eL("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(P.payload)())&&x.push(P);P=_.eL("yt.logging.transport.scrapeClientEvent");if(I&&I.length>=1)for(var O=0;O<I.length;O++)if(W&&W.payload[I[O]])if(P)x.push(W.payload);else{var B=void 0;x.push(((B=W)==null?void 0:B.payload)[I[O]])}_.lA("yt.logging.transport.scrapedPayloadsForTesting",
x)};
Frx=function(){return _.p("use_request_time_ms_header")||_.p("lr_use_request_time_ms_header")};
Cw8=function(W,P){return _.p("transport_use_scheduler")===!1?_.Oy(W,P):_.p("logging_avoid_blocking_during_navigation")||_.p("lr_logging_avoid_blocking_during_navigation")?_.VE(_.Gr,function(){if(_.Ot7().currentState==="none")W();else{var x={};_.Ot7().install((x.none={callback:W},x))}},P):_.VE(_.Gr,W,P)};
$nR=function(W){_.p("transport_use_scheduler")?_.Gr.cancelJob(W):_.nj(W)};
NYW=function(W){var P,x,I,O,B,Y,K,Z,d,v;return _.y(function(m){return m.nextAddress==1?(I=(P=W)==null?void 0:(x=P.responseContext)==null?void 0:x.globalConfigGroup,O=_.Q(I,JFd),Y=(B=I)==null?void 0:B.hotHashData,K=_.Q(I,BcA),d=(Z=I)==null?void 0:Z.coldHashData,(v=_.FY().resolve(_.Rl(ty)))?Y?O?_.S(m,nYo(v,Y,O),2):_.S(m,nYo(v,Y),2):m.jumpTo(2):m.return()):d?K?_.S(m,Y2R(v,d,K),0):_.S(m,Y2R(v,d),0):m.jumpTo(0)})};
pMC=function(W,P){P=P===void 0?200:P;return W?P===300?hoR:yFd:P===300?H_8:KT7};
SZU=function(W){if(_.p("enable_web_tiered_gel")){W=Ztd[W||""];var P,x,I,O=_.FY().resolve(_.Rl(ty))==null?void 0:(P=oYx())==null?void 0:(x=P.loggingHotConfig)==null?void 0:(I=x.eventLoggingConfig)==null?void 0:I.payloadPolicies;if(O)for(P=0;P<O.length;P++)if(O[P].payloadNumber===W)return O[P]}};
olU=function(W){W=Object.keys(W);W=_.n(W);for(var P=W.next();!P.done;P=W.next())if(P=P.value,Ztd[P])return P};
u4R=function(W){switch(W){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}};
vlS=function(W){return W==="gelDebuggingEvent"};
knS=function(W){return(W===void 0?0:W)&&_.p("vss_through_gel_video_stats")?"video_stats":"log_event"};
jo=function(W,P,x,I){I=I===void 0?{}:I;var O={},B=Math.round(I.timestamp||(0,_.iA)());O.eventTimeMs=B<Number.MAX_SAFE_INTEGER?B:0;O[W]=P;W=_.LD();O.context={lastActivityMs:String(I.timestamp||!isFinite(W)?-1:W)};I.sequenceGroup&&!_.p("web_gel_sequence_info_killswitch")&&(W=O.context,P=I.sequenceGroup,P={index:S2R(P),groupKey:P},W.sequence=P,I.endOfSequence&&delete pa[I.sequenceGroup]);(I.sendIsolatedPayload?dnR:mnt)({endpoint:"log_event",payload:O,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession},
x)};
S2R=function(W){pa[W]=W in pa?pa[W]+1:0;return pa[W]};
_.Ay=function(W,P,x){x=x===void 0?{}:x;var I=Ca;_.wo("ytLoggingEventsDefaultDisabled",!1)&&Ca===Ca&&(I=null);jo(W,P,I,x)};
_.z$=function(){if(_.p("web_fp_via_jspb")){var W=!0;W=W===void 0?!1:W;var P=uod;uod=[];if(P){P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=x.value,W?jo(x.payloadName,x.payload,Ca,x.options):_.Ay(x.payloadName,x.payload,x.options)}j7G(void 0,!0);if(!_.p("web_fp_via_jspb_and_json"))return}j7G(void 0,!1)};
dgU=function(W,P){var x;if((x=P)==null?0:x.componentStack)return P;if(W=W.componentStack)P||(P={}),P.componentStack=W;return P};
sxS=function(){_.bP(_.$$("ERRORS")||[],function(W){_.G$.apply(null,W)});
_.MR("ERRORS",[])};
_.EA=function(W){_.G$(W)};
_.ge=function(W){_.G$(W,"WARNING")};
vYG=function(W){W instanceof Error?_.G$(W):(W=_.Jw(W)?JSON.stringify(W):String(W),W=new _.mW(W),W.name="RejectedPromiseError",_.ge(W))};
mgt=function(W,P,x,I,O,B){P=P===void 0?"Unknown file":P;x=x===void 0?0:x;var Y=!1,K=d1W("log_window_onerror_fraction");if(K&&Math.random()<K)Y=!0;else{K=document.getElementsByTagName("script");for(var Z=0,d=K.length;Z<d;Z++)if(K[Z].src.indexOf("/debug-")>0){Y=!0;break}}Y&&(Y=!1,O?Y=!0:(typeof W==="string"?K=W:ErrorEvent&&W instanceof ErrorEvent?(Y=!0,K=W.message,P=W.filename,x=W.lineno,I=W.colno):(K="Unknown error",P="Unknown file",x=0),O=new _.mW(K),O.name="UnhandledWindowError",O.message=K,O.fileName=
P,O.lineNumber=x,isNaN(I)?delete O.columnNumber:O.columnNumber=I),_.p("wiz_enable_component_stack_propagation_killswitch")||(B=dgU(O,B)),B&&_.Dw(O,B),Y?_.G$(O):_.ge(O))};
_.G$=function(W,P,x,I,O,B,Y,K){B=B===void 0?{}:B;B.name=x||_.$$("INNERTUBE_CONTEXT_CLIENT_NAME",1);B.version=I||_.$$("INNERTUBE_CONTEXT_CLIENT_VERSION");x=B;P=P===void 0?"ERROR":P;Y=Y===void 0?!1:Y;P=P===void 0?"ERROR":P;Y=Y===void 0?!1:Y;if(W&&(W.hasOwnProperty("level")&&W.level&&(P=W.level),_.p("console_log_js_exceptions")&&(I=[],I.push("Name: "+W.name),I.push("Message: "+W.message),W.hasOwnProperty("params")&&I.push("Error Params: "+JSON.stringify(W.params)),W.hasOwnProperty("args")&&I.push("Error args: "+
JSON.stringify(W.args)),I.push("File name: "+W.fileName),I.push("Stacktrace: "+W.stack),I=I.join("\n"),window.console.log(I,W)),!(VSt>=5))){I=[];O=_.n(tSW);for(B=O.next();!B.done;B=O.next()){B=B.value;try{B()&&I.push(B())}catch(w){}}I=[].concat(_.ju(pWx),_.ju(I));var Z=jxR(W);O=Z.message||"Unknown Error";B=Z.name||"UnknownError";var d=Z.stack||W.stacktrace||"Not available";if(d.startsWith(B+": "+O)){var v=d.split("\n");v.shift();d=v.join("\n")}v=Z.lineNumber||"Not available";Z=Z.fileName||"Not available";
var m=0;if(W.hasOwnProperty("args")&&W.args&&W.args.length)for(var t=0;t<W.args.length&&!(m=K18(W.args[t],"params."+t,x,m),m>=500);t++);else if(W.hasOwnProperty("params")&&W.params){var C=W.params;if(typeof W.params==="object")for(t in C){if(C[t]){var z="params."+t,D=o6(C[t]);x[z]=D;m+=z.length+D.length;if(m>500)break}}else x.params=o6(C)}if(I.length)for(t=0;t<I.length&&!(m=K18(I[t],"params.context."+t,x,m),m>=500);t++);navigator.vendor&&!x.hasOwnProperty("vendor")&&(x["device.vendor"]=navigator.vendor);
t={message:O,name:B,lineNumber:v,fileName:Z,stack:d,params:x,sampleWeight:1};x=Number(W.columnNumber);isNaN(x)||(t.lineNumber=t.lineNumber+":"+x);if(W.level==="IGNORED")W=0;else a:{W=Qxx();x=_.n(W.messageWeights);for(I=x.next();!I.done;I=x.next())if(I=I.value,t.message&&t.message.match(I.messageRegExp)){W=I.weight;break a}W=_.n(W.callbackWeights);for(x=W.next();!x.done;x=W.next())if(x=x.value,x.callback(t)){W=x.weight;break a}W=1}t.sampleWeight=W;W=_.n(Cqt);for(x=W.next();!x.done;x=W.next())if(x=
x.value,x.patternsForType[t.name])for(O=_.n(x.patternsForType[t.name]),I=O.next();!I.done;I=O.next())if(B=I.value,I=t.message.match(B.regexp)){t.params["params.error.original"]=I[0];O=B.groups;B={};for(v=0;v<O.length;v++)B[O[v]]=I[v+1],t.params["params.error."+O[v]]=I[v+1];t.message=x.messageFn(B);break}t.params||(t.params={});W=Qxx();t.params["params.errorServiceSignature"]="msg="+W.messageWeights.length+"&cb="+W.callbackWeights.length;t.params["params.serviceWorker"]="false";_.xW.document&&_.xW.document.querySelectorAll&&
(t.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new we(AFd,"sample")).constructor!==we&&(t.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(t);if(t.sampleWeight!==0&&!zV7.has(t.message)){if(Y&&_.p("web_enable_error_204"))GmG(P===void 0?"ERROR":P,t);else{P=P===void 0?"ERROR":P;P==="ERROR"?(EYA.publish("handleError",t),_.p("record_app_crashed_web")&&gYd===0&&t.sampleWeight===1&&(gYd++,Y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.p("report_client_error_with_app_crash_ks")||(Y.systemHealth={crashData:{clientError:{logMessage:{message:t.message}}}}),_.Ay("appCrashed",Y)),Dgo++):P==="WARNING"&&EYA.publish("handleWarning",t);if(_.p("kevlar_gel_error_routing")){Y=P;K=K===void 0?{}:K;b:{W=_.n(MSx);for(x=W.next();!x.done;x=W.next())if(gO(x.value.toLowerCase())){W=!0;break b}W=!1}if(W)K=void 0;else{x={stackTrace:t.stack};t.fileName&&(x.filename=t.fileName);W=t.lineNumber&&t.lineNumber.split?t.lineNumber.split(":"):[];W.length!==
0&&(W.length!==1||isNaN(Number(W[0]))?W.length!==2||isNaN(Number(W[0]))||isNaN(Number(W[1]))||(x.lineNumber=Number(W[0]),x.columnNumber=Number(W[1])):x.lineNumber=Number(W[0]));W={level:"ERROR_LEVEL_UNKNOWN",message:t.message,errorClassName:t.name,sampleWeight:t.sampleWeight};Y==="ERROR"?W.level="ERROR_LEVEL_ERROR":Y==="WARNING"&&(W.level="ERROR_LEVEL_WARNNING");x={isObfuscated:!0,browserStackInfo:x};K.pageUrl=window.location.href;K.kvPairs=[];_.$$("FEXP_EXPERIMENTS")&&(K.experimentIds=_.$$("FEXP_EXPERIMENTS"));
I=_.$$("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!d1W("web_disable_gel_stp_ecatcher_killswitch")&&I)for(O=_.n(Object.keys(I)),B=O.next();!B.done;B=O.next())B=B.value,K.kvPairs.push({key:B,value:String(I[B])});if(I=t.params)for(O=_.n(Object.keys(I)),B=O.next();!B.done;B=O.next())B=B.value,K.kvPairs.push({key:"client."+B,value:String(I[B])});I=_.$$("SERVER_NAME");O=_.$$("SERVER_VERSION");I&&O&&(K.kvPairs.push({key:"server.name",value:I}),K.kvPairs.push({key:"server.version",value:O}));K={errorMetadata:K,
stackTrace:x,logMessage:W}}K&&(_.Ay("clientError",K),(Y==="ERROR"||_.p("errors_flush_gel_always_killswitch"))&&_.z$())}_.p("suppress_error_204_logging")||GmG(P,t)}try{zV7.add(t.message)}catch(w){}VSt++}}};
GmG=function(W,P){var x=P.params||{};W={urlParams:{a:"logerror",t:"jserror",type:P.name,msg:P.message.substr(0,250),line:P.lineNumber,level:W,"client.name":x.name},postParams:{url:_.$$("PAGE_NAME",window.location.href),file:P.fileName},method:"POST"};x.version&&(W["client.version"]=x.version);if(W.postParams){P.stack&&(W.postParams.stack=P.stack);P=_.n(Object.keys(x));for(var I=P.next();!I.done;I=P.next())I=I.value,W.postParams["client."+I]=x[I];if(x=_.$$("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(P=
_.n(Object.keys(x)),I=P.next();!I.done;I=P.next())I=I.value,W.postParams[I]=x[I];(x=_.$$("LAVA_VERSION"))&&(W.postParams["lava.version"]=x);x=_.$$("SERVER_NAME");P=_.$$("SERVER_VERSION");x&&P&&(W.postParams["server.name"]=x,W.postParams["server.version"]=P)}_.yO(_.$$("ECATCHER_REPORT_HOST","")+"/error_204",W)};
_.$go=function(W,P){P=P===void 0?"ERROR":P;var x=x===void 0?{}:x;var I=_.eL("ytbin.polymer.shared.lib.tampering.info");I&&(I=I())&&(x["params.tamperingInfo"]=I.sort().join(","));_.G$(W,P,void 0,void 0,!0,x)};
_.Dw=function(W){var P=_.tH.apply(1,arguments);W.args||(W.args=[]);Array.isArray(W.args)&&W.args.push.apply(W.args,_.ju(P))};
wWG=function(W){W.level="IGNORED"};
hVo=function(W,P){pWx.push(W);P();pWx.pop()};
HB=function(W,P){for(var x in P)P.hasOwnProperty(x)&&(W=_.hy(W,x,P[x]));return W};
_.Ht8=function(W,P,x){x=x===void 0?!1:x;if(!W)return null;if(W.adInfoDialogEndpoint||W.backstageImageUploadEndpoint||W.confirmDialogEndpoint||W.clientActionEndpoint||W.createBackstagePostDialogEndpoint||W.createCommentReplyDialogEndpoint||W.flowEndpoint||W.guideBuilderEndpoint||W.liveChatDialogEndpoint||W.modalEndpoint||W.openPopupAction||W.shareEndpoint||W.shareEntityEndpoint||W.showLiveChatItemEndpoint||W.subscriptionManagerEndpoint||W.unlimitedCreateFamilyEndpoint||W.unlimitedFamilyFlowEndpoint||
W.updateCommentDialogEndpoint||W.updateCommentReplyDialogEndpoint||W.userFeedbackEndpoint||W.videoEditorEndpoint||W.ypcCancelSurveyEndpoint)return P=_.Wi("polymer_report_client_url_requested_rate"),!x&&Math.random()<P&&_.ge(new _.mW("urlForEndpoint used on client endpoint",W)),null;var I=_.Wi("polymer_report_missing_web_navigation_endpoint_rate");if(W.liveChatEndpoint||W.liveChatReplayEndpoint)I=0;if(!W.commandMetadata&&!W.clickTrackingParams&&Math.random()<I){var O={},B;for(B in W)O[B]="1";_.ge(new _.mW("Missing navigation data",
O))}O="";if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url)O=W.commandMetadata.webCommandMetadata.url;else if(W.searchEndpoint)Math.random()<I&&_.ge(new _.mW("Should not manually handle search",W)),O="/results?search_query="+encodeURIComponent(W.searchEndpoint.query).replace(/%20/g,"+"),W.searchEndpoint.params&&(O+="&sp="+W.searchEndpoint.params);else if(W.watchEndpoint)Math.random()<I&&_.ge(new _.mW("Should not manually handle watch",W)),O="/watch?v="+
W.watchEndpoint.videoId,W.watchEndpoint.playlistId&&(O+="&list="+W.watchEndpoint.playlistId),W.watchEndpoint.index&&(O+="&index="+W.watchEndpoint.index),W.watchEndpoint.startTimeSeconds&&(O+="&t="+W.watchEndpoint.startTimeSeconds);else if(W.browseEndpoint)I=W.browseEndpoint.browseId,(B=W.browseEndpoint.canonicalBaseUrl)?O=B:I&&(O=I.substr(0,2),O=O==="FE"?I==="FEwhat_to_watch"?"/":I==="FEmy_videos"?"/my_videos":"/feed/"+I.substr(2):O==="VL"?"/playlist?list="+I.substr(2):"/channel/"+I),O&&W.browseEndpoint.query&&
(O=HB(O+"/search",{query:W.browseEndpoint.query})),O&&W.browseEndpoint.params&&(O=HB(O,{params:W.browseEndpoint.params}));else{if(W.urlEndpoint)return W.urlEndpoint.url;W.signInEndpoint?(O="https://accounts.google.com/ServiceLogin",I={},_.jU.extend(I,P||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),P=I):W.uploadEndpoint?O="//www.youtube.com/upload":W.liveChatEndpoint?(O=W.liveChatEndpoint,I=_.jU.clone(O),_.Jw(O.continuation)&&(B=Object.keys(O.continuation)[0],
I.continuation=O.continuation[B].continuation),O=HB("/youtubei/v1/live_chat/get_live_chat",I)):W.liveChatReplayEndpoint?(O=_.jU.clone(W.liveChatReplayEndpoint),O.currentPlayerState&&(_.jU.extend(O,O.currentPlayerState),delete O.currentPlayerState),O=HB("/youtubei/v1/live_chat/get_live_chat_replay",O)):W.liveChatItemContextMenuEndpoint?O=HB("/youtubei/v1/live_chat/get_item_context_menu",W.liveChatItemContextMenuEndpoint):W.liveChatPurchaseMessageEndpoint?O=HB("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
W.liveChatPurchaseMessageEndpoint):W.openSuperStickerBuyFlowCommand?O=HB("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",W.openSuperStickerBuyFlowCommand):W.videoEditEndpoint?O=HB("/edit",{video_id:W.videoEditEndpoint.videoId}):W.liveDashboardEndpoint?O=W.liveDashboardEndpoint.videoId?HB("/live_dashboard",{v:W.liveDashboardEndpoint.videoId}):"/live_dashboard":W.signalNavigationEndpoint&&W.signalNavigationEndpoint.signal&&W.signalNavigationEndpoint.signal==="WEBCAM"?O="/webcam":W.getPdgBuyFlowCommand&&
(O=HB(W.getPdgBuyFlowCommand.buyflowApiPath,{params:W.getPdgBuyFlowCommand.params}))}return O||x?HB(O,P||{}):(_.ge(new _.mW("Error: Can't construct url for endpoint","keys:"+Object.keys(W).sort().join(","),W)),null)};
eV8=function(W){if(W){if(W.browseEndpoint)return!!W.browseEndpoint.nofollow;if(W.watchEndpoint)return!!W.watchEndpoint.nofollow;if(W.urlEndpoint)return!!W.urlEndpoint.nofollow}return!1};
_.a18=function(W,P){var x=P+W,I=cFd.get(x);if(I)return I;W=P+"-"+W.replace(/([A-Z])/g,"-$1").toLowerCase();cFd.set(x,W);return W};
btR=function(W){var P=_.go(W,"action")||_.go(W,"command")||_.go(W,"endpoint");if(!P)return null;P=_.a18(P,"yt");_.Q(W,_.eo)&&(P+="-"+_.Q(W,_.eo).signal.toLowerCase().replace(/_/g,"-"));return P};
f1R=function(W){try{var P=Object.keys(W)}catch(O){return[]}for(var x=0;x<P.length;x++){var I=P[x];if(kmG.test(I)||UgW.test(I))return XWG(W[I])}return[]};
XWG=function(W){return W.command?[W.command]:W.onExecutionAction?[W.onExecutionAction]:W.onResponseReceivedCommand?[W.onResponseReceivedCommand]:W.updateFlowCommand?[W.updateFlowCommand]:W.clientActions?W.clientActions:W.action?[W.action]:W.actions||W.commands||W.onResponseReceivedActions||W.onResponseReceivedCommands||W.onResponseReceivedEndpoints||[]};
l1W=function(W,P){P=P===void 0?!1:P;var x=_.FY().resolve(_.Rl(cB));x||(x=new Ncx,_.FY().addProvider({provide:cB,useValue:x}));return x&&W&&!_.jU.isEmpty(W)?x.getUrl(W,P):""};
Tcm=function(W,P,x){x=x===void 0?"":x;if(P){W.data=P;var I=l1W(P);I?(AH(W,I),eV8(P)||!ro(I)?W.rel="nofollow":W.removeAttribute("rel"),_.Q(P,_.aR)&&_.Q(P,_.aR).target==="TARGET_NEW_WINDOW"?W.target="_blank":x?W.target=x:W.removeAttribute("target")):(W.removeAttribute("href"),W.removeAttribute("rel"),W.removeAttribute("target"))}};
_.XL=function(W,P){var x=Np;if(VU())rFm(W,function(){var B=_.tH.apply(0,arguments);Ew(x,function(){P.apply(null,_.ju(B))})});
else{var I=_.bs.getInstance(),O=EV(P);pX(function(){O.value=P});
_.AQ(function(){var B={},Y=_.kM(I,(B[W]=function(){var K=_.tH.apply(0,arguments);Ew(x,function(){O.value.apply(O,_.ju(K))})},B));
return function(){var K={};_.UA(I,(K[W]="",K),Y)}})}};
_.fa=function(W){return VU()?itC(W):RVR(W)};
_.Nl=function(W){return VU()?itC(W):RVR(W)};
RVR=function(W){return GO(function(){return itC(W)})};
itC=function(W){var P=x18(function(x){P.value&&P.value===x||(P.__count=P.__count?P.__count+1:1);P.value=x;var I=function(){var O=WJ(null);try{return W==null?void 0:W(x)}finally{WJ(O)}}();
return function(){I==null||I();P.value=null}});
return P};
FTm=function(W){var P=Np,x=FJ.enableContextBasedComponentStacks?void 0:sw;return{getFn:function(){return function(I){if(!P.isDisposed){var O=function(){return n4(function(){return W(I)})};
if(FJ.enableContextBasedComponentStacks)try{var B=O()}catch(Y){throw FJ.enableContextBasedComponentStacks&&tg(Y),Y;}else B=p4(O,x);B!==!0&&I.stopPropagation()}}}}};
WQA=function(W,P){if(VU())q2o(W,function(I){var O=WJ(null);try{P(I)}finally{WJ(O)}});
else{var x=EV(P);pX(function(){x.value=P});
_.AQ(function(){var I=W.value;if(I){var O=function(B){x.value(B)};
I.addEventListener("yt-service-request-sent",O,void 0);return function(){I?I.removeEventListener("yt-service-request-sent",O,void 0):LTR(W)}}LTR(W)})}};
LTR=function(W){var P;(P=FJ.handleError)==null||P.call.apply(P,[FJ].concat(_.ju(g1(INR.LOG_NULL_EL_REF_VALUE(),W.__expectedTagName,2))))};
ls=function(W){if(typeof W.children==="function")return W.children(),null;W=_.n(W.children);for(var P=W.next();!P.done;P=W.next())P=P.value,P();return null};
PhG=function(W){var P;return((P=W.prototype)==null?void 0:P.render)===void 0};
xxG=function(W){W=W.items.map(W.children);return W.length>0&&typeof W[0]==="string"?W.join(""):W};
OES=function(W,P,x){x=x===void 0?!1:x;if(FJ.enableContextBasedComponentStacks)try{IhR(W,P,x)}catch(I){throw tg(I),I;}else p4(function(){return IhR(W,P,x)})};
IhR=function(W,P,x){x=((x===void 0?0:x)?JdR:BLd)(W,function(){T$(P)});
return x===null?W:x};
T$=function(W){if(W!==void 0&&W!==null)if(W instanceof Y$)for(var P=w1;hg()!=null&&baR in hg()&&P.contains(hg());)cJ();else if(Array.isArray(W))for(P=_.n(W),W=P.next();!W.done;W=P.next())T$(W.value);else if(W instanceof nz||"function"==typeof _.U0&&W instanceof _.U0)TB(W.toString());else if(Wo(W)){if(hg()!==W){var x,I;P=(I=(x=sw)==null?void 0:x.name)!=null?I:"unknown";throw Error("ec`"+W.tagName+"`"+P);}cJ()}else if(W!=null&&W.contentKind===Il||W instanceof zI)for(P=nMU(W),P=Array.from(P.childNodes),
P=_.n(P),W=P.next();!W.done;W=P.next())w1.appendChild(W.value),cJ();else if(S5(W)&&(W=W.toString()),x=typeof W,x==="boolean"||x==="number"||x==="string")TB(W);else if(typeof W==="function"){P=w1;var O=hg();O&&(O._isSignalTextNode||O._isSafeOrSanitizedHtmlNode)||gMC(P,O,W);cJ()}else if(W.type===xxG)T$(W.type(Object.assign({},W.props,{children:W.children[0]})));else{Z$.beforeVisit(W);if(typeof W.type==="string"){a:{W.__open||krd(W.type,W.props.idomKey);O=w1;for(P in W.props)if(W.props[P]!==nCU){var B=
W.props[P];x=X8;x.push(P);x.push(B)}P=FJ.attributes;P=P===void 0?re:P;B=w1;x=$V(B);r0W(B,x,P);EMx(O,W.props,!0);if((W.props.skip||W.props.skipchildren)&&w1.hasChildNodes())b_();else{if(W.type==="style"&&uLW(W.children)===null){b_();P=void 0;break a}T$(W.children)}Utx();W.__open&&(W.__open=!1);Psx(O,W.props);P=O}return P}if(W.type===_.qS)T$(W.children);else if(!Y4o(W)){P=W;try{ydR(P)}catch(Y){W=Y,(B=FJ.handleError)==null||B.call.apply(B,[FJ].concat(_.ju(g1(W,(O=P.type)==null?void 0:O.TAG_NAME))))}P.__open&&
(Utx(),P.__open=!1)}}};
KQW=function(W,P){var x;PhG(W)?x=new SL(P,W):x=new W(P);x.JSC$8167___type=W;x.__updateContext={nextState:x.state,isForced:!1};return x};
ydR=function(W){var P=W.type,x=P.TAG_NAME;if(P===ls)W.props.children=W.children,P(W.props);else{W.children.length>0&&(W.props.children=W.children);var I;(I=W.props).idomKey||(I.idomKey=P);if(x){var O=krd(x,W.props.idomKey);W.__open=!0;var B=O.__instance}B||(B=KQW(P,W.props),B.props=null,O&&(O.__instance=B,B.el=O));var Y;x=((Y=B.__updateContext)!=null?Y:{nextState:B.state,isForced:!1}).nextState;B.__updateContext=void 0;P.getDerivedStateFromProps&&(x=P.getDerivedStateFromProps(W.props,x));B.props=
W.props;B.state=x;Y=function(){var K=B;Z$.beforeRender(K);var Z=K.render(K.props);Z$.afterRender(K,Z);Z?(K.props.idomKey&&(Z.props.idomKey=K.props.idomKey),K=Z):K=void 0;if(Z=K)if(Z.__open=W.__open,K=T$(Z),W.__open=Z.__open,!P.TAG_NAME)if(K)P.TAG_NAME=K.tagName.toLowerCase(),K.__instance=B,B.el=K;else{var d;if((d=B.hooks)==null?0:d.length){var v;(v=FJ.handleError)==null||v.call.apply(v,[FJ].concat(_.ju(g1(Error("kd")))))}}B.didPatch();Z$.didPatch(B)};
(x=B.functionComponent)?J0o({component:x,debugInstance:B.props.debugInstance,fn:Y}):Y()}};
Y4o=function(W){var P=W.type;if(!PhG(P)||P===ls||P.componentType===vJ)return!1;W.props.children=W.children.length>1?W.children:W.children[0];var x,I=(x=W.props.idomKey)!=null?x:W.type,O;if(hg()&&((O=hg()[JQ])==null?void 0:O.key)===I){var B=hg(),Y=B[JQ];if(!Y)throw Error("dc`"+B.tagName);var K;(K=Y.updateSignalsFromIdomProps)==null||K.call(Y,W.props);ZEA(Y);return!0}if(oCW.has(P.name))throw K=P.name,P=(Y=(B=sw)==null?void 0:B.name)!=null?Y:"unknown",Error("cc`"+K+"`"+P);wBC(W.type,W.props,W.children);
W.props.renderedFromIdom=!0;(K=J0o({component:W.type,debugInstance:W.props.debugInstance,fn:function(){return QRx(W.type,W.props)}}))&&S4o(K);
return!0};
u_m=function(W){for(var P=0;P<nX(W).length;P++)cJ()};
ZEA=function(W){var P=dx7();if(P)u_m(P);else for(var x=0;x<W.numNodes;x++)(P=dx7())?u_m(P):cJ()};
dx7=function(){var W;return(W=hg()[JQ])==null?void 0:W.sourceDynamicRange};
S4o=function(W){W=IwC(W);W=Array.isArray(W)?W:[W];W=_.n(W);for(var P=W.next();!P.done;P=W.next())w1.insertBefore(P.value,hg()),cJ()};
sPW=function(W){var P=Ayd(),x=GO(function(){return{value:typeof W==="function"?W():W}});
return[x.value,function(I){if(ol!==null){var O;(O=FJ.handleError)==null||O.call.apply(O,[FJ].concat(_.ju(g1(Error("ld")))))}x.value=typeof I==="function"?I(x.value):I;P.__updateContext={nextState:P.state,isForced:!0};I=lZ(P.effectContext);O=L4(!1);try{if(P.el){var B,Y={},K=(Y.props=P.props,Y.type=P.JSC$8167___type,Y.children=(B=P.props.children)!=null?B:[],Y[F8]=!0,Y);try{OES(P.el,K,!0)}catch(v){var Z,d;(d=FJ.handleError)==null||d.call.apply(d,[FJ].concat(_.ju(g1(v,(Z=P.JSC$8167___type)==null?void 0:
Z.TAG_NAME))))}}}finally{L4(O),lZ(I)}}]};
is=function(W,P){var x=Np,I=function(O){Ew(x,function(){P(O)})};
window.addEventListener(W,I,void 0);_.C4(function(){window.removeEventListener(W,I,void 0)})};
_.FL=function(W,P){var x=Np;_.AQ(function(){var I,O=(I=P.observer)!=null?I:_.FY().resolve(RR);if(I=W.value){var B=vCR(I),Y=[];P.showOption&&Y.push(O.observe(I,function(){Ew(x,function(){P.visibilityCallback(!0)})},P.showOption));
P.hideOption&&Y.push(O.observe(I,function(){Ew(x,function(){P.visibilityCallback(!1)})},P.hideOption));
P.prescanOption&&P.prescanCallback&&Y.push(O.observe(I,function(){Ew(x,function(){P.prescanCallback()})},P.prescanOption));
var K;B.visibilityMonitorKeys=((K=B.visibilityMonitorKeys)!=null?K:[]).concat(Y)}})};
vCR=function(W){var P;return(P=W.polymerController)!=null?P:W};
_.ql=function(W){W.componentType=vJ};
pFm=function(W,P){var x=mxG;return _.u(_.qS,null,fU(FJ.enableLazyTsx,function(){return _.u(Vy8,{id:x,value:W,children:P})},function(){var I=tyW(x,W);
rv(I);I=lZ(I);try{return P()}finally{lZ(I)}}))};
Vy8=function(W){var P=W.children;W=tyW(W.id,W.value);rv(W);W=lZ(W);try{return _.u(_.qS,null,ya(P()))}finally{lZ(W)}};
tyW=function(W,P){return Object.assign(Object.create(jPo),{id:W,contextValue:P})};
QPR=function(W){var P,x=Np;_.GB(function(){var I=lZ(x),O=L4(!P);try{if(P)OES(P,W.children(),!0);else if(P=ya(W.children()),!(P instanceof Element))throw Error("md");}finally{L4(O),lZ(I)}});
return P};
ChA=function(W){var P,x=Ag(function(){var I=L4(!0);try{P=nX(W())}finally{L4(I)}},!1);
return[P,x]};
zWA=function(W){W=W.buf.charCodeAt(W.pos++);return Ad8[W]};
La=function(W){var P=0,x=0;do{var I=zWA(W);P|=(I&31)<<x;x+=5}while(I&32);return P<0?P+4294967296:P};
gCm=function(W,P,x){G4R(W,P);W[P][ECC].unshift(x)};
G4R=function(W,P){if(!W[P]||!W[P][ECC]){var x=W[P],I=x?[x]:[];W[P]=function(){for(var O=_.n(I),B=O.next();!B.done;B=O.next())B.value.apply(this,arguments)};
W[P][ECC]=I}};
DxR=function(W){if(!W)return[];var P=[];W=_.n(W);for(var x=W.next();!x.done;x=W.next())x=x.value,Array.isArray(x)?P.push.apply(P,_.ju(DxR(x))):P.push(x);return P};
_.Pf=function(W,P){if(W&&MyC.test(W)||W==="//")return W;if($xt===void 0){$xt=!1;try{var x=new URL("b","http://a");x.pathname="c%20d";$xt=x.href==="http://a/c%20d"}catch(I){}}P||(P=document.baseURI||window.location.href);if($xt)try{return(new URL(W,P)).href}catch(I){return W}Wf||(Wf=document.implementation.createHTMLDocument("temp"),Wf.base=Wf.createElement("base"),Wf.head.appendChild(Wf.base),Wf.anchor=Wf.createElement("a"),Wf.body.appendChild(Wf.anchor));Wf.base.href=P;Wf.anchor.href=W;return Wf.anchor.href||
W};
hWR=function(W,P){return W.replace(wFd,function(x,I,O,B){return I+"'"+_.Pf(O.replace(/["']/g,""),P)+"'"+B})};
HEG=function(W){return W.substring(0,W.lastIndexOf("/")+1)};
ahW=function(){eWU=!1;for(var W=xQ.length,P=0;P<W;P++){var x=xQ[P];if(x)try{x()}catch(I){setTimeout(function(){throw I;})}}xQ.splice(0,W);
cdC+=W};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(W){console.log("["+W.is+"]: registered")};
k4W=function(W){bEA.push(W)};
Ih=function(W){return UxG[W]||(UxG[W]=W.indexOf("-")<0?W:W.replace(XFm,function(P){return P[1].toUpperCase()}))};
OS=function(W){return UxG[W]||(UxG[W]=W.replace(fhd,"-$1").toLowerCase())};
NLm=function(W,P){var x=P.parentInfo&&NLm(W,P.parentInfo);if(x)for(W=x.firstChild,x=0;W;W=W.nextSibling){if(P.parentIndex===x++)return W}else return W};
lhS=function(W,P){W=W._methodHost||W;return function(x){if(W[P])W[P](x,x.detail);else console.warn("listener method `"+P+"` not defined")}};
JC=function(W){return W.indexOf(".")>=0};
Bf=function(W){var P=W.indexOf(".");return P===-1?W:W.slice(0,P)};
TLU=function(W,P){return W.indexOf(P+".")===0};
nJ=function(W,P){return P.indexOf(W+".")===0};
YQ=function(W,P,x){return P+x.slice(W.length)};
rdS=function(W,P){return W===P||TLU(W,P)||nJ(W,P)};
yD=function(W){if(Array.isArray(W)){for(var P=[],x=0;x<W.length;x++)for(var I=W[x].toString().split("."),O=0;O<I.length;O++)P.push(I[O]);return P.join(".")}return W};
iEo=function(W){return Array.isArray(W)?yD(W).split("."):W.toString().split(".")};
KJ=function(W,P,x){P=iEo(P);for(var I=0;I<P.length;I++){if(!W)return;W=W[P[I]]}x&&(x.path=P.join("."));return W};
RWS=function(W,P,x){var I=iEo(P),O=I[I.length-1];if(I.length>1){for(P=0;P<I.length-1;P++)if(W=W[I[P]],!W)return;W[O]=x}else W[P]=x;return I.join(".")};
FQR=function(W,P,x){var I=W[P];if(!I)I=W[P]={};else if(!W.hasOwnProperty(P)&&(I=W[P]=Object.create(W[P]),x))for(var O in I)for(W=I[O],P=I[O]=Array(W.length),x=0;x<W.length;x++)P[x]=W[x];return I};
oh=function(W,P,x,I,O,B){if(P){var Y=!1,K=ZN++,Z;for(Z in x){var d=O?Bf(Z):Z;if(d=P[d])for(var v=0,m=d.length,t=void 0;v<m&&(t=d[v]);v++)t.info&&t.info.lastRun===K||O&&!q4S(Z,t.trigger)||(t.info&&(t.info.lastRun=K),t.fn(W,Z,x,I,t.info,O,B),Y=!0)}return Y}return!1};
q4S=function(W,P){if(P){var x=P.name;return x==W||!(!P.structured||!TLU(x,W))||!(!P.wildcard||!nJ(x,W))}return!0};
LQW=function(W,P,x,I,O){P=typeof O.method==="string"?W[O.method]:O.method;x=O.property;P?P.call(W,W.__data[x],I[x]):O.dynamicFn||console.warn("observer method `"+O.method+"` not defined")};
WGm=function(W,P,x,I){x={value:x,queueProperty:!0};I&&(x.path=I);(0,_.Sk)(W).dispatchEvent(new CustomEvent(P,{detail:x}))};
Prm=function(W,P,x,I,O,B){B=(I=(B?Bf(P):P)!=P?P:null)?KJ(W,I):W.__data[P];I&&B===void 0&&(B=x[P]);WGm(W,O.eventName,B,I)};
xId=function(W,P,x,I,O){x=W.__data[P];uV&&(x=uV(x,O.attrName,"attribute",W));W._propertyToAttribute(P,O.attrName,x)};
OCx=function(W){var P=W.constructor.__orderedComputedDeps;if(!P){P=new Map;for(var x=W.__computeEffects,I=IZR(W),O=I.counts,B=I.ready,Y=I.total;I=B.shift();)P.set(I,P.size),(I=x[I])&&I.forEach(function(K){K=K.info.methodInfo;--Y;--O[K]===0&&B.push(K)});
Y!==0&&console.warn("Computed graph for "+W.localName+" incomplete; circular?");W.constructor.__orderedComputedDeps=P}return P};
IZR=function(W){var P=W.__computeInfo,x={};W=W.__computeEffects;var I=[],O=0,B;for(B in P){var Y=P[B];O+=x[B]=Y.args.filter(function(Z){return!Z.literal}).length+(Y.dynamicFn?1:0)}for(var K in W)P[K]||I.push(K);
return{counts:x,ready:I,total:O}};
Bpm=function(W,P,x,I,O){P=Jp8(W,P,x,I,O);if(P===d7)return!1;O=O.methodInfo;if(W.__dataHasAccessor&&W.__dataHasAccessor[O])return W._setPendingProperty(O,P,!0);W[O]=P;return!1};
ypR=function(W,P,x,I,O,B,Y){x.bindings=x.bindings||[];I={kind:I,target:O,parts:B,literal:Y,isCompound:B.length!==1};x.bindings.push(I);I.target&&I.kind!="attribute"&&I.kind!="text"&&!I.isCompound&&I.parts[0].mode==="{"&&(x=I.parts[0],B=x.negate,I.listenerEvent=x.event||OS(O)+"-changed",I.listenerNegate=B);O=P.nodeInfoList.length;for(x=0;x<I.parts.length;x++){var K=I.parts[x];K.compoundIndex=x;B=W;Y=P;var Z=I,d=K,v=O;if(!d.literal)if(Z.kind==="attribute"&&Z.target[0]==="-")console.warn("Cannot set attribute "+
Z.target+' because "-" is not a valid attribute starting character');else for(K=d.dependencies,Z={index:v,binding:Z,part:d,evaluator:B},d=0;d<K.length;d++)v=K[d],typeof v=="string"&&(v=nsR(v),v.wildcard=!0),B._addTemplatePropertyEffect(Y,v.rootProperty,{fn:Ya8,info:Z,trigger:v})}};
Ya8=function(W,P,x,I,O,B,Y){Y=Y[O.index];var K=O.binding,Z=O.part;B&&Z.source&&P.length>Z.source.length&&K.kind=="property"&&!K.isCompound&&Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[K.target]?(x=x[P],P=YQ(Z.source,K.target,P),Y._setPendingPropertyOrPath(P,x,!1,!0)&&W._enqueueClient(Y)):(P=O.evaluator._evaluateBinding(W,Z,P,x,I,B),P!==d7&&(K.isCompound&&(x=Y.__dataCompoundStorage[K.target],x[Z.compoundIndex]=P,P=x.join("")),K.kind==="attribute"||K.target!=="textContent"&&
(K.target!=="value"||Y.localName!=="input"&&Y.localName!=="textarea")||(P=P==void 0?"":P),Z=P,uV&&(Z=uV(Z,K.target,K.kind,Y)),K.kind=="attribute"?W._valueToNodeAttribute(Y,Z,K.target):(K=K.target,Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[K]?Y.__readOnly&&Y.__readOnly[K]||Y._setPendingProperty(K,Z)&&W._enqueueClient(Y):W._setUnmanagedPropertyToNode(Y,K,Z))))};
KGm=function(W,P,x){if(x.listenerEvent){var I=x.parts[0];W.addEventListener(x.listenerEvent,function(O){var B=x.target,Y=I.source,K=I.negate,Z=O.detail,d=Z&&Z.path;d?(Y=YQ(B,Y,d),O=Z&&Z.value):O=O.currentTarget[B];P.__readOnly&&P.__readOnly[Y]||!P._setPendingPropertyOrPath(Y,K?!O:O,!0,!!d)||Z&&Z.queueProperty||P._invalidateProperties()})}};
ZCU=function(W,P,x,I,O,B){B=P.static||B&&(typeof B!=="object"||B[P.methodName]);O={methodName:P.methodName,args:P.args,methodInfo:O,dynamicFn:B};for(var Y=0,K=void 0;Y<P.args.length&&(K=P.args[Y]);Y++)K.literal||W._addPropertyEffect(K.rootProperty,x,{fn:I,info:O,trigger:K});B&&W._addPropertyEffect(P.methodName,x,{fn:I,info:O});return O};
Jp8=function(W,P,x,I,O){I=W._methodHost||W;var B=I[O.methodName];if(B)return W=W._marshalArgs(O.args,P,x),W===d7?d7:B.apply(I,W);O.dynamicFn||console.warn("method `"+O.methodName+"` not defined")};
osm=function(W){for(var P="",x=0;x<W.length;x++)P+=W[x].literal||"";return P};
dIC=function(W){if(W=W.match(/([^\s]+?)\(([\s\S]*)\)/)){var P={methodName:W[1],static:!0,args:Sax};return W[2].trim()?udd(W[2].replace(/\\,/g,"&comma;").split(","),P):P}return null};
udd=function(W,P){P.args=W.map(function(x){x=nsR(x);x.literal||(P.static=!1);return x},this);
return P};
nsR=function(W){W=W.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var P={name:W,value:"",literal:!1},x=W[0];x==="-"&&(x=W[1]);x>="0"&&x<="9"&&(x="#");switch(x){case "'":case '"':P.value=W.slice(1,-1);P.literal=!0;break;case "#":P.value=Number(W),P.literal=!0}P.literal||(P.rootProperty=Bf(W),P.structured=JC(W),P.structured&&(P.wildcard=W.slice(-2)==".*",P.wildcard&&(P.name=W.slice(0,-2))));return P};
sSU=function(W,P,x){W=KJ(W,x);W===void 0&&(W=P[x]);return W};
vsG=function(W,P,x,I){I={indexSplices:I};sS&&!W._overrideLegacyUndefined&&(P.splices=I);W.notifyPath(x+".splices",I);W.notifyPath(x+".length",P.length);sS&&!W._overrideLegacyUndefined&&(I.indexSplices=[])};
vf=function(W,P,x,I,O,B){vsG(W,P,x,[{index:I,addedCount:O,removed:B,object:P,type:"splice"}])};
mIR=function(W){W=hWR((W.body?W.body:W).textContent,W.baseURI);var P=document.createElement("style");P.textContent=W;return P};
tKx=function(W){W=W.trim().split(/\s+/);for(var P=[],x=0;x<W.length;x++)P.push.apply(P,_.ju(VKS(W[x])));return P};
VKS=function(W){var P=mh.import(W);if(!P)return console.warn("Could not find style data in module named",W),[];if(P._styles===void 0){W=[];W.push.apply(W,_.ju(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(P)));var x=P.querySelector("template");x&&W.push.apply(W,_.ju(pqm(x,P.assetpath)));P._styles=W}return P._styles};
pqm=function(W,P){if(!W._styles){for(var x=[],I=W.content.querySelectorAll("style"),O=0;O<I.length;O++){var B=I[O],Y=B.getAttribute("include");Y&&x.push.apply(x,_.ju(tKx(Y).filter(function(K,Z,d){return d.indexOf(K)===Z})));
P&&(B.textContent=hWR(B.textContent,P));x.push(B)}W._styles=x}return W._styles};
jSd=function(W){return(W=mh.import(W))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var P=[];W=W.querySelectorAll("link[rel=import][type~=css]");for(var x=0;x<W.length;x++){var I=W[x];if(I.import){var O=I.import;if((I=I.hasAttribute("shady-unscoped"))&&!O._unscopedStyle){var B=mIR(O);B.setAttribute("shady-unscoped","");O._unscopedStyle=B}else O._style||(O._style=mIR(O));P.push(I?O._unscopedStyle:O._style)}}return P};
CrR=function(W){W=W.trim().split(/\s+/);for(var P="",x=0;x<W.length;x++)P+=QSC(W[x]);return P};
QSC=function(W){var P=mh.import(W);if(P&&P._cssText===void 0){var x=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(P),I=P.querySelector("template");I&&(x+=ApG(I,P.assetpath));P._cssText=x||null}P||console.warn("Could not find style data in module named",W);return P&&P._cssText||""};
ApG=function(W,P){var x="";W=pqm(W,P);for(P=0;P<W.length;P++){var I=W[P];I.parentNode&&I.parentNode.removeChild(I);x+=I.textContent}return x};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var P="";W=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W);for(var x=0;x<W.length;x++)P+=W[x].textContent;return P};
VD=function(W,P){return{index:W,removed:[],addedCount:P}};
GSU=function(W,P,x,I){var O=0,B=0,Y=0,K=0,Z=Math.min(P-O,I-B);if(O==0&&B==0)a:{for(Y=0;Y<Z;Y++)if(W[Y]!==x[Y])break a;Y=Z}if(P==W.length&&I==x.length){K=W.length;for(var d=x.length,v=0;v<Z-Y&&z07(W[--K],x[--d]);)v++;K=v}O+=Y;B+=Y;P-=K;I-=K;if(P-O==0&&I-B==0)return[];if(O==P){for(P=VD(O,0);B<I;)P.removed.push(x[B++]);return[P]}if(B==I)return[VD(O,P-O)];Z=O;Y=B;I=I-Y+1;K=P-Z+1;P=Array(I);for(d=0;d<I;d++)P[d]=Array(K),P[d][0]=d;for(d=0;d<K;d++)P[0][d]=d;for(d=1;d<I;d++)for(v=1;v<K;v++)if(W[Z+v-1]===
x[Y+d-1])P[d][v]=P[d-1][v-1];else{var m=P[d-1][v]+1,t=P[d][v-1]+1;P[d][v]=m<t?m:t}Z=P.length-1;Y=P[0].length-1;I=P[Z][Y];for(W=[];Z>0||Y>0;)Z==0?(W.push(2),Y--):Y==0?(W.push(3),Z--):(K=P[Z-1][Y-1],d=P[Z-1][Y],v=P[Z][Y-1],m=d<v?d<K?d:K:v<K?v:K,m==K?(K==I?W.push(0):(W.push(1),I=K),Z--,Y--):m==d?(W.push(3),Z--,I=d):(W.push(2),Y--,I=v));W.reverse();P=void 0;Z=[];for(Y=0;Y<W.length;Y++)switch(W[Y]){case 0:P&&(Z.push(P),P=void 0);O++;B++;break;case 1:P||(P=VD(O,0));P.addedCount++;O++;P.removed.push(x[B]);
B++;break;case 2:P||(P=VD(O,0));P.addedCount++;O++;break;case 3:P||(P=VD(O,0)),P.removed.push(x[B]),B++}P&&Z.push(P);return Z};
Esd=function(W,P){return GSU(W,W.length,P,P.length)};
z07=function(W,P){return W===P};
MKG=function(W){if(W instanceof gsR)return W.value;throw Error("Dd`"+W);};
$Ix=function(W,P){for(var x in P)x===null?W.style.removeProperty(x):W.style.setProperty(x,P[x])};
wqC=function(W,P){return(W=window.getComputedStyle(W).getPropertyValue(P))?W.trim():""};
cpm=function(W){requestAnimationFrame(function(){h0d?h0d(W):(HCW||(HCW=new Promise(function(P){e0o=P}),document.readyState==="complete"?e0o():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&e0o()})),HCW.then(function(){W&&W()}))})};
kSG=function(W){aZC=W&&W.shimcssproperties?!1:bC7||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
lZm=function(W){if(!(UId.indexOf(W)>-1)&&W!=="touchend"&&XqW&&fZR&&NpG)return{passive:!0}};
R07=function(W){for(var P=TpR?["click"]:UId,x=0,I;x<P.length;x++)I=P[x],W?(rpm.length=0,document.addEventListener(I,iCS,!0)):document.removeEventListener(I,iCS,!0)};
tC=function(W){var P=W.type;return UId.indexOf(P)>-1?P==="mousemove"?(P=W.buttons===void 0?1:W.buttons,W instanceof window.MouseEvent&&!FGC&&(P=qa8[W.which]||0),!!(P&1)):(W.button===void 0?0:W.button)===0:!1};
LGA=function(W){if(W.type==="click"){if(W.detail===0)return!0;var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);if(!P.nodeType||P.nodeType!==Node.ELEMENT_NODE)return!0;P=P.getBoundingClientRect();var x=W.pageX;W=W.pageY;return!(x>=P.left&&x<=P.right&&W>=P.top&&W<=P.bottom)}return!1};
W0A=function(W,P,x){W.movefn=P;W.upfn=x;document.addEventListener("mousemove",P);document.addEventListener("mouseup",x)};
pJ=function(W){document.removeEventListener("mousemove",W.movefn);document.removeEventListener("mouseup",W.upfn);W.movefn=null;W.upfn=null};
P6R=function(W,P){for(var x=document.elementFromPoint(W,P),I=x;I&&I.shadowRoot&&!window.ShadyDOM;){var O=I;I=I.shadowRoot.elementFromPoint(W,P);if(O===I)break;I&&(x=I)}return x};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var P=xzS(W);return P.length>0?P[0]:W.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var P=W.type,x=W.currentTarget.__polymerGestures;if(x&&(x=x[P])){if(!W.__polymerGesturesHandled&&(W.__polymerGesturesHandled={},P.slice(0,5)==="touch")){var I=W.changedTouches[0];P==="touchstart"&&W.touches.length===1&&(IIR=I.identifier);if(IIR!==I.identifier)return;XqW||(P==="touchstart"||P==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)}I=
W.__polymerGesturesHandled;if(!I.skip){for(var O=0,B;O<jk.length;O++)B=jk[O],x[B.name]&&!I[B.name]&&B.flow&&B.flow.start.indexOf(W.type)>-1&&B.reset&&B.reset();for(O=0;O<jk.length;O++)B=jk[O],x[B.name]&&!I[B.name]&&(I[B.name]=!0,B[P](W))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var P=W.changedTouches[0],x=W.type;if(x==="touchstart")Ooo=P.clientX,J3m=P.clientY,BnW=!1;else if(x==="touchmove"&&!BnW){BnW=!0;x="auto";for(var I=xzS(W),O=0,B;O<I.length;O++)if(B=I[O],B.__polymerGesturesTouchAction){x=B.__polymerGesturesTouchAction;break}I=!1;O=Math.abs(Ooo-P.clientX);P=Math.abs(J3m-P.clientY);W.cancelable&&(x==="none"?I=!0:x==="pan-x"?I=P>O:x==="pan-y"&&(I=O>P));I?W.preventDefault():
QD("track")}};
AC=function(W,P,x){return CJ[P]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,P,x),!0):!1};
zY=function(W,P,x){return CJ[P]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,P,x),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,P,x){var I=CJ[P],O=I.deps,B=I.name,Y=W.__polymerGestures;Y||(W.__polymerGestures=Y={});for(var K=0,Z,d;K<O.length;K++)Z=O[K],TpR&&UId.indexOf(Z)>-1&&Z!=="click"||((d=Y[Z])||(Y[Z]=d={_count:0}),d._count===0&&W.addEventListener(Z,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,lZm(Z)),d[B]=(d[B]||0)+1,d._count=(d._count||0)+1);W.addEventListener(P,x);I.touchAction&&_.GY(W,I.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,P,x){var I=CJ[P],O=I.deps;I=I.name;var B=W.__polymerGestures;if(B)for(var Y=0,K,Z;Y<O.length;Y++)K=O[Y],(Z=B[K])&&Z[I]&&(Z[I]=(Z[I]||1)-1,Z._count=(Z._count||1)-1,Z._count===0&&W.removeEventListener(K,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,lZm(K)));W.removeEventListener(P,x)};
nAC=function(W){jk.push(W);for(var P=0;P<W.emits.length;P++)CJ[W.emits[P]]=W};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){for(var P=0,x;P<jk.length;P++){x=jk[P];for(var I=0,O;I<x.emits.length;I++)if(O=x.emits[I],O===W)return x}return null};
_.GY=function(W,P){XqW&&W instanceof HTMLElement&&ES.run(function(){W.style.touchAction=P});
W.__polymerGesturesTouchAction=P};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,P,x){P=new Event(P,{bubbles:!0,cancelable:!0,composed:!0});P.detail=x;(0,_.Sk)(W).dispatchEvent(P);P.defaultPrevented&&(W=x.preventer||x.sourceEvent)&&W.preventDefault&&W.preventDefault()};
QD=function(W){W=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W.info&&(W.info.prevent=!0)};
g7=function(W,P,x,I){P&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(P,W,{x:x.clientX,y:x.clientY,sourceEvent:x,preventer:I,prevent:function(O){return QD(O)}})};
YrS=function(W,P,x){if(W.prevent)return!1;if(W.started)return!0;x=Math.abs(W.y-x);return Math.abs(W.x-P)>=5||x>=5};
y3S=function(W,P,x){if(P){var I=W.moves[W.moves.length-2],O=W.moves[W.moves.length-1],B=O.x-W.x,Y=O.y-W.y,K=0;if(I){var Z=O.x-I.x;K=O.y-I.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(P,"track",{state:W.state,x:x.clientX,y:x.clientY,dx:B,dy:Y,ddx:Z,ddy:K,sourceEvent:x,hover:function(){return P6R(x.clientX,x.clientY)}})}};
Zot=function(W,P,x){var I=Math.abs(P.clientX-W.x),O=Math.abs(P.clientY-W.y),B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x||P);!B||K0S[B.localName]&&B.hasAttribute("disabled")||!(isNaN(I)||isNaN(O)||I<=25&&O<=25||LGA(P))||W.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,"tap",{x:P.clientX,y:P.clientY,sourceEvent:P,preventer:x})};
oAm=function(W,P,x,I,O){var B;O&&(B=typeof x==="object"&&x!==null)&&(I=W.__dataTemp[P]);I=I!==x&&(I===I||x===x);B&&I&&(W.__dataTemp[P]=x);return I};
ujC=function(){if(DN&&!M1){if(!SrR){SrR=!0;var W=document.createElement("style");W.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(W)}return!0}return!1};
sq8=function(){return dzm};
vAG=function(W,P){dzm=W;Object.setPrototypeOf(W,P.prototype);new P;dzm=null};
mzR=function(W,P){for(var x=0;x<P.length;x++){var I=P[x];if(!!W!=!!I.__hideTemplateChildren__)if(I.nodeType===Node.TEXT_NODE)W?(I.__polymerTextContent__=I.textContent,I.textContent=""):I.textContent=I.__polymerTextContent__;else if(I.localName==="slot")if(W)I.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Sk)((0,_.Sk)(I).parentNode).replaceChild(I.__polymerReplaced__,I);else{var O=I.__polymerReplaced__;O&&(0,_.Sk)((0,_.Sk)(O).parentNode).replaceChild(I,O)}else I.style&&(W?(I.__polymerDisplay__=
I.style.display,I.style.display="none"):I.style.display=I.__polymerDisplay__);I.__hideTemplateChildren__=W;I._showHideChildren&&I._showHideChildren(W)}};
VQd=function(W){return(W=W.__dataHost)&&W._methodHost||W};
jqd=function(W,P,x){var I=x.mutableData?tQm:$Q;w7.mixin&&(I=w7.mixin(I));var O=function(){return I.apply(this,arguments)||this};
_.A(O,I);O.prototype.__templatizeOptions=x;O.prototype._bindTemplate(W);pO7(O,W,P,x);return O};
Ga8=function(W,P,x,I){var O=x.forwardHostProp;if(O&&P.hasHostProps){var B=W.localName=="template",Y=P.templatizeTemplateClass;if(!Y){if(B){var K=x.mutableData?Qqx:C68;Y=function(){return K.apply(this,arguments)||this};
_.A(Y,K);Y=P.templatizeTemplateClass=Y}else{var Z=W.constructor;Y=function(){return Z.apply(this,arguments)||this};
_.A(Y,Z);Y=P.templatizeTemplateClass=Y}var d=P.hostProps,v;for(v in d)Y.prototype._addPropertyEffect("_host_"+v,Y.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:A3G(O)}),Y.prototype._createNotifyingProperty("_host_"+v);hC&&I&&zJR(P,x,I)}W.__dataProto&&Object.assign(W.__data,W.__dataProto);if(B)vAG(W,Y),W.__dataTemp={},W.__dataPending=null,W.__dataOld=null,W._enableProperties();else{Object.setPrototypeOf(W,Y.prototype);P=P.hostProps;for(var m in P)m="_host_"+m,m in W&&(P=W[m],delete W[m],W.__data[m]=
P)}}};
A3G=function(W){return function(P,x,I){W.call(P.__templatizeOwner,x.substring(6),I[x])}};
pO7=function(W,P,x,I){var O=x.hostProps||{},B;for(B in I.instanceProps){delete O[B];var Y=I.notifyInstanceProp;Y&&W.prototype._addPropertyEffect(B,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:EAo(Y)})}if(I.forwardHostProp&&P.__dataHost)for(var K in O)x.hasHostProps||(x.hasHostProps=!0),W.prototype._addPropertyEffect(K,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gA7()})};
EAo=function(W){return function(P,x,I){W.call(P.__templatizeOwner,P,x,I[x])}};
gA7=function(){return function(W,P,x){W.__dataHost._setPendingPropertyOrPath("_host_"+P,x[P],!0,!0)}};
w7=function(W,P,x){if(Hf&&!VQd(W))throw Error("Jd");x=x||{};if(W.__templatizeOwner)throw Error("Kd");W.__templatizeOwner=P;var I=(P?P.constructor:$Q)._parseTemplate(W),O=I.templatizeInstanceClass;O||(O=jqd(W,I,x),I.templatizeInstanceClass=O);var B=VQd(W);Ga8(W,I,x,B);x=function(){return O.apply(this,arguments)||this};
_.A(x,O);x.prototype._methodHost=B;x.prototype.__dataHost=W;x.prototype.__templatizeOwner=P;x.prototype.__hostProps=I.hostProps;return x};
zJR=function(W,P,x){x=x.constructor._properties;W=W.propertyEffects;P=P.instanceProps;for(var I in W)if(!(x[I]||P&&P[I]))for(var O=W[I],B=0;B<O.length;B++){var Y=O[B].info.part;if(!Y.signature||!Y.signature.static){console.warn("Property '"+I+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
DzA=function(W,P){for(var x;P;)if(x=P.__dataHost?P:P.__templatizeInstance)if(x.__dataHost!=W)P=x.__dataHost;else return x;else P=(0,_.Sk)(P).parentNode;return null};
ek=function(W){return W.localName==="slot"};
MQU=function(){for(var W=cf.prototype,P="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),x={},I=0;I<P.length;x={method$jscomp$30:void 0},I++)x.method$jscomp$30=P[I],W[x.method$jscomp$30]=function(O){return function(){return this.node[O.method$jscomp$30].apply(this.node,arguments)}}(x)};
$zW=function(W,P){for(var x={},I=0;I<P.length;x={name$jscomp$378:void 0},I++)x.name$jscomp$378=P[I],Object.defineProperty(W,x.name$jscomp$378,{get:function(O){return function(){return this.node[O.name$jscomp$378]}}(x),
configurable:!0})};
wOd=function(){for(var W=cf.prototype,P=["textContent","innerHTML","className"],x={},I=0;I<P.length;x={name$jscomp$379:void 0},I++)x.name$jscomp$379=P[I],Object.defineProperty(W,x.name$jscomp$379,{get:function(O){return function(){return this.node[O.name$jscomp$379]}}(x),
set:function(O){return function(B){this.node[O.name$jscomp$379]=B}}(x),
configurable:!0})};
hJm=function(){ah=document.documentElement.getAttribute("dir");ah=document.documentElement.getAttribute("dir");for(var W=0;W<bV.length;W++){var P=bV[W];P.__autoDirOptOut||P.setAttribute("dir",ah)}};
aId=function(){kQ=!0;requestAnimationFrame(function(){kQ=!1;HoR(eJt);setTimeout(function(){for(var W=0,P=US.length;W<P;W++)c3t(US.shift())})})};
HoR=function(W){for(;W.length;)c3t(W.shift())};
c3t=function(W){var P=W[0],x=W[1];W=W[2];try{x.apply(P,W)}catch(I){setTimeout(function(){throw I;})}};
_.bot=function(W,P,x){kQ||aId();eJt.push([W,P,x])};
_.Xm=function(W,P,x){kQ||aId();US.push([W,P,x])};
XOR=function(W,P){P=P===void 0?!1:P;if(!kam||!UzC||!kam.handlesDynamicScoping)return null;var x=UzC.ScopingShim;if(!x)return null;var I=x.scopeForNode(W),O=(0,_.Sk)(W).getRootNode(),B=function(Y){if((0,_.Sk)(Y).getRootNode()===O){var K=Array.from(kam.nativeMethods.querySelectorAll.call(Y,"*"));K.push(Y);for(Y=0;Y<K.length;Y++){var Z=K[Y];if((0,_.Sk)(Z).getRootNode()===O){var d=x.currentScopeForNode(Z);d!==I&&(d!==""&&x.unscopeNode(Z,d),x.scopeNode(Z,I))}}}};
B(W);return P?(P=new MutationObserver(function(Y){for(var K=0;K<Y.length;K++)for(var Z=Y[K],d=0;d<Z.addedNodes.length;d++){var v=Z.addedNodes[d];v.nodeType===Node.ELEMENT_NODE&&B(v)}}),P.observe(W,{childList:!0,
subtree:!0}),P):null};
fIm=function(){document.body.removeAttribute("unresolved")};
iox=function(W){var P=W=W.replace(Nnm,"").replace(lIR,""),x=new Tn7;x.start=0;x.end=P.length;for(var I=x,O=0,B=P.length;O<B;O++)if(P[O]==="{"){I.rules||(I.rules=[]);var Y=I,K=Y.rules[Y.rules.length-1]||null;I=new Tn7;I.start=O+1;I.parent=Y;I.previous=K;Y.rules.push(I)}else P[O]==="}"&&(I.end=O+1,I=I.parent||x);return r3d(x,W)};
r3d=function(W,P){var x=P.substring(W.start,W.end-1);W.parsedCssText=W.cssText=x.trim();W.parent&&(x=P.substring(W.previous?W.previous.end:W.parent.start,W.start-1),x=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(x),x=x.replace(RJo," "),x=x.substring(x.lastIndexOf(";")+1),x=W.parsedSelector=W.selector=x.trim(),W.atRule=x.indexOf("@")===0,W.atRule?x.indexOf("@media")===0?W.type=4:x.match(F0x)&&(W.type=7,W.keyframesName=W.selector.split(RJo).pop()):x.indexOf("--")===
0?W.type=1E3:W.type=1);if(x=W.rules)for(var I=0,O=x.length,B=void 0;I<O&&(B=x[I]);I++)r3d(B,P);return W};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){return W.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var P=arguments[1],x=6-P.length;x--;)P="0"+P;return"\\"+P})};
qrU=function(W,P,x){x=x===void 0?"":x;var I="";if(W.cssText||W.rules){var O=W.rules;if(O&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(O))for(var B=0,Y=O.length,K=void 0;B<Y&&(K=O[B]);B++)I=qrU(K,P,I);else P?P=W.cssText:(P=W.cssText,P=P.replace(L0m,"").replace(WfR,""),P=P.replace(P4x,"").replace(x$d,"")),(I=P.trim())&&(I="  "+I+"\n")}I&&(W.selector&&(x+=W.selector+" {\n"),x+=I,W.selector&&(x+="}\n\n"));return x};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){W=W[0];return!!W&&!!W.selector&&W.selector.indexOf("--")===0};
OPW=function(W){if(W=IsS[W])W._applyShimCurrentVersion=W._applyShimCurrentVersion||0,W._applyShimValidatingVersion=W._applyShimValidatingVersion||0,W._applyShimNextVersion=(W._applyShimNextVersion||0)+1};
JMW=function(W){return W._applyShimCurrentVersion===W._applyShimNextVersion};
ncG=function(W){W._applyShimValidatingVersion=W._applyShimNextVersion;W._validating||(W._validating=!0,Bht.then(function(){W._applyShimCurrentVersion=W._applyShimNextVersion;W._validating=!1}))};
yMR=function(W){if(!W)return"";typeof W==="string"&&(W=iox(W));return qrU(W,Yem)};
Kfx=function(W){!W.__cssRules&&W.textContent&&(W.__cssRules=iox(W.textContent));return W.__cssRules||null};
oc8=function(W,P,x,I){if(W){var O=!1,B=W.type;if(I&&B===4){var Y=W.selector.match(ZPG);Y&&(window.matchMedia(Y[1]).matches||(O=!0))}B===1?P(W):x&&B===7?x(W):B===1E3&&(O=!0);if((W=W.rules)&&!O)for(O=0,B=W.length,Y=void 0;O<B&&(Y=W[O]);O++)oc8(Y,P,x,I)}};
SeA=function(W,P){var x=W.indexOf("var(");if(x===-1)return P(W,"","","");a:{var I=0;var O=x+3;for(var B=W.length;O<B;O++)if(W[O]==="(")I++;else if(W[O]===")"&&--I===0)break a;O=-1}I=W.substring(x+4,O);x=W.substring(0,x);W=SeA(W.substring(O+1),P);B=I.indexOf(",");if(B===-1)return P(x,I.trim(),"",W);O=I.substring(0,B).trim();I=I.substring(B+1).trim();return P(x,O,I,W)};
u3C=function(W){if(fJ!==void 0)return fJ;if(W.__cssBuild===void 0){var P=W.getAttribute("css-build");if(P)W.__cssBuild=P;else{a:{P=W.localName==="template"?W.content.firstChild:W.firstChild;if(P instanceof Comment&&(P=P.textContent.trim().split(":"),P[0]==="css-build")){P=P[1];break a}P=""}if(P!==""){var x=W.localName==="template"?W.content.firstChild:W.firstChild;x.parentNode.removeChild(x)}W.__cssBuild=P}}return W.__cssBuild||""};
szR=function(W,P,x,I){for(var O=P._noAccessors,B=Object.getOwnPropertyNames(P),Y=0;Y<B.length;Y++){var K=B[Y];if(!(K in I))if(O)W[K]=P[K];else{var Z=Object.getOwnPropertyDescriptor(P,K);Z&&(Z.configurable=!0,Object.defineProperty(W,K,Z))}}for(var d in d$R)P[d]&&(x[d]=x[d]||[],x[d].push(P[d]))};
vcR=function(W,P,x){P=P||[];for(var I=W.length-1;I>=0;I--){var O=W[I];O?Array.isArray(O)?vcR(O,P):P.indexOf(O)<0&&(!x||x.indexOf(O)<0)&&P.unshift(O):console.warn("behavior is null, check for missing or 404 import")}return P};
m$R=function(W,P){for(var x in P){var I=W[x],O=P[x];W[x]=!("value"in O)&&I&&"value"in I?Object.assign({value:I.value},O):O}};
pXS=function(W,P,x){var I={},O=function(){return P.apply(this,arguments)||this};
_.A(O,P);O._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Y)for(var Z=0,d;Z<Y.length;Z++)d=Y[Z],d.properties&&this.createProperties(d.properties),d.observers&&this.createObservers(d.observers,d.properties);W.properties&&this.createProperties(W.properties);W.observers&&this.createObservers(W.observers,W.properties);this._prepareTemplate()}else P._finalizeClass.call(this)};
O.prototype.created=function(){P.prototype.created.call(this);var Z=I.created;if(Z)for(var d=0;d<Z.length;d++)Z[d].call(this)};
O.prototype._registered=function(){var Z=O.prototype;if(!Z.hasOwnProperty("__hasRegisterFinished")){Z.__hasRegisterFinished=!0;P.prototype._registered.call(this);DN&&K(Z);Z=Object.getPrototypeOf(this);var d=I.beforeRegister;if(d)for(var v=0;v<d.length;v++)d[v].call(Z);if(d=I.registered)for(v=0;v<d.length;v++)d[v].call(Z)}};
O.prototype._applyListeners=function(){P.prototype._applyListeners.call(this);var Z=I.listeners;if(Z)for(var d=0;d<Z.length;d++){var v=Z[d];if(v)for(var m in v)this._addMethodEventListenerToNode(this,m,v[m])}};
O.prototype._ensureAttributes=function(){var Z=I.hostAttributes;if(Z)for(var d=Z.length-1;d>=0;d--){var v=Z[d],m;for(m in v)this._ensureAttribute(m,v[m])}P.prototype._ensureAttributes.call(this)};
O.prototype.ready=function(){P.prototype.ready.call(this);var Z=I.ready;if(Z)for(var d=0;d<Z.length;d++)Z[d].call(this)};
O.prototype.attached=function(){P.prototype.attached.call(this);var Z=I.attached;if(Z)for(var d=0;d<Z.length;d++)Z[d].call(this)};
O.prototype.detached=function(){P.prototype.detached.call(this);var Z=I.detached;if(Z)for(var d=0;d<Z.length;d++)Z[d].call(this)};
O.prototype.attributeChanged=function(Z,d,v){P.prototype.attributeChanged.call(this);var m=I.attributeChanged;if(m)for(var t=0;t<m.length;t++)m[t].call(this,Z,d,v)};
_.N1.Object.defineProperties(O,{properties:{configurable:!0,enumerable:!0,get:function(){var Z={};if(Y)for(var d=0;d<Y.length;d++)m$R(Z,Y[d].properties);m$R(Z,W.properties);return Z}},
observers:{configurable:!0,enumerable:!0,get:function(){var Z=[];if(Y)for(var d=0,v;d<Y.length;d++)v=Y[d],v.observers&&(Z=Z.concat(v.observers));W.observers&&(Z=Z.concat(W.observers));return Z}}});
if(x){Array.isArray(x)||(x=[x]);var B=P.prototype.behaviors;var Y=vcR(x,null,B);O.prototype.behaviors=B?B.concat(x):Y}var K=function(Z){if(Y)for(var d=Y,v=0;v<d.length;v++)szR(Z,d[v],I,V_W);szR(Z,W,I,t_t)};
DN||K(O.prototype);O.generatedFrom=W;return O};
AMC=function(W){var P=typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0};P.fastInit===void 0&&(P.fastInit=!0);return function(x){if(!P.disableInheritanceCheck&&Object.getPrototypeOf(x.prototype).constructor!==_.lV)throw Error("Od");var I=x.prototype;I.is=P.is;gCm(I,"created",function(){this.hostElement=this;this.polymerController=this});
jzd(I,x,P.fastInit);P.notifyObserversOnUndefined&&(I._overrideLegacyUndefined=!0);if(QzA)for(var O=_.n(Object.getOwnPropertyNames(I)),B=O.next();!B.done;B=O.next()){B=B.value;var Y=Object.getOwnPropertyDescriptor(I,B);Y.enumerable===!1&&(Y.enumerable=!0,Object.defineProperty(I,B,Y))}if("template"in x)var K=function(){return x.template};
else P.template!==void 0&&(K=P.template);if(K!==void 0){var Z;Object.defineProperty(I,"_template",{get:function(){Z===void 0&&(Z=K());return Z},
set:function(d){Z=d},
configurable:!0,enumerable:!0})}Polymer(I);x[C4U]=I}};
zuC=function(W){W=W===void 0?{}:W;W.fastInit===void 0&&(W.fastInit=!0);return function(P){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(P.prototype).constructor!==TY)throw Error("Pd");jzd(P.prototype,P,W.fastInit)}};
jzd=function(W,P,x){x=x===void 0?!1:x;Gco(P);x?gCm(W,"created",function(){this.disableEnforceFastDefaultValuesCheck||Ecx(P,this)}):gCm(W,"ready",function(){for(var I={},O=_.n(DxR(this.behaviors)),B=O.next();!B.done;B=O.next())B=B.value,B.properties&&Object.assign(I,gcm(this,B.properties));
Object.assign(I,gcm(this,this.properties));Ecx(P,this);O=_.n(Object.keys(I));for(B=O.next();!B.done;B=O.next())B=B.value,this[B]=I[B]})};
Ecx=function(W,P){if(QzA){W=new W;for(var x=_.n(Object.getOwnPropertyNames(W)),I=x.next();!I.done;I=x.next())I=I.value,P[I]=W[I];for(x=P;x&&x!==Object.prototype;x=Object.getPrototypeOf(x)){I=_.n(Object.getOwnPropertyNames(x));for(var O=I.next();!O.done;O=I.next())O=O.value,W.hasOwnProperty(O)||Object.defineProperty(W,O,D$S(P,O))}}else W.apply(P)};
D$S=function(W,P){return{get:function(){var x=W[P];return x instanceof Function?x.bind(W):x},
set:function(x){W[P]=x}}};
gcm=function(W,P){if(!P)return{};for(var x={},I=_.n(Object.keys(P)),O=I.next();!O.done;O=I.next())if(O=O.value,!P[O].readOnly){var B=W[O];B!==void 0&&(x[O]=B)}return x};
Gco=function(W){var P=new W;W=W.prototype.properties||{};for(var x=_.n(Object.keys(W)),I=x.next();!I.done;I=x.next())if(I=I.value,P.hasOwnProperty(I)){var O=W[I];typeof O==="function"&&(W[I]=O={type:O});P[I]!=null&&O.type===Object&&(O.type=M_U(P[I].constructor))}};
M_U=function(W){for(var P=_.n($$W),x=P.next();!x.done;x=P.next())if(x=x.value,W===x)return x;return Object};
wXx=function(W){return function(P,x){P.behaviors=P.behaviors||[];P.behaviors.push(W||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",P,x).prototype:void 0));Object.defineProperty(P,x,{get:function(){return this},
enumerable:!0,configurable:!0})}};
huU=function(W){W=W===void 0?{}:W;return function(P,x){P.properties=P.properties||{};W.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?W.type=M_U(Reflect.getMetadata("design:type",P,x)):W.type=String);var I=W,O=P.properties[x];P.properties[x]=O?Object.assign({},O,I):I}};
HPR=function(W){return function(P,x){P.listeners=P.listeners||{};P.listeners[W]=x}};
euW=function(){var W=_.tH.apply(0,arguments);if(W.length===0)throw Error("Qd");return function(P,x){P.observers=P.observers||[];P.observers.push(x+"("+W.join(",")+")")}};
cMA=function(){var W=_.tH.apply(0,arguments);return function(P,x,I){var O=Object.getOwnPropertyDescriptor(P,x).get,B="__compute__"+x;Object.defineProperty(P,B,{value:O,enumerable:!0});P.properties=P.properties||{};O=P.properties[x];O||(O={},P.properties[x]=O);O.computed=B+"("+W.join(",")+")";I.get=void 0}};
_.r7=function(W,P,x){_.vn.call(this);this.JSC$9119_id_=null;this.usingListeners_=!1;this.JSC$9119_listener_=W;this.handler_=x;this.JSC$9119_win_=P||window;this.callback_=(0,_.mx)(this.JSC$9121_doAction_,this)};
iV=function(W){this.range_=W};
Rh=function(W){this.range_=W};
LJ=function(W,P,x){_.vn.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=W;this.scrollTimer_=new _.Fm(50);this.JSC$9198_eventHandler_=new _.q1(this);this.scrollDelta_=new _.Al;this.containerIsActuallyContent_=W.tagName==="BODY"||W.tagName==="HTML";this.containerBounds_=asd(W);this.containerIsActuallyContent_&&(W=_.K5(),this.containerBounds_.height=W.height,this.containerBounds_.width=W.width);this.margin_=P||0;if(P){if(P=this.containerBounds_.clone(),W=this.margin_){var I=
Math.min(W,P.height*.25);P.top+=I;P.height-=2*I;W=Math.min(W,P.width*.25);P.left+=W;P.width-=2*W}}else P=this.containerBounds_;this.scrollBounds_=P;x||this.JSC$9198_eventHandler_.listen(_.GD(this.containerNode_),"mousemove",this.JSC$9200_onMouseMove);this.JSC$9198_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9200_onTick_)};
_.WV=function(W){this.mechanism=W};
PV=function(W,P){this.JSC$9296_key_=W;this.JSC$9296_value_=P};
kct=function(W){if(W>=55296&&W<=57343||W>1114111)return"\ufffd";W in bPR&&(W=bPR[W]);var P="";W>65535&&(W-=65536,P+=String.fromCharCode(W>>>10&1023|55296),W=56320|W&1023);return P+=String.fromCharCode(W)};
U$8=function(W,P){return W<P?1:-1};
fsU=function(){return function(W){return W.charAt(1)==="#"?W.charAt(2)==="X"||W.charAt(2)==="x"?kct(parseInt(W.substr(3),16)):kct(parseInt(W.substr(2),10)):XXt[W.slice(1,-1)]}};
Thm=function(W){return W.slice(1,W.length-1).trim().replace(NhA,function(P){return lsm[P]||" "})};
xa=function(W){return W===32||W===9};
Ii=function(W,P){return P<W.length?W.charCodeAt(P):-1};
rMA=function(W){for(;W;){if(W._lastLineBlank)return!0;var P=W.type;if(P==="list"||P==="item")W=W._lastChild;else break}return!1};
O_=function(W){if(iPR.test(W)){var P=1,x=0,I=0;for(W[x]=="|"&&x++;x<W.length;){switch(W[x]){case "|":I=1;break;case " ":break;case "\t":break;default:I&&(I=0,P++)}x++}return Rum.test(W)?-P:P}return 0};
Ffo=function(W){return W=="table"||W=="row"||W=="cell"};
qe7=function(){return new J1("document",[[1,1],[0,0]])};
LfC=function(){};
BV=function(){var W={safe:!1};W=W||{};W.softbreak=W.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=W};
OWm=function(W,P){var x="";if(W)if(W=W.toLowerCase(),W===" "||WSo.test(W))x="space";else if(P98.test(W))x="esc";else if(W.length==1){if(!P||xYR.test(W))x=W}else x=I2d.test(W)?W.replace("arrow",""):W=="multiply"?"*":W;return x};
Y18=function(W,P){var x=W.hasModifiers;if(P.key)x=OWm(P.key,x);else if(P.detail&&P.detail.key)x=OWm(P.detail.key,x);else{x=P.keyIdentifier;var I="";x&&(x in J8G?I=J8G[x]:BgS.test(x)?(x=parseInt(x.replace("U+","0x"),16),I=String.fromCharCode(x).toLowerCase()):I=x.toLowerCase());(x=I)||(x=P.keyCode,I="",Number(x)&&(x>=65&&x<=90?I=String.fromCharCode(32+x):x>=112&&x<=123?I="f"+(x-112+1):x>=48&&x<=57?I=String(x-48):x>=96&&x<=105?I=String(x-96):I=n5G[x]),x=I);x=x||""}return x===W.key&&(!W.hasModifiers||
!!P.shiftKey===!!W.shiftKey&&!!P.ctrlKey===!!W.ctrlKey&&!!P.altKey===!!W.altKey&&!!P.metaKey===!!W.metaKey)};
KSA=function(W){return W.length===1?{combo:W,key:W,event:"keydown"}:W.split("+").reduce(function(P,x){var I=x.split(":");x=I[0];I=I[1];x in y8U?(P[y8U[x]]=!0,P.hasModifiers=!0):(P.key=x,P.event=I||"keydown");return P},{combo:W.split(":").shift()})};
ZWR=function(W){return W.trim().split(" ").map(function(P){return KSA(P)})};
o5U=function(W,P){if(W&&W.fn){var x=W.fn;W.fn=function(){try{x.apply(this,arguments)}catch(I){if(I instanceof nf)console.warn("Argument '"+I.arg+"'"+(P?" for method '"+P+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw I;}}}return W};
S1x=function(){var W=_.tH.apply(0,arguments);return W.length===0?function(P){return P}:W.length===1?W[0]:W.reduce(function(P,x){return function(){return P(x.apply(null,_.ju(_.tH.apply(0,arguments))))}})};
u0m=function(){var W=_.tH.apply(0,arguments);return function(P){return function(x,I){x=P(x,I);var O=function(){throw Error("Ae");},B={getState:x.getState,
dispatch:function(Y){return O.apply(null,[Y].concat(_.ju(_.tH.apply(1,arguments))))}};
I=W.map(function(Y){return Y(B)});
O=S1x.apply(null,_.ju(I))(x.dispatch);return Object.assign({},x,{dispatch:O})}}};
v57=function(W){Object.keys(W).forEach(function(P){var x=W[P];if(typeof x(void 0,{type:dYx})==="undefined")throw Error("Be`"+P);if(typeof x(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+sdm()})==="undefined")throw Error("Ce`"+P+"`"+dYx);})};
Ya=function(W){for(var P=Object.keys(W),x={},I=0;I<P.length;I++){var O=P[I];typeof W[O]==="function"&&(x[O]=W[O])}var B=Object.keys(x);try{v57(x)}catch(K){var Y=K}return function(K,Z){K=K===void 0?{}:K;if(Y)throw Y;for(var d=!1,v={},m=0;m<B.length;m++){var t=B[m],C=K[t],z=(0,x[t])(C,Z);if(typeof z==="undefined")throw K=Z&&Z.type,Error("De`"+(K?'"'+String(K)+'"':"(unknown type)")+"`"+t);v[t]=z;d=d||z!==C}return(d=d||B.length!==Object.keys(K).length)?v:K}};
mYU=function(W,P,x){function I(){if(v)throw Error("Ee");return K}
function O(C){if(typeof C!=="function")throw Error("Fe`"+typeof C);if(v)throw Error("Ge");var z=!0;d===Z&&(d=Z.slice());d.push(C);return function(){if(z){if(v)throw Error("He");z=!1;d===Z&&(d=Z.slice());var D=d.indexOf(C);d.splice(D,1);Z=null}}}
function B(C){if(typeof C!=="object"||C===null)var z=!1;else{for(z=C;Object.getPrototypeOf(z)!==null;)z=Object.getPrototypeOf(z);z=Object.getPrototypeOf(C)===z}if(!z)throw Error("Ie`"+typeof C);if(typeof C.type==="undefined")throw Error("Je");if(v)throw Error("Ke");try{v=!0,K=Y(K,C)}finally{v=!1}z=Z=d;for(var D=0;D<z.length;D++)(0,z[D])();return C}
if(typeof P==="function"&&typeof x==="function"||typeof x==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof P==="function"&&typeof x==="undefined"&&(x=P,P=void 0);if(typeof x!=="undefined"){if(typeof x!=="function")throw Error("Me`"+typeof x);return x(mYU)(W,P)}if(typeof W!=="function")throw Error("Ne`"+typeof W);var Y=W,K=P,Z=[],d=Z,v=!1;B({type:dYx});var m={},t=(m.dispatch=B,m.subscribe=O,m.getState=I,m.replaceReducer=function(C){if(typeof C!=="function")throw Error("Oe`"+
typeof C);Y=C;B({type:VeU});return t},m[ted]=function(){var C={};
return C.subscribe=function(z){function D(){z.next&&z.next(I())}
if(typeof z!=="object"||z===null)throw new TypeError("Pe`"+typeof z);D();return{unsubscribe:O(D)}},C[ted]=function(){return this},C},m);
return t};
pIW=function(W){function P(){O&&(O=!1,W());B&&I()}
function x(){requestAnimationFrame(P)}
function I(){var K=Date.now();if(O){if(K-Y<2)return;B=!0}else O=!0,B=!1,setTimeout(x,20);Y=K}
var O=!1,B=!1,Y=0;return I};
yS=function(W){return typeof W==="number"?W:parseFloat(W)||0};
jdC=function(W){return _.tH.apply(1,arguments).reduce(function(P,x){return P+yS(W["border-"+x+"-width"])},0)};
_.G=function(W,P){P=E0(GI(P));W.innerHTML=P};
A88=function(W){var P=QdR;P||(P=C9C(),P=QdR=_.jU.transpose(P));P=P[W];return typeof P==="string"?P:_.Kf(W)};
zwx=function(W){W=String(W).toLowerCase();var P=C9C()[W];return typeof P==="string"?P:_.Zt(W)};
GeW=function(W){W=W.toLowerCase();W=C9C()[W];return typeof W==="string"?W:null};
C9C=function(){if(!E58){for(var W=Object.assign({},g5t),P=_.n(DYS),x=P.next();!x.done;x=P.next())x=x.value,W[x.toLowerCase()]=x;E58=W}return E58};
wIA=function(W,P){var x=window.customElements;return x&&x.get(W)||Me8[W]===!0?2:P.name==="HTMLUnknownElement"?1:P.name==="HTMLElement"&&$YG.test(W)?3:0};
ewm=function(W,P){switch(P){case "innerHTML":return hwU(W)===1?2:null;case "textContent":return W=hwU(W),W===1||W===6?1:null;default:var x,I;return(I=(x=HWm[W.localName])==null?void 0:x[P])!=null?I:null}};
hwU=function(W){var P=W.localName,x=wIA(P,W.constructor);switch(x){case 0:case 1:return c8R(P,W);case 3:case 2:return 1;default:_.n2(x,"got an unknown element classification")}};
c8R=function(W,P){var x=Object.hasOwnProperty.call(a2W,W)?a2W[W]:null;return x!==null?x:Object.hasOwnProperty.call(bWd,W)&&P instanceof SVGElement?bWd[W]:null};
keC=function(W,P){return P};
XId=function(W){return(W=W.split(UYt,2))?{url:W[0],metadata:W[1]}:null};
NgU=function(W){var P=String(W.url).replace(f2G,encodeURIComponent);if(W=W.metadata){f2G.lastIndex=0;if(f2G.test(W))return null;P+=" "+W}return P};
iWR=function(W){function P(d){var v=d.localName;if(!d.getAttribute("is")&&wIA(v,d.constructor)===2){var m;return(m=Z)!=null?m:Z=document.createElement("polyresinuncustomized")}(d=K[v])||(d=K[v]=document.createElement(v));return d}
var x=W.reportHandler||void 0,I=W.safeTypesBridge||l2G,O=/^$/;if(W=W.allowedIdentifierPrefixes){W=_.n(W);for(var B=W.next();!B.done;B=W.next())O=new RegExp(O.source+"|^"+_.Tgm(B.value))}x&&x(!1,"initResin",null);var Y=r8m(O,I,x),K={},Z=null;return function(d,v,m){var t=d.nodeType;if(t!==Node.ELEMENT_NODE){if(t===Node.TEXT_NODE){v=d.parentElement;m=!v;if(v&&v.nodeType===Node.ELEMENT_NODE){t=v.localName;var C=wIA(t,v.constructor);switch(C){case 0:case 1:v=c8R(t,v);m=v===1||v===6;break;case 3:case 2:m=
!0;break;default:_.n2(C,"got an unknown element classification")}}if(m)return function(a){return""+I(a,"STRING",a)}}return function(a){if(!a&&a!==document.all)return a;
x&&x(!0,"Failed to sanitize "+(d.parentElement&&d.parentElement.nodeName)+" #text node to value "+a,d.parentElement);return oi}}var z=d.localName;
t=P(d);var D=null;switch(m){case "attribute":if(zwx(v)in t)break;return function(a){return a};
case "property":if(v in t){D=ewm(t,v);break}if((C=GeW(v))&&C in t)break;return function(a){return a};
default:_.n2(m,"got an unknown resin type, expected either 'property' or 'attribute'")}var w=m==="attribute"?v.toLowerCase():A88(v);D||(D=vNm(z,w,function(a){var k=d.getAttribute(a);return!k||/[\[\{]/.test(a)?null:k}));
return function(a){var k=Sn,T=null;if(!a&&a!==document.all)return a;if(D!=null){var N=Y[D],Io=N.safeType;T=N.safeReplacement;Io&&(k=I(a,Io,Sn));k===Sn&&(N.filterString?(k=String(I(a,"STRING",a)),k=N.filterString(z,w,k)):N.filterRaw&&(k=N.filterRaw(z,w,a,d)),k===T&&(k=Sn))}k===Sn&&(k=T||oi,x&&x(!0,"Failed to sanitize attribute of <"+z+">: <"+z+" "+w+'="'+a+'">',d));return k}}};
r8m=function(W,P,x){return[,{filterRaw:function(I,O,B){return B},
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:Rw7,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Rw7,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:oi,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:FSW,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(I,O,B){B=
String(B).toLowerCase();return tVx(I,O,B)?B:oi},
safeReplacement:oi,safeType:void 0},,{filterRaw:void 0,filterString:function(I,O,B){return W.test(B)?B:oi},
safeReplacement:oi,safeType:"CONSTANT"},{filterRaw:function(I,O,B,Y){if(typeof B==="string")var K=(K=B.match(q18))?K.map(XId).filter(Boolean):[];else if(Array.isArray(B))K=B;else return Rw7;var Z=K;K=[];var d=[],v={};if(Array.isArray(Z))for(var m=0,t=Z.length;m<t;++m){var C=Z[m],z=C&&C.url;if(z){var D=P(z,"URL",v);if(D){var w=D!==v;(w?K:d).push({url:w?D:z,metadata:C.metadata})}}}else d.push(Z);Z=d.length?JSON.stringify(d):null;d=Sn;if(K.length){if(!Array.isArray(K))throw Error();d=K.map(NgU).filter(Boolean).join(" , ")||
Sn}Z&&x&&x(!0,"Failed to sanitize attribute value of <"+I+">: <"+I+" "+O+'="'+B+'">: '+Z,Y);return d===Sn?Rw7:d},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
LSA=function(W){var P=iWR(W);return function(x,I,O,B){return B||B===document.all?P(x,I,O)(B):B}};
dU=function(W,P){function x(){function O(K,Z,d){for(Z=Reflect.getMetadata("parameters",K)||[];Z.length<=d;)Z.push(null);Z[d]=Z[d]||[];Z[d].push(Y);Reflect.defineMetadata(Z,K);return K}
var B=_.tH.apply(0,arguments);if(this instanceof x)return I.apply(this,B),this;var Y=new (Function.prototype.bind.apply(x,[null].concat(_.ju(B))));O.annotation=Y;return O}
var I=WeA(P);x.prototype.toString=function(){return"@"+W};
return x.annotationCls=x};
WeA=function(W){return function(){var P=_.tH.apply(0,arguments),x=this;W.forEach(function(I,O){O=P[O];if(Array.isArray(I))x[I[0]]=O&&O!==void 0?O:I[1];else for(var B in I)x[B]=O&&O[B]!==void 0?O[B]:I[B]})}};
PY8=function(W){return W!==void 0&&W!==null};
s_=function(W){if(typeof W==="string")return W;if(W===void 0||W===null)return""+W;if(W.overriddenName)return W.overriddenName;if(W.name)return W.name;W=W.toString();var P=W.indexOf("\n");return P===-1?W:W.substring(0,P)};
xQU=function(W){W.__forward_ref__=xQU;W.toString=function(){return s_(this())};
return W};
vV=function(W){return typeof W==="function"&&W.hasOwnProperty("__forward_ref__")&&W.__forward_ref__===xQU?W():W};
I9W=function(W){return W?W.map(function(P){return new (Function.prototype.bind.apply(P.type.annotationCls,[null].concat(_.ju(P.args?P.args:[]))))}):[]};
OdA=function(W){for(var P=[],x=0;x<W.length;++x){if(P.indexOf(W[x])>-1){P.push(W[x]);break}P.push(W[x])}return P};
J6S=function(W){return W.length>1?" ("+OdA(W.slice().reverse()).map(function(P){return s_(P.token)}).join(" -> ")+")":""};
n_G=function(W,P,x,I){if(I){var O=Error("We``"+(I instanceof Error?I.message:I));O.ngOriginalError=I}else O=Error();O.addKey=BNR;O.keys=[P];O.injectors=[W];O.constructResolvingMessage=x;O.message=O.constructResolvingMessage();O.ngOriginalError=I;return O};
BNR=function(W,P){this.injectors.push(W);this.keys.push(P);this.message=this.constructResolvingMessage()};
YF8=function(W,P){return n_G(W,P,function(){return"No provider for "+s_(this.keys[0].token)+"!"+J6S(this.keys)})};
y6d=function(W,P){return n_G(W,P,function(){return"Cannot instantiate cyclic dependency!"+J6S(this.keys)})};
Keo=function(W,P,x){return n_G(W,x,function(){var I=s_(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+I+"!"+J6S(this.keys)+"."},P)};
ZdS=function(W,P){for(var x=[],I=0,O=P.length;I<O;I++){var B=P[I];B&&B.length!=0?x.push(B.map(s_).join(" ")):x.push("?")}return Error("$e`"+s_(W)+"`"+x.join(", ")+"`"+s_(W))};
mQR=function(W){var P=void 0,x=void 0;if(W&&W.useClass!==void 0){P=W.useClass;var I=vV(W.useClass);var O=o_t.factory(I);I=SFA(I)}else W&&W.useExisting!==void 0?(O=function(B){return B},I=[ufx(m1.get(vV(W.useExisting)))]):W&&W.useFactory!==void 0?(O=W.useFactory,I=dQd(W.useFactory,W.deps)):(x=W.useValue,O=function(){return W.useValue},I=s_W);
return new v_A(O,I,P,x)};
tAo=function(W){return new VAR(m1.get(vV(W.provide)),[mQR(W)],W.multi)};
j_8=function(W){W=px7(W,[]).map(tAo);for(var P=new Map,x=0;x<W.length;x++){var I=W[x],O=P.get(I.key.id);if(O){if(I.multiProvider!==O.multiProvider)throw Error("bf`"+O+"`"+I);if(I.multiProvider)for(var B=0;B<I.resolvedFactories.length;B++)O.resolvedFactories.push(I.resolvedFactories[B]);else P.set(I.key.id,I)}else O=void 0,I.multiProvider?O=new VAR(I.key,I.resolvedFactories.slice(),I.multiProvider):O=I,P.set(I.key.id,O)}return Array.from(P.values())};
px7=function(W,P){W.forEach(function(x){if(x instanceof Q_A)P.push({provide:x,useClass:x});else if(x&&typeof x=="object"&&x.provide!==void 0)P.push(x);else if(x instanceof Array)px7(x,P);else throw Error("Ze`"+x);});
return P};
dQd=function(W,P){if(P){var x=P.map(function(I){return[I]});
return P.map(function(I){return CYm(W,I,x)})}return SFA(W)};
SFA=function(W){var P=o_t.parameters(W);if(!P)return[];if(P.some(function(x){return x==null}))throw ZdS(W,P);
return P.map(function(x){return CYm(W,x,P)})};
CYm=function(W,P,x){var I=null,O=!1;if(!Array.isArray(P))return P instanceof A6G?zRW(P.token,O,null):zRW(P,O,null);for(var B=null,Y=0;Y<P.length;++Y){var K=P[Y];if(K instanceof Q_A)I=K;else if(K instanceof A6G)I=K.token;else if(K instanceof GTR)O=!0;else if(K instanceof E_8||K instanceof g_t)B=K}I=vV(I);if(I!=null)return zRW(I,O,B);throw ZdS(W,x);};
zRW=function(W,P,x){return new DQx(m1.get(vV(W)),P,x)};
MAx=function(W,P){for(var x=Array(W.providers.length),I=0;I<W.providers.length;++I){var O=I;if(I<0||I>=W.providers.length)throw Error("af`"+I);x[O]=P(W.providers[I])}return x};
$QC=function(W){return typeof W==="function"&&o_t.parameters(W).every(function(P){return!!P})};
HdC=function(W){var P=wxd;hRG.get(W)||hRG.set(W,new P);return hRG.get(W)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,P){var x,I;if(W.contains(P))return!0;W=_.VS(W).querySelectorAll("content,slot");for(x=0;x<W.length;++x){var O=_.VS(W[x]).getDistributedNodes();for(I=0;I<O.length;++I)if(O[I].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(O[I],P))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){W.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W)&&W.preventDefault();W.targetTouches&&(W=W.targetTouches[0],eRd=W.pageX,c6d=W.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 W=0,P=t1.length;W<P;W++)document.addEventListener(t1[W],_._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 W=0,P=t1.length;W<P;W++)document.removeEventListener(t1[W],_._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(W){var P=_.VS(W).rootTarget;W.type!=="touchmove"&&a9S!==P&&(a9S=P,bdG=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.VS(W).path));if(!bdG.length)return!0;if(W.type==="touchstart")return!1;W=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(bdG,W.deltaX,W.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){for(var P=[],x=W.indexOf(kTR),I=0;I<=x;I++)if(W[I].nodeType===Node.ELEMENT_NODE){var O=W[I],B=O.style;B.overflow!=="scroll"&&B.overflow!=="auto"&&(B=window.getComputedStyle(O));B.overflow!=="scroll"&&B.overflow!=="auto"||P.push(O)}return P};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,P,x){if(P||x)for(var I=Math.abs(x)>=Math.abs(P),O=0;O<W.length;O++){var B=W[O];if(I?x<0?B.scrollTop>0:B.scrollTop<B.scrollHeight-B.clientHeight:P<0?B.scrollLeft>0:B.scrollLeft<B.scrollWidth-B.clientWidth)return B}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){var P={deltaX:W.deltaX,deltaY:W.deltaY};"deltaX"in W||("wheelDeltaX"in W&&"wheelDeltaY"in W?(P.deltaX=-W.wheelDeltaX,P.deltaY=-W.wheelDeltaY):"wheelDelta"in W?(P.deltaX=0,P.deltaY=-W.wheelDelta):"axis"in W?(P.deltaX=W.axis===1?W.detail:0,P.deltaY=W.axis===2?W.detail:0):W.targetTouches&&(W=W.targetTouches[0],P.deltaX=eRd-W.pageX,P.deltaY=c6d-W.pageY));return P};
UQ7=function(W){this.element=W;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
f9m=function(W){this.element=W;this.color=window.getComputedStyle(W).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");_.VS(this.waveContainer).appendChild(this.wave);Xxm(this)};
pf=function(W,P){for(var x in W)if(x.toLowerCase()===P.toLowerCase())return W[x]};
NNU=function(W,P){for(var x in W)if(x.toLowerCase()===P.toLowerCase()){delete W[x];break}};
TNo=function(W){W=_.jU.clone(W);for(var P=0;P<l97.length;++P){var x=l97[P],I=pf(W,x);I&&(W["X-Goog-Upload-Header-"+x]=I,NNU(W,x))}return W};
r6U=function(W){W=_.jU.clone(W);NNU(W,"X-Goog-Upload-Status")};
RRS=function(W){return idm.some(function(P){return P.test(W)})};
WzR=function(W,P){var x;var I=(x=W.formContent)==null?void 0:x.locale;x=I==null?void 0:I.split("-")[0];I=I&&FeC.includes(I)?I:x&&FeC.includes(x)?x:void 0;I=(I!=null?I:"en").replaceAll("-","_").toLowerCase();var O;W=((O=W.initializationData)==null?0:O.useNightlyRelease)?"nightly":"live";var B;return(P==null?0:(B=P.getEnableAlohaBinarySplit)==null?0:B.call(P))?_.W9(qF7,W):_.W9(Le8,W,I)};
xmW=function(W,P,x,I){if(Pko)return Pko;var O=WzR(W,I);return Pko=P.feedbackV2GlobalObject?Promise.resolve(P.feedbackV2GlobalObject):new Promise(function(B,Y){var K=_.ZV("SCRIPT");_.c6(K,O);K.onload=function(){P.feedbackV2GlobalObject?B(P.feedbackV2GlobalObject):Y(Error("ef"))};
K.onerror=function(){Y(Error("ff`"+O.toString()))};
x.body.appendChild(K)})};
OAG=function(W,P,x,I){if(IGU)return IGU;var O=WzR(W,I);return IGU=P.feedbackV2GlobalObject?Promise.resolve(P.feedbackV2GlobalObject):new Promise(function(B,Y){var K=_.ZV("SCRIPT");_.c6(K,O);K.onload=function(){P.feedbackV2GlobalObject?B(P.feedbackV2GlobalObject):Y(Error("ef"))};
K.onerror=function(){Y(Error("ff`"+O.toString()))};
x.body.appendChild(K)})};
JW7=function(W,P,x,I,O){O=O===void 0?!0:O;var B,Y,K,Z,d;return _.y(function(v){switch(v.nextAddress){case 1:return B=Date.now(),_.S(v,xmW(W,x,I,P),2);case 2:Y=v.yieldResult;if(!(O||((Z=W.initializationData)==null?0:Z.useNightlyRelease)||((d=W.initializationData)==null?0:d.isLocalServer))){K=Y.initializeFeedbackClient(W,B,P);v.jumpTo(3);break}return _.S(v,Y.initializeFeedbackClientAsync(W,B,P),4);case 4:K=v.yieldResult;case 3:return K.initiateAloha(),v.return(K)}})};
B0G=function(W,P,x,I){var O,B,Y;return _.y(function(K){if(K.nextAddress==1)return O=Date.now(),_.S(K,OAG(W,x,I.document,P),2);if(K.nextAddress!=3)return B=K.yieldResult,_.S(K,B.initializeFeedbackClientAsync(W,O,P,I),3);Y=K.yieldResult;Y.initiateAloha();return K.return(Y)})};
nfC=function(W,P,x){var I=!0;I=I===void 0?!0:I;var O,B,Y,K,Z,d,v,m,t,C;return _.y(function(z){O=x||_.xW;if((B=P)==null?0:(K=(Y=B).getEnableAlohaBinarySplit)==null?0:K.call(Y)){Z=O;if(Z.isFormOpened)throw d=Error("gf"),d.name="DuplicateFormError",d;Z.isFormOpened=!0;W.callbacks=W.callbacks||{};v=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(D){Z.isFormOpened=!1;v(D)};
try{return z.return(B0G(W,P,Z,O))}catch(D){throw Z.isFormOpened=!1,D;}}else{m=O;if(m.isFormOpened)throw t=Error("gf"),t.name="DuplicateFormError",t;m.isFormOpened=!0;W.callbacks=W.callbacks||{};C=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(D){m.isFormOpened=!1;C(D)};
try{return z.return(JW7(W,P,m,O.document,I))}catch(D){throw m.isFormOpened=!1,D;}}_.Kl(z)})};
ofR=function(W,P){return _.y(function(x){return x.return(new Promise(function(I){var O=Y77(P!=null?P:"")+"/aloha_form_properties?productId="+W;yWx(O,function(B){B=B.target;var Y=null;try{var K=JSON,Z=K.stringify;if(B.JSC$7701_xhr_){var d=B.JSC$7701_xhr_.responseText;d.indexOf(")]}'\n")==0&&(d=d.substring(5));var v=(0,_.jn)(d)}else v=void 0;Y=ISW(Kzo,Z.call(K,v))}catch(m){Z=new Kzo,v=ZAt(),v=_.Cf(v,13,!1),v=_.Cf(v,14,!0),v=_.Cf(v,15,!0),v=_.Cf(v,20,!1),Y=_.I$(Z,1,v)}I(Y)},"GET","",{},2E3,!0)}))})};
Y77=function(W){return RRS(W)?W:"https://www.google.com/tools/feedback"};
s1S=function(W){W=W.match(new RegExp(S7G,"gi"))||[];W=_.n(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;a:{var x=_.n(uMd);for(var I=x.next();!I.done;I=x.next())if(I.value.test(P)){x=!1;break a}x=!0}if(!x)a:{x=_.n(dmt);for(I=x.next();!I.done;I=x.next())if(I.value.test(P)){x=!0;break a}x=!1}if(x)return!0}return!1};
vfm=function(W){switch(W){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"}};
V3G=function(W){if(window.crypto&&window.crypto.getRandomValues)try{var P=Array(W),x=new Uint8Array(W);window.crypto.getRandomValues(x);for(var I=0;I<P.length;I++)P[I]=x[I];return P}catch(B){}P=Array(W);for(x=0;x<W;x++){I=Date.now();for(var O=0;O<I%23;O++)P[x]=Math.random();P[x]=Math.floor(Math.random()*256)}if(mm8)for(x=1,I=0;I<mm8.length;I++)P[x%W]^=P[(x-1)%W]/4^mm8.charCodeAt(I),x++;return P};
A1=function(W){W=V3G(W);for(var P=[],x=0;x<W.length;x++)P.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[x]&63));return P.join("")};
p17=function(W){W&&_.Ay("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:t3o,clientScreenNonce:W})};
j1m=function(W){return _.$$("client-screen-nonce-store",{})[W===void 0?0:W]};
Q1U=function(W,P){P=P===void 0?0:P;var x=_.$$("client-screen-nonce-store");x||(x={},_.MR("client-screen-nonce-store",x));x[P]=W};
CkC=function(W){W=W===void 0?0:W;return W===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+W};
AWt=function(W){return _.$$(CkC(W===void 0?0:W))};
_.G7=function(W){return(W=AWt(W===void 0?0:W))?new _.z7({veType:W,youtubeData:void 0,jspbYoutubeData:void 0}):null};
z$R=function(){var W=_.$$("csn-to-ctt-auth-info");W||(W={},_.MR("csn-to-ctt-auth-info",W));return W};
GQR=function(){return Object.values(_.$$("client-screen-nonce-store",{})).filter(function(W){return W!==void 0})};
_.E_=function(W){W=j1m(W===void 0?0:W);if(!W&&!_.wo("USE_CSN_FALLBACK",!0))return null;W||(W="UNDEFINED_CSN");return W?W:null};
gfd=function(W){for(var P=_.n(Object.values(EfU)),x=P.next();!x.done;x=P.next())if(_.E_(x.value)===W)return!0;return!1};
Dmo=function(W,P,x){var I=z$R();(x=_.E_(x))&&delete I[x];P&&(I[W]=P)};
gU=function(W){return z$R()[W]};
_.Dt=function(W,P,x,I){x=x===void 0?0:x;if(W!==j1m(x)||P!==_.$$(CkC(x)))if(Dmo(W,I,x),Q1U(W,x),_.MR(CkC(x),P),P=function(){setTimeout(function(){p17(W)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(P)}catch(O){P()}else P()};
M3C=function(W,P){P=P===void 0?"":P;var x=[],I;for(I in W)if(W.hasOwnProperty(I)){var O=P!==""?P+"."+I:I;typeof W[I]==="object"?x.push.apply(x,_.ju(M3C(W[I],O))):x.push([O,W[I]])}x.sort();return x};
_.w1R=function(W){var P=_.tH.apply(1,arguments);if(!MV(W)||P.some(function(I){return!MV(I)}))throw Error("hf");
P=_.n(P);for(var x=P.next();!x.done;x=P.next())$mA(W,x.value)};
$mA=function(W,P){for(var x in P)if(MV(P[x])){if(x in W&&!MV(W[x]))throw Error("jf");x in W||(W[x]={});$mA(W[x],P[x])}else if(h$R(P[x])){if(x in W&&!h$R(W[x]))throw Error("kf");x in W||(W[x]=[]);HAm(W[x],P[x])}else W[x]=P[x];return W};
HAm=function(W,P){P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=x.value,MV(x)?W.push($mA({},x)):h$R(x)?W.push(HAm([],x)):W.push(x);return W};
MV=function(W){return typeof W==="object"&&!Array.isArray(W)};
h$R=function(W){return typeof W==="object"&&Array.isArray(W)};
cWG=function(W){for(var P=_.n(Object.entries(e$C)),x=P.next();!x.done;x=P.next())if(x=_.n(x.value),x.next(),x=x.next().value,x==="SLI_STATUS_"+W)return x;return"SLI_STATUS_UNKNOWN"};
_.$a=function(W,P,x,I){return aGA(W,P,function(){return new _.bAo(W,P,x,I)})};
_.kQU=function(){return _.$a("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
UmC=function(){return _.$a("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
wU=function(){return _.$a("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
X17=function(){return _.$a("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
fGR=function(){return _.$a("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
N0R=function(){return _.$a("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
rWR=function(W){W&&(W.dataset?W.dataset[lGU()]="true":_.b5([_.qi(T08)],W,"data-loaded","true".toString()))};
iAU=function(W){return W?W.dataset?W.dataset[lGU()]:W.getAttribute("data-loaded"):null};
lGU=function(){return R$o.loaded||(R$o.loaded="loaded".replace(/\-([a-z])/g,function(W,P){return P.toUpperCase()}))};
_.h1=function(W,P,x){FzS(W,P,x===void 0?null:x)};
_.Lz7=function(W,P){W&&P&&(W=""+_.nM(P),(W=q7R[W])&&_.Wrt(W))};
FzS=function(W,P,x){x=x===void 0?null:x;var I=_.WmR(W),O=document.getElementById(I),B=O&&iAU(O),Y=O&&!B;B?P&&P():(P&&(B=_.IR(I,P),P=""+_.nM(P),q7R[P]=B),Y||(O=Pm8(W,I,function(){iAU(O)||(rWR(O),_.PwC(I),_.Oy(function(){_.IeU(I)},0))},x)))};
Pm8=function(W,P,x,I){I=I===void 0?null:I;var O=_.ZV("SCRIPT");O.id=P;O.onload=function(){x&&setTimeout(x,0)};
O.onreadystatechange=function(){switch(O.readyState){case "loaded":case "complete":O.onload()}};
I&&O.setAttribute("nonce",I);_.c6(O,_.tz(W));W=document.getElementsByTagName("head")[0]||document.body;W.insertBefore(O,W.firstChild);return O};
_.WmR=function(W){var P=document.createElement("a");AH(P,W);return"js-"+HV(P.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
xCC=function(W){var P=_.$$("INNERTUBE_HOST_OVERRIDE");P&&(W=String(P)+String(_.en(W)));return W};
Ino=function(W){var P={};_.p("json_condensed_response")&&(P.prettyPrint="false");return W=CVd(W,P)};
_.cV=function(W){return ro(W)?"same-origin":"include"};
_.ai=function(W){return ro(W)?"same-origin":"cors"};
bO=function(W,P,x){x=x===void 0?{}:x;W={method:P===void 0?"POST":P,mode:_.ai(W),credentials:_.cV(W)};P={};for(var I=_.n(Object.keys(x)),O=I.next();!O.done;O=I.next())O=O.value,x[O]&&(P[O]=x[O]);Object.keys(P).length>0&&(W.headers=P);return W};
_.ka=function(W,P){P=P===void 0?{}:P;return"service:"+W+"/"+Object.keys(P).sort().map(function(x){return x+":"+P[x]}).join("/")};
ObA=function(W){var P,x,I,O;W=(P=_.Q(W,_.U_))==null?void 0:(x=P.watchEndpointSupportedOnesieConfig)==null?void 0:(I=x.html5PlaybackOnesieConfig)==null?void 0:(O=I.commonConfig)==null?void 0:O.url;if(!W)return[];P=new _.Xu(W);return P.JSC$7933_domain_?["https://"+P.JSC$7933_domain_+"/generate_204"]:[]};
_.n1d=function(){return JVU()||Eam()||BiS&&gO("version/")?!0:_.$$("EOM_VISITOR_DATA")?!1:!0};
YPx=function(W){var P=W.docid||W.video_id||W.videoId||W.id;if(P)return P;P=W.raw_player_response;P||(W=W.player_response)&&(P=JSON.parse(W));return P&&P.videoDetails&&P.videoDetails.videoId||null};
yVm=function(W){return W.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
ff=function(W){return!isNaN(Number(W))&&!_.Km(W)};
_.lO=function(W,P,x,I){I=I===void 0?!0:I;var O=_.$$("VALID_SESSION_TEMPDATA_DOMAINS",[]),B=_.lP(window.location.href);B&&O.push(B);B=_.lP(W);if(_.N7(O,B)||!B&&_.Bd(W,"/"))if(O=document.createElement("a"),AH(O,W),W=O.href)if(W=_.en(W),W=_.NV(W))I&&!P.csn&&(P.itct||P.ved)&&(P=Object.assign({csn:_.E_()},P)),x?(x=parseInt(x,10),isFinite(x)&&x>0&&KmA(W,P,x)):KmA(W,P)};
o1G=function(W){var P=_.$$("VALID_SESSION_TEMPDATA_DOMAINS",[]),x=_.lP(window.location.href);x&&P.push(x);x=_.lP(W);if(!(_.N7(P,x)||!x&&_.Bd(W,"/")))return null;W=_.en(W);(W=_.NV(W))?(W=Zbt(W),W=(W=_.SB.get(W,void 0)||null)?_.k$(W):{}):W=null;return W};
KmA=function(W,P,x){W=Zbt(W);P=P?_.Kj(P):"";x=x||5;_.n1d()&&_.uA(W,P,x)};
Zbt=function(W){for(var P=_.n(SPx),x=P.next();!x.done;x=P.next())W=_.T7(W,x.value);return"ST-"+HV(W).toString(36)};
uqm=function(W,P){W.commandMetadata&&_.Q(W.commandMetadata,_.rU)&&_.Q(W.commandMetadata,_.rU).url&&(W=_.UV(_.Q(W.commandMetadata,_.rU).url).adurl)&&_.zyA(W)&&_.lO(_.en(W),{encoded_ad_playback_context:P})};
_.dCo=function(W){if(W.requestFullscreen)W=W.requestFullscreen(void 0);else if(W.webkitRequestFullscreen)W=W.webkitRequestFullscreen();else if(W.mozRequestFullScreen)W=W.mozRequestFullScreen();else if(W.msRequestFullscreen)W=W.msRequestFullscreen();else if(W.webkitEnterFullscreen)W=W.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return W instanceof Promise?W:Promise.resolve()};
_.Ri=function(W){var P;_.Uat(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.iO()==W&&(P=document):P=W;if(P&&(W=_.Uat(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],P))){W.call(P)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.iO=function(){var W=W===void 0?!1:W;var P=_.Uat(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(W)for(;P&&P.shadowRoot;)P=P.shadowRoot.fullscreenElement;return P?P:null};
_.Fu=function(W,P){P=P===void 0?!0:P;W.addEventListener("wheel",sp8);W.overscrollConfig={cooldown:P}};
_.qV=function(W){W.overscrollConfig=void 0;W.removeEventListener("wheel",sp8)};
sp8=function(W){var P=W.deltaY,x=W.target,I=null;if(window.Polymer&&window.Polymer.Element){if(x=W.path||W.composedPath&&W.composedPath()){x=_.n(x);for(var O=x.next();!O.done&&(O=O.value,!v1R(O,P));O=x.next())if(O.overscrollConfig){I=O;break}}}else for(;x&&!v1R(x,P);){if(x.overscrollConfig){I=x;break}x=x.parentElement}I&&(P=I.overscrollConfig,P.cooldown?(I=W.deltaY,x=P.lastDeltaY||0,P.lastDeltaY=I,O=P.lastStopped||0,x&&O&&x>0==I>0?Math.abs(x)>=Math.abs(I)?(I=O+1200,x=!1):(I=O+600,x=!0):(I=Date.now()+
600,x=!0),I>Date.now()&&(W.preventDefault(),x&&(P.lastStopped=Date.now()))):W.preventDefault())};
v1R=function(W,P){return P<0&&W.scrollTop>0||P>0&&W.scrollTop<W.scrollHeight-W.clientHeight-1?(W=getComputedStyle(W).overflowY,W=="auto"||W=="scroll"):!1};
_.Lf=function(W,P,x,I){I||(I={bubbles:!0,cancelable:!1,composed:!0});x!==null&&x!==void 0&&(I.detail=x);var O=new CustomEvent(P,I);_.p("untrack_fire_custom_event_killswitch")?W.dispatchEvent(O):n4(function(){return void W.dispatchEvent(O)});
return O};
_.W7=function(W,P,x,I){P=new mC7(P,!(I===void 0||!I),x);_.Lf(W,"yt-action",P);return P.returnValue};
_.P7=function(W,P,x){return _.W7(W,P,x,!0)};
_.x6=function(W,P,x){return _.W7(W,P,x)[0]};
_.OL=function(W,P,x,I){P&&P.length&&P.forEach(function(O){var B=btR(O);B&&(_.p("handle_service_request_actions")&&O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.sendPost?_.Iu(x?x:W,[O]):_.P7(W,B,[O,x,I]))})};
_.Iu=function(W,P){var x=[W];P&&x.push.apply(x,P);P=_.W7(W,"yt-service-request",x);return P.length>0&&(P=P[0],_.Lf(W,"yt-service-request-sent",P),P&&P.ajaxPromise)?(P.ajaxPromise.then(function(I){_.Lf(W,"yt-service-request-completed",I)},function(I){_.Lf(W,"yt-service-request-error",{error:I,
params:x})},W),P.ajaxPromise):_.Jn()};
_.nK=function(W,P){if(_.p("handle_service_request_actions"))_.OL(P,W,P);else{W=_.n(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;var I=void 0;((I=_.Q(x,_.B7))==null?0:I.commands)?_.nK(_.Q(x,_.B7).commands,P):(I=void 0,((I=_.Q(x,_.Y6))==null?0:I.actions)?_.nK(_.Q(x,_.Y6).actions,P):(I=void 0,((I=_.Q(x.commandMetadata,_.rU))==null?0:I.sendPost)?_.Iu(P,[x]):_.OL(P,[x],P)))}}};
_.ttU=function(W,P,x){P=P===void 0?{}:P;typeof P==="function"&&(P={callback:P});x||P._c&&P._c.jsl&&P._c.jsl.h||_.jU.extend(P,{_c:{jsl:{h:_.$$("GAPI_HINT_PARAMS")}}});(P.gapiHintOverride||_.$$("GAPI_HINT_OVERRIDE"))&&(x=_.UV(document.location.href).gapi_jsh)&&_.jU.extend(P,{_c:{jsl:{h:x}}});Vt7(W,P)};
_.KK=function(W,P,x){P=P===void 0?{}:P;W=(W=W in yY?yY[W]:x)||"";x={};for(var I in P){x={key$jscomp$788:x.key$jscomp$788};x.key$jscomp$788=I;var O=function(B){return function(){return String(P[B.key$jscomp$788])}}(x);
W=W.replace(new RegExp("\\$\\{"+x.key$jscomp$788+"\\}","gi"),O);W=W.replace(new RegExp("\\$"+x.key$jscomp$788,"gi"),O)}return W};
_.ZE=function(W,P){return pLG(W in yY?yY[W]:{},P)};
pLG=function(W,P){var x=_.$$("I18N_PLURAL_RULES");x||(x=function(I){return I==1?"one":"other"});
return(W=W["case"+P]||W[x(P)])?W.replace("#",P.toString()):P+""};
Cm7=function(W){var P=jpm(W),x=document.getElementById(P),I=x&&iAU(x);I||x&&!I||(x=Qp8(W,P,function(){if(!iAU(x)){rWR(x);_.PwC(P);var O=_.ou(_.IeU,P);_.Oy(O,0)}}))};
Qp8=function(W,P,x){var I=document.createElement("link");I.id=P;I.onload=function(){x&&setTimeout(x,0)};
W=_.tz(W);_.kH(I,W,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(I);return I};
jpm=function(W){var P=_.ZV("A");AH(P,o$(W));return"css-"+HV(P.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.zsA=function(W){var P=AVR();W!==P&&(P=_.SI(),!_.p("web_autonav_allow_off_by_default")&&W||_.uB(0,141,!0),_.uB(0,140,!W),P.save())};
AVR=function(){var W=_.SI();return _.p("web_autonav_allow_off_by_default")&&!W.getFlag(141)&&_.$$("AUTONAV_OFF_BY_DEFAULT")?!1:!W.getFlag(140)};
Gud=function(W,P){var x,I;W=((x=W.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(I=x.videoAuthorizationToken)==null?void 0:I.credentialTransferTokens)||[];for(x=0;x<W.length;++x)if(W[x].scope===P)return W[x].token||void 0};
E1G=function(W){for(var P=0,x=0;x<W.length;x++)P=P*31+W.charCodeAt(x),x<W.length-1&&(P%=0x800000000000);return P%1E5};
_.dw=function(W){return _.eL("ytcsi."+(W||"")+"data_")||g1A(W)};
_.DCt=function(W){W=_.dw(W);W.metadata||(W.metadata={});return W.metadata};
_.MtA=function(W){W=_.dw(W);W.tick||(W.tick={});return W.tick};
_.$Cm=function(W){W=_.dw(W);if(W.gel){var P=W.gel;P.gelInfos||(P.gelInfos={});P.gelTicks||(P.gelTicks={})}else W.gel={gelTicks:{},gelInfos:{}};return W.gel};
_.wL8=function(W){W=_.$Cm(W);W.gelInfos||(W.gelInfos={});return W.gelInfos};
hsU=function(W){var P=_.dw(W).nonce;P||(P=A1(16),_.dw(W).nonce=P);return P};
g1A=function(W){var P={tick:{},info:{}};_.lA("ytcsi."+(W||"")+"data_",P);return P};
HbR=function(){var W=_.eL("ytcsi.debug");W||(W=[],_.lA("ytcsi.debug",W),_.lA("ytcsi.reference",{}));return W};
_.cVS=function(W){W=W||"";var P=esG();if(P[W])return P[W];var x=HbR(),I={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};x.push(I);return P[W]=I};
an7=function(W){W=W||"";var P=esG();P[W]&&delete P[W];var x=HbR(),I={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};x.push(I);P[W]=I};
esG=function(){var W=_.eL("ytcsi.reference");if(W)return W;HbR();return _.eL("ytcsi.reference")};
_.kuC=function(W){return bbd[W]||"LATENCY_ACTION_UNKNOWN"};
NiR=function(W,P,x){x=x===void 0?{}:x;var I=!1;_.wo("ytLoggingEventsDefaultDisabled",!1)&&(I=!0);I=I?null:Ca;x=x===void 0?{}:x;var O=Math.round(x.timestamp||(0,_.iA)());_.vB(P,1,O<Number.MAX_SAFE_INTEGER?O:0);O=new UCm;if(x.lact)_.vB(O,1,isFinite(x.lact)?x.lact:-1);else if(x.timestamp)_.vB(O,1,-1);else{var B=_.LD();_.vB(O,1,isFinite(B)?B:-1)}if(x.sequenceGroup&&!_.p("web_gel_sequence_info_killswitch")){B=x.sequenceGroup;var Y=S2R(B),K=new XLR;_.vB(K,2,Y);_.SU(K,1,B);_.I$(O,3,K);x.endOfSequence&&delete fnG[x.sequenceGroup]}_.I$(P,
33,O);(x.sendIsolatedPayload?Vdm:tdG)(W,{endpoint:"log_event",payload:P,cttAuthInfo:x.cttAuthInfo,dangerousLogToVisitorSession:x.dangerousLogToVisitorSession},I)};
_.v7=function(){return(_.p("csi_use_time_origin")||_.p("csi_use_time_origin_tvhtml5"))&&_.sL.timeOrigin?Math.floor(_.sL.timeOrigin):_.sL.timing.navigationStart};
_.lnm=function(W,P){_.mZ("_start",W,P)};
_.VY=function(W,P){if(!_.p("web_csi_action_sampling_enabled")||!_.dw(P).actionDisabled){var x=_.cVS(P||"");_.w1R(x.info,W);W.loadType&&(x=W.loadType,_.DCt(P).loadType=x);_.w1R(_.wL8(P),W);x=hsU(P);P=_.dw(P).cttAuthInfo;TiW().info(W,x,P)}};
rVU=function(){var W,P,x,I;return((I=_.FY().resolve(_.Rl(ty))==null?void 0:(W=oYx())==null?void 0:(P=W.loggingHotConfig)==null?void 0:(x=P.csiConfig)==null?void 0:x.debugTicks)!=null?I:[]).map(function(O){return Object.values(O)[0]})};
_.mZ=function(W,P,x){if(!_.p("web_csi_action_sampling_enabled")||!_.dw(x).actionDisabled){var I=hsU(x),O;if(O=_.p("web_csi_debug_sample_enabled")&&I){(_.FY().resolve(_.Rl(ty))==null?0:oYx())&&!ib8&&(ib8=!0,_.mZ("gcfl",(0,_.iA)(),x));var B,Y,K;O=(_.FY().resolve(_.Rl(ty))==null?void 0:(B=oYx())==null?void 0:(Y=B.loggingHotConfig)==null?void 0:(K=Y.csiConfig)==null?void 0:K.debugSampleWeight)||0;if(B=O!==0)b:{B=rVU();if(B.length>0)for(Y=0;Y<B.length;Y++)if(W===B[Y]){B=!0;break b}B=!1}B?(O=E1G(I)%O!==
0,_.dw(x).debugTicksExcludedLogged||(B={},B.debugTicksExcluded=O,_.VY(B,x)),_.dw(x).debugTicksExcludedLogged=!0):O=!1}if(!O){W[0]!=="_"&&RsC(W,x,P);O=_.cVS(x||"");O.tick[W]=P||(0,_.iA)();if(O.callback&&O.callback[W])for(O=_.n(O.callback[W]),B=O.next();!B.done;B=O.next())B=B.value,B();O=_.$Cm(x);O.gelTicks&&(O.gelTicks[W]=!0);B=_.MtA(x);O=P||(0,_.iA)();_.p("log_repeated_ytcsi_ticks")?W in B||(B[W]=O):B[W]=O;B=_.dw(x).cttAuthInfo;W==="_start"?TiW().baseline(I,P,B):TiW().tick(W,I,P,B);_.FmR(x);return O}}};
RsC=function(W,P,x){if(_.sL.mark)if(W.startsWith("mark_")||(W="mark_"+W),P&&(W+=" ("+P+")"),x===void 0||_.p("web_csi_disable_alt_time_performance_mark"))_.sL.mark(W);else{x=_.p("csi_use_performance_navigation_timing")?x-_.sL.timeOrigin:x-(_.sL.timeOrigin||_.sL.timing.navigationStart);try{_.sL.mark(W,{startTime:x})}catch(I){}}};
qP7=function(){var W,P=(W=_.sL.getEntriesByType)==null?void 0:W.call(_.sL,"mark");P&&P.forEach(function(x){if(x.name.startsWith("mark_")){var I;(I=_.sL.clearMarks)==null||I.call(_.sL,x.name)}})};
_.Lmx=function(){switch(k1m()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.WaU=function(W){var P={},x=function(B,Y,K){Y=Y.match("_rid")?Y.split("_rid")[0]:Y;typeof K==="number"&&(K=JSON.stringify(K));B.requestIds?B.requestIds.push({endpoint:Y,id:K}):B.requestIds=[{endpoint:Y,id:K}]};
W=_.n(Object.entries(W));for(var I=W.next();!I.done;I=W.next()){var O=_.n(I.value);I=O.next().value;O=O.next().value;switch(I){case "GetBrowse_rid":x(P,I,O);break;case "GetGuide_rid":x(P,I,O);break;case "GetHome_rid":x(P,I,O);break;case "GetPlayer_rid":x(P,I,O);break;case "GetSearch_rid":x(P,I,O);break;case "GetSettings_rid":x(P,I,O);break;case "GetTrending_rid":x(P,I,O);break;case "GetWatchNext_rid":x(P,I,O);break;case "yt_red":P.isRedSubscriber=!!O;break;case "yt_ad":P.isMonetized=!!O}}return P};
_.Pdd=function(W){var P=_.tn("aft",W);if(P)return P;P=_.$$((W||"")+"TIMING_AFT_KEYS",["ol"]);for(var x=P.length,I=0;I<x;I++){var O=_.tn(P[I],W);if(O)return O}return NaN};
_.x_o=function(W,P){_.lA("ytglobal.timing"+(P||"")+"ready_",W)};
_.tn=function(W,P){if(W=_.MtA(P)[W])return typeof W==="number"?W:W[W.length-1]};
_.FmR=function(W){var P=_.tn("_start",W),x=_.Pdd(W),I=!IgA;P&&x&&I&&(ueo(O0m,new JZS(Math.round(x-P),W)),IgA=!0)};
nUU=function(W){g1A(W);BlA();qP7();W||(_.$$("TIMING_ACTION")&&_.MR("PREVIOUS_ACTION",_.$$("TIMING_ACTION")),_.MR("TIMING_ACTION",""))};
_.Yjd=function(W){W=W===void 0?{}:W;_.Ho(function(){pK();an7();nUU();_.x_o(!1);W.cttAuthInfo&&(_.dw().cttAuthInfo=W.cttAuthInfo);_.MR("TIMING_AFT_KEYS",[]);W.isHot?_.jI({loadType:"hot"}):_.jI({loadType:"warm"});_.MR("TIMING_ACTION","");delete _.$$("TIMING_INFO",{}).yt_lt;_.Ho(_.lnm)(W.startTime,void 0)})()};
_.QY=function(W,P,x,I){P=P===void 0?{}:P;_.Ho(function(){var O=x?x:W;yZt(O);var B=P.sampleRate;if(!_.p("web_csi_action_sampling_enabled")||B===void 0||B<=1)B=!1;else{var Y=hsU(O);B=E1G(Y)%B!==0}B&&(_.dw(O).actionDisabled=!0);_.cVS(O||"").info.actionType=W;P.cttAuthInfo&&(_.dw(O).cttAuthInfo=P.cttAuthInfo);_.MR(O+"TIMING_ACTION",W);_.Ho(_.lnm)(P.startTime,O);B={actionType:I||_.kuC(W)};P.logPreviousAction&&(B.previousAction=_.kuC(_.$$("TIMING_ACTION")));(Y=_.E_())&&Y!=="UNDEFINED_CSN"&&(B.clientScreenNonce=
Y);_.jI(B,O);_.x_o(!0,O)})()};
yZt=function(W){_.Ho(function(){pK(W);an7(W);nUU(W)})()};
KaW=function(){_.Ho(function(){var W=[],P;for(P in _.eL("ytcsi.".slice(0,-1)))P.endsWith("data_")&&W.push(P.slice(0,-5));W=_.n(W);for(P=W.next();!P.done;P=W.next())yZt(P.value);pK()})()};
_.oUG=function(W){return _.Ho(function(){return _.Z0U("_start",W)})()};
_.jI=function(W,P,x){_.Ho(_.VY)(W,P,x===void 0?!1:x)};
_.CK=function(W,P,x){return _.Ho(_.mZ)(W,P,x)};
_.Z0U=function(W,P){return _.Ho(function(){var x=_.MtA(P);return W in x})()};
uco=function(W){if(!_.p("universal_csi_network_ticks"))return"";W=_.YO(W)||"";for(var P=Object.keys(Sj8),x=0;x<P.length;x++){var I=P[x];if(W.includes(I))return I}return""};
seA=function(W){if(!_.p("universal_csi_network_ticks"))return function(){};
var P=Sj8[W];return P?(_.An(P),function(){var x=_.p("universal_csi_network_ticks")?(x=d_x[W])?_.An(x):!1:!1;return x}):function(){}};
_.An=function(W,P,x){return _.Ho(function(){if(_.Z0U(W,x))return!1;_.CK(W,P,x);return!0})()};
_.zZ=function(W,P,x){_.Ho(function(){if(!_.oUG(x)||_.Z0U(W,x))return!1;_.CK(W,P,x);return!0})()};
_.gw=function(W){return _.Ho(_.tn)(W,void 0)};
pK=function(W){_.oUG(W)&&_.CK("aa",void 0,W)};
_.ppR=function(W,P,x,I,O,B,Y,K,Z){var d=vUA();K=new _.z7({veType:P,youtubeData:B,jspbYoutubeData:K});B=DE({},d);O&&(B.cttAuthInfo=O);O={csn:d,pageVe:K.getAsJson()};_.p("expectation_logging")&&Z&&Z.screenCreatedLoggingExpectations&&(O.screenCreatedLoggingExpectations=Z.screenCreatedLoggingExpectations);x&&x.visualElement?(O.implicitGesture={parentCsn:x.clientScreenNonce,gesturedVe:x.visualElement.getAsJson()},Y&&(O.implicitGesture.gestureType=Y)):x&&_.ge(new _.mW("newScreen() parent element does not have a VE - rootVe",
P));I&&(O.cloneCsn=I);W?jo("screenCreated",O,W,B):_.Ay("screenCreated",O,B);ueo(puG,new m_m(d));MU.clear();V2C.clear();t2t.clear();return d};
$6=function(W,P,x,I,O){jeC(W,P,x,[I],O===void 0?!1:O)};
jeC=function(W,P,x,I,O){O=O===void 0?!1:O;for(var B=DE({cttAuthInfo:gU(P)||void 0},P),Y=_.n(I),K=Y.next();!K.done;K=Y.next()){K=K.value;var Z=K.getAsJson();(_.jU.isEmpty(Z)||!Z.trackingParams&&!Z.veType)&&_.ge(Error("uf"));if(_.p("no_client_ve_attach_unless_shown")){var d=Qe7(K,P);if(Z.veType&&!V2C.has(d)&&!t2t.has(d)&&!O){if(!_.p("il_attach_cache_limit")||MU.size<1E3){MU.set(d,[W,P,x,K]);return}_.p("il_attach_cache_limit")&&MU.size>1E3&&_.ge(new _.mW("IL Attach cache exceeded limit"))}K=Qe7(x,P);
MU.has(K)?CdG(x,P):t2t.set(K,!0)}}I=I.filter(function(v){v.csn!==P?(v.csn=P,v=!0):v=!1;return v});
x={csn:P,parentVe:x.getAsJson(),childVes:_.C5(I,function(v){return v.getAsJson()})};
P==="UNDEFINED_CSN"?ww("visualElementAttached",B,x):W?jo("visualElementAttached",x,W,B):_.Ay("visualElementAttached",x,B)};
z2x=function(W,P,x,I,O){AZd(W,P,x,O)};
AZd=function(W,P,x,I){GX8(x,P);var O=DE({cttAuthInfo:gU(P)||void 0},P);x={csn:P,ve:x.getAsJson(),eventType:1};I&&(x.clientData=I);P==="UNDEFINED_CSN"?ww("visualElementShown",O,x):W?jo("visualElementShown",x,W,O):_.Ay("visualElementShown",x,O)};
EUR=function(W,P,x,I){GX8(x,P);var O=DE({cttAuthInfo:gU(P)||void 0},P);x={csn:P,ve:x.getAsJson(),eventType:4};I&&(x.clientData=I);P==="UNDEFINED_CSN"?ww("visualElementShown",O,x):W?jo("visualElementShown",x,W,O):_.Ay("visualElementShown",x,O)};
gUS=function(W,P,x,I,O){var B=(I=I===void 0?!1:I)?16:8;I=DE({cttAuthInfo:gU(P)||void 0,endOfSequence:I},P);x={csn:P,ve:x.getAsJson(),eventType:B};O&&(x.clientData=O);P==="UNDEFINED_CSN"?ww("visualElementHidden",I,x):W?jo("visualElementHidden",x,W,I):_.Ay("visualElementHidden",x,I)};
M2R=function(W,P,x,I,O){D_U(W,P,x,void 0,I,O)};
D_U=function(W,P,x,I,O){GX8(x,P);I=I||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var B=DE({cttAuthInfo:gU(P)||void 0},P);x={csn:P,ve:x.getAsJson(),gestureType:I};O&&(x.clientData=O);P==="UNDEFINED_CSN"?ww("visualElementGestured",B,x):W?jo("visualElementGestured",x,W,B):_.Ay("visualElementGestured",x,B)};
$_x=function(W,P,x,I){var O=DE({cttAuthInfo:gU(P)||void 0},P);x={csn:P,ve:x.getAsJson(),clientData:I};P==="UNDEFINED_CSN"?ww("visualElementStateChanged",O,x):W?jo("visualElementStateChanged",x,W,O):_.Ay("visualElementStateChanged",x,O)};
wpA=function(){var W=V3G(16);for(var P=[],x=0;x<W.length;x++)P.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[x]&63));return P.join("")};
ww=function(W,P,x){h2R.push({payloadName:W,payload:x,jspbPayload:void 0,options:P});H0m||(H0m=QYx())};
tlA=function(W){if(h2R){for(var P=_.n(h2R),x=P.next();!x.done;x=P.next())x=x.value,x.payload&&(x.payload.csn=W.csn,_.Ay(x.payloadName,x.payload,x.options));h2R.length=0}H0m=0};
Qe7=function(W,P){return""+W.getAsJson().veType+W.getAsJson().veCounter+P};
GX8=function(W,P){if(_.p("no_client_ve_attach_unless_shown")){var x=Qe7(W,P);V2C.set(x,!0);CdG(W,P)}};
CdG=function(W,P){W=Qe7(W,P);MU.has(W)&&(P=MU.get(W)||[],$6(P[0],P[1],P[2],P[3],!0),MU.delete(W))};
DE=function(W,P){_.p("log_sequence_info_on_gel_web")&&(W.sequenceGroup=P);return W};
_.hn=function(W,P,x){_.Ho($6)(void 0,W,P,x)};
_.H7=function(W,P,x){_.Ho(jeC)(void 0,W,P,x)};
_.eI=function(W,P){_.Ho(z2x)(void 0,W,P,void 0,void 0,void 0)};
_.c7=function(W,P,x){_.Ho(function(){_.bP(P,function(I){EUR(void 0,W,I,x)})})()};
_.au=function(W,P,x,I){_.Ho(function(){_.bP(P,function(O){gUS(void 0,W,O,x,I)})})()};
_.bB=function(W,P,x){_.Ho(M2R)(void 0,W,P,x,void 0)};
_.k6=function(W,P,x,I){_.Ho(D_U)(void 0,W,P,x,I,void 0)};
_.UL=function(W,P,x){_.Ho($_x)(void 0,W,P,x,void 0)};
fK=function(W){return XB.get(W)};
e2C=function(W,P){XB.set(W,P)};
cZR=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(W){return(+W^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+W/4).toString(16)})};
U_C=function(W,P){P=P===void 0?{}:P;if(NU&&NU.sample(W,P)){var x=agW++,I,O;W=new b0C(W,P,performance.now(),x,kXd,(O=(I=lB)==null?void 0:I.traceId)!=null?O:x);if(lB){var B;(B=lB).children||(B.children=[]);lB.children.push(W)}x=_.n(NU.spanProcessors);for(I=x.next();!I.done;I=x.next())B=O=void 0,(B=(O=I.value).onSpanStart)==null||B.call(O,W);return lB=W}};
Xpt=function(W){var P;return(P=NU)==null?void 0:P.sample(W,void 0)};
fgd=function(W){kXd=cZR();NU=W};
Nlt=function(W,P,x){if(!W)return P(x);var I=void 0;try{return P(x)}catch(O){throw I="error",O;}finally{W==null||W.close(I)}};
lgR=function(W,P){var x=Object.keys(W);W=new _.mW("[Command Handler] "+P,{filteredCommandNames:x,originalCommand:W});_.G$(W)};
Tlm=function(W,P){lgR(W,P+" was called but not set")};
rZt=function(W){return function(){return new W}};
TZ=function(W){return function(){return _.FY().resolve(W)}};
i0R=function(W,P){var x=_.Q(W,_.eo);if(x&&(x=P[x.signal]))return x();W=_.n(Object.keys(W));for(x=W.next();!x.done;x=W.next())if(x=x.value,P[x]&&(x=P[x]))return x()};
rw=function(W,P,x,I){return{browseEndpoint:{browseId:W},commandMetadata:{webCommandMetadata:{url:P,rootVe:x,webPageType:I===void 0?"WEB_PAGE_TYPE_BROWSE":I}}}};
R2U=function(W,P,x){var I=P=P===void 0?0:P;x=x===void 0?0:x;var O=x-I;return _.iB(W,"PPSV",void 0,void 0,(O>600?0:O<60||x<=0||I/x>.9)?0:P)};
_.iB=function(W,P,x,I,O){var B="/watch?v="+W;W={videoId:W};P&&(W.playlistId=P,B+="&list="+P);I&&(B+="&pp="+I);O&&(W.startTimeSeconds=O,B+="&t="+O+"s");P={watchEndpoint:W,commandMetadata:{webCommandMetadata:{url:B,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};x&&(P.clickTrackingParams=x);I&&(_.Q(P,_.U_).playerParams=I);return P};
Fax=function(W){return{browseEndpoint:{browseId:"VL"+W},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+W,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
qjt=function(W){if(W){var P;if(W){var x=(P=_.Q(W.commandMetadata,_.rU))==null?void 0:P.url;P=!(!x||x==="/service_ajax")}else P=!1;if(P)return W;var I;if(W=(I=_.Q(W,_.B7))==null?void 0:I.commands)for(I=_.n(W),W=I.next();!W.done;W=I.next())if(W=qjt(W.value))return W}};
_.Ru=function(W){return{runs:[{text:W}]}};
LaC=function(W,P){return W&&P?{runs:[{text:W,navigationEndpoint:P}]}:void 0};
FB=function(W){return W?_.Ru(W):void 0};
_.qU=function(W){return W?{simpleText:W}:void 0};
_.LK=function(W){var P=W.type;W=W.payload;P={type:P};W!==void 0&&(P.payload=W);return P};
WsR=function(W,P,x){for(var I=Object.assign({},W),O=_.n(Object.keys(P)),B=O.next();!B.done;B=O.next()){B=B.value;var Y=W[B],K=P[B];if(K===void 0)delete I[B];else if(Y===void 0)I[B]=K;else if(Array.isArray(K)&&Array.isArray(Y))I[B]=x?[].concat(_.ju(Y),_.ju(K)):K;else if(!Array.isArray(K)&&_.Jw(K)&&!Array.isArray(Y)&&_.Jw(Y))I[B]=WsR(Y,K,x);else if(typeof K===typeof Y)I[B]=K;else return P=new _.mW("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:B,originalValue:Y,updateValue:K}),
_.G$(P),W}return I};
IRA=function(W){if(!W.length)return"";try{if(Pex)return Pex.decode(W);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(W)}catch(Y){}for(var P=0,x=[],I=W.length;P<I;){for(var O=0;O<1024&&P<I;){var B=W[P++];if(B<128)xcR[O++]=B;else{if(B<224)B=(B&31)<<6|W[P++]&63;else if(B<240)B=(B&15)<<12|(W[P++]&63)<<6|W[P++]&63;else{if(O+1===1024){--P;break}B=(B&7)<<18|(W[P++]&63)<<12|(W[P++]&63)<<6|W[P++]&63;B-=65536;xcR[O++]=55296|B>>10;B=56320|B&1023}xcR[O++]=B}}B=String.fromCharCode.apply(String,
xcR);O<1024&&(B=B.substring(0,O));x.push(B)}return x.join("")};
JhS=function(W,P){var x;if((x=OhS)==null?0:x.encodeInto)return P=OhS.encodeInto(W,P),P.read<W.length?W.length*4:P.written;for(var I=x=0;I<W.length;I++){var O=W.charCodeAt(I);O<128?P[x++]=O:(O<2048?P[x++]=O>>6|192:((O&64512)===55296&&I+1<W.length&&(W.charCodeAt(I+1)&64512)===56320?(O=65536+((O&1023)<<10)+(W.charCodeAt(++I)&1023),P[x++]=O>>18|240,P[x++]=O>>12&63|128):P[x++]=O>>12|224,P[x++]=O>>6&63|128),P[x++]=O&63|128)}return x};
BQU=function(W,P){W=new Uint8Array(W);P&&W.set(P);return W};
_.Pu=function(W){W=new nBo(new Y8W([_.up(decodeURIComponent(W))]));if(yhm(W,2)){var P=Wu(W);var x=W.pos;var I=W.arrayView;x=x===void 0?0:x;var O=P===void 0?-1:P;x=x===void 0?0:x;O=O===void 0?-1:O;if(I.totalLength&&O){O<0&&(O=I.totalLength-x);I.focus(x);if(!(x-I.arrayPos+O<=I.arrays[I.arrayIdx].length)){var B=I.arrayIdx,Y=I.arrayPos;I.focus(x+O-1);Y=new Uint8Array(I.arrayPos+I.arrays[I.arrayIdx].length-Y);for(var K=0,Z=B;Z<=I.arrayIdx;Z++)Y.set(I.arrays[Z],K),K+=I.arrays[Z].length;I.arrays.splice(B,
I.arrayIdx-B+1,Y);I.arrayIdx=0;I.arrayPos=0;I.focus(x)}B=I.arrays[I.arrayIdx];I=new DataView(B.buffer,B.byteOffset+x-I.arrayPos,O)}else I=new DataView(new ArrayBuffer(0));I=new Uint8Array(I.buffer,I.byteOffset,I.byteLength);W.pos+=P;P=I}else P=void 0;P=P?IRA(P):void 0;W=yhm(W,4)?Wu(W):void 0;I=KsR[W];if(typeof I==="undefined")throw W=new _.mW("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:W}),_.G$(W),W;return{entityTypeFieldNumber:W,entityType:I,entityId:P}};
_.On=function(W,P,x){x=x===void 0?0:x;var I=new Zhm;if(OhS)W=OhS.encode(W);else{var O=new Uint8Array(Math.ceil(W.length*1.2)),B=JhS(W,O);O.length<B&&(O=new Uint8Array(B),B=JhS(W,O));O.length>B&&(O=O.subarray(0,B));W=O}W!==void 0&&(xz(I,18),O=W.length,xz(I,O),IY(I,O),I.buf.set(W,I.pos),I.pos+=O);W=oBS[P];if(typeof W==="undefined")throw x=new _.mW("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:P}),_.G$(x),x;W!==void 0&&(xz(I,32),xz(I,W));xz(I,40);xz(I,1);P=new Uint8Array(I.buf.buffer,
I.buf.byteOffset,I.pos);return encodeURIComponent(_.L2(P,x))};
S87=function(W){W=W.key||W.id;if(!W)throw Error("yf");return W};
dcm=function(W,P){W=W===void 0?{}:W;return uht(W,P)};
sIx=function(W,P,x,I){if(I===void 0)return I=Object.assign({},W[P]||{}),x=(delete I[x],I),I={},Object.assign({},W,(I[P]=x,I));var O={},B={};return Object.assign({},W,(B[P]=Object.assign({},W[P],(O[x]=I,O)),B))};
vBW=function(W,P,x,I,O){var B=W[P];if(B==null||!B[x])return W;I=WsR(B[x],I,O==="REPEATED_FIELDS_MERGE_OPTION_APPEND");O={};B={};return Object.assign({},W,(B[P]=Object.assign({},W[P],(O[x]=I,O)),B))};
_.Jb=function(W,P,x){return W[P]?W[P][x]||null:null};
VYC=function(){if(mcS)return mcS();var W={};mcS=rO("PersistentEntityStoreDb",{objectStores:(W.EntityStore={addedAtVersion:1},W.EntityAssociationStore={addedAtVersion:2},W),shared:!1,upgrade:function(P,x){x(1)&&HP(h0(P,"EntityStore",{keyPath:"key"}),"entityType","entityType");x(2)&&(P=h0(P,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),HP(P,"byParentEntityKey","parentEntityKey"),HP(P,"byChildEntityKey","childEntityKey"))},
version:3});return mcS()};
tYm=function(W){return _.bA(VYC(),W)};
Bu=function(W){return window.Int32Array?new Int32Array(W):Array(W)};
jIG=function(W){return _.bA(pzt(),W)};
QIR=function(W){return new nR("WRONG_DATA_TYPE",{encoderVersion:W})};
Ce8=function(W){return W instanceof Error?new nR("UNKNOWN_ENCODE_ERROR",{originalMessage:W.message}):new nR("UNKNOWN_ENCODE_ERROR")};
AhG=function(W){return W instanceof Error?new nR("UNKNOWN_DECODE_ERROR",{originalMessage:W.message}):new nR("UNKNOWN_DECODE_ERROR")};
zKR=function(W,P){W=W instanceof nR?W:P(W);_.G$(W);throw W;};
GPx=function(W){W=(new TextEncoder).encode(W).subarray(0,16);var P=new Uint8Array(16);P.set(W);return P};
gBS=function(W){var P=EBo[W];if(P)return P;_.ge(new _.mW("Entity model not found.",{entityType:W}))};
_.Yz=function(){DcA||(DcA=MYx());return DcA};
MYx=function(){var W,P,x;return _.y(function(I){if(I.nextAddress==1)return _.OT(I,2),_.S(I,_.TM(),4);if(I.nextAddress!=2){W=I.yieldResult;if(!W||!_.vi()||typeof _.xW.BroadcastChannel==="undefined")return I.return();P=new $cC;return I.return(new yT(W,P))}x=_.yn(I);x instanceof Error&&_.G$(x);return I.return()})};
_.KR=function(W,P){var x;return _.y(function(I){if(I.nextAddress==1){x=W.mutations;if(!x||x.length<=0)return I.return();P&&P.dispatch(_.LK({type:"ENTITY_LOADED",payload:x}));return _.S(I,wzS(x),2)}x.length=0;_.Kl(I)})};
wzS=function(W){var P;return _.y(function(x){return x.nextAddress==1?_.S(x,_.Yz(),2):(P=x.yieldResult)?_.S(x,_.Z5(P,"readwrite",function(I){for(var O={},B=_.n(W),Y=B.next(),K={};!Y.done;K={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Y=B.next())K.mutation$jscomp$4=Y.value,K.mutation$jscomp$4.entityKey&&hKS(K.mutation$jscomp$4)&&(K.mutationEntityType$jscomp$3=(0,_.jU.getAnyKey)(K.mutation$jscomp$4.payload),Y=void 0,K.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Y=function(Z){return function(){return _.HhU(I,
Z.mutation$jscomp$4.payload[Z.mutationEntityType$jscomp$3],Z.mutationEntityType$jscomp$3)}}(K)),K.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Y=function(Z){return function(){return eKx(I,Z.mutation$jscomp$4.entityKey)}}(K)),K.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Y=function(Z){return function(){return chm(I,Z.mutation$jscomp$4.entityKey,Z.mutation$jscomp$4.payload[Z.mutationEntityType$jscomp$3],Z.mutationEntityType$jscomp$3)}}(K)),Y&&(O[K.mutation$jscomp$4.entityKey]=
O[K.mutation$jscomp$4.entityKey]?O[K.mutation$jscomp$4.entityKey].then(Y):Y()));
return wO.all(Object.values(O))}),0):x.return()})};
hKS=function(W){var P;W=(P=W.options)==null?void 0:P.persistenceOption;return W==="ENTITY_PERSISTENCE_OPTION_PERSIST"||W==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
kPS=function(W,P){var x,I;_.y(function(O){if(O.nextAddress==1)return _.S(O,_.Yz(),2);if(O.nextAddress!=3)return(x=O.yieldResult)?_.S(O,_.Z5(x,"readonly",function(B){var Y={},K=Object.keys(P).map(function(Z){var d=P[Z]?[].concat(_.ju(P[Z])):[];return aRR(B,Z,d,Y)});
return wO.all(K).then(function(){return Y})}),3):O.return();
I=O.yieldResult;Object.keys(I).length>0&&W.dispatch(bhA(I));_.Kl(O)})};
aRR=function(W,P,x,I){return oY(W,P,x).then(function(O){I[P]=Ucm(x,O)})};
Ucm=function(W,P){if(P.length!==W.length)throw Error("Bf");return P.reduce(function(x,I,O){x[W[O]]=I;return x},{})};
NQm=function(W){var P=W.filter(function(O){var B;return(O==null?void 0:(B=O.transferEntity)==null?void 0:B.transferState)==="TRANSFER_STATE_COMPLETE"}).length,x=W.filter(function(O){var B;
return(O==null?void 0:(B=O.transferEntity)==null?void 0:B.transferState)==="TRANSFER_STATE_FAILED"}).length,I=W.filter(function(O){var B;
return(O==null?void 0:(B=O.transferEntity)==null?void 0:B.transferState)&&Xzt.includes(O.transferEntity.transferState)});
if(!(P||I!=null&&I.length))return 0;P=_.fRW(I)+P;W=W.length-x;return W===0?0:Math.round(P*100/W)/100};
_.fRW=function(W){var P=[];P=P.concat.apply(P,_.ju(W.filter(function(B){return B.streamEntity}).map(function(B){var Y=Object.assign({},B.streamEntity),K,Z=(K=B.transferEntity)==null?void 0:K.transferState;
Y.streamsProgress=Y.streamsProgress||[];Y.streamsProgress=Y.streamsProgress.map(function(d){var v=Object.assign({},d);v.numBytesDownloaded=Z==="TRANSFER_STATE_COMPLETE"?d.numTotalBytes:d.numBytesDownloaded;return v});
return Y}).map(function(B){return B.streamsProgress})));
var x=W=0;P=_.n(P);for(var I=P.next();!I.done;I=P.next()){var O=I.value;I=Number(O.numBytesDownloaded);O=Number(O.numTotalBytes);x+=isNaN(I)?0:I;W+=isNaN(O)?0:O}return W===0?0:Math.round(x*100/W)/100};
lRo=function(W){if(!W||!W.expirationTimestamp||!W.action)return!1;var P=(0,_.iA)()/1E3;return Number(W.expirationTimestamp)>=P};
Sl=function(W){return W&&W.expirationTimestamp&&W.action?lRo(W)&&W.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.ux=function(W){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(W||"TRANSFER_STATE_UNKNOWN")};
TQx=function(W){var P=new Zhm;if(W!==void 0){var x=Math.ceil(Math.log2(W.length*4+2)/7);x=x===void 0?2:x;xz(P,10);P.submessagePosStack.push(P.pos);P.submessagePosStack.push(x);P.pos+=x;IY(P,W.length*1.2);x=JhS(W,P.buf.subarray(P.pos));P.pos+x>P.buf.length&&(IY(P,x),x=JhS(W,P.buf.subarray(P.pos)));P.pos+=x;W=P.submessagePosStack.pop();x=P.submessagePosStack.pop();for(var I=P.pos-x-W;W--;){var O=W?128:0;P.view.setUint8(x++,I&127|O);I>>=7}}P=new Uint8Array(P.buf.buffer,P.buf.byteOffset,P.pos);return(new TextDecoder("utf-8")).decode(P)};
_.dE=function(W){var P=0;W=_.n(W);for(var x=W.next(),I={};!x.done;I={transferState$jscomp$3:void 0},x=W.next()){var O=x.value,B=void 0;x=(B=O.streamEntity)!=null?B:{};B=void 0;I.transferState$jscomp$3=(B=O.transferEntity)==null?void 0:B.transferState;B=O=void 0;((O=x)==null?0:(B=O.streamsProgress)==null?0:B.length)&&x.streamsProgress.forEach(function(Y){return function(K){K=Number(Y.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?K.numTotalBytes:K.numBytesDownloaded);isFinite(K)&&(P+=K)}}(I))}return P};
rhx=function(W){return W.some(function(P){var x;if(!(P==null?0:(x=P.transferEntity)==null?0:x.transferState)){var I;return!(P==null?0:(I=P.policyEntity)==null?0:I.action)||P.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Xzt.includes(P.transferEntity.transferState)})};
iho=function(W,P){if(!P)return!1;if(_.p("of_pb_en_po_ks"))return!0;var x;W=(x=_.Jb(W,"offlineVideoPolicy",_.On(P,"offlineVideoPolicy")))!=null?x:void 0;return!!W&&Sl(W)};
_.Fst=function(W){var P=["TRANSFER_STATE_COMPLETE"];P=P===void 0?RKU:P;return W.filter(function(x){var I,O;return P.includes((O=(I=x.transferEntity)==null?void 0:I.transferState)!=null?O:"TRANSFER_STATE_UNKNOWN")})};
q8o=function(W,P){if(P){var x,I=(x=_.Jb(W,"playbackData",_.On(P,"playbackData")))!=null?x:null,O;x=(O=_.Jb(W,"transfer",_.On(P,"transfer")))!=null?O:null;var B;O=(B=_.Jb(W,"offlineVideoStreams",_.On(P,"offlineVideoStreams")))!=null?B:null;var Y;W=(Y=_.Jb(W,"offlineVideoPolicy",_.On(P,"offlineVideoPolicy")))!=null?Y:null;if(I||x||O||W)return{playbackDataEntity:I,transferEntity:x,streamEntity:O,policyEntity:W}}};
_.sn=function(W){var P=W.playbackData;if(!P)return[];var x=[];P=_.n(Object.keys(P));for(var I=P.next();!I.done;I=P.next()){var O=I.value;if(!Lst(W,_.Pu(O).entityId)&&(I=q8o(W,_.Pu(O).entityId))){var B=void 0,Y=void 0;O=(Y=Number((B=_.Jb(W,"playbackData",O))==null?void 0:B.streamDownloadTimestampSeconds))!=null?Y:(0,_.iA)();x.push({entity:I,streamDownloadTimestamp:O})}}return x.sort(function(K,Z){var d=K.streamDownloadTimestamp,v=Z.streamDownloadTimestamp;return v===d?K.entity.streamEntity&&!Z.entity.streamEntity?
1:-1:v-d}).map(function(K){return K.entity})};
WwA=function(W){return _.Fst(_.sn(W))};
_.P7U=function(W){return _.sn(W).filter(function(P){var x;if(((x=P.policyEntity)==null?0:x.action)&&P.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var I;if((I=P.transferEntity)==null?0:I.transferState){var O;return Xzt.includes((O=P.transferEntity)==null?void 0:O.transferState)}return!0})};
Lst=function(W,P){var x;return((x=_.Jb(W,"downloadStatusEntity",_.On(P,"downloadStatusEntity")))==null?void 0:x.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
xKA=function(W){var P;if(W==null?0:(P=W.playbackDataEntity)==null?0:P.key)return _.Pu(W.playbackDataEntity.key).entityId;var x;if(W==null?0:(x=W.transferEntity)==null?0:x.key)return _.Pu(W.transferEntity.key).entityId;var I;if(W==null?0:(I=W.streamEntity)==null?0:I.key)return _.Pu(W.streamEntity.key).entityId;var O;if(W==null?0:(O=W.policyEntity)==null?0:O.key)return _.Pu(W.policyEntity.key).entityId};
OTR=function(W){var P=new Set,x;W=(x=W.mainDownloadsListEntity)==null?void 0:x[Ibm];var I;if(!(W==null?0:(I=W.downloads)==null?0:I.length))return P;var O;W==null||(O=W.downloads)==null||O.forEach(function(B){(B==null?0:B.videoItem)&&P.add(B.videoItem)});
return P};
vu=function(W,P){if(P){var x=_.Jb(W,"mainVideoEntity",_.On(P,"mainVideoEntity")),I=_.Jb(W,"downloadStatusEntity",_.On(P,"downloadStatusEntity")),O=_.Jb(W,"ytMainChannelEntity",_.On(P,"ytMainChannelEntity")),B={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};W=q8o(W,P);I=(I==null?void 0:I.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.p("woffle_render_failed_download_state_ks")&&(I==null?void 0:I.downloadState)==="DOWNLOAD_STATE_FAILED";!W&&I&&(W=B);if(W&&x&&
O)return Object.assign({},{videoEntity:x,channelEntity:O},W)}};
BKo=function(W,P){return JuC(W,P)==="TRANSFER_STATE_COMPLETE"&&iho(W,P)};
nuA=function(W,P){if(!P)return!1;var x;W=(x=_.Jb(W,"playbackData",_.On(P,"playbackData")))!=null?x:void 0;return!!W&&!!W.playerResponseJson};
JuC=function(W,P){if(!P)return"TRANSFER_STATE_UNKNOWN";var x=_.Jb(W,"transfer",_.On(P,"transfer"));if(x){var I;return(I=x.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN"}x=_.Jb(W,"offlineOrchestrationActionWrapperEntity",_.On(P,"offlineOrchestrationActionWrapperEntity"));W=_.Jb(W,"mainVideoEntity",_.On(P,"mainVideoEntity"));return x||W?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
YkR=function(W,P){if(!P)return"TRANSFER_STATE_UNKNOWN";if(W=_.Jb(W,"transfer",_.On(P,"transfer"))){var x;return(x=W.transferState)!=null?x:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
yum=function(W,P){return P&&(W=_.Jb(W,"videoPlaybackPositionEntity",_.On(P,"videoPlaybackPositionEntity")),W==null?0:W.lastPlaybackPositionSeconds)?Number(W.lastPlaybackPositionSeconds):0};
UKC=function(W,P){return kbm(W).some(function(x){var I;return(x==null?void 0:(I=x.mainPlaylistEntity)==null?void 0:I.playlistId)===P})};
fbU=function(W,P,x){var I=XTW(W,P);if(!I.length)return[];P=[];I=_.n(I);for(var O=I.next();!O.done;O=I.next()){O=O.value;var B=vu(W,O);x&&JuC(W,O)!=="TRANSFER_STATE_COMPLETE"||B&&P.push(B)}return P};
XTW=function(W,P){if(!P)return[];var x=_.On(P,"mainPlaylistEntity"),I;P=(I=W.mainPlaylistEntity)==null?void 0:I[x];I=[];if(P==null||!P.videos)return I;P=_.n(P.videos);for(x=P.next();!x.done;x=P.next()){x=x.value;var O=void 0,B=void 0,Y=void 0,K=(O=W)==null?void 0:(B=O.mainPlaylistVideoEntity)==null?void 0:(Y=B[x])==null?void 0:Y.video;K&&(x=_.Pu(K).entityId)&&I.push(x)}return I};
NKC=function(W,P){if(P){var x=_.Jb(W,"mainPlaylistEntity",_.On(P,"mainPlaylistEntity")),I=_.Jb(W,"mainPlaylistDownloadStateEntity",_.On(P,"mainPlaylistDownloadStateEntity"));W=_.Jb(W,"ytMainChannelEntity",_.On(P,"ytMainChannelEntity"));if(I&&x)return Object.assign({},{mainPlaylistEntity:x,mainPlaylistDownloadStateEntity:I},!!W&&{channelEntity:W})}};
kbm=function(W){return lbR(W).sort(function(P,x){return x.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return P.downloadedPlaylistEntities})};
lbR=function(W){var P=W.mainPlaylistDownloadStateEntity,x=[];if(!P)return x;for(var I=_.n(Object.keys(P)),O=I.next();!O.done;O=I.next()){var B=O.value;O=NKC(W,_.Pu(B).entityId);var Y=void 0;B=Number((Y=P[B])==null?void 0:Y.addedTimestampMillis);Y=isNaN(B)?(0,_.iA)():B;O!==void 0&&x.push({downloadedPlaylistEntities:O,addedTimestampMillis:Y})}return x};
TKU=function(W){var P,x=(P=W.mainPlaylistVideoEntity)!=null?P:{};return new Set(kbm(W).reduce(function(I,O){I=I===void 0?[]:I;var B,Y;O==null||(B=O.mainPlaylistEntity)==null||(Y=B.videos)==null||Y.forEach(function(K){var Z;(K=(Z=x[K])==null?void 0:Z.video)&&I.push(K)});
return I},[]))};
ru7=function(W){return"downloadedMusicPlaylistEntities"in W};
iTC=function(W){return"mainPlaylistEntity"in W&&"mainPlaylistDownloadStateEntity"in W};
RNR=function(W){return"videoEntity"in W&&"channelEntity"in W};
Fw8=function(W){var P=W.musicPlaylistDownloadMetadataEntity,x=[];if(!P)return x;for(var I=_.n(Object.keys(P)),O=I.next();!O.done;O=I.next()){O=O.value;a:{var B=W,Y=_.Pu(O).entityId;if(Y){var K=_.Jb(B,"musicPlaylist",_.On(Y,"musicPlaylist"));B=_.Jb(B,"musicPlaylistDownloadMetadataEntity",_.On(Y,"musicPlaylistDownloadMetadataEntity"));if(K&&B){K={musicPlaylistEntity:K,musicPlaylistDownloadStateEntity:B};break a}}K=void 0}B=void 0;O=Number((B=P[O])==null?void 0:B.addedTimestampMillis);O=isNaN(O)?(0,_.iA)():
O;K!==void 0&&x.push({downloadedMusicPlaylistEntities:K,addedTimestampMillis:O})}return x};
qkS=function(W){var P=new Set;W=_.n(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,"musicPlaylistEntity"in x&&"musicPlaylistDownloadStateEntity"in x){x=_.n(x.musicPlaylistEntity.tracks);for(var I=x.next();!I.done;I=x.next())P.add(I.value)}return P};
Lwd=function(W,P){if(P){var x=_.Jb(W,"musicTrack",_.On(P,"musicTrack")),I=_.Jb(W,"musicArtist",_.On(P,"musicArtist"))||{};if((W=q8o(W,P))&&x&&I)return Object.assign({},{musicTrackEntity:x,musicArtistEntity:I},W)}};
W48=function(W){var P=W.musicTrackDownloadMetadataEntity,x=[];if(!P)return[];P=_.n(Object.keys(P));for(var I=P.next();!I.done;I=P.next()){var O=I.value;I=Lwd(W,_.Pu(O).entityId);var B=void 0;O=Number((B=_.Jb(W,"musicTrackDownloadMetadataEntity",O))==null?void 0:B.addedTimestampMillis);B=isNaN(O)?(0,_.iA)():O;I!==void 0&&x.push({downloadedMusicEntities:I,addedTimestampMillis:B})}return x};
IyU=function(W,P){if(!P)return[];if(Object.values(PGC).includes(P))return x3R(W,P);P=_.On(P,"musicPlaylist");var x;W=(x=W.musicPlaylist)==null?void 0:x[P];x=[];if(W==null||!W.tracks)return x;W=_.n(W.tracks);for(P=W.next();!P.done;P=W.next())(P=_.Pu(P.value).entityId)&&x.push(P);return x};
x3R=function(W,P){var x=new Set,I=Fw8(W).map(function(B){return B.downloadedMusicPlaylistEntities});
I=qkS(I);I=_.n(I);for(var O=I.next();!O.done;O=I.next())(O=_.Pu(O.value).entityId)&&x.add(O);return OwS(W).downloadedMusicEntities.filter(function(B){var Y;if((Y=B.musicTrackEntity)!=null&&Y.videoId){B=B.musicTrackEntity;if(Y=P==="PPOM"?!0:!x.has(B.videoId))b:switch(B=B.musicVideoType,P){case "PPSE":Y=B==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Y=B!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}B=Y}else B=!1;return B}).map(function(B){var Y;
return(Y=B.musicTrackEntity)==null?void 0:Y.videoId})};
OwS=function(W){var P=W48(W).sort(function(x,I){return I.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return"downloadedMusicEntities"in x?x.downloadedMusicEntities:ru7(x)?x.downloadedMusicPlaylistEntities:{}});
W=Fw8(W).sort(function(x,I){return I.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return"downloadedMusicEntities"in x?x.downloadedMusicEntities:ru7(x)?x.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:P,downloadedMusicPlaylistEntities:W}};
B6t=function(W,P){P=_.$$("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?IyU(W,P):XTW(W,P);if(!P.length)return"TRANSFER_STATE_UNKNOWN";P=P.map(function(x){return YkR(W,x)});
return JcR(P)};
JcR=function(W){var P=new Set(W);if(P.has("TRANSFER_STATE_FAILED")&&P.size===1)return"TRANSFER_STATE_FAILED";P.delete("TRANSFER_STATE_FAILED");if(P.has("TRANSFER_STATE_UNKNOWN")&&P.size===1)return"TRANSFER_STATE_PRE_TRANSFER";P.delete("TRANSFER_STATE_UNKNOWN");if(P.has("TRANSFER_STATE_PRE_TRANSFER")&&P.size===1||P.size===0)return"TRANSFER_STATE_PRE_TRANSFER";W=P.has("TRANSFER_STATE_TRANSFERRING");P=P.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return W||P?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
mB=function(W){var P=W.mainVideoDownloadStateEntity,x=[];if(!P)return[];P=_.n(Object.keys(P));for(var I=P.next();!I.done;I=P.next()){var O=I.value;if(!Lst(W,_.Pu(O).entityId)){I=vu(W,_.Pu(O).entityId);var B=void 0,Y=void 0;O=(Y=Number((B=_.Jb(W,"mainVideoDownloadStateEntity",O))==null?void 0:B.addedTimestampMillis))!=null?Y:(0,_.iA)();I!==void 0&&x.push({downloadedVideoEntities:I,addedTimestampMillis:O})}}return x};
nZt=function(W){return mB(W).sort(function(P,x){return x.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return P.downloadedVideoEntities})};
_.ycW=function(W){var P=TKU(W),x=_.VT(W),I=OTR(W),O=mB(W).filter(function(Y){var K,Z;if((Y==null?void 0:(K=Y.downloadedVideoEntities)==null?void 0:(Z=K.transferEntity)==null?void 0:Z.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var d,v;Y=Y==null?void 0:(d=Y.downloadedVideoEntities)==null?void 0:(v=d.videoEntity)==null?void 0:v.key;return _.p("kevlar_use_library_entity")?Y&&(I.has(Y)||x[Y]):Y&&!P.has(Y)}),B=lbR(W).filter(function(Y){return B6t(W,Y.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.ju(O),_.ju(B)).sort(function(Y,K){return K.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return YtS(Y)})};
K4m=function(W,P){if(P&&iho(W,P)){var x,I,O=(I=(x=_.Jb(W,"playbackData",_.On(P,"playbackData")))!=null?x:void 0)==null?void 0:I.playerResponseJson;if(O){try{var B=JSON.parse(O);var Y=_.Jb(W,"transfer",_.On(P,"transfer")),K=yum(W,P);K&&(B=Object.assign({},B,{playerConfig:Object.assign({},B.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+K*1E3}}})}));B.cotn=Y==null?void 0:Y.cotn}catch(Z){}return B}}};
_.Stx=function(W){var P,x,I;W=(I=(x=((P=W.downloadsPageViewConfigurationEntity)!=null?P:{})[ZwR])==null?void 0:x.smartDownloadsOptInBannerVisibility)!=null?I:{};var O;return(O=_.Q(W,oZt))!=null?O:{}};
_.VT=function(W){var P,x,I;W=(I=(x=((P=W.mainDownloadsListEntity)!=null?P:{})[_.upW])==null?void 0:x.downloads)!=null?I:[];P={};x=_.n(W);for(I=x.next();!I.done;I=x.next())W=void 0,P[(W=I.value.videoItem)!=null?W:""]=!0;return P};
d3G=function(W){var P=_.VT(W);if(Object.keys(P).length===0)return!1;var x=W.mainVideoEntity;if(!x)return!0;x=_.n(Object.keys(x));for(var I=x.next();!I.done;I=x.next()){I=I.value;var O=_.Pu(I).entityId;if(P[I]&&!Lst(W,O))return!1}return!0};
_.tb=function(W){var P=_.VT(W);return mB(W).sort(function(x,I){return x.addedTimestampMillis-I.addedTimestampMillis}).map(function(x){return x.downloadedVideoEntities}).filter(function(x){var I;
return(x=x==null?void 0:(I=x.videoEntity)==null?void 0:I.key)&&!!P[x]})};
YtS=function(W){return"downloadedVideoEntities"in W?W.downloadedVideoEntities:"downloadedPlaylistEntities"in W?W.downloadedPlaylistEntities:{}};
s9o=function(W){var P=_.VT(W),x=TKU(W),I=mB(W).filter(function(O){var B,Y;return(O=O==null?void 0:(B=O.downloadedVideoEntities)==null?void 0:(Y=B.videoEntity)==null?void 0:Y.key)&&!P[O]&&!x.has(O)});
W=lbR(W);return[].concat(_.ju(I),_.ju(W)).sort(function(O,B){return B.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return YtS(O)})};
_.pR=function(W){if(!_.p("kevlar_use_library_entity"))return s9o(W);var P=mB(W).filter(function(I){var O,B;if(O=I=I==null?void 0:(O=I.downloadedVideoEntities)==null?void 0:(B=O.videoEntity)==null?void 0:B.key){var Y,K,Z;O=((K=(Y=W.mainDownloadsListEntity)==null?void 0:Y[Ibm])==null?0:(Z=K.downloads)==null?0:Z.length)?OTR(W).has(I):!1}return O}),x=lbR(W);
return[].concat(_.ju(P),_.ju(x)).sort(function(I,O){return O.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return YtS(I)})};
vZx=function(W){var P=_.VT(W),x=TKU(W);return nZt(W).filter(function(I){var O;return(I=I==null?void 0:(O=I.videoEntity)==null?void 0:O.key)&&!P[I]&&!x.has(I)})};
m3U=function(W){if(!_.p("kevlar_use_library_entity"))return vZx(W);var P=_.VT(W),x=OTR(W);return nZt(W).filter(function(I){var O;return(I=I==null?void 0:(O=I.videoEntity)==null?void 0:O.key)&&!P[I]&&x.has(I)})};
VOS=function(W,P){P=_.On(P,"settingEntity");var x,I,O;return!!((O=(I=((x=W.settingEntity)!=null?x:{})[P])==null?void 0:I.settingOptionValue)!=null?O:{}).boolValue};
_.jl=function(W){var P=_.tb(W);if(rhx(P))return 0;var x=[];P=_.n(P);for(var I=P.next();!I.done;I=P.next()){I=I.value;var O=void 0,B=void 0;if((O=I)==null?0:(B=O.videoEntity)==null?0:B.key)O=_.Pu(I.videoEntity.key).entityId,I=W,O=_.On(O,"mainVideoDownloadStateEntity"),I=_.Jb(I,"mainVideoDownloadStateEntity",O),(I=Number(I==null?void 0:I.addedTimestampMillis))&&x.push(I)}return Math.max.apply(Math,_.ju(x))};
_.QT=function(W){return W.ui.richGridMiniMode};
_.CR=function(W){return W.ui.richGridItemsPerRow};
_.tOd=function(W){return W.ui.richGridSlimItemsPerRow};
_.pAm=function(W){return W.ui.guideIsExpanded};
_.Ab=function(W){return W.ui.miniplayerIsActive};
_.j9o=function(W){return W.ui.singleOptionSurveyIsActive};
_.zK=function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.Q9R=function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.CGR=function(W){return W.ui.inlinePreviewIsActive};
_.Acd=function(W){return W.ui.inlinePreviewIsEnabled};
_.zER=function(W){return W.ui.miniplayerPlaybackState};
GNt=function(W){return W.ui.isOnline};
_.EZG=function(W){return W.ui.frostedGlassMode};
_.GK=function(W,P){return JuC(W.entities,P)};
_.En=function(W,P){return B6t(W.entities,P)};
gZS=function(W,P){var x;if(P){var I;W=(I=_.Jb(W.entities,"offlineVideoPolicy",_.On(P,"offlineVideoPolicy")))==null?void 0:I.action}else W=void 0;return(x=W)!=null?x:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
D3A=function(W,P){var x;P?(W=_.Jb(W.entities,"offlineVideoPolicy",_.On(P,"offlineVideoPolicy")),W=Number(W==null?void 0:W.expirationTimestamp)):W=void 0;return(x=W)!=null?x:0};
_.MO7=function(W){return _.sn(W.entities).length};
$3C=function(W,P){return vu(W.entities,P)};
wA7=function(W,P){return NKC(W.entities,P)};
gE=function(W,P){return(W=vu(W.entities,P))?_.fRW([W]):0};
_.hER=function(W,P){var x=_.$$("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(x){var I=W.entities;var O=IyU(I,P);if(O.length){var B=[];O=_.n(O);for(var Y=O.next();!Y.done;Y=O.next())(Y=Lwd(I,Y.value))&&B.push(Y);I=B}else I=[]}else I=fbU(W.entities,P);var K;if(x){var Z=W.entities;P?(P=_.On(P,"musicPlaylist"),Z=(K=Z.musicPlaylist)==null?void 0:K[P],K=Z!=null&&Z.tracks?Z.tracks.length:0):K=0}else K=W.entities,P?(P=_.On(P,"mainPlaylistEntity"),K=(Z=K.mainPlaylistEntity)==null?void 0:Z[P],K=K!=null&&K.videos?
K.videos.length:0):K=0;return I.length!==K?0:I?NQm(I):0};
_.HwR=function(W){return W.download.isLeaderTab};
_.eE7=function(W,P,x){if(!P&&x){var I=W.entities;if(x){var O=TQx(x),B,Y;P=(Y=(B=_.Jb(I,"offlineabilityEntity",_.On(O,"offlineabilityEntity")))==null?void 0:B.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else P="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else B=W.entities,P?(Y=TQx(P),P=(O=(I=_.Jb(B,"offlineabilityEntity",_.On(Y,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?O:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):P="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return P};
ccd=function(W,P){W=W.entities;if(P){P=TQx(P);var x,I;P=(I=(x=_.Jb(W,"offlineabilityEntity",_.On(P,"offlineabilityEntity")))==null?void 0:x.addToOfflineButtonState)!=null?I:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else P="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return P};
_.ayd=function(W){var P=W.entities;W=GNt(W);var x=VOS(P,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.p("kevlar_modern_downloads_page")&&x)var I=!1;else{var O,B;P=(B=(O=((I=P.downloadsPageViewConfigurationEntity)!=null?I:{})[ZwR])==null?void 0:O.smartDownloadsOptInBannerVisibility)!=null?B:{};I=W?!!P.visibleWithConnection:!!P.visibleWithoutConnection}return I};
_.bwo=function(W){return VOS(W.entities,"SMART_DOWNLOADS_ENABLED")};
_.kNG=function(W){return d3G(W.entities)};
U3m=function(W){return _.tb(W.entities).every(function(P){var x;return(P==null?void 0:(x=P.transferEntity)==null?void 0:x.transferState)&&!Xzt.includes(P.transferEntity.transferState)})};
_.XAx=function(W,P){return Lst(W.entities,P)};
fy8=function(W,P){if(P){var x,I;W=(I=(x=_.Jb(W.entities,"downloadStatusEntity",_.On(P,"downloadStatusEntity")))==null?void 0:x.downloadState)!=null?I:"DOWNLOAD_STATE_UNKNOWN"}else W="DOWNLOAD_STATE_UNKNOWN";return W};
D5=function(W,P){return yum(W.entities,P)};
rcW=function(W){W=_.N6U(W);var P=W.hours===void 0?0:W.hours,x=W.minutes===void 0?0:W.minutes,I=W.seconds===void 0?0:W.seconds,O=P>0;W=[];O&&(P=_.lyW(P),W.push(P));P=O;P=P===void 0?!1:P;x=(["af","be","lt"].includes(_.MB)||P)&&x<10?T6A().format(x):(new Intl.NumberFormat("en-u-nu-latn")).format(x);W.push(x);x=T6A().format(I);W.push(x);x=":";"da fi id si sr sr-Latn".split(" ").includes(_.MB)&&(x=".");return W.join(x)};
_.N6U=function(W){var P=W.hours||0,x=W.minutes||0,I=W.seconds||0;P=I+x*60+P*3600+(W.days||0)*86400+(W.weeks||0)*604800+(W.months||0)*2629800+(W.years||0)*31557600;if(P<=0)return{hours:0,minutes:0,seconds:0};W=P;P=Math.floor(W/3600);W%=3600;x=Math.floor(W/60);I=Math.floor(W%60);return{hours:P,minutes:x,seconds:I}};
_.lyW=function(W){W=(new Intl.NumberFormat("en-u-nu-latn")).format(W);var P=["fr"],x="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(_.MB)?W.replace(",","\u00a0"):P.includes(_.MB)?W.replace(",","\u202f"):x.includes(_.MB)?W.replace(",","."):W};
T6A=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
iwR=function(W){try{return(new _.$z(5)).format(W)}catch(P){}};
wE=function(W){return{thumbnailOverlayDownloadingRenderer:{state:W}}};
REm=function(W){if(W=iwR(W))return{thumbnailOverlaySidePanelRenderer:{text:_.Ru(W),icon:{iconType:"PLAYLISTS"}}}};
F4R=function(){var W=_.KK("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Ru(W),icon:{iconType:"PLAY_ALL"}}}};
qtR=function(W){W=_.Hu(W,2);return _.MB!=="ru"&&_.MB!=="es_419"&&_.MB!=="es-419"&&_.MB!=="es"&&_.MB!=="es_US"&&_.MB!=="es-US"&&_.MB!=="fr"&&_.MB!=="pl"&&_.MB!=="it"&&_.MB!=="nl"&&_.MB!=="uk"&&_.MB!=="fr_CA"&&_.MB!=="fr-CA"||W===""?W:W[0].toLocaleUpperCase()+W.substring(1)};
W8S=function(W){return function(P){var x=W(),I=_.Hu(P,x.dateFormat);P=_.Hu(P,x.timeFormat);var O=L4d.DATETIMEFORMATS[x.joinerStyle];O=O.replace(/'(?!')/g,"");O=O.replace("{0}",P);O=O.replace("{1}",I);return x.capitalize(O)}};
PgC=function(W){return W?typeof W.seconds==="string"&&(W.nanos===void 0||typeof W.nanos==="number"):!1};
xGG=function(W){return new Date(Number(W.seconds)*1E3+(W.nanos||0)*1E-6)};
_.Hu=function(W,P){if(typeof W.getTime==="function")W={date:W};else if(PgC(W))W={date:xGG(W)};else if(typeof PgC(W.timestamp)&&typeof W.i18nInternalSecondsEastOfUtc==="number")W={date:xGG(W.timestamp),timeZone:el(-W.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(W));var x=W;W=x.date;x=x.timeZone;P=If8(P).format(W,x);_.MB==="zh-TW"&&(W=x?Number(If8("H").format(W,x)):W.getHours(),P=W<5?P.replace("\u4e0a\u5348","\u51cc\u6668"):W<8?P.replace("\u4e0a\u5348","\u65e9\u4e0a"):W<12?
P.replace("\u4e0a\u5348","\u4e0a\u5348"):W<13?P.replace("\u4e0b\u5348","\u4e2d\u5348"):W<19?P.replace("\u4e0b\u5348","\u4e0b\u5348"):P.replace("\u4e0b\u5348","\u665a\u4e0a"));return P};
If8=function(W){if(OgW.has(W))return OgW.get(W);var P=JNC(W);P=Bx8(P);nP8!==!0&&(nP8=!0);YxS=!0;YxS=!1;P=new cu(P,L4d);OgW.set(W,P);return P};
JNC=function(W){return(new cu(W,L4d)).patternParts_.map(function(P){return P.type===0?"'"+P.text+"'":P.text}).join("")};
Bx8=function(W){return _.MB==="en"||_.MB==="es_US"||_.MB==="es-US"?W:W.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(P,x,I){return"H".repeat(x.length)+I})};
smC=function(W,P){yN8||(_.aY=_.K8U,yN8=new Zgx);var x=yN8;a:if(W=oPG(W),P=oPG(P||new Date),W>P)x=W.getTime()-P.getTime()>6048E5?_.Hu(W,1):Sx7(W);else{for(var I=0;uzC(W,12*(I+1))<P;)++I;if(I>0)x=x.format(-I,0);else{for(I=0;uzC(W,I+1)<P;)++I;if(I>0)x=x.format(-I,2);else{W=P.getTime()-W.getTime();P=_.n(dGm);for(I=P.next();!I.done;I=P.next()){I=I.value;var O=I.unit,B=Math.floor(W/I.unitDuration);if(B>=(I.threshold===void 0?1:I.threshold)){x=x.format(-B,O);break a}}x=x.format(-0,7)}}}return x};
oPG=function(W){if(typeof W.getTime==="function")return W;if(PgC(W))return xGG(W);throw Error("Df`"+JSON.stringify(W));};
uzC=function(W,P){for(var x=0,I;;++x)if(I=new Date(W.getFullYear(),W.getMonth()+P,W.getDate()-x,W.getHours(),W.getMinutes(),W.getSeconds()),I.getMonth()===(W.getMonth()+P)%12)return I};
_.bx=function(W){return{runs:[{text:W}]}};
_.kz=function(W){if(W&&W.simpleText)return W.simpleText;var P="";if(W&&W.runs)for(var x=0;x<W.runs.length;x++)W.runs[x].text&&(P+=W.runs[x].text);return P};
mGd=function(W,P,x,I){return W.videoEntity&&!W.policyEntity&&x!=="DOWNLOAD_STATE_FAILED"?[wE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Sl(W.policyEntity)&&P!=="TRANSFER_STATE_FAILED"&&P!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?P==="TRANSFER_STATE_PAUSED_BY_USER"?[wE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.ux(P)?[wE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:W.videoEntity.lengthSeconds?vPG(W.videoEntity.lengthSeconds,I):[]:
[wE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
vPG=function(W,P){var x=[{thumbnailOverlayTimeStatusRenderer:{text:_.Ru(rcW({seconds:W})),style:"DEFAULT"}}];P&&(W=P<=0||W<=0?0:P>=W?100:Math.ceil(P*100/W),W>0&&x.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:W}}));return x};
Vvm=function(W,P,x,I,O){if(P==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(_.ux(P)||P==="TRANSFER_STATE_PRE_TRANSFER")var B=[wE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Y,K;if(P==="TRANSFER_STATE_COMPLETE"&&((Y=W.mainPlaylistEntity)==null?0:(K=Y.videos)==null?0:K.length)){if(_.p("web_modern_collections_v2")){var Z;var d=(B=W.mainPlaylistEntity)==null?void 0:(Z=B.videos)==null?void 0:Z.length;B=(B=iwR(d))?{thumbnailOverlayBottomPanelRenderer:{text:_.Ru(B),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var v;B=REm((d=W.mainPlaylistEntity)==null?void 0:(v=d.videos)==null?void 0:v.length)}var m;B=[F4R(),Object.assign({},(m=B)!=null?m:{})]}else B=[]}m=B;a:if(P==="TRANSFER_STATE_PRE_TRANSFER")x=FB(_.KK("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(P==="TRANSFER_STATE_TRANSFER_IN_QUEUE")x=FB(_.KK("WAITING_TO_DOWNLOAD"));else if(_.ux(P))x=Math.floor(x*100).toString(),x=FB(_.KK("DOWNLOADING_PERCENT",{percent:x},"Downloading... "+x+"%"));else{if(I&&(_.p("playlist_is_offline_selector_killswitch")&&
(O=_.FY().resolve(_.bE).isNetworkAvailable()),O)){x=LaC(_.KK("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Fax(I));break a}x=void 0}P=P==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.KK("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},m.length?{thumbnailOverlays:m}:{},x?{viewPlaylistText:x}:{viewPlaylistText:_.bx("")},P.length?{badges:P}:{})};
tvm=function(W,P,x,I,O,B){if(P==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(I==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Y=mGd(W,P,I);if(W.videoEntity&&!W.policyEntity&&I!=="DOWNLOAD_STATE_FAILED"){var K=_.KK("WAITING_TO_DOWNLOAD");if(K)return{shortViewCountText:_.bx(K),publishedTimeText:void 0,thumbnailOverlays:Y}}if(!Sl(W.policyEntity)){B=W.policyEntity&&!lRo(W.policyEntity)?_.KK("DOWNLOAD_EXPIRED",{},"Download expired"):
_.KK("TRANSFER_FAILED",{},"Download failed");var Z;if((Z=W.policyEntity)==null?0:Z.shortMessageForDisabledAction)B=W.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:FB(B),publishedTimeText:void 0,thumbnailOverlays:Y}}if(P==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.bx(_.KK("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Y};if(P==="TRANSFER_STATE_FAILED"||P==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.bx(_.KK("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Y};if(P==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(Z=_.KK("WAITING_TO_DOWNLOAD"),I==="DOWNLOAD_STATE_PAUSED"&&(Z=_.KK("DOWNLOAD_PAUSED",{},"Download paused")),Z))return{shortViewCountText:_.bx(Z),publishedTimeText:void 0,thumbnailOverlays:Y};if(_.ux(P))return W=Math.floor(x*100).toString(),{shortViewCountText:_.bx(_.KK("DOWNLOADING_PERCENT",{percent:W},"Downloading... "+W+"%")),publishedTimeText:void 0,thumbnailOverlays:Y};P=void 0;W.videoEntity.publishedTimestampMillis&&
(P=new Date,O&&(P=new Date(O)),P=FB(smC(new Date(Number(W.videoEntity.publishedTimestampMillis)),P)));O=[];_.p("kevlar_woffle_badge_killswitch")||(O=[{metadataBadgeRenderer:{label:_.KK("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var d;W=FB((d=W.videoEntity.localizedStrings)==null?void 0:d.viewCount);return Object.assign({},B?{shortViewCountText:void 0}:{shortViewCountText:W},B?{}:{publishedTimeText:P},{badges:O,thumbnailOverlays:Y})};
jmt=function(W,P){W=W===void 0?pKS:W;switch(P.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:P.payload.playlistId,inviteLinkURL:P.payload.inviteLinkUrl};default:return W}};
Cgm=function(W,P){W=W===void 0?Qmx:W;switch(P.type){case "SET_CURRENT_FORM_ID":return P=P.payload.formId,W.currentFormId===P?W:{currentFormId:P,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var x=P.payload;P=x.groupId;x=x.command;if(W.currentFormId){var I=Object.assign({},W.commandsMap);I[P]=x;W=Object.assign({},W,{commandsMap:I})}return W;case "RESET_COMMAND_MAP":return Object.assign({},W,{commandsMap:{}});default:return W}};
zlS=function(W,P){W=W===void 0?ANo:W;switch(P.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},W,{guideIsExpanded:P.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},W,{scrollAtTop:P.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},W,{guideIsVisibleButNotPersistent:P.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},W,{miniplayerIsActive:P.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},W,{singleOptionSurveyIsActive:P.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},W,{slimlineSurveyRatingSelectedIndex:P.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},W,{richGridMiniMode:P.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},W,{richGridItemsPerRow:P.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},W,{richGridSlimItemsPerRow:P.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},W,{richGridContainerWidth:P.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},W,{richGridStyle:P.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:P.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},W,{inlinePreviewIsActive:P.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},W,{inlinePreviewIsEnabled:P.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},W,{darkModeIsEnabled:P.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
W,{miniplayerPlaybackState:P.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},W,{tabGesturesIsActive:P.payload});case "SET_ONLINE_STATUS":return Object.assign({},W,{isOnline:P.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},W,{chipBarIsSticky:P.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},W,{frostedGlassMode:P.payload});default:return W}};
EPo=function(W,P){W=W===void 0?Gs8:W;switch(P.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},W,{transcription:P.payload});case "SET_OVERLAY_STATE":return Object.assign({},W,{overlay:P.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return W}};
afm=function(){return Ya(Object.assign({},{continuation:gPC,entities:dcm,download:DGR,reportChannelAbuse:MvR,share:$GA,talkToRecs:wKG,ui:zlS,voiceSearch:EPo,watch:hlm,ypc:Hgd,shorts:elG,radioButtonGroup:Cgm,collabInviteLink:jmt},cNR))};
UGo=function(){return _.p("web_player_entities_middleware")?new Un(afm(),[bg7,ks7]):new Un(afm(),[bg7])};
_.Xe=function(){XKW||(XKW=UGo());return XKW};
ff8=function(W,P,x){if(W.length)return{titleText:_.Ru(P!=null?P:_.KK("DOWNLOADS",void 0,"Downloads")),contents:W.map(function(I){var O=I.videoEntity;I={videoId:O.videoId,title:FB(O.title),shortBylineText:FB(I.channelEntity.title),thumbnail:O.thumbnail};var B=O.videoId?D5(_.Xe().getState(),O.videoId):0;O.videoId&&x?I.navigationEndpoint=_.iB(O.videoId,x,void 0,void 0,B):O.videoId&&(I.navigationEndpoint=R2U(O.videoId,B,O.lengthSeconds));O.lengthSeconds&&(I.thumbnailOverlays=vPG(O.lengthSeconds,B));return{playlistPanelVideoRenderer:I}}),
totalVideos:W.length}};
NxC=function(W){return(W=(0,_.jU.getValueByKeys)(W,"playlistId"))?{playlistId:W}:null};
lfW=function(){return{}};
Txm=function(W,P){return new _.yE(function(x,I){W.then(function(O){if(O){if(O=P(O))return x(O);I()}},I)})};
rNC=function(W){var P,x,I,O=(P=W.contents)==null?void 0:(x=P.twoColumnWatchNextResults)==null?void 0:(I=x.autoplay)==null?void 0:I.autoplay,B,Y,K;P=(B=W.contents)==null?void 0:(Y=B.twoColumnWatchNextResults)==null?void 0:(K=Y.playlist)==null?void 0:K.playlist;return O&&P&&P.playlistId?{rawResponse:W,autoplayRenderer:O,playlistPanelRenderer:P,playlistId:P.playlistId}:null};
Rlm=function(W){var P=P===void 0?"UNKNOWN_INTERFACE":P;if(W.length===1)return W[0];var x=igm[P];if(x){x=new RegExp(x);for(var I=_.n(W),O=I.next();!O.done;O=I.next())if(O=O.value,x.exec(O))return O}var B=[];Object.entries(igm).forEach(function(Y){var K=_.n(Y);Y=K.next().value;K=K.next().value;P!==Y&&B.push(K)});
x=new RegExp(B.join("|"));W.sort(function(Y,K){return Y.length-K.length});
I=_.n(W);for(O=I.next();!O.done;O=I.next())if(O=O.value,!x.exec(O))return O;return W[0]};
_.fR=function(W){return"/youtubei/v1/"+Rlm(W)};
_.NB=function(W){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:W}}}}};
_.lx=function(W){return _.NB(_.bx(W))};
F88=function(W,P){var x={mode:"NORMAL"};W&&(x.autoplayVideo=W.navigationEndpoint,x.nextButtonVideo=W.navigationEndpoint);P&&(x.previousButtonVideo=P.navigationEndpoint);return x};
WXt=function(W,P,x){if(!x||!x.sets)return{sets:[F88(W,P)]};var I=x.sets.find(function(Y){return Y.mode==="NORMAL"}),O=(0,_.jU.unsafeClone)(x);
if(!I)return O.sets.push(F88(W,P)),O;if(!W)return x;I=_.jU.getValueByKeys.apply(null,[I].concat(_.ju(qxt)));var B=_.jU.getValueByKeys.apply(null,[W].concat(_.ju(L8W)));if(I===B)return x;O.sets=O.sets.filter(function(Y){return Y.mode!=="NORMAL"});
O.sets.push(F88(W,P));return O};
PcS=function(W){return!!W.playlistPanelVideoRenderer&&!W.playlistPanelVideoRenderer.unplayableText};
xHx=function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.title};
IiR=function(W,P){if(P.contents&&!(W>=P.contents.length)&&(W=P.contents.slice(W).find(PcS)))return W.playlistPanelVideoRenderer};
O6C=function(W,P){if(P.contents)return(P=P.contents.find(function(x){return!!x.playlistPanelVideoRenderer&&x.playlistPanelVideoRenderer.videoId===W}))?P.playlistPanelVideoRenderer:void 0};
JeA=function(W,P){return P.contents?P.contents.findIndex(function(x){return!!x.playlistPanelVideoRenderer&&x.playlistPanelVideoRenderer.videoId===W}):-1};
Bbt=function(W,P){return P.contents?P.contents.findIndex(function(x){return!!x.playlistPanelVideoRenderer&&x.playlistPanelVideoRenderer.playlistSetVideoId===W}):-1};
n9U=function(W,P){W.contents&&P!==-1&&W.contents.splice(P,1).length===1&&W.totalVideos!==void 0&&(--W.totalVideos,delete W.videoCountText)};
_.Y3o=function(W){var P=[];if(!W||!W.contents)return P;W=_.n(W.contents);for(var x=W.next();!x.done;x=W.next())x=x.value,x.playlistPanelVideoRenderer&&x.playlistPanelVideoRenderer.videoId&&P.push(x.playlistPanelVideoRenderer.videoId);return P};
_.yem=function(W){if(W&&W.contents)return(W=W.contents.find(function(P){return!!P.playlistPanelVideoRenderer&&!!P.playlistPanelVideoRenderer.selected})||W.contents[W.currentIndex])?W.playlistPanelVideoRenderer:void 0};
KXd=function(W,P,x,I,O,B,Y){O=O===void 0?!1:O;B=B===void 0?!1:B;Y=Y===void 0?!1:Y;if(W.contents&&W.contents.length!==0){I&&(W.contents=W.contents.filter(I));I=W.contents.length;for(var K=0;K<I;K++){var Z=W.contents[K].playlistPanelVideoRenderer;Z&&(K===P?(B&&delete Z.menu,Z.indexText=_.bx("\u25b6")):O||W.isInfinite||Z.indexText===void 0?delete Z.indexText:Z.indexText=_.bx((K+1+x).toString()))}W.currentIndex=P+x;Y&&(delete W.videoCountText,W.totalVideos=I)}};
_.TK=function(W){W=Z6G(W);if(W){var P=W.length;var x=-69%P;x<0&&(x=P+x);W=W.slice(P-x)+W.slice(0,P-x)}else W="";x="";for(P=0;P<W.length&&W[P]!==o9G;P++)x+=W[P];return x};
_.S3A=function(W,P){var x=document.body;P=P===void 0?function(K){return K}:P;
var I,O=null;W=_.n(W);for(I=W.next();!I.done;I=W.next()){var B=I.value;I=document.createElement("div");O||(O=I);var Y=B[0];B=B[1];Y&&(I.id=P(Y));if(B)for(Y=_.n(B),B=Y.next();!B.done;B=Y.next())I.classList.add(P(B.value));x.appendChild(I);x=I}return[O,x]};
uU7=function(W,P){for(var x="",I=0;I<P;I++)x+=W.charAt(Math.floor(Math.random()*W.length));return x};
rE=function(W){return uU7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",W)};
ix=function(W){return uU7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",W)};
RY=function(W){return uU7("0123456789",W)};
Fe=function(){var W=performance.now(),P=new Date;var x="2."+P.getFullYear()+String(P.getMonth()+1).padStart(2,"0")+String(P.getDate()).padStart(2,"0");for(var I,O=Math.floor(Math.random()*11)+15,B=[],Y=0;Y<O;Y++)B.push(Math.floor(Math.random()*26476865)+24547720);I=B.join(",");var K=rE(10),Z=rE(100),d=rE(102),v=rE(106),m=rE(108),t=rE(11),C=rE(1140),z=rE(123),D=rE(14),w=rE(16),a=rE(1900),k=rE(23),T=rE(26),N=rE(34),Io=rE(397),F=rE(44),nm=rE(5),pm=rE(72),zR=rE(74),Am=rE(75),kW=rE(88),$W=rE(91),ao="rr4---sn-q4flrnss rr2---sn-q4flrnss rr1---sn-q4flrn7k rr5---sn-q4flrnes rr5---sn-q4fl6ns7 rr4---sn-q4fl6nsy rr2---sn-q4flrnl7 rr5---sn-t0a7lnee rr3---sn-hgn7rnls rr5---sn-q4flrnl6 rr4---sn-ntq7yner rr5---sn-q4flrnsd rr1---sn-q4flrnlz rr3---sn-5hne6n6e rr5---sn-q4fl6ndz rr1---sn-5hneknee rr3---sn-q4fl6n6z rr2---sn-q4fl6nlz rr1---sn-q4fzen7r rr3---sn-q4flrney".split(" ");
var e8=ao[Math.floor(Math.random()*ao.length)];var iC=(new Date("2010-01-01")).getTime();var hw=(new Date(iC+Math.random()*((new Date).getTime()-iC))).toISOString().split("T")[0];for(var dk,Oc=[],Bm=0;Bm<4;Bm++)Oc.push(Math.floor(Math.random()*100));dk=Oc.join(".");var GA=Number(RY(5)),KM=Number(RY(6)),PZ=Number(RY(7)),j$=Number(RY(9)),YW=RY(1),QZ=RY(10),ez=RY(16),b3=RY(19),D3=RY(2),lp=RY(20),TE=RY(21),sc=RY(3),rS=RY(4),jz=RY(5),yf=RY(6),CM=RY(7),Vf=RY(8),Kx=RY(9);var SV=uU7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var k4=[ix(5),ix(5),ix(5)].join("%2C"),to=[RY(3),RY(5),RY(5)].join("%2C"),QE=ix(0),Xl=ix(1),t9=ix(10),RG=ix(108),F6=ix(11),EW=ix(12),pl=ix(13),uE=ix(14),Bi=ix(15),i5=ix(16),uO=ix(17),tm=ix(18),wS=ix(19),Xt=ix(2),VZ=ix(20),Ov=ix(22),M5=ix(23),ZB=ix(24),tw=ix(266),vm=ix(3),oG=ix(30),zk=ix(34),Yi=ix(35),j5=ix(36),m9=ix(4),cZ=ix(40),RE=ix(43),c9=ix(47),X_=ix(5),FP=ix(6),q7=ix(7),dM=ix(75),$4=ix(8),h2=ix(80),ut=ix(9),J2="https://www."+ix(12)+".com",Uw={},je={},fE={},RQ8={},pO={},TG={},r2={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:I}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:x},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+ix(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:x},{key:"client.name",value:"WEB"},{key:"client.fexp",value:I}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:TE+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+ix(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:cZ,ypcGetOfflineUpsellEndpoint:{params:h2}},trackingParams:Yi+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&cnr="+D3+"&ratebypass=yes&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&c=WEB&txp="+CM+"&n="+w+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:KM,width:640,height:360,lastModified:ez,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:CM,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+to+"&mn="+
k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&cnr="+D3+"&ratebypass=yes&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&c=WEB&txp="+CM+"&n="+w+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+RG+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:KM,width:1280,
height:720,lastModified:ez,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:CM,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+to+"&mn="+k4+"&ms="+
k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Kx+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:PZ,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Kx,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:PZ,approxDurationMs:CM},{itag:248,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+to+"&mn="+k4+"&ms="+k4+"&mv="+
Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fwebm&ns="+ZB+"&gir="+vm+"&clen="+Kx+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:PZ,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Kx,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:PZ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:399,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Kx+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:PZ,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Kx,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:PZ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:136,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Kx+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:PZ,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Kx,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KM,approxDurationMs:CM},{itag:247,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+to+"&mn="+
k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fwebm&ns="+ZB+"&gir="+vm+"&clen="+Kx+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:PZ,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Kx,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:398,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Kx+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:PZ,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Kx,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:135,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:KM,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KM,approxDurationMs:CM},{itag:244,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+to+"&mn="+
k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fwebm&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+RG+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:KM,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:397,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:KM,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:134,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:KM,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KM,highReplication:!0,approxDurationMs:CM},{itag:243,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fwebm&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:KM,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:396,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:KM,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:133,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:KM,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KM,approxDurationMs:CM},{itag:242,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+to+"&mn="+
k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fwebm&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:KM,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:395,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:KM,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:160,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:KM,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:GA,approxDurationMs:CM},{itag:278,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+to+"&mn="+
k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fwebm&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:KM,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:GA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:394,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&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="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=video%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:GA,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:GA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:CM},{itag:140,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=audio%2Fmp4&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:KM,
initRange:{start:"0",end:"631"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:KM,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:CM,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+
D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=audio%2Fwebm&ns="+ZB+"&gir="+vm+"&clen="+CM+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:GA,initRange:{start:"0",end:"265"},indexRange:{start:sc,
end:rS},lastModified:ez,contentLength:CM,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:GA,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:CM,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=audio%2Fwebm&ns="+
ZB+"&gir="+vm+"&clen="+CM+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:GA,initRange:{start:"0",end:"265"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:CM,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:GA,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:CM,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+e8+".googlevideo.com/videoplayback?expire="+QZ+"&ei="+k+"&ip="+dk+"&id=o-AF"+RE+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+to+"&mn="+k4+"&ms="+k4+"&mv="+Xl+"&mvi="+YW+"&pl="+D3+"&initcwndbps="+CM+"&siu="+YW+"&spc="+F+"&vprv="+YW+"&svpuc="+YW+"&mime=audio%2Fwebm&ns="+ZB+"&gir="+vm+"&clen="+Vf+"&dur="+Vf+"&lmt="+ez+"&mt="+QZ+"&fvip=3&keepalive="+vm+"&c=WEB&txp="+
CM+"&n="+i5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:KM,initRange:{start:"0",end:"265"},indexRange:{start:sc,end:rS},lastModified:ez,contentLength:Vf,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:KM,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:CM,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="+Kx+"&docid="+t+"&ei="+k+"&feature="+K+"&fexp="+QE+"&ns="+Xt+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Xl+"&el="+t9+"&len="+rS+"&of="+Ov+
"&uga="+D3+"&vm="+tw},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Kx+"&docid="+t+"&ei="+k+"&feature="+K+"&fexp="+QE+"&ns="+Xt+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Xl+"&el="+t9+"&len="+rS+"&of="+Ov+"&uga="+D3+"&vm="+tw},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Kx+"&docid="+t+"&ei="+k+"&feature="+K+"&fexp="+QE+"&ns="+Xt+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Xl+"&el="+t9+"&len="+rS+"&of="+Ov+"&uga="+D3+"&vm="+tw},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+k+"&m="+kW+"&oid="+Ov+"&plid="+w+"&pltype="+q7+"&ptchn="+Ov+"&ptk="+D+"&video_id="+t},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Kx+"&docid="+t+"&ei="+k+"&event="+uE+"&feature="+K+"&fexp="+QE+"&ns="+Xt+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Xl},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+t+"&ei="+k+"&feature="+
K+"&len="+rS+"&ns="+Xt+"&plid="+w+"&ver="+YW,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+t+"&caps="+vm+"&opi="+Kx+"&xoaf="+YW+"&hl="+Xt+"&ip="+dk+"&ipbits="+YW+"&expire="+QZ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+dk+"&key="+vm+"&lang="+nm,name:{simpleText:uE},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+t+"&caps="+vm+"&opi="+Kx+"&xoaf="+YW+"&hl="+Xt+"&ip="+dk+"&ipbits="+YW+"&expire="+QZ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+dk+"&key="+vm+"&kind="+vm+"&lang="+Xt,name:{simpleText:FP},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:F6,title:$4,lengthSeconds:"1155",keywords:[t9,EW,m9,$4],
channelId:ZB,isOwnerViewing:!1,shortDescription:EW,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+j5+"G&rs="+zk,width:168,height:94},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+j5+"G&rs="+zk,width:196,height:110},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+j5+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+j5+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
t+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:CM,author:pl,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:CM,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Ov+"/featured_channel.jpg?v="+$4,width:40,height:40}]},trackingParams:Yi+"=",navigationEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"/channel/"+ZB,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ZB}},channelName:pl,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:i5}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ZB,showPreferences:!1,subscribedButtonText:{runs:[{text:pl}]},unsubscribedButtonText:{runs:[{text:wS}]},trackingParams:Yi+"=",unsubscribeButtonText:{runs:[{text:wS}]},serviceEndpoints:[{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ZB],params:$4}},{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:cZ,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Yi+"=",dialogMessages:[{runs:[{text:F6},{text:tm},{text:i5}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ut}]},serviceEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ZB],params:$4}},accessibility:{label:wS},trackingParams:Yi+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:t9}]},accessibility:{label:Bi},trackingParams:Yi+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ut}},unsubscribeAccessibility:{accessibilityData:{label:q7}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Vf},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ZB],params:$4}},unsubscribeCommand:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ZB],params:$4}},addToWatchLaterCommand:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:F6,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:F6}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+t+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+j5+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
t+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+F6,width:1280,height:720},title:{simpleText:F6},description:{simpleText:m9},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+FP,externalChannelId:ZB,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:CM,category:"Travel & Events",publishDate:hw,ownerChannelName:pl,uploadDate:hw}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:F6},trackingParams:Yi+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:cZ,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Yi+"="}}],headerText:{simpleText:pl},icon:{infoCardIconRenderer:{trackingParams:Yi+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Yi+"="}},trackingParams:Yi+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Yi+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+F6+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:SV,interpreterSafeUrl:(Uw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+oG+".js",Uw),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:EW},{text:F6,bold:!0}]},endpoint:{clickTrackingParams:cZ,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:Yi+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:pl}]},actionButton:{buttonRenderer:{text:{runs:[{text:FP}]},navigationEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+t,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
t,target:"TARGET_NEW_WINDOW"}},trackingParams:Yi+"="}},trackingParams:Yi+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+pm+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+pm+"=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:CM,endMs:CM,title:{accessibility:{accessibilityData:{label:t9}},simpleText:pl},metadata:{simpleText:FP},callToAction:{simpleText:tm},dismiss:{simpleText:m9},endpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"/channel/"+ZB,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ZB}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:X_}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ZB,showPreferences:!1,
subscribedButtonText:{runs:[{text:uO}]},unsubscribedButtonText:{runs:[{text:X_}]},trackingParams:Yi+"=",unsubscribeButtonText:{runs:[{text:i5}]},serviceEndpoints:[{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ZB],params:$4}},{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:cZ,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Yi+
"=",dialogMessages:[{runs:[{text:i5},{text:VZ},{text:t9}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:uE}]},serviceEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ZB],params:$4}},accessibility:{label:EW},trackingParams:Yi+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:tm}]},
accessibility:{label:pl},trackingParams:Yi+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:t9}},unsubscribeAccessibility:{accessibilityData:{label:uO}}}},trackingParams:Yi+"=",isSubscribe:!0,id:lp}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+j5+"G&rs="+N,width:168,height:94},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+j5+"G&rs="+zk,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+j5+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+j5+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+t+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:CM,endMs:CM,title:{accessibility:{accessibilityData:{label:m9}},simpleText:Bi},metadata:{simpleText:uO},endpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
F6,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:F6,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+e8+".googlevideo.com/videoplayback?source=youtube&oeis="+YW+"&c=WEB&oad="+rS+"&ovd="+rS+"&oaad="+jz+"&oavd="+jz+"&ocs="+sc+"&oewis="+YW+"&oputc="+YW+"&ofpcc="+YW+"&siu="+YW+"&msp="+YW+"&odepv="+YW+
"&id=o-AF"+RE+"&ip="+dk+"&initcwndbps="+CM+"&mt="+QZ+"&oweuc="+QE}}}}},trackingParams:Yi+"=",id:lp,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:m9}},simpleText:F6},style:"DEFAULT"}}]}}],startMs:CM,trackingParams:Yi+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:YW,offsetEndMilliseconds:jz},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kx+";dc_trk_cid="+Kx+";dc_dbm_token="+m+";ord="+QZ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";dc_rui="+YW+";dc_exteid="+lp+";dc_av="+sc+";dc_sk="+YW+";dc_ctype="+D3+";dc_ref=http://www.youtube.com/video/"+F6+";dc_pubid="+YW+";dc_btype=23?gclid="+$W+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+YW+"&ns="+YW+"&event="+YW+"&device="+YW+"&content_v="+t+"&el="+t9+"&ei="+k+"&devicever="+x+"&bti="+CM+"&format="+yf+"&break_type="+YW+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+YW+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+dk+"&slot_pos="+YW+"&slot_len="+YW+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+to+"&ad_len="+jz+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
F6+"&aqi="+k+"&ad_rmp="+YW+"&sli="+YW}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+
";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+yf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+CM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&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"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&ctype="+sc+"&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"+
C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_engaged_view&ctype="+sc+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+yf+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Kx+";dc_trk_cid="+Kx+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";ord="+Kx+";dc_rui="+YW+";dc_exteid="+b3+";dc_av="+YW+";dc_sk="+YW+";dc_ctype="+D3+";dc_pubid="+YW+";dc_btype=3?gclid="+$W+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+M5+"&ad_cpn=[AD_CPN]&id="+FP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FP+"&dc_pubid="+YW+"&dc_exteid="+lp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+M5+"&ad_cpn=[AD_CPN]&id="+FP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+YW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FP+"&avm="+YW+"&dc_pubid="+YW+"&dc_exteid="+
lp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&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="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
d+"&sig="+M5+"&ad_cpn=[AD_CPN]&id="+FP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+YW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FP+"&dc_pubid="+YW+"&dc_exteid="+lp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+yf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+yf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:cZ,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+
sc+"&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/"+t+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Yi+"="},trackingParams:Yi+
"=",templatedCountdown:{templatedAdText:{text:q7,isTemplated:!0,trackingParams:Yi+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:$4,isTemplated:!1,trackingParams:Yi+"="},trackingParams:Yi+"="}},trackingParams:Yi+"=",skipOffsetMilliseconds:5E3}},trackingParams:Yi+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:wS},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Yi+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:wS,isTemplated:!1,trackingParams:Yi+"="},trackingParams:Yi+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:X_,isTemplated:!0,trackingParams:Yi+"="}},trackingParams:Yi+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:cZ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(je.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+Xt+"&origin=www.youtube.com&ata_theme="+m9,je),trackingParams:Yi+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Yi+"="}},hoverText:{runs:[{text:i5}]},trackingParams:Yi+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+c9+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Yi+"="},headline:{text:q7,isTemplated:!1,trackingParams:Yi+"="},description:{text:X_,
trackingParams:Yi+"="},actionButton:{buttonRenderer:{text:{simpleText:F6},navigationEndpoint:{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kx+";dc_trk_cid="+Kx+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";ord="+Kx+";dc_rui="+YW+";dc_exteid="+lp+";dc_av="+YW+";dc_sk="+YW+";dc_ctype="+D3+";dc_pubid="+YW+";dc_btype=3?gclid="+$W+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Yi+"="}},startMs:YW,trackingParams:Yi+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pl},elementId:uO}},elementId:q7,trackingParams:Yi+"=",legacyInfoCardVastExtension:ut,sodarExtensionData:{siub:tm,bgub:EW,scs:Bi,bgp:i5},externalVideoId:F6,adLayoutLoggingData:{serializedAdServingDataEntry:Bi},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+c9+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Yi+"="},
headline:{text:EW,isTemplated:!1,trackingParams:Yi+"="},description:{text:uE,isTemplated:!1,trackingParams:Yi+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:F6},navigationEndpoint:{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kx+";dc_trk_cid="+Kx+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";ord="+Kx+";dc_rui="+YW+";dc_exteid="+
lp+";dc_av="+YW+";dc_sk="+YW+";dc_ctype="+D3+";dc_pubid="+YW+";dc_btype=3?gclid="+$W+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+
YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Yi+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Yi+"="}},navigationEndpoint:{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kx+";dc_trk_cid="+
Kx+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";ord="+Kx+";dc_rui="+YW+";dc_exteid="+lp+";dc_av="+YW+";dc_sk="+YW+";dc_ctype="+D3+";dc_pubid="+YW+";dc_btype=3?gclid="+$W+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+
z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Yi+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Yi+"="},abandonCommands:{commands:[{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&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="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+
YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:cZ,commandExecutorCommand:{commands:[{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:i5,isTemplated:!1,trackingParams:Yi+
"="},trackingParams:Yi+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:uE},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+CM+";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="+Kx+";dc_trk_cid="+Kx+";ord="+QZ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";dc_rui="+YW+";dc_exteid="+lp+";dc_av="+sc+";dc_sk="+YW+";dc_ctype="+D3+";dc_ref=http://www.youtube.com/video/"+F6+";dc_pubid="+YW+";dc_btype=23?gclid="+$W+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+YW+"&ns="+YW+"&event="+YW+"&device="+YW+"&content_v="+t+"&el="+t9+"&ei="+k+"&devicever="+x+"&bti="+CM+"&format="+yf+"&break_type="+YW+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+YW+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+dk+"&slot_pos="+YW+"&slot_len="+YW+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
to+"&ad_len="+jz+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+F6+"&aqi="+k+"&ad_rmp="+YW+"&sli="+YW}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+yf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+
T+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+CM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&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"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&ctype="+sc+"&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"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_engaged_view&ctype="+sc+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+yf+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+M5+"&ad_cpn=[AD_CPN]&id="+
FP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FP+"&dc_pubid="+YW+"&dc_exteid="+lp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+
"&sig="+M5+"&ad_cpn=[AD_CPN]&id="+FP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+YW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FP+"&avm="+YW+"&dc_pubid="+YW+"&dc_exteid="+lp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&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="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+M5+"&ad_cpn=[AD_CPN]&id="+FP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+YW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FP+"&dc_pubid="+YW+"&dc_exteid="+lp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+yf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+yf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+
sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&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/"+t+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Yi+"="},trackingParams:Yi+"=",templatedCountdown:{templatedAdText:{text:wS,isTemplated:!0,trackingParams:Yi+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:q7,isTemplated:!1,trackingParams:Yi+"="},trackingParams:Yi+"="}},
trackingParams:Yi+"=",skipOffsetMilliseconds:5E3}},trackingParams:Yi+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:pl},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Yi+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:t9,isTemplated:!1,trackingParams:Yi+"="},trackingParams:Yi+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:X_,
isTemplated:!0,trackingParams:Yi+"="}},trackingParams:Yi+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:cZ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+Xt+"&origin=www.youtube.com&ata_theme="+m9,fE),trackingParams:Yi+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Yi+"="}},hoverText:{runs:[{text:F6}]},trackingParams:Yi+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+zR+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Yi+"="},headline:{text:t9,isTemplated:!1,trackingParams:Yi+"="},description:{text:EW,trackingParams:Yi+"="},actionButton:{buttonRenderer:{text:{simpleText:$4},navigationEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Yi+"="}},startMs:YW,trackingParams:Yi+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:X_},elementId:wS}},elementId:q7,trackingParams:Yi+"=",legacyInfoCardVastExtension:Bi,sodarExtensionData:{siub:FP,bgub:q7,scs:tm,bgp:i5},externalVideoId:F6,adLayoutLoggingData:{serializedAdServingDataEntry:uE},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+zR+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Yi+"="},headline:{text:tm,
isTemplated:!1,trackingParams:Yi+"="},description:{text:q7,isTemplated:!1,trackingParams:Yi+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:VZ},navigationEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Yi+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Yi+"="}},navigationEndpoint:{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+
YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Yi+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Yi+"="},abandonCommands:{commands:[{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&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="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+D3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:cZ,commandExecutorCommand:{commands:[{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:EW,isTemplated:!1,trackingParams:Yi+"="},trackingParams:Yi+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:EW},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+YW+";dc_exteid="+lp+";met="+YW+";ecn"+YW+"="+YW+";etm1="+YW+";eid1="+
CM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:uO}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:jz,offsetEndMilliseconds:yf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+D3+"&token=ALHj"+Io+"&index="+YW+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+x+"&m_pos_ms="+jz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:yf,offsetEndMilliseconds:yf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+sc+"&token=ALHj"+Io+"&index="+YW+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
x+"&m_pos_ms="+yf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yf,offsetEndMilliseconds:yf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+sc+"&token=ALHj"+Io+"&index="+YW+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
x+"&m_pos_ms="+yf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yf,offsetEndMilliseconds:yf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+sc+"&token=ALHj"+Io+"&index="+YW+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
x+"&m_pos_ms="+yf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yf,offsetEndMilliseconds:D3},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+sc+"&token=ALHj"+Io+"&index="+YW+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
x+"&m_pos_ms="+yf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:EW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:D3,offsetEndMilliseconds:D3},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+D3+"&token=ALHj"+Io+"&index="+YW+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
x+"&m_pos_ms="+D3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:t9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:t9,isTemplated:!1,trackingParams:Yi+"="},description:{text:m9,isTemplated:!1,trackingParams:Yi+"="},actionButton:{buttonRenderer:{text:{simpleText:pl},navigationEndpoint:{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Kx+";dc_trk_cid="+Kx+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";ord="+Kx+";dc_rui="+YW+";dc_exteid="+lp+";dc_av="+YW+";dc_sk="+YW+";dc_ctype="+D3+";dc_pubid="+YW+";dc_btype=3?gclid="+$W+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Yi+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+c9+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Yi+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Am+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Yi+"="},navigationEndpoint:{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kx+";dc_trk_cid="+Kx+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";ord="+Kx+
";dc_rui="+YW+";dc_exteid="+lp+";dc_av="+YW+";dc_sk="+YW+";dc_ctype="+D3+";dc_pubid="+YW+";dc_btype=3?gclid="+$W+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Yi+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cZ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(RQ8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+Xt+"&origin=www.youtube.com&ata_theme="+m9,RQ8),trackingParams:Yi+"="}},popupType:"DIALOG"}},trackingParams:Yi+"="}},hoverText:{runs:[{text:FP}]},trackingParams:Yi+"="}},adVideoId:F6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:tm},associatedCompositePlayerBytesLayoutId:i5}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:tm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:X_,isTemplated:!1,trackingParams:Yi+"="},description:{text:FP,isTemplated:!1,trackingParams:Yi+"="},actionButton:{buttonRenderer:{text:{simpleText:Bi},navigationEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+
z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Yi+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+zR+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Yi+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+dM+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Yi+"="},navigationEndpoint:{clickTrackingParams:cZ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+
YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Yi+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cZ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(pO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+Xt+"&origin=www.youtube.com&ata_theme="+m9,pO),trackingParams:Yi+"="}},popupType:"DIALOG"}},trackingParams:Yi+"="}},
hoverText:{runs:[{text:EW}]},trackingParams:Yi+"="}},adVideoId:F6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+F6+"&cid="+T+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:tm},associatedCompositePlayerBytesLayoutId:i5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:F6}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:FP,
isTemplated:!1,trackingParams:Yi+"="},description:{text:t9,isTemplated:!1,trackingParams:Yi+"="},actionButton:{buttonRenderer:{text:{simpleText:t9},navigationEndpoint:{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kx+";dc_trk_cid="+Kx+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";ord="+Kx+";dc_rui="+YW+";dc_exteid="+lp+";dc_av="+YW+";dc_sk="+YW+";dc_ctype="+
D3+";dc_pubid="+YW+";dc_btype=3?gclid="+$W+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+
N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Yi+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+c9+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Yi+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Am+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Yi+
"="},navigationEndpoint:{clickTrackingParams:cZ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kx+";dc_trk_cid="+Kx+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+YW+";ord="+Kx+";dc_rui="+YW+";dc_exteid="+lp+";dc_av="+YW+";dc_sk="+YW+";dc_ctype="+D3+";dc_pubid="+YW+";dc_btype=3?gclid="+$W+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+z+"AxAA&ase=2&num="+YW+"&cid="+T+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+J2+"&label=video_click_to_advertiser_site&ctype="+sc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Yi+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cZ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(TG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+Xt+"&origin=www.youtube.com&ata_theme="+m9,TG),trackingParams:Yi+"="}},popupType:"DIALOG"}},trackingParams:Yi+
"="}},hoverText:{runs:[{text:uO}]},trackingParams:Yi+"="}},adVideoId:F6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+z+"AxAA&sigh="+t+"&cid="+T+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:uO},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:i5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:m9}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:oG,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:oG,command:{innertubeCommand:{clickTrackingParams:cZ,ypcGetOfflineUpsellEndpoint:{params:h2}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Yi+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:QZ,nanos:j$}}}},DIA=JSON.stringify(r2),il=performance.now()-W;return{objectRepresentation:r2,jsonRepresentation:DIA,generationTime:il}};
dHG=function(W,P){if(W===P)return!0;if(!W||!P||typeof W!==typeof P)return!1;if(W instanceof Array&&P instanceof Array){if(W.length!==P.length)return!1;for(var x=0;x<W.length;x++)if(!dHG(W[x],P[x]))return!1;return!0}if(typeof W==="object"&&typeof P==="object"&&W&&P){for(x in W)if(!(x in P&&dHG(W[x],P[x])))return!1;for(var I in P)if(!(I in W))return!1;return!0}return!1};
_.LR=function(){if(!qB){qB=new Yj(new sso);var W=_.Wi("client_streamz_web_flush_count",-1);W!==-1&&(qB.invocationLimit=W)}return qB};
W5=function(W,P,x,I){if(W===P)return!0;if(Array.isArray(W)&&Array.isArray(P)){if(W.length!==P.length)return!1;for(var O=0;O<W.length;O++)if(!W5(W[O],P[O],x,I))return!1;return!0}if(W instanceof Set||P instanceof Set){if(W instanceof Set&&P instanceof Set){if(W.size!==P.size)return!1;I=_.n(W.values());for(O=I.next();!O.done;O=I.next())if(!P.has(O.value))return!1;return!0}return!1}if(W instanceof Function){if(I)return!0;W.name===""&&_.G$(Error("Hf"),"ERROR");return!1}if(W instanceof Date&&P instanceof
Date)return W.getTime()===P.getTime();if(W instanceof Object&&P instanceof Object){if(v9W(W)&&v9W(P))try{return W.equals(P)}catch(Y){_.G$(Error("If`"+Y),"ERROR")}O=Object.getOwnPropertyNames(W).filter(function(Y){return x?W[Y]!==void 0:!0});
var B=Object.getOwnPropertyNames(P).filter(function(Y){return x?P[Y]!==void 0:!0});
if(O.length!==B.length)return!1;O=_.n(O);for(B=O.next();!B.done;B=O.next())if(B=B.value,!W5(W[B],P[B],x,I))return!1;return!0}return!1};
v9W=function(W){W=Object.getPrototypeOf(W).equals;return W instanceof Function&&W.length===1};
_.txG=function(){return _.y(function(W){if(W.nextAddress==1)return mHA!==2?W.jumpTo(2):_.S(W,VxR(),3);W.nextAddress!=2&&(mHA=W.yieldResult);return W.return(mHA)})};
_.QsR=function(){return _.y(function(W){if(W.nextAddress==1)return _.p("ab_pl_man")?pv7!==2?W.jumpTo(2):_.S(W,jsd(),3):W.return(1);W.nextAddress!=2&&(pv7=W.yieldResult);return W.return(pv7)})};
zTG=function(){return _.y(function(W){if(W.nextAddress==1)return _.p("ab_fk_sk_cl")?Cct!==2?W.jumpTo(2):_.S(W,Aem(),3):W.return(1);W.nextAddress!=2&&(Cct=W.yieldResult);return W.return(Cct)})};
_.g9m=function(){return _.y(function(W){if(W.nextAddress==1)return _.p("ab_det_apb_b")?GCW!==2?W.jumpTo(2):_.S(W,E9R(),3):W.return(1);W.nextAddress!=2&&(GCW=W.yieldResult);return W.return(GCW)})};
$Hm=function(){var W;return _.y(function(P){if(P.nextAddress==1)return _.S(P,Promise.all([_.txG(),_.g9m(),_.QsR(),zTG()]),2);if(P.nextAddress!=3)return DHm()?P.return(!0):_.S(P,_.MxR(),3);W=P.yieldResult;return P.return(W===0)})};
DHm=function(){var W=!1,P=function(x,I){wvt.increment(I,x);x===0&&(W=!0)};
P(_.hTR(),"j.s_");P(mHA,"f.i_");P(GCW,"a.b_");P(pv7,"p.m_");P(Cct,"i.f_");H6m===2&&(H6m=_.eTt(_.S3A(ceR)));P(H6m,"e.h_");_.p("ks_det_gpbl")||P(_.aix(),"p.i_");_.p("ks_get_o_pp")||P(_.b6d(),"g.o_");_.p("ab_deg_unex_thr")||P(_.kCC(),"a.o_");P(UHx,"s.t_");_.p("ab_det_sc_inj_enf")&&P(_.Xvx(),"s.i_");P(fiC,"d.p_");P(_.NbR(_.P5),"o.p_");P(_.lid()===0?0:_.Tb7(),"o.a_");return _.p("debug_sk_em_precheck")?!0:W};
i6t=function(){var W=[].concat(_.ju(reR));try{var P=Fe();W.push({jsonRepresentation:P.jsonRepresentation,objectRepresentation:P.objectRepresentation})}catch(x){W=[].concat(_.ju(reR))}return W};
RTt=function(){var W=["adPlacements","adSlots"];try{return W.filter(function(){return!0}).length!==W.length?0:1}catch(P){return 0}};
_.b6d=function(){if(RTt()===0)return 0;var W=Fe(),P=W.objectRepresentation,x=(0,_.jU.unsafeClone)(P),I=[];if(P&&typeof P==="object")for(var O in P)I.push(O);else return 4;W=W.objectRepresentation.adPlacements;if(!(W&&W.length>0))return 4;try{if(!dHG(I,Object.getOwnPropertyNames(P)))return 0}catch(B){return 0}return dHG(x,P)?1:0};
_.NbR=function(W){var P=Object.getOwnPropertyNames(Object.prototype);W=_.n(W);for(var x=W.next();!x.done;x=W.next()){x=_.TK(x.value);for(var I=_.n(P),O=I.next();!O.done;O=I.next())if(x===O.value)return 0}return 1};
FXW=function(W){var P=_.TK(W[1]);if(W[0]===null)return P;W=W[0];for(var x={},I=0;I<W.length;I++){var O=_.TK(W[I]);if(I===0)x[O]=P;else{var B={};B[O]=x;x=B}}return x};
_.lid=function(){for(var W=_.x3,P=0;P<W.length;P++){var x=FXW(W[P]),I=[];I.push(x);if(I.length===0)return 0}return 1};
_.Tb7=function(){for(var W=_.x3,P={},x=0;x<W.length;P={paT:void 0},x++){var I=[FXW(W[x])];P.paT=[];I.forEach(function(O){return function(B){O.paT[O.paT.length]=B}}(P));
if(P.paT.length===0)return 0}return 1};
_.hTR=function(){for(var W=_.n(i6t()),P=W.next();!P.done;P=W.next()){var x=P.value;P=x.jsonRepresentation;x=x.objectRepresentation;try{var I=JSON.parse(P);if(!W5(I,x,!1,!1))return 0}catch(O){return 0}}return 1};
_.Xvx=function(){try{var W=_.xO("ab_det_sc_inj_val");W.length===1&&W[0]===""&&(W=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var P=document.querySelectorAll("script"),x=_.n(P),I=x.next();!I.done;I=x.next())for(var O=I.value,B=_.n(W),Y=B.next();!Y.done;Y=B.next()){var K=Y.value;P=void 0;if((P=O.textContent)==null?0:P.includes(K))return 0}}catch(Z){return 4}return 1};
_.MxR=function(){var W,P,x,I,O,B,Y;return _.y(function(K){switch(K.nextAddress){case 1:_.OT(K,2),W=_.n(reR),P=W.next();case 4:if(P.done)return K.return(1);I=x=P.value;O=I.jsonRepresentation;B=I.objectRepresentation;return _.S(K,(new Response(O,{status:200})).json(),7);case 7:Y=K.yieldResult;if(!W5(Y,B,!1,!1))return K.return(0);P=W.next();K.jumpTo(4);break;case 2:return _.yn(K),K.return(4)}})};
_.kCC=function(){try{btoa("abc")}catch(W){return 0}return 1};
VxR=function(){var W,P,x,I,O,B,Y,K,Z,d,v;return _.y(function(m){switch(m.nextAddress){case 1:_.OT(m,2),W=_.n(i6t()),P=W.next();case 4:if(P.done)return m.return(1);I=x=P.value;O=I.jsonRepresentation;B=I.objectRepresentation;Y=btoa(O);K="data:application/json;base64,"+Y;Z=new Request(K);Object.defineProperty(Z,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(Z,"method",{get:function(){return"POST"}});
Object.defineProperty(Z,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(Z,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(Z,"body",{get:function(){return new ReadableStream}});
return _.S(m,fetch(Z),7);case 7:return d=m.yieldResult,_.S(m,d.json(),8);case 8:v=m.yieldResult;if(!W5(v,B,!1,!1))return m.return(0);P=W.next();m.jumpTo(4);break;case 2:return _.yn(m),m.return(4)}})};
_.eTt=function(W){var P=_.n(W);W=P.next().value;P=P.next().value;try{var x=document.createElement("div");document.body.appendChild(x);var I=getComputedStyle(x).display;document.body.removeChild(x);if(I==="none")return 4;var O=getComputedStyle(P).display==="none"?0:1;document.body.removeChild(W);return O}catch(B){return 4}};
Aem=function(){var W,P,x;return _.y(function(I){W=new _.If;P=document.createElement("button");P.classList.add("ytp-ad-skip-button");P.style.opacity="0";P.style.height="0px";P.style.width="0px";P.style.padding="0px";P.style.border="none";x=function(){P.parentElement&&P.parentElement.removeChild(P)};
P.onclick=function(){W.resolve(0);x()};
document.body.appendChild(P);setTimeout(function(){x();W.resolve(1)},50);
return I.return(W.promise)})};
jsd=function(){var W,P,x,I,O,B,Y;return _.y(function(K){W=new _.If;P=document.createElement("ytd-player");try{document.body.prepend(P)}catch(Z){return K.return(4)}x=function(){P.parentElement&&P.parentElement.removeChild(P)};
P.getElementsByTagName("div").length>0?I=P.getElementsByTagName("div")[0]:(I=document.createElement("div"),P.appendChild(I));O=document.createElement("div");I.appendChild(O);B=document.createElement("video");Y=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"});B.src=_.u5(_.V4(Y));B.ontimeupdate=function(){x();W.resolve(0)};
O.appendChild(B);B.classList.add("html5-main-video");setTimeout(function(){O.classList.add("ad-interrupting")},200);
setTimeout(function(){x();W.resolve(1)},5E3);
return K.return(W.promise)})};
q3d=function(W,P){var x,I;return _.y(function(O){switch(O.nextAddress){case 1:x=[],I=0;case 2:if(!(I<3)){O.jumpTo(4);break}return _.S(O,fetch(W,{cache:"no-store",method:P}).then(function(B){x.push(B.status)}).catch(function(){x.push(-1)}),3);
case 3:I++;O.jumpTo(2);break;case 4:return O.return(x)}})};
LXS=function(W){return W.domainLookupStart===0&&W.domainLookupEnd===0&&W.connectStart===0&&W.connectEnd===0};
WAR=function(W,P,x){x=x===void 0?"GET":x;var I,O,B,Y,K,Z,d,v,m,t;return _.y(function(C){if(C.nextAddress==1)return _.S(C,Promise.all([q3d(W,x),q3d(P,x)]),2);I=C.yieldResult;O=_.n(I);B=O.next().value;Y=O.next().value;K=B;Z=Y;if(Math.min.apply(Math,_.ju(Z))!==Math.max.apply(Math,_.ju(Z))||Math.min.apply(Math,_.ju(K))!==Math.max.apply(Math,_.ju(K)))return C.return(2);if(Math.min.apply(Math,_.ju(Z))===Math.min.apply(Math,_.ju(K)))return C.return(1);v=(d=performance.getEntriesByName(W))==null?void 0:d[0];
t=(m=performance.getEntriesByName(P))==null?void 0:m[0];return v&&t?LXS(t)?C.return(1):LXS(v)?C.return(0):C.return(1):C.return(2)})};
E9R=function(){var W;return _.y(function(P){var x=[];var I;var O,B,Y;(O=I=(O=Fe().objectRepresentation.streamingData)==null?void 0:(B=O.formats)==null?void 0:(Y=B[0])==null?void 0:Y.url)&&O&&!I.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(O=O.replace("initcwndbps","ctier=L&initcwndbps"),O=O.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),I={testUrl:O,baseUrl:I,method:"GET"}):I=void 0;I&&x.push(I);_.p("ab_net_tp_e")&&x.push({testUrl:_.xW.location.origin+"/ad_companion",baseUrl:_.xW.location.origin+
"/generate_204",method:"OPTIONS"});if(_.p("ad_net_pb_ab")){var K;b:{I=/api\/stats\/ads/;var Z,d,v,m;O=(K=Fe().objectRepresentation.adPlacements)==null?void 0:(Z=K[0])==null?void 0:(d=Z.adPlacementRenderer)==null?void 0:(v=d.renderer)==null?void 0:(m=v.linearAdSequenceRenderer)==null?void 0:m.linearAds;if(O!=null&&O.length&&(K=_.Q(O[0],Pb8))&&(K=K.pings,K!=null&&K.impressionPings))for(Z=[].concat(_.ju(K.impressionPings)),K.progressPings&&(Z=[].concat(_.ju(Z),_.ju(K.progressPings))),K=_.n(Z),Z=K.next();!Z.done;Z=
K.next())if(Z=Z.value,Z.baseUrl&&I.test(Z.baseUrl)){K=Z.baseUrl.replace("https://www.youtube.com","");break b}K=void 0}K&&x.push({testUrl:_.xW.location.origin+K,baseUrl:_.xW.location.origin+"/feed/download",method:"GET"})}if(_.p("ad_net_pb_pbp")){var t;b:{K=/api\/stats\/qoe/;if(Z=Fe().objectRepresentation.playbackTracking){d=[];d.push(Z==null?void 0:(t=Z.videostatsPlaybackUrl)==null?void 0:t.baseUrl);var C;d.push(Z==null?void 0:(C=Z.videostatsDelayplayUrl)==null?void 0:C.baseUrl);var z;d.push(Z==
null?void 0:(z=Z.videostatsWatchtimeUrl)==null?void 0:z.baseUrl);var D;d.push(Z==null?void 0:(D=Z.ptrackingUrl)==null?void 0:D.baseUrl);var w;d.push(Z==null?void 0:(w=Z.qoeUrl)==null?void 0:w.baseUrl);var a;d.push(Z==null?void 0:(a=Z.atrUrl)==null?void 0:a.baseUrl);t=_.n(d);for(C=t.next();!C.done;C=t.next())if((C=C.value)&&K.test(C)){t=C.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}t=void 0}t&&x.push({testUrl:_.xW.location.origin+t,baseUrl:_.xW.location.origin+
"/feed/download",method:"GET"})}x=x.length!==0?x[Math.floor(Math.random()*x.length)]:void 0;return(W=x)?P.return(WAR(W.testUrl,W.baseUrl,W.method)):P.return(4)})};
_.aix=function(){if(_.xW.yUL===void 0||_.xW.yUL===null||typeof _.xW.yUL!=="function")return 2;try{return _.xW.yUL()===!0?0:1}catch(W){return 0}};
xoR=function(W){switch(W){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.n2(W,"unknown result type")}};
_.IFU=function(W,P){var x=Number(_.$$("CATSTAT",0));if(P.gCg===void 0)return x;P=P.gCg;W=xoR(W);return x&~(3<<P)|W<<P};
Ok8=function(W){var P,x;if((W=(P=W.auxiliaryUi)==null?void 0:(x=P.messageRenderers)==null?void 0:x.bkaEnforcementMessageViewModel)&&W.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return W};
Bym=function(){for(var W=_.n(Object.values(_.JJA)),P=W.next();!P.done;P=W.next())P=P.value,P.isAsync&&P.gCg&&_.MR("CATSTAT",_.IFU(2,P))};
_.nL=function(W,P){W=_.Oo("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",W);(P===void 0?0:P)?_.nXo(W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Jq(_.B5(),W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
yJR=function(){if(!YNd){if(Polymer.Base){var W=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{W.apply(this,arguments)}catch(m){_.hQ(m)}};
var P=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{P.apply(this,arguments)}catch(m){_.hQ(m)}};
var x=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{x.apply(this,arguments)}catch(m){_.hQ(m)}};
var I=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{I.apply(this,arguments)}catch(m){_.hQ(m)}};
var O=Polymer.Base._listen,B=new WeakMap;Polymer.Base._listen=function(m,t,C){var z=function(){try{C.apply(this,arguments)}catch(D){_.hQ(D)}};
B.set(C,z);O.call(this,m,t,z)};
var Y=Polymer.Base._unlisten;Polymer.Base._unlisten=function(m,t,C){Y.call(this,m,t,B.get(C))}}if(Polymer.Async){var K=Polymer.Async,Z=K._atEndOfMicrotask;
K._atEndOfMicrotask=function(){try{Z.apply(K,arguments)}catch(m){_.hQ(m)}}}if(Polymer.RenderStatus){var d=Polymer.RenderStatus,v=d.afterNextRender;
d.afterNextRender=function(m,t,C){v.call(d,m,function(){try{t.apply(this,arguments)}catch(z){_.hQ(z)}},C)}}YNd=!0}};
_.Y3=function(W){var P=W?_.YO(W):"";if(P){if(P.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(P.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(P.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(P.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(P.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(P.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";P=P.toLowerCase();if(P==="/")return"home";if(P===
"/channel_memberships")return"channel-memberships-shopfront";if(P.indexOf("/feed/trending")===0)return"trending";if(P.indexOf("/feed/explore")===0)return"explore";if(P.indexOf("/live")===0)return"live";if(P.indexOf("/results")===0)return"search";if(P.indexOf("/sports")===0)return"sports";if(P.indexOf("/fashion")===0||P.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(P))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(P))return"learning";
if(P.indexOf("/channel/")===0||P.indexOf("/user/")===0||P.indexOf("/gaming")===0||P.indexOf("/post/")===0)return"channel";if(KA7(W))return"show";if(P==="/playlist"||P.indexOf("/playlist/")===0||P==="/view_play_list"||P.indexOf("/view_play_list/")===0||P.indexOf("/show/")===0)return"playlist";if(P==="/feed/history"||P.indexOf("/feed/history/")===0)return"history";if(P==="/new")return"labs";if(P==="/feed/subscriptions")return"subscriptions";if(P.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(P==="/history_controls")return"standalone";if(P.indexOf("/account")===0||P==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(P.indexOf("/paid_memberships")===0||P.indexOf("/refund")===0||P.indexOf("/purchases")===0||P.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(P.indexOf("/product")===0)return"yts-products";if(P.indexOf("/premium")===0||P.indexOf("/musicpremium")===0)return P.indexOf("/premium/offers")===0||P.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(P===
"/cart/checkout"||P==="/cart")return"ypc-checkout";if(P.indexOf("/feed/downloads")===0||P.indexOf("/redeem")===0||P.indexOf("/reporthistory")===0)return"browse";if(P.indexOf("/hashtag")===0)return"hashtag-landing-page";if(P.indexOf("/handle")===0)return"handle";if(P.indexOf("/source")===0)return"audio-pivot";if(P.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(P.indexOf("/playables")===0)return"playables";if(P.indexOf("/create/live/join")===0)return"open-in-app";if(P.indexOf("/shorts")===
0)return"shorts";if(P.indexOf("/feed/channels")===0)return"subscriptions-channels";(P=W?_.YO(W):"")&&P.indexOf("/watch")===0&&_.p("web_watch_enable_learning_journey")?(W=_.UV(W),W=!!W.list&&W.list.indexOf("LJPP")===0):W=!1;if(W)return"learning_journey_watch"}};
_.yy=function(W){var P,x;(W=(x=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?void 0:x.url)&&(P=_.Y3(W));return P};
KA7=function(W){var P=W?_.YO(W):"";if(!P)return!1;P=P.toLowerCase();return P.indexOf("/show/")===0||P.indexOf("/playlist")===0&&(W=_.UV(W),W.list&&W.list.indexOf("EL")===0)?!0:!1};
of=function(W){var P="unknown",x;var I=((x=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?void 0:x.webPageType)||"";I?(x=I.toLowerCase(),x.startsWith("web_page_type_")&&(x=x.slice(14))):x=I;x&&ZkR[x.toUpperCase()]?P=ZkR[x.toUpperCase()]:_.Q(W,_.KL)||_.Q(W,oXt)?P="browse":_.Q(W,_.Zz)?P="search":_.Q(W,_.U_)&&(P="watch");P==="watch"&&_.yy(W||null)==="learning_journey_watch"&&(P="learning_journey_watch");P==="unknown"&&_.ge(Error("Kf`"+JSON.stringify({clickTrackingParams:W==null?void 0:W.clickTrackingParams,
commandMetadata:W==null?void 0:W.commandMetadata,allEndpointKeys:Object.keys(W||[])})));return P};
_.S9=function(W){if(!_.SNC||W)_.SNC=_.K5();return _.SNC};
_.uOW=function(W){return!!_.Q(W,_.U_)||!!_.Q(W,_.uS)&&_.p("kevlar_enable_shorts_prefetch")};
_.doR=function(W,P){W=_.Q(W,_.U_)||_.Q(W,_.uS);return"v"+W.videoId+(W.playlistId?"-pl"+W.playlistId:"")+(P?"-an1":"")+(W.params?"-pr"+W.params:"")};
vXG=function(W){var P=_.Wi("web_pbj_log_warning_rate",0);P=P>0&&Math.random()<P;if(!_.Q(W,_.uS))return P&&_.ge(Error("Nf")),!1;var x;return _.p("shorts_controller_retrieve_seedless_sequence_v2")&&((x=_.Q(W,_.uS))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:sMW(W)?!0:(P&&_.ge(Error("Of")),!1)};
sMW=function(W){var P=(_.Q(W,_.U_)||_.Q(W,_.uS)).videoId;if(!P||!moo.test(P))return!1;var x;return(W=(x=_.Q(W.commandMetadata,_.rU))==null?void 0:x.url)&&(W.includes(P)||W.startsWith("/clip"))?!0:!1};
_.tf7=function(){var W=_.SI();return W.getFlag(192)?W.getFlag(190):!(_.p("web_watch_cinematics_disabled_by_default")||_.p("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Vfm())};
_.dT=function(W,P,x){var I={};I.currentUrl=P;I.vis=W.vis!==void 0?W.vis:0;I.splay=!1;P=_.SI();I.autoCaptionsDefaultOn=P.getFlag(66);P.getFlag(141)?P.getFlag(140)?I.autonavState="STATE_OFF":I.autonavState="STATE_ON":I.autonavState="STATE_NONE";I.html5Preference="HTML5_PREF_WANTS";isNaN(_.$$("STS"))||(I.signatureTimestamp=_.$$("STS"));W.autonav&&(I.autoplay=!0,I.autonav=!0);W.mutedAutoplay&&(I.autoplay=!0,I.mutedAutoplay=!0);W.inlinePlayback&&(I.autoplay=!0,I.autonav=!1,I.isInlineUnmutedPlayback=!!W.inlineUnmuted);
I.referer=x;I.lactMilliseconds=W.lact!==void 0?W.lact.toString():"-1";_.p("enable_unknown_lact_fix_on_html5")&&I.lactMilliseconds==="-1"&&_.ge(new _.mW("Unknown LACT is set in playbackContext.",{"lact in tempData":W.lact||"undefined",autonav:W.autonav||"undefined"}));W={};P.getFlag(194)&&(W.hasShownAmbientMode=!0);P.getFlag(192)&&(W.hasToggledOffAmbientMode=!0);_.tf7()&&(W.watchAmbientModeEnabled=!0);I.watchAmbientModeContext=W;return I};
pUG=function(W){var P={},x=W.pbis||0;x&&(P.playbackBeginsInSeconds=x);W.prefetch_reason&&W.prefetch_reason==="hc_pbis"&&(P.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return P};
_.jMt=function(W){var P=new so(_.$$("ONE_PICK_URL",""));P.urlParamMap_.set("hostId",W);(W=_.$$("GAPI_LOCALE"))&&P.urlParamMap_.set("hl",W);(W=_.$$("SESSION_INDEX"))&&P.urlParamMap_.set("authuser",W);(W=_.$$("DELEGATED_SESSION_ID"))&&P.urlParamMap_.set("groupId",W);return P};
Cbm=function(){var W=_.FY(),P=W.resolve(_.v5);W=W.resolve(_.m7);return new QM8(P,W)};
zfm=function(W){if(window.IntersectionObserver)return new AJm(W,400);throw new TypeError("Vf");};
EXt=function(){var W=Hammer.TouchAction,P=W.prototype.preventDefaults;W.prototype.preventDefaults=function(x){var I=this.actions.indexOf("pan-down")>-1;if(!I)return P.call(this,x);if(!Gh7){var O=x.srcEvent;x=x.direction;var B;if((B=this.manager)==null?0:B.session.prevented)O.preventDefault();else if(I&&x&Hammer.DIRECTION_DOWN)return this.preventSrc(O)}}};
gX8=function(W){if(!W||W.size===0)return Hammer.DIRECTION_ALL;if(W.size===2){if(W.has("up")&&W.has("down"))return Hammer.DIRECTION_VERTICAL;if(W.has("right")&&W.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(W.size===1){if(W.has("up"))return Hammer.DIRECTION_UP;if(W.has("down"))return Hammer.DIRECTION_DOWN;if(W.has("right"))return Hammer.DIRECTION_RIGHT;if(W.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Mf7=function(){return DoW?Promise.resolve(DoW):new Promise(function(W,P){var x=self.indexedDB.open("swpushnotificationsdb");x.onerror=P;x.onsuccess=function(){var I=x.result;if(I.objectStoreNames.contains("swpushnotificationsstore"))DoW=I,W(DoW);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Mf7()};
x.onupgradeneeded=$om})};
$om=function(W){W=W.target.result;W.objectStoreNames.contains("swpushnotificationsstore")&&W.deleteObjectStore("swpushnotificationsstore");W.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
hfo=function(W){var P=wUx(),x;return _.y(function(I){switch(I.nextAddress){case 1:return _.OT(I,2),_.S(I,W.match(P,{cacheName:"yt-appshell-assets"}),4);case 4:x=I.yieldResult;_.ci(I,3);break;case 2:_.yn(I);case 3:return I.return(x)}})};
wUx=function(){var W=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Hko.registration.scope:efm;W.endsWith("/")&&(W=W.slice(0,-1));return W+"/app_shell_home"};
cJd=function(W){W.map(function(P){return P.source}).join("|")};
_.aFR=function(W){return _.y(function(P){return P.return(hfo(W))})};
bkm=function(){var W=window.caches,P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,_.aFR(W),2);P=x.yieldResult;return x.return(!!P)})};
TyU=function(){_.y(function(W){if(W.nextAddress==1){if(khR)return W.jumpTo(0);khR=!0;if(_.p("enable_system_health_primes_monitoring"))return _.JY(Uo7,3E4),XUR(),W.return();if(!(Math.random()<_.Wi("web_system_health_fraction")))return W.jumpTo(0);fF7={heightPixels:screen.height,widthPixels:screen.width};Vy&&!isNaN(Vy.jsHeapSizeLimit)&&(fF7.memoryTotalKbytes=String(Math.round(Vy.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(fF7.devicePixelRatio=window.devicePixelRatio);return _.S(W,NyA(),4)}_.JY(Uo7,
3E4);return _.S(W,lFG(),0)})};
NyA=function(){return _.y(function(W){if(W.nextAddress==1)return tq.intersectionObserverPresent="IntersectionObserver"in window,tq.serviceWorkerPresent="serviceWorker"in navigator,tq.webSharePresent="share"in navigator,tq.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,tq.cacheStoragePresent="caches"in window,tq.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,tq.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
tq.webkitTemporaryStoragePresent="webkitTemporaryStorage"in pL&&pL.webkitTemporaryStorage&&"queryUsageAndQuota"in pL.webkitTemporaryStorage,tq.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.S(W,ifo(),2);tq.indexedDbPresent=W.yieldResult;tq.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;tq.broadcastChannelPresent="BroadcastChannel"in window;tq.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(tq.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,tq.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Kl(W)})};
Uo7=function(){var W=9E4+Math.random()*2E3;_.LD()>W||(_.p("enable_system_health_primes_monitoring")?XUR():lFG())};
lFG=function(){var W;return _.y(function(P){if(P.nextAddress==1)return _.S(P,rJR(),2);W=P.yieldResult;_.Ay("systemHealthCaptured",W);_.Kl(P)})};
XUR=function(){var W={metric:{}},P=ikd();P.networkEvents.length&&(W.metric.networkEvents=Rfo(P));_.Ay("systemHealthCaptured",W)};
rJR=function(){var W,P,x,I,O,B,Y,K,Z,d;return _.y(function(v){switch(v.nextAddress){case 1:W={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)};P=window.screen;_.p("enable_is_extended_monitoring")&&P&&"isExtended"in P&&(W.isExtended=!!P.isExtended);x={metric:{staticContext:fF7,dynamicContext:W,webMetric:FAU,webApiSupport:tq}};
if(I=_.E_())x.csn=I;Vy&&(x.metric.webMetric.currentHeapKbytes=Math.round(Vy.usedJSHeapSize/1E3));window.matchMedia&&(x.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,x.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,x.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in pL&&typeof pL.getBattery==="function")){v.jumpTo(2);break}return _.S(v,pL.getBattery(),3);case 3:if(O=
v.yieldResult)x.metric.dynamicContext.chargingStatus=O.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(x.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(tq.storageEstimatePresent)return _.S(v,navigator.storage.estimate(),8);if(!tq.webkitTemporaryStoragePresent){v.jumpTo(5);break}return _.S(v,qNd(),7);case 7:B=v.yieldResult;v.jumpTo(5);break;case 8:B=v.yieldResult;case 5:return x.metric.dynamicContext.deviceStorageQuotaMbytes=((Y=B)==null?0:Y.quota)?String(Math.round(B.quota/
1048576/10)*10):"-1",x.metric.dynamicContext.deviceStorageUsageMbytes=((K=B)==null?0:K.usage)?String(Math.round(B.usage/1048576/10)*10):"-1",Z=x.metric.dynamicContext,_.S(v,bkm(),9);case 9:return Z.hasAppShell=v.yieldResult,d=ikd(),d.networkEvents.length&&(x.metric.networkEvents=Rfo(d)),v.return(x)}})};
qNd=function(){return new Promise(function(W){var P;tq.webkitTemporaryStoragePresent&&(P=pL.webkitTemporaryStorage)!=null&&P.queryUsageAndQuota?pL.webkitTemporaryStorage.queryUsageAndQuota(function(x,I){W({usage:x,quota:I})}):W(void 0)})};
_.j9=function(W){W&=16777215;W=[(W&16711680)>>16,(W&65280)>>8,W&255];return LAd(W[0],W[1],W[2])};
_.Qy=function(W){W=[(W&16711680)>>>16,(W&65280)>>>8,W&255,(W&4278190080)>>>24];var P=_.WIx(W,function(x){return x==(x&255)});
W[3]=(W[3]/255).toFixed(3);if(!P)throw Error("Wf`"+W.join(","));return"rgba("+W.join(",")+")"};
_.PLS=function(W){return[(W&16711680)>>>16,(W&65280)>>>8,W&255]};
_.xW7=function(W){W=W.map(function(P){P/=255;return P<=.03928?P/12.92:Math.pow((P+.05)/1.05,2.4)});
return W[0]*.2126+W[1]*.7152+W[2]*.0722};
CL=function(W,P){W=_.PLS(W);return"rgba("+W[0]+", "+W[1]+", "+W[2]+", "+P+")"};
_.IxW=function(){try{return!!self.localStorage}catch(W){return!1}};
nyU=function(){if(OBx())_.ge(Error("Xf"));else{var W=document.createElement("iframe");W.style.display="none";var P=P===void 0?window.location.href:P;var x=_.Ez(_.$$("PERSIST_IDENTITY_IFRAME_URL"));P=x?x:(new URL(P)).host.indexOf("studio")===0?_.W9(JxR,"persist_identity"):_.W9(BWG,"persist_identity");_.V$G(W,1,P);W.id="persist_identity";var I;(I=document.body)==null||I.appendChild(W)}};
OBx=function(){var W=Ymo;W||(W=document.querySelector("#persist_identity"));return W};
yxt=function(){var W=!1;try{W=!!window.sessionStorage.getItem("session_logininfo")}catch(P){W=!0}return(_.$$("INNERTUBE_CLIENT_NAME")==="WEB"||_.$$("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&W};
KIA=function(W,P){if(!yxt())return!1;P||(P=_.$$("LOGIN_INFO"));return P?(W.session_logininfo=P,!0):!1};
oyt=function(W,P){W=W===void 0?!1:W;if((P===void 0||!P)&&ZBG!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.wo("LOG_STICKINESS",!1)){P=_.E_();var x=_.G7(),I={identityStickinessData:{initialState:ZBG}};P&&x&&_.UL(P,x,I)}if(P=OBx())if(x=P.src?(new URL(P.src)).origin:"*",W){var O;(O=P.contentWindow)==null||O.postMessage({action:"clear"},x)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(W=window.sessionStorage.getItem("session_logininfo"))){var B;(B=P.contentWindow)==null||B.postMessage({loginInfo:W},x)}};
_.Aq=function(W){W=W===void 0?!0:W;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.MR("LOGIN_INFO",""),W&&window.sessionStorage.setItem("from_switch_account","1"),oyt(!0,W)}catch(P){}};
Smx=function(W){W&&(W.startsWith("https://accounts.google.com/AddSession")?_.Aq():W.startsWith("https://accounts.google.com/ServiceLogin")?_.Aq():W.startsWith("https://myaccount.google.com")&&_.ea(W).getPath().endsWith("/youtubeoptions")&&_.Aq())};
z1=function(W,P){Smx(W);if(_.wo("LOGGED_IN",!0)&&yxt()){var x=o1G(W);x==null&&(x={});KIA(x,P)&&_.lO(W,x)}};
uNR=function(){function W(P){for(P=P.target;P&&P.nodeName!=="A";)if(P=P.parentNode,!(P&&P instanceof HTMLElement))return;if(P&&!P.hasAttribute("download")&&P.getAttribute("rel")!=="external"&&P.href)return P.href}
document.addEventListener("mousedown",function(P){P.button!==0&&(P=W(P))&&z1(P)});
document.addEventListener("click",function(P){(P=W(P))&&z1(P)})};
vyx=function(){var W=new dWx;try{if(_.wo("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(K){W.increment(5,!1);return}if(_.$$("LOGIN_INFO")){var P=sOx?sOx:window.location;_.$$("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&nyU();var x=o1G(P.href);x==null&&(x={});var I=x.session_logininfo,O=Number(window.sessionStorage.getItem("stickiness_reload")),B=I===_.$$("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
O>=2||B)O>=2?W.increment(2,B):B?W.increment(7,B):window.sessionStorage.getItem("session_logininfo")||(W.increment(3,B),ZBG="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.$$("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.$$("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))W.increment(4,B),window.sessionStorage.removeItem("stickiness_reload");
else if(O<2){window.sessionStorage.setItem("stickiness_reload",String(O+1));var Y=P.href;Y=_.T7(Y,"sttick");z1(Y,window.sessionStorage.getItem("session_logininfo"));Y=_.XY(Y,{sttick:O});W.increment(O,B);_.XV(P,Y)}}else W.increment(6,!1)}else _.Aq(!1)}catch(K){}};
_.G1=function(W,P,x,I,O){P=P===void 0?{}:P;x=x===void 0?"":x;I=I===void 0?window:I;W=_.fX(W,P);z1(W);x=_.my(W+x,O);_.XV(I.location,x)};
mWG=function(W){if(W.urlEndpoint){if(W=_.UV(W.urlEndpoint.url),W.adurl)return iP(W.adurl)}else if(W.watchEndpoint)return"//www.youtube.com/watch?v="+W.watchEndpoint.videoId;return null};
VZm=function(W){if(!W||!W.reportingPings)return null;var P={};W.reportingPings.forEach(function(x){x.pingType in P?P[x.pingType].push(x.url):P[x.pingType]=[x.url]});
return{adpings:jhx(P)}};
_.gT=function(W){W=W===void 0?!1:W;var P=_.SI(),x="USER_INTERFACE_THEME_LIGHT";P.getFlag(165)?x="USER_INTERFACE_THEME_DARK":P.getFlag(174)?x="USER_INTERFACE_THEME_LIGHT":_.Eo()&&(x="USER_INTERFACE_THEME_DARK");return W?x:tZx()||x};
_.pbx=function(){return!_.p("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Eo=function(){return _.pbx()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Dz=function(){var W=_.SI();return _.pbx()&&!W.getFlag(165)&&!W.getFlag(174)};
tZx=function(){var W=W===void 0?window.location.href:W;if(_.p("kevlar_disable_theme_param"))return null;var P=_.YO(W);if(_.jOm(P))return"USER_INTERFACE_THEME_DARK";try{var x=_.UV(W).theme;return QOC.get(x)||null}catch(I){}return null};
_.jOm=function(W){return _.p("enable_dark_theme_only_on_shorts")?!(W==null||!W.startsWith("/shorts/")):!1};
_.zHm=function(W,P,x,I,O){P=P===void 0?!1:P;x=x===void 0?!1:x;var B=_.$$("INNERTUBE_CONTEXT");if(!B)return _.G$(Error("ag")),{};B=(0,_.jU.unsafeClone)(B);_.p("web_no_tracking_params_in_shell_killswitch")||delete B.clickTracking;B.client||(B.client={});var Y=B.client;Y.clientName==="MWEB"&&Y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Y.clientFormFactor=_.$$("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Y.screenWidthPoints=window.innerWidth;Y.screenHeightPoints=window.innerHeight;Y.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Y.screenDensityFloat=window.devicePixelRatio||1;Y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Y.userInterfaceTheme=_.gT();if(!P){var K=_.siS();K&&(Y.connectionType=K);_.p("web_log_effective_connection_type")&&(K=mVR())&&(B.client.effectiveConnectionType=K)}var Z;if(_.p("web_log_memory_total_kbytes")&&((Z=_.xW.navigator)==null?0:Z.deviceMemory)){var d;Z=(d=_.xW.navigator)==null?void 0:d.deviceMemory;B.client.memoryTotalKbytes=""+Z*1E6}P&&I&&!_.p("web_it_context_set_original_url_ks")&&
(Y.originalUrl=CL7(_.xW.location.href,I).toString());_.p("web_gcf_hashes_innertube")&&(K=g68())&&(d=K.coldConfigData,Z=K.coldHashData,K=K.hotHashData,B.client.configInfo=B.client.configInfo||{},d&&(B.client.configInfo.coldConfigData=d),Z&&(B.client.configInfo.coldHashData=Z),K&&(B.client.configInfo.hotHashData=K));d=_.UV(_.xW.location.href);!_.p("web_populate_internal_geo_killswitch")&&d.internalcountrycode&&(Y.internalGeo=d.internalcountrycode);!_.p("web_populate_client_screen_killswitch")&&O&&(Y.clientScreen=
O);Y.clientName==="MWEB"||Y.clientName==="WEB"?(Y.mainAppWebInfo={graftUrl:I||_.xW.location.href},_.p("kevlar_woffle")&&_.Ma.instance&&(I=_.Ma.instance,Y.mainAppWebInfo.pwaInstallabilityStatus=!I.appInstalledEventFired&&I.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Y.mainAppWebInfo.webDisplayMode=p7W(),Y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Y.clientName==="TVHTML5"&&(!_.p("web_lr_app_quality_killswitch")&&
(I=_.$$("LIVING_ROOM_APP_QUALITY"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{appQuality:I})),I=_.$$("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{certificationScope:I}));!_.p("web_populate_time_zone_itc_killswitch")&&(I=uuR())&&(Y.timeZone=I);(I=hym())?Y.experimentsToken=I:delete Y.experimentsToken;Y=HJd();I=_.Ax8();I=(0,_.jU.getValues)(I.tokenJars);B.request=Object.assign({},B.request,{internalExperimentFlags:Y,consistencyTokenJars:I});!_.p("web_prequest_context_killswitch")&&
(Y=_.$$("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(B.request.externalPrequestContext=Y);I=_.SI();Y=I.getFlag(58);I=I.get("gsml","");B.user=Object.assign({},B.user);Y&&(B.user.enableSafetyMode=Y);I&&(B.user.lockedSafetyMode=!0);_.p("warm_op_csn_cleanup")?x&&(P=_.E_())&&(B.clientScreenNonce=P):!P&&(P=_.E_())&&(B.clientScreenNonce=P);W&&(B.clickTracking={clickTrackingParams:W});if(W=_.eL("yt.mdx.remote.remoteClient_"))B.remoteClient=W;_.$3.getInstance().setLocationOnInnerTubeContext(B);try{var v=lNC(),
m=v.bid;delete v.bid;B.adSignalsInfo={params:[],bid:m};for(var t=_.n(Object.entries(v)),C=t.next();!C.done;C=t.next()){var z=_.n(C.value),D=z.next().value,w=z.next().value;v=D;m=w;W=void 0;(W=B.adSignalsInfo.params)==null||W.push({key:v,value:""+m})}var a,k;if(((a=B.client)==null?void 0:a.clientName)==="TVHTML5"||((k=B.client)==null?void 0:k.clientName)==="TVHTML5_UNPLUGGED"){var T=_.$$("INNERTUBE_CONTEXT");T.adSignalsInfo&&(B.adSignalsInfo.advertisingId=T.adSignalsInfo.advertisingId,B.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",B.adSignalsInfo.limitAdTracking=T.adSignalsInfo.limitAdTracking)}}catch(N){_.G$(N)}return B};
_.wT=function(){return{isShellLoad:_.wo("IS_SHELL_LOAD",!1)}};
EyW=function(){navigator.serviceWorker.getRegistrations().then(function(W){W.forEach(GpR)})};
GpR=function(W){W&&_.gyA(DWR,W.scope)};
_.gyA=function(W,P){P={scope:P||_.Pi("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.y4(W),P)};
hq=function(W,P,x,I){if(P&&P.serializedYpcCujLoggingParams){if(x){var O={};O.transactionErrorType=x;I&&(O.errorMessage=I);P.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:O}}}x={};x.ypcCujContext=P;W=_.Oo("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",W,x);_.Jq(_.B5(),W,"FLOW_TYPE_YPC_ACQUISITION")}};
_.MZA=function(W,P,x,I){var O={};O.serializedTransactionFlowLoggingParams=P;x&&(O.errorType=x);I&&(O.errorMessage=I);_.Ay(W,O);_.z$()};
_.$WA=function(W){W&&_.MZA("transactionFlowStarted",W)};
_.wbR=function(W){W&&_.MZA("transactionFlowCancelled",W)};
_.H5=function(W,P,x){P&&_.MZA("transactionFlowFailed",P,W,x)};
_.e9=function(){this.megabloxUrl_=null};
_.c5=function(W){try{var P=hHR==null?void 0:hHR.composedPath(W)}catch(x){P=W.composedPath?W.composedPath():[]}return P&&P.length>0?P:W.composedPath?W.composedPath():[]};
_.af=function(W){return _.c5(W)[0]};
_.bS=function(W){if(!(W instanceof Element))return null;W=W.classList?Array.from(W.classList):void 0;if(!W)return null;var P=W.indexOf("style-scope");return P>-1&&P+1<W.length?W[P+1]:null};
k3=function(W){if(!(W instanceof HTMLElement))return null;var P=W&&(W.$$||W.polymerController)?W.tagName.toLowerCase():null;return P?P:_.bS(W)};
HBU=function(W,P){return W.replace(/[^a-z]*[^\s]+/g,function(x){return x+".style-scope."+P})};
eHt=function(W,P){return P?W.split(",").map(function(x){return HBU(x.trim(),P)}).join(", "):W};
_.Uo=function(W){var P,x,I,O;return(O=(I=(x=(P=W.root)!=null?P:W.shadowRoot)!=null?x:W.__shady_native_shadowRoot)!=null?I:W.__shady_shadowRoot)!=null?O:W};
Xy=function(W){return W instanceof ShadowRoot?ShadowRoot:W instanceof DocumentFragment?DocumentFragment:W instanceof Document?Document:HTMLElement};
cxx=function(W){var P,x,I;return(I=(x=(P=W.parentElement)!=null?P:W.__shady_native_parentElement)!=null?x:W.__shady_parentElement)!=null?I:null};
axG=function(W){var P,x,I;return(I=(x=(P=W.parentNode)!=null?P:W.__shady_native_parentNode)!=null?x:W.__shady_parentNode)!=null?I:null};
bBC=function(W){var P,x,I;return(I=(x=(P=W.__shady_parentNode)!=null?P:W.__shady_native_parentNode)!=null?x:W.parentNode)!=null?I:null};
kp7=function(W){var P,x;return(x=(P=axG(W))!=null?P:W.host)!=null?x:null};
UWt=function(W){var P,x,I;return(I=(x=(P=W.nextSibling)!=null?P:W.__shady_native_nextSibling)!=null?x:W.__shady_nextSibling)!=null?I:null};
Xbt=function(W){var P,x,I;return(I=(x=(P=W.previousSibling)!=null?P:W.__shady_native_previousSibling)!=null?x:W.__shady_previousSibling)!=null?I:null};
fxt=function(W){var P,x,I;return(I=(x=(P=W.nextElementSibling)!=null?P:W.__shady_native_nextElementSibling)!=null?x:W.__shady_nextElementSibling)!=null?I:null};
NWt=function(W){var P,x,I;return(I=(x=(P=W.previousElementSibling)!=null?P:W.__shady_native_previousElementSibling)!=null?x:W.__shady_previousElementSibling)!=null?I:null};
lxG=function(W){var P,x,I;return new Set([].concat(_.ju((P=W.children)!=null?P:[]),_.ju((x=W.__shady_native_children)!=null?x:[]),_.ju((I=W.__shady_children)!=null?I:[])))};
TWW=function(W){var P,x,I;return new Set([].concat(_.ju((P=W.childNodes)!=null?P:[]),_.ju((x=W.__shady_native_childNodes)!=null?x:[]),_.ju((I=W.__shady_childNodes)!=null?I:[])))};
rxW=function(W){if(!W)return null;var P=_.bS(W);if(!P){var x;return(x=Node.prototype.getRootNode)==null?void 0:x.call(W)}P=P.toUpperCase();for(W=cxx(W);W&&W.tagName!==P;)W=cxx(W);return W?_.Uo(W):null};
iBR=function(W){for(;W&&!(W instanceof HTMLElement);)W=kp7(W);return W};
RHm=function(W){var P=iBR(W);return W===P?_.bS(W):P?k3(P):null};
FIA=function(W){return(W=iBR(W))?k3(W):null};
qmG=function(W){if(W instanceof Comment)return!1;if(W instanceof Text){var P,x;if(((x=(P=W.textContent)==null?void 0:P.trim())!=null?x:"")==="")return!1}return!0};
fL=function(W,P,x){var I=P(W);for(x=x===void 0?FIA(W):x;I&&(RHm(I)!==x||!qmG(I));)W=I,I=P(W);return I};
LIo=function(W,P,x){if(!P)return null;W=FIA(W);return RHm(P)===W&&qmG(P)?P:fL(P,x,W)};
W3d=function(W){return fL(W,bBC,_.bS(W))};
PRR=function(W){return fL(W,fxt)};
xfR=function(W){return fL(W,UWt)};
IdW=function(W){return fL(W,NWt)};
O7A=function(W){return fL(W,Xbt)};
JfR=function(W){return LIo(W,W.firstChild||W.__shady_native_firstChild||W.__shady_firstChild||null,UWt)};
BqS=function(W){var P,x,I;var O=(I=(x=(P=W.firstElementChild)!=null?P:W.__shady_native_firstElementChild)!=null?x:W.__shady_firstElementChild)!=null?I:null;return LIo(W,O,fxt)};
nwS=function(W){var P,x,I;var O=(I=(x=(P=W.lastChild)!=null?P:W.__shady_native_lastChild)!=null?x:W.__shady_lastChild)!=null?I:null;return LIo(W,O,Xbt)};
Yfm=function(W){var P,x,I;var O=(I=(x=(P=W.lastElementChild)!=null?P:W.__shady_native_lastElementChild)!=null?x:W.__shady_lastElementChild)!=null?I:null;return LIo(W,O,NWt)};
yfm=function(W){var P=FIA(W);return Array.from(TWW(W)).filter(function(x){return RHm(x)===P})};
K38=function(W){var P=k3(W);return Array.from(lxG(W)).filter(function(x){return _.bS(x)===P})};
_.Na=function(W,P,x){if(W instanceof HTMLElement&&_.bS(W)===x){var I=Array.from(W.classList).indexOf("style-scope");if(I===-1)W.classList.add("style-scope"),W.classList.add(P);else if(!(I+1>=W.classList.length)){I=W.classList[I+1];var O,B;W==null||(O=W.classList)==null||(B=O.replace)==null||B.call(O,I,P)}}if(W instanceof HTMLElement||W instanceof DocumentFragment)for(O=_.n(lxG(W)),B=O.next();!B.done;B=O.next())_.Na(B.value,P,x);return W};
lS=function(W,P){if(W instanceof HTMLElement&&_.bS(W)===P){var x=Array.from(W.classList).indexOf("style-scope");x===-1||x+1>=W.classList.length||W.classList.remove("style-scope",W.classList[x+1])}if(W instanceof HTMLElement||W instanceof DocumentFragment){x=_.n(W.children);for(var I=x.next();!I.done;I=x.next())lS(I.value,P)}return W};
_.Z78=function(W,P){return Xy(W).prototype.appendChild.call(W,P)};
owG=function(W,P){if(W===P)return!0;W=TWW(W);return Array.from(W).some(function(x){return owG(x,P)})};
_.g=function(W,P){if(W instanceof T1)return W;(P==null?0:P.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(W,"ownerDocument")&&Object.defineProperty(W,"ownerDocument",{get:function(){return window.document}});
return new T1(W)};
uKm=function(){var W=T1.prototype,P=[].concat(_.ju(SfG?[]:["getRootNode"]),["setAttribute","removeAttribute"]);P=_.n(P);for(var x=P.next(),I={};!x.done;I={method$jscomp$48:void 0},x=P.next())I.method$jscomp$48=x.value,W[I.method$jscomp$48]=function(O){return function(){return this.host[O.method$jscomp$48].apply(this.host,arguments)}}(I)};
sVd=function(){var W=T1.prototype,P=[].concat(_.ju(SfG?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.ju(dfW?[]:["querySelector","querySelectorAll"]));P=_.n(P);for(var x=P.next(),I={};!x.done;I={method$jscomp$49:void 0},x=P.next())I.method$jscomp$49=x.value,W[I.method$jscomp$49]=function(O){return function(){return this.root[O.method$jscomp$49].apply(this.root,arguments)}}(I)};
Vg7=function(){var W=T1.prototype,P=[].concat(_.ju(vwx?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.ju(mfR?[]:["parentNode"]));P=_.n(P);for(var x=P.next(),I={};!x.done;I={prop$jscomp$62:void 0},x=P.next())I.prop$jscomp$62=x.value,Object.defineProperty(W,I.prop$jscomp$62,{get:function(O){return function(){return this.host[O.prop$jscomp$62]}}(I),
configurable:!0})};
jVA=function(){var W=T1.prototype,P=["activeElement"].concat(_.ju(vwx?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.ju(tgt?[]:["children"]),_.ju(pwo?[]:["lastChild"]));P=_.n(P);for(var x=P.next(),I={};!x.done;I={prop$jscomp$63:void 0},x=P.next())I.prop$jscomp$63=x.value,Object.defineProperty(W,I.prop$jscomp$63,{get:function(O){return function(){return this.root[O.prop$jscomp$63]}}(I),
configurable:!0})};
QVt=function(){for(var W=T1.prototype,P=_.n(["innerHTML","textContent"]),x=P.next(),I={};!x.done;I={prop$jscomp$64:void 0},x=P.next())I.prop$jscomp$64=x.value,Object.defineProperty(W,I.prop$jscomp$64,{get:function(O){return function(){return this.root[O.prop$jscomp$64]}}(I),
set:function(O){return function(B){this.root[O.prop$jscomp$64]=B}}(I),
configurable:!0})};
CRm=function(W){var P=T1.prototype;W=_.n(Object.entries(W));for(var x=W.next(),I={};!x.done;I={fn$jscomp$361:void 0},x=W.next()){var O=_.n(x.value);x=O.next().value;O=O.next().value;I.fn$jscomp$361=O;P[x]=function(B){return function(){return B.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.ju(arguments)))}}(I)}};
z9t=function(){for(var W=T1.prototype,P=_.n(Object.entries(AfR)),x=P.next(),I={};!x.done;I={fn$jscomp$362:void 0},x=P.next()){var O=_.n(x.value);x=O.next().value;O=O.next().value;I.fn$jscomp$362=O;Object.defineProperty(W,x,{get:function(B){return function(){return B.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.ju(arguments)))}}(I),
configurable:!0})}};
_.rT=function(W){return W instanceof Gqx||W instanceof Document?W:new Gqx(W)};
EwR=function(){for(var W=Gqx.prototype,P=_.n("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),x=P.next(),I={};!x.done;I={method$jscomp$50:void 0},x=P.next())I.method$jscomp$50=x.value,W[I.method$jscomp$50]=function(O){return function(){return HTMLElement.prototype[O.method$jscomp$50].call.apply(HTMLElement.prototype[O.method$jscomp$50],[this.node].concat(_.ju(arguments)))}}(I)};
gw8=function(){for(var W=Gqx.prototype,P=_.n("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),x=P.next(),I={};!x.done;I={prop$jscomp$65:void 0},x=P.next())I.prop$jscomp$65=x.value,Object.defineProperty(W,I.prop$jscomp$65,{get:function(O){return function(){var B;return(B=this.node["__shady_native_"+O.prop$jscomp$65])!=null?B:this.node[O.prop$jscomp$65]}}(I),
configurable:!0})};
_.iS=function(W,P,x){x===void 0&&(x=!W.classList.contains(P));x?W.classList.add(P):W.classList.remove(P)};
_.Rf=function(W,P,x){x===void 0&&(x=!W.hasAttribute(P));if(P==="class")throw Error("eg");x?_.rT(W).setAttribute(P,""):_.rT(W).removeAttribute(P)};
DfR=function(W){return(W.localName!=="slot"?[]:(0,_.Fy)(W).assignedNodes({flatten:!0})).filter(function(P){return P.nodeType===Node.ELEMENT_NODE})};
_.Mgx=function(W){return(W=_.g(W).querySelector("slot"))&&W.localName==="slot"?DfR(W):[]};
_.qa=function(W,P){window.ShadyCSS&&window.ShadyCSS.styleSubtree(W,P)};
LL=function(W,P){var x=P.bind(W);return function(I){x(I,I.detail)}};
_.WM=function(W,P){var x=$fm.get(W);x||(x=new WeakMap,$fm.set(W,x));if(x.has(P))return x.get(P);if(_.p("web_fi_listen_disable_bound_fn_helper")){var I=P.bind(W);W=function(O){I(O,O==null?void 0:O.detail)}}else W=LL(W,P);
x.set(P,W);return W};
H7G=function(W,P){wwR(W);W.created[h9W].push(P)};
wwR=function(W){if(!W.created||!W.created[h9W]){var P=W.created,x=P?[P]:[];W.created=function(){for(var I=_.n(x),O=I.next();!O.done;O=I.next())O.value.apply(this)};
W.created[h9W]=x}};
e9m=function(W){return function(){var P=_.tH.apply(0,arguments);return function(x,I,O){W.apply(null,_.ju(P))(x,I,O)}}};
cfo=function(){return function(){var W=_.tH.apply(0,arguments);return function(P,x,I){wXx.apply(null,_.ju(W))(P,x,I)}}};
_.h=function(W){return cfo()(W)};
_.H=function(){return e9m(cMA).apply(null,_.ju(_.tH.apply(0,arguments)))};
_.I7=function(W){return _.p("pbcm_fi_listen_decorators")?adA(W):e9m(HPR)(W)};
adA=function(W){return function(P,x){H7G(P,function(){var I=this[x],O=_.p("web_fi_listen_disable_bound_fn_helper")?function(B){I(B,B.detail)}.bind(this):LL(this,I);
b77.has(W)?AC(this.hostElement,W,O):this.hostElement.addEventListener(W,O)})}};
_.OZ=function(){return e9m(euW).apply(null,_.ju(_.tH.apply(0,arguments)))};
_.c=function(W){W=W===void 0?{}:W;return e9m(huU)(W)};
_.JE=function(W){if(W.hostElement&&W!==W.hostElement){var P=_.VS(W.hostElement);P=W.renderIdom?P:P.shadowRoot}P||(W=W.root,P=W instanceof Node?_.VS(W):null);return P};
_.BM=function(W){return kqx?Ufd(W):function(P,x){Object.defineProperty(P,x,{get:function(){var I;return(I=_.JE(this))==null?void 0:I.querySelector(W)},
enumerable:!0,configurable:!0})}};
Ufd=function(W){return function(P,x){Object.defineProperty(P,x,{get:function(){var I,O=(I=_.g(this.hostElement))==null?void 0:I.querySelector(W);if(O)return O;var B;return(B=_.JE(this))==null?void 0:B.querySelector(W)},
enumerable:!0,configurable:!0})}};
_.n_=function(W){return kqx?Xw8(W):function(P,x){Object.defineProperty(P,x,{get:function(){var I;return(I=_.JE(this))==null?void 0:I.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
Xw8=function(W){return function(P,x){Object.defineProperty(P,x,{get:function(){var I,O=(I=_.g(this.hostElement))==null?void 0:I.querySelectorAll(W);if(O==null?0:O.length)return O;var B;return(B=_.JE(this))==null?void 0:B.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
fdR=function(W){return function(P){if(![_.lV,_.b].includes(Object.getPrototypeOf(P.prototype).constructor))throw Error("fg");AMC(Object.assign({},typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(P)}};
_.yL=function(){var W=W===void 0?{}:W;return function(P){if(![TY,_.Yl].includes(Object.getPrototypeOf(P.prototype).constructor))throw Error("gg");zuC(Object.assign({},W,{disableInheritanceCheck:!0}))(P)}};
ldR=function(W,P){Nqo[W]!=null||(Nqo[W]=new Set);Nqo[W].add(P)};
_.K_=function(){var W=_.OZ.apply(null,_.ju(_.tH.apply(0,arguments)));return function(P,x){ldR(P.is,x);W(P,x)}};
Sd=function(W,P,x){if(Ze(W)&&!Tqd.has(P)){P=P.replace(/^JSC\$[\d]+_/,"");P=P.replace(/\.\d+(\.|$)/g,function(B,Y){return".#"+Y});
o7[W]!=null||(o7[W]={});var I,O;(I=o7[W])[O=P]!=null||(I[O]=new Set);o7[W][P].has(x)||(o7[W][P].add(x),_.Ay("polymerPropertyAccessEvent",{componentName:W,propertyName:P,accessType:x}))}};
rfC=function(){return _.p("polymer_property_access_logging_debug")||_.p("polymer_enable_property_access_logging")};
Ze=function(W){if(_.p("polymer_property_access_logging_debug"))return!0;if(!_.p("polymer_enable_property_access_logging"))return!1;i7o||(i7o=Date.now());return(HV(W)+i7o)%100<_.Wi("polymer_property_access_logging_percent")};
R9m=function(W,P){return Ze(P)&&W.hostElement.loggingStatus?new Proxy(W,{get:function(x,I,O){if(x.hostElement.loggingStatus.bypassProxyController)return x[I];x.hostElement.loggingStatus.isExternalGet=!0;var B=x[I];x.hostElement.loggingStatus.isExternalGet=!1;if(B instanceof Function)return function(){var Y=_.tH.apply(0,arguments);try{return x.hostElement.loggingStatus.currentExternalCall=I,Sd(P,I,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),B.apply(this===O?x:this,Y)}finally{x.hostElement.loggingStatus.currentExternalCall=
void 0}};
Sd(P,I,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return B},
set:function(x,I,O){if(x.hostElement.loggingStatus.bypassProxyController)return x[I]=O,!0;x.hostElement.loggingStatus.isRendererStamper?Sd(P,I,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):x.hostElement.loggingStatus.isDeclarativeExternal||Sd(P,I,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{x.hostElement.loggingStatus.currentExternalSet=I,x[I]=O}finally{x.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):W};
F3R=function(W,P){W&&W.loggingStatus&&!W.loggingStatus.isDeclarativeExternal&&!W.loggingStatus.isExternalGet&&W.loggingStatus.currentExternalSet!==P&&Sd(W.tagName.toLowerCase(),P,"PROPERTY_ACCESS_GET_INTERNAL")};
uw=function(W,P,x){W&&(x||W.loggingStatus&&!W.loggingStatus.isInitializing&&!W.loggingStatus.isDefiningPropertyAccessor&&W.loggingStatus.currentExternalSet!==P)&&Sd(W.tagName.toLowerCase(),P,"PROPERTY_ACCESS_SET_INTERNAL")};
qfR=function(){return{_definePropertyAccessor:function(W,P){var x=this,I=x.hostElement.loggingStatus;I&&(I.isDefiningPropertyAccessor=!0);var O=x[W];O!==void 0&&(x.__data?x._setPendingProperty(W,O):(x.__dataProto!=null||(x.__dataProto={}),x.__dataProto[W]=O));I&&(I.isDefiningPropertyAccessor=!1);Object.defineProperty(this,W,{get:function(){F3R(x.hostElement,W);return this.__data[W]},
set:function(B){P||this._setPendingProperty(W,B,!0)&&this._invalidateProperties()}})},
created:function(){var W=this._setPendingProperty.bind(this);this._setPendingProperty=function(P,x,I){uw(this.hostElement,P);return W.apply(this,[P,x,I])}}}};
L3C=function(W){rfC()&&_.h(dY.prototype)(W.prototype,"__templateBindingLoggingBehavior")};
Wlm=function(W,P){if(P.resolvedFactories.length!==W.resolvedFactories.length)return!0;P=_.n(P.resolvedFactories.entries());for(var x=P.next();!x.done;x=P.next()){var I=_.n(x.value);x=I.next().value;I=I.next().value;if(I.providerClass){if(I.providerClass!==W.resolvedFactories[x].providerClass)return!0}else if(I.providerValue){if(I.providerValue!==W.resolvedFactories[x].providerValue)return!0}else if(I.factory!==W.resolvedFactories[x].factory)return!0}return!1};
PWA=function(W,P){W=_.n(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,x.constructor===Array)PWA(x,P);else{var I=P;I.has(x)||(x.inject&&I.add(x),x.behaviors&&PWA(x.behaviors,I))}};
sZ=function(W,P){var x=W[P];W[P]=function(){var I=_.tH.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(x)return x.apply(this,I)}};
JTC=function(){_.vM.Class=function(x,I){x=x0o(x,I);sZ(x.prototype,"created");return x};
sZ(mr.prototype,"_initializeProperties");sZ(_.VL.prototype,"_initializeProperties");if(IWA)sZ(OrC,"created");else{var W=function(){sZ(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))W();else{var P=customElements.define;customElements.define=function(x,I,O){P.call(customElements,x,I,O);x==="tp-yt-iron-list"&&(W(),customElements.define=P)}}}};
ntW=function(W,P){W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(BZt.InjectBehavior);W.prototype.provide=P};
_.jd=function(W){return function(P){if(!W.disableElementRegistration){W.noInjection||ntW(P,W.providers);var x=P.prototype;x.__templateHelpers||wXx(tE.prototype)(x,"__templateHelpers");x=W.is;Y$o||(Y$o=Date.now());(HV(x)+Y$o)%100<_.Wi("polymer_log_prop_change_observer_percent")&&wXx(p_.prototype)(P.prototype,"__propertyObserverObserver");P.prototype.behaviors=P.prototype.behaviors||[];P.prototype.behaviors.unshift(_.yTW.YtHostElementBehavior);L3C(P);fdR({is:W.is,notifyObserversOnUndefined:W.notifyObserversOnUndefined!==
!1,fastInit:W.fastInit,template:W.template,disableEnforceFastDefaultValuesCheck:!0})(P)}}};
_.U=function(W){return _.jd({is:W.is,template:W.template,disableElementRegistration:W.disableElementRegistration,cssBuildOptOut:W.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
otm=function(W,P){if(Klm){W=new W;for(var x=_.n(Object.getOwnPropertyNames(W)),I=x.next();!I.done;I=x.next())I=I.value,P[I]=W[I];for(x=P;x&&x!==Object.prototype;x=Object.getPrototypeOf(x)){I=_.n(Object.getOwnPropertyNames(x));for(var O=I.next();!O.done;O=I.next())O=O.value,W.hasOwnProperty(O)||Object.defineProperty(W,O,ZrR(P,O))}}else W.apply(P)};
ZrR=function(W,P){return{get:function(){var x=W[P];return x instanceof Function?x.bind(W):x},
set:function(x){W[P]=x}}};
u7m=function(W,P){for(var x=W._noAccessors,I=_.n(Object.getOwnPropertyNames(W)),O=I.next();!O.done;O=I.next())if(O=O.value,!S$t.has(O))if(x)P[O]=W[O];else{var B=Object.getOwnPropertyDescriptor(W,O);B&&(B.configurable=!0,Object.defineProperty(P,O,B))}};
d0R=function(W,P,x){return function(I){if(x){var O=x();I.model=O}if(W[P])W[P](I,I.detail)}};
QL=function(W){var P=[];if(typeof W==="string")W.length>0&&P.push.apply(P,_.ju(W.split(".")));else{W=_.n(W);for(var x=W.next();!x.done;x=W.next())x=x.value,typeof x==="string"?P.push.apply(P,_.ju(x.split("."))):P.push(x)}return P};
s8S=function(W,P){if(P[P.length-1]!=="*"&&P[P.length-1]!=="splices"){for(var x=0;x<P.length;x++){if(!W)return;W=W[P[x]]}return W}};
vto=function(W,P){if(W.length>P.length)return!1;for(var x=0;x<W.length;x++)if(W[x]!==P[x])return!1;return!0};
Vpo=function(W,P,x){if(P.type==="compute"){var I=P.getter.bind(x);var O=P.args}else I=function(){return x[P.method.methodName].apply(x,_.ju(_.tH.apply(0,arguments)))},O=P.method.args;
m0x(W,P.propertyKey,I,O,P.value)};
pgo=function(W,P){if(P.readOnly){var x=Object.getOwnPropertyDescriptor(W.model,P.propertyKey);Object.defineProperty(W.model,P.propertyKey,{get:x.get,set:function(){}});
W.model[tpR(P.propertyKey)]=x.set}};
j8W=function(W,P,x){if(x){var I=P.propertyKey,O=P.selector;P=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.ju(P.selectorArgs.map(function(B){return{type:"path",path:B}})));
m0x(W,I,function(B){var Y=_.tH.apply(1,arguments);return O.apply(null,[x.getState()].concat(_.ju(Y)))},P)}};
CWm=function(W,P,x){var I=_.Kf(P.propertyKey)+"-changed";Q8C(W,function(O){var B={value:O.value,queueProperty:!0};O.path.split(".").length>1&&(B.path=O.path);x.dispatchEvent(new CustomEvent(I,{detail:B}))},[{type:"wildcard",
path:P.propertyKey}])};
ATd=function(W,P,x){Q8C(W,function(){x[P.method.methodName].apply(x,_.ju(_.tH.apply(0,arguments)))},P.method.args)};
tpR=function(W){return"_set"+(W.charAt(0).toUpperCase()+W.slice(1))};
zLd=function(){var W,P=Ag(function(x){W=x},!1);
return[W,P]};
Mpo=function(W){W=W.trim().replace(G5t,",").replace(EtG,"$1");var P=W[0];P==="-"&&(P=W[1]);if(P>="0"&&P<="9")return{type:"literal",value:Number(W)};if(P==="'"||P==='"')return{type:"literal",value:W.slice(1,-1)};if(P=W.match(gtG)){P=P[1];var x=D0S[P];if(x)return{type:x,path:W.slice(0,-(P.length+1))}}return{type:"path",path:W}};
HrG=function(W){var P=W.match($0R);if(P)return W={methodName:P[1],args:wgx},P[2].trim()&&(P=P[2].replace(hLd,"&comma;").split(","),W.args=P.map(Mpo)),W};
eLt=function(W,P,x,I){I=I===void 0?!1:I;P=_.Kf(P);var O=uV;O&&(x=O(x,P,"attribute",W));C_(W,x,P,I)};
C_=function(W,P,x,I){P=cTW(P,I===void 0?!1:I);P===void 0?W.removeAttribute(x):W.setAttribute(x,P)};
cTW=function(W,P){switch(typeof W){case "object":case "function":if(W instanceof Date)return W.toString();if(W){if((P===void 0?0:P)&&!_.p("polymer_reflect_objects_as_boolean_killswitch"))return W?"":void 0;P=window.trustedTypes?window.trustedTypes.isHTML(W)||window.trustedTypes.isScript(W)||window.trustedTypes.isScriptURL(W):void 0;if(P)return W;try{return JSON.stringify(W)}catch(x){_.ge(Error("Cg`"+W))}}break;case "boolean":return W?"":void 0;default:return W!==null&&W!==void 0?W.toString():void 0}};
aWS=function(W){if(W===void 0)throw Error("Dg");return W};
fWx=function(W,P,x,I){var O=brx(I);if(O.length){I=x;var B="property";k5d.test(x)?B="attribute":x[x.length-1]==="$"&&(x=x.slice(0,-1),B="attribute");var Y=U0d(O);Y&&B==="attribute"&&(x==="class"&&W.hasAttribute("class")&&(Y+=" "+W.getAttribute(x)),C_(W,Y,x));B==="attribute"&&I==="disable-upgrade$"&&W.setAttribute("disable-upgrade","");W.localName==="input"&&I==="value"&&W.setAttribute("value","");W.removeAttribute(I);B==="property"&&(x=_.Zt(x));P=aWS(P);Xgt(P,B,x,O);return!0}return x.slice(0,3)===
"on-"?(W.removeAttribute(x),(B=P).events!=null||(B.events=[]),P.events.push({name:x.slice(3),value:I}),!0):x==="id"?(P.id=I,!0):!1};
brx=function(W){for(var P=[],x=0,I;(I=NZm.exec(W))!==null;){I.index>x&&P.push({type:"literal",value:W.slice(x,I.index)});var O=I[1][0];x=!!I[2];I=I[3].trim();if(O==="{")throw Error("Eg");(O=HrG(I))?P.push({type:"method",negate:x,signature:O}):P.push({type:"path",negate:x,path:I});x=NZm.lastIndex}x&&x<W.length&&(W=W.substring(x))&&P.push({type:"literal",value:W});return P};
U0d=function(W){for(var P="",x=0;x<W.length;x++){var I=W[x];I.type==="literal"&&(P+=I.value)}return P};
Xgt=function(W,P,x,I){W.bindings!=null||(W.bindings=[]);W.bindings.push({kind:P,target:x,parts:I})};
RLm=function(W,P,x){var I=!1;if(W.localName==="template"){I=x;var O=P.stripWhitespace;O=lWm(W,O===void 0?!1:O);var B=W.content.ownerDocument.createDocumentFragment();O.content=B;B.appendChild(W.content);I&&(I.templateInfo=O);I=!0}else W.localName==="slot"&&(P.hasInsertionPoint=!0);if(W.firstChild&&(O=x,W.localName!=="script"&&W.localName!=="style")){B=0;for(var Y=W.firstChild;Y;){var K=Y;if(K.localName==="template"){var Z=K.getAttribute("is");if((Y=Z==="dom-if")||Z==="dom-repeat"){K.removeAttribute("is");
Z=K.ownerDocument.createElement("ps-"+Z);K.parentNode.replaceChild(Z,K);Z.appendChild(K);var d=Array.from(K.attributes);d=_.n(d);for(var v=d.next();!v.done;v=d.next())v=v.value,Y?TZG.has(v.name)&&C_(Z,v.value,v.name):rTG.has(v.name)?C_(Z,v.value,v.name):ir8.has(v.name),K.removeAttribute(v.name);Y=Z}else Y=K}if(Y.nodeType===Node.TEXT_NODE){K=void 0;Z=W;for(d=Y;((K=d.nextSibling)==null?void 0:K.nodeType)===Node.TEXT_NODE;)v=void 0,(v=d).textContent!=null||(v.textContent=""),d.nextSibling.textContent&&
(d.textContent+=d.nextSibling.textContent),Z.removeChild(d.nextSibling);if(P.stripWhitespace&&Y.textContent&&!Y.textContent.trim()){W.removeChild(Y);Y=Y.nextSibling;continue}}RLm(Y,P,{parentIndex:B,parentInfo:O});Y.parentNode&&B++;Y=Y.nextSibling}}var m;if((m=W.hasAttributes)==null?0:m.call(W)){m=x=aWS(x);O=!1;B=Array.from(W.attributes);B=_.n(B);for(K=B.next();!K.done;K=B.next())K=K.value,O=fWx(W,m,K.name,K.value)||O;I=O||I}W.nodeType===Node.TEXT_NODE&&(m=brx(W.textContent),m.length&&(W.textContent=
U0d(m)||" ",x=aWS(x),Xgt(x,"text","textContent",m),I=!0));x&&I&&(x.infoIndex=P.nodeInfoList.push(x)-1)};
lWm=function(W,P){P={nodeInfoList:[],stripWhitespace:(P===void 0?!1:P)||W.hasAttribute("strip-whitespace")};RLm(W.content,P);return P};
FlC=function(W){Object.assign(W,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
LlW=function(W,P,x){P.signalCache!=null||(P.signalCache={});var I=P.signalCache[x];if(!I){var O=x.split("."),B,Y;I=_.p("web_polysi_immutable_root_fix_killswitch")?!((B=W.options)==null?0:(Y=B.immutableProps)==null?0:Y.has(O[0])):!q$W(W,O[0]);if(O.length>1&&I){var K=W.getPathMutationSignal(O);I=function(){var Z=Ew(W.owner,function(){return W.getWithPath([O[0]])}),d,v=(d=K())==null?void 0:d.value;
return{rootWasDefined:Z!==void 0,value:v}}}else I=function(){var Z=W.getWithPath(O);
return{rootWasDefined:Z!==void 0,value:Z}};
P.signalCache[x]=I}return I()};
P8U=function(W,P,x,I,O){P=P.parts.map(function(Y,K){if(Y.type==="literal"){x.partWasDefined!=null||(x.partWasDefined=[]);var Z;(Z=x.partWasDefined)[K]||(Z[K]=Y.value!==void 0);return Y.value}var d;if(Y.type==="method"){var v,m=(v=(d=x.partWasDefined)==null?void 0:d[K])!=null?v:!1;m||(m=Y.signature.args.every(function(z){return z.type==="literal"}));
var t=!1,C=!0;d=Y.signature.args.map(function(z){if(z.type==="literal")return z.value;if(z.type!=="path")throw Error("Fg`"+z.type);var D=LlW(W,x,z.path);z=D.value;D=D.rootWasDefined;t||(t=D);C&&(C=D);return z});
m||(m=O===1?C:t);x.partWasDefined!=null||(x.partWasDefined={});x.partWasDefined[K]=m;if(!m)return;d=(K=LlW(W,x,Y.signature.methodName).value)&&typeof K==="function"?K.apply(I,d):void 0}else v=LlW(W,x,Y.path),d=v.value,x.partWasDefined!=null||(x.partWasDefined={}),(m=x.partWasDefined)[K]||(m[K]=d!==void 0||v.rootWasDefined);Y.negate&&(d=!d);return d});
if(P.length===1){var B;return((B=x.partWasDefined)==null?0:B[0])?P[0]:WcS}return P.join("")};
x2U=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W&&"canNotifyPath"in W};
Ivt=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W};
OOm=function(W){return"polymerController"in W};
JLU=function(W,P){P=""+QL(P)[0];if(x2U(W))return W.canNotifyPath(P);if(OOm(W)&&x2U(W.polymerController))return W.polymerController.canNotifyPath(P);if(Ivt(W)){var x;return!((x=W.properties)==null||!x[P])}if(OOm(W)&&Ivt(W.polymerController)){var I;return!((I=W.polymerController.properties)==null||!I[P])}return!1};
BCA=function(W,P,x){x2U(W)||Ivt(W)?W.notifyPath(P,x):OOm(W)&&(x2U(W.polymerController)||Ivt(W.polymerController))&&W.polymerController.notifyPath(P,x)};
YB7=function(W,P,x){if(x!==WcS){W.kind==="attribute"||W.target!=="textContent"&&(W.target!=="value"||P.localName!=="input"&&P.localName!=="textarea")||(x=x===void 0?"":x);var I,O=(I=nJm.Polymer)==null?void 0:I.sanitizeDOMValue;O&&(x=O(x,W.target,W.kind,P));if(W.kind==="attribute"){W=W.target;if(W==="class"||W==="name"||W==="slot")P=(0,_.Fy)(P);C_(P,x,W)}else if(W=W.target,x!==P[W]||typeof x==="object")P.loggingStatus&&(P.loggingStatus.isDeclarativeExternal=!0,Sd(P.localName,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
P[W]=x,P.loggingStatus&&(P.loggingStatus.isDeclarativeExternal=!1)}};
yLA=function(W,P,x,I){var O=P.parts[0];if(P.parts.length!==1||O.type!=="path"||!JLU(x,P.target))return!1;var B=_.n(O.path.split(".")),Y=B.next().value,K=UW(B);if(!_.p("web_polysi_immutable_root_fix_killswitch")&&q$W(W,Y))return!1;I.signalCache!=null||(I.signalCache={});B=I.signalCache[O.path];var Z;B=(Z=B)==null?void 0:Z().value;if((B==null?void 0:B.path)!==void 0){I=QL(B.path);var d=QL(O.path);I=[P.target].concat(_.ju(I.slice(d.length-1)));BCA(x,I,O.negate?!B.value:B.value);return!0}var v=AE(W,Y);
var m=v.getChangeRecordSignal(K),t=!1;B=function(){if(!t){var z=Ew(W.owner,function(){return v.getWithPath([])});
t||(t=z!==void 0)}return{value:m(),rootWasDefined:t}};
I.signalCache[O.path]=B;I.partWasDefined!=null||(I.partWasDefined={});B=B();(d=I.partWasDefined)[0]||(d[0]=B.rootWasDefined);var C=Ew(W.owner,function(){return v.getWithPath(K)});
I.partWasDefined[0]&&Ew(W.owner,function(){return void YB7(P,x,O.negate?!C:C)});
return!0};
Kct=function(W,P,x,I,O,B){if(!yLA(W,P,x,I)){var Y=P8U(W,P,I,O,B);Ew(W.owner,function(){return void YB7(P,x,Y)})}};
ZOA=function(W,P,x,I,O,B){x=_.n(x);for(var Y=x.next(),K={};!Y.done;K={infoIndex:void 0},Y=x.next()){Y=Y.value;var Z=Y.bindings;K.infoIndex=Y.infoIndex;Y=Y.parentInfo;if(Z){Z=_.n(Z);for(var d=Z.next(),v={};!d.done;v={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},d=Z.next()){v.b$jscomp$254=d.value;if(K.infoIndex===void 0)throw Error("Gg");v.bindingCtx$jscomp$4={};W.effect(function(m,t){return function(){O&&!O()||Kct(W,m.b$jscomp$254,P[t.infoIndex],m.bindingCtx$jscomp$4,I,B)}}(v,K))}}Y&&ZOA(W,P,[Y],
I,O,B)}};
oJ8=function(W,P){W=(P.parentInfo?oJ8(W,P.parentInfo):W).firstChild;for(var x=0;W;W=W.nextSibling)if(P.parentIndex===x++)return W;throw Error("Hg");};
uxo=function(W,P,x,I){W=document.importNode(W.content,!0);W.__noInsertionPoint=!(I==null?0:I.hasInsertionPoint);for(var O=Array(P.length),B={},Y=0;Y<P.length;Y++){var K=P[Y],Z=oJ8(W,K);O[Y]=Z;K.id&&(B[K.id]=Z);if(K.templateInfo){var d=Z.parentElement;d&&(d.templateInfo=K.templateInfo,d.parentSignalProxy=x,d.eventListenerHost=I.eventListenerHost,d.stampingEnabled=I.enabledSignal)}d=void 0;if((d=K.events)==null?0:d.length)for(d=0;d<K.events.length;d++){var v=K.events[d];SBW(I.eventListenerHost,Z,v.name,
v.value,I.getModel)}}ZOA(x,O,P,I.thisCtx,I.enabledSignal,I.methodInvocationRequirement);return{root:W,nodes:O,nodesById:B}};
srW=function(W,P){W=W();var x;(x=d2t.ShadyCSS)==null||x.prepareTemplate(W,P);P=lWm(W);return{template:W,nodeInfoList:P.nodeInfoList,hasInsertionPoint:P.hasInsertionPoint}};
VMC=function(){vJo=!1;for(var W=zn.length,P=0;P<W;P++){var x=zn[P];if(x)try{x()}catch(I){Promise.resolve().then(function(){throw I;})}}zn.splice(0,W);
m27+=W};
Qrt=function(W){vJo||(vJo=!0,tMt.textContent=(pe8++).toString());zn.push(W);return jrW++};
_.gY=function(W,P,x){Gn++;W=P?new C8R(Gn,W,P,x):new ALo(Gn,W);EZ.set(Gn,W);return Gn};
zZG=function(W){(W=EZ.get(W))&&W.cancel()};
EJx=function(W,P){W=Gix.get(W);return W?(P=W.get(P))?P:null:null};
_.De=function(W,P,x,I){var O=EJx(W,P);if(!O){O=new gJA;var B=Gix.get(W);B||(B=new Map,Gix.set(W,B));B.set(P,O)}W=x.bind(W);O.run(W,I,void 0)};
_.D2d=function(W,P){var x;(x=EJx(W,P))==null||x.cancel()};
MMS=function(W){var P;(P=EJx(W,"doRender"))==null||P.flush()};
Mn=function(W){var P;return(P=W.hostElement)!=null?P:W};
$2m=function(W){var P=W.indexOf(".");return P===-1?W:W.slice(0,P)};
we8=function(W,P,x,I,O,B){B=(O=(I=B?$2m(P):P)?P:null)?W.get(O):W.__data[P];O&&B===void 0&&(B=x[P]);_.Lf(W.hostElement,yVm(I)+"-changed",{value:B,queueProperty:!0,path:O!=null?O:void 0},{bubbles:!1,composed:!1})};
hZS=function(W,P){W.__isReflecting=!0;eLt(W.hostElement,P,W.__data[P]);W.__isReflecting=!1};
HOS=function(W){if(W._onIronRequestResizeNotifications){var P=W._onIronRequestResizeNotifications.bind(W);W._onIronRequestResizeNotifications=function(x){_.af(x)!==W.hostElement&&P(x)}}W._ariaActiveAttributeChanged&&(W._ariaActiveAttributeChanged=W._ariaActiveAttributeChanged.bind(W.hostElement));
W._activeChanged&&(W._activeChanged=function(x){W.toggles?C_(W.hostElement,x?"true":"false",W.ariaActiveAttribute):W.hostElement.removeAttribute(W.ariaActiveAttribute);W._changedButtonState()});
W._asyncClick&&(W._asyncClick=function(){_.gY(function(){W.hostElement.click()},1)});
!W.keyEventTarget||W.keyEventTarget instanceof EventTarget||(W.keyEventTarget=Mn(W.keyEventTarget));W._disabledChanged&&(W._disabledChanged=W._disabledChanged.bind(W.hostElement));W._observeItems&&(W._observeItems=function(x){var I=Mn(x);return _.VS(I).observeNodes(function(O){W._updateItems();W._updateSelected();_.Lf(I,"iron-items-changed",O,{bubbles:!1,cancelable:!1})})});
W._updateItems&&W._updateItems===_.$l._updateItems&&(W._updateItems=function(){var x=_.VS(W.hostElement).queryDistributedElements(W.selectable||"*");x=Array.prototype.filter.call(x,W._bindFilterItem);W._setItems(x)});
W._computeKeyboardClass&&(W._computeKeyboardClass=function(x){_.iS(W.hostElement,"keyboard-focus",x)});
W.ensureRipple&&(W.ensureRipple=function(x){if(W.hasRipple&&!W.hasRipple()){if(!W._createRipple)return;W._ripple=W._createRipple();W._ripple.noink=W.noink;var I=W._rippleContainer||W.hostElement;I&&_.g(I).appendChild(W._ripple)}var O;if(x&&((O=W._ripple)==null?0:O.uiDownAction)){I=_.g(W._rippleContainer||W.hostElement);var B;O=(B=x.composedPath())==null?void 0:B[0];I.contains(O)&&W._ripple.uiDownAction(x)}});
W._updateMultiselectable&&(W._updateMultiselectable=function(x){x?W.hostElement.setAttribute("aria-multiselectable","true"):W.hostElement.removeAttribute("aria-multiselectable")})};
eZm=function(W,P,x){x=_.n(x);for(var I=x.next();!I.done;I=x.next())otm(I.value.constructor,W);otm(P.constructor,W)};
avd=function(W,P){W=_.n(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,x.type==="signal"){var I=x.propertyKey;if(P.hasOwnProperty(I)&&P[I]!=null&&x.attributeType===Object){a:{I=P[I].constructor;for(var O=_.n(cL7),B=O.next();!B.done;B=O.next())if(B=B.value,I===B){I=B;break a}I=Object}x.attributeType=I}}};
bOo=function(){};
kiU=function(W){var P;return(P=W.hostElement)!=null?P:W};
U27=function(){throw Error("Lg");};
XeG=function(W,P){W.constructor.prototype.useSignals=!0;var x=new W.constructor;eZm(x,W,P.behaviors);avd(P.reactiveSchemas,x);x={};for(var I=_.n(P.reactiveSchemas),O=I.next();!O.done;O=I.next())O=O.value,O.type==="signal"&&(x[O.propertyKey]=O.attributeType);var B={copyPropertiesToProto:U27,didRegister:!1,typesForSignals:x},Y=["disable-upgrade"].concat(_.ju(P.observedAttributes)),K=function(Z){wY.call(this,W,P,B,Z)};
_.A(K,wY);_.N1.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
B.copyPropertiesToProto=function(){for(var Z=0;Z<P.behaviors.length;Z++)u7m(P.behaviors[Z],K.prototype);u7m(W,K.prototype)};
P.legacyOptimizations||B.copyPropertiesToProto();K.prototype.is=W.is;return K};
fvm=function(W,P){if(Object.getPrototypeOf(P.prototype).constructor!==_.b)throw Error("Mg");P.prototype.is=W.is;return XeG(P.prototype,W)};
NCm=function(W){return W.type==="compute"||W.type==="computeWithMethod"};
lvU=function(W){for(var P=W.reactiveSchemas.filter(NCm),x=new Map,I=new Map,O=new Map,B=_.n(P),Y=B.next();!Y.done;Y=B.next())Y=Y.value,x.set(Y.propertyKey,Y),I.set(Y.propertyKey,[]),O.set(Y.propertyKey,0);B=0;P=_.n(P);for(Y=P.next();!Y.done;Y=P.next()){Y=Y.value;for(var K=_.n(Y.type==="computeWithMethod"?Y.method.args:Y.args),Z=K.next();!Z.done;Z=K.next())Z=Z.value,Z.type!=="literal"&&(Z=Z.path.split(".")[0],I.has(Z)&&(I.get(Z).push(Y.propertyKey),O.set(Y.propertyKey,O.get(Y.propertyKey)+1),B++))}Y=
[].concat(_.ju(I.keys())).filter(function(d){return O.get(d)===0});
for(P=[];Y.length;)for(K=Y.shift(),P.push(x.get(K)),K=_.n(I.get(K)),Z=K.next();!Z.done;Z=K.next())Z=Z.value,O.set(Z,O.get(Z)-1),B--,O.get(Z)===0&&Y.push(Z);x=W.reactiveSchemas.filter(function(d){return!NCm(d)});
W.reactiveSchemas=[].concat(_.ju(x),_.ju(P))};
TCS=function(W,P){if(P.properties)for(var x=_.n(Object.entries(P.properties)),I=x.next();!I.done;I=x.next()){var O=_.n(I.value);I=O.next().value;O=O.next().value;W.properties[I]=typeof O==="function"?{type:O}:O}P.observers&&W.observers.push.apply(W.observers,_.ju(P.observers));P.disabledPolySiReactions&&W.disabledPolySiReactions.push.apply(W.disabledPolySiReactions,_.ju(P.disabledPolySiReactions))};
rLU=function(W,P){for(var x=P.length-1;x>=0;x--){var I=P[x];Array.isArray(I)?rLU(W,I):W.indexOf(I)<0&&W.unshift(I)}};
iOA=function(W,P){W.reactiveSchemas=W.reactiveSchemas.filter(function(x){return x.type==="observe"&&P.includes(x.method.methodName)||NCm(x)&&P.includes(x.propertyKey)?!1:!0})};
FcR=function(W,P){var x=P.prototype,I,O,B={is:W.is,reactiveSchemas:[],observedAttributes:[],behaviors:[BZt.InjectBehavior,tE.prototype],disableElementRegistration:W.disableElementRegistration,provide:(I=W.providers)!=null?I:[],reactivityMode:W.reactivityMode,signalProperties:(O=x.signalProperties)!=null?O:[]};"template"in P?B.templateGetter=function(){return P.template}:W.getTemplate&&(B.templateGetter=W.getTemplate);
x.behaviors&&rLU(B.behaviors,x.behaviors);RZt(B,P);return B};
RZt=function(W,P){for(var x=P.prototype,I={properties:{},observers:[],disabledPolySiReactions:[]},O=_.n(W.behaviors),B=O.next();!B.done;B=O.next())TCS(I,B.value);TCS(I,x);if(W.signalProperties)for(x=_.n(W.signalProperties),O=x.next();!O.done;O=x.next())delete I.properties[O.value];x=_.n(Object.entries(I.properties));for(O=x.next();!O.done;O=x.next()){B=_.n(O.value);O=B.next().value;B=B.next().value;var Y=void 0;if((Y=W.signalProperties)==null||!Y.includes(O)){Y=void 0;var K=W,Z=B.type;if(!Z)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{Z=Reflect.getMetadata("design:type",P,O);for(var d=_.n(qBm),v=d.next();!v.done;v=d.next())if(v=v.value,Z===v){Z=v;break a}Z=Object}else Z=String;B.computed||B.selector||(K.reactiveSchemas.push({type:"signal",propertyKey:O,value:B.value,attributeType:Z,readOnly:B.readOnly}),K.observedAttributes.push(_.Kf(O)));B.reflectToAttribute&&K.reactiveSchemas.push({type:"reflect",propertyKey:O});if(B.computed){Z=HrG(B.computed);if(!Z)throw Error("Ng");K.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:O,method:Z,value:B.value})}B.observer&&K.reactiveSchemas.push({type:"observe",method:{methodName:B.observer,args:[{type:"path",path:O}]}});B.notify&&K.reactiveSchemas.push({type:"notify",propertyKey:O});B.selector&&K.reactiveSchemas.push({type:"redux",propertyKey:O,selector:B.selector,selectorArgs:(Y=B.selectorArgs)!=null?Y:[]})}}Lcm&&lvU(W);P=_.n(I.observers);for(O=P.next();!O.done;O=P.next())x=W,O=O.value,(B=HrG(O))?x.reactiveSchemas.push({type:"observe",method:B}):console.log('Warning: unable to parse observe declaration: "'+
O+'"');iOA(W,I.disabledPolySiReactions)};
WUd=function(W,P){for(var x=0;x<P.length;x++){var I=P[x],O=void 0;(O=I).showHideApi!=null||(O.showHideApi={});O=void 0;!!W!==!((O=I.showHideApi)==null||!O.hideTemplateChildren)&&(I.nodeType===Node.TEXT_NODE?W?(I.showHideApi.polymerTextContent=I.textContent,I.textContent=""):(O=void 0,I.textContent=(O=I.showHideApi.polymerTextContent)!=null?O:null):I instanceof Element&&I.localName==="slot"?W?(I.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Fy)((0,_.Fy)(I).parentNode).replaceChild(I.showHideApi.polymerReplaced,
I)):(O=I.showHideApi.polymerReplaced)&&(0,_.Fy)((0,_.Fy)(O).parentNode).replaceChild(I,O):I instanceof HTMLElement&&I.style&&(W?(I.showHideApi.polymerDisplay=I.style.display,I.style.display="none"):I.style.display=I.showHideApi.polymerDisplay));I.showHideApi.hideTemplateChildren=W;I.showHideChildren&&I.showHideChildren(W)}};
xv8=function(){if(!PFt){var W=document.createElement("style");W.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(W);PFt=!0}};
hE=function(){return _.p("disable_hidden_dom_if_using_stamper")||_.p("creator_disable_hidden_dom_if_using_stamper")};
IL7=function(W,P){var x=_.HM().getState();return P?W.apply(null,[x].concat(_.ju(P))):W(x)};
BBm=function(){if(Osm)return Osm;var W=_.n(_.YV(0,void 0,"Nl6eIe")),P=W.next().value;W.next();var x=W.next().value;_.HM().subscribe(function(){J77(x)});
return Osm=P};
J77=function(W){_.p("delay_redux_signal_update_killswitch")?W(function(P){return P+1}):nnA||(nnA=!0,Promise.resolve().then(function(){W(function(P){return P+1});
nnA=!1}))};
_.HM=function(){return YJR.getAppStore()};
ed=function(W,P){return YJR.getSelectFn()(W,P)};
_.cM=function(W){YJR.getDispatchFn()(W)};
y7m=function(W,P){var x={},I;for(I in W)x[I]=P(W[I],I);return x};
_.a7=function(W,P){return function(){var x;return(x=_.zB(W))!=null?x:P}};
_.bw=function(W,P){var x=Object.assign({},W),I;for(I in P)P.hasOwnProperty(I)&&(x[I]=_.a7(W[I],P[I]));return x};
KUo=function(W,P,x){W instanceof Element&&(x.debugName||(x.debugName="<"+W.tagName.toLowerCase()+(W.tagName.includes("-")?">":"."+W.className+">")),_.p("ytwiz_enable_debug_component_props")&&(W.debugProps||(W.debugProps=y7m(P,function(I){return function(){return I()}}))))};
_.kl=function(W,P){var x=function(I){var O={stack:[],error:void 0,hasError:!1};try{var B=ZsS={};var Y=onS(O,U_C("component()")),K;if(((K=x)==null?0:K.idomCompat)&&I.renderedFromIdom){Y==null||Y.attr("idomCompat",!0);var Z,d=typeof x.idomCompat==="object"?(Z=x)==null?void 0:Z.idomCompat.callbacks:{},v=_.n(SJd(I,d,x.debugName)),m=v.next().value;v.next();var t=v.next().value,C=uvx(W,m);B.privateValue=C;ZsS=void 0;KUo(C,m,x);Y==null||Y.attr("debugName",x.debugName);var z=IwC(C),D=Array.isArray(z)?z[0]:
z;D[JQ]||(D[JQ]={});D[JQ].updateSignalsFromIdomProps=t;return C}var w=y7m(I,dv7);var a=uvx(W,w);B.privateValue=a;ZsS=void 0;KUo(a,w,x);Y==null||Y.attr("debugName",x.debugName);return a}catch(k){O.error=k,O.hasError=!0}finally{svW(O)}};
x.debugName=P===void 0?"":P;return x};
uvx=function(W,P){W=W(P);return ya(W)};
vnx=function(W,P){W[P]||(W=new _.mW("IDOM interop setter undefined. Key:",P),_.G$(W))};
dv7=function(W,P){return P==="children"||P==="ref"||typeof W==="function"||W===void 0?W:function(){return _.zB(W)}};
SJd=function(W,P,x){var I={},O={},B={},Y={},K;for(K in W){Y={key$jscomp$886:Y.key$jscomp$886};Y.key$jscomp$886=K;var Z=W[Y.key$jscomp$886];if(Y.key$jscomp$886==="children"||Y.key$jscomp$886==="ref")I[Y.key$jscomp$886]=Z;else if(typeof Z==="function")Y.key$jscomp$886 in P||Z.length>0?(B[Y.key$jscomp$886]=Z,I[Y.key$jscomp$886]=function(v){return function(){return B[v.key$jscomp$886].apply(B,_.ju(_.tH.apply(0,arguments)))}}(Y)):I[Y.key$jscomp$886]=Z;
else if(!(W[Y.key$jscomp$886]===void 0&&Y.key$jscomp$886 in P)){var d=_.n(_.YV(W[Y.key$jscomp$886],{debugName:"__cwis:"+x+":"+Y.key$jscomp$886},"cEBU8c"));Z=d.next().value;d=d.next().value;I[Y.key$jscomp$886]=Z;O[Y.key$jscomp$886]=d}}return[I,O,function(v){var m={},t;for(t in v)m={key$jscomp$887:m.key$jscomp$887,val$jscomp$117:void 0},m.key$jscomp$887=t,m.val$jscomp$117=v[m.key$jscomp$887],m.key$jscomp$887!=="children"&&m.key$jscomp$887!=="ref"&&(typeof m.val$jscomp$117==="function"?m.key$jscomp$887 in
P?B[m.key$jscomp$887]=m.val$jscomp$117:m.val$jscomp$117.length>0&&(B[m.key$jscomp$887]=m.val$jscomp$117,_.ge(new _.mW("Callback detected that was not set in the idomCompat callbacks map. Key:",m.key$jscomp$887))):m.key$jscomp$887 in P&&m.val$jscomp$117===void 0||(vnx(O,m.key$jscomp$887),u_(function(C){return function(){O[C.key$jscomp$887](C.val$jscomp$117)}}(m))))}]};
tX8=function(W,P,x){var I=pXS(W.prototype,mvG,W.prototype.behaviors);I.prototype.is=P;I.prototype.localName=P;x&&VXW(I,x);return function(O){O&&(I.prototype.hostElement=O);var B=new I;B.root=B;B.hostElement=O;return B}};
VXW=function(W,P){var x;Object.defineProperty(W.prototype,"_template",{get:function(){x===void 0&&(x=P());return x},
set:function(I){x=I},
configurable:!0,enumerable:!0})};
A7C=function(W,P,x,I){function O(){if(!C){for(var z=new Set,D=_.n(v),w=D.next();!w.done;w=D.next()){w=w.value;for(var a=_.n(Object.getOwnPropertyNames(w)),k=a.next();!k.done;k=a.next()){k=k.value;var T=void 0,N=(T=Object.getOwnPropertyDescriptor(w,k))==null?void 0:T.value;N&&N instanceof Function&&!UZ(k)&&(!K[k]||_.p("polymer_forward_method_killswitch"))&&z.add(k)}}D=_.n(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(w=D.next();!w.done;w=D.next())a=_.n(w.value),w=a.next().value,
a=a.next().value,a.value instanceof Function&&!UZ(w)&&z.add(w);C=z}return C}
pax(W,P,I==null?void 0:I.providers);jzd(W.prototype,W,!0);var B=tX8(W,P,x),Y,K=(Y=W.prototype.properties)!=null?Y:{},Z,d,v=(d=(Z=W.prototype.behaviors)==null?void 0:Z.flat(Infinity))!=null?d:[];x=_.n(v);for(Y=x.next();!Y.done;Y=x.next())K=Object.assign({},Y.value.properties,K);var m=[].concat(_.ju(jvx),_.ju(Object.keys(K).map(function(z){return _.Kf(z)}))),t=!1,C;
return{ctor:function(z,D){var w=B(z),a,k;z=[].concat(_.ju((a=I==null?void 0:I.allowedProps)!=null?a:[]),_.ju((k=I==null?void 0:I.allowedPropsFromBehaviors)!=null?k:[]));w.allowedProps=z.length>0?z:void 0;a={};k=_.n(m);for(z=k.next();!z.done;z=k.next())z=z.value,a[z]=_.Zt(z);w.__dataAttributes=a;var T=w.ready.bind(w);w.ready=function(){D.beforeReady();T();if(Ze(P)&&!t){var N=w.__templateInfo;if(N==null?0:N.hostProps){N=_.n(Object.keys(N.hostProps));for(var Io=N.next();!Io.done;Io=N.next())Sd(P,Io.value,
"PROPERTY_ACCESS_GET_INTERNAL")}t=!0}};
w._overrideLegacyUndefined=!0;return w},
props:K,observedAttributes:m,getInitialMethods:O,getPropsToForwardBeforeRegister:function(){for(var z=[],D=new Set,w=_.n(Object.keys(K)),a=w.next();!a.done;a=w.next())a=a.value,z.push([a,K[a].readOnly]),D.add(a);w=O();a=_.n(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var k=a.next();!k.done;k=a.next())k=k.value,!Qvm(k)||w.has(k)||D.has(k)||(z.push([k,!1]),D.add(k));D=_.n(CFd);for(w=D.next();!w.done;w=D.next())z.push([w.value,!0]);return z},
getPropsToForwardBeforeReady:function(z){for(var D=[],w=_.n(Object.entries(z)),a=w.next();!a.done;a=w.next()){var k=_.n(a.value);a=k.next().value;k=k.next().value;if(Qvm(a)&&!(k instanceof Function)&&(D.push([a,!1]),Ze(P))){var T=k=void 0;(T=(k=z)._createPropertyAccessor)==null||T.call(k,a)}}return D},
shouldForwardProp:Qvm,shouldLog:Ze}};
pax=function(W,P,x){ntW(W,x);W.prototype.behaviors.unshift(zOU);if(rfC()){if(Ze(P)){var I;(I=W.prototype).behaviors!=null||(I.behaviors=[]);W.prototype.behaviors.unshift(qfR())}L3C(W)}_.h(tE.prototype)(W.prototype,"__templateHelpers")};
UZ=function(W){return GWR.has(W)||W.startsWith("__compute__")};
Qvm=function(W){return!UZ(W)&&!W.startsWith("_")&&!W.endsWith("_")};
$vA=function(W,P){function x(){var t=Z();t=_.n(t);for(var C=t.next();!C.done;C=t.next()){var z=_.n(C.value);C=z.next().value;z=z.next().value;EnW(m.prototype,C,z)}I=!0}
var I=!1,O=W.ctor,B=W.getInitialMethods,Y=W.observedAttributes,K=W.getPropsToForwardBeforeReady,Z=W.getPropsToForwardBeforeRegister,d=W.shouldForwardProp,v=W.shouldLog,m=function(){var t=HTMLElement.call(this)||this;t.didForwardDynamicProps=!1;t.loggingStatus={};I||x();t.inst=O(t,{beforeReady:function(){t.didForwardDynamicProps||(t.forwardDynamicProps(),t.didForwardDynamicProps=!0)}});
t.controllerProxy=R9m(t.inst,P);t.forwardMethods();return t};
_.A(m,HTMLElement);m.prototype.forwardMethods=function(){for(var t=this,C=_.n(this.inst.getExtraMethodsToForward()),z=C.next(),D={};!z.done;D={method$jscomp$60:void 0},z=C.next()){var w=_.n(z.value);z=w.next().value;w=w.next().value;D.method$jscomp$60=w;this[z]=function(a){return function(){return a.method$jscomp$60.call.apply(a.method$jscomp$60,[t.inst].concat(_.ju(_.tH.apply(0,arguments))))}}(D)}C=_.n(B());
for(D=C.next();!D.done;D=C.next())D=D.value,d(D)&&gnd(this,D),v(P)&&!UZ(D)&&Dvm(this.inst,D)};
m.prototype.forwardDynamicProps=function(){var t=K(this.inst);t=_.n(t);for(var C=t.next();!C.done;C=t.next()){var z=_.n(C.value);C=z.next().value;z=z.next().value;EnW(this,C,z);v(P)&&!UZ(C)&&MXR(this.inst,C)}};
m.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
m.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
m.prototype.attributeChangedCallback=function(t,C,z){this.inst.attributeChangedCallbackWrapper(t,C,z)};
_.N1.Object.defineProperties(m.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return P}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.N1.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
customElements.define(P,m)};
EnW=function(W,P,x){W.hasOwnProperty(P)||Object.defineProperty(W,P,{get:function(){var I,O=((I=W.is)!=null?I:W.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Sd(O,P,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,I=this.polymerController[P],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,I},
set:function(I){if(!x){var O,B=((O=W.is)!=null?O:W.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Sd(B,P,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=P,this.loggingStatus.bypassProxyController=!0,this.polymerController[P]!==I&&(O={},this.polymerController.setProperties((O[P]=I,O)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
gnd=function(W,P,x){var I=W.polymerController;W[P]=function(){var O=_.tH.apply(0,arguments);W.loggingStatus.currentExternalCall=P;W.loggingStatus.bypassProxyController=!0;var B,Y=((B=W.is)!=null?B:W.tagName).toLowerCase();Sd(Y,P,"PROPERTY_ACCESS_CALL_EXTERNAL");var K;B=(K=x!=null?x:I[P])==null?void 0:K.call.apply(K,[I].concat(_.ju(O)));W.loggingStatus.currentExternalCall=void 0;W.loggingStatus.bypassProxyController=!1;return B}};
Dvm=function(W,P){var x=W.hostElement,I=W[P];W[P]=function(){var O=_.tH.apply(0,arguments);if(x.loggingStatus.currentExternalCall!==P){var B,Y=((B=x.is)!=null?B:x.tagName).toLowerCase();Sd(Y,P,"PROPERTY_ACCESS_CALL_INTERNAL")}return I==null?void 0:I.apply(W,O)}};
MXR=function(W,P){var x=Object.getOwnPropertyDescriptor(W,P);x&&!x.get&&Object.defineProperty(W,P,{get:function(){F3R(W.hostElement,P);return x.value},
set:function(I){uw(W.hostElement,P);x.value=I}})};
waR=function(W){return _.p("poly_si_dom_repeat_detached_fix_killswitch")||W.tagName!=="PS-DOM-REPEAT"?W.tagName==="DOM-REPEAT":!0};
Hst=function(W,P){var x=hOm(W);W instanceof Element&&x.unshift(W);W=_.n(x.filter(waR));for(var I=W.next();!I.done;I=W.next()){var O=void 0;I=_.n((O=I.value.__instances)!=null?O:[]);for(O=I.next();!O.done;O=I.next())if(O=O.value,O.root){O=Array.from(O.root.children);O=_.n(O);for(var B=O.next();!B.done;B=O.next())x.push.apply(x,_.ju(Hst(B.value,P)))}}return x.filter(function(Y){return Y.usePatchedLifecycles&&Y.lifecycleIsConnected===P})};
hOm=function(W){var P=null;W instanceof Element?P=Element.prototype.querySelectorAll:W instanceof DocumentFragment&&(P=DocumentFragment.prototype.querySelectorAll);return P?Array.from(P.call(W,"*")):[]};
X4=function(W){n4(function(){for(var P=_.n(Hst(W,!1)),x=P.next();!x.done;x=P.next()){x=x.value;x.lifecycleIsConnected=!0;try{var I=void 0,O=void 0,B=void 0,Y=void 0;(I=(Y=x.polymerController)!=null?Y:x)==null||(B=(O=I).connectedCallback)==null||B.call(O)}catch(K){_.G$(K)}}})};
f_=function(W){n4(function(){for(var P=_.n(Hst(W,!0)),x=P.next();!x.done;x=P.next()){x=x.value;x.lifecycleIsConnected=!1;try{var I=void 0,O=void 0,B=void 0,Y=void 0;(I=(Y=x.polymerController)!=null?Y:x)==null||(B=(O=I).disconnectedCallback)==null||B.call(O)}catch(K){_.G$(K)}}})};
XaR=function(){if(!eOS){eOS=!0;var W=[Node];Nn&&W.push(Nn.Wrapper);var P=Node.prototype.insertBefore,x=Node.prototype.removeChild;W=_.n(W);for(var I=W.next(),O={};!I.done;O={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},I=W.next())I=I.value,O.nativeInsertBefore=I.prototype.insertBefore,I.prototype.insertBefore=function(Y){return function(K,Z){if(K instanceof DocumentFragment){var d=Array.from(K.children);K=Y.nativeInsertBefore.call(this,K,Z);
if(this.isConnected&&Y.nativeInsertBefore===P)for(Z=_.n(d),d=Z.next();!d.done;d=Z.next())X4(d.value);return K}d=K instanceof Element&&K.isConnected;Z=Y.nativeInsertBefore.call(this,K,Z);d&&f_(K);this.isConnected&&X4(K);return Z}}(O),O.nativeAppendChild=I.prototype.appendChild,I.prototype.appendChild=function(Y){return function(K){if(K instanceof DocumentFragment){var Z=Array.from(K.children);
K=Y.nativeAppendChild.call(this,K);if(this.isConnected){Z=_.n(Z);for(var d=Z.next();!d.done;d=Z.next())X4(d.value)}return K}Z=K instanceof Element&&K.isConnected;d=Y.nativeAppendChild.call(this,K);Z&&f_(K);this.isConnected&&X4(K);return d}}(O),O.nativeRemoveChild=I.prototype.removeChild,I.prototype.removeChild=function(Y){return function(K){var Z=K instanceof Element&&K.isConnected,d=Y.nativeRemoveChild.call(this,K);
Z&&x===Y.nativeRemoveChild&&f_(K);return d}}(O),O.nativeReplaceChild=I.prototype.replaceChild,I.prototype.replaceChild=function(Y){return function(K,Z){if(K instanceof DocumentFragment){var d=Array.from(K.children);
K=Y.nativeReplaceChild.call(this,K,Z);if(this.isConnected)for(f_(Z),Z=_.n(d),d=Z.next();!d.done;d=Z.next())X4(d.value);return K}d=K instanceof Element&&K.isConnected;var v=this.isConnected,m=Y.nativeReplaceChild.call(this,K,Z);v&&f_(Z);d&&f_(K);v&&X4(K);return m}}(O);
W=[Element];Nn&&W.push(Nn.Wrapper);W=_.n(W);I=W.next();for(O={};!I.done;O={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},I=W.next())I=I.value,I.prototype.before=c7S(I.prototype.before),I.prototype.after=c7S(I.prototype.after),O.nativeReplaceWith=I.prototype.replaceWith,I.prototype.replaceWith=function(Y){return function(){var K=_.tH.apply(0,arguments),Z=_.n(aLR(K)),d=Z.next().value,
v=Z.next().value;Z=this.isConnected;Y.nativeReplaceWith.apply(this,K);K=_.n(v);for(v=K.next();!v.done;v=K.next())f_(v.value);if(Z)for(f_(this),d=_.n(d),Z=d.next();!Z.done;Z=d.next())Z=Z.value,Z instanceof Element&&X4(Z)}}(O),O.nativeRemove=I.prototype.remove,I.prototype.remove=function(Y){return function(){var K=this.isConnected;
Y.nativeRemove.call(this);K&&f_(this)}}(O),O.nativeInsertAdjacentElement=I.prototype.insertAdjacentElement,I.prototype.insertAdjacentElement=function(Y){return function(K,Z){var d=Z.isConnected;
K=Y.nativeInsertAdjacentElement.call(this,K,Z);d&&f_(Z);K.isConnected&&X4(K);return K}}(O),O.nativeSetAttribute=I.prototype.setAttribute,I.prototype.setAttribute=function(Y){return function(K,Z){var d=bsm(this);
if(!d.usePatchedLifecycles)return Y.nativeSetAttribute.call(this,K,Z);var v=this.getAttribute(K);Y.nativeSetAttribute.call(this,K,Z);Z=this.getAttribute(K);kWA(d,K,v,Z)}}(O),O.nativeRemoveAttribute=I.prototype.removeAttribute,I.prototype.removeAttribute=function(Y){return function(K){var Z=bsm(this);
if(!Z.usePatchedLifecycles)return Y.nativeRemoveAttribute.call(this,K);var d=this.getAttribute(K);Y.nativeRemoveAttribute.call(this,K);d!==null&&kWA(Z,K,d,null)}}(O),O.nativeToggleAttribute=I.prototype.toggleAttribute,I.prototype.toggleAttribute=function(Y){return function(K,Z){var d=bsm(this);
if(!this.usePatchedLifecycles)return Y.nativeToggleAttribute.call(this,K,Z);var v=this.getAttribute(K),m=v!==null;Z=Y.nativeToggleAttribute.call(this,K,Z);Z!==m&&kWA(d,K,v,Z?"":null);return Z}}(O);
W=[Document,DocumentFragment,Element,ShadowRoot];Nn&&W.push(Nn.Wrapper);W=_.n(W);for(O=W.next();!O.done;O=W.next())O=O.value,O.prototype.prepend=c7S(O.prototype.prepend),O.prototype.append=c7S(O.prototype.append);(Nn==null?void 0:Nn.noPatch)===!0&&UvW();document.readyState==="complete"?X4(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&X4(document.body)});
var B=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");B&&B.get&&B.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:B.enumerable,configurable:!0,get:B.get,set:function(Y){Y||f_(this);B.set.call(this,Y);return Y}})}};
c7S=function(W){return function(){var P=_.tH.apply(0,arguments),x=_.n(aLR(P)),I=x.next().value;x=x.next().value;W.apply(this,P);P=_.n(x);for(x=P.next();!x.done;x=P.next())f_(x.value);if(this.isConnected)for(I=_.n(I),P=I.next();!P.done;P=I.next())P=P.value,P instanceof Element&&X4(P)}};
UvW=function(){for(var W=_.n(fLx),P=W.next();!P.done;P=W.next()){P=P.value.prototype;for(var x=_.n(NBt),I=x.next();!I.done;I=x.next()){I=I.value;var O=Object.getOwnPropertyDescriptor(P,I);O&&Object.defineProperty(P,"__shady_native_"+I,O)}}};
kWA=function(W,P,x,I){var O,B;if((O=W.polymerController)==null?0:(B=O.observedAttributes)==null?0:B.includes(P))if(W=W.polymerController,W.attributeChangedCallbackWrapper)W.attributeChangedCallbackWrapper.call(W,P,x,I);else{var Y;(Y=W.attributeChangedCallback)==null||Y.call(W,P,x,I)}};
aLR=function(W){var P=[],x=[];W=_.n(W);for(var I=W.next();!I.done;I=W.next())I=I.value,I instanceof Element&&I.isConnected&&x.push(I),I instanceof DocumentFragment?P.push.apply(P,_.ju(Array.from(I.children))):P.push(I);return[P,x]};
bsm=function(W){return!(W instanceof Element)&&W.node instanceof Element?W.node:W};
lLt=function(W,P){var x=P?["children"].concat(_.ju(P)):["children"];P=[];x=_.n(x);for(var I=x.next();!I.done;I=x.next()){var O=I.value;if(W.hasOwnProperty(O)){I=W[O];I=typeof I==="function"?I():I;I=ya(Array.isArray(I)?I:[I]).flat();if(O!=="children"){O=yVm(O);for(var B=_.n(I),Y=B.next();!Y.done;Y=B.next())Y=Y.value,Y instanceof Element&&Y.setAttribute("slot",O)}P.push(I)}}P.length===0?W=[]:(W=ya(_.u("div",null,P)),W=Array.from(W.childNodes));return W};
r7t=function(W,P,x){var I={};_.GB(function(){var O={},B;for(B in P)if(P.hasOwnProperty(B)){var Y=void 0,K=void 0;if(!(((Y=x.slotProps)==null?0:Y.includes(B))||B==="children"||((K=x.callbackProps)==null?0:K.includes(B))||B==="ref")&&(Y=_.zB(P[B]),I[B]!==Y)){I[B]=Y;K=void 0;var Z=(K=W.hostElement)!=null?K:W;TBC.has(B)&&(Z[B]=Y);O[B]=Y}}u_(function(){if(W.setProperties)W.setProperties(O);else for(var d=_.n(Object.entries(O)),v=d.next();!v.done;v=d.next()){var m=_.n(v.value);v=m.next().value;m=m.next().value;
W[v]=m}})})};
ROA=function(W,P,x,I){var O=lLt(x,I.slotProps),B=_.p("web_wcw_disable_slot_host_shady_dom_wrap")?W:(0,_.Fy)(W);O=_.n(O);for(var Y=O.next();!Y.done;Y=O.next())B.appendChild(Y.value);r7t(P,x,I);I=_.n(I.callbackProps||[]);O=I.next();for(B={};!O.done;B={kebabEventName:void 0,eventListener:void 0},O=I.next())Y=O=O.value,String(O).substring(0,2)==="on"&&x[Y]?(B.kebabEventName=yVm(String(O).substring(2)),B.eventListener=x[Y],W.addEventListener(B.kebabEventName,B.eventListener),_.C4(function(v){return function(){W.removeEventListener(v.kebabEventName,
v.eventListener)}}(B))):P[Y]=x[Y];
if(x.ref){x=_.n(isd(x.ref));var K=x.next().value,Z=x.next().value,d=P.attached.bind(P);P.attached=function(){K(W);d()};
_.C4(function(){Z()})}};
isd=function(W){if(typeof W==="function"){var P;return[function(x){P=W(x)},
function(){var x;(x=P)==null||x()}]}if(!W.onRender||!W.onUnmount)throw Error("Rg");
return[W.onRender,W.onUnmount]};
WCA=function(W,P,x,I,O){I=I===void 0?{}:I;var B=FUG,Y=!1;B?(Y=!0,FUG=void 0):(qJW=P,B=document.createElement(P),qJW=void 0);var K=B;K.usePatchedLifecycles=!0;K.lifecycleIsConnected=!1;B.loggingStatus={};var Z=LUS(W,P,B,I,O);_.C4(function(){K.lifecycleIsConnected&&(K.lifecycleIsConnected=!1,Z.disconnectedCallback())});
Y||ROA(B,Z,x,I);return B};
LUS=function(W,P,x,I,O){O=O===void 0?A7C:O;Pj8[P]!=null||(Pj8[P]=O(W,P,I==null?void 0:I.getTemplate,I));var B=Pj8[P],Y=B.ctor;O=B.getInitialMethods;var K=B.getPropsToForwardBeforeReady;W=B.getPropsToForwardBeforeRegister;I=B.shouldForwardProp;var Z=B.observedAttributes,d=B.shouldLog,v=Y(x,{beforeReady:function(){var m=v;m._takeAttributes?m._takeAttributes():m.setPropertiesFromInitialAttributeValues&&m.setPropertiesFromInitialAttributeValues();m=_.n(K(x.polymerController));for(var t=m.next();!t.done;t=
m.next()){var C=_.n(t.value);t=C.next().value;C=C.next().value;EnW(x,t,C);d(P)&&!UZ(t)&&MXR(x.polymerController,t)}x.polymerController=R9m(v,P)}});
x.polymerController=v;x.polymerController.observedAttributes=Z;B=_.n(v.getExtraMethodsToForward());for(Y=B.next();!Y.done;Y=B.next())Z=_.n(Y.value),Y=Z.next().value,Z=Z.next().value,gnd(x,Y,Z);O=_.n(O());for(B=O.next();!B.done;B=O.next())B=B.value,I(B)&&gnd(x,B),d(P)&&!UZ(B)&&Dvm(v,B);W=_.n(W());for(I=W.next();!I.done;I=W.next())O=_.n(I.value),I=O.next().value,O=O.next().value,EnW(x,I,O);return v};
Icm=function(W,P){return lw===P?(W.isInert=!0,lw="",!0):xOm===P?(W.isInert=!0,xOm="",!0):!1};
OqC=function(W){var P=Tn;Tn=W;return P};
Bdm=function(W){if(rY.has(W))xOm=W;else if(iw.has(W)&&Tn&&JsG(Tn)===W){var P;(P=Tn)._numRenders!=null||(P._numRenders=0);Tn._numRenders++;if(Tn._numRenders>1)throw Error("Sg");return Tn}};
nLm=function(W){rY.has(JsG(W))?xOm=JsG(W):iw.has(JsG(W))&&Tn!==W&&(W._isInert=!0)};
JsG=function(W){var P;return(P=W==null?void 0:W.tagName.toLowerCase())!=null?P:""};
YdU=function(W,P){if(W.componentType===vJ)throw Error("Tg");iw.add(P);var x=function(){var I=HTMLElement.call(this)||this;I.is=P;if(qJW===P)return I.isInert=!0,I;I.createElement();return I};
_.A(x,HTMLElement);x.prototype.createElement=function(){if(!this.isInert){FUG=this;var I=_.n(ChA(function(){return _.u(W,null)})).next().value;
FUG=void 0;FlC(this);return I}};
customElements.define(P,x)};
KCA=function(W,P,x,I,O){W.prototype.is=P;(I==null?0:I.useSink)?ysC(W,P,x,I,O):(x=A7C(W,P,x,I),$vA(x,P));return W};
ysC=function(W,P,x,I,O){XaR();var B=_.kl(function(Y){return WCA(W,P,Y,Object.assign({},I,{getTemplate:x}),O)},"a");
YdU(B,P);return B};
oLo=function(W){return!ZqR.has(W)};
dOG=function(W,P,x,I){function O(){if(!m){for(var t=new Set(SdS),C=_.n(B.behaviors),z=C.next();!z.done;z=C.next()){z=z.value;for(var D=_.n(Object.getOwnPropertyNames(z)),w=D.next();!w.done;w=D.next()){w=w.value;var a=void 0,k=(a=Object.getOwnPropertyDescriptor(z,w))==null?void 0:a.value;k&&k instanceof Function&&(!d[w]||_.p("polymer_forward_method_killswitch"))&&t.add(w)}}C=_.n(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(z=C.next();!z.done;z=C.next())D=_.n(z.value),z=D.next().value,
D=D.next().value,D.value instanceof Function&&t.add(z);m=t}return m}
var B=FcR({is:P,disableElementRegistration:!1,getTemplate:x,providers:I==null?void 0:I.providers,reactivityMode:I==null?void 0:I.reactivityMode},W);if((I==null?0:I.allowedProps)||(I==null?0:I.allowedPropsFromBehaviors)){var Y,K;B.allowedProps=[].concat(_.ju((Y=I.allowedProps)!=null?Y:[]),_.ju((K=I.allowedPropsFromBehaviors)!=null?K:[]))}var Z=fvm(B,W);P=Z.observedAttributes;var d={};x=_.n(B.reactiveSchemas);for(I=x.next();!I.done;I=x.next())if(I=I.value,I.type==="signal")d[I.propertyKey]={readOnly:I.readOnly},
I.readOnly&&(d[tpR(I.propertyKey)]={readOnly:!0});else if(I.type==="compute"||I.type==="computeWithMethod"||I.type==="redux")d[I.propertyKey]={readOnly:!0};var v=B.reactiveSchemas.length,m;return{ctor:function(t,C){t=new Z(t);t.beforeReady=C.beforeReady;return t},
props:d,observedAttributes:P,getInitialMethods:O,getPropsToForwardBeforeRegister:function(){for(var t=[],C=new Set,z=_.n(u$S),D=z.next();!D.done;D=z.next())D=D.value,t.push([D,D!=="observers"&&D!=="properties"]),C.add(D);z=_.n(Object.keys(d));for(D=z.next();!D.done;D=z.next())D=D.value,t.push([D,d[D].readOnly]),C.add(D);z=O();D=_.n(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var w=D.next();!w.done;w=D.next())w=w.value,!oLo(w)||z.has(w)||C.has(w)||(t.push([w,!1]),C.add(w));t.push(["allowedProps",
!0]);return t},
getPropsToForwardBeforeReady:function(t){var C=[];t=_.n(Object.keys(t));for(var z=t.next();!z.done;z=t.next()){z=z.value;var D=O();oLo(z)&&!D.has(z)&&C.push([z,!1])}t=_.n(B.reactiveSchemas.slice(v));for(z=t.next();!z.done;z=t.next())z=z.value,z.type!=="compute"&&z.type!=="computeWithMethod"&&z.type!=="redux"&&z.type!=="signal"||C.push([z.propertyKey,z.type==="signal"?z.readOnly:!0]);return C},
shouldForwardProp:oLo,shouldLog:Ze}};
_.X=function(W,P,x,I){var O,B,Y=(B=(O=I)==null?void 0:O.mode)!=null?B:0;I!=null||(I={});var K;(K=I).reactivityMode!=null||(K.reactivityMode=0);Y===1&&_.xO("creator_poly_si_disable_list").includes(P)&&(Y=2);return Y===1?KCA(W,P,x,Object.assign({},I,{useSink:!0}),dOG):KCA(W,P,x,Object.assign({},I,{useSink:Y===2}))};
_.R7=function(){return function(W,P,x,I){var O,B,Y=(B=(O=I)==null?void 0:O.mode)!=null?B:2;I!=null||(I={});var K;(K=I).reactivityMode!=null||(K.reactivityMode=0);if(Y===0)throw Error("Ug`"+Y);return ysC(W,P,x,I,Y===1?dOG:void 0)}};
_.F4=function(W){return _.p("creator_poly_si_killswitch")?!1:_.p("force_all_poly_si_batches")&&(W==="poly_si_all_on_test_check"||W==="creator_poly_si_batch_050"?0:W)||document.documentElement.hasAttribute("use-signals")?!0:!W||_.p(W+"_holdback_enabled")&&_.p("kevlar_polysi_holdback")?!1:_.p(W)};
qn=function(W){return W?W.icon?W.icon.iconType.toLowerCase():W.customThumbnail?"member":"":""};
sXU=function(W){if(!W)return"";W=_.n(W);for(var P=W.next();!P.done;P=W.next())if((P=P.value)&&P.liveChatAuthorBadgeRenderer&&(P=qn(P.liveChatAuthorBadgeRenderer))&&P!=="verified")return P;return""};
vLR=function(W,P){if(!W)return null;var x;return((x=W.find(function(I){return I&&I.liveChatAuthorBadgeRenderer?qn(I.liveChatAuthorBadgeRenderer)===P:!1}))==null?void 0:x.liveChatAuthorBadgeRenderer)||null};
_.QXR=function(W){var P=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;W=mOm(W);P=mOm(P);var x=Vbt(W.hex);P=Vbt(P.hex);var I=P[0]/255;var O=P[1]/255,B=P[2]/255,Y=Math.max(I,O,B),K=Math.min(I,O,B),Z=0,d=0,v=.5*(Y+K);Y!=K&&(Y==I?Z=60*(O-B)/(Y-K):Y==O?Z=60*(B-I)/(Y-K)+120:Y==B&&(Z=60*(I-O)/(Y-K)+240),d=0<v&&v<=.5?(Y-K)/(2*v):(Y-K)/(2-2*v));I=[Math.round(Z+360)%360,d,v];x=tbd(x,P);for(W=pcS(W.hex);x<4.5;){W=I[2]>=.5?W.darker((4.5-x)/2):W.brighter((4.5-x)/2);x=W.toString();
O=jXo(x);if(!O.length)throw Error("Sd`"+x);x=O;x=tbd(x,P)}return W.hex()};
tbd=function(W,P){W=_.xW7(W);P=_.xW7(P);return(Math.max(W,P)+.05)/(Math.min(W,P)+.05)};
_.L_=function(W){return"#"+("000000"+(W&16777215).toString(16)).slice(-6)};
_.CjW=function(W){for(var P=0,x=0;x<W.length;x++)P=W.charCodeAt(x)+((P<<5)-P);W="#";for(x=0;x<3;x++)W+=("00"+(P>>x*8&255).toString(16)).slice(-2);return W};
As8=function(W){W=(W||"").split(":");W.length===1&&W.unshift("yt-icons");W[1]=W[1].toLowerCase();return W};
Mb8=function(W,P){var x=(P=P===void 0?!1:P)?zFm:Gw8,I=P?ELt:gLd;W.getIconNames().forEach(function(O){O=P?O:O.substring(O.indexOf(":")+1);W.name==="yt-icons"?DO7.add(O):O.includes("-filled")?x.add(O):I.add(O)})};
WW=function(W,P,x,I){x=x===void 0?!1:x;I=I===void 0?!1:I;var O,B,Y;return _.y(function(K){if(K.nextAddress==1)return _.S(K,$Od,2);if(I)return K.return(DO7.has(W));O=x?zFm:Gw8;B=x?ELt:gLd;return P?(Y=W.includes("-filled")?W:W.concat("-filled"),K.return(O.has(Y))):K.return(B.has(W))})};
_.Hqt=function(W){if(wco(W))return W;var P=W=W.toLowerCase();(W=hFG.get(W))&&(P=W);return P};
_.PW=function(W){if(wco(W))return W.toString();var P=eF8.get(W);if(P)return P;P=W.toLowerCase();var x="yt-icons",I=P.replace(/_/g,"-");switch(W){case "MY_CHANNEL":P="account_circle";break;case "ADD_TO_LIBRARY":P="add";break;case "ALERT_WARN_RED":P="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":P="person_music";break;case "BLOCK_USER":P="block";break;case "CAPTIONS":P="closed_caption";break;case "CLOSED_CAPTION":x="av";P="closed-caption";break;case "COLLECTION":x="maps";P="layers";break;case "CONTACT":x=
"icons";P="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":x="ytcp-icons";P=I.split("creator-studio-")[1];break;case "DISMISSAL":P="close";break;case "DO_NOT_DISTURB":P="block";break;case "DOGFOOD":x="icons";P="pets";break;case "DRAFT":P="paper_corner_folded";break;
case "EMPTY_LIKE":P="like_outline";break;case "EXIT_APP":P="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":P=I;break;case "GAMES":x="ytg";P="my-games";break;case "GO_TO_PAGE":P="arrow-forward";break;case "GROUP":x="social";break;case "HIDE":P="not_interested";break;case "INPUT_COMPONENT":x="icons";P="settings-input-component";break;case "KIDS_BLOCK":P="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":x="ytg";P="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":x=
"ytg";P="membership-post-purchase";break;case "MULTIVIEW":P="screen_multi_view";break;case "MY_LOCATION":x="maps";P=I;break;case "NOTIFICATIONS_INBOX":P="NOTIFICATIONS";break;case "NEXT":P="chevron_right";break;case "OFFLINE":P="power-settings-new";break;case "PAUSE":x="miniplayer";break;case "PAYMENT":x="icons";break;case "PHONE_DOWNLOAD":P="phone_download";break;case "PREMIUM_STANDALONE":x="yt-logos";P="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":x="yt-logos";P="premium_standalone_cairo";
break;case "QUESTION_ANSWER":P="question_answer";break;case "REDEEM":x="icons";P="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":P="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":P="library_add";break;case "SCHOOL":x="yt-sys-icons";P="creator_academy";break;case "SETTINGS_LIGHT":P="settings_applications";break;case "SETTINGS_MATERIAL":P="settings";break;case "SEARCH_HISTORY":P="watch_history";break;case "SHOPPING_BAG":P="bag";break;case "SOCIAL":case "PEOPLE":x=
"yt-icons";P="people";break;case "STAFF_PICK":x="ytg";P="spotlight";break;case "START_DVR":P="add";break;case "STOP_DVR":x="av";P="stop";break;case "TAB_LIKED":P="like";break;case "TAB_INBOX":P="mail";break;case "TERMS_OF_SERVICE":x="icons";P="description";break;case "TRENDING":P="fire";break;case "UNBLOCK_USER":P="remove";break;case "UNPLUGGED_DARK_THEME":x="image";P="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":P="live";break;case "UNPLUGGED_SPORTS":x="ytu";P="visibility-off";break;
case "VIDEOS":x="av";P="play-circle-filled";break;case "YOUTUBE":x="yt-logos";P="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":x="yt-logos-ext";P="yt-logo-red-updated";break;case "YOUTUBE_LOGO":x="yt-logos-ext";P="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":x="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":x="shorts";P=I;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":x="yt-sys-icons";P="youtube_improve_tv";break;case "OUTLINE_BAG":x=
"yt-sys-icons";P="bag";break;case "QUEUE_PLAY_LAST":x="yt-sys-icons";P="list_queue_last";break;case "SLASH_CIRCLE_LEFT":P="slash_circle_left";break;case "SPEED_1_POINT_2X":P="1_point_2x";break;case "SPEED_1_POINT_5X":P="1_point_5x";break;case "SPEED_1_POINT_8X":P="1_point_8x";break;case "SPEED_POINT_2X":P="point_2x";break;case "SPEED_POINT_5X":P="point_5x";break;case "SPEED_POINT_8X":P="point_8x";break;case "SPEED_1X":P="1x";break;case "SPEED_2X":P="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":x="yt-sys-icons";
P="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":x="yt-sys-icons";P="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":x="yt-sys-icons",P="tic_tac_toe"}P=x+":"+P;eF8.set(W,P);return P};
wco=function(W){var P;_.p("kevlar_use_wil_icons")?P=!!_.FY().resolve(_.xY).resolveIcon({iconName:W.toString()}):P=!1;return P};
_.O2=function(W,P,x,I){x=x===void 0?{}:x;I=I===void 0?!1:I;x===null&&(x={});var O=_.xO("kevlar_command_handler_command_banlist");O=_.n(O);for(var B=O.next();!B.done;B=O.next())if(B=W?W.hasOwnProperty(B.value):void 0,B)return!1;O=_.Q(W.commandMetadata,_.rU);return I&&O!=null&&O.url?!1:!P.disableCommandHandlerOverride&&_.Ix.instance?(I=_.Ix.instance,x.form||(x.form={element:P}),x.form.element||(x.form.element=P),!x.clickedVisualElement&&P.visualElement&&(x.clickedVisualElement=P.visualElement),I.resolveCommand(W,
x),!0):!1};
csS=function(W,P){W=JF(W);for(var x=_.n(W.visibilityMonitorKeys||[]),I=x.next();!I.done;I=x.next())P.unobserveByKey(I.value);W.visibilityMonitorKeys=void 0};
UOm=function(W,P){if(_.E_()){if(_.p("kevlar_vimio_use_shared_monitor"))aco(W,P.data);else if(!aco(W,P.data))return;var x=P.data,I=bq8(x);if(_.p("enable_client_ve_spec_logging"))csS(W,P.observer);else{var O=JF(W);O.trackedParams&&O.trackedParams!==I&&csS(W,P.observer)}O=JF(W);!x||O.data&&O.data===x||(O.data=x);kwU(W,P);O.trackedParams=I}};
kwU=function(W,P){var x=P.observer;if(!x&&_.p("web_skip_missing_vimio_observer")){var I,O;_.ge(new _.mW("VisibilityObserver is not defined.",W.tagName,W.trackedParams,(I=P.data)==null?void 0:I.trackingParams,(O=P.data)==null?void 0:O.loggingDirectives))}else{var B=P.layer,Y=P.visibilityCallback||function(){},K=P.prescanCallback,Z=JF(W);
I=[];P.showOption&&I.push(x.observe(W,function(){P.skipLogging&&P.skipLogging()||_.BW().reportShown(Z,void 0,B);Y(!0)},P.showOption));
P.hideOption&&I.push(x.observe(W,function(){_.BW().reportHidden(Z,void 0,B);Y(!1)},P.hideOption));
P.prescanOption&&K&&I.push(x.observe(W,function(){K()},P.prescanOption));
Z.visibilityMonitorKeys=I}};
aco=function(W,P){W=JF(W);if(W.visualElement&&!P)return!0;if(!P)return!1;var x=!1;if(_.p("enable_client_ve_spec_logging")){var I,O;x=!!((I=P.loggingDirectives)==null?0:(O=I.clientVeSpec)==null?0:O.uiType)}I=bq8(P);if(!I&&!x)return!1;_.p("mweb_component_visibility_logging")&&(W.veContainer||(W.veContainer={}),W.veContainer.trackingParams=I);if(W.trackedParams&&W.trackedParams===I)return!1;var B;if(_.p("enable_client_ve_spec_logging")&&((B=W.visualElement)==null?0:B.isClientVe())){var Y;B=(Y=W.visualElement)==
null?void 0:Y.getAsJspb();var K,Z,d,v;if(_.L5(B,2)===((K=P.loggingDirectives)==null?void 0:(Z=K.clientVeSpec)==null?void 0:Z.uiType)&&_.L5(B,3,-1)===((d=P.loggingDirectives)==null?void 0:(v=d.clientVeSpec)==null?void 0:v.elementIndex))return!1}if(_.p("enable_client_ve_spec_logging")){var m,t;!W.visualElement&&((m=P.loggingDirectives)==null?0:(t=m.clientVeSpec)==null?0:t.uiType)&&(K=P.loggingDirectives.clientVeSpec,P=K.uiType,Y=K.elementIndex,K=K.clientYoutubeData,W.visualElement=_.nt(_.YY(),{veType:P,
elementIndex:Y,clientYouTubeData:K}))}return!0};
bq8=function(W){if(W==null?0:W.rendererContext){var P=_.Q(W.rendererContext,_.Xcx);if(P==null?0:P.loggingDirectives)return P.loggingDirectives.trackingParams}return(W==null?0:W.loggingDirectives)?W.loggingDirectives.trackingParams:W==null?void 0:W.trackingParams};
JF=function(W){var P;return(P=W.polymerController)!=null?P:W};
TdG=function(W){_.BW();if(_.Ho(yH().JSC$10369_elementShouldLogGesture).bind(yH())(W,4)){fcm(W);var P=NdR(W);lcS.set(W,P)}};
fcm=function(W){lcS.has(W)&&(lcS.get(W).cancel("untrack hover element"),lcS.delete(W))};
NdR=function(W){var P,x=[],I=!1,O=new _.yE(function(B,Y){Kt(W,"mouseenter",_.Ho(function(){var K,Z,d;return _.y(function(v){if(v.nextAddress==1)return P=(0,_.iA)(),K=rsU(W),x.push(K),Z=iqm(W,function(){I=!0;Y(Error("Vg"))}),_.S(v,K,2);
if(v.nextAddress!=3)return Z&&Z1(Z),d=RFx(W),x.push(d),_.S(v,d,3);B();_.Kl(v)})}))});
O.then(function(){var B=(0,_.iA)()-P;B=Math.round(B);if(!(500>B||6E5<=B)){var Y=W.getScreenLayer?W.getScreenLayer():void 0;Y=_.E_(Y)||"";var K=FC7(_.BW(),W);_.k6(Y,W.visualElement?W.visualElement:_.ox(K),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:B}})}TdG(W)},function(){SS&&(SS(),SS=null);
I&&(fcm(W),TdG(W))});
return O};
rsU=function(W){var P;return(new _.yE(function(x,I){SS=function(){I(Error("Wg"))};
P=_.Gr.debounce(_.Ho(function(){Z1(O);x()}),1,100);
var O=_.uq(W,"mousemove",P)})).thenCatch(function(){var x=_.Gr.cancelDebouncedJobMap.get(P);
x&&_.Gr.cancelJob(x)})};
RFx=function(W){var P;return(new _.yE(function(x,I){SS=function(){I(Error("Xg"))};
P=Kt(W,"mouseleave",_.Ho(function(){x()}))})).thenCatch(function(){Z1(P)})};
iqm=function(W,P){return Kt(W,"mouseleave",_.Ho(P))};
LCU=function(W){qdo&&_.dc.cancel(qdo);qdo=_.dc.run(function(){_.Lf(W,"yt-visibility-refresh");qdo=0})};
Wot=function(W){W=Number(W);return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
xXo=function(W){if(!W)return!1;if(_.Q(W,_.P0m))return!0;var P;if(W=(P=_.Q(W,_.B7))==null?void 0:P.commands)for(P=_.n(W),W=P.next();!W.done;W=P.next())if(_.Q(W.value,_.P0m))return!0;return!1};
IKW=function(W){var P=!0;P=P===void 0?!0:P;if(!W.useSignals&&!W.experimentalPropertiesChanged||_.p("experimental_templating_behavior_nopatch_killswitch")){var x=W._propertiesChanged;W._propertiesChanged=function(I,O,B){P?W.debounceRender():W.doRender();x&&x.call(W,I,O,B)}}};
OcR=function(W,P){if(W.useSignals||W.experimentalPropertiesChanged)if(_.p("experimental_templating_behavior_nopatch_killswitch"))W.experimentalPropertiesChanged=function(){};
else return;var x=new Set,I=[W].concat(_.ju(W.behaviors));I=_.n(I);for(var O=I.next();!O.done;O=I.next()){O=O.value;for(var B in O.properties)x.has(B)||(W._addPropertyEffect(B,"function",P),x.add(B))}};
Jam=function(){var W=Polymer.Element,P=W._prepareTemplate;W._prepareTemplate=function(){P.call(this);var x=this.prototype;if(x.experimentalTemplatingInUse&&x.experimentalTemplatingInUse()&&x.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.G$(Error("Yg"));else{x=this.template.content.childNodes;for(var I=x.length-1;I>=0;I--){var O=x[I];O.nodeName!=="STYLE"&&O.nodeName!=="LINK"&&O.nodeName!=="SCRIPT"&&O.nodeName!=="#comment"&&O.remove()}}}};
BGx=function(W){var P=!0;P=P===void 0?!0:P;Jam();var x=W.ready;W.ready=function(){this._template=null;x.call(this)};
OcR(W,P?W.debounceRender:W.doRender)};
YH7=function(W,P,x){if(x===null||x===void 0)return x;var I=vNm(W.tagName.toLowerCase(),P,function(){throw Error("Qb");});
if(I===null)return x;I=nmt[I];var O;if((O=I.isUnwrappable)==null?0:O.call(I,x)){if(I.unwrap)return I.unwrap(x);throw Error("ah");}return I.filterString?I.filterString(W.tagName,P,String(x)):x};
yaG=function(W,P,x){var I=P[P.length-1]!=="$",O=YH7(W,P,x);if(I)if(typeof O==="function"&&P.startsWith("reactiveon")&&P===P.toLowerCase()){var B=Np;GrA(W,P.slice(8),function(Y){Ew(B,function(){O(Y)})})}else W[P]=O;
else x=O==null?null:String(O),zhm(W,P.slice(0,-1),x)};
vW=function(W){Ko8.length===0&&requestAnimationFrame(function(){setTimeout(function(){var P=Ko8.slice();Ko8.length=0;P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;try{x()}catch(I){_.s2(I)}}})});
Ko8.push(W)};
ZcS=function(W){if(W){var P=W.component;if(P){var x;P==null||(x=P.events)==null||x.publish("DISCONNECTED");var I;P==null||(I=P.onDisconnected)==null||I.call(P)}var O,B;(O=W.__spec)==null||(B=O.didUnmount)==null||B.call(O);for(P=0;P<W.childNodes.length;P++)ZcS(W.childNodes[P])}};
VH=function(W,P,x){var I=P&&P.key,O=kV;O[0]=W;O[1]=I;O[2]=void 0;for(var B in P)P.hasOwnProperty(B)&&(W=P[B],I=X8,I.push(B),I.push(W));P=kV;a:{if(B=kV[2])for(W=0;W<B.length;W+=2)if(B[W]==="nonce"){B=B[W+1];break a}B=""}B=krd(P[0],P[1],B);W=$V(B);I=P[2];if(!W.staticsApplied&&(W.staticsApplied=!0,I&&I.length))if((O=W._attrsArr)&&O.length){for(O=0;O<I.length;O+=2)mT[I[O]]=O+1;O=W._attrsArr||(W._attrsArr=A0G(0));for(var Y=0,K=0;K<O.length;K+=2){var Z=O[K],d=O[K+1],v=mT[Z];v?I[v]===d&&delete mT[Z]:(O[Y]=
Z,O[Y+1]=d,Y+=2)}Dl(O,Y);for(var m in mT)$tx(B,m,I[mT[m]],re),delete mT[m]}else for(m=0;m<I.length;m+=2)$tx(B,I[m],I[m+1],re);r0W(B,W,re);Dl(P,0);x&&x(w1);Utx()};
omx=function(W){var P=W.toString().toLowerCase();return function(x,I){VH(P,x,I)}};
_.tF=function(W,P,x){x===void 0?delete W[P.name]:W[P.name]=x};
_.pt=function(W){var P={androidIncludeFontPadding:!1},x=0,I=[],O=[],B=[];if(W.simpleText)return P.content=W.simpleText,P;if(W.runs===void 0)return P.content="",P;W=_.n(W.runs);for(var Y=W.next();!Y.done;Y=W.next()){Y=Y.value;var K=Y.text,Z=void 0,d=(Z=K)==null?void 0:Z.length;if(K&&d){I.push(K);if(Y.bold||Y.italics||Y.strikethrough||Y.underline||Y.textColor!=null&&Y.textColor!==0||Y.deemphasize){K=O;Z=K.push;var v={startIndex:x,length:d};Y.bold&&(v.weightLabel="FONT_WEIGHT_MEDIUM");Y.italics&&(v.italic=
!0);Y.strikethrough&&(v.strikethrough="LINE_STYLE_SINGLE");Y.underline&&(v.underline="LINE_STYLE_SINGLE");Y.textColor!=null&&Y.textColor!==0?document.documentElement.hasAttribute("dark")?v.fontColor=Y.darkModeTextColor||Y.textColor:v.fontColor=Y.textColor:Y.deemphasize&&(document.documentElement.hasAttribute("dark")?v.fontColor=parseInt("ff"+SH7("#aaa").substring(1),16):v.fontColor=parseInt("ff"+SH7("#606060").substring(1),16));Z.call(K,v)}Y.navigationEndpoint&&(K=B,Z=K.push,v={startIndex:x,length:d,
onTap:{innertubeCommand:Y.navigationEndpoint}},Y.loggingDirectives&&_.tF(v,uHx,Y.loggingDirectives),Z.call(K,v));x+=d}}P.content=I.join("");P.styleRuns=O.length?O:void 0;P.commandRuns=B.length?B:void 0;return P};
sjR=function(W){if(W==null||!W.runs)return!0;W=_.n(W.runs);for(var P=W.next();!P.done;P=W.next())if(P=P.value,P.bracket||P.errorUnderline||P.deemphasize||_.Q(P,jS)||_.Q(P,dXx))return!1;return!0};
vmm=function(W,P){return function(x){var I=P.unit;if(I!==x)throw Error("dh`"+W+"`"+I+"`"+x);return P}};
QH=function(W){if(!((W==null?0:W.value)&&(W==null?0:W.unit)))return"";switch(W.unit){case "DIMENSION_UNIT_FRACTION":var P="%";break;default:P="px"}W=W.value;P==="%"&&(W*=100);return""+W+P};
mXR=function(W){try{return W()}catch(P){_.ge(P)}};
_.AF=function(W){var P=_.Q(W,_.Ct);if(P)return P;if((P=_.Q(W,Vqx))&&P.commands)return tqm(P.commands);if((P=_.Q(W,pRm))&&P.commands)return tqm(P.commands);if((W=_.Q(W,jjC))&&W.identifier&&W.command&&(Qjd||(Qjd=[]),!Qjd.includes(W.identifier)))return Qjd.push(W.identifier),_.Q(W.command,_.Ct)};
tqm=function(W){if(W.length!==0){var P=[];W=_.n(W);for(var x=W.next();!x.done;x=W.next())(x=_.AF(x.value))&&P.push(x);return{commandExecutorCommand:{commands:P}}}};
_.Gm=function(W){var P=W.defaultTarget,x=W.elementConfig,I=W.elementsCommand,O=W.skipOnClick,B=W.forceNewState,Y=W.additionalCommandArgs,K=W.innertubeCommand||_.AF(I);if(K){W={};var Z=C0C(K);I=Z.navigatingCommand;Z=Z.href;I&&Z?(W.href$=Z,AaW(W,I,Z,P),_.p("web_atagconfig_pointerdown")&&ztC(W,I),B&&(W["force-new-state$"]=!0)):(W.role$="button",W.href$="javascript:void(0);");_.Q(K,Gv8)&&(W["aria-haspopup$"]=!0);O||(W.onclick=function(d){if(EmC(d)){var v=Object.assign({},{form:{element:d.target,event:d}},
Y);d.preventDefault();_.zm(K,v)}});
return Object.assign({},x,W)}};
gmW=function(W){if(W.length){if(W.length===1)return W[0];var P={};_.tF(P,_.B7,{commands:W});return P}};
E2=function(W){return W&&W.href$!=="javascript:void(0);"};
C0C=function(W){var P,x=((P=_.Q(W,_.B7))==null?void 0:P.commands)||[W];W=_.n(x);for(P=W.next();!P.done;P=W.next()){P=P.value;var I=void 0,O=void 0;x=(O=_.Q((I=P)==null?void 0:I.commandMetadata,_.rU))==null?void 0:O.url;_.p("web_remove_web_navigation_endpoint_data")||(I=void 0,x=x||((I=_.Q(P,DXW))==null?void 0:I.url));if(x&&x!=="/service_ajax"){if(I=s0(x,Mqx))return W=_.u5(I),{navigatingCommand:P,href:W};_.ge(new _.mW("AttributedString URL could not be sanitized",x))}}return{}};
EmC=function(W){return W.button!==void 0?W.button===0&&!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey):!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey)};
AaW=function(W,P,x,I){x=!ro(x);var O,B,Y;if((O=_.Q(P,_.KL))!=null&&O.nofollow||(B=_.Q(P,_.U_))!=null&&B.nofollow||(Y=_.Q(P,_.aR))!=null&&Y.nofollow||x)W.rel$="nofollow";var K;P=((K=_.Q(P,_.aR))==null?void 0:K.target)==="TARGET_NEW_WINDOW"?"_blank":I===void 0?"":I;W.target$=P};
ztC=function(W,P){P.clickTrackingParams&&(W.params={itct:P.clickTrackingParams});W.onpointerdown=function(x){$XA(x)};
W._data=P};
wRx=function(W){(W.loggingUrls||[]).forEach(function(P){aD(P.baseUrl,P.attributionSrcMode)})};
htm=function(W){W.currentTarget._data&&wRx(W.currentTarget._data)};
$XA=function(W){var P=W.currentTarget;W=mXR(function(){return P.href});
var x=P.params;W&&_.lO(W,x||{},8,!0)};
Hcm=function(W,P){if(P=_.Q(P,_.aR))(P==null?void 0:P.target)==="TARGET_NEW_WINDOW"&&(W.target="_blank"),P.nofollow&&(W.rel="nofollow")};
etW=function(W){W=_.Q(W==null?void 0:W.commandMetadata,_.rU);return(W==null?0:W.url)?W.url:null};
_.D1=function(W,P){(W=_.AF(W))&&_.zm(W,P)};
_.zm=function(W,P){$1o(function(x){P?x.resolveCommand(W,P):x.resolveCommand(W)})};
kvx=function(W,P){var x=["yt-core-attributed-string__link"];P!=null&&P.noLinkColor||((P==null?0:P.isOverlay)?x.push("yt-core-attributed-string__link--overlay-call-to-action-color"):x.push("yt-core-attributed-string__link--call-to-action-color"),(P==null?0:P.linkInheritColor)&&x.push("yt-core-attributed-string--link-inherit-color"));x={className:x.join(" "),tabindex$:"0"};var I=W.onTap||W.onLongPress;if(!I)return x;var O=cam(W);O&&(x["aria-label$"]=O);P=_.Gm({elementsCommand:I,elementConfig:x,skipOnClick:!(P==
null||!P.skipOnClick),forceNewState:!0});W.onLongPress&&(I=new aK8(function(){var B=_.AF(W.onLongPress);B&&_.FY().resolve(_.qR).resolveCommand(B)}),P&&bcR(I,P));
return P||x};
cam=function(W){var P,x;return(P=W.onTapOptions)==null?void 0:(x=P.accessibilityInfo)==null?void 0:x.accessibilityLabel};
UXd=function(W){var P=W;W<=16777215&&(P+=parseInt("ff000000",16));return _.Qy(P)};
XRR=function(W){var P=W.isDarkTheme;var x=W.extension;W=W.runColor;var I=void 0;if(x=x==null?void 0:x.colorMap){P=P?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";x=_.n(x);for(var O=x.next();!O.done;O=x.next())if(O=O.value,P===O.key){I=O.value;break}}I==null&&W&&(I=W);if(I)return UXd(I)};
Mg=function(W){var P=W.config;var x=W.image;var I=W.imageConfig;var O=W.imageWrapperConfig;var B=W.run;var Y=W.tag;var K=W.textLength;var Z=W.startIndex===void 0?0:W.startIndex;W=W.length;Z===void 0&&(Z=0);B={run:B,startIndex:Z,endIndex:W!==void 0?Z+W:K,tag:Y};x&&(B.image=x);I&&(B.imageConfig=I);O&&(B.imageWrapperConfig=O);P&&(B.config=P);return B};
NGU=function(W,P){var x=[];x.push("yt-core-attributed-string");(P==null?0:P.className)&&x.push(P==null?void 0:P.className);(P==null?0:P.ellipsisTruncate)?x.push("yt-core-attributed-string--ellipsis-truncate"):(P==null?0:P.noWrap)?x.push("yt-core-attributed-string--white-space-no-wrap"):(P==null?0:P.noPreWrap)||x.push("yt-core-attributed-string--white-space-pre-wrap");(P==null?0:P.linkInheritColor)&&x.push("yt-core-attributed-string--link-inherit-color");W.alignment&&x.push(fK7(W.alignment));W.lineBreakMode&&
x.push("yt-core-attributed-string--word-wrapping");return x.join(" ")};
lKS=function(W){if(W.weight)return W.weight;switch(W.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
TGt=function(W){switch(W){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"}};
fK7=function(W){switch(W){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"}};
icS=function(W,P,x){var I=P;W.content&&x&&(x=W.content.indexOf("\n"),x!==-1&&(I=Math.min(P,x)));if(!W.content||W.content.length<=I)P=W;else if(W.attachmentRuns||W.commandRuns||W.decorationRuns||W.styleRuns||W.paragraphStyleRuns){P=$Y(W.content,I);x=I;var O=W.attachmentRuns;if(O){var B=[];O=_.n(O);for(var Y=O.next();!Y.done;Y=O.next())Y=Object.assign({},Y.value),Y.startIndex===void 0||Y.startIndex>=x||(Y.length||(Y.length=0),Y.length+Y.startIndex>x&&(Y.length=x-Y.startIndex),B.push(Y));x=B}else x=
void 0;B=ra8(I,W.commandRuns);O=I;var K=W.decorationRuns;if(K){Y=[];K=_.n(K);for(var Z=K.next();!Z.done;Z=K.next()){Z=Z.value;var d=_.Q(Z.textDecorator,wc);if(d&&d.startIndex!==void 0&&!(d.startIndex>=O)){Z=Object.assign({},Z,{textDecorator:{highlightTextDecorator:Object.assign({},d)}});d=_.Q(Z.textDecorator,wc);if(!d.length||d.length+d.startIndex>O)d.length=O-d.startIndex;Y.push(Z)}}O=Y}else O=void 0;Y=ra8(I,W.styleRuns);if(K=W.paragraphStyleRuns)for(W=[],K=_.n(K),Z=K.next();!Z.done;Z=K.next()){var v=
Z.value;Z=Object.assign({},v);if(!(Z.startIndex===void 0||Z.startIndex>=I)){if(!Z.length||Z.length+Z.startIndex>I)Z.length=I-Z.startIndex;d=[];var m=void 0,t=void 0;if((m=v)==null?0:(t=m.listGroup)==null?0:t.listItems)for(v=_.n(v.listGroup.listItems),m=v.next();!m.done;m=v.next())if(m=Object.assign({},m.value),!(m.startIndex===void 0||m.startIndex>=I)){if(!m.length||m.length+m.startIndex>I)m.length=I-m.startIndex;d.push(m)}d.length>0&&(Z.listGroup||(Z.listGroup={}),Z.listGroup=Object.assign({},Z.listGroup,
{listItems:d}));W.push(Z)}}else W=void 0;P={content:P,attachmentRuns:x,commandRuns:B,decorationRuns:O,styleRuns:Y,paragraphStyleRuns:W}}else P=Object.assign({},W,{content:$Y(W.content,I)});return P};
ra8=function(W,P){if(P){var x=[];P=_.n(P);for(var I=P.next();!I.done;I=P.next())if(I=Object.assign({},I.value),!(I.startIndex===void 0||I.startIndex>=W)){if(!I.length||I.length+I.startIndex>W)I.length=W-I.startIndex;x.push(I)}return x}};
$Y=function(W,P){var x=P,I;if(I=x>0)I=W.charCodeAt(x-1),I=I>=55296&&I<=56319;I&&(x=W.charCodeAt(x),I=x>=56320&&x<=57343);I&&--P;return W.substring(0,P)};
LoR=function(W,P,x){x=x===void 0?Rtt:x;if(W){var I=_.FY().resolve(RR);I||_.p("mweb_no_observer_killswitch")?UOm(W,{data:P,observer:I,visibilityCallback:x,hideOption:FoC,showOption:qHA,layer:W.layer}):_.ge(new _.mW("Warning: monitorVisibility called with null observer",W.tagName,P==null?void 0:P.loggingDirectives,P==null?void 0:P.trackingParams))}else _.ge(new _.mW("Warning: monitorVisibility called with null element",P==null?void 0:P.loggingDirectives,P==null?void 0:P.trackingParams,P==null?void 0:
P.rendererContext))};
Ba7=function(W,P){var x=[],I=W.content.length,O,B=(O=_.FY().resolve(_.Rl(_.hF)))==null?void 0:O();if(W.paragraphStyleRuns){O=_.n(W.paragraphStyleRuns);for(var Y=O.next();!Y.done;Y=O.next()){var K=x.push,Z=K.apply;var d=void 0;Y=Y.value;if((d=Y.listGroup)!=null&&d.listItems){d=[];b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var v="ul";break b;default:v="span"}d.push(Mg({run:Y,textLength:I,tag:v,config:{className:"yt-core-attributed-string__list-group"},startIndex:Y.startIndex,length:Y.length}));
v=_.n(Y.listGroup.listItems);for(var m=v.next();!m.done;m=v.next()){m=m.value;b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var t="li";break b;default:t="span"}d.push(Mg({run:Y,textLength:I,tag:t,startIndex:m.startIndex,length:m.length}))}Y=d}else Y=[];Z.call(K,x,_.ju(Y))}}if(W.styleRuns&&(P==null||!P.noStyleRuns))for(O=_.n(W.styleRuns),K=O.next();!K.done;K=O.next()){K=K.value;Z=XRR({extension:_.Q(K.styleRunExtensions,WqC),isDarkTheme:B===void 0?!1:B,runColor:K.fontColor});d=[];Z&&d.push("yt-core-attributed-string--link-inherit-color");
K.italic&&d.push("yt-core-attributed-string--italicized");K.underline&&K.strikethrough?d.push("yt-core-attributed-string--underline-strikethrough",TGt(K.underline)):K.underline?d.push("yt-core-attributed-string--underlined",TGt(K.underline)):K.strikethrough&&d.push("yt-core-attributed-string--strikethrough",TGt(K.strikethrough));if(K.baselineOffset){a:switch(K.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Y="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Y=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Y="yt-core-attributed-string--baseline-offset-unknown"}d.push(Y)}Y=d.join(" ");d=K;v={};if(d.weight||d.weightLabel)v.fontWeight=lKS(d).toString();Z&&(v.color=Z);x.push(Mg({run:K,textLength:I,tag:"span",config:{className:Y,style:v},startIndex:K.startIndex,length:K.length}))}if(W.decorationRuns)for(O=_.n(W.decorationRuns),K=O.next();!K.done;K=O.next())K=K.value,Z={},K.textDecorator&&(v=K.textDecorator,Y=B===void 0?!1:B,m=[],d=
_.Q(v,wc),v=_.Q(v,PUm),d?(v=m,m=v.concat,t=[],(Y=XRR({extension:_.Q(d.highlightTextDecoratorExtensions,xst),isDarkTheme:Y,runColor:d.backgroundColor}))&&t.push("background-color: "+Y+";"),d.backgroundCornerRadius!==void 0&&t.push("border-radius: "+d.backgroundCornerRadius+"px;"),d.leftPadding!==void 0&&t.push("padding-left: "+d.leftPadding+"px;"),d.rightPadding!==void 0&&t.push("padding-right: "+d.rightPadding+"px;"),d.topPadding!==void 0&&t.push("padding-top: "+d.topPadding+"px;"),d.bottomPadding!==
void 0&&t.push("padding-bottom: "+d.bottomPadding+"px;"),m=m.call(v,t)):v&&(d=m,m=d.concat,Y=Y?"#2ba640":"#107516",Y=v.color?UXd(v.color):Y,Y=["padding: 2px;","border-top: solid "+Y+" 2px;","border-bottom: solid "+Y+" 2px;","background: linear-gradient(135deg, "+Y+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Y+" 3px, rgba(0, 0, 0, 0) 3px);"],m=m.call(d,Y)),Y=m.join(" "),Z.style$=Y,Y=K.textDecorator,d=[],v=_.Q(Y,PUm),_.Q(Y,wc)?d.push("yt-core-attributed-string--highlight-text-decorator"):
v&&d.push("yt-core-attributed-string--bracket-text-decorator"),Y=d.join(" "),Z.className=Y,Z.dir="auto"),Y=_.Q(K.textDecorator,wc),d=_.Q(K.textDecorator,PUm),v=_.Q(K.textDecorator,wc),m=_.Q(K.textDecorator,PUm),x.push(Mg({run:K,textLength:I,tag:"span",config:Z,startIndex:(Y==null?void 0:Y.startIndex)||(d==null?void 0:d.startIndex)||0,length:(v==null?void 0:v.length)||(m==null?void 0:m.length)||0}));if(W.commandRuns&&(P==null||!P.noEndpoints))for(B=_.n(W.commandRuns),O=B.next();!O.done;O=B.next())O=
O.value,K=kvx(O,P),x.push(Mg({run:O,textLength:I,tag:"a",config:K,startIndex:O.startIndex,length:O.length}));if(W.attachmentRuns)for(W=_.n(W.attachmentRuns),B=W.next();!B.done;B=W.next()){B=B.value;Z=K=void 0;O={className:"yt-core-attributed-string--inline-block-mod"};if((Z=B.element)==null?0:Z.properties){Z=(K=B.element)==null?void 0:K.properties;K=[];Z=_.Q(Z,IOU);if(Z==null?0:Z.margin)Z=Z.margin,Z.left&&K.push("margin-left: "+QH(Z.left)+";"),Z.right&&K.push("margin-right: "+QH(Z.right)+";"),Z.top&&
K.push("margin-top: "+QH(Z.top)+";"),Z.bottom&&K.push("margin-bottom: "+QH(Z.bottom)+";");K=K.length!==0?K.join(" "):void 0;O.style$=K}Y=void 0;K={alt:"",preserveHeight:!0,preserveWidth:!0};Z=["yt-core-attributed-string__image-element"];if(B.alignment){a:switch(B.alignment){case "ALIGNMENT_BASELINE":d="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":d="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:d=
"yt-core-attributed-string__image-element--image-alignment-bottom"}Z.push(d)}if((Y=B.element)==null?0:Y.properties)Y=[],d=_.Q(B.element.properties,IOU),(d==null?0:d.height)&&Y.push("height: "+QH(d.height)+";"),(d==null?0:d.width)&&Y.push("width: "+QH(d.width)+";"),Y=Y.length!==0?Y.join(" "):void 0,K.style$=Y,d=void 0,Y=((d=_.Q(B.element.properties,OIG))==null?void 0:d.label)||"",K.alt=Y;K.className=Z.join(" ");Z=void 0;v=d=void 0;Y=((v=B.element)==null?0:v.type)?(d=_.Q(B.element.type,JGC))==null?
void 0:d.image:void 0;x.push(Mg({run:B,textLength:I,tag:"img",image:Y,imageConfig:K,imageWrapperConfig:O,startIndex:B.startIndex,length:(Z=B.length)!=null?Z:0}))}if(P==null?0:P.headerRuns)for(P=_.n(P.headerRuns),W=P.next();!W.done;W=P.next())if(W=W.value,W.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(W.headerMapping)){a:{switch(W.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":B=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":B="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":B="yt-core-attributed-string--heading-3";break a}B=void 0}x.push(Mg({run:W,textLength:I,tag:"span",config:B?{className:B}:void 0,startIndex:W.startIndex,length:W.length}))}return x};
_.HW=function(W){return(W==null?void 0:W.content)!==void 0};
nqx=function(W){return _.HW(W)?W:_.pt(W)};
YIA=function(W){return W.image!==void 0&&W.imageConfig!==void 0};
yGo=function(W,P){if(P==null?0:P.userInput)for(W=_.n(W),P=W.next();!P.done;P=W.next())if(P=P.value,P.tag!=="a"&&P.tag!=="li"){var x=void 0;(x=P).config||(x.config={});P.config.dir=P.tag==="ul"?_.FY().resolve(_.eS):"auto"}};
KqS=function(W){return function(P){var x=W.run;(x.onTap!==void 0||x.onLongPress!==void 0)&&_.Q(x,uHx)&&LoR(P,{loggingDirectives:_.Q(x,uHx)})}};
ZId=function(W){return function(P){for(var x in W)(re[x]||re[MS["default"]])(P,x,W[x])}};
dsG=function(W,P){oqA(P);var x={data:null,start:0,end:W.length,parts:[]};P=_.n(P);for(var I=P.next();!I.done;I=P.next())I=I.value,SId(x,I.startIndex,I.endIndex,I);uTm(W,x);return x};
SId=function(W,P,x,I){for(var O=_.n(W.parts),B=O.next();!B.done;B=O.next()){B=B.value;if(typeof B==="string")throw Error("fh");if(B.start<=P&&x<=B.end){SId(B,P,x,I);return}}W.parts.push({data:I,parts:[],start:P,end:x})};
uTm=function(W,P){for(var x=P.parts.length;x>=0;x--){var I=P.parts[x],O=P.parts[x-1],B=x===P.parts.length?P.end:I.start;O=x===0?P.start:O.end;B!==O&&P.parts.splice(x,0,W.slice(O,B));I&&uTm(W,I)}};
oqA=function(W){W.sort(function(P,x){if(P.startIndex<x.startIndex)return-1;if(x.startIndex<P.startIndex)return 1;P=P.endIndex-P.startIndex;x=x.endIndex-x.startIndex;return P>x?-1:x>P?1:0})};
_.sAA=function(W){var P=W.thumbnails;if(P){W={sources:[]};P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I={};I.url=x.url;I.width=x.width;I.height=x.height;W.sources.push(I)}return W}};
vqm=function(W,P,x,I){if(!P)return W.length>=1?W[W.length-1]:null;if(I)for(var O=_.n(W),B=O.next();!B.done;B=O.next()){B=B.value;var Y=void 0,K=(Y=B.url)==null?void 0:Y.indexOf(I);if(K!==void 0&&K>=0)return B}I=_.n(W);for(O=I.next();!O.done;O=I.next())if(O=O.value,O.width&&O.height&&(x&&O.width>=P||!x&&O.height>=P))return O;for(P=W.length-1;P>=0;P--)if(x&&W[P].width||!x&&W[P].height)return W[P];return W[0]};
_.msd=function(W){var P;return(W=(P=W.sources)==null?void 0:P[0])?W.width/W.height:0};
_.VP8=function(W){if(W.sources){W=_.n(W.sources);for(var P=W.next();!P.done;P=W.next()){P=P.value;var x=void 0;if((x=P.clientResource)==null?0:x.imageName)return P}}};
tP8=function(W){var P;if((P=W.clientResource)!=null&&P.imageColor)return _.Qy(W.clientResource.imageColor)};
_.jAR=function(W,P,x,I,O,B,Y){if(!P||P.length===0||P[0].clientResource)return null;if(x&&P[0].url)return P[0].url;I===void 0&&(I=!0);if(I){var K;W=pQG*(O||(W==null?void 0:(K=W.getBoundingClientRect())==null?void 0:K.width)||0)}else{var Z;W=pQG*(B||(W==null?void 0:(Z=W.getBoundingClientRect())==null?void 0:Z.height)||0)}P=vqm(P,W,I,Y);return(P==null?0:P.url)?P.url:(P==null?0:P.imageData)?P.imageData:null};
QA8=function(W,P,x){x=x?[x]:[];W.opacity&&x.push("opacity: "+W.opacity+";");P&&W.placeholderColor?(W=_.Qy(W.placeholderColor),x.push("background-color: "+W+";")):x.push("background-color: transparent;");return x.join(" ")};
CUW=function(W,P,x,I,O){var B=["yt-core-image"];P&&B.push(P);x||B.push("yt-core-image--fill-parent-height");I||B.push("yt-core-image--fill-parent-width");switch(W.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":B.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":B.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":B.push("yt-core-image--content-mode-center");break;default:B.push("yt-core-image--content-mode-scale-to-fill")}W.flipForRtlLayout&&
B.push("yt-core-image--flip-rtl");switch(O){case "TOP_START":var Y;B.push(((Y=document.body)==null?void 0:Y.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return B.join(" ")};
zCU=function(W){var P;if(W==null?0:(P=W.clientResource)==null?0:P.imageName){var x;W=(x=W.clientResource)==null?void 0:x.imageName;a:{switch(W){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":x="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":x="yt-logos-ext:yt-logo-updated";break a}x=void 0}return x||AGt.get(W)||W}};
cW=function(W){return _.p("mweb_wiz_skip_render")?Gym(W):Eqt(W)};
Gym=function(W){return function(P){var x=krd("wink-root");b_();Utx();OES(x,_.u(W,P))}};
Eqt=function(W){var P=P===void 0?!1:P;return function(x){if(!P||!_.p("mweb_skip_keto_to_c3_if_no_data")||x.data!==void 0){var I=L4(!1);try{var O=x.children;_.p("mweb_render_outside_patch_killswitch")||w1?O?T$(_.u(W,x,O)):T$(_.u(W,x)):_.ge(new _.mW("ketoToC3 called outside of a patch",{tagName:W.TAG_NAME}))}finally{L4(I)}}}};
gqd=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
MPU=function(W,P){W.onViewportEntered=P;DsG.observe(W)};
$so=function(){var W={rootMargin:"10%",threshold:.01};_.p("mweb_enable_set_io_root_to_null_safari")?W.root=null:_.p("mweb_enable_set_io_root_to_body_safari")&&(W.root=document.body);return new IntersectionObserver(function(P,x){P.filter(function(I){return I.intersectionRect.height>0}).forEach(function(I){I=I.target;
if(!_.p("mweb_enable_only_update_image_when_connected")||I.isConnected!==!1){var O;(O=I.onViewportEntered)==null||O.call(I);x.unobserve(I)}})},W)};
wQS=function(W,P,x,I,O){function B(){if(I){var K=I.loadedClass,Z=I.notifyOnUnloaded;K&&_.ax(W,K);Z&&W.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Y(){var K=x(P,W);K&&W.getAttribute("src")!==K&&(_.p("mweb_enable_only_update_image_when_connected")&&W.isConnected===!1||K===W.src||(W.src=K),B())}
O=O===void 0?!0:O;W.removeAttribute("src");B();P&&(O?MPU(W,Y):Y())};
hCC=function(W,P,x){if(!P)return!1;P=x(P,W);x=W.getAttribute("src");return P&&P===x&&W.complete};
HIR=function(W,P){for(var x in P)x==="className"?W.className=P[x]:(re[x]||re[MS.default])(W,x,P[x])};
eC8=function(W,P,x,I){cW(_.bq)({contentMode:P.contentMode,loadedClass:P.loadedClass,isPreloaded:P.isPreloaded,notifyOnLoaded:P.notifyOnLoaded,notifyOnUnloaded:P.notifyOnUnloaded,preferredThumbnail:P.preferredThumbnail,preserveHeight:P.preserveHeight,preserveWidth:P.preserveWidth,objectPosition:P.objectPosition,targetWidth:P.targetWidth,targetHeight:P.targetHeight,shouldShowPlaceholder:P.shouldShowPlaceholder,useWidth:P.useWidth,alt:P.alt,className:P.className,onerror:P.onerror,onload:P.onload,style$:P.style$,
color:P.color,width:P.width,height:P.height,"aria-hidden$":P["aria-hidden$"],draggable:P.draggable,"data-disabled$":P["data-disabled$"],data:W,callback:x,renderLazy:I===void 0?!0:I,hideOn404:!1})};
aOA=function(W,P,x){x=x===void 0?!1:x;var I=W.sources!==void 0?W:_.sAA(W);if(I){var O=P.onload;P.onload=function(Z){var d=Z.target;x&&d.naturalWidth===120||_.kY(d,"yt-core-image--loaded");P.notifyOnLoaded&&d.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));O==null||O(Z)};
P.targetWidth&&P.preserveWidth&&(P.width=P.targetWidth);P.targetHeight&&P.preserveHeight&&(P.height=P.targetHeight);var B=_.VP8(I),Y=B&&zCU(B);if(Y)return(W=tP8(B))&&(P.color=W),{type:"icon",iconName:Y,config:Object.assign({},P,P.alt?{}:{"aria-hidden$":"true"},{"aria-label$":P.alt,role:"img"})};if(W.sources===void 0){P.alt=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label||P.alt;P.style$=QA8(W,P.shouldShowPlaceholder,P.style$);var K;P.isPreloaded=!((K=_.Q(W,
cGx))==null||!K.isPreloaded)}P.contentMode&&!I.contentMode&&(I.contentMode=P.contentMode);P.className=CUW(I,P.className,P.preserveHeight,P.preserveWidth,P.objectPosition);P.loadedClass="yt-core-image--loaded";return{type:"image",image:I,config:P}}};
_.U2=function(){var W=_.tH.apply(0,arguments);return _.Nl(function(P){var x=W.map(function(I){return I(P)});
return function(){return void x.forEach(function(I){return void(I==null?void 0:I())})}})};
Xo=function(W,P){var x=P==null?void 0:P.initial;return _.Sj(function(){_.zB(!0);return x=W(x)},{equals:P==null?void 0:P.isEqual},"rSlKsc")};
bI8=function(W,P){if(W===P)return!0;if(W===void 0||P===void 0)return!1;var x,I,O,B,Y,K,Z,d;return W.content===P.content&&((x=W.styleRuns)==null?void 0:x.length)===((I=P.styleRuns)==null?void 0:I.length)&&((O=W.commandRuns)==null?void 0:O.length)===((B=P.commandRuns)==null?void 0:B.length)&&((Y=W.attachmentRuns)==null?void 0:Y.length)===((K=P.attachmentRuns)==null?void 0:K.length)&&((Z=W.decorationRuns)==null?void 0:Z.length)===((d=P.decorationRuns)==null?void 0:d.length)};
XQC=function(W,P){if(W){var x=nqx(W);if(x!=null&&x.content)if(_.p("attr_string_reactive"))cW(ky8)({text:W,config:P});else{var I=!(P==null||!P.ariaLabel)||!(x.commandRuns&&x.commandRuns.length!==0||x.paragraphStyleRuns&&x.paragraphStyleRuns.length!==0);W=I?P==null?void 0:P.ariaLabel:null;I=I?"text":null;VH("span",{className:NGU(x,P),dir$:(P==null?0:P.userInput)?"auto":void 0,"aria-label$":W,role$:I},function(){if(x.styleRuns||x.commandRuns||x.attachmentRuns||x.decorationRuns){var O=Ba7(x,P);yGo(O,
P);O=dsG(x.content,O);O=_.n(O.parts);for(var B=O.next();!B.done;B=O.next())UsR(B.value)}else TB(x.content)})}}};
UsR=function(W){typeof W==="string"?TB(W):YIA(W.data)?VH("span",W.data.imageWrapperConfig,function(){eC8(W.data.image,W.data.imageConfig)}):VH(W.data.tag,W.data.config,function(P){KqS(W.data)(P);
P=_.n(W.parts);for(var x=P.next();!x.done;x=P.next())UsR(x.value)})};
NaR=function(W){return W.parts.map(fOW)};
fOW=function(W){if(typeof W==="string")return W;W=YIA(W.data)?_.u("span",{el:_.U2(ZId(W.data.imageWrapperConfig))},_.u(_.bq,Object.assign({},{data:W.data.image},W.data.imageConfig))):_.u(W.data.tag,{el:_.U2(KqS(W.data),ZId(W.data.config))},W.parts.map(fOW));return ya(W)};
lOx=function(W,P){return W===P?!0:W===void 0||P===void 0?!1:W.noStyleRuns===P.noStyleRuns&&W.noLinkColor===P.noLinkColor&&W.noEndpoints===P.noEndpoints&&W.headerRuns===P.headerRuns&&W.isOverlay===P.isOverlay&&W.linkInheritColor===P.linkInheritColor&&W.userInput===P.userInput};
TaC=function(W){return function(){var P,x,I,O,B,Y,K,Z,d,v,m,t,C,z;return{ariaLabel:(P=W.ariaLabel)==null?void 0:P.call(W),className:(x=W.className)==null?void 0:x.call(W),ellipsisTruncate:(I=W.ellipsisTruncate)==null?void 0:I.call(W),isOverlay:(O=W.isOverlay)==null?void 0:O.call(W),linkInheritColor:(B=W.linkInheritColor)==null?void 0:B.call(W),noEndpoints:(Y=W.noEndpoints)==null?void 0:Y.call(W),noStyleRuns:(K=W.noStyleRuns)==null?void 0:K.call(W),noLinkColor:(Z=W.noLinkColor)==null?void 0:Z.call(W),
noPreWrap:(d=W.noPreWrap)==null?void 0:d.call(W),noWrap:(v=W.noWrap)==null?void 0:v.call(W),skipOnClick:(m=W.skipOnClick)==null?void 0:m.call(W),stopPropagation:(t=W.stopPropagation)==null?void 0:t.call(W),userInput:(C=W.userInput)==null?void 0:C.call(W),headerRuns:(z=W.headerRuns)==null?void 0:z.call(W)}}};
rGW=function(W){return W.value===""||W.value==="true"?!0:W.value==="false"?!1:isNaN(Number(W.value))?W.value:Number(W.value)};
ft=function(W,P){W=new iIm(W,P);_.G$(W);throw W;};
RC8=function(W,P,x){var I=OqC(W);W._numRenders=0;try{var O=ChA(function(){return _.u(P,Object.assign({},x))})}catch(Y){var B=function(K){K.args||(K.args=[]);
K.args.push("Error in web component wrapper");K.args.push(W.tagName.toLowerCase());return K};
_.EA(Y instanceof Error?B(Y):new iIm("Wiz rendering error",W.tagName.toLowerCase()));throw Y;}finally{OqC(I)}return O};
_.lq=function(W,P,x){function I(v){var m={};v=_.n(v);for(var t=v.next();!t.done;t=v.next()){t=t.value;var C=void 0,z=void 0,D=void 0,w=_.Zt((D=(z=(C=t).getAttribute)==null?void 0:z.call(C,"slot"))!=null?D:"children");if(C=m[w])C.push(t);else if(w in B||w==="children")m[w]=[t]}v=_.n(Object.keys(m));w=v.next();for(t={};!w.done;t={content$jscomp$55:void 0},w=v.next())w=w.value,w!=="children"&&(t.content$jscomp$55=m[w],m[w]=function(a){return function(){return a.content$jscomp$55}}(t));
return m}
x=x===void 0?{}:x;W.componentType!==vJ||ft("Components must be marked reactive to be used from web component wrapper.",P);rY.has(P)&&ft("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",P);var O,B=(O=x.props)!=null?O:{};iw.add(P);var Y=Fqx();O=function(){var v=Y.apply(this,arguments)||this;v.rawProps={};v.queuingRender=!1;v.dispose=function(){};
v.isWebComponentWrapper=!0;v.isReparenting=!1;v.hasRendered=!1;return v};
_.A(O,Y);O.prototype.render=function(){this.hasRendered=!0;for(var v=_.n([].concat(_.ju(this.attributes))),m=v.next();!m.done;m=v.next())m=m.value,m.name!=="slot"&&this.removeAttribute(m.name);v=Object.assign({},this.componentProps,this.slotProps);m=_.n(RC8(this,W,v));v=m.next().value;m=m.next().value;!(v[0]instanceof Element)||v.length>1?ft("Wrapped Wiz components must return a single root element.",P):(v=v[0].tagName.toLowerCase(),v!==P&&ft("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(v+" !== '"+P),P),this.dispose=m)};
O.prototype.setUpProps=function(){for(var v=this.rawProps,m=this.attributes,t=_.n(Object.keys(B)),C=t.next();!C.done;C=t.next()){C=C.value;var z=void 0;((z=this)==null?0:z[C])&&this[C]!==qIU&&v[C]===void 0&&(v[C]=this[C],(z=Object.getOwnPropertyDescriptor(this.constructor.prototype,C))&&Object.defineProperty(this,C,z))}t=_.n(m);for(C=t.next();!C.done;C=t.next()){z=C.value;C=_.Zt(z.name);var D=C==="class"&&!m.getNamedItem("class-name");if(C in B||D)z=rGW(z),C!=="class"||v.className?v[C]=z:v.className=
z}m={};for(var w in B)B[w]!==_.Ng&&B[w]!==Lqo&&(v[w]instanceof Function&&ft("Function props must be configured as STATIC, not SIGNAL.",P),C=_.n(_.YV(v[w],void 0,"Ri8MSe")),t=C.next().value,C=C.next().value,m[w]=C,v[w]=t);v=_.n([v,m]);this.componentProps=v.next().value;this.setters=v.next().value;this.slotProps=I(this.childNodes)};
O.prototype.connectedCallback=function(){lw===P&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in B&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
O.prototype.disconnectedCallback=function(){if(!this._isInert){var v;a:{if(_.WtS)for(v=this;v;){if(_.PnA.has(v)){v=!0;break a}v=v.parentElement}v=!1}if(v)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){v=_.n([].concat(_.ju(this.attributes)));for(var m=v.next();!m.done;m=v.next())m=m.value,m.name!=="slot"&&this.removeAttribute(m.name)}this.innerText="";FlC(this)}}};
O.prototype._setPendingPropertyOrPath=function(){};
O.prototype.notifyPath=function(){};
_.N1.Object.defineProperties(O.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var K=_.n(Object.keys(B)),Z=K.next(),d={};!Z.done;d={prop$jscomp$103:void 0},Z=K.next())d.prop$jscomp$103=Z.value,Z=void 0,((Z=x.legacyPolymer)==null?0:Z.forwardHostProps)&&TBC.has(d.prop$jscomp$103)||Object.defineProperty(O.prototype,d.prop$jscomp$103,{set:function(v){return function(m){var t=this;this._isInert||(this.setters?u_(function(){var C,z;return void((z=(C=t.setters)[v.prop$jscomp$103])==null?void 0:z.call(C,m))}):(this.rawProps[v.prop$jscomp$103]=m,this.queuingRender&&v.prop$jscomp$103===
"data"&&m!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(d),
get:xNm.has(d.prop$jscomp$103)?void 0:function(){return qIU}});
customElements.define(P,O)};
_.IPW=function(W,P){return(W=_.Tm(W,P))?_.u5(_.my(W)):null};
_.rc=function(W){if(W=_.Tm(W,Number.MAX_VALUE,void 0,"width"))return _.my(W)};
_.Tm=function(W,P,x,I){I=I===void 0?"width":I;if(!W||!W.length)return null;if(_.p("kevlar_tuner_should_always_use_device_pixel_ratio")){var O=window.devicePixelRatio;_.p("kevlar_tuner_should_clamp_device_pixel_ratio")?O=Math.min(O,_.Wi("kevlar_tuner_clamp_device_pixel_ratio")):_.p("kevlar_tuner_should_use_thumbnail_factor")&&(O=_.Wi("kevlar_tuner_thumbnail_factor"));OZG=O}else OZG||(OZG=window.devicePixelRatio);O=OZG;_.p("kevlar_tuner_should_always_use_device_pixel_ratio")?P*=O:O>1&&(P*=O);if(_.p("kevlar_tuner_min_thumbnail_quality"))return W[0].url||
null;O=W.length;if(_.p("kevlar_tuner_max_thumbnail_quality"))return W[O-1].url||null;if(x)for(var B=0;B<O;B++)if(W[B].url.indexOf(x)>=0)return W[B].url||null;for(x=0;x<O;x++)if(W[x][I]>=P)return W[x].url||null;for(P=O-1;P>0;P--)if(W[P][I])return W[P].url||null;return W[0].url||null};
n8W=function(){iq.size?setTimeout(function(){Rx(JSS)},0):Bt7=0};
JSS=function(){var W=(0,_.iA)(),P=null,x=!1;iq.forEach(function(O){O.loaded=!0;O.loadTime=W;O.pendingPaint=!1;var B=YYS.get(O);B&&B.resolve(W);P=O;x||!O.ftlEligible&&O.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(x=!0)});
var I;((I=P)==null?0:I.markDirty)&&P.markDirty();iq.clear();Bt7=0;x&&ySt(W)};
KtC=function(W){iq.add(W);W.pendingPaint=!0;Bt7||(Bt7=_.Fo(_.Gr,n8W))};
ZZS=function(W){W.loaded=!1;W.loadTime=Infinity;var P=YYS.get(W);P&&(P.reject(Error("lh")),YYS.delete(W));W.pendingPaint&&(iq.delete(W),W.pendingPaint=!1)};
_.o8C=function(W){var P=W.indexOf(":");return P===-1?{originalName:W}:{originalName:W.substring(0,P),datasyncId:W.substring(P+1)}};
_.uCR=function(){return _.y(function(W){if(SYU!==void 0)return W.return(SYU);SYU=new Promise(function(P){var x;return _.y(function(I){switch(I.nextAddress){case 1:return _.OT(I,2),_.S(I,_.qg.open("test-only"),4);case 4:return _.S(I,_.qg.delete("test-only"),5);case 5:_.ci(I,3);break;case 2:if(x=_.yn(I),x instanceof Error&&x.name==="SecurityError")return P(!1),I.return();case 3:P("caches"in window),_.Kl(I)}})});
return W.return(SYU)})};
v8d=function(){return _.y(function(W){if(W.nextAddress==1)return _.S(W,_.uCR(),2);if(!W.yieldResult)return W.return(void 0);dNt||(dNt=new skU);return W.return(dNt)})};
mNS=function(W){var P,x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:return _.S(B,v8d(),2);case 2:P=B.yieldResult;if(!P)throw Error("nh");return _.S(B,P.open("yt-player-local-img"),3);case 3:return x=B.yieldResult,_.S(B,x.match(W),4);case 4:I=B.yieldResult;if(!I)throw Error("oh");return _.S(B,I.blob(),5);case 5:return O=B.yieldResult,B.return(O)}})};
Vh8=function(W,P){for(var x in W)if(W.hasOwnProperty(x)&&P[x])return x;return null};
thx=function(W){return"stamp"+W.replace("-","_")+"_"};
p_S=function(W){var P=W.match(/\[\[([\w\.]+)\]\]/);if(P&&P.length>1)return P[1];_.G$(Error("qh`"+W));return null};
jkt=function(W){return W===void 0?_.wo("REUSE_COMPONENTS",!1):W||!1};
ASC=function(W,P,x){x&&(P.is?(QkR.has(P)&&(W=QkR.get(P),x=W.listener,delete P[W.property],x.type==="element"&&P.removeEventListener(x.eventName,x.handler),QkR.delete(P)),Cn7(P)):P.__proto__==HTMLElement.prototype&&(P=new _.mW("Rendererstamper removed a non custom element","Stamper: "+W+" element: "+(P&&P.nodeName)),_.ge(P)))};
z4U=function(W,P,x,I){var O=P.node?P.node:P;_.g(x).parentNode===O&&(P.removeChild(x),ASC(W,x,I));if(W=Lt.get(x))Lt.delete(x),_.Gr.cancelJob(W);x.hidden=!1};
Gf8=function(W,P,x,I){if(P&&P.children&&(x=P.children[x]))if(_.wo("DEFERRED_DETACH"))for(;x&&!Lt.has(x);){var O=W,B=P,Y=x,K=I;Y.hidden=!0;O=_.VE(_.Gr,z4U.bind(null,O,B,Y,K),0);Lt.set(Y,O);x=x.nextElementSibling}else for(;(Y=P.lastElementChild)&&(P.removeChild(Y),ASC(W,Y,I),Y!=x););};
E8R=function(W){var P=_.fa();_.AQ(function(){for(var x=_.n(W.slotContent),I=x.next();!I.done;I=x.next())P.value.appendChild(I.value)});
return _.u("__slot-el",{el:P,skip:!0})};
_.WF=function(W,P,x){x=x===void 0?g88:x;rY.add(P);var I;(I=x).propNames!=null||(I.propNames=[]);var O=new Set(x.propNames),B=Fqx();I=function(){var d=B.call(this)||this;d.props={};d.isUpdating=!1;d.hasAttached=!1;d.isInert=!1;d.updateQueued=!1;d.initialClasses=[];Icm(d,P);return d};
_.A(I,B);I.prototype.forwardKebabCaseProp=function(d,v){d=_.Zt(d);if(O.has(d)||d==="children")this.props[d]=v};
I.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var d=_.n(this.initialClasses),v=d.next();!v.done;v=d.next())(v=v.value)&&this.classList.add(v);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
I.prototype.handleSlottedContent=function(){for(var d=new Map,v=_.n(this.children),m=v.next();!m.done;m=v.next()){m=m.value;var t=void 0,C=(t=m.getAttribute("slot"))!=null?t:"children";(t=d.get(C))?t.push(m):d.set(C,[m]);if(!m.getAttribute("key")){var z=void 0,D=void 0;m.setAttribute("key",C+"_"+((D=(z=t)==null?void 0:z.length)!=null?D:0))}}d=_.n(d);for(v=d.next();!v.done;v=d.next())m=_.n(v.value),v=m.next().value,m=m.next().value,this.forwardKebabCaseProp(v,_.u(E8R,{slotContent:m}))};
I.prototype.connectedCallback=function(){var d=this;if(!Icm(this,P)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var v=_.n(this.attributes),m=v.next();!m.done;m=v.next())m=m.value,this.forwardKebabCaseProp(m.name,rGW(m));this.handleSlottedContent();x.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){d.afterFirstPatch()});
this.hasAttached=!0}};
I.prototype.attributeChangedCallback=function(d,v,m){this.isInert||this.isUpdating||this.isConnected||d!=="class"||this.initialClasses.push.apply(this.initialClasses,_.ju(m.split(" ")))};
I.prototype.disconnectedCallback=function(){k$R(this)};
I.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var d,v;OES(this,_.u(W,Object.assign({},this.props,{idomKey:(v=(d=this.__incrementalDOMData)==null?void 0:d.key)!=null?v:P})),!0)}catch(t){var m=t instanceof Error?t:new _.mW("Wiz rendering error");m.args||(m.args=[]);m.args.push("Error in deprecated web component wrapper");m.args.push(P.toLowerCase());_.G$(m);throw t;}finally{this.updateQueued=this.isUpdating=!1}}};
I.prototype.enqueueUpdate=function(){var d=this;return _.y(function(v){if(x.synchronous)return d.update(),v.return();if(d.updateQueued)return v.return();d.updateQueued=!0;return v.return(Promise.resolve().then(function(){d.update()}))})};
I.prototype.notifyPath=function(){x.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.N1.Object.defineProperties(I,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var Y=_.n(x.propNames),K=Y.next(),Z={};!K.done;Z={prop$jscomp$105:void 0},K=Y.next())Z.prop$jscomp$105=K.value,Object.defineProperty(I.prototype,Z.prop$jscomp$105,{set:function(d){return function(v){this.isInert||v===this.props[d.prop$jscomp$105]||(this.props[d.prop$jscomp$105]=v,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(Z)});
customElements.define(P,I)};
_.DNA=function(W,P){return _.Jb(W.entities,"markersEngagementPanelSyncEntity",P)};
Mho=function(W,P){return _.Jb(W.entities,"fantasyWinProbabilityEntity",P)};
$NG=function(W,P){return _.Jb(W.entities,"fantasyTeamEntity",P)};
w_x=function(W,P){return _.Jb(W.entities,"fantasyPlayerEntity",P)};
h4G=function(W,P){return _.Jb(W.entities,"booleanEntity",P)};
HZt=function(W,P){return _.Jb(W.entities,"qrCodeEntity",P)};
e4U=function(W){return _.Jb(W.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
cSW=function(){if(PF)return PF;if(window.lottie)return PF=Promise.resolve(window.lottie);var W=_.Ez(_.$$("LOTTIE_URL"));return W?PF=new Promise(function(P,x){var I=document.createElement("script");I.addEventListener("load",function(){P(lottie)});
I.addEventListener("error",function(O){var B="Lottie library failed to load.";O?O.message&&(B+=" Original description: "+O.message,_.Dw(O,B)):O=Error(B);_.ge(O);x(O)});
I.setAttribute("async","");_.c6(I,W);document.head.appendChild(I)}):Promise.reject(Error("rh"))};
aPm=function(){return PF?PF:cSW()};
bZU=function(){var W=e4U(_.Xe().getState());if(W&&W.animationStyle)switch(W.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return xC.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return xC.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return xC.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
kfU=function(W){if(W)switch(W){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.p("kevlar_use_wil_icons"))return(W=bZU())?W:xC.get("LIKE")}};
UNt=function(W){var P=kfU(W);if(P)return P;switch(W){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return xC.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return xC.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return xC.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return xC.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return xC.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return xC.get("NOTIFICATION_BELL")}};
fPx=function(W,P){if(!W||X_R)P=!1;else{if(W.closest){var x=!!kfU(P);x=_.$$("ID_TOKEN")&&x?!!W.closest("segmented-like-dislike-button-view-model"):!1}else x=!1;if(!x)if(W.closest)if(x=!_.$$("ID_TOKEN"),W=W.closest("ytd-subscription-notification-toggle-button-renderer-next"),x||!W)x=!1;else{var I;x=((I=W.data)==null?void 0:I.targetId)==="notification-bell"&&P!=="EXPAND_MORE"}else x=!1;P=x}return P};
Ntx=function(W){var P,x;return _.y(function(I){switch(I.nextAddress){case 1:return _.OT(I,2),_.S(I,fetch(W),4);case 4:return P=I.yieldResult,_.S(I,P.json(),5);case 5:return I.return(I.yieldResult);case 2:x=_.yn(I),_.ge(x),_.Kl(I)}})};
lPo=function(W,P){var x,I,O;return _.y(function(B){if(B.nextAddress==1)return(x=P?W.pathDarkTheme:W.path)?_.S(B,Promise.all([Ntx(x),cSW()]),2):B.return();I=B.yieldResult;O=I[0];IP.set(x,O);_.Kl(B)})};
_.O4=function(){var W=_.tH.apply(0,arguments);return function(){for(var P="",x=_.n(W),I=x.next();!I.done;I=x.next())if(I=I.value,typeof I==="function"&&(I=I()),I)if(typeof I==="string")P+=" "+I;else for(var O in I)if(I.hasOwnProperty(O)){var B=I[O];typeof B==="function"&&(B=B());B&&(P+=" "+O)}P=P.trim()||void 0;return _.zB(P)}};
_.Jd=function(W){var P;var x=W.data;var I=W.className;var O=W.animationName;var B=W.animationRef;var Y=(P=W.elRefForInterop)||_.fa(),K;_.C4(function(){var v;return void((v=K)==null?void 0:v.destroy())});
var Z;_.jj(function(){var v=_.zB(O);if(v!==Z){Z=v;var m=Object.assign({},{animationName:v,animationRef:_.zB(B)},_.zB(x));try{_.FY().resolve(Ttm)().then(function(z){var D;(D=K)==null||D.destroy();D=m.animationRef;var w=m.listeners;z=z.loadAnimation(Object.assign({},{container:Y.value},m.animationConfig));D&&(D.lottieEl=z);if(w)for(D=_.n(Object.entries(w)),w=D.next();!w.done;w=D.next()){var a=_.n(w.value);w=a.next().value;(a=a.next().value)&&z.addEventListener(w,a)}K=z})}catch(z){v=z;
var t="LottieComponent error.";v.message&&(t+=" Original description: "+v.message);_.Dw(v,t);_.ge(v);var C;((C=m.listeners)==null?0:C.error)&&m.listeners.error(v)}}});
var d=_.O4("ytLottieComponentHost",I);return _.u(TeR,{cond:function(){return!P},
then:function(){return _.u("lottie-component",{class:d,el:Y})}})};
rSt=function(W){var P=_.fa(),x=_.n(umm(W.data.animationConfig.name||"",W.className)),I=x.next().value;x=x.next().value;var O=GO(function(){return W.data.animationRef});
CX(function(){W.data.animationRef&&(W.data.animationRef.lottieEl=O==null?void 0:O.lottieEl)},[W.data.animationRef]);
return _.u("lottie-component",{skip:!0,class:_.O4(x,"ytLottieComponentHost"),el:P},_.u(_.Jd,{data:W.data,animationRef:O,animationName:I,elRefForInterop:P}))};
R47=function(W,P,x,I){function O(Y,K){if(P.value===K&&W!=null&&W.value){for(;W.value.firstChild;)W.value.removeChild(W.value.firstChild);W.value.classList.add("yt-spec-icon-shape");Y(W.value,I)}}
x=_.iZC(_.FY().resolve(_.xY),x);if(typeof x==="function")P.value=null,O(x,null);else{var B=new _.yE(x.then,x);P.value=B;B.then(function(Y){O(Y,B)})}};
qYR=function(W,P){var x=document.createElement("div"),I=_.jL(x,function(){return _.u(_.V,{cond:W,then:function(O){return _.u(Ftt,{data:O,options:P})}})});
return[x,I]};
_.BF=function(){for(var W=[],P=_.n(_.tH.apply(0,arguments)),x=P.next();!x.done;x=P.next())if(x=x.value)if(typeof x==="string")W.push(x);else{x=_.n(Object.entries(x));for(var I=x.next();!I.done;I=x.next()){var O=_.n(I.value);I=O.next().value;(O=O.next().value)&&W.push(I)}}return W.join(" ")};
xrm=function(W){var P=_.fa(),x=EV(),I=ff(W.character)||ff(W.previousCharacter);pX(function(){if(W.marginMultiplier){var O;(O=x.value)==null||O.cancel();I?(O=W.previousCharacter?Number(W.previousCharacter)+10:W.rollUp?0:30,W.shouldAnimate||(O-=LtU(W,O))):(O=W.rollUp?0:2,W.shouldAnimate||(O-=W.rollUp?-1:1));P.value.style.marginTop="-"+O*W.marginMultiplier+"px";W.shouldAnimate?x.value=WE7(P.value,W,O,I):P.value.style.display=W.character?"":"none"}});
return _.u("animated-rolling-character",{el:P,class:"animated-rolling-character-wiz"},fU(I,function(){for(var O=[],B=1;B<30;B++)O.push(_.u("div",null,B%10));return _.u(_.qS,null,_.u("div",null,"\u00a0"),O,_.u("div",null,"\u00a0"))},function(){return Pot(W.character)}))};
Pot=function(W){return _.u(_.qS,null,_.u("div",null,"\u00a0"),_.u(_.qS,null,fU(!W||_.Km(W),function(){return _.u("div",null,"\u00a0")},function(){return _.u("div",null,W)})),_.u("div",null,"\u00a0"))};
WE7=function(W,P,x,I){x=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(I?LtU(P,x):P.rollUp?-1:1)*P.marginMultiplier+"px)"}],IkW),document.timeline);P.character?(W.style.display="",x.onfinish=null):x.onfinish=function(){W.style.display="none"};
x.play();return x};
LtU=function(W,P){var x=Number(W.character)+10;if(W.previousCharacter)if(W.character){var I=Number(W.character),O=Number(W.previousCharacter);W=W.rollUp?O<I?x:x+10:O<I?x-10:x}else W=W.rollUp?30:0;else W=W.character==="0"?x:W.rollUp?x-10:x+10;return P-W};
_.nE=function(W,P){return function(x){var I={},O;for(O in x){var B=void 0,Y=void 0;((B=P)==null?0:(Y=B.callbacks)==null?0:Y[O])||(I[O]=x[O])}return _.u(QPR,null,function(){for(var K in I)x[K]=_.zB(I[K]);x.disableReactiveLogging=!0;return _.u(W,Object.assign({},x))})}};
_.YC=function(W){var P=EV(),x=EV();CX(function(){P.value=W.numberText;x.value=W.numberValue},[W.numberText]);
var I=W.fontSizeMultiplier?W.heightPx*W.fontSizeMultiplier:W.heightPx,O=zO(function(){if(W.numberText){var Y=W.numberText;var K=W.forceRollUp||!x.value||!W.numberValue||x.value<W.numberValue;var Z=!!W.shouldAnimate,d=P.value,v=[],m=0,t=0,C=(d?d.replace(/\D/g,"").length:0)-(Y?Y.replace(/\D/g,"").length:0);d=d?d.split(/(\d)/).filter(Boolean):[];for(Y=Y.split(/(\d)/).filter(Boolean);C<0;){var z=Y[t];v.push({character:z,rollUp:K,marginMultiplier:I,shouldAnimate:Z});t++;ff(z)&&C++}for(;m<C;)z=d[m],v.push({previousCharacter:z,
rollUp:K,marginMultiplier:I,shouldAnimate:Z}),m++,ff(z)||C++;for(;t<Y.length;)C=Y[t],z=d[m],ff(C)===ff(z)?(t++,m++):ff(C)?(m++,C=void 0):ff(z)&&(t++,z=void 0),v.push({character:C,previousCharacter:z,rollUp:K,marginMultiplier:I,shouldAnimate:Z});K=v}else K=[];return K},[W.numberText]),B=W.numberText?["height: "+I+"px;",
"line-height: "+W.heightPx+"px;"].join(" "):"";return _.u("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:B,dir:"ltr","aria-hidden":"true"},O.map(function(Y){return _.u(xrm,Object.assign({},Y))}))};
Onm=function(W){var P=W.nodeName;if(W.id)return P+="#"+W.id;if(W.classList)for(var x=_.n(W.classList),I=x.next();!I.done;I=x.next())P+="."+I.value;W.parentElement&&(P=Onm(W.parentElement)+" > "+P);return P};
Jko=function(W){return function(P){var x=U_C("event",{type:P.type});x&&P.target&&x.attr("nodepath",Onm(P.target));return Nlt(x,W,P)}};
_.yB=function(W){W&&Xpt("event")&&(W=Jko(W));return FTm(function(P){var x,I=(x=W)==null?void 0:x(P);return typeof I==="boolean"?I:!0})};
KE=function(W){return function(){return W()?W():void 0}};
B87=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
n2U=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Yut=function(W){var P=_.n(_.YV(W,void 0,"Clci1e")),x=P.next().value,I=P.next().value;x.current=W;return[x,function(O){return void I(x.current=O)}]};
_.Zh=function(W){var P=Xo(function(){return Yut(W())},{isEqual:function(x,I){return x[0].current===I[0].current}});
return[function(){return P()[0]()},
function(x){return void P()[1](x)}]};
_.oP=function(W){return function(){var P="",x;for(x in W){for(var I=W[x];typeof I==="function";)I=I();I!==void 0&&I!==null&&(P+="; "+x+": "+I)}return P.length>0?_.zB(P.slice(2)):_.zB()}};
ykS=function(W){switch(W){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"}};
o2G=function(W,P,x,I,O,B){var Y=KEt(W),K=Y.disabled,Z=Y.iconPosition,d=Y.style,v=Y.focused,m=function(){return!!z()&&Z()==="icon-only"},t=function(){return!!z()&&Z()==="icon-only-40"},C=function(){return!!z()&&Z()==="icon-with-label"},z=function(){return!!P||!(I==null||!I())};
return{type:function(){return d()==="call-to-action-inverse"?"text":d()==="overlay-dark"&&W().type!=="filled"&&W().type!=="tonal"?"tonal":W().type},
shouldFocus:function(){return(v()||(B==null?void 0:B()))&&!K()},
hasIconLeading:function(){return!!z()&&Z()==="leading"},
hasIconTrailing:function(){return!!z()&&Z()==="trailing"},
hasIconLeadingTrailing:function(){return!!z()&&!!(x||O!=null&&O())&&Z()==="leading-trailing"},
hasIconOnly:m,hasIconOnly40:t,hasIconWithLabel:C,iconButton:function(){return m()||t()||C()},
visiblyDisabled:function(){return(K()?"disabled":W().state)==="disabled"||K()},
overrideSmallSizeIcon:function(){return Zn7(W(),z())},
iconToRender:P?P:function(){return _.u(_.Sy,{icon:I,size:function(){return uh(W(),!0)},
active:function(){return W().toggled}})},
secondaryIconToRender:x?x:function(){return _.u(_.Sy,{icon:O,size:function(){return uh(W(),!0)},
active:function(){return W().toggled}})}}};
KEt=function(W){return{size:function(){return W().size},
style:function(){return W().style},
focused:function(){return W().focused},
disabled:function(){return W().disabled},
onTap:function(P){var x,I;return(I=(x=W()).onTap)==null?void 0:I.call(x,P)},
alignByText:function(){return W().alignByText},
aTagConfig:function(){return W().aTagConfig},
customColors:function(){return W().customColors},
segmentedPosition:function(){return W().segmentedPosition},
toggled:function(){return W().toggled},
toggleable:function(){return W().toggleable},
accessibilityLabel:function(){return W().accessibilityLabel},
onToggle:function(P){var x,I;return(I=(x=W()).onToggle)==null?void 0:I.call(x,P)},
iconPosition:function(){return W().iconPosition},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
disableTextEllipsis:function(){return W().disableTextEllipsis},
disableBackdropFilter:function(){return W().disableBackdropFilter},
tooltipText:function(){return W().tooltipText},
ariaHidden:function(){return W().ariaHidden},
tabIndex:function(){return W().tabIndex},
buttonText:function(){return W().buttonText},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}};
SuC=function(W){return W.style==="overlay-dark"?4:W.style==="overlay"?W.type==="filled"?4:3:W.type==="filled"||W.style==="call-to-action-inverse"||W.style==="mono-inverse"?2:1};
Zn7=function(W,P){P=(W.iconPosition==="icon-only"||W.iconPosition==="icon-only-40"||W.iconPosition==="icon-with-label")&&P;return!W.segmentedPosition&&P&&W.size==="S"};
uRS=function(){return!_.p("web_disable_backdrop_filter")};
uh=function(W,P){switch(W.size){case "XS":return 16;case "S":return Zn7(W,P)?24:16;default:return 24}};
drx=function(W){switch(W){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"}};
s0S=function(W){switch(W){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"}};
v2o=function(W){switch(W){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"}};
mrG=function(W){if(W.style==="overlay-dark"&&W.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Vwx=function(W){if(!W)return{};var P=W.color,x=W.backgroundColor;W=W.borderColor;var I="";P&&(I+="color: "+P+";");x&&(I+="background-color: "+x+";");W&&(I+="border-color: "+W+";");return{style:I}};
Q0R=function(W,P,x){var I=W.buttonText,O=W.formattedButtonText,B=W.formattedButtonTextLegacy,Y=W.animatedTextProps,K=W.style,Z=W.size,d=W.focused,v=W.disabled,m=W.onTap,t=W.alignByText,C=W.aTagConfig,z=W.customColors,D=W.segmentedPosition,w=W.toggled,a=W.toggleable,k=W.accessibilityLabel,T=W.onToggle,N=W.iconPosition,Io=W.oneOffCustomTextWrap,F=W.disableTextEllipsis,nm=W.disableBackdropFilter,pm=W.tooltipText,zR=W.ariaHidden,Am=W.tabIndex,kW=W.state,$W=W.type;K==="call-to-action-inverse"&&($W="text");
K==="overlay-dark"&&$W!=="filled"&&$W!=="tonal"&&($W="tonal");var ao=!!P&&N==="leading",e8=!!P&&N==="trailing",iC=!!P&&!!x&&N==="leading-trailing",hw=!!P&&N==="icon-only",dk=!!P&&N==="icon-only-40",Oc=!!P&&N==="icon-with-label",Bm=hw||dk||Oc;v&&(kW="disabled");var GA=kW==="disabled"||v;kW=Zn7(W,!!P);var KM={},PZ=(KM["yt-spec-button-shape-next"]=!0,KM[drx($W)]=!0,KM[s0S(K)]=!GA,KM["yt-spec-button-shape-next--disabled"]=!!GA,KM[v2o(Z)]=!0,KM["yt-spec-button-shape-next--focused"]=!!d&&!v,KM["yt-spec-button-shape-next--icon-trailing"]=
e8,KM["yt-spec-button-shape-next--icon-leading"]=ao,KM["yt-spec-button-shape-next--icon-leading-trailing"]=iC,KM["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=iC&&!(I||O),KM["yt-spec-button-shape-next--icon-button"]=hw||Oc,KM["yt-spec-button-shape-next--icon-only-default"]=dk,KM["yt-spec-button-shape-next--align-by-text"]=!!t,KM["yt-spec-button-shape-next--segmented-start"]=D==="start",KM["yt-spec-button-shape-next--segmented-end"]=D==="end",KM["yt-spec-button-shape-next--override-small-size-icon"]=
kW,KM["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!Io,KM["yt-spec-button-shape-next--disable-text-ellipsis"]=!!F,KM["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!nm&&uRS(),KM),j$=function(){if(Y)cW(_.YC)(Y);else if(B)B(N==="icon-with-label"||Io?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(O){var lp=N==="icon-with-label"||Io;XQC(Object.assign({},O,lp?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!lp})}else I&&TB(I)},YW=function(lp){m==null||m(lp);
a&&(T==null||T(lp))},QZ=C?twx:psS,ez=C?"aria-current$":"aria-pressed$",b3=function(){P&&(ao||iC||Bm)&&function(){dL({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){P()})}();
(I||O||B||Y)&&!Bm&&function(){dL({className:"yt-spec-button-shape-next__button-text-content"},function(){j$()})}();
e8&&function(){dL({className:"yt-spec-button-shape-next__icon"},function(){P()})}();
iC&&function(){dL({className:"yt-spec-button-shape-next__secondary-icon"},function(){x()})}();
v||cW(_.s4)({model:{color:SuC(W)}})},D3=function(){var lp={};
QZ(Object.assign({},(lp.className=_.BF(PZ),lp.onclick=C?void 0:YW,lp.disabled=v,lp["aria-disabled$"]=GA,lp.style=v&&C?"pointer-events:none":void 0,lp[ez]=a?!!w:void 0,lp["aria-label$"]=k,lp.title$=pm!=null?pm:"",lp["aria-hidden$"]=zR,lp.tabindex$=Am,lp),C,Vwx(z)),function(){b3()})};
Oc?(Z={},K=(Z["yt-spec-button-shape-with-label"]=!0,Z["yt-spec-button-shape-with-label--is-overlay"]=K==="overlay"||K==="overlay-dark",Z),j0C({className:_.BF(K)},function(){D3();dL({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},j$)})):D3()};
Com=function(W,P){if(!Np){var x;uGR(function(){return x=pFm(W,P)});
return x}return pFm(W,P)};
Akx=function(){var W=woS(Np||void 0,mxG);return W===$Rm||(W==null?void 0:W.name)==="\u0275NotFound"?void 0:W};
E28=function(W){var P=W.data;var x=W.icon;var I=W.secondaryIcon;var O=W.iconName;var B=W.secondaryIconName;Akx();var Y=P.size;W=P.style;var K=P.focused,Z=P.disabled,d=P.onTap,v=P.alignByText,m=P.aTagConfig,t=P.customColors,C=P.segmentedPosition,z=P.toggled,D=P.toggleable,w=P.accessibilityLabel,a=P.onToggle,k=P.iconPosition,T=P.oneOffCustomTextWrap,N=P.disableTextEllipsis,Io=P.disableBackdropFilter,F=P.tooltipText,nm=P.ariaHidden,pm=P.tabIndex,zR=!!x||!!O,Am=x,kW=I;if(O){var $W=uh(P,!0);Am=function(){return _.u(_.Sy,
{icon:O,size:$W,active:P.toggled})}}if(B){var ao=uh(P,!0);
kW=function(){return _.u(_.Sy,{icon:B,size:ao,active:P.toggled})}}var e8=P.state;
x=P.type;W==="call-to-action-inverse"&&(x="text");W==="overlay-dark"&&x!=="filled"&&x!=="tonal"&&(x="tonal");var iC=zR&&k==="leading",hw=zR&&k==="trailing",dk=zR&&(!!I||!!B)&&k==="leading-trailing";I=zR&&k==="icon-only";var Oc=zR&&k==="icon-only-40";k=zR&&k==="icon-with-label";var Bm=I||Oc||k;Z&&(e8="disabled");var GA=e8==="disabled"||Z;zR=Zn7(P,zR);e8={};var KM=_.BF((e8["yt-spec-button-shape-next"]=!0,e8[drx(x)]=!0,e8[s0S(W)]=!GA,e8["yt-spec-button-shape-next--disabled"]=!!GA,e8[v2o(Y)]=!0,e8["yt-spec-button-shape-next--focused"]=
!!K&&!Z,e8["yt-spec-button-shape-next--icon-trailing"]=hw,e8["yt-spec-button-shape-next--icon-leading"]=iC,e8["yt-spec-button-shape-next--icon-leading-trailing"]=dk,e8["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=dk&&!(P.buttonText||P.formattedButtonText),e8["yt-spec-button-shape-next--icon-button"]=I||k,e8["yt-spec-button-shape-next--icon-only-default"]=Oc,e8["yt-spec-button-shape-next--align-by-text"]=!!v,e8["yt-spec-button-shape-next--segmented-start"]=C==="start",e8["yt-spec-button-shape-next--segmented-end"]=
C==="end",e8["yt-spec-button-shape-next--override-small-size-icon"]=zR,e8["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!T,e8["yt-spec-button-shape-next--disable-text-ellipsis"]=!!N,e8["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Io&&uRS(),e8)),PZ=_.yB(function(j$){d==null||d(j$);D&&(a==null||a(j$))});
Y=function(){return m?_.u(_.vF,{aTagConfig:m,disabled:Z,className:KM,style:Vwx(t).style,title:F!=null?F:"",ariaLabel:w,ariaCurrent:D&&z},_.u(_.qS,null,zjA(P,iC,dk,hw,Bm,Am,kW))):_.u("button",{"on:click":PZ,class:KM,title:F!=null?F:"",style:Z&&m?"pointer-events:none":Vwx(t).style,disabled:Z,"aria-pressed":D?!!z:void 0,"aria-label":w?w:void 0,"aria-disabled":GA,"aria-hidden":nm,tabindex:pm},_.u(_.qS,null,zjA(P,iC,dk,hw,Bm,Am,kW)))};
K={};W=(K["yt-spec-button-shape-with-label"]=!0,K["yt-spec-button-shape-with-label--is-overlay"]=W==="overlay"||W==="overlay-dark",K);return _.u("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},k?_.u("label",{class:_.BF(W)},Y(),_.u("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},G2A(P))):Y())};
G2A=function(W){var P=W.formattedButtonText,x=W.animatedTextProps,I=W.buttonText,O=W.oneOffCustomTextWrap;W=W.iconPosition;return x?_.u(_.YC,{numberText:x.numberText,numberValue:x.numberValue,heightPx:x.heightPx,fontSizeMultiplier:x.fontSizeMultiplier,shouldAnimate:x.shouldAnimate,forceRollUp:x.forceRollUp}):P?(x=W==="icon-with-label"||O,_.u(_.mQ,{text:Object.assign({},P,x?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!x})):I};
zjA=function(W,P,x,I,O,B,Y){return _.u(_.qS,null,fU(B&&(P||x||O),function(){return _.u(_.qS,null,_.u("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},B==null?void 0:B()))}),fU((W.buttonText||W.formattedButtonText||W.animatedTextProps)&&!O,function(){return _.u(_.qS,null,_.u("div",{class:"yt-spec-button-shape-next__button-text-content"},G2A(W)))}),fU(I,function(){return _.u(_.qS,null,_.u("div",{class:"yt-spec-button-shape-next__icon"},B==null?void 0:B()))}),fU(x,function(){return _.u(_.qS,
null,_.u("div",{class:"yt-spec-button-shape-next__secondary-icon"},Y==null?void 0:Y()))}),fU(!W.disabled&&!0,function(){return _.u(_.s4,{model:{color:SuC(W)}})}))};
VB=function(W,P){_.zm(W,Object.assign({},P,{forceClickLogging:!0}))};
g2G=function(W,P,x,I){var O=void 0;return function(B){var Y=_.AF(x?W==null?void 0:W.onDisabledTap:W==null?void 0:W.onTap);if(Y){var K;O=(K=O)!=null?K:P==null?void 0:P.value;if(Y)if(_.p("web_button_vm_click_client_ve_killswitch"))VB(Y,Object.assign({},{form:{element:O,event:B}},void 0));else{var Z;K=Y==null?void 0:Y.clickTrackingParams;var d,v=W==null?void 0:(Z=W.loggingDirectives)==null?void 0:(d=Z.clientVeSpec)==null?void 0:d.uiType;Z=v&&!K?_.td(v):void 0;VB(Y,Object.assign({},{form:{element:O,event:B}},
{clickedVisualElement:Z}))}}I&&I(B)}};
Drd=function(W){switch(W){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"}};
Mwt=function(W){switch(W){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"}};
$rx=function(W){switch(W){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"}};
wsm=function(W){switch(W){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"}};
hjm=function(W,P){return _.Jb(W.entities,"engagementToolbarStateEntityPayload",P)};
ejU=function(W){(W=_.ox(W))&&_.HnS(W)};
_.HnS=function(W){var P=_.E_();P&&_.eI(P,W)};
ckG=function(W,P,x){_.W7(W,"yt-open-popup-action",[P,x||W])};
akS=function(W,P){var x=_.go(W,"endpoint"),I=_.go(W,"action");return(x=I?I:x)&&P&&(x=P.navigationEndpointPopupMap[x])&&(W=_.eL(x,W),(x=_.go(W,"renderer"))&&P.supportedPopups.hasOwnProperty(x))?{openPopupAction:{popupType:P.popupTypeMap[x],popup:W}}:null};
bnW=function(W,P,x,I){if(I){var O;x=x==null?void 0:(O=x.data)==null?void 0:O.contents;(O=x instanceof Array&&x.length?x[0]:x)&&(x=_.go(O,"renderer"))&&I.supportedPopups.hasOwnProperty(x)&&(P.stopPropagation(),ckG(W,{openPopupAction:{popupType:I.popupTypeMap[x],popup:O}}))}};
Xs7=function(W,P,x,I){I=I===void 0?!1:I;var O=k2U(P);if(O){O.href&&z1(O.href);var B=P.button;B=B!==void 0?B===0&&!pE(P):!pE(P);O.data&&B&&UrU(W,O,P,x,I)}};
UrU=function(W,P,x,I,O){O=O===void 0?!1:O;var B=_.Wi("pbj_navigate_limit",-1)===0;fkU(P);_.FY().resolve(_.Rl(cB));var Y=P.data;if(Object.keys(Y).length!==0)if(!_.p("unplugged_web_disable_actions_for_cec_endpoint")&&_.Q(Y,_.B7))_.p("endpoint_behavior_command_executor_fix_killswitch")||(x.preventDefault(),x.stopPropagation()),_.OL(W,[Y],W);else if(I=akS(Y,I))Y.loggingUrls&&Y.loggingUrls.forEach(function(Z){Z.baseUrl&&_.cP(Z.baseUrl)}),x.preventDefault(),x.stopPropagation(),ckG(W,I,P);
else{var K=N8d(0,P.data,x);if(W=P.getForm)W=W(),K.tempData=K.tempData||{},K.tempData=Object.assign({},K.tempData,W);W=_.c5(x);if(I=W.find(function(Z){return!!Z.visualElement}))K.createScreenConfig=K.createScreenConfig||{},K.createScreenConfig.clickedVisualElement=I.visualElement;
if(!B)if(x.preventDefault(),x.stopPropagation(),_.Q(Y,_.lkW)&&!O&&_.Ix.instance)_.Ix.instance.resolveCommand(Y,K);else if(_.p("kevlar_command_handler_formatted_string")&&!O&&_.Ix.instance&&T8t(Y))O=W.find(function(Z){return!!Z.is})||x.target,x={form:Object.assign({},K,{event:x,
element:O,originatingNode:P})},_.Ix.instance.resolveCommand(Y,x);else{Y=_.c5(x);x=[];for(O=0;O<Y.length;O++)(B=Y[O].is)&&x.push(B);hVo({parents:x.join(","),text:P.innerText},function(){_.Lf(P,"yt-navigate",K)})}}};
rkG=function(W){if(W=k2U(W))fkU(W),Smx(W.href)};
k2U=function(W){W=_.c5(W);for(var P,x=0;x<W.length;x++)if(P=W[x],P.tagName==="A"&&P.classList.contains("yt-simple-endpoint")){if(!P.data)break;return P}return null};
pE=function(W){return W.shiftKey||W.altKey||W.metaKey||W.ctrlKey};
inU=function(W,P){var x={itct:P.clickTrackingParams};_.p("kevlar_client_side_screens")&&(!_.Q(P,_.uS)||_.p("kevlar_exclude_endpoint_killswitch"))&&(x.endpoint=JSON.stringify(P));_.p("enable_unknown_lact_fix_on_html5")&&_.FY().resolve(_.Rl(_.jy))&&(x.lact=_.LD());KIA(x);_.lO(W,x)};
fkU=function(W){W.href&&Object.keys(W.data).length!==0&&inU(W.href,W.data)};
T8t=function(W){for(var P=_.n(Rj8),x=P.next();!x.done;x=P.next())if(W[x.value])return!1;return!0};
_.QB=function(W,P){if(P){var x={};FEd.forEach(function(I){I=quG(P,I,"--yt-lightsource-");Object.assign(x,I)});
LES.forEach(function(I){I=quG(P,I,"--yt-basic-");Object.assign(x,I)});
_.qa(W,x)}};
quG=function(W,P,x){var I={};I[x+_.Kf(P)]=W&&W[P]?_.Qy(W[P]):"";return I};
_.Ad=function(W,P,x){CE[W]||(CE[W]={});CE[W][P]=x};
_.z4=function(W){CE[W]||(CE[W]={});return CE[W]};
WgW=function(W){if(!W)return{};var P=W.foregroundTitleColor,x=W.backgroundColor;W=W.borderColor;var I="text";W?I="outline":x&&(I="filled");return{type:I,customColors:{color:P?_.Qy(P):void 0,backgroundColor:x?_.Qy(x):void 0,borderColor:W?_.Qy(W):void 0}}};
JIR=function(W){var P=W.renderer;var x=W.element;var I=W.commandController;var O=W.onTapCallback;var B=W.skipCommandHandling;var Y=W.overrides;var K=W.forceIcon;var Z=W.forceModernIconButton;var d=W.forceDisabled;var v=W.isSubscribe===void 0?!1:W.isSubscribe;var m=W.isPressed===void 0?!1:W.isPressed;var t=W.useButtonSize===void 0?!1:W.useButtonSize;W=PHG(P);v&&(W.style="mono",W.type="filled");K=!P.icon||!K&&P.text?P.icon?P.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:Z?"icon-only":"icon-only-40";K==="icon-only-40"&&(W.type="text");var C;Z=Object;v=Z.assign;t=x6U(P,t);m=!!P.isSelected||!_.p("web_propagate_is_pressed_killswitch")&&!!m;var z=P.isSelected!==void 0;d=d===void 0?P.isDisabled:d;var D=P.text?_.pt(P.text):void 0;var w,a,k,T=((w=P.accessibilityData)==null?void 0:(a=w.accessibilityData)==null?void 0:a.label)||((k=P.accessibility)==null?void 0:k.label);w=T?T:_.kz(P.text);x=Ipo(P,x,I,O,B);I=Oe7(P);I!=null&&I.length?(I=_.Gm({innertubeCommand:gmW(I),
forceNewState:!0}),I=E2(I)?I:void 0):I=void 0;return v.call(Z,{},W,t,{iconPosition:K},Y,{focused:!1,toggled:m,toggleable:z,disabled:d,formattedButtonText:D,accessibilityLabel:w,onTap:x,aTagConfig:I},WgW((C=P.colorData)==null?void 0:C.basicColorPaletteData),{oneOffCustomTextWrap:P.oneOffCustomTextWrap})};
Ipo=function(W,P,x,I,O){return function(B){var Y=Oe7(W);I(Y,B);if(!O){Y=_.n(Y);for(var K=Y.next();!K.done;K=Y.next())VB(K.value,{form:{element:P,event:B},commandController:x})}}};
Oe7=function(W){var P=[];W.command&&P.push(W.command);W.serviceEndpoint&&P.push(W.serviceEndpoint);W.navigationEndpoint&&P.push(W.navigationEndpoint);return P};
x6U=function(W,P){if(P)switch(W.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(W.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
PHG=function(W){switch(W.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.G4=function(W){return _.Sj(function(){BBm()();return ed(W)},void 0,"Icv7j")};
E4=function(W,P){return _.Jb(W.entities,"likeStatusEntity",P)};
BV8=function(W,P){return _.Jb(W.entities,"likeCountEntity",P)};
_.nI8=function(W,P){return _.Jb(W.entities,"stringEntity",P)};
YCU=function(W,P){if(!W)return!1;var x,I=(x=_.Q(W,_.Y6))==null?void 0:x.signal;if(I&&P.signalEndpointMap)return!!P.signalEndpointMap[I];var O;if((x=(O=_.Q(W,_.gL))==null?void 0:O.request)&&P.continuationEndpointMap)return!!P.continuationEndpointMap[x];for(var B in W)if(P.commandEndpointMap[B])return!0;return!1};
yIS=function(W,P){if(P.streamingEndpointMap)for(var x in W)if(P.streamingEndpointMap[x]&&(W=P.streamingEndpointMap[x]))return W()};
KgC=function(W,P){var x,I=(x=_.Q(W,_.Y6))==null?void 0:x.signal;if(I&&P.signalEndpointMap&&(x=P.signalEndpointMap[I]))return x();var O;if((x=(O=_.Q(W,_.gL))==null?void 0:O.request)&&P.continuationEndpointMap&&(O=P.continuationEndpointMap[x]))return O();for(var B in W)if(P.commandEndpointMap[B]&&(W=P.commandEndpointMap[B]))return W()};
ZeU=function(W){var P={"Content-Type":"application/json"};_.$$("EOM_VISITOR_DATA")?P["X-Goog-EOM-Visitor-Id"]=_.$$("EOM_VISITOR_DATA"):_.$$("VISITOR_DATA")&&(P["X-Goog-Visitor-Id"]=_.$$("VISITOR_DATA"));P["X-Youtube-Bootstrap-Logged-In"]=_.$$("LOGGED_IN",!1);_.$$("DEBUG_SETTINGS_METADATA")&&(P["X-Debug-Settings-Metadata"]=_.$$("DEBUG_SETTINGS_METADATA"));W!=="cors"&&((W=_.$$("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(P["X-Youtube-Client-Name"]=W),(W=_.$$("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(P["X-Youtube-Client-Version"]=
W),(W=_.$$("CHROME_CONNECTED_HEADER"))&&(P["X-Youtube-Chrome-Connected"]=W),(W=_.$$("DOMAIN_ADMIN_STATE"))&&(P["X-Youtube-Domain-Admin-State"]=W),_.wo("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(W=_.$$("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(P["X-YouTube-Lava-Device-Context"]=W));return P};
oIC=function(W,P){P.watchNextResponse||P.reelItemWatchResponse?P.watchNextResponse?W.content=P.watchNextResponse:W.content=P.reelItemWatchResponse:P.playerResponse?W.player=P.playerResponse:P.reelWatchSequenceResponse&&(W.reelSequence=P.reelWatchSequenceResponse)};
Dh=function(W){return function(){return new W}};
Mx=function(W){var P=_.FY();return function(){return P.resolve(W)}};
_.$C=function(W){if(!W)return null;for(var P=[],x=0;x<W.textSegments.length;x++){var I=W.textSegments[x];I.text?P.push(I):I.emojiId&&P.push({emoji_id:I.emojiId})}return{text_segments:P}};
vIR=function(W,P,x,I,O,B,Y){B=B===void 0?[]:B;var K=new _.wL;K.endpoint=x;if(!x)return _.EA(new _.mW("handle undefined endpoint",P.tagName)),K;var Z=f1R(x);Z.length&&(_.OL(W,Z,P,I),K.actions=Z);x.loggingUrls&&x.loggingUrls.forEach(function(v){v.baseUrl&&aD(v.baseUrl,v.attributionSrcMode)});
Z=!_.p("web_skip_impression_click_killswitch")&&I&&I.impression;if(x.clickTrackingParams&&!SC8(x)&&!urG(P)&&!Z&&(Z=_.YY(),!_.hd(Z,P))){var d=P.getScreenLayer&&P.getScreenLayer();d?Z.clickCommand(x,null,d):Z.clickCommand(x,null)}Z=!1;for(d=0;d<B.length;d++)if((0,B[d])(P,x,I)){Z=!0;break}!Z&&d6S(x)&&(K.ajaxPromise=sJt(W,P,x,I,O,Y));return K};
urG=function(W){var P;return(W=(P=W.data)==null?void 0:P.navigationEndpoint)&&!!W.clickTrackingParams};
SC8=function(W){var P=_.Q(W,_.Y6);if(P&&(P=P.signal)&&m6U.indexOf(P)>=0)return!0;for(var x in W)if(VcA.indexOf(x)>=0)return!0;return!1};
d6S=function(W){var P;if(((P=_.Q(W,_.Y6))==null?void 0:P.signal)==="CLIENT_SIGNAL")return!1;for(var x in W)if(tcm.indexOf(x)>=0)return!1;W=Object.keys(W);return W.length===1&&W[0]==="loggingUrls"?!1:!0};
EIU=function(W,P,x,I,O,B,Y){var K=_.HF.instance;if(K&&_.ey(K,I))var Z=_.cF(K,I,O).then(function(v){return(v==null?0:v.data)?v:{data:v}});
else Z=W.requestDataForServiceEndpoint(I,O),_.Q(I,pl7)||_.Q(I,jJd)||_.Q(I,_.QJU)||_.Q(I,CHt)||_.ge(new _.mW("No RequestBuilder for endpoint",I));var d=_.aP();d.promise.thenCatch(function(){var v=_.go(I,"action")||_.go(I,"command")||_.go(I,"endpoint");v&&(v=I[v],v.hasOwnProperty("onFailureAction")?_.OL(P,[v.onFailureAction],x):v.hasOwnProperty("onFailureCommand")&&_.OL(P,v.onFailureCommand,x));Z.cancel("Resolver promise rejected")});
Z.then(function(v){if(v){var m=v.error;if(m){if(B&&B.onServerError)B.onServerError(I,v);d.reject(new _.mW("Response error",I,m))}else if(v=v.data)if(m=v.error){if(B&&B.onServerError)B.onServerError(I,v);d.reject(new _.mW("Returned error",I,m))}else{AIx(P,x,v,I);zmS(v);if(m=XWG(v))for(var t=_.n(m),C=t.next();!C.done;C=t.next()){C=C.value;var z=_.FY().resolve(_.Rl(GLm))||bh;if(!_.HF.instance||!z.some(function(w){return!!_.Q(I,w)})||_.p("kevlar_response_processor_allowlist_killswitch")){var D=z=void 0;
((D=_.Q((z=C)==null?void 0:z.commandMetadata,_.rU))==null?0:D.sendPost)?_.Iu(P,[C]):_.OL(P,[C],x)}}(t=_.Q(v==null?void 0:v.frameworkUpdates,kC))&&Y&&Y(t);if(B&&B.onSuccess)B.onSuccess(I,v);d.resolve(new _.U4(v,m))}}else d.reject(new _.mW("Invalid service endpoint provided",I))},function(v){d.reject(v)});
return d.promise};
zmS=function(W){var P;(W=(P=_.Q(W==null?void 0:W.onResponseReceivedCommand,_.gIW))==null?void 0:P.continuationItems)&&(W==null?void 0:W.length)===1&&_.Q(W[0],D6C)&&_.CK("so_r",void 0,"search_overview_answer")};
sJt=function(W,P,x,I,O,B){var Y;return(Y=P.getNetworkManager&&P.getNetworkManager()?P.getNetworkManager():_.FY().resolve(_.Rl(_.v5)))?EIU(Y,W,P,x,I,O,B):_.s2("No network manager.")};
AIx=function(W,P,x,I){if(x=x.trackingParams||x.loggingDirectives&&x.loggingDirectives.trackingParams){var O;(_.Q(I,Mco)||_.Q(I,$6t)||_.Q(I,wlx))&&I.clickTrackingParams?O=_.ox(I.clickTrackingParams):_.p("web_graft_to_parent_command")&&I.clickTrackingParams&&(O=_.ox(I.clickTrackingParams));var B;I=(B=P.getScreenLayer)==null?void 0:B.call(P);P=_.YY().graftServerVe(x,O,I);_.P7(W,"yt-store-grafted-ve-action",[P])}};
_.hmR=function(W){var P=new Image;return new _.yE(function(x,I){P.addEventListener("load",function(){x()});
P.addEventListener("error",function(){I()});
P.src=W})};
He8=function(W){return!!W};
emR=function(W){return!!W};
cIG=function(W,P,x){var I=W.rowIndex;I!==void 0&&_.P7(W.hostElement,"yt-section-reactive-dismissal",[I,P,x])};
_.Nx=function(W,P,x){W=_.n(W);for(var I=W.next();!I.done;I=W.next()){I=I.value;if(I===P)break;for(var O=_.n(x),B=O.next();!B.done;B=O.next())if(B=B.value,I.tagName===B||!_.p("web_event_button_role_check_killswitch")&&I.role==="button"&&B==="BUTTON")return!0}return!1};
_.lh=function(W,P,x){W=_.n(W);for(var I=W.next();!I.done;I=W.next()){I=I.value;if(I===P)break;for(var O=_.n(x),B=O.next();!B.done;B=O.next())if(I.id===B.value)return!0}return!1};
T4=function(W,P){if(!W&&!P)return"medium";W=Math.max(W||0,P||0);return W>=256?"large":W>=96?"medium":"small"};
apC=function(W){switch(W){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.RP=function(){var W=_.FY().resolve(_.Rl(_.rL));return W?(W=W.getCurrentPage())?_.ih(W):null:null};
_.F_=function(){var W=_.RP();if(!W){var P=_.FY().resolve(_.Rl(_.rL)),x=P?typeof P:"no page manager";P=P?P.getCurrentPage():null;x=new _.mW("Player is missing when requested.",x,P?P.tagName:"no page");_.G$(x)}return W};
_.ih=function(W){return W&&W.getPlayer?W.getPlayer():null};
beS=function(W,P){W={args:{raw_player_response:W}};P&&(W.args=Object.assign({},W.args,P));return W};
kLo=function(W){if(W.args){if(W.args.raw_player_response)return W.args.raw_player_response;if(W.args.player_response)return JSON.parse(W.args.player_response)}};
_.U6o=function(W,P){var x={url:"/watch?v="+W.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};W.playlistId&&(x.url+="&list="+W.playlistId);W.playerParams&&(x.url+="&pp="+W.playerParams);W={watchEndpoint:W,commandMetadata:{webCommandMetadata:x}};P&&(W.clickTrackingParams=P);return W};
fpm=function(){return XlU||!!_.eL("yt.player.Application")};
lpW=function(){return NVA||!!document.querySelector("link#player-css")};
rIA=function(){function W(){XlU=!0;TVt.resolve()}
var P,x;return _.y(function(I){TVt||(TVt=new _.If,fpm()?W():(P=document.createElement("script"),P.addEventListener("load",W),x=_.tz(_.$$("PLAYER_JS_URL")),_.c6(P,x),document.head.appendChild(P)));return I.return(TVt.promise)})};
RmG=function(){function W(){NVA=!0;ie7.resolve()}
if(!ie7)if(ie7=new _.If,lpW())W();else{var P=document.createElement("link");P.id="player-css";P.addEventListener("load",W);var x=_.tz(_.$$("PLAYER_CSS_URL"));_.kH(P,x,"stylesheet");document.head.appendChild(P)}return ie7.promise};
FgR=function(){return fpm()&&lpW()?Promise.resolve([]):Promise.all([rIA(),RmG()])};
qCS=function(W,P,x){var I={args:{}};W&&(I.args.raw_player_response=W);P&&(I.args.raw_watch_next_response=P);x&&(I.args=Object.assign({},I.args,x));return I};
x8G=function(W,P,x){var I=!1;I=I===void 0?!0:I;W=typeof W==="string"?_.qx(document,W):W;var O=LgU+"_"+_.nM(W),B=W5A[O];if(B&&I)return Puo(P,x)?B.api.loadVideoByPlayerVars(P.args||null):B.loadNewVideoConfig(P),B.api;B=new LE(W,O,P,x,void 0);W5A[O]=B;B.addOnDisposeCallback(function(){delete W5A[B.getId()]});
return B.api};
Puo=function(W,P){return P&&P.serializedExperimentFlags?P.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):W&&W.args&&W.args.fflags?W.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Ijm=function(){var W=new _.If;W.resolved=!1;var P=W.resolve;W.resolve=function(x){W.resolved=!0;P(x)};
return W};
JXR=function(W){var P={};O3x().install((P.document_disposed={callback:W},P))};
Wq=function(W,P){if(!W&&Math.random()<=_.Wi("kevlar_unified_player_logging_threshold")){W=Error("th`"+(P?P:"Unspecified error"));if(_.p("kevlar_unified_player_throw_errors"))throw W;_.ge(W)}};
_.BuG=function(){var W=_.eL("ytDebugData.callbacks");W||(W={},_.lA("ytDebugData.callbacks",W));return W};
YRU=function(W,P){var x=_.BuG();if(_.p("web_dd_iu")||nGR.includes(W))x[W]=P};
yXx=function(){return _.y(function(W){return W.return({isLeader:_.HwR(_.Xe().getState()),c:_.$$("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.$$("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
K58=function(){var W;_.y(function(P){if(P.nextAddress==1)return YRU("APP_STATE",yXx),_.S(P,_.FY().resolve(_.Pq),2);W=P.yieldResult;YRU("PI",function(){return _.y(function(x){return x.return(W.getVideoStats())})});
_.Kl(P)})};
Z3m=function(W){var P=_.NV(_.en(_.xW.location.href));W=_.NV(_.en(W));return _.p("kevlar_clear_non_displayable_url_params")?P==xs(W):xs(P)==xs(W)};
xs=function(W){var P=_.oGU(W);W=W.slice(0);var x=["frags"];_.p("kevlar_hide_pp_url_param")&&x.push("pp");_.p("kevlar_hide_time_continue_url_param")&&x.push("time_continue");x=_.n(x);for(var I=x.next();!I.done;I=x.next())I=I.value,W=_.T7(_.NV(W),I);return _.NV(W)+(P?"#"+P:"")};
IS=function(W,P){P=Number(P)*1E3;var x=Math.round((0,_.iA)()),I=x.toString();W={innertubeResponse:W,serverDateTimestampMs:I,lastModifiedTimestampMs:I,expireTimestampMs:(x+P).toString()};if(P=_.$$("INNERTUBE_CONTEXT_CLIENT_NAME"))W.clientName=P;return W};
uXR=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++SRm};
_.d8m=function(){var W=_.G7(),P=_.E_();P&&W&&_.au(P,[W],!0)};
vG8=function(W){return W&&scG.some(function(P){return W.includes(P)})};
QcR=function(W){var P=_.Q(W,_.aR);if(!P)return!1;var x=P.url,I=P.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!x)return _.G$(Error("yh")),!1;if(P.target==="TARGET_NEW_WINDOW"){var O={};_.p("resolve_url_parent_tracking_params")&&(!_.lP(x)||TO(window.location.href,x))&&(O={endpoint:W,itct:W.clickTrackingParams});KIA(O);W=null;try{if(I){a:{var B=x,Y=O;I=I===void 0?!1:I;Y&&_.lO(B,Y);var K=_.my(B),Z=_.u5(K);B!=Z&&_.co(Error("Yf`"+B));B=Z;try{if(I){Z=B;Z=CSG(Z);z1(Z);W=_.ME(window,Z,"_blank",
"attributionsrc");break a}}catch(t){_.hQ(t)}z1(B);W=_.ME(window,K,"_blank")}m8m(_.FY().resolve(VGt),W,x);return!0}}catch(t){_.G$(t)}_.lO(x,O);O={target:"_blank",noopener:_.p("set_window_noopener_ks")&&!P.allowOpener};P=window;K=S5(x)?x:_.my(typeof x.href!="undefined"?x.href:String(x));W=self.crossOriginIsolated!==void 0;B="strict-origin-when-cross-origin";window.Request&&(B=(new Request("/")).referrerPolicy);Z=O.noreferrer;if(W&&Z&&B==="unsafe-url")throw Error("qe");B=Z&&!W;Z=O.target||x.target;I=
[];Y=[];var d=!1;for(m in O){var v=O[m];switch(m){case "width":case "height":case "top":case "left":I.push(m+"="+v);break;case "target":break;case "noopener":case "noreferrer":v?Y.push(m):(d=!0,Y.push(m+"=false"));break;case "attributionsrc":I.push(m+(v?"="+v:""));break;default:I.push(m+"="+(v?1:0))}}var m=Z!==void 0&&!["_blank","_self","_top","_parent",""].includes(Z);m=gS()&&m;tGm&&W&&I.length===0&&Y.length>0&&!m&&!d?(Y.length===2&&(Y=["noreferrer"]),_.ME(P,K,Z,Y[0]),W=pkt()):(m=I.join(","),_.Hd()&&
P.navigator&&P.navigator.standalone&&Z&&Z!="_self"?(m=_.ZV("A"),AH(m,K),m.target=Z,B&&(m.rel="noreferrer"),((O=O.attributionsrc)||O==="")&&m.setAttribute("attributionsrc",O),O=document.createEvent("MouseEvent"),O.initMouseEvent("click",!0,!0,P,1),m.dispatchEvent(O),m=pkt()):B?(m=_.ME(P,"",Z,m),P=_.u5(K),m&&(m.opener=null,P===""&&(P="javascript:''"),P='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Oa(P)+'">',P=GI(P),(O=m.document)&&O.write&&(O.write(E0(P)),
O.close()))):((m=_.ME(P,K,Z,m))&&O.noopener&&(m.opener=null),m&&O.noreferrer&&(m.opener=null)),W=m);m8m(_.FY().resolve(VGt),W,x);return!0}m=_.YO(x);m=vG8(m)||x==="https://studio.youtube.com/";P=!(!_.lP(x)||TO(window.location.href,x));O=x.indexOf("disable_polymer=1")>=0;if(P||O||m)z1(x),pK(),_.G1(x,void 0,void 0,window.top,jcm);else return _.ge(new _.mW("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",W)),!1;return!0};
_.zDd=function(W,P){P=P===void 0?0:P;if(!(_.Q(W,CuU)||_.Q(W,AXC)||_.Q(W,_.aR)&&_.Q(W,_.aR).url))return!1;var x,I=(x=_.Q(W,_.aR))==null?void 0:x.url;x=I?{externalLinkData:{url:I}}:null;return _.YY().clickCommand(W,x,P)};
Jp=function(W,P){return _.Jb(W.entities,"subscriptionStateEntity",P)};
G0G=function(W,P){return _.Jb(W.entities,"subscriptionNotificationStateEntity",P)};
EGo=function(W,P){return _.Jb(W.entities,"upcomingEventReminderStateEntity",P)};
gGS=function(W,P){return _.Jb(W.entities,"engagementToolbarSurfaceEntityPayload",P)};
D8W=function(W,P){return _.Jb(W.entities,"triStateButtonStateEntityPayload",P)};
MGR=function(W,P){return _.Jb(W.entities,"commerceCartCheckoutButtonEntity",P)};
_.$8C=function(W,P){return _.Jb(W.entities,"playlistLoopStateEntity",P)};
wkm=function(W,P){return _.Jb(W.entities,"commandEntity",P)};
H3o=function(W,P,x,I,O){O=O===void 0?{}:O;return function(B){var Y,K;var Z=((Y=W.loggingDirectives)==null?0:(K=Y.clientVeSpec)==null?0:K.uiType)?_.td(W.loggingDirectives.clientVeSpec.uiType):void 0;O.clickedVisualElement||(O.clickedVisualElement=Z);Z=hDA(W,P);x(Z,B);Z=_.n(Z);for(Y=Z.next();!Y.done;Y=Z.next()){Y=Y.value;K=I;var d=B,v=O;v.form?v.form.event=d:v.form={element:K,event:d};VB(Y,v)}}};
hDA=function(W,P){var x=[];P?(W.toggledCommand&&x.push(W.toggledCommand),W.toggledServiceEndpoint&&x.push(W.toggledServiceEndpoint)):(W.defaultCommand&&x.push(W.defaultCommand),W.defaultServiceEndpoint&&x.push(W.defaultServiceEndpoint),W.defaultNavigationEndpoint&&x.push(W.defaultNavigationEndpoint));return x};
eDR=function(W,P){var x=W.toggledStyle||W.style,I;switch((I=P?x:W.style)==null?void 0:I.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"}}};
cXo=function(W,P){P=P.uniqueId+"-border";var x,I;var O=(I=(x=_.FY().resolve(_.Rl(_.hF)))==null?void 0:x())!=null?I:!1;return{animationRef:W,animationConfig:{name:P,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(O?"dark":"light")+"_v2.json"}}};
_.Bq=function(){return _.y(function(W){return W.nextAddress==1?_.S(W,_.FY().resolve(_.Pq),2):W.return(_.FY().resolve(ajx)())})};
_.nC=function(){return _.FY().resolve(ajx)()};
_.Ys=function(){return GO(function(){return{lottieEl:void 0}})};
b3x=function(W,P){return W.startsWith(P.uniqueId)};
k0G=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,_.Bq(),2);P=I.yieldResult;if((x=P)==null||!x.addEventListener)return y2(),I.return();P.addEventListener("onCueRangeEnter",W);_.Kl(I)})};
U8d=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,_.Bq(),2);P=I.yieldResult;if((x=P)==null||!x.removeEventListener)return y2(),I.return();P.removeEventListener("onCueRangeEnter",W);_.Kl(I)})};
XkR=function(W){var P,x,I,O,B;_.y(function(Y){if(Y.nextAddress==1)return _.S(Y,_.Bq(),2);P=Y.yieldResult;if((x=P)==null||!x.addCueRange)return y2(),Y.return();I=_.n(W.timings);for(O=I.next();!O.done;O=I.next())B=O.value,P.addCueRange(W.uniqueId+"-"+B,B/1E3,(B+100)/1E3);_.Kl(Y)})};
fjt=function(W){var P,x,I,O,B;_.y(function(Y){if(Y.nextAddress==1)return _.S(Y,_.Bq(),2);P=Y.yieldResult;if((x=P)==null||!x.removeCueRange)return y2(),Y.return();I=_.n(W.timings);for(O=I.next();!O.done;O=I.next())B=O.value,P.removeCueRange(W.uniqueId+"-"+B);_.Kl(Y)})};
Nuo=function(){var W,P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,_.Bq(),2);W=I.yieldResult;if((P=W)==null||!P.getPlayerState)return y2(),I.return();x=W.getPlayerState();return I.return(x===2)})};
y2=function(){_.ge(new _.mW("Smartimation player does not exist or is corrupted"))};
i3d=function(W){var P=ljt;TuA.push(W);rXo||(P(function(){for(var x=_.n(TuA),I=x.next();!I.done;I=x.next())I=I.value,I();TuA.length=0;rXo=!1}),rXo=!0)};
ljt=function(W){Promise.resolve().then(W)};
KC=function(W){W=_.n(sPW(W));var P=W.next().value,x=W.next().value,I=!1;_.AQ(function(){return function(){I=!0}});
return[P,function(O){i3d(function(){I&&!_.p("cow_prevent_state_setter_after_cleanup_killswitch")||x(O)})}]};
F5m=function(W){function P(d){var v;return _.y(function(m){if(m.nextAddress==1)return(v=!b3x(d,I)||!I.enabled)?m.jumpTo(2):_.S(m,Nuo(),3);m.nextAddress!=2&&(v=m.yieldResult);if(v)return m.return();x();setTimeout(function(){Z(!1)},1500);
_.Kl(m)})}
function x(){setTimeout(function(){Z(!0);var d;(d=B.lottieEl)==null||d.goToAndPlay(0)},150)}
var I=W.settings;var O=W.className;W=W.children;var B=_.Ys(),Y=_.n(KC(!1)),K=Y.next().value,Z=Y.next().value;I||(I={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.ge(new _.mW("Smartimation Settings is undefined")));CX(function(){if(I.experimentEnabled)return I.enabled?k0G(P):(Z(!1),U8d(P)),function(){U8d(P)}},[I.enabled,
I.experimentEnabled]);CX(function(){if(I.experimentEnabled)return XkR(I),function(){fjt(I)}},[I.timings.join("")]);
return _.u("yt-smartimation",{class:RDG(O,K,I)},fU(I.experimentEnabled,function(){return _.u("div",{class:"smartimation__border"},_.u(rSt,{className:"smartimation__border-gradient",data:cXo(B,I)}))}),_.u("div",{class:"smartimation__content"},W))};
RDG=function(W,P,x){var I=["smartimation"];W&&I.push(W);x.experimentEnabled&&I.push("smartimation--experiment-enabled");P&&I.push("smartimation--active-border");try{var O;var B=(O=window.CSS)!=null&&O.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(Y){_.ge(new _.mW("Smartimation CSS.supports threw an error")),B=!1}B&&I.push("smartimation--enable-masking");
return I.join(" ")};
qRS=function(){try{var W;return(W=window.CSS)!=null&&W.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(P){return _.ge(new _.mW("Smartimation CSS.supports threw an error")),!1}};
JAU=function(W,P,x,I,O){var B=W.playlistId?L5R:WMd;P=P();x=x();O=!!W.videoId&&O()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.ux(P))return P1C({data:W,actionType:B,disabled:O},x);if(W.videoId&&I())return xwW({data:W,actionType:B,disabled:O});switch(P){case "TRANSFER_STATE_UNKNOWN":return xwW({data:W,actionType:B,disabled:O});case "TRANSFER_STATE_FAILED":return W.videoId?IUU({data:W,actionType:B,disabled:O}):OFo({data:W,actionType:B,disabled:O});case "TRANSFER_STATE_COMPLETE":return OFo({data:W,
actionType:B,disabled:O});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return P1C({data:W,actionType:B,disabled:O},x);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return W.videoId?IUU({data:W,actionType:B,disabled:O}):xwW({data:W,actionType:B,disabled:O});default:return xwW({data:W,actionType:B,disabled:O})}};
Bj8=function(W,P){var x=W.onTapCommand,I=_.AF(x);if(W.videoId&&_.Q(I,_.ZZ))return _.Q(I,_.ZZ).action=P,x;W.playlistId&&_.Q(I,_.SK)&&(_.Q(I,_.SK).action=P);return x};
xwW=function(W){var P=W.data;var x=W.actionType;W=W.disabled;return{text:neR,iconType:"OFFLINE_DOWNLOAD",onTap:Bj8(P,x.ACTION_ADD),disabled:W}};
P1C=function(W,P){var x=W.data;var I=W.actionType;W=W.disabled;var O="OFFLINE_DOWNLOAD";P>=0&&P<=.1?O="OFFLINE_DOWNLOADING_ZERO":P>.1&&P<=.3?O="OFFLINE_DOWNLOADING_TWENTY":P>.3&&P<=.5?O="OFFLINE_DOWNLOADING_FORTY":P>.5&&P<=.7?O="OFFLINE_DOWNLOADING_SIXTY":P>.7&&P<1?O="OFFLINE_DOWNLOADING_EIGHTY":P===1&&(O="OFFLINE_PIN");return{text:YbW,iconType:O,onTap:Bj8(x,I.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
OFo=function(W){var P=W.data;var x=W.actionType;W=W.disabled;return{text:yAA,iconType:"OFFLINE_PIN",onTap:Bj8(P,x.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
IUU=function(W){var P=W.data;var x=W.actionType;W=W.disabled;return{text:KMU,iconType:"OFFLINE_DOWNLOAD",onTap:Bj8(P,x.ACTION_RETRY),disabled:W}};
ZFm=function(){var W=_.n(KC(!1)),P=W.next().value,x=W.next().value;return function(){x(!P)}};
oem=function(W){return GO(function(){return{value:W}})};
SbA=function(W,P){var x=oem(W),I=oem(P);CX(function(){x.value=W},[W]);
CX(function(){I.value=P},P&&P.length>=1?P:[void 0]);
var O=GO(function(){return{value:void 0}});
if(W!==x.value||I.value!==P||O.value===void 0)O.value=ed(W,P);var B=ZFm();_.AQ(function(){function Y(){var Z=ed(x.value,P);Z!==O.value&&(O.value=Z,B())}
var K=_.HM().subscribe(Y);Y();return K});
return O.value};
ur=function(W,P){return SbA(W,[P])};
_.dp=function(W,P){var x=BBm();return _.Sj(function(){x();return ed(W,[_.zB(P)||""])},void 0,"HaeHEc")};
uiG=function(W){var P=_.dp(_.GK,function(){return W().videoId}),x=_.dp(_.En,function(){return W().playlistId});
return function(){return W().videoId?P:W().playlistId?x:_.n(_.YV("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
dwm=function(W){var P=_.dp(gE,function(){return W().videoId}),x=_.dp(_.hER,function(){return W().playlistId});
return function(){return W().videoId?P:W().playlistId?x:_.n(_.YV(0,void 0,"K4tgOc")).next().value}};
sFx=function(W){var P=_.dp(_.XAx,function(){return W().videoId});
return function(){return W().videoId?P:_.n(_.YV(!1,void 0,"Oaxwcf")).next().value}};
ve7=function(W){var P=_.dp(ccd,function(){return W().videoId});
return function(){return W().videoId?P:_.n(_.YV("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
mwS=function(){return{}};
ptW=function(W){var P=W.backgroundLottieRef;var x=W.foregroundLottieRef;var I=W.children;var O=W.wrapperClass;W=W.disableAnimation;W=(_.p("web_animated_actions")||_.p("web_animated_actions_v2"))&&!W;return _.u("yt-animated-action",{class:_.O4("animated-action__container",O)},_.u("div",{class:"animated-action__content-with-background"},fU(W,function(){return _.u(V47,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:P,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(t4x()?"dark":"light")+"_v5.json"}}})}),I),fU(W,function(){return _.u(V47,{lottiePlayerProps:{animationRef:x,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(t4x()?"dark":"light")+"_v4.json"}}})}))};
V47=function(W){var P=W.wrapperClass;var x=W.lottieClass;W=W.lottiePlayerProps;return _.u("div",{class:_.BF("animated-action__lottie",P),"aria-hidden":"true"},_.u(rSt,{className:x,data:W}))};
t4x=function(){var W,P;return(P=(W=_.FY().resolve(_.Rl(_.hF)))==null?void 0:W())!=null?P:!1};
jFx=function(){var W,P;return(P=(W=_.FY().resolve(_.Rl(_.hF)))==null?void 0:W())!=null?P:!1};
C1d=function(W,P){W=W===void 0?QFU:W;switch(P.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},W,{isOpen:P.payload});default:return W}};
znm=function(W,P){W=W===void 0?AAR:W;switch(P.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},W,{isAllowed:P.payload});default:return W}};
Eem=function(W,P){W=W===void 0?Gt7:W;switch(P.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{errorMessage:P.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{title:P.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},W,{privacy:P.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},W,{isDisabled:P.payload});default:return W}};
Dw8=function(W,P){W=W===void 0?get:W;switch(P.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},W,{isOpen:P.payload});default:return W}};
$wG=function(W,P){W=W===void 0?M4R:W;switch(P.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},W,{isFullscreen:P.payload});case "SET_NAVIGATION_BUTTON":var x=P.payload.targetId,I=Object.assign({},W.navigationButtons);I[x]=P.payload.button;return Object.assign({},W,{navigationButtons:I});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},W,{topPanelId:P.payload});case "SET_SECONDARY_HEADER":return x=P.payload.panelId,I=Object.assign({},W.secondaryHeader),I[x]=P.payload.secondaryHeader,
Object.assign({},W,{secondaryHeader:I});default:return W}};
enm=function(){return Ya(Object.assign({},{entities:dcm,voiceSearch:EPo,engagementPanel:$wG,bottomSheet:C1d,cinematicSetting:znm,shorts:elG,drawerLayout:Dw8,createPlaylist:Eem,locationCollection:wtR,reportChannel:hn8,reportForm:HFd},cNR))};
cA8=function(W,P){return"https://www.gstatic.com/youtube/img/lottie/"+W+"/"+P+".json"};
aUx=function(W){return{lottiePlayerProps:{animationConfig:{name:W.name,path:cA8("custom_animated_like_icon",W.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:W.totalFrames,lazyLoad:!0}};
bFG=function(W,P){_.Gr.addLowPriorityJob(function(){var x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:return _.OT(B,2),_.S(B,cSW(),4);case 4:return _.S(B,fetch(W),5);case 5:return x=B.yieldResult,_.S(B,x.json(),6);case 6:I=B.yieldResult;IP.set(W,I);requestAnimationFrame(function(){P(I)});
_.ci(B,0);break;case 2:O=_.yn(B),_.ge(O),_.Kl(B)}})})};
kt8=function(W){var P={animationConfig:{},listeners:{}},x=function(){W(!0)};
P.listeners.data_failed=x;P.listeners.error=x;P.listeners.data_ready=function(){W(!1)};
return P};
sa=function(W){var P=W.model;var x=W.subscribed;var I=W.isOverlay;var O=W.element;var B=W.commandController;var Y=W.notificationState;if(x){var K,Z;var d=(P==null?void 0:(K=P.buttonStyle)==null?void 0:K.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:P==null?void 0:(Z=P.unsubscribeButtonContent)==null?void 0:Z.buttonText}else{var v;d=P==null?void 0:(v=P.subscribeButtonContent)==null?void 0:v.buttonText}a:{var m;switch(P==null?void 0:(m=P.buttonStyle)==
null?void 0:m.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":K="S";break a;default:K="M"}}a:if(I)I="overlay";else switch(P.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":I="overlay";break a;default:I="mono"}a:if(x)var t="tonal";else switch((t=P.buttonStyle)==
null?void 0:t.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":t="tonal";break a;default:t="filled"}return{style:I,type:t,state:P.disableSubscribeButton?"disabled":"active",size:K,focused:W.focused,toggled:x,accessibilityLabel:UwR(P,x,Y),buttonText:d,iconPosition:P.disableNotificationBell?"none":"leading-trailing",onTap:Xt8(P,x,O,B),disableTextEllipsis:!!W.disableTextEllipsis}};
Xt8=function(W,P,x,I){return function(O){if(P){var B;var Y=W.disableNotificationBell?_.AF(W==null?void 0:(B=W.unsubscribeButtonContent)==null?void 0:B.onTapCommand):_.AF(W==null?void 0:W.onShowSubscriptionOptions)}else{var K;Y=_.AF(W==null?void 0:(K=W.subscribeButtonContent)==null?void 0:K.onTapCommand)}Y&&VB(Y,{form:{element:x},commandController:I});O.stopPropagation()}};
UwR=function(W,P,x){if(P){if(W==null?0:W.disableNotificationBell){var I;return W==null?void 0:(I=W.unsubscribeButtonContent)==null?void 0:I.accessibilityText}switch(x){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var O;return W==null?void 0:(O=W.bellAccessibilityData)==null?void 0:O.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var B;return W==null?void 0:(B=W.bellAccessibilityData)==null?void 0:B.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Y;return W==null?void 0:(Y=
W.bellAccessibilityData)==null?void 0:Y.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var K;return W==null?void 0:(K=W.bellAccessibilityData)==null?void 0:K.disabledLabel;default:var Z;return W==null?void 0:(Z=W.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}}else{var d;return W==null?void 0:(d=W.subscribeButtonContent)==null?void 0:d.accessibilityText}};
vq=function(W){if(!W)return null;switch(W){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":W="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":W="NOTIFICATIONS_OFF";break;default:W="NOTIFICATIONS_NONE"}return W};
fUR=function(W,P,x){x.subscribed!==P&&((x=x.key)&&_.cM(_.mG("subscriptionStateEntity",x,{key:x,subscribed:P})),W.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:P})),P||_.W7(W,"yt-unsubscribe-action"))};
lUS=function(W){W=_.Q(_.AF(W),_.V2);var P,x,I,O;return(O=_.Q(W==null?void 0:(P=W.panelLoadingStrategy)==null?void 0:(x=P.inlineContent)==null?void 0:(I=x.sheetViewModel)==null?void 0:I.content,Njm))==null?void 0:O.listItems};
Tjo=function(W,P){if(W.onShowSubscriptionOptions&&P&&(W=lUS(W.onShowSubscriptionOptions),W!=null&&W.length)){var x=vq(P);W.forEach(function(I){I=_.Q(I,_.tp);var O,B,Y,K,Z=I==null?void 0:(O=I.leadingImage)==null?void 0:(B=O.sources)==null?void 0:(Y=B[0])==null?void 0:(K=Y.clientResource)==null?void 0:K.imageName;I&&Z&&(I.isSelected=Z===x)})}};
rAR=function(W,P,x,I){P&&x?W.style.width=x+"px":!P&&I&&(W.style.width=I+"px")};
iF8=function(W,P,x){var I;(I=W.lottieEl)==null||I.goToAndPlay(0);var O;(O=P.lottieEl)==null||O.goToAndPlay(0);_.pC(_.Gr,function(){var B;(B=x.lottieEl)==null||B.goToAndPlay(0)},300)};
WHR=function(W){var P=_.fa(),x=_.fa(),I=_.fa(),O=_.Ys(),B=_.Ys(),Y=_.Ys(),K=_.FY().resolve(Rnm),Z,d=(Z=ur(Jp,W.data.stateEntityStoreKey))!=null?Z:void 0,v,m,t,C=(t=ur(G0G,(m=(v=W.data.notificationStateEntityStoreKeys)==null?void 0:v.subsNotificationStateKey)!=null?m:""))!=null?t:void 0;Z=!!W.data.disableNotificationBell;var z=!W.data.enableSubscribeButtonPostClickAnimation;v=_.n(KC(0));var D=v.next().value,w=v.next().value;v=_.n(KC(0));var a=v.next().value,k=v.next().value;v=_.n(KC(!1));var T=v.next().value,
N=v.next().value;v=_.n(KC(!1));var Io=v.next().value,F=v.next().value,nm=EV(!1),pm=EV("");v=_.n(KC(!1));var zR=v.next().value,Am=v.next().value,kW=function(){F(!0);_.pC(_.Gr,function(){F(!1)},1500)};
CX(function(){Io&&!z&&d&&iF8(O,B,Y)},[Io]);
CX(function(){!z&&d&&(W.animateWidth&&rAR(P.value,!!d.subscribed,D,a),d.subscribed&&d.key===pm.value&&kW(),d.key&&(pm.value=d.key))},[d==null?void 0:d.subscribed,
d==null?void 0:d.key]);var $W=zO(function(){var GA=W.data,KM=!(d==null||!d.subscribed),PZ=!!W.isOverlay,j$=T?P.value:void 0,YW=C==null?void 0:C.state;Tjo(GA,YW);return sa({model:GA,subscribed:KM,isOverlay:PZ,element:j$,notificationState:YW,disableTextEllipsis:!0,focused:zR})},[W.data,
d,C,zR,W.isOverlay,T]),ao=function(){var GA=_.FY().resolve(_.Rl(_.jK));GA&&Am(GA.isKeyBoardInUse())},e8=function(){Am(!1)};
WQA(P,function(GA){iC();d&&(GA.detail.endpoint.subscribeEndpoint||GA.detail.endpoint.unsubscribeEndpoint)&&fUR(P.value,!d.subscribed,d)});
_.XL("yt-player-subscribe",function(GA){d&&GA===W.data.channelId&&fUR(P.value,!0,d)});
_.XL("yt-player-unsubscribe",function(GA){d&&GA===W.data.channelId&&fUR(P.value,!1,d)});
_.XL("yt-update-subscribe-button-action",function(GA){GA=_.Q(GA,FMU);d&&GA&&GA.channelId===W.data.channelId&&fUR(P.value,!!GA.subscribed,d)});
_.AQ(function(){P.value&&(P.value.addEventListener("focusin",ao),P.value.addEventListener("focusout",e8));_.VE(_.Gr,function(){iC()});
N(!0);return function(){P.value&&(P.value.removeEventListener("focusin",ao),P.value.removeEventListener("focusout",e8))}});
var iC=function(){if(!z&&W.animateWidth&&(x==null?0:x.value)&&(I==null?0:I.value)&&!nm.value){var GA=_.n((d==null?0:d.subscribed)?[x,I]:[I,x]),KM=GA.next().value;GA=GA.next().value;KM=Math.ceil(KM.value.getBoundingClientRect().width);GA=Math.ceil(GA.value.getBoundingClientRect().width);w(KM);k(GA);rAR(P.value,!(d==null||!d.subscribed),KM,GA);nm.value=!0}},hw=function(){var GA=vq(C==null?void 0:C.state);
return z||GA!=="NOTIFICATIONS_NONE"?function(){return K(GA)}:function(){cW(qbo)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:Y})}};
v=function(){var GA=vq(C==null?void 0:C.state);return z||GA!=="NOTIFICATIONS_NONE"?function(){return _.u(_.Sy,{icon:GA!=null?GA:void 0})}:function(){return _.u(qbo,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:Y})}};
var dk=!(d==null||!d.subscribed)&&!Z&&!(C==null||!C.state),Oc=!(d==null?0:d.subscribed),Bm=Oc&&!Z&&!(C==null||!C.state);Z={};m={};return _.u("yt-subscribe-button-view-model",{class:_.BF(W.className,"yt-subscribe-button-view-model-wiz",(Z["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(d==null||!d.subscribed)&&W.animateWidth&&Io,Z["yt-subscribe-button-view-model-wiz--hidden"]=!(d==null?0:d.subscribed)&&W.data.hideWhenUnsubscribed,Z)),el:P},_.u(LMU,{backgroundLottieRef:O,foregroundLottieRef:B,
wrapperClass:_.BF("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(m["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=W.animateWidth&&Io,m["yt-subscribe-button-view-model-wiz__static-width"]=!W.animateWidth,m)),disableAnimation:z},_.u("div",{el:x,class:_.BF("yt-subscribe-button-view-model-wiz__container"),idomKey:W.data.channelId},_.p("web_wiz_button_shape")?_.u(E28,{data:$W,icon:dk?v():void 0,secondaryIcon:dk?function(){return _.u(_.Sy,{icon:"EXPAND"})}:
void 0}):_.u(ls,null,function(){Q0R($W,dk?hw():void 0,dk?function(){return K("EXPAND")}:void 0)}))),_.u("div",{el:I,
class:"yt-subscribe-button-view-model-wiz__invisible"},!W.animateWidth||z||nm.value?null:_.p("web_wiz_button_shape")?_.u(E28,{data:sa({model:W.data,subscribed:Oc,isOverlay:!!W.isOverlay,element:P.value,disableTextEllipsis:!0}),icon:Bm?function(){var GA;return _.u(_.Sy,{icon:(GA=vq(C==null?void 0:C.state))!=null?GA:void 0})}:void 0,
secondaryIcon:Bm?function(){return _.u(_.Sy,{icon:"EXPAND"})}:void 0}):_.u(ls,null,function(){Q0R(sa({model:W.data,
subscribed:Oc,isOverlay:!!W.isOverlay,element:P.value,disableTextEllipsis:!0}),Bm?function(){return K(vq(C==null?void 0:C.state))}:function(){},Bm?function(){return K("EXPAND")}:void 0)})))};
PD7=function(W){if(W){switch(W){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":W="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":W="NOTIFICATIONS_OFF";break;default:W="NOTIFICATIONS_NONE"}return W}};
xdt=function(W,P,x){x.subscribed!==P&&((x=x.key)&&_.cM(_.mG("subscriptionStateEntity",x,{key:x,subscribed:P})),W.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:P})),P||_.W7(W,"yt-unsubscribe-action"))};
IDt=function(W){W=_.Q(_.AF(W),_.V2);var P,x,I,O;return(O=_.Q(W==null?void 0:(P=W.panelLoadingStrategy)==null?void 0:(x=P.inlineContent)==null?void 0:(I=x.sheetViewModel)==null?void 0:I.content,Njm))==null?void 0:O.listItems};
OQo=function(W,P){if(W.onShowSubscriptionOptions&&P&&(W=IDt(W.onShowSubscriptionOptions),W!=null&&W.length)){var x=PD7(P);W.forEach(function(I){I=_.Q(I,_.tp);var O,B,Y,K,Z=I==null?void 0:(O=I.leadingImage)==null?void 0:(B=O.sources)==null?void 0:(Y=B[0])==null?void 0:(K=Y.clientResource)==null?void 0:K.imageName;I&&Z&&(I.isSelected=Z===x)})}};
JRA=function(W,P,x,I){P&&x?W.style.width=x+"px":!P&&I&&(W.style.width=I+"px")};
BmG=function(W,P,x){var I;(I=W.lottieEl)==null||I.goToAndPlay(0);var O;(O=P.lottieEl)==null||O.goToAndPlay(0);_.pC(_.Gr,function(){var B;(B=x.lottieEl)==null||B.goToAndPlay(0)},300)};
Q2=function(){return _.FY().resolve(_.Rl(n7R))||{}};
YMC=function(W){return typeof W==="function"};
_.CC=function(W){Object.keys(W);var P=function(x,I){var O=P.mapping||W;if(!x)return _.u(_.qS,null);if(Array.isArray(x)&&(x=yRA(O,P,x),Array.isArray(x))){if(!x.length)return _.u(_.qS,null);if(x.length>1){for(var B=!1,Y=!1,K=[],Z={},d=0;d<x.length;Z={data$jscomp$1830:void 0},d++)if(Z.data$jscomp$1830=x[d],Z.data$jscomp$1830){var v=KHR(Z.data$jscomp$1830,O),m=v.mappingEntry;v=v.rendererName;m&&v&&(m&&(!YMC(m)&&ZQm(m)&&(Y=!0),!YMC(m)&&m.asyncId||(B=!0)),K.push(o7t(Z.data$jscomp$1830,m,v,P,I)))}return Y&&
!B?_.u(_.qS,null,SMR()):_.u(_.qS,null,K)}x=x[0]}if(!x)return _.u(_.qS,null);x=yRA(O,P,[x])[0];if(!x)return _.u(_.qS,null);B=KHR(x,O);O=B.mappingEntry;B=B.rendererName;return O&&B?_.u(_.qS,null,o7t(x,O,B,P,I)):_.u(_.qS,null)};
P.mapping=W;return P};
_.uIt=function(W){var P=void 0,x;for(x in W)if(W.hasOwnProperty(x)){P=x;break}return P};
yRA=function(W,P,x){var I,O=(I=Q2().preProcessOptions)==null?void 0:I.idomOptions;if(!O)return x;Q2();return O.preProcessPropsIdom(W,x,P.triggerRerender)};
KHR=function(W,P){return(W=_.uIt(W))?{mappingEntry:P[W],rendererName:W}:{mappingEntry:void 0,rendererName:void 0}};
o7t=function(W,P,x,I,O){if(!P)return _.u(_.qS,null);var B={};O&&O[x]&&(B=Object.assign({},O[x]));W[x]!==void 0&&(B.data=W[x]);if(YMC(P))return P.debugName||(P.debugName=x),_.u(P,B);P.asyncId&&(I.pendingIdsMap=I.pendingIdsMap||{},I.pendingIdsMap[x]=P.asyncId);return P.templateFn?P.templateFn(B):ZQm(P)?SMR():_.u(_.qS,null)};
ZQm=function(W){var P;return(P=W.showPlaceholder)!=null?P:Q2().defaultShowPlaceholder};
SMR=function(){var W=Q2().placeholder;return W()};
ddR=function(W,P){P=P===void 0?{shouldPersist:!0}:P;return{useUpdatableData:function(x,I){var O=[],B=_.n(_.Zh(function(){var d=x();if(I!=null&&I.length&&O){var v=O.length>0;for(var m=!1,t=0;t<I.length;t++){var C=I[t]();v&&C!==O[t]&&(m=!0);O[t]=C}v=m}else v=!1;if(v)_.Ap.remove(Z());else if(v=_.Ap.get(Z()))return v;return d})),Y=B.next().value,K=B.next().value,Z=_.Sj(function(){return W(x())},void 0,"VFraLb");
_.jj(function(){if(Z()!=null){zS.set(Z(),[Y,K,!1]);var d=Z();_.C4(function(){zS.delete(d)})}});
return[Y,function(d){K(d);P.shouldPersist&&_.Ap.set(Z(),d)}]},
getData:function(x){var I;return(I=zS.get(W(x)))==null?void 0:I[0]()},
updateData:function(x,I){x=W(x);var O=zS.get(x);if(!O)return!1;var B=_.n(O);O=B.next().value;B=B.next().value;I=I(O());B(I);P.shouldPersist&&_.Ap.set(x,I);return!0},
useUpdatableDataIdom:function(x,I){var O=W(x),B=_.Ap.get(O),Y=_.n(KC(B!=null?B:x)),K=Y.next().value,Z=Y.next().value,d=EV(B!=null?B:x);CX(function(){if(O!=null)return zS.set(O,[function(){return d.value},
function(v){Z(v);d.value=v},
zS.has(O)]),_.Gr.addJob(function(){_.GS(_.Gr,function(){var v=zS.get(O);v&&(v[2]=!1)},0)},8),function(){var v;
((v=zS.get(O))==null?0:v[2])||zS.delete(O)}},[O]);
CX(function(){K!==x&&(Z(x),d.value=x)},I?[].concat(_.ju(I),[O]):[O]);
return[K,Z]}}};
sZC=function(W){var P=_.n(_.YV(!0,void 0,"bKtO6d")),x=P.next().value;P.next();return function(){var I=ya(W.children());return _.u(_.V,{cond:x,then:function(){return I},
else:W.fallback})}()};
_.Ea=function(W){var P=v78(W),x=P.data,I=P.mapping,O=P.wrapper;P=P.pendingFallback;var B=function(){return mdU(_.zB(x))},Y=function(){var K=B(),Z=[];
K=_.n(K);for(var d=K.next();!d.done;d=K.next()){var v=void 0;d=d.value;var m=void 0;for(v in d)if(!(!d).hasOwnProperty(v)){m=v;break}(v=m)&&Z.push(v)}return Z};
return W.data?_.u(sZC,{fallback:P},function(){return _.u(_.sV,{each:Y},function(K,Z){var d=O?function(m){return O(function(){return I[K](m,Z)},v,Z)}:function(m){return I[K](m,Z)};
d.debugName||(d.debugName=String(K));if(!I[String(K)])return document.createComment("");var v=VHC(B,K,Z);return _.u(d,{data:v})})}):_.u(_.qS,null)};
v78=function(W){var P=W.targetId||tHt(W.children);if(!W.data||!P||_.p("mweb_new_replaceables_killswitch"))return Object.assign({},W,{mapping:W.children,wrapper:void 0});var x="stamper-"+p4m++,I=function(){var K;return(K=_.zB(W.targetId))!=null?K:x};
P=_.n(jZG(function(){var K=mdU(W.data());K.targetId=I;return K})).next().value;
var O=Object.assign({},Q2().replaceableMapping,W.children);if(W.replacementWrapper){var B=O.notificationTextRenderer,Y=O.notificationMultiActionRenderer;B&&(O.notificationTextRenderer=function(K,Z){return W.replacementWrapper(B({data:K.data},Z))});
Y&&(O.notificationMultiActionRenderer=function(K,Z){return W.replacementWrapper(Y({data:K.data},Z))})}return Object.assign({},W,{data:P,
mapping:O,wrapper:function(K,Z,d){return Com({targetId:I,stamperIndex:d},K)}})};
VHC=function(W,P,x){var I;return _.Sj(function(){var O=W()[x()];if(O)I=O[P];else return _.ge(new _.mW("Stamper failed to find "+String(P)+" at index "+x()+" of data array of length "+(W().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),I;return O[P]},void 0,"DHuMIe")};
tHt=function(W){W=_.n(Object.keys(W));for(var P=W.next();!P.done;P=W.next())if(P=P.value,QZt.includes(P)||CDS.includes(P)||ARx.includes(P))return!0;return!1};
mdU=function(W){return W?Array.isArray(W)?W:[W]:[]};
zcx=function(W){W=_.Q(W,_.gp);return(W==null?void 0:W.iconName)&&!(W==null?0:W.title)};
g7C=function(W,P,x){var I;return _.u(_.qS,null,W==null?void 0:(I=W.actions)==null?void 0:I.map(function(O){return _.u("div",{class:function(){var B={"yt-flexible-actions-view-model-wiz__action":!0};B["yt-flexible-actions-view-model-wiz__action--row-action"]=P;B["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(zcx(O))var Y=!0;else if(Y=_.Q(O,_.DZ),(Y==null?0:Y.isToggled)&&zcx(Y==null?void 0:Y.toggledButtonViewModel)||(Y==null||!Y.isToggled)&&zcx(Y==null?void 0:Y.defaultButtonViewModel))Y=
!0;else{var K;Y=((K=_.Q(O,G6W))==null?0:K.playlistId)?!0:!1}B=(B["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Y,B["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=x,B);return _.BF(B)}},E7o([O],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!P}}))}))};
DdR=function(W){var P=W.layout===1,x,I=((x=W.data)==null?void 0:x.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";x={};I=(x["yt-flexible-actions-view-model-wiz"]=!0,x["yt-flexible-actions-view-model-wiz--inline"]=!P,x["yt-flexible-actions-view-model-wiz--scrollable"]=I,x);var O,B;return _.u("yt-flexible-actions-view-model",{class:_.BF(W.className,I)},(O=W.data)==null?void 0:(B=O.actionsRows)==null?void 0:B.map(function(Y){if(P){var K;return _.u("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
g7C(Y,P,!((K=W.data)==null||!K.respectActionIntrinsicWidth)))}return g7C(Y,P,!1)}))};
MHd=function(W){return!(W==null||!W.iconName||(W==null?0:W.title))};
$dW=function(W){var P=_.Q(W.data.toggleButtonViewModel,_.DZ),x,I=(x=W.data.dislikeEntityKey)!=null?x:"",O=ur(E4,I);P=Object.assign({},P,{isToggled:O?O.likeStatus==="DISLIKE":P.isToggled});return _.u("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.u(_.MI,{data:P,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(B){O&&B!==(O.likeStatus==="DISLIKE")&&O.key&&_.cM(_.$s("likeStatusEntity",O.key,{likeStatus:B?"DISLIKE":"INDIFFERENT",hadUserInteraction:B}))}}))};
hcR=function(W){var P=_.p("web_supports_animations_api"),x=_.Q(W.data.toggleButtonViewModel,_.DZ),I,O,B,Y,K=_.n(KC({numberText:(Y=(I=W.likeCountEntity)==null?void 0:(O=I.likeCountIfIndifferent)==null?void 0:O.content)!=null?Y:"",numberValue:Number((B=W.likeCountEntity)==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),Z=K.next().value,d=K.next().value,v,m,t,C;I=_.n(KC({numberText:(C=(v=W.likeCountEntity)==null?void 0:(m=v.likeCountIfLiked)==null?void 0:m.content)!=null?
C:"",numberValue:Number((t=W.likeCountEntity)==null?void 0:t.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));v=I.next().value;var z=I.next().value;m=_.n(KC());var D=m.next().value,w=m.next().value,a;m=(a=W.data.likeStatusEntityKey)!=null?a:"";var k,T;a=(T=(k=W.likeCountEntity)==null?void 0:k.key)!=null?T:"";var N=ur(E4,m),Io=ur(BV8,a);k=zO(function(){return(N==null?void 0:N.likeStatus)==="LIKE"},[N]);
CX(function(){var F,nm=Io&&((F=Io.likeCountIfIndifferent)==null?void 0:F.content)!==Z.numberText;if(!D&&nm){var pm,zR;d({numberText:(zR=Io==null?void 0:(pm=Io.likeCountIfIndifferent)==null?void 0:pm.content)!=null?zR:"",numberValue:Number(Io==null?void 0:Io.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var Am,kW;z({numberText:(kW=Io==null?void 0:(Am=Io.likeCountIfLiked)==null?void 0:Am.content)!=null?kW:"",numberValue:Number(Io==null?void 0:Io.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[Io]);
x=Object.assign({},x,{isToggled:k});P=P&&W.likeCountEntity;return _.u("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.u(_.MI,{data:x,buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:P?Z:void 0,animatedTextPropsToggled:P?v:void 0,onToggle:function(F){w4S(F,N,D,w)},
style:function(){return W.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
w4S=function(W,P,x,I){x&&_.Gr.cancelJob(x);x=_.Gr.addLowPriorityJob(function(){I(void 0)},5E3);
I(x);P&&W!==(P.likeStatus==="LIKE")&&P.key&&_.cM(_.mG("likeStatusEntity",P.key,{key:P.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
HQU=function(W,P,x,I){x&&_.Gr.cancelJob(x);x=_.Gr.addLowPriorityJob(function(){I(void 0)},5E3);
I(x);P&&W!==(P.likeStatus==="LIKE")&&P.key&&_.cM(_.mG("likeStatusEntity",P.key,{key:P.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
bQ7=function(W){var P,x=_.Q((P=W.data)==null?void 0:P.likeButtonViewModel,_.wp),I;P=_.Q((I=W.data)==null?void 0:I.dislikeButtonViewModel,_.hp);var O,B=(O=ur(E4,(x==null?void 0:x.likeStatusEntityKey)||""))!=null?O:x==null?void 0:x.likeStatusEntity;I=zO(function(){var Y=W.data,K;Y=(Y==null?void 0:(K=Y.timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:"like-dislike",timings:Y,enabled:(B==null?void 0:B.likeStatus)==="INDIFFERENT"&&Y.length>0,experimentEnabled:Y.length>0}},[W.data,
B]);return _.u("segmented-like-dislike-button-view-model",{class:_.BF(W.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.u(ecG,{settings:I},_.u("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},x?_.u(cRR,{data:x,likeCountEntity:W.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,P?_.u(aD8,{data:P,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
k6U=function(W,P){var x=fK(W)||{layerNode:P};x.layerNode=P;e2C(W,x);W.getScreenLayer=function(){return Hq(x.layerNode)}};
Udo=function(W){var P;W=W.parentNode;for(var x;W&&((P=fK(W))==null||!P.isRenderer)&&!((x=W.polymerController)!=null?x:W).isRenderer_;)W=W.parentNode||W.host;if(P=W)return fK(P)};
X4d=function(W){if(W){XB.delete(W);var P=_.FY().resolve(RR);csS(W,P)}};
Nmm=function(W,P,x){if(x===void 0?0:x){if(x=W.getAttribute("client-ve-type"),P.data&&!P.disableReactiveLogging||x)_.GB(function(){fDU(W,_.zB(P.data))}),_.C4(function(){return void X4d(W)})}else typeof P.data!=="function"&&fDU(W,P.data)};
fDU=function(W,P){lDC++;TmS(W,P)&&_.Gr.addJob(function(){_.GS(_.Gr,function(){if(TmS(W,P)&&W.ownerDocument.documentElement===document.documentElement&&W){var x;if(W.getAttribute("layer")){var I=x=Number(W.getAttribute("layer")),O=fK(W);O?O.layerNode.layer=I:k6U(W,new rRm(I));(I=Udo(W))&&(O=fK(W))!=null&&(O.layerNode.parent=I.layerNode)}else if(x=fK(W))x=Hq(x.layerNode);else{x=Hq;I=new rRm;if(O=Udo(W))I.parent=O.layerNode;k6U(W,I);x=x(I)}x!=null||(x=0);I=W.getAttribute("client-ve-type");O=Number(I);
var B=!1;I=!1;var Y=fK(W),K;if((K=Y)&&!(K=Y[eK]!==P)&&(K=O)){var Z;K=((Z=XB.get(W))==null?void 0:Z.clientVeType)===void 0}K&&(Y[eK]=P,B=I=Y.isRenderer=!0);XB.has(W)&&(XB.get(W).clientVeType=O);W.visualElement&&(I=!0);(Z=P==null?void 0:P.loggingDirectives)&&Z.clientVeSpec&&(Y=iQW(_.BW(),W),Z=_.Rcm(_.YY(),Z,Y||void 0,x))&&(W.visualElement=Z);!W.visualElement&&O&&B&&(W.veType=O,Z=void 0,_.p("wiz_next_client_ve_parent_fix")&&(Z=iQW(_.BW(),W)),Z=_.nt(_.YY(),W,Z,x),W.visualElement=Z);I&&(Z=_.FY().resolve(RR),
UOm(W,{data:P,observer:Z,layer:x,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
TmS=function(W,P){return(P==null?0:P.trackingParams)||(P==null?0:P.loggingDirectives)||_.Q(P==null?void 0:P.rendererContext,_.Xcx)||W.getAttribute("client-ve-type")?!0:!1};
qMx=function(W){return _.p("cow_logging_in_component_wrapper")?function(P){Nmm(P,W,!0)}:FHU};
FHU=function(){};
_.LHS=function(W,P){return _.Jb(W.entities,"accountLinkStatusEntity",P)};
Wdm=function(W,P){return _.Jb(W.entities,"hatsSurveyEntity",P)};
PfW=function(W,P){return _.Jb(W.entities,"hatsSurveyStateEntity",P)};
xhR=function(W,P){return _.Jb(W.entities,"quantityIncrementerEntity",P)};
nRm=function(W){var P=W.data;var x=W.className===void 0?"":W.className;var I=W.setMinWidth;W=W.forceIconOnly;var O=_.fa(qMx({data:P}));I=I?"ytwAccountLinkButtonViewModelHostMinWidth":"";var B=_.dp(_.LHS,function(){var m;return(m=_.zB(P).accountLinkStatusEntityKey)!=null?m:""}),Y=_.dp(_.LHS,function(){var m;
return(m=_.zB(P).accountLinkStatusSecondaryEntityKey)!=null?m:""}),K=function(){if(!_.p("web_account_link_secondary_killswitch")){var m,t;
return((m=B())==null?void 0:m.linked)||((t=Y())==null?void 0:t.linked)}var C;return(C=B())==null?void 0:C.linked};
_.jj(function(){var m=B();if(m){var t=IXA(new OYG,JtG(new B48,!!m.linked));_.Bq().then(function(C){C&&(C.setAccountLinkState(_.L2(t.JSC$9973_serializeBinary(),4)),C.updateAccountLinkingConfig(!!m.linked))})}});
var Z=function(){return _.Q(_.zB(P).toggleButtonViewModel,_.DZ)};
_.XL("yt-signal-action-show-account-link-dialog",function(){if(Z()){var m=K()?Z().toggledButtonViewModel:Z().defaultButtonViewModel;m=_.Q(m,_.gp);var t;if((t=B())==null?0:t.isWarning){t=_.Q(_.zB(P).warningButtonViewModel,_.gp);if(!t){_.co(Error("zh"));return}m=t}var C;(t=_.AF((C=m)==null?void 0:C.onTap))&&_.nK([t],O.value)}else _.co(Error("Ah"))});
var d=function(){var m=Z();return Object.assign({},m,{isToggled:K()})},v=W?{iconPosition:"icon-only"}:{};
return _.u("account-link-button-view-model",{class:_.O4("ytwAccountLinkButtonViewModelHost",function(){return _.zB(x)},I),
el:O,"button-renderer":!0},_.u("div",null,_.u(_.V,{cond:function(){var m;if((m=B())==null?0:m.isWarning)return(m=_.Q(_.zB(P).warningButtonViewModel,_.gp))||_.co(Error("zh")),m},
then:function(m){return _.u(_.cq,{data:m,buttonOverrides:v})},
else:function(){return _.u(_.MI,{data:d,buttonShapeOverrides:v})}})))};
YKG=function(W){switch(W){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
ytt=function(W){switch(W){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}};
KdW=function(W){switch(W){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.oRm=function(W){var P=_.Wi("web_generic_client_event_wait_period ",0);P||(P=3E5);var x=ZYo.get(W);!_.p("enable_web_client_experiment_event_timeout_killswitch")&&x&&(0,_.iA)()-x<P||(ZYo.set(W,(0,_.iA)()),_.Ay("genericClientExperimentEvent",{eventType:W}))};
dhd=function(W){var P=W.data;var x=W.children;var I=SKo(P),O=(P==null?0:P.thumbnailSize)?P.thumbnailSize:"medium";W=!(P==null||!P.doubleStack);var B=!(P==null||!P.experimentEnabled),Y={},K=(Y["collections-stack-wiz__collection-stack1"]=!0,Y[u1S(O)]=!0,Y);if(P==null?0:P.customClassName1stStack)K[P.customClassName1stStack]=!0;O={};var Z=(O["collections-stack-wiz__collection-stack2"]=W,O["collections-stack-wiz__collection-stack2--responsive-mode"]=P==null?void 0:P.enableResponsiveMode,O);if(P==null?
0:P.customClassName2ndStack)Z[P.customClassName2ndStack]=!0;return _.u("yt-collections-stack",{class:"collections-stack-wiz",hidden:!B},fU(P,function(){return _.u("div",null,fU(P.doubleStack,function(){return _.u("div",{class:_.BF(Z),style:"background-color:"+I})}),_.u("div",{class:_.BF(K),
style:"background-color:"+I}),x)}))};
u1S=function(W){switch(W){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
SKo=function(W){if(!W)return"";var P,x=(P=_.FY().resolve(_.Rl(_.hF)))==null?void 0:P(),I;if(!x&&((I=W.vibrantColorPalette)==null?0:I.iconInactiveColor))return CL(W.vibrantColorPalette.iconInactiveColor,"1");var O;return x&&((O=W.darkColorPalette)==null?0:O.iconInactiveColor)?CL(W.darkColorPalette.iconInactiveColor,"1"):W.color?CL(W.color,"1"):W.sampledThumbnailColor?(W=W.sampledThumbnailColor,"rgba("+W.red+","+W.green+","+W.blue+");"):""};
_.aS=function(W,P){if(!W.includes("DATE_PLACEHOLDER"))return W;var x=new Date(0);x.setUTCSeconds(P);return W.replace("DATE_PLACEHOLDER",s2U(x))};
_.br=function(W){W=_.vRU(W);return _.p("web_watch_enable_single_column_grid_view")?W:!1};
_.vRU=function(W){return W.watch.isWatchNarrowWidth};
mhU=function(W,P,x){return function(I){var O=W.command;O&&(VB(O,{form:{element:x}}),P([O],I))}};
t7R=function(W,P,x,I,O){return function(B){var Y=V7R(W,x);Y&&VB(Y,{form:{element:I},commandController:O});P&&P.stopPropagation&&B.stopPropagation()}};
V7R=function(W,P){if(W.signInEndpoint&&!_.p("web_subscribe_sign_in_endpoint_killswitch"))return W.signInEndpoint;if(P){if(W.serviceEndpoints)return W.serviceEndpoints[1];if(W.onUnsubscribeEndpoints)return W.onUnsubscribeEndpoints[0]}else{if(W.serviceEndpoints)return W.serviceEndpoints[0];if(W.onSubscribeEndpoints)return W.onSubscribeEndpoints[0]}};
pNm=function(W,P){var x,I,O,B;P=P&&((x=W.unsubscribeAccessibility)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label)||((O=W.subscribeAccessibility)==null?void 0:(B=O.accessibilityData)==null?void 0:B.label);return W.longSubscriberCountText?[P,_.kz(W.longSubscriberCountText)].filter(function(Y){return Y}).join(" "):P};
ks=function(W,P){return P||(W==null?0:W.isChannelDelegate)?"disabled":"active"};
j2d=function(W,P){var x;switch((x=W.style)==null?void 0:x.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:ks(W)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:ks(W)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:ks(W,!0)};case "OVERLAY":return P?{style:"overlay",type:"tonal",state:ks(W)}:{style:"overlay",type:"filled",state:ks(W)};default:return P?{style:"mono",type:"tonal",state:ks(W)}:{style:"mono",type:"filled",state:ks(W)}}};
Q2m=function(W,P){var x=W.map(function(I){return I.toString()});
return _.yB(function(I){if(x.includes(I.key)){P&&I.preventDefault();var O;(O=I.currentTarget)==null||O.click()}})};
_.CfA=function(){return Q2m(["Enter"])};
_.Atx=function(){return Q2m(["Enter"," "],!0)};
_.Ua=function(W){if(W.composedPath)return W.composedPath();if(!W.__composedPath){for(var P=[],x=W.target;x;)P.push(x),x=x.parentNode;P.push(window);W.__composedPath=P}return W.__composedPath};
_.zeC=function(W,P,x){W=_.n(W);for(var I=W.next();!I.done;I=W.next()){I=I.value;if(I===P)break;for(var O=_.n(x),B=O.next();!B.done;B=O.next())if(B=B.value,I.tagName===B||I.role==="button"&&B==="BUTTON")return!0}return!1};
ERR=function(W,P){var x,I=(x=P.observer)!=null?x:_.FY().resolve(RR);if(W){x=GjA(W);var O=[];P.showOption&&O.push(I.observe(W,function(){P.visibilityCallback(!0)},P.showOption));
P.hideOption&&O.push(I.observe(W,function(){P.visibilityCallback(!1)},P.hideOption));
P.prescanOption&&P.prescanCallback&&O.push(I.observe(W,function(){P.prescanCallback()},P.prescanOption));
var B;x.visibilityMonitorKeys=((B=x.visibilityMonitorKeys)!=null?B:[]).concat(O)}};
GjA=function(W){var P;return(P=W.polymerController)!=null?P:W};
_.fC=function(W){return!!_.Xd(W)};
_.M7m=function(W,P){var x=Akx();CX(function(){var I=W.value;if(I)return gRR(I,P),DhC(I,P,void 0,void 0,void 0,x)},[P])};
_.NI=function(W,P,x,I,O,B){var Y=Akx();_.jj(function(){var K=W.value;K&&(gRR(K,P(),B),K=DhC(K,P(),x,I,O,Y),_.C4(K))})};
gRR=function(W,P,x){var I=$ht(P),O=wNW(P);P=I&&heo;var B=O&&HYC;(I||O)&&ERR(W,{visibilityCallback:function(Y){var K=_.FY().resolve(_.qR);Y&&I?K.resolveCommand(I,{form:{element:x?W:void 0},disableClickTracking:!0}):!Y&&O&&K.resolveCommand(O,{form:{element:x?W:void 0},disableClickTracking:!0})},
showOption:P,hideOption:B})};
DhC=function(W,P,x,I,O,B){var Y=new Map;if(P=_.Xd(P)){var K;W=(I==null?void 0:(K=I.onTap)==null?void 0:K.value)||W;x=eeo(P,W,x==null?void 0:x.onTap,O,B);W.addEventListener("click",x);Y.set("click",x)}return function(){for(var Z=_.n(Y),d=Z.next();!d.done;d=Z.next()){var v=_.n(d.value);d=v.next().value;v=v.next().value;W.removeEventListener(d,v)}}};
_.Xd=function(W){var P;return(W=(P=_.Q(W,lr))==null?void 0:P.onTap)&&_.AF(W)};
$ht=function(W){var P;return(W=(P=_.Q(W,lr))==null?void 0:P.onVisible)&&_.AF(W)};
wNW=function(W){var P;return(W=(P=_.Q(W,lr))==null?void 0:P.onHidden)&&_.AF(W)};
eeo=function(W,P,x,I,O){var B=function(K){_.FY().resolve(_.qR).resolveCommand(W,K)},Y=function(K){I&&_.zeC(_.Ua(K),P,I)||B(K.target?{form:{element:K.target,
sourceData:W,mutationContext:O}}:void 0)};
x&&(Y=function(K){x(K,B)});
return Y};
ctd=function(W){var P=W.data;var x=W.className;W=W.alwaysShow;var I=_.fa();_.M7m(I,P.rendererContext);a:switch(P.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var O="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:O="ytThumbnailHoverOverlayViewModelStyleCover"}O=_.BF("ytThumbnailHoverOverlayViewModelScrim",O);var B,Y=(B=_.Q(P==null?void 0:P.rendererContext,_.TS))==null?void 0:B.label,K=_.Xd(P.rendererContext)!==void 0;B=K?"button":void 0;K=K?0:void 0;var Z=_.Atx(),d={};return _.u("thumbnail-hover-overlay-view-model",
{el:I,class:_.BF("ytThumbnailHoverOverlayViewModelHost",x,(d.ytThumbnailHoverOverlayViewModelHostForceHover=W,d)),"aria-label":Y,role:B,tabindex:K,"on:keypress":Z},_.u("div",{class:O},P.icon?_.u(_.bq,{data:P.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,P.text?_.u(_.mQ,{text:P.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
aXo=function(W){switch(W){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}};
bYS=function(W){var P=W.numAvatarsInCluster;switch(W.clusterSize){case "small":return P===2?22:18;case "40":return P===2?24:22;default:return P===2?24:20}};
kjx=function(W,P){return function(x){var I=Object.keys(P);_.jj(function(){if(W()){for(var O=_.n(I),B=O.next();!B.done;B=O.next())B=B.value,x.addEventListener(B,P[B]);_.C4(function(){for(var Y=_.n(I),K=Y.next();!K.done;K=Y.next())K=K.value,x.removeEventListener(K,P[K])})}})}};
UhG=function(W){switch(bYS(W)){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""}};
XNm=function(W){switch(W){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""}};
fXW=function(W){switch(bYS(W)){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""}};
N4t=function(W){switch(W){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""}};
lXS=function(W){switch(W){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}};
T4W=function(W){return W==="medium"||W==="48"||W==="large"||W==="extra-large"||W==="extra-extra-large"||W==="giant"};
rt8=function(W){return!!((W==null?0:W.includes(3))||(W==null?0:W.includes(5)))};
Ret=function(W){return{size:iYd(W.data.avatarImageSize),onTap:W.onTap,decorations:W.decorations||[],badgeText:W.badgeText,accessibilityText:W.accessibilityText,avatarButtonCustomClassName:W.avatarButtonCustomClassName,clusterLayoutConfig:W.clusterLayoutConfig}};
iYd=function(W){switch(W){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"}};
Fdd=function(W){switch(W){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}};
qKU=function(W){switch(W){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
LdC=function(W){var P=W.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",x,I=W.avatars&&W.avatars.length>0?(x=_.Q(W.avatars[0],_.rp))==null?void 0:x.avatarImageSize:"AVATAR_SIZE_UNKNOWN";x=Fdd(I)||0;if(P){var O,B=(O=W.avatarClusterSize)!=null?O:"AVATAR_SIZE_M";P=Fdd(B);var Y,K,Z=Math.min((K=(Y=W.avatars)==null?void 0:Y.length)!=null?K:0,4),d;return{avatars:((d=W.avatars)==null?void 0:d.slice(0,4))||[],avatarSizeInPx:x,avatarStackStyle:{width:P+"px",height:P+"px",position:"relative"},avatarStyle:function(m){var t=
bYS({clusterSize:iYd(B),numAvatarsInCluster:Z,avatarIndex:m});var C=Fdd(B);Z===3&&m===2?(C=(C-t)/2,C=(_.$$("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*C):C=void 0;return{position:"absolute",top:Z===2&&m===1||Z===3&&m===2||Z===4&&m>=2?"0":void 0,bottom:Z===2&&m===0||Z>2&&m<2?"0":void 0,left:Z===2&&m===1||Z>2&&(m===1||m===3)?"0":void 0,right:Z<=3&&m===0||Z===4&&(m===0||m===2)?"0":void 0,transform:C?"translateX("+C+"px)":void 0,width:t+"px",height:t+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(m){return{clusterSize:iYd(W.avatarClusterSize),numAvatarsInCluster:Z,avatarIndex:m}},
avatarButtonCustomClassName:void 0}}var v;return{avatars:((v=W.avatars)==null?void 0:v.slice())||[],avatarSizeInPx:x,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:qKU(I),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
Wjd=function(W,P,x){return function(){VB(W,{form:{element:P},commandController:x})}};
PN8=function(W){switch(W){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
xkm=function(W){var P=W.data;return _.u("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:W.hidden===void 0?!1:W.hidden},_.u(_.mQ,{text:P.title,className:"yt-thumbnail-overlay-title-view-model__title"}),P.subtitle?_.u(_.mQ,{text:P.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
IYm=function(W){switch(W){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
O8x=function(W){var P=W.data;W=W.hidden===void 0?!1:W.hidden;var x={};W={class:_.BF("yt-page-indicator-view-model",(x["yt-page-indicator-view-model__indicator--hidden"]=!P.indicatorCount,x)),hidden:W};if(P.indicatorCount){x=[];for(var I=0;I<P.indicatorCount;I++){var O={};O=_.BF("yt-page-indicator-view-model__indicator",(O["yt-page-indicator-view-model__indicator--selected"]=P.selectedIndex===I,O));x.push(_.u("div",{class:O}))}P=_.u(_.qS,null,x)}else P=_.u(_.qS,null);return _.u("yt-page-indicator-view-model",
W,P)};
Brt=function(W){W&&(JOU(W)?delete W.inlinePlayerData:"inlinePlaybackEndpoint"in W&&delete W.inlinePlaybackEndpoint)};
npW=function(W){if("accessibilityText"in W)return W.accessibilityText||"";if("title"in W){var P,x,I;return((P=W.title)==null?void 0:(x=P.accessibility)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label)||""}if("accessibility"in W){var O,B;return((O=W.accessibility)==null?void 0:(B=O.accessibilityData)==null?void 0:B.label)||""}return""};
JOU=function(W){return"inlinePlayerData"in W};
ir=function(W){return new YEG(W)};
_.yOd=function(W,P,x,I,O,B){var Y=function(d){d.preventDefault()},K=function(){var d=W.value;
if(d)return(d._data=P)?(d.addEventListener("touchstart",$XA,{passive:!0}),d.addEventListener("click",htm),P.clickTrackingParams&&(d.params={itct:P.clickTrackingParams}),Hcm(d,P),AH(d,etW(P)||"")):d.addEventListener("click",Y),function(){P?(d.removeEventListener("touchstart",$XA,{passive:!0}),d.removeEventListener("click",htm)):d.removeEventListener("click",Y)}},Z=function(){var d=W.value;
if(d){var v=_.Gm({innertubeCommand:P,elementsCommand:x,forceNewState:I,stopPropagation:B});if(v)return d._data=v._data,v["aria-haspopup$"]&&d.setAttribute("aria-haspopup",v["aria-haspopup$"].toString()),v["force-new-state$"]&&d.setAttribute("force-new-state",v["force-new-state$"].toString()),v.href$&&AH(d,v.href$),v.rel$&&(d.rel=v.rel$),v.role$&&d.setAttribute("role",v.role$),v.target$&&(d.target=v.target$),d.params=v.params,v.onclick&&d.addEventListener("click",v.onclick),v.onpointerdown&&d.addEventListener("onpointerdown",
v.onpointerdown),function(){v.onclick&&d.removeEventListener("click",v.onclick);v.onpointerdown&&d.removeEventListener("onpointerdown",v.onpointerdown)}}};
CX(O?Z:K,[P,x])};
Kj7=function(W){var P=W.children;var x=W.className;var I=W.dir;var O=W.style;var B=W.role;var Y=W.ariaSelected;var K=W.ariaLabel;var Z=W.ariaHidden;var d=W.ariaLabelledby;var v=W.ariaDescribedby;var m=W.command;var t=W.elementsCommand;var C=W.forceNewState;var z=W.isPlaceholder;var D=W.tabIdentifier;var w=W.target;var a=W.tabIndex;var k=W.useATagConfig;var T=W.stopPropagation;W=_.fa();_.yOd(W,m,t,C,k,T);t=_.yB(function(){return T===!1});
return _.u("a",{el:W,"on:click":t,class:x,style:O,dir:I,role:B?B:m?void 0:"group","aria-hidden":Z?!0:void 0,"aria-label":K,"aria-labelledby":d,"aria-describedby":v,"aria-selected":Y,tabindex:a!==void 0?a:void 0,target:w,"tab-identifier":D,"force-new-state":C?!0:void 0,"is-placeholder":z?!0:void 0},P)};
Z8A=function(W){var P=W.data;W=_.yB(function(){var O=_.Q(P.onTap,_.Ct);O&&_.FY().resolve(_.qR).resolveCommand(O);return!1});
var x={sources:[{url:P.thumbnailUrl,width:120,height:90}]},I=P.rating&&P.ratingA11yLabel&&P.reviewsCount&&P.reviewsCountA11yLabel;return _.u("place-data-view-model",null,P.placeName&&P.placeCategory?_.u("div",{class:"yt-spec-place-data-view-model-shape","on:click":W},_.u(_.bq,{data:x,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.u(Kj7,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.Q(P.onTap,_.Ct),forceNewState:!0,useATagConfig:!0},
_.u("h3",{class:"yt-spec-place-data-view-model-shape__name",title:P.placeName},P.placeName)),_.u("div",{class:"yt-spec-place-data-view-model-shape__metadata"},I?_.u("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.u("span",{class:"score",title:P.ratingA11yLabel},P.rating),_.u("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.u(_.Sy,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.u("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:P.reviewsCountA11yLabel},P.reviewsCount)):_.u("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.u("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.u("span",{class:"category",title:P.placeCategory},P.placeCategory)))):null)};
op8=function(W){return function(P){W&&(W.thumbnailElRef=P.thumbnailElRef,W.thumbnail=P.thumbnail,W.thumbnailOverlays=P.thumbnailOverlays,W.thumbnailSize=P.thumbnailSize)}};
SEU=function(W){var P;return(P=W.sharedUi)==null?void 0:P.animatedThumbnailEnabled};
uEU=function(W){var P;return(P=W.sharedUi)==null?void 0:P.inlinePreviewEnabled};
_.dkm=function(W){var P;return(P=W.sharedUi)==null?void 0:P.currentPageSubType};
sUR=function(){return _.u("div",{class:"yt-pinking"},_.u("svg",{class:"yt-pinking__pinking-left"},_.u("defs",null,_.u("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.u("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.u("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.u("svg",{class:"yt-pinking__pinking-right"},_.u("defs",null,_.u("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.u("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.u("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
vpG=function(W){switch(W){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
QUd=function(W){var P=[],x=W.data,I=T4(W.width,W.height),O=_.FY().resolve(_.Rl(mkt)),B=_.fa(function(){P.push("elRef.value set")});
_.AQ(function(){P.push("onInit");return function(){P.push("onCleanup")}});
_.AQ(function(){var w;(w=W.playbackRef)==null||w.call(W,{thumbnailElRef:B,thumbnail:x.image,thumbnailOverlays:x.overlays,thumbnailSize:I})});
var Y=SbA(SEU),K,Z=(K=W.aspectRatio)!=null?K:0,d=(K=(x.image?_.msd(x.image):Z)<=1&&Z===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",v=function(){B.value||_.ge(new _.mW("Thumbnail elRef.value is null",P.join("\n")));O&&B.value&&O(B.value)},m={};
a:{if(!W.disableRounding&&!W.isClip)switch(I){case "large":var t="yt-thumbnail-view-model--large";break a;case "small":t="yt-thumbnail-view-model--small";break a;default:t="yt-thumbnail-view-model--medium";break a}t=void 0}Z=_.BF("yt-thumbnail-view-model",W.className,vpG(Z),t,(m["yt-thumbnail-view-model--cinematic"]=K,m));m=void 0;var C,z;(t=K?(C=W.data)==null?void 0:(z=C.backgroundColor)==null?void 0:z.lightTheme:void 0)&&(m="background-color:"+CL(t,"1")+";");var D;C=W.hovered&&I!=="large"&&((D=
x.overlays)==null?void 0:D.some(function(w){return _.Q(w,VrR)}));
return _.u("yt-thumbnail-view-model",{class:Z,style:m,el:B},fU(K,function(){return _.u("div",{class:"yt-thumbnail-view-model__blurred-image"},_.u(_.bq,{data:x.image,alt:"",contentMode:d,targetWidth:W.width,onload:v}))}),_.u("div",{class:"yt-thumbnail-view-model__image"},_.u(_.bq,{data:x.image,
alt:"",contentMode:d,targetWidth:W.width,onload:v}),null),fU(!C,function(){return tro(x.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:I,isClip:W.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:W.lockupExperiments}})}),fU(W.hovered,function(){return pSR(x.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),fU(W.hovered&&Y,function(){return jU8(x.overlays)}),fU(W.isClip,function(){return sUR()}))};
CNC=function(W){switch(W){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
gpU=function(W){var P=_.n(KC(-1)),x=P.next().value,I=P.next().value,O=GO(function(){return new AOx(I)});
_.AQ(function(){zqU(O,W.data.thumbnails.length);return function(){Glm(O)}});
var B;return _.u("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(B=W.data.thumbnails)==null?void 0:B.map(function(Y,K){var Z=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!W.data.primaryThumbnail&&K===0&&Z.push("yt-collection-thumbnail-slideshow--first-slide");K<=x&&Z.push("yt-collection-thumbnail-slideshow--show-slide");K=Z.join(" ");return _.u("div",{class:K},Epx(Y,{thumbnailViewModel:{disableRounding:W.disableRounding}}))}))};
Mr7=function(W){var P=_.n(KC(!1)),x=P.next().value,I=P.next().value;_.AQ(function(){if(W){var O=_.FY().resolve(_.Rl(Dkd));if(O){var B={triggeringElement:W,onDwellTriggeredFn:function(){I(!0)},
onDwellEndFn:function(){I(!1)}};
O.registerElement(B);return function(){O.unregisterElement(B)}}}});
return x};
$kR=function(W){var P=_.n(_.YV(!1,void 0,"RIOonf")),x=P.next().value,I=P.next().value;_.AQ(function(){var O=W==null?void 0:W();if(O){var B=_.FY().resolve(_.Rl(Dkd));if(B){var Y={triggeringElement:O,onDwellTriggeredFn:function(){I(!0)},
onDwellEndFn:function(){I(!1)}};
B.registerElement(Y);_.C4(function(){B.unregisterElement(Y)})}}});
return x};
H8S=function(W){var P,x=(P=_.FY().resolve(_.Rl(_.hF)))==null?void 0:P(),I=Mr7(W.triggeringElement),O=!!W.data.primaryThumbnail,B=function(){var K;return _.u("div",null,wS8(W.data.primaryThumbnail,{thumbnailViewModel:{width:W.width,height:W.height,aspectRatio:W.aspectRatio,disableRounding:W.disableRounding,className:O?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:W.hovered,playbackRef:W.playbackRef}}),fU(I&&((K=W.data.thumbnails)==null?void 0:K.length),function(){return _.u("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.u(hqt,{data:W.data,disableRounding:!O}))}))};
P=W.data.stackColor;var Y={experimentEnabled:O,thumbnailSize:T4(W.width,W.height),doubleStack:W.doubleStack,color:x?P==null?void 0:P.darkTheme:P==null?void 0:P.lightTheme,enableResponsiveMode:!1};return _.u("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},fU(O,function(){return _.u(dhd,{data:Y},B())}),fU(!O,B))};
eqA=function(W,P,x){x?x(P):_.D1(P,W.target?{form:{element:W.target}}:void 0)};
_.RS=function(W,P,x,I){_.jj(function(){var O=W.value;if(O){var B=new Map,Y,K=(Y=P())==null?void 0:Y.onTap;K&&(Y=function(Z){a:{var d=Z.composedPath();d=_.n(d);for(var v=d.next();!v.done;v=d.next()){v=v.value;if(v===O)break;if(v.className.indexOf("HostIsClickableAdComponent")>=0||v.tagName==="A".toString()||v.tagName==="BUTTON".toString()){d=!0;break a}}d=!1}d||(_.p("enable_square_image_components_ui_web_with_float_button")?_.Lf(W.value,"yt-navigate",{endpoint:_.AF(K)}):eqA(Z,K,x))},(I==null?0:I())||
_.p("enable_web_home_top_landscape_image_layout_level_click")?(O.addEventListener("tap",Y),B.set("tap",Y)):(O.addEventListener("click",Y),B.set("click",Y)));
_.C4(function(){for(var Z=_.n(B),d=Z.next();!d.done;d=Z.next()){var v=_.n(d.value);d=v.next().value;v=v.next().value;O.removeEventListener(d,v)}})}})};
cOU=function(W,P){var x,I=(x=W.interaction)==null?void 0:x.onTap;if(W=_.Gm({elementsCommand:I,forceNewState:!0,skipOnClick:!0}))return W.onclick=function(O){EmC(O)&&(O.preventDefault(),I&&eqA(O,I,P))},E2(W)?W:void 0};
aYC=function(W){switch(W){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
b8R=function(W){switch(W){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"}};
klR=function(W){switch(W){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"}};
_.UkS=function(W){return _.p("rich_grid_enable_dynamic_offset")&&W?Math.max(Math.round((W-_.Wi("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Wi("rich_grid_dynamic_offset_offset_per_100",10)),_.Wi("rich_grid_dynamic_offset_lower_bound",-60)):0};
XSt=function(W,P){switch(P){case 4:return 16;case 1:return W<528?16:W<1024?32:48;case 2:return(W>=528?16:8)/2;case 3:return(W<528?16:W<1024?32:48)+(W>=528?16:8)/2;default:return 0}};
fYt=function(W){var P=W.originalContainerWidth;var x=W.sizing;var I=W.standardUnit;if(W.isCompactList&&P<528)return 1;switch(x){case "STANDARD":return I;case "COMPACT":return I+1;case "EXTRA_COMPACT":return _.p("web_responsive_extra_compact_2x")?I*2:_.p("web_responsive_current")?I===1?2:I%2===0?I/2*3:I+2:I<4?I*2:Math.ceil(I*3/2);case "MINI":return I>1?I*2:3;default:return I}};
lYt=function(W){var P=W.containerWidth;var x=W.peek;var I=W.gutter;var O=W.numItems;W=W.ignoreMaxWidthLimit;P=x?Math.max((P-x-I*O)/O,0):Math.max((P-I*(O-1))/O,0);return W?P:Math.min(P,Nrt)};
_.Fd=function(W){var P=W.containerWidth;var x=W.hasPeek;var I=W.sizing;var O=W.marginSettings;var B=W.isCompactList;var Y=W.enableFullBleedForSingleCol;var K=W.standardUnitMinWidth;I=I||"STANDARD";x=!!x;W=P>=528?16:8;var Z=x?P>=528?48:24:0;O=XSt(P,O);var d=Math.max(P-O*2,0);K=_.p("kevlar_disable_min_width_override")?void 0:K;K=Math.min(Math.max(Math.floor((d-Z+W)/((K!=null?K:TrU)+_.UkS(P)+W)),1),6);var v=(Y=!!Y&&K===1)||K===1&&I!=="STANDARD";x=x||v?d:Math.min(d,(Nrt+W)*K-W);I=fYt({originalContainerWidth:P,
sizing:I,standardUnit:K,isCompactList:B});return{itemWidth:lYt({containerWidth:x,peek:Z,gutter:W,numItems:I,ignoreMaxWidthLimit:v}),gutter:W,maxContainerWidth:x,numItems:I,margin:Y?0:O,contentMargin:XSt(P,1),typographyBump:lYt({containerWidth:x,peek:Z,gutter:W,numItems:K,ignoreMaxWidthLimit:v})>400&&!(B&&P<528),standardUnit:K}};
rOt=function(W){switch(W){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.i88=function(W){if(W){var P;if((P=W.responsiveContainerConfiguration)==null?0:P.responsiveSize)return rOt(W.responsiveContainerConfiguration.responsiveSize);if(W.layoutSizing)switch(W.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"}}};
RqW=function(W){if(W.fullbleed)return 1;switch(W.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
W$G=function(W,P,x,I,O,B,Y,K){a:switch(W){case 4:B=!!(B&&B<100);break a;default:B=!1}a:switch(W){case 3:case 4:var Z=I==="LOCKUP_CONTENT_TYPE_CHANNEL"||I==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:Z=!1}a:switch(W){case 5:var d=!0;break a;case 4:d=!1;break a;default:d=!1}a:if(W===4&&I==="LOCKUP_CONTENT_TYPE_SOURCE")var v=1;else switch(W){case 3:v=1;break a;default:v=0}return{isOverlay:d,isCard:FjG(I,Y),sizing:P!=null?P:"STANDARD",typographyBump:x!=null?x:!1,isTiny:B,isCentered:Z,isCollection:qEC(I),
arrangement:v,addMarginForFullbleed:W===1&&I!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:W===1&&I==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:Lj8(I,O,K),disableRounding:W===5||FjG(I,Y)||W===1&&I==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:qEC(I)?2:0,useLegacyTypography:!(K==null||!K.useLegacyTypography),useRichGridLegacyTypography:!(K==null||!K.useRichGridLegacyTypography)&&!_.p("web_enable_typography_bump")}};
qEC=function(W){switch(W){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
FjG=function(W,P){if(P&&W==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(W){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
Lj8=function(W,P,x){if(P&&(x==null||!x.alwaysRespectPodcastShowAspectRatio||W!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(W){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}};
PKW=function(W){switch(W){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"}};
Oyd=function(W,P,x){a:switch(W.badgeStyle){case "BADGE_OVERLAY":var I=!0;break a;default:I=!1}return{type:P?16:xeS(W.badgeStyle),brNzRatingBadgeType:ITm(W.badgeStyle),text:W.badgeText,icon:W.iconName,isOverlay:I,modern:x||_.p("web_modern_badge_view_model")}};
xeS=function(W){switch(W){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
ITm=function(W){switch(W){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}};
Bsm=function(W){var P=W.data?Oyd(W.data,!!W.workaroundShortsIsThumbnailBadge,W.modern):void 0;return _.u("yt-badge-view-model",{class:_.BF("yt-badge-view-model-wiz",W.class)},fU(P==null?void 0:P.brNzRatingBadgeType,function(){return _.u(JD8,{data:P})}),fU(P&&!P.brNzRatingBadgeType,function(){return _.u(_.qI,{data:P})}))};
_.LC=function(W){if(W){var P;return((P=_.FY().resolve(_.Rl(_.hF)))==null?0:P())?W.darkThemeImage:W.image}};
yDm=function(W,P,x,I,O,B){if(!x)return O&&B&&P==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+O+"px; height: "+B+"px;":"";O=x.size;x=x.allowFullWidth;if(P==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&x)return"width: 100%;";if(O===void 0)return"";switch(W){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+O+"px; height: "+O+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+O+"px; height: "+1/nEU*
O+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+O*Ysx+"px; height: "+O+"px;";default:return(I==null?0:I.height)&&(I==null?0:I.width)?I.width/I.height>1?"max-width: "+O*Ysx+"px;":"max-width: "+O+"px;":"max-width: "+O+"px;"}};
K$G=function(W){var P;return W&&((P=_.LC(W.themedImage))!=null?P:W.image)};
ZyR=function(W){var P;return W==null?void 0:(P=W.sources)==null?void 0:P[0]};
Ssd=function(W,P){var x,I;return!!((W==null?0:(x=W.byline)==null?0:x.hideAvatar)&&((I=_.Q(P,oEm))==null?void 0:I.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
uQt=function(W,P){var x,I;return!!((W==null?0:(x=W.byline)==null?0:x.addPadding)&&((I=_.Q(P,oEm))==null?void 0:I.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
deC=function(W,P,x,I){var O={},B=(O["yt-content-metadata-view-model-wiz__delimiter"]=!0,O["yt-content-metadata-view-model-wiz__delimiter--standalone"]=I,O);return fU(P-1>x,function(){return _.u("span",{class:_.BF(B),"aria-hidden":!0},W)})};
vEt=function(W,P){return _.u(_.mQ,{text:W.text,linkInheritColor:!0,className:sBC(P),userInput:!0})};
Vso=function(W){var P=W.metadataPart;var x=W.isOverlay;var I=W.useMediumText;var O=W.hideAvatar;var B=1;P.maxLines!==void 0&&(B=P.maxLines);return _.u(_.qS,null,fU(P.avatarStack,function(){return me8(P.avatarStack,{avatarStackViewModel:{isOverlay:x,useMediumText:I,hideAvatar:O}})}),fU(P.text,function(){var Y=B;
return _.u(_.qS,null,P.tooltip?_.u("span",{title:P.tooltip,role:"tooltip"},vEt(P,Y)):vEt(P,Y))}))};
sBC=function(W){switch(W){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
tsx=function(W){var P=W.metadataRow;var x=W.isInline;var I=W.delimiter;var O=W.isOverlay;var B=W.useMediumText;var Y=W.extensions;var K=Ssd(Y==null?void 0:Y.lockupMetadata,P);W=uQt(Y==null?void 0:Y.lockupMetadata,P);Y=!!((Y==null?0:Y.lockupMetadata)&&P.badges);var Z={};W=(Z["yt-content-metadata-view-model-wiz__metadata-row"]=!0,Z["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=x,Z["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=W,Z["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
Y,Z);var d,v;return _.u("div",{class:_.BF(W)},(d=P.badges)==null?void 0:d.map(function(m){return _.u("div",{class:"yt-content-metadata-view-model-wiz__badge"},me8(m))}),(v=P.metadataParts)==null?void 0:v.map(function(m,t){return _.u(_.qS,null,Vso({metadataPart:m,
isOverlay:O,useMediumText:B,hideAvatar:K}),deC(I,P.metadataParts.length,t,!1))}),fU(P.isSpacerRow&&!x,function(){return _.u("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
p$8=function(W){var P=W.className;var x=W.data;var I=W.layout===void 0?0:W.layout;var O=W.isOverlay===void 0?!1:W.isOverlay;var B=W.useMediumText;var Y=W.extensions;W=_.fa();var K=I===0;I={};I=(I["yt-content-metadata-view-model-wiz"]=!0,I["yt-content-metadata-view-model-wiz--inline"]=K,I["yt-content-metadata-view-model-wiz--tappable"]=_.fC(x.rendererContext),I["yt-content-metadata-view-model-wiz--medium-text"]=B,I);_.M7m(W,x.rendererContext);return _.u("yt-content-metadata-view-model",{class:_.BF(P,
I),el:W},fU(x.metadataRows,function(){return x.metadataRows.map(function(Z,d){return _.u(_.qS,null,tsx({metadataRow:Z,isInline:K,delimiter:x.delimiter,isOverlay:O,useMediumText:B,extensions:Y}),fU(K&&!Z.isSpacerRow,function(){return deC(x.delimiter,x.metadataRows.length,d,!0)}))})}))};
jBm=function(W){switch(W){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
QBS=function(W){if(W==null?0:W.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(W==null?void 0:W.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
CK8=function(W){if(W==null?0:W.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(W==null?void 0:W.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
zzm=function(W){var P,x,I,O,B,Y,K={},Z=_.BF(QBS(W.lockupStyle),CK8(W.lockupStyle),(K["yt-lockup-metadata-view-model-wiz"]=!0,K["yt-lockup-metadata-view-model-wiz--overlay"]=(P=W.lockupStyle)==null?void 0:P.isOverlay,K["yt-lockup-metadata-view-model-wiz--card"]=(x=W.lockupStyle)==null?void 0:x.isCard,K["yt-lockup-metadata-view-model-wiz--centered"]=(I=W.lockupStyle)==null?void 0:I.isCentered,K["yt-lockup-metadata-view-model-wiz--typography-bump"]=(O=W.lockupStyle)==null?void 0:O.typographyBump,K["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(B=W.lockupStyle)==null?void 0:B.useLegacyTypography,K["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(Y=W.lockupStyle)==null?void 0:Y.useRichGridLegacyTypography,K)),d,v,m,t,C,z;return _.u("yt-lockup-metadata-view-model",{class:Z},fU(W.data.image,function(){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},ADo(W.data.image,{avatarStackViewModel:{overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}}))}),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},
_.u("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(d=W.data.title)==null?void 0:d.content},fU(W.data.title,function(){return _.u(_.vF,{command:W.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:W.lockupAccessibilityLabel},_.u(_.mQ,{text:W.data.title}))})),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},ADo(W.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((v=W.lockupStyle)==null?void 0:v.typographyBump)||((m=W.lockupStyle)==null?void 0:m.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((t=W.lockupStyle)==null?void 0:t.arrangement)===0,addPadding:((C=W.lockupStyle)==null?void 0:C.arrangement)===1}}}}})),fU(W.data.attribution,function(){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},ADo(W.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
ADo(W.data.menuButton,((z=W.lockupStyle)==null?0:z.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
Gxm=function(W){switch(W.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"}}};
EEd=function(W){var P=_.dkm(_.HM().getState())||"";return W?W+P:""};
gEU=function(W){switch(W){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Mso=function(W){var P=_.n(_.YV(void 0,void 0,"BIquNb")),x=P.next().value,I=P.next().value,O=_.n(_.YV(void 0,void 0,"eR0GH"));P=O.next().value;var B=O.next().value,Y=_.n(_.YV(void 0,void 0,"UmkP0"));O=Y.next().value;var K=Y.next().value;Y=_.yB(function(v){if(DeR(_.Ua(v)))return!1;I(v);B(void 0);K(void 0);return!0});
var Z=_.yB(function(v){W==null||W(v);if(DeR(_.Ua(v)))return!1;B(v);I(void 0);K(void 0);return!0}),d=_.yB(function(v){DeR(_.Ua(v))||(K(v),B(void 0),I(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:x,pointerDownEvent:P,pointerLeaveEvent:O},touchFeedbackOnPointerUp:Y,touchFeedbackOnPointerDown:Z,touchFeedbackOnPointerLeave:d}};
DeR=function(W){var P=["BUTTON".toString()];W=_.n(W);for(var x=W.next();!x.done;x=W.next()){x=x.value;for(var I=_.n(P),O=I.next();!O.done;O=I.next())if(x.tagName===O.value)return!0}return!1};
$e8=function(W){switch(W){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"}};
w$R=function(W,P){var x;return icS(W,((x=W.content)==null?void 0:x.length)||0,!P)};
hzG=function(W,P){P=w$R(W,P);var x,I;return(((x=W.content)==null?void 0:x.length)||0)>(((I=P.content)==null?void 0:I.length)||0)};
Hy8=function(W){var P=W.isTruncated;var x=W.isAbsoluteButton;var I=W.lineHeight;var O=W.contentRef.value,B=W.placeholderTruncationTextRef.value,Y=W.truncationTextRef.value;W=W.appDirection==="rtl";if(O&&B){var K=B.offsetLeft;W&&(K=O.offsetWidth-B.offsetWidth-B.offsetLeft);if(P){P=B.offsetWidth;B=O.offsetWidth;var Z=x?B-P-70:K-70;I="linear-gradient(\n      to top, transparent 0%,\n      transparent "+I+"px,\n      #000 "+I+"px,\n      #000 100%), linear-gradient(\n      to "+((W?"left":"right")+",\n      #000 0px,\n      #000 "+
Z+"px,\n      transparent "+(x?B-P:Z+70)+"px)");O.style.setProperty("-webkit-mask-image",I);O.style.setProperty("mask-image",I)}else O.style.setProperty("-webkit-mask-image",""),O.style.setProperty("mask-image","");x?W?(Y.style.setProperty("left","0"),Y.style.setProperty("right","unset")):(Y.style.setProperty("left",""),Y.style.setProperty("right","0")):W?(Y.style.setProperty("left","unset"),Y.style.setProperty("right",K+"px")):(Y.style.setProperty("left",K+"px"),Y.style.setProperty("right","unset"))}};
ezU=function(W,P,x,I,O,B,Y){var K=_.fa(),Z=_.fa(),d=_.fa(),v=w$R(W,O),m=_.FY().resolve(_.eS),t=_.n(KC(hzG(W,O))),C=t.next().value,z=t.next().value,D=EV(null);CX(function(){function w(){if(K.value&&Z.value&&d.value){var T=K.value;T.scrollHeight-T.offsetHeight>1?(z(!0),I||Hy8({isTruncated:!0,isAbsoluteButton:!0,lineHeight:x,contentRef:K,placeholderTruncationTextRef:Z,truncationTextRef:d,appDirection:m})):(T=hzG(W,O),z(T),I||Hy8({isTruncated:T,isAbsoluteButton:!1,lineHeight:x,contentRef:K,placeholderTruncationTextRef:Z,
truncationTextRef:d,appDirection:m}))}}
var a,k;(a=D.value)==null||(k=a.stop)==null||k.call(a);a=new _.WO(w,17);w();D.value=a},[W.content,
P,x,m,I,B,Y,O]);_.AQ(function(){var w=function(){var k,T;(k=D.value)==null||(T=k.fire)==null||T.call(k)};
if(window.ResizeObserver){var a=new ResizeObserver(w);a.observe(K.value);return function(){var k,T;(k=D.value)==null||(T=k.stop)==null||T.call(k);a.disconnect()}}window.addEventListener("resize",w);
return function(){var k,T;(k=D.value)==null||(T=k.stop)==null||T.call(k);window.removeEventListener("resize",w)}});
return{isTruncated:C,displayText:v,contentRef:K,placeholderTruncationTextRef:Z,truncationTextRef:d}};
cDU=function(W){return _.u("button",{"aria-disabled":!0,disabled:!0,class:W.className,el:W.elRef,style:"line-height: "+W.lineHeight+"px;"},_.u(_.mQ,{text:W.text}))};
aTW=function(W){var P=W.text;var x=W.alwaysShowTruncationText;var I=W.truncationText;var O=W.onExpandClick;var B=W.lineHeight===void 0?16:W.lineHeight;var Y=W.maxLines===void 0?2:W.maxLines;var K=W.disableTextMask===void 0?!1:W.disableTextMask;var Z=W.textStyle===void 0?"default":W.textStyle;var d=W.accessibilityLabel===void 0?"":W.accessibilityLabel;var v=W.textSize===void 0?"small":W.textSize;var m=W.alwaysTruncateAtMaxLines===void 0?!1:W.alwaysTruncateAtMaxLines;W=_.yB(function(){return void(O==
null?void 0:O())});
var t=ezU(P,Y,B,K,m,v,Z),C=t.isTruncated;P=t.displayText;m=t.contentRef;var z=t.placeholderTruncationTextRef;t=t.truncationTextRef;var D={};x=_.BF((D["truncated-text-wiz__absolute-button"]=!K,D["truncated-text-wiz__bottom-button"]=K,D["truncated-text-wiz--hidden"]=!(x||C),D));K={};Z=_.BF((K["truncated-text-wiz"]=!0,K["truncated-text-wiz--overlay"]=Z==="overlay",K["truncated-text-wiz--medium-text"]=v==="medium",K["truncated-text-wiz--large-text"]=v==="large",K["truncated-text-wiz--primary-text"]=Z===
"primary-text",K));return _.u("truncated-text",{class:Z,"on:click":W,style:"line-height: "+B+"px;"},_.u("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:m,style:"max-height: "+Y*B+"px;"},_.u(_.mQ,{text:P}),_.u(cDU,{text:I,lineHeight:B,elRef:z,className:"truncated-text-wiz__inline-button"})),_.u("button",{"aria-label":d,class:x,el:t,style:"line-height: "+B+"px;"},_.u(_.mQ,{text:I})))};
byd=function(W){return{content:W!=null?W:""}};
X$W=function(W){var P=W.data;var x;W={class:W.className};a:switch(P.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var I="yt-video-attribute-view-model--vertical";break a;default:I="yt-video-attribute-view-model--horizontal"}a:switch(P.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var O="yt-video-attribute-view-model--image-small";break a;default:O="yt-video-attribute-view-model--image-large"}a:switch(P.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var B="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":B="yt-video-attribute-view-model--image-avatar";break a;default:B=""}a:switch(P.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Y="yt-video-attribute-view-model--metadata-header";break a;default:Y=""}a:switch(P.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var K="yt-video-attribute-view-model--container-card";break a;default:K=""}var Z=_.AF(P.onTap)||_.Xd(P.rendererContext)?"yt-video-attribute-view-model--clickable":"";
I=["yt-video-attribute-view-model",I,O,B,Y,K,Z].join(" ");if(P.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var d="";else O=P.lightColorPalette,B=P.darkColorPalette,Y=((d=_.FY().resolve(_.Rl(_.hF)))==null?0:d())&&B?B:O,d=(d=Y==null?void 0:Y.section2Color)?_.Qy(d):"";return _.u("yt-video-attribute-view-model",W,_.u("div",{class:I,style:_.oP({"background-color":d})},_.u(Kj7,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(x=_.AF(P.onTap))!=
null?x:_.Xd(P.rendererContext),role:"group",ariaLabel:P.title,forceNewState:!0},P.heroText||P.image?_.u(kxt,{data:P}):null,_.u(UeG,{data:P,sizeSmall:P.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
fTm=function(W){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:W.overflowMenuA11yLabel,onTap:function(P){P.preventDefault();P.stopPropagation();if(W.overflowMenuOnTap){var x=_.Gm({elementsCommand:W.overflowMenuOnTap,forceNewState:!0});if(x==null?0:x.onclick)x.onclick(P)}}}};
kxt=function(W){W=W.data;var P,x=((P=_.FY().resolve(_.Rl(_.hF)))==null?0:P())&&W.darkThemeImage?W.darkThemeImage:W.image;P=fTm(W);return _.u("div",{class:"yt-video-attribute-view-model__hero-section"},x?_.u(_.bq,{data:x,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):W.heroText?_.u("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.u("span",{class:"yt-video-attribute-view-model__hero-text"},W.heroText)):null,W.overflowMenuOnTap?
_.u("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.u(PO,{data:P,iconName:"MORE_VERT"})):null)};
UeG=function(W){var P=W.data;W=W.sizeSmall;var x=P.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",I=_.AF(P.onTap)||_.Xd(P.rendererContext);I=_.Gm({innertubeCommand:I});I=E2(I);var O={};W={class:_.BF("yt-video-attribute-view-model__metadata",(O["yt-video-attribute-view-model--small-font"]=W,O)),role:I?"link":"group"};I=_.u("h1",{class:"yt-video-attribute-view-model__title"},P.title);x=P.subtitle?_.u("h4",{class:"yt-video-attribute-view-model__subtitle"},x?_.u(aTW,{text:byd(P.subtitle),truncationText:byd(P.subtitleTruncationText),
maxLines:2}):_.u("span",null,P.subtitle)):null;if(P.secondarySubtitle){O=P.secondarySubtitle;if(O!=null&&O.attachmentRuns){for(var B=[],Y=_.n(O.attachmentRuns),K=Y.next();!K.done;K=Y.next())K=K.value,K.element&&B.push(Object.assign({},K,{element:Object.assign({},K.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));O=Object.assign({},O,{attachmentRuns:B})}O=_.u("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.u(_.mQ,{text:O}))}else O=null;return _.u("div",W,I,x,O,P.buttonViewModel?NsR(P.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
Tsm=function(W){var P={};P=_.BF("video-summary-content-view-model-wiz",W.className,(P["video-summary-content-view-model-wiz--is-search"]=!!W.isSearch,P));var x=_.Q(W.data.likeButtonViewModel,_.wp),I=_.Q(W.data.dislikeButtonViewModel,_.hp),O=zO(function(){var B=[],Y,K=(Y=W.data)==null?void 0:Y.paragraphs;if(K==null||!K.length)return[];for(Y=0;Y<K.length;Y++){var Z=_.Q(K[Y],lTG),d=void 0;Y>0&&(d=_.Q(K[Y-1],lTG));d&&!!d.marker===!!Z.marker?B[B.length-1].paragraphs.push(Z):B.push({isList:!!Z.marker,paragraphs:[Z]})}return B},
[W.data]);
return _.u("video-summary-content-view-model",{class:P},O.map(function(B){return B.isList?_.u("ul",{class:"video-summary-content-view-model-wiz__list"},B.paragraphs.map(function(Y){return _.u("li",{class:"video-summary-content-view-model-wiz__list-item"},_.u(_.mQ,{text:Y.text}))})):B.paragraphs.map(function(Y){return _.u("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.u(_.mQ,{text:Y.text}))})}),fU(!!x&&!!I,function(){return _.u("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.u("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.u(cRR,{data:x,
disableIconAnimation:!0})),_.u(aD8,{data:I}))}))};
_.xA=function(W,P,x,I,O){I=I===void 0?{}:I;if(!O||Math.random()<5E-4){P=P||null;x=x||null;W=W instanceof Error?W:new _.mW(W);if(W.args)for(var B=_.n(W.args),Y=B.next();!Y.done;Y=B.next())Y=Y.value,Y instanceof Object&&(I=Object.assign({},Y,I));I.category="H5 Ads Control Flow";P&&(I.slot=P?"slot:  "+P.slotType:"");x&&(I.layout=x?"layout:  "+x.layoutType:"",I.layoutId=x.layoutId);O&&(I.known_error_aggressively_sampled=!0);W.args=[I];_.ge(W)}};
_.rDd=function(W,P){_.W7(W,"yt-open-popup-action",[_.NB(P),W])};
_.Iq=function(W,P){_.rDd(W,_.bx(P))};
RzU=function(W){if(!W)return"";if(iy7[W])return iy7[W];Or||(Or=_.ZV("A"));Or.href!==W&&AH(Or,W);var P=Or.pathname;iy7[W]=P.startsWith("/")?P:"/"+P;return iy7[W]};
F$C=function(){var W=RzU(window.location.href);if(W==="/")return"home";if(W.startsWith("/results"))return"search";if(W.startsWith("/watch"))return"watch";if(W.startsWith("/shorts"))return"shorts";if(W.startsWith("/hashtag"))return"hashtag";if(W.startsWith("/create_channel"))return"create_channel";if(W.startsWith("/@")||W.startsWith("/user/")||W.startsWith("/channel/"))return"channel";if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/sponsor_channel"))return"sponsorship";if(W.startsWith("/select_site"))return"settings";
if(W.startsWith("/locate"))return"locate";if(W.startsWith("/redeem"))return"redeem";if(W.startsWith("/musicpremium")||W.startsWith("/premium")||W.startsWith("/red"))return"premium";if(W.startsWith("/paid_memberships"))return"paid_memberships";if(W.startsWith("/oops"))return"oops";if(W.startsWith("/clip"))return"clip";var P;return(J3==null?void 0:(P=J3.response)==null?void 0:P.page)==="404"?"404":W.startsWith("/feed/history")?"history":W.startsWith("/feed/library")?"library":W.startsWith("/feed/subscriptions")?
"subscriptions":W.startsWith("/feed/trending")?"trending":W.startsWith("/feed/news_destination")?"news":W.startsWith("/playlist")?"playlist":W.startsWith("/minor_moment")?"minor_moment":W.startsWith("/playable/")||W.match("^/playables/(?!saved).")?"mini_app":W.startsWith("/playables")?"playables":W.startsWith("/create/live/join")?"open_in_app":W.startsWith("/feed/explore")?"explore":"browse"};
_.Pvx=function(){var W=J3==null?void 0:J3.response,P=W==null?void 0:W.endpoint;if(!P)return(W==null?void 0:W.page)==="watch"?"watch":F$C();var x;W=(x=_.Q(P==null?void 0:P.commandMetadata,_.rU))==null?void 0:x.webPageType;x=!1;if(W&&!qs8.includes(W))switch(W){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 I;return((I=_.Q(P==null?void 0:P.commandMetadata,_.rU))==null?0:I.url)&&RzU(_.Q(P.commandMetadata,_.rU).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var O;return(P=(O=_.Q(P,_.KL))==null?void 0:O.browseId)?L$W[P]||"browse":"browse";default:x=!0}if(_.Q(P,_.BO)||_.Q(P,W2U))return"sponsorship";O=RzU(window.location.href);if(O.startsWith("/experiments"))return"experiments";if(O.startsWith("/create_channel"))return"create_channel";
if(_.Q(P,_.aR)&&O.startsWith("/shorts"))return"shorts";if(_.Q(P,_.aR)&&O.startsWith("/watch"))return"watch";x&&(P=new _.mW("Unsupported mWeb page type",{pathname:O,webPageType:W}),_.G$(P));return"browse"};
YQG=function(W){var P=W.data;var x=W.inlineMetadata;var I=W.aspectRatio;var O=W.scrimStyle;var B=W.useDefaultStyle;var Y=W.className;var K=EV(new xqm);W=_.p("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=B?W==="SHORTS_LOCKUP_STYLE_SLIM":P.style==="SHORTS_LOCKUP_STYLE_SLIM";x=x||W||!1;O=O!==void 0?O:1;var Z=_.fa(function(w){K.value&&(K.value.hostElement=w,D())});
_.FL(Z,{visibilityCallback:function(w){w&&P.onFirstVisible&&_.D1(P.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});Y=_.BF("shortsLockupViewModelHost",Y);var d=_.Gm({elementsCommand:P.onTap}),v=_.fa();_.yOd(v,_.AF(P.onTap));var m=_.yB(function(w){if(d==null?0:d.onclick)d.onclick(w);return!1}),t=_.fa(),C=[];
C.push("shortsLockupViewModelHostThumbnailContainer");I===1?C.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):I===2&&C.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");W||C.push("shortsLockupViewModelHostThumbnailContainerRounded");_.p("web_shorts_2_by_3_lockups_study")||_.p("desktop_search_enable_two_by_three_shorts_aspect_ratio")||C.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var z,D=function(){if(K.value){var w;(w=z)==null||
no(w);w=K.value;var a;w.hostElement&&((a=w.data)==null?0:a.inlinePlayerData)&&(z=ir({mediaRenderer:w,lockupElement:w.hostElement,thumbnailElement:t.value,videoPreviewOpts:IJ8}))}};
CX(function(){K.value&&(K.value.data=P,D())},[P]);
return _.u("ytm-shorts-lockup-view-model",{el:Z,class:Y},_.u("a",{el:v,"on:click":m,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!x,tabindex:x?0:-1},_.u("div",{el:t,class:C.join(" ")},fU(P.thumbnail,function(){return _.u(_.qS,null,_.u(_.bq,{data:P.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),x?_.u(OHU,{data:P,
scrimStyle:O,useDefaultStyle:B}):null,JjW(P.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),x&&P.menuOnTap?_.u(BPR,{data:P,inlineMetadata:x}):null,x?null:_.u(ndx,{useDefaultStyle:B,data:P}))};
OHU=function(W){var P=W.data;var x=W.scrimStyle;var I=W.useDefaultStyle;var O=_.p("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=I&&_.p("web_hide_primary_text_for_pivot_panel");var B={};I=_.BF("shortsLockupViewModelHostInlineMetadata",(B.shortsLockupViewModelHostMetadataRounded=!(I?O==="SHORTS_LOCKUP_STYLE_SLIM":P.style==="SHORTS_LOCKUP_STYLE_SLIM"),B.shortsLockupViewModelHostInlineMetadataShortScrim=x===3&&!_.p("enable_shorts_lockup_new_scrim"),
B.shortsLockupViewModelHostInlineMetadataShortScrimNew=x===3&&_.p("enable_shorts_lockup_new_scrim"),B.shortsLockupViewModelHostInlineMetadataMediumScrim=x===2||x===4,B.shortsLockupViewModelHostShowOverPlayer=!0,B));var Y,K;O={};return _.u("div",{class:I+" image-overlay-text"},_.u("h3",{class:_.O4("shortsLockupViewModelHostMetadataTitle",(O.shortsLockupViewModelHostMetadataTitleTextShadow=x===4,O)),"aria-label":P.accessibilityText},fU(((Y=P.overlayMetadata)==null?void 0:Y.primaryText)&&!W,function(){return _.u(_.mQ,
{text:P.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((K=P.overlayMetadata)==null?0:K.secondaryText)?_.u(yjG,{data:P,
scrimStyle:x}):null)};
ndx=function(W){var P=W.data;var x=_.p("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=(W.useDefaultStyle?x==="SHORTS_LOCKUP_STYLE_SLIM":P.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var I=_.Gm({elementsCommand:P.onTap});x=_.fa();_.yOd(x,_.AF(P.onTap));var O=_.yB(function(m){if(I==null?0:I.onclick)I.onclick(m);return!1}),B,Y,
K,Z,d,v={};
return _.u("div",{class:W+" image-overlay-text","on:click":O},_.u("h3",{class:_.O4("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(v.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((B=P.overlayMetadata)==null?0:(Y=B.primaryText)==null?0:Y.content),v)),"aria-label":P.accessibilityText},_.u("a",{el:x,"on:click":O,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(K=P.overlayMetadata)==null?void 0:(Z=K.primaryText)==
null?void 0:Z.content},fU(P.overlayMetadata,function(){return _.u(_.mQ,{text:P.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((d=P.overlayMetadata)==null?0:d.secondaryText)?_.u(yjG,{data:P,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,P.menuOnTap?_.u(BPR,{data:P,inlineMetadata:!1}):null)};
yjG=function(W){var P=W.data;var x=W.scrimStyle;W=W.className;var I,O={};return _.u("div",{class:_.O4((O.shortsLockupViewModelHostMetadataSubhead=x!==4,O.shortsLockupViewModelHostMetadataSubheadNew=_.p("enable_shorts_lockup_new_scrim"),O.shortsLockupViewModelHostMetadataSubheadTextShadow=x===4,O),W),"aria-hidden":"true"},_.u(_.mQ,{text:(I=P.overlayMetadata)==null?void 0:I.secondaryText,noStyleRuns:!0}))};
BPR=function(W){var P={};P=_.BF((P.shortsLockupViewModelHostInlineMetadataMenu=W.inlineMetadata,P.shortsLockupViewModelHostOutsideMetadataMenu=!W.inlineMetadata,P.shortsLockupViewModelHostShowOverPlayer=!0,P));return _.u("div",{class:P},_.u(PO,{data:{style:W.inlineMetadata?"overlay":"mono",accessibilityLabel:W.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(x){x.preventDefault();x.stopPropagation();var I=_.Gm({elementsCommand:W.data.menuOnTap,forceNewState:!0});
if(I==null?0:I.onclick)I.onclick(x)}},
iconName:"MORE_VERT"}))};
YA=function(W,P,x,I){return W&&P?W!==x||P!==I?(_.xA(Error("Gh"),void 0,void 0,{"stored-slot":W,"stored-layout":P,"latest-slot":x,"latest-layout":I}),!1):!0:!1};
K28=function(W,P,x){return W({targetId:P},function(I){return x.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},I,{header:x.continuationItems?x.continuationItems[0]:void 0}):Object.assign({},I,{contents:x.continuationItems?x.continuationItems:[]})})};
ZHR=function(W,P,x,I){if(P=P.trackingParams){var O,B=(O=x.getScreenLayer)==null?void 0:O.call(x);x=_.E_(B);O=_.G7(B);if(x&&O){var Y=_.ox(P);_.p("combine_ve_grafts")?W.graftServerVe(P,O,B):_.hn(x,O,Y);I==null||I(Y)}}};
SQx=function(W){var P;return((P=odd.get(W))==null?void 0:P.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
sHt=function(W,P){var x={type:P.slotType,controlFlowManagerLayer:uFW.get(P.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};P.slotEntryTrigger&&(x.entryTriggerType=P.slotEntryTrigger.triggerType);P.slotPhysicalPosition!==1&&(x.slotPhysicalPosition=P.slotPhysicalPosition);if(W){x.debugData={slotId:P.slotId};if(W=P.slotEntryTrigger)x.debugData.slotEntryTriggerData=dqm(W);W=P.slotFulfillmentTriggers;x.debugData.fulfillmentTriggerData=[];W=_.n(W);for(var I=W.next();!I.done;I=W.next())x.debugData.fulfillmentTriggerData.push(dqm(I.value));
P=P.slotExpirationTriggers;x.debugData.expirationTriggerData=[];P=_.n(P);for(W=P.next();!W.done;W=P.next())x.debugData.expirationTriggerData.push(dqm(W.value))}return x};
dqm=function(W,P){var x={type:W.triggerType};P!=null&&(x.category=P);W.triggeringSlotId!=null&&(x.triggerSourceData||(x.triggerSourceData={}),x.triggerSourceData.associatedSlotId=W.triggeringSlotId);W.triggeringLayoutId!=null&&(x.triggerSourceData||(x.triggerSourceData={}),x.triggerSourceData.associatedLayoutId=W.triggeringLayoutId);return x};
vdR=function(W,P,x,I){P={opportunityType:P};W&&(I||x)&&(I=_.C5(I||[],function(O){return sHt(W,O)}),P.debugData=Object.assign({},x&&x.length>0?{associatedSlotId:x}:{},I.length>0?{slots:I}:{}));
return P};
mqW=function(W){return Ko(W.opportunityAdapterMap).concat(Ko(W.triggerAdapterMap)).concat(Ko(W.fulfillmentAdapterFactoryMap)).concat(Ko(W.slotAdapterFactoryMap)).concat(Ko(W.layoutRenderingAdapterFactoryMap))};
Ko=function(W){var P=[];W=_.n(W.values());for(var x=W.next();!x.done;x=W.next())x=x.value,x.isAdsControlFlowEventListener&&P.push(x);return P};
oq=function(W){var P=W.slotId,x=W.slotType,I=W.slotPhysicalPosition;return P===void 0?new ZI("Cannot construct a slot due to the missing id.",{adSlotMetadata:W}):x===void 0?new ZI("Cannot construct a slot due to the missing type.",{adSlotMetadata:W}):I===void 0?new ZI("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:W}):{slotId:P,slotType:x,slotPhysicalPosition:I,managerLayer:"external",adSlotLoggingData:W.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new VFR}};
tFC=function(W){var P=W.layoutId,x=W.layoutType;return P===void 0?new SQ("Cannot construct a layout due to the missing id.",{adLayoutMetadata:W}):x===void 0?new SQ("Cannot construct a layout due to the missing type.",{adLayoutMetadata:W}):{layoutId:P,layoutType:x,managerLayer:"external",adLayoutLoggingData:W.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new VFR,interactionLoggingAdsClientData:{}}};
p2G=function(W){if((W=W.value)&&W.querySelector("img")){var P=W.querySelector("img");P.addEventListener("error",function(){mNS(P.src).then(function(x){(x=_.V4(x).toString())?P.src=x:P.removeAttribute("src")}).catch(function(){P.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
dn=function(W,P){if(P&&(jHm(P.viewableCommand)||jHm(P.endOfSessionCommand))){W=W.value;var x=QHt(P==null?void 0:P.viewableCommand);P=QHt(P==null?void 0:P.endOfSessionCommand);if(!u6){var I=_.Wi("active_view_tos_timeout_ms");u6=I>0?new CvC(Ajx(),I):new CvC(Ajx())}z1m(u6,W);Gzt(u6,W,x,P)}};
sr=function(W){u6&&z1m(u6,W.value)};
Ajx=function(){var W=_.$$("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
jHm=function(W){W=_.AF(W);return!(W==null||!W.loggingUrls)&&W.loggingUrls.length>0};
QHt=function(W){if(!W)return[];var P=[],x,I;((I=(x=_.AF(W))==null?void 0:x.loggingUrls)!=null?I:[]).forEach(function(O){O.baseUrl&&P.push(O.baseUrl)});
return P};
Edm=function(W){return W.shorts.isDesktopSmallWidth};
_.gdm=function(W){return W.shorts.isWatchWhileMode};
_.vO=function(W){return W.shorts.isFullscreen};
_.m0=function(W){return W.shorts.isShortsPipActive};
MFC=function(W){var P,x;if(W=(P=_.Q(W.reelsAdCardButtoned,Dqo))==null?void 0:(x=P.animatedRenderingConfig)==null?void 0:x.easeOutSeconds)return W+"s"};
w2W=function(W,P,x){return _.y(function(I){return I.return(new Promise(function(O){var B=new Image;B.onload=function(){O(new $q8(W,P,x,B.naturalWidth,B.naturalHeight))};
B.src=x.toString()}))})};
h1C=function(W,P){return Math.round(W/1E-5)===Math.round(P/1E-5)};
HHR=function(W,P){return Math.round(W/1E-5)===Math.round(P/1E-5)};
e1o=function(W,P){return W.year===P.year&&W.month===P.month&&W.day===P.day};
cjC=function(W,P){return W.year!==P.year?W.year<P.year:W.month!==P.month?W.month<P.month:W.day<P.day};
bHm=function(W){return W.day===aJU(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}};
kzm=function(){var W=new Date,P={year:W.getFullYear(),month:W.getMonth(),day:W.getDate()};return{start:P,end:{year:W.getFullYear()+2,month:W.getMonth(),day:W.getDate()},selectedDate:bHm(P)}};
Uqm=function(W){return(new cu(2)).format(new Date(W.year,W.month,W.day))};
X2S=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
fJ8=function(W,P){W=(W+(Number(P.utcOffsetSec)+(new Date(W*1E3)).getTimezoneOffset()*60))*1E3;P=X2S(new Date(W));return{date:P,secondsSinceMidnight:Math.floor((W-(new Date(P.year,P.month,P.day)).getTime())/1E3)}};
NPW=function(W,P){P=P.months.findIndex(function(x){return x.year===W.year&&x.month===W.month});
return P>=0?P:void 0};
lJW=function(W){if(!W)return!1;try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENTBOX")return!0}catch(P){return!1}return lJW(W.parentNode)};
Vt=function(W){return W?!(W.tagName!=="A"||!W.href||!W.classList.contains("yt-simple-endpoint")):!1};
TP8=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1};
rjG=function(W,P,x){if(!W)return null;var I=Vt(W);if(I&&x)return P=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+P);if(I&&!x)return document.createTextNode("");if(TP8(W))return x=W.alt,W=W.dataset.emojiId,!W&&P&&(P=_.t3(P,x))&&P.isCustomEmoji&&(W=P.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(x);I=W.cloneNode(!1);for(var O=0;O<W.childNodes.length;++O){var B=rjG(W.childNodes[O],P,x);B&&I.appendChild(B)}return I};
po=function(W){return W?Vt(W)?W:po(W.lastChild):null};
iHm=function(W){return W?Vt(W)?W:iHm(W.firstChild):null};
R1d=function(W){if(!W)return null;for(var P=W.previousSibling;P;)if(P.nodeType===Node.ELEMENT_NODE&&P.nodeName==="BR")P=P.previousSibling;else if(P.nodeType===Node.TEXT_NODE&&/\s+/.test(P.textContent))P=P.previousSibling;else break;(P=po(P))?W=P:W=(W=W.parentNode)?po(W.previousElementSibling):null;return W};
F2d=function(W){if(!W)return null;for(var P=W.nextSibling;P;)if(P.nodeType===Node.ELEMENT_NODE&&P.nodeName==="BR")P=P.nextSibling;else if(P.nodeType===Node.TEXT_NODE&&/\s+/.test(P.textContent))P=P.nextSibling;else break;return(P=iHm(P))?P:F2d(W.parentNode)};
qQG=function(W){var P=_.jQ(),x=P.JSC$9152_getStartNode();if(!lJW(x.parentNode))return null;P=P.JSC$9152_getStartOffset();if(x.nodeType===Node.TEXT_NODE){var I=_.MT(x,Vt);if(I){if(W&&P===0||!W&&P===x.length)return I}else{if(W&&P===x.length)return!x||x.nodeName==="BR"||x.nextElementSibling&&_.Qt(x.nextElementSibling,"display")==="block"?null:iHm(x.nextElementSibling);if(!W&&P===0)return x?po(x.previousElementSibling):null}}if(x.nodeType===Node.ELEMENT_NODE)if(W){if(0<=P&&P<x.childNodes.length)return iHm(x.childNodes[P])}else if(0<
P&&P<=x.childNodes.length)return po(x.childNodes[P-1]);return null};
L2x=function(W,P,x){if(!W)return null;if(W.nodeType===Node.TEXT_NODE)if(x){var I=R1d(W);if(I&&!/^\s+\S/.test(W.wholeText.substr(0,P)))return I}else if((I=F2d(W))&&!/\S\s+/.test(W.wholeText.substr(P,W.wholeText.length)))return I;return W.nodeType===Node.ELEMENT_NODE?x?R1d(W.childNodes[P]):F2d(W.childNodes[P]):L2x(W.parentNode,P,x)};
WDo=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var P="";for(W=W.firstChild;W;W=W.nextSibling)P+=WDo(W);return P;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}};
Co=function(W,P){return W.year===P.year&&W.month===P.month&&W.day===P.day};
A3=function(W,P){return W.year!==P.year?W.year<P.year:W.month!==P.month?W.month<P.month:W.day<P.day};
PlR=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
xDd=function(W){var P=qtR;P=P===void 0?qtR:P;P(new Date(W.year,W.month,W.day))};
za=function(W){return PlR(new Date(Number(W.seconds)*1E3))};
I6d=function(W){return W.year!==void 0&&W.month!==void 0&&W.day!==void 0};
OiC=function(W){return W.start!==void 0&&W.end!==void 0};
J4S=function(W){return OiC(W)?W.start:W};
B2G=function(W){return OiC(W)?W.end:void 0};
YGW=function(W,P){for(var x=[],I=new Date(W.start.year,W.start.month);I.getFullYear()<W.end.year||I.getFullYear()===W.end.year&&I.getMonth()<=W.end.month;){var O=x,B=O.push,Y=I.getFullYear(),K=I.getMonth(),Z=W,d=P,v=void 0,m=[],t=Object.freeze({extraCssClass:"invisible"}),C=new Date(Y,K),z=PlR(C);C=C.getDay();for(var D=PlR(new Date);z.month===K;){C!==ngt&&v||(v=Array.from({length:7}).fill(t),m.push(v));var w={date:{year:Y,month:K,day:z.day},extraCssClass:"",debugClass:""};w.extraCssClass=d(w.date,
z,D,Z).trim();v[(C-ngt+7)%7]=w;z=z.day===aJU(z.year,z.month)?z.month===11?{year:z.year+1,month:0,day:1}:{year:z.year,month:z.month+1,day:1}:{year:z.year,month:z.month,day:z.day+1};C=(C+1)%7}B.call(O,{weeks:m,monthLabel:Ga.SHORTMONTHS[K]+" "+Y,year:Y,month:K,monthLabelExtraCssClass:m[0][2]===t?"shift-down-label":""});I.setMonth(I.getMonth()+1)}return x};
y4W=function(W,P){P=P.months.findIndex(function(x){return x.year===W.year&&x.month===W.month});
return P>=0?P:void 0};
ZiC=function(W,P){a:{var x=x===void 0?[2,3]:x;x=_.n(x);for(var I=x.next();!I.done;I=x.next()){var O=new Date;if((new KDA(I.value)).parse(P,O,{validate:!0})){O.setHours(0,0,0,0);P=O;break a}}P=null}if(!P)return{isValid:!1,value:void 0};P=PlR(P);x=W.end;return A3(P,W.start)||A3(x,P)?{isValid:!1,value:void 0}:{isValid:!0,value:P}};
sLR=function(W){var P=ogW;P=P===void 0?SGA:P;var x=W.columnsToShow||[],I=uZR(W.columnDimensions,W.columnsToShow,W.leftFloatingColumns,P);return x.map(function(O,B){var Y=W.columns[O];if(Y===void 0)throw Error("Mh");var K=I?I[B]:"";var Z=W.getCustomTooltip?W.getCustomTooltip(O,Y.headerTooltipParagraphs):Y.headerTooltipParagraphs;var d=dDR(W,O);return{type:O,index:B,style:K,classes:d,headerName:Y.headerName||"",headerIcon:Y.headerIcon,headerTooltipParagraphs:Z||[],headerTooltipHelpContext:Y.headerTooltipHelpContext,
sortOrders:Y.sortOrders||[],selectionState:Y.isSelectionCheckbox?W.selectionState:void 0}})};
dDR=function(W,P){var x=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],I=W.columns[P];if(I===void 0)return"";var O=x.includes("DEFAULTS")&&I.cssClass?[I.cssClass]:[];if(x.includes("SORTING")){I.sortOrders&&I.sortOrders.length&&O.push("sortable");if(W.sorting&&W.sorting.columnType===P)a:switch(W.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var B="column-sorted";break a;default:B=""}else B="";B&&O.push(B)}x.includes("FLOATING")&&(P=W.columnsToShow.indexOf(P),W.leftFloatingColumns&&P<W.leftFloatingColumns&&
O.push("floating-column"),W.leftFloatingColumns&&P===W.leftFloatingColumns-1&&O.push("last-floating-column"));x.includes("RIGHT_ALIGN")&&I.rightAlignHeader&&O.push("right-align");return O.filter(function(Y){return Y}).join(" ")};
uZR=function(W,P,x,I){x=x===void 0?0:x;I=I===void 0?SGA:I;if(W){var O=[],B=0;vgU(W,P,I).forEach(function(Y,K){var Z="min-width:"+Y.minWidth+"px;padding-left:"+Y.paddingLeft+"px;padding-right:"+Y.paddingRight+"px;flex:"+Y.flexGrow+" 0 "+Y.minWidth+"px;";Y.maxWidth!==Infinity&&(Z=[Z,"max-width:"+Y.maxWidth+"px;"].join(""));B>0&&K<x&&(Z=[Z,"left:"+B+"px;"].join(""));O.push(Z);B+=Y.minWidth+Y.paddingLeft+Y.paddingRight});
return O}};
vgU=function(W,P,x){x=x===void 0?SGA:x;return P.map(function(I,O){I=W&&W[I]||{};var B=O===0?x.paddingLeftFirstColumn:x.padding;I.paddingLeft!==void 0&&(B=I.paddingLeft);O=O===P.length-1?x.paddingRightLastColumn:x.padding;I.paddingRight!==void 0&&(O=I.paddingRight);return{paddingLeft:B,paddingRight:O,minWidth:I.minWidth!==void 0?I.minWidth:x.minWidth,maxWidth:I.maxWidth!==void 0?I.maxWidth:x.maxWidth,flexGrow:I.flexGrow!==void 0?I.flexGrow:x.flexGrow}})};
mDt=function(W){var P=W.reduce(function(I,O){var B=O.columnId,Y={};O.headerText&&(Y.headerName=_.kz(O.headerText));O.rightAlignHeader&&(Y.rightAlignHeader=O.rightAlignHeader);var K;if((K=O.headerIcon)==null?0:K.iconType)Y.headerIcon=_.PW(O.headerIcon.iconType);I[B]=Y;return I},{}),x=W.filter(function(I){return!I.hideColumn}).map(function(I){return I.columnId});
W=W.filter(function(I){return!!I.dimensions}).reduce(function(I,O){I[O.columnId]=O.dimensions;
return I},{});
return{columns:P,columnsToShow:x,columnDimensions:W}};
_.ViR=function(W){return W?W.simpleText?W.simpleText:W.runs?W.runs.map(function(P){return P.text}).join(""):"":""};
ClA=function(W){var P=W.data;var x=W.onTap;var I=W.isSelected;var O=W.onFocusIn;if(!P)return{};W=tiR(P);I===void 0&&(I=P==null?void 0:P.isSelected);var B;return{text:pCR(P,W),startIcon:(B=P.icon)==null?void 0:B.iconType,state:I?0:2,type:0,onTap:jLG(P,x),accessibilityLabel:QLm(P,W),onFocusIn:function(){return O==null?void 0:O()}}};
pCR=function(W,P){if(!P)return W.text?_.ViR(W.text):void 0};
jLG=function(W,P){return function(x){P==null||P(x,W)}};
tiR=function(W){W=W.style&&W.style.styleType;return!A4C&&W==="STYLE_EXPLORE_LAUNCHER_CHIP"};
QLm=function(W,P){if(P){var x,I,O;return(O=(x=W.accessibilityData)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label)!=null?O:pCR(W,!1)}};
Er=function(W){return{signalAction:{signal:W}}};
EgR=function(){return _.$$("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?zbS:_.GGC};
ggA=function(W,P){W=W===void 0?"SOFT_RELOAD_PAGE":W;P=P===void 0?49504:P;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Ru(_.KK("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:P}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:W}}]}}}};
DDd=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Ru(_.KK("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:EgR()}};
Mi7=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Ru(_.KK("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:EgR()}};
$DA=function(W,P){var x=_.Ru(_.KK("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),I=_.Ru(_.KK("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),O={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Ru(_.KK("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};O.serviceEndpoint=W?W:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Er("SOFT_RELOAD_PAGE")]}};return{title:x,bodyText:I,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:O},
style:{value:P!=null?P:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
hbG=function(W){W=W===void 0?{}:W;return{title:_.Ru(W.localizedZeroStateTitleText===void 0?"":W.localizedZeroStateTitleText),bodyText:_.Ru(W.localizedZeroStateMessage===void 0?"":W.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ru(W.localizedZeroStateButtonText===void 0?"":W.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[wCm]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.c48=function(W,P,x,I,O,B,Y,K){I=I===void 0?!1:I;O=O===void 0?!1:O;B=B===void 0?0:B;Y=Y===void 0?-Infinity:Y;K=K===void 0?!1:K;var Z=[],d=_.Ru(_.KK("SMART_DOWNLOADS",void 0,"Smart downloads"));Y=_.Ru(HiU(B,Y,W.length));B=void 0;I?B=W.length>0?ebS(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.p("kevlar_manual_downloads_above"),d,Y):K?{alertBannerViewModel:{heading:{content:x.localizedOptInBannerTitleText===void 0?"":x.localizedOptInBannerTitleText},body:{content:x.localizedPromptMessage===
void 0?"":x.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.KK("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.KK("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:_.upW}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.Ru(_.KK("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"}}}:O&&(B={alertBannerViewModel:{heading:{content:x.localizedOptInBannerTitleText===void 0?"":x.localizedOptInBannerTitleText},body:{content:x.localizedOptInMessage===
void 0?"":x.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.KK("TURN_ON",void 0,"Turn on"),accessibilityText:_.KK("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});x=_.Ru(_.KK("YOUR_DOWNLOADS",void 0,"Your downloads"));O=void 0;P.length>0?(O=void 0,_.p("kevlar_display_downloads_numbers")&&(O=_.Ru(_.ZE("VIDEO_COUNT",P.length))),O=ebS(P,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,x,O)):I||W.length||(O={backgroundPromoRenderer:{bodyText:_.Ru(_.KK("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}}}});B&&!_.p("kevlar_manual_downloads_above")&&Z.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});O&&Z.push({richSectionRenderer:{content:O,loggingDirectives:{clientVeSpec:{uiType:51721}}}});B&&_.p("kevlar_manual_downloads_above")&&Z.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(P.length>0||I&&W.length>0)&&Z.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Ru(_.KK("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:Z}};
_.bi8=function(W){return a6U(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.kGt=function(W){return a6U(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
a6U=function(W,P){var x=[];W=ebS(W,P,!0);x.push({richSectionRenderer:{content:W}});return{contents:x}};
ebS=function(W,P,x,I,O){x=x===void 0?!1:x;W={isExpanded:x,contents:gn(W),entitySelectorType:P};I&&(W.title=I);O&&(W.subtitle=O);x||(_.p("kevlar_smart_downloads_show_more_button")?(W.showMoreButton={buttonRenderer:{accessibility:{label:_.KK("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Ru(_.KK("SHOW_MORE",void 0,"Show more"))}},W.showLessButton={buttonRenderer:{accessibility:{label:_.KK("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Ru(_.KK("SHOW_LESS",void 0,"Show less"))}}):(W.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.KK("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}}}},W.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.KK("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}}}},W.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.KK("VIEW_ALL",void 0,"View all"),accessibilityText:_.KK("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:rw("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:W}};
gn=function(W){var P=[];W=_.n(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,RNR(x)){var I=P,O=I.push;var B=void 0;if(x==null?0:(B=x.videoEntity)==null?0:B.videoId){B=D5(_.Xe().getState(),x.videoEntity.videoId);var Y=_.Xe().getState();var K=_.On(x.videoEntity.videoId,"mainVideoEntity");Y=!!_.VT(Y.entities)[K];Y={videoId:x.videoEntity.videoId,title:FB(x.videoEntity.title),shortBylineText:FB(x.channelEntity.title),thumbnail:x.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Y&&_.p("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:R2U(x.videoEntity.videoId,B,x.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.KK("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};x.videoEntity.lengthSeconds&&(Y.thumbnailOverlays=vPG(x.videoEntity.lengthSeconds,B));Y.isWatched=B>0;_.p("kevlar_modern_downloads_page")&&(Y.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:x.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.KK("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Y.badges=void 0);x=Y}else x={};O.call(I,{richItemRenderer:{content:{videoRenderer:x},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(iTC(x)){I=P;O=I.push;var Z=K=B=void 0,d=void 0,v=void 0,m=void 0,t=void 0,C=void 0,z=void 0,D=void 0,w=void 0,a=void 0;Y=x.mainPlaylistEntity.playlistId;var k=x==null?void 0:(a=x.mainPlaylistEntity)==null?void 0:(w=a.thumbnailStyleData)==null?void 0:(D=w[0])==null?void 0:(z=D.value)==null?void 0:(C=z.collageThumbnail)==
null?void 0:C.coverThumbnail;if(Y&&k){C=Fax(Y);!_.p("enable_offline_playlist_page")&&(x==null?0:(t=x.mainPlaylistEntity)==null?0:t.videos)&&(t=x==null?void 0:(m=x.mainPlaylistEntity)==null?void 0:(v=m.videos)==null?void 0:v[0],v=_.Pu(t).entityId,v=JSON.parse(v).videoId,v!==void 0&&(m=D5(_.Xe().getState(),v),C=_.iB(v,Y,void 0,void 0,m)));v=[];if(x==null?0:(d=x.mainPlaylistEntity)==null?0:(Z=d.videos)==null?0:Z.length)v=[F4R(),Object.assign({},(K=REm(x==null?void 0:x.mainPlaylistEntity.videos.length))!=
null?K:{})];x={playlistId:Y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:k}},navigationEndpoint:C,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:v,title:FB(x.mainPlaylistEntity.title),shortBylineText:FB(x==null?void 0:(B=x.channelEntity)==null?void 0:B.title),badges:[{metadataBadgeRenderer:{label:_.KK("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.p("kevlar_modern_downloads_page")&&(x.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:UDW,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.KK("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},x.badges=void 0)}else x=void 0;O.call(I,{richItemRenderer:{content:{playlistRenderer:x},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return P};
HiU=function(W,P,x){W=W?XCR(W):"";P!==void 0&&isFinite(P)?P===0?P=_.KK("UPDATING",void 0,"Updating..."):(P=smC(new Date(P),new Date),P=_.KK("UPDATED_TIME",{relative_time:P},"Updated "+P)):P="";var I="";W&&P&&(I=" \u2022 ");if(x&&_.p("kevlar_display_downloads_numbers")){x=_.ZE("VIDEO_COUNT",x);if(W||P)I=" \u2022 ";return x+I+W+I+P}return W+I+P};
f6t=function(W){return kbm(W.entities).length};
_.N2R=function(W,P){var x=rOt(W.responsiveSize),I;W=!((I=W.responsiveMap)==null||!I.some(function(O){return O.containerSize==="CONTAINER_SIZE_NARROW"&&O.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:P,sizing:x,enableFullBleedForSingleCol:!1,isCompactList:x==="COMPACT"&&W}};
l6o=function(W,P){return _.Jb(W.entities,"votingEntity",P)};
T2S=function(W){if(W){var P;return((P=_.FY().resolve(_.Rl(_.hF)))==null?0:P())?W.darkTheme:W.lightTheme}};
r4W=function(W,P,x){return _.u(_.qS,null,g$R(x,[[0,function(){return _.u("h2",{class:P},W)}],
[1,function(){return _.u("h3",{class:P},W)}],
[2,function(){return _.u("h4",{class:P},W)}]],function(){return _.u("h2",{class:P},W)}))};
iiC=function(W){var P=["shelf-header-layout-wiz"];W.disableHorizontalPadding&&P.push("shelf-header-layout-wiz--disable-horizontal-padding");W.disableVerticalPadding&&P.push("shelf-header-layout-wiz--disable-vertical-padding");W.useResponsiveLayout&&(P.push("shelf-header-layout-wiz--responsive"),W.forceSmallLayout&&P.push("shelf-header-layout-wiz--narrow"));W.isOverlay&&P.push("shelf-header-layout-wiz--is-overlay");W.onClick&&P.push("shelf-header-layout-wiz--tappable");var x=["shelf-header-layout-wiz__title"];
W.forceSmallLayout&&x.push("shelf-header-layout-wiz__title--small-title");var I=["shelf-header-layout-wiz__leading-image"];W.circularImage&&I.push("shelf-header-layout-wiz__leading-image--circular-image");var O=_.yB(function(d){var v;(v=W.onClick)==null||v.call(W,d)}),B,Y,K,Z;
return _.u("yt-shelf-header-layout",{class:P.join(" "),"on:click":O,tabindex:W.onClick?0:void 0},W.leadingIcon?_.u("div",{class:"shelf-header-layout-wiz__leading-icon"},_.u(_.Sy,{icon:W.leadingIcon})):W.hasLeadingImage?_.u("div",{class:I.join(" ")},(B=W.leadingImage)==null?void 0:B.call(W)):_.u(_.qS,null),_.u("div",{class:"shelf-header-layout-wiz__label-container"},W.hasSuperlabel?_.u("div",{class:"shelf-header-layout-wiz__superlabel"},(Y=W.superlabel)==null?void 0:Y.call(W)):_.u(_.qS,null),_.u("div",
{class:"shelf-header-layout-wiz__title-row"},r4W(W.title(),x.join(" "),W.tagLevel),fU(W.hasDetail,function(){var d;return _.u("div",{class:"shelf-header-layout-wiz__detail"},(d=W.detail)==null?void 0:d.call(W))})),W.hasSublabel?_.u("div",{class:"shelf-header-layout-wiz__sublabel"},(K=W.sublabel)==null?void 0:K.call(W)):_.u(_.qS,null)),W.hasTrailingActions?_.u("div",{class:"shelf-header-layout-wiz__trailing-actions"},(Z=W.trailingActions)==null?void 0:Z.call(W)):_.u(_.qS,null))};
RbC=function(W){var P=_.Q(W==null?void 0:W.avatar,_.rp),x,I=(x=W==null?void 0:W.image)!=null?x:_.LC(W==null?void 0:W.themedImage);return _.u(_.qS,null,fU(I,function(){return _.u(_.bq,{data:I,alt:"",preserveWidth:!0,preserveHeight:!0})}),fU(P,function(){return _.u(_.DI,{data:P})}))};
LDd=function(W){var P=_.Q(W.bottomBadge,FDR),x=P&&W.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.u(_.qS,null,fU(P,function(){return P&&_.u(qG8,{data:P,class:x})}),fU(W.sublabel,function(){return _.u(_.mQ,{text:W.sublabel})}))};
WVS=function(W){var P=_.Q(W.topBadge,FDR),x=P&&W.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.u(_.qS,null,fU(P,function(){return P&&_.u(qG8,{data:P,class:x})}),fU(W.superlabel,function(){return _.u(_.mQ,{text:W.superlabel})}))};
IoR=function(W){var P=W.data;var x=W.disableHorizontalPadding;var I=W.disableVerticalPadding;var O=W.forceSmallLayout;var B=W.useResponsiveLayout;W=W.isOverlay;var Y=P.sublabel||P.bottomBadge,K=P.superlabel||P.topBadge,Z=_.fC(P.rendererContext);x={hasDetail:!1,title:function(){return _.u(_.mQ,{text:P.headline})},
hasTitle:!0,sublabel:Y&&function(){return LDd(P)},
hasSublabel:!!Y,superlabel:K&&function(){return WVS(P)},
hasSuperlabel:!!K,leadingImage:P.leadingAccessory&&function(){return RbC(P.leadingAccessory)},
hasLeadingImage:!!P.leadingAccessory,trailingActions:P.trailingActions&&function(){return _.u(_.qS,null,PQS(P.trailingActions))},
hasTrailingActions:!!P.trailingActions,disableHorizontalPadding:x,disableVerticalPadding:I,forceSmallLayout:O,useResponsiveLayout:B,isOverlay:W,onClick:Z?function(d){var v=_.Xd(P.rendererContext);v&&_.zm(v,{form:{element:d.target,event:d}})}:void 0};
I=(I=T2S(P==null?void 0:P.backgroundColor))?"background-color: "+_.Qy(I)+";":void 0;return _.u("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:I},_.u(xyo,Object.assign({},x)))};
O9G=function(W,P){if(W.simpleText)return Object.assign({},W,{simpleText:$Y(W.simpleText,P)});if(!W.runs)return W;for(var x=Object.assign({},W,{runs:[]}),I=0,O=_.n(W.runs),B=O.next();!B.done;B=O.next())if(B=B.value,B.text)if(I+B.text.length<=P)x.runs.push(B),I+=B.text.length;else return x.runs.push(Object.assign({},B,{text:$Y(B.text,P-I)})),x;return W};
Jid=function(W,P){return _.Jb(W.entities,"chipBarStateEntity",P)};
Bzm=function(W,P){return _.Jb(W.entities,"chipEntity",P)};
YOC=function(W,P,x,I){return function(){var O=n0C.has(W.displayType)&&W.selected,B=O&&W.deselectCommand?W.deselectCommand:W.tapCommand;!B||O&&I||_.D1(B,{form:{element:P==null?void 0:P.value}});x==null||x()}};
yim=function(W){switch(W){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
KVG=function(W,P){return{triggeringElement:W,onDwellTriggeredFn:function(){var x={triggeringElement:W,loadVideoPreviewEventData:P},I=document.querySelector(".video-preview");I&&I.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:x}))},
onDwellEndFn:function(){var x=document.querySelector(".video-preview");x&&x.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Z9R=function(W,P){var x=_.FY().resolve(_.Rl(Dkd)),I=function(){var O=P();return x&&O?KVG(W.value,O):null};
_.jj(function(){var O=I();x&&O&&Promise.resolve().then(function(){x.registerElement(O)});
_.C4(function(){x&&O&&Promise.resolve().then(function(){x.unregisterElement(O)})})})};
SOW=function(W){var P=W.dataset.resizeObserverId;if(P)return P;P=""+o0m++;return W.dataset.resizeObserverId=P};
un8=function(W,P){var x=SOW(W);Mz.has(x)||Mz.set(x,new Set);Mz.get(x).add(P);$A.has(x)&&P(Object.assign({},{target:W},$A.get(x)))};
dy7=function(W){W=_.n(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;var x=SOW(P.target),I=Object.assign({},{target:P.target},$A.get(x));if(I!=null&&I.contentRect?I.contentRect.width!==P.contentRect.width||I.contentRect.height!==P.contentRect.height:1)for($A.set(x,{borderBoxSize:P.borderBoxSize,contentBoxSize:P.contentBoxSize,contentRect:P.contentRect,devicePixelContentBoxSize:P.devicePixelContentBoxSize}),x=_.n(Mz.get(x)||[]),I=x.next();!I.done;I=x.next())I=I.value,I(P)}};
v0A=function(){return wn?wn:wn=new sam(dy7)};
myx=function(W,P){var x=SOW(W);Mz.has(x)&&(Mz.get(x).delete(P),Mz.get(x).size===0&&(Mz.delete(x),$A.delete(x),wn.unobserve(W),delete W.dataset.resizeObserverId));Mz.size===0&&wn&&(wn.disconnect(),wn=void 0)};
t6o=function(W,P){var x=_.FY().resolve(RR);return V6S.map(function(I){return x.observe(W,P,I)})};
pYd=function(W){var P=_.FY().resolve(RR);W.forEach(function(x){P.unobserveByKey(x)})};
_.CQo=function(W,P){var x=Object.assign({},jaA,P);P=_.n(a8W());var I=P.next().value,O=P.next().value,B=function(Y){var K=Y.contentRect.height;if((Y=Y.contentRect.width)||K||x.canHaveZeroSize)I.width()===Y&&I.height()===K||O(I,{height:K,width:Y})};
_.AQ(function(){var Y=W instanceof HTMLElement?W:W.value,K=QaC(B,x.throttleMs),Z=[];x.useVisibilityObserver&&(Z=t6o(Y,function(d,v){requestAnimationFrame(function(){v==="visible"?(un8(Y,K),v0A().observe(Y)):myx(Y,K)})}));
Z.length||(un8(Y,K),v0A().observe(Y));_.C4(function(){Z.length&&(pYd(Z),Z.length=0);myx(Y,K)})});
return I};
zP8=function(W){var P=W.data;var x=W.callback;var I=W.enableSingleChipSelection;var O=W.disableChipsScrollAnimation;var B=_.fa(),Y=EV(!1),K=EV(0);W={};W=_.n(KC(P.autoselectedChipIndex!=null?(W[P.autoselectedChipIndex]=!0,W):{}));var Z=W.next().value,d=W.next().value,v=function(){var pm=B.value;return pm==null||pm.scrollLeft-1<=0},m=function(){var pm=B.value;
return pm==null?!1:pm.scrollLeft+1>=(pm==null?NaN:pm.scrollWidth)-(pm==null?NaN:pm.clientWidth)};
W=_.n(KC(v()));var t=W.next().value,C=W.next().value;W=_.n(KC(m()));var z=W.next().value,D=W.next().value;W=P.isHorizontallyScrollable;var w=function(pm){B.value!=null&&(_.$$("HTML_DIR")==="rtl"&&(pm=-pm),B.value.scrollBy({left:pm,behavior:O?"instant":"smooth"}))},a=function(){w(-320)},k=function(){w(320)},T=_.yB(function(pm){Y.value=!0;
K.value=pm.clientX}),N=_.yB(function(pm){if(Y.value){pm=pm.clientX;
var zR=pm-K.value;K.value=pm;B.value.scrollBy({left:-zR})}}),Io=_.yB(function(){var pm=v(),zR=m();
pm!==t&&C(pm);zR!==z&&D(zR)});
is("pointerup",function(){Y.value&&(Y.value=!1)});
var F={},nm={};return _.u("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},fU(P.title,function(){return _.u("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.u("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},P.title),AiS(P.overflowButton))}),_.u("div",{class:"ytChipsShelfViewModelChipsShelfContent"},fU(P.previousButton!=null,function(){var pm={};
return _.u("div",{class:_.BF("ytChipsShelfViewModelLeftArrowContainer",(pm.ytChipsShelfViewModelLeftArrowContainerIsHidden=t,pm))},AiS(P.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:a}}))}),_.u("div",{el:B,
"on:pointerdown":T,"on:pointermove":N,"on:scroll":Io,class:_.BF("ytChipsShelfViewModelChipsScrollContainer",(F.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!W,F))},_.u("div",{class:_.BF("ytChipsShelfViewModelChipsContainer",(nm.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!W,nm.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!W&&!1,nm))},(P.contents||[]).map(function(pm,zR){return _.u("div",{class:"ytChipsShelfViewModelChipWrapper"},AiS(pm,
{chipViewModel:{callback:function(Am,kW){if(I){var $W={};d(($W[zR]=kW,$W))}else $W={},d(Object.assign({},Z,($W[zR]=kW,$W)));x==null||x(Am,kW,zR)},
disableDeselection:I,selected:!!Z[zR]}}))}))),fU(P.nextButton!=null,function(){var pm={};
return _.u("div",{class:_.BF("ytChipsShelfViewModelRightArrowContainer",(pm.ytChipsShelfViewModelRightArrowContainerIsHidden=z,pm))},AiS(P.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:k}}))})))};
E0t=function(W,P,x,I,O){W=P?W.switchOffCommand:W.switchOnCommand;if(I&&O)Gox(W,x,O);else{var B,Y;(B=_.Gm({elementsCommand:W}))==null||(Y=B.onclick)==null||Y.call(B,x)}};
Gox=function(W,P,x){W=_.Gm({elementsCommand:W,additionalCommandArgs:{commandController:{onSuccess:function(){x(!1)},
onServerError:function(){x(!1)}}}});
if(W==null?0:W.onclick)W.onclick(P),x(!0)};
Dym=function(W){if(W)return _.Q(W,g0t)};
H9o=function(W,P,x){if(P)return[M68];switch(W){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[h3];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return x?[h3]:[$yR,h3];case "TRANSFER_STATE_PAUSED_BY_USER":return[wYd,h3];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[hPG,h3];default:return[M68]}};
eP7=function(W,P,x,I){return H9o(W,P,I).map(function(O){var B=O.text,Y=O.iconType,K=O.videoAction;O=O.playlistAction;B=B?{content:B}:void 0;Y=Y&&{sources:[{clientResource:{imageName:Y}}]};var Z=(0,_.jU.unsafeClone)(x);if(Z){var d=_.Q(Z,_.ZZ),v=_.Q(Z,_.SK);d&&K?d.action=K:v&&O&&(v.action=O)}return{title:B,leadingImage:Y,rendererContext:Z&&{commandContext:{onTap:{innertubeCommand:Z}}}}})};
ci8=function(W){W=_.Xd(W.rendererContext);var P;return(P=_.Q(W,_.SK))==null?void 0:P.playlistId};
ao8=function(W){var P;return(P=W.listItems)==null?void 0:P.some(function(x){var I;return _.fC((I=_.Q(x,_.tp))==null?void 0:I.rendererContext)})};
HO=function(W){var P=_.FY().resolve(_.Rl(_.hF));return P!=null&&P()?W.darkThemeColorPalette:W.lightThemeColorPalette};
cO=function(W){return{primaryTextColor:eQ(W,0),secondaryTextColor:eQ(W,1),optionColor:eQ(W,2),backgroundColor:eQ(W,3),videoBackgroundColor:eQ(W,4)}};
eQ=function(W,P){if(W){switch(P){case 0:W=W.primaryTitleColor;break;case 1:W=W.secondaryTitleColor;break;case 2:W=W.surgeColor;break;case 3:W=W.section2Color;break;case 4:W=W.section3Color;break;default:return}if(W)return _.j9(W)}};
b9W=function(W){return W?_.Qy(W):""};
koS=function(W){return(W==null?void 0:W.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
UyR=function(W,P){var x;return"linear-gradient(to bottom, "+((x=P==null?void 0:P.map(function(I){var O=W?I.darkThemeColor:I.lightThemeColor;return O?_.Qy(O)+" "+((I==null?void 0:I.startLocation)||0)*100+"%":"transparent"}))==null?void 0:x.join(", "))+")"};
XYt=function(W){var P=W.className;var x=W.data;var I=W.isOverlay;var O=W.maxLinesOverride;var B=W.useMediumText;W=_.fa();var Y=x.description,K=x.alwaysShowTruncationText,Z=x.truncationText,d=x.maxLines,v,m=!((v=_.Q(x.rendererContext,lr))==null||!v.onTap),t,C,z=(C=(t=_.Q(x.rendererContext,_.TS))==null?void 0:t.label)!=null?C:"";v=_.n(KC(!1));var D=v.next().value,w=v.next().value;_.M7m(W,x.rendererContext);v=_.yB(function(){x.expandOnTap&&w(!D);return!1});
t={};return _.u("yt-description-preview-view-model",{el:W,class:_.BF("yt-description-preview-view-model-wiz",P,(t["yt-description-preview-view-model-wiz--clickable"]=m,t["yt-description-preview-view-model-wiz--is-overlay"]=I,t)),"on:click":v},fU(Y,function(){var a={};return D?_.u("div",{class:_.BF("yt-description-preview-view-model-wiz__description",(a["yt-description-preview-view-model-wiz__description--medium-text"]=B,a))},_.u(_.mQ,{text:Y})):_.u(aTW,{text:Y,alwaysShowTruncationText:K,truncationText:Z,
maxLines:O!=null?O:d,textStyle:I?"overlay":"default",accessibilityLabel:z,textSize:B?"medium":"small"})}))};
fom=function(W,P,x,I,O){if(!((I==null?0:I.height)&&(I==null?0:I.width)))return{size:0};var B=I.width;I=I.height;if(O)return P==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||P==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&B>I?{size:312/Ysx}:P==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(x!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||W!==1&&W!==2||P!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&P!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&P!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(P==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||P==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||I===B)switch(W){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(P==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||I>B)switch(W){case 1:case 3:return{size:240*nEU};default:return{size:360*nEU}}switch(W){case 1:case 2:return{size:1/Ysx*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.NzS=function(W){if(!("matchMedia"in window))return _.co(Error("Nh")),function(){return!1};
var P=window.matchMedia(W);W=_.n(_.YV(P.matches,void 0,"jLJc8e"));var x=W.next().value,I=W.next().value,O=function(B){I(B.matches)};
P.addEventListener?(P.addEventListener("change",O),_.C4(function(){P.removeEventListener("change",O)})):P.addListener&&(P.addListener(O),_.C4(function(){P.removeListener(O)}));
return x};
loG=function(W){return W==="IMAGE_BANNER_STYLE_INSET"||W==="IMAGE_BANNER_STYLE_UNKNOWN"};
TzS=function(){if(!("matchMedia"in window))return _.co(Error("Nh")),function(){return 0};
var W=GO(function(){return window.matchMedia("(max-width: 527.9px)")}),P=GO(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),x=GO(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),I=GO(function(){return window.matchMedia("(min-width: 1024px)")}),O=_.n(_.YV(W.matches,void 0,"og9kEc")),B=O.next().value,Y=O.next().value;
O=_.n(_.YV(P.matches,void 0,"ybDWCb"));var K=O.next().value,Z=O.next().value;O=_.n(_.YV(x.matches,void 0,"o0Gfh"));var d=O.next().value,v=O.next().value;O=_.n(_.YV(I.matches,void 0,"yqUUgd"));var m=O.next().value,t=O.next().value,C=GO(function(){return function(a){Y(a.matches)}}),z=GO(function(){return function(a){Z(a.matches)}}),D=GO(function(){return function(a){v(a.matches)}}),w=GO(function(){return function(a){t(a.matches)}});
_.AQ(function(){W.addEventListener?(W.addEventListener("change",C),P.addEventListener("change",z),x.addEventListener("change",D),I.addEventListener("change",w)):W.addListener&&(W.addListener(C),P.addListener(z),x.addListener(D),I.addListener(w));_.C4(function(){W.removeEventListener?(W.removeEventListener("change",C),P.removeEventListener("change",z),x.removeEventListener("change",D),I.removeEventListener("change",w)):W.removeListener&&(W.removeListener(C),P.removeListener(z),x.removeListener(D),
I.removeListener(w))})});
return function(){return B()?1:K()?2:d()?3:m()?4:0}};
riR=function(W){var P=0;W=_.n([W.title,W.metadata,W.actions,W.description,W.attribution]);for(var x=W.next();!x.done;x=W.next())x.value&&P++;return P};
i9C=function(W){return W===1||W===2?1:0};
FV8=function(W){var P,x=((P=_.FY().resolve(_.Rl(_.hF)))==null?0:P())&&W.data.darkThemeImage?W.data.darkThemeImage:W.data.image;P=_.u("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.u("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},x?_.u(_.bq,{data:x,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),RPm(W.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));x=_.u(_.mQ,{text:W.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var I=W.data;if(I.bodyText){var O=[];I=_.n(I.bodyText);for(var B=I.next();!B.done;B=I.next())O.push(_.u(_.mQ,{text:B.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else O=_.u(_.qS,null);return _.u("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},P,x,O,RPm(W.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.u(_.mQ,{text:W.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.u(_.mQ,{text:W.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
LVt=function(W){W=(new qO7).parse(W);return(new BV).render(W).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(P){var x=P.split(":").map(Number),I=0,O=0;if(x.length===3)x=_.n(x),I=x.next().value,O=x.next().value,x=x.next().value;else if(x.length===2)x=_.n(x),O=x.next().value,x=x.next().value;else if(x.length===1)x=_.n(x).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(I*3600+O*60+x)+'" role="button">'+P+"</span>"})};
W_o=function(W){W=_.n(W.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var P=W.next(),x={};!P.done;x={clickHandler$jscomp$4:void 0},P=W.next()){P=P.value;x.clickHandler$jscomp$4=function(O){O=Number(O.target.getAttribute("data-time"));if(isNaN(O))throw Error("Ph");var B=document.querySelector("video");B&&(B.currentTime=O)};
var I=function(O){return function(B){B.key!=="Enter"&&B.key!=="Space"||(0,O.clickHandler$jscomp$4)(B)}}(x);
P.setAttribute("tabindex","0");P.removeEventListener("click",x.clickHandler$jscomp$4);P.removeEventListener("keydown",I);P.addEventListener("click",x.clickHandler$jscomp$4);P.addEventListener("keydown",I)}};
PaC=function(){return _.u("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.u(aq,{percentWidth:100}),_.u(aq,{animationDelay:200}),_.u(aq,{animationDelay:400}),_.u(aq,{animationDelay:600}),_.u(aq,{animationDelay:800,percentWidth:60}),_.u("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.u(aq,{percentWidth:100}),_.u(aq,{animationDelay:200}),_.u(aq,{animationDelay:400}),_.u(aq,{animationDelay:600,percentWidth:50}))};
aq=function(W){return _.u("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(W.percentWidth===void 0?100:W.percentWidth)+"%"},_.u("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(W.animationDelay===void 0?0:W.animationDelay)+"ms"}))};
xFC=function(){var W=_.n(_.YV(function(){return""},void 0,"v2wS5e")),P=W.next().value;
return[function(){return P()()},
W.next().value]};
OSU=function(W){W=W===void 0?{}:W;return{title:_.Ru(W.localizedOptInBannerTitleText===void 0?"":W.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Ru(W.localizedOptInMessage===void 0?"":W.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ru(_.KK("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:_.Ru(_.KK("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:[I4R]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
J$8=function(W,P){W=W?XCR(W):"";P!==void 0&&isFinite(P)?P===0?P=_.KK("UPDATING",void 0,"Updating..."):(P=smC(new Date(P),new Date),P=_.KK("UPDATED_TIME",{relative_time:P},"Updated "+P)):P="";var x="";W&&P&&(x=" \u2022 ");return _.Ru(W+x+P)};
Y9R=function(W,P,x,I,O,B){P=P===void 0?0:P;var Y=B5R[P],K=Y.title,Z=Y.iconType,d=Y.topButtonRenderer,v=Y.sectionClientVE;Y=Y.videoClientVE;var m;if(P!==1||W.length){x=[];W=_.n(W);for(I=W.next();!I.done;I=W.next()){var t=I.value;if(RNR(t))x.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:t.videoEntity.videoId,title:FB(t.videoEntity.title),shortBylineText:FB(t.channelEntity.title),thumbnail:t.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:t.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.KK("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}}}});else if(iTC(t)){I=x;var C=I.push;var z=void 0,D=void 0,w=void 0,a=void 0,k=void 0,T=void 0,N=void 0,Io=void 0,F=t.mainPlaylistEntity.playlistId,nm=t==null?void 0:(Io=t.mainPlaylistEntity)==null?void 0:(N=Io.thumbnailStyleData)==null?void 0:(T=N[0])==null?void 0:(k=T.value)==null?void 0:(a=k.collageThumbnail)==null?void 0:a.coverThumbnail;a=Fax(F);if(!_.p("enable_offline_playlist_page")&&
(t==null?0:(w=t.mainPlaylistEntity)==null?0:w.videos)){b:{w=t==null?void 0:(D=t.mainPlaylistEntity)==null?void 0:D.videos;D=_.Xe().getState().entities;if(w!=null&&w.length&&D)for(w=_.n(w),k=w.next();!k.done;k=w.next())if(k=_.Pu(k.value).entityId,(k=JSON.parse(k).videoId)&&YkR(D,k)==="TRANSFER_STATE_COMPLETE"){D=k;break b}D=""}D!==void 0&&(a=D5(_.Xe().getState(),D),a=_.iB(D,F,void 0,void 0,a))}D=LaC(_.KK("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Fax(F));t=F&&nm&&D?{playlistId:F,navigationEndpoint:a,
viewPlaylistText:D,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:nm}},title:FB(t.mainPlaylistEntity.title),shortBylineText:FB(t==null?void 0:(z=t.channelEntity)==null?void 0:z.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:noS,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:F,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.KK("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}:
void 0;C.call(I,{gridPlaylistRenderer:t})}}Y={gridRenderer:{items:x}};P===1&&(m=J$8(O,B))}else if(I){var pm=_.Ru((C=x==null?void 0:x.localizedPromptMessage)!=null?C:"");Y={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ru(_.KK("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.upW}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ru(_.KK("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};m=J$8(O,B)}else pm=_.Ru(_.KK("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Y={};return{contents:[{shelfRenderer:{title:K,titleAnnotation:m,icon:{iconType:Z},subtitle:pm,content:Y,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:d}]}}}}],loggingDirectives:{clientVeSpec:{uiType:v}}}};
y$G=function(W,P,x,I,O,B,Y,K){x=x===void 0?{}:x;I=I===void 0?!1:I;O=O===void 0?!1:O;B=B===void 0?!1:B;Y=Y===void 0?0:Y;K=K===void 0?-Infinity:K;if(!P.length&&!W.length&&!I)return O?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:hbG(x)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Ru(_.KK("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 Z=[];W.length&&Z.push(Y9R(W,0));I?Z.push(Y9R(P,1,x,B,Y,K)):O&&Z.push({contents:[{statementBannerRenderer:OSU(x)}]});(I&&P.length||W.length)&&Z.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Ru(_.KK("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 Z.map(function(d){return{itemSectionRenderer:d}})};
b6=function(W,P){if(typeof W!=="object")return null;W=_.n(Object.entries(W));for(var x=W.next();!x.done;x=W.next()){var I=_.n(x.value);x=I.next().value;I=I.next().value;if(x===P)return x;if(I=b6(I,P))return x+"."+I}return null};
kA=function(W){var P=W.content;return(W=W.styleRuns)&&P?{runs:W.map(function(x){var I={text:P.slice(x.startIndex,x.startIndex+x.length)};x.fontColor&&(I.textColor=x.fontColor);return I})}:{simpleText:P}};
ooC=function(W,P,x,I){var O=K_W;I&&(W.quantity=I);if(!W.quantity||!W.maxQuantity)return{};I=W.minusButton;var B=W.plusButton,Y,K,Z,d;return{value:W.quantity,maxValue:W.maxQuantity,onChangeCallback:function(v){O(W,v)},
minusLabel:(Y=_.Q(I,ZSR))==null?void 0:Y.label,minimumReachedLabel:(K=_.Q(I,ZSR))==null?void 0:K.limitReachedLabel,plusLabel:(Z=_.Q(B,ZSR))==null?void 0:Z.label,maximumReachedLabel:(d=_.Q(B,ZSR))==null?void 0:d.limitReachedLabel,disabled:P,onRemoveCommand:x}};
K_W=function(W,P){var x=W.quantityIncrementerEntityKey;if(x){var I={};I.quantity=P;_.cM(_.$s("quantityIncrementerEntity",x,I));W.onChangeCommand&&_.D1(W.onChangeCommand)}};
S9R=function(W){return _.p("kevlar_comments_clone_data_killswitch")?W:_.jU.unsafeClone(W)};
sNd=function(W,P){(W=ua8(W))&&(P?dFG.push({command:W,sourceData:{},commandContext:void 0}):_.FY().resolve(_.qR).resolveCommand(W))};
ua8=function(W){return _.Q(W,_.Ct)};
voG=function(){var W=window.performance.timeOrigin+window.performance.now(),P=(new _.Ur).setSeconds(W/1E9);return _.A2(P,2,_.Qf(W%1E9),0)};
Xj=function(W,P){var x=_.Q(_.Q(W,_.Ct),mFS);x&&(P&&(x.serializedAdditionalMetadata=_.L2(P)),sNd(W,!0))};
VEW=function(W){switch(W){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"}};
tEC=function(){return!!_.$$("ID_TOKEN")};
QNo=function(W){return W instanceof Error&&W.cause instanceof p0R&&W.cause.rpcErrorCode!==void 0?!jNG.includes(W.cause.rpcErrorCode):!0};
A$7=function(){return _.fX(Ca8,{authuser:""+(_.$$("SESSION_INDEX")||0)})};
fo=function(W,P,x,I){x=x===void 0?"MINI_APP_SDK_API_UNSPECIFIED":x;I=I===void 0?"":I;var O=new _.mW;x={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:I,sdkApi:x};W instanceof Error&&(O.message=W.message,O.name=W.name,W.cause instanceof p0R&&W.cause.rpcErrorCode!==void 0&&(x.rpcErrorCode=W.cause.rpcErrorCode));var B;(B=P.onError)==null||B.call(P,{loggingError:O,metadata:x})};
GUA=function(W,P,x,I){switch(W){case "MINI_APP_SOURCE_GAMESNACKS":return new Nz(P,x,I);default:return new zrt(P,x,I)}};
Eo7=function(W){switch(W){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"}};
got=function(W){switch(W){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"}};
DFC=function(W){switch(W){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"}};
MEU=function(){return Math.floor(Math.random()*4)+1};
$FW=function(W,P,x,I){W=_.n(Object.entries(W));for(var O=W.next(),B={};!O.done;B={message$jscomp$957:void 0},O=W.next()){var Y=_.n(O.value);O=Y.next().value;Y=Y.next().value;B.message$jscomp$957=Y;P.push(setTimeout(function(K){return function(){I(!1);x(K.message$jscomp$957.text)}}(B),B.message$jscomp$957.delayMs));
Number(O)>0&&P.push(setTimeout(function(){I(!0)},B.message$jscomp$957.delayMs-400))}};
w0R=function(W,P){var x=x===void 0?Rtt:x;_.p("mweb_fix_monitor_visibility_after_render")?W&&vW(function(){LoR(W,P,x)}):vW(function(){LoR(W,P,x)})};
HSo=function(W){var P=W.data;var x=W.uniqueId;W=W.overrides;var I,O=((I=P.timedAnimationData)==null?void 0:I.animationTiming)||[];return _.u("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.u(ecG,{settings:{uniqueId:x,timings:O,experimentEnabled:O.length>0,enabled:O.length>0}},hrW(P.buttonRenderer,{buttonRenderer:{buttonOverrides:W}})))};
bSR=function(W){erA||(erA=c$m(new _.$z(1,void 0,void 0,a4G),0));var P=erA.format(Math.floor(W));P=_.MB==="be"||_.MB==="bg"||_.MB==="es"||_.MB==="et"||_.MB==="hu"||_.MB==="ka"||_.MB==="lv"||_.MB==="pl"||_.MB==="pt-PT"||_.MB==="sq"?P.replace(new RegExp("^(\\d)"+a4G.GROUP_SEP.replace(".","\\.")+"(\\d+("+a4G.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):P;return W>=1E3&&W<=9999&&P[1]==="."&&(_.MB==="sl"||_.MB==="it")?P.replace(".",""):P};
kUm=function(W,P){VH("ytd-button-renderer",{data:W,className:P?P.className:"",overrides:P==null?void 0:P.buttonOverrides},b_)};
f4W=function(W,P,x,I){if(W)return I=I||W.likeStatus,P?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:I==="LIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:x},defaultText:I==="LIKE"?W.likeCountWithUnlikeText:W.likeCountText,toggledText:I==="LIKE"?W.likeCountText:W.likeCountWithLikeText,defaultNavigationEndpoint:UFt(W,"LIKE"),defaultServiceEndpoint:X0m(W,"LIKE"),toggledServiceEndpoint:X0m(W,"INDIFFERENT"),defaultTooltip:_.kz(W.likeCountTooltipText),toggledTooltip:_.kz(W.likeCountTooltipText),
targetId:W.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:I==="DISLIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:x},defaultText:I==="DISLIKE"?W.dislikeCountWithUndislikeText:W.dislikeCountText,toggledText:I==="DISLIKE"?W.dislikeCountText:W.dislikeCountWithDislikeText,defaultNavigationEndpoint:UFt(W,"DISLIKE"),defaultServiceEndpoint:X0m(W,"DISLIKE"),toggledServiceEndpoint:X0m(W,"INDIFFERENT"),defaultTooltip:_.kz(W.dislikeCountTooltipText),
toggledTooltip:_.kz(W.dislikeCountTooltipText)}};
UFt=function(W,P){if(P==="LIKE")return W.likeCommand;if(P==="DISLIKE")return W.dislikeNavigationEndpoint};
X0m=function(W,P){var x;return(x=W.serviceEndpoints)==null?void 0:x.find(function(I){var O;return((O=_.Q(I,_.i6))==null?void 0:O.status)===P})};
N5o=function(W,P){P=P===void 0?{}:P;if(W){var x=!!P.activeState,I=P.iconSize,O=P.className,B=P["aria-hidden$"],Y=P["aria-label$"],K=P.role;P=P.style$+";width: "+((P.width||I)+"px;height: ")+((P.height||I)+"px;color: ")+(P.color+";");W={icon:W};x!==void 0&&(W.active=x);I!==void 0&&(W.size=I);P!==void 0&&(W.style=P);O!==void 0&&(W.className=O);B!==void 0&&(W.ariaHidden=B);Y!==void 0&&(W.ariaLabel=Y);K!==void 0&&(W.role=K);VH("yt-icon",W,b_)}};
_.r$C=function(W,P,x){return window.spf&&!_.p("web_disable_spfjs_client")?l4G(W,P,x):T5G(W,P)};
l4G=function(W,P,x){var I=null,O=(new _.yE(function(B,Y){var K={};if(P){K.method=P.method;var Z=P.postParams||{};iJo(W,P)&&(Z[_.$$("XSRF_FIELD_NAME")]=_.$$("XSRF_TOKEN"));K.postData=_.Kj(Z);P.type&&(K.type=P.type);Z=P.headers}K.headers=XfR(W,Z);_.p("debug_forward_web_query_parameters")&&(W=_.T7R(W,window.location.search));K.experimental_headers=K.headers;K.onError=function(d){d.err&&d.xhr&&(d.err.params={url:d.xhr.responseURL,response:d.xhr.responseText.substr(0,64)});Y(d.err)};
K.onPartDone=function(d){x&&x.call(null,d.part)};
K.onDone=function(d){var v=iSm(d.response,"xsrf_token");TO(window.location.href,W)&&v&&_.MR("XSRF_TOKEN",v);if(v=iSm(d.response,"service_worker_killswitch"))_.MR("SERVICE_WORKER_KILLSWITCH",v),EyW();B(d.response)};
I=spf.request(W,K)})).then(Rrm);
O.thenCatch(function(B){var Y=B instanceof _.Rq,K=B&&B.hasOwnProperty("params")&&B.params.response?B.params.response:"";B instanceof Error&&(K?Y?wWG(B):K===')]}\'\n{"reload":"now"}'?wWG(B):(F_8(B,W,K),q9A(B,K)?_.ge(B):_.G$(B)):wWG(B));I&&I.abort()});
return O};
Rrm=function(W){if(W.type==="multipart"){var P=W.timing;W=W.parts.reduce(function(x,I){Object.assign(x,I);return x},{});
W.timing=W.timing||{};Object.assign(W.timing,P);W.type="reduced"}return W};
T5G=function(W,P){P=P===void 0?{}:P;var x=null,I=new _.yE(function(O,B){P.onFinish=function(Y){if(Y.readyState===XMLHttpRequest.DONE)if(Y.status===200){if(Y.responseType!=="json"){var K=Y.response;K.substring(0,5)===")]}'\n"&&(K=K.substring(5));try{var Z=JSON.parse(K)}catch(d){Z=d}}else Z=Y.response;Z instanceof Error?B(Z):(K=iSm(Z,"xsrf_token"),TO(window.location.href,W)&&K&&_.MR("XSRF_TOKEN",K),Y=Y.responseURL,window.performance&&window.performance.getEntriesByName?(K=window.performance.getEntriesByName(Y).pop())?
Y={responseStart:(0,_.iA)()-(K.responseEnd-K.responseStart)}:(Math.random()<.01&&(K=Error("ai"),K.params=Y,_.ge(K)),Y={responseStart:-1}):Y={responseStart:0},Z.timing=Z.timing||{},Object.assign(Z.timing,Y),O(Z))}else B(Error("$h`"+Y.status))};
(x=_.yO(W,P))||B(Error("$h`"+x.status))});
I.thenCatch(function(O){O instanceof Error&&(F_8(O,W),q9A(O)&&(O.level="WARNING"))});
_.p("cancel_pending_navs")&&I.thenCatch(function(){x.abort()});
return I};
iSm=function(W,P){var x=W[P],I=W.parts;W.type==="multipart"&&I&&(x=(W=I.find(function(O){return P in O}))&&W[P]);
return x};
F_8=function(W,P,x){var I=W.message||"";P={original:I,url:P};if(x)if(I=I.match(/position:?\s*(\d+)/)){I=I&&Number(I[1])?Number(I[1]):0;var O=Math.max(I-25,0);P.position=I;P.response=x.substring(O,I+25)}else P.response=x.substring(0,50);_.Dw(W,P);try{W.message="JSON parse error"}catch(B){}};
q9A=function(W,P){W=W.message||"";W=!!(W.indexOf("<")>=0||W.indexOf("end of ")>=0||W.indexOf("Unterminated string")>=0||W.indexOf("Unexpected EOF"));if(!W&&P)for(var x=P.length,I=!1,O=0;O<x;O++)if(I&&P[O]==="\\")O++;else if(P[O]==='"')I=!I;else if(P[O]==="<"&&!I){W=!0;break}return W};
L_7=function(){return document.documentElement.hasAttribute("dark")};
_.W6m=function(W,P){if(W!=="GFEEDBACK"&&W!=="GUIDED_HELP")_.hQ(Error("bi`"+W));else{var x=_.FY().resolve(_.Rl(_.rL));if(x&&(x=x.getCurrentPage())&&x.getServiceTrackingParams&&(x=x.getServiceTrackingParams()))for(var I=0,O;O=x[I++];)if(O.service===W){if(W=O.params)for(x=0;I=W[x++];)P[I.key]=I.value;break}}};
_.P$o=function(W){var P=_.RP();P&&(P=P.getPlayer())&&(P.pauseVideo(),W.playback_id=P.getVideoData().cpn,W.eid=P.getVideoData().eventId,Object.assign(W,P.getFeedbackProductData()))};
x9G=function(){var W={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.$$("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(W.enableAnonymousFeedback=!0);_.$$("SESSION_INDEX")&&(W.authuser=String(_.$$("SESSION_INDEX")));_.p("enable_pageid_for_feedback")&&_.$$("DELEGATED_SESSION_ID")&&(W.pageId=String(_.$$("DELEGATED_SESSION_ID")));return W};
_.Fj=function(W){_.p("enable_ypc_spinners")&&_.W7(W,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},W])};
_.qz=function(W){_.p("enable_ypc_spinners")&&_.W7(W,"yt-close-popup-action",["yt-loading-renderer"])};
IQA=function(W){return new Promise(function(P,x){_.zm({verifyCommand:{recaptchaToken:W.recaptchaResponse}},{commandController:{onSuccess:function(I,O){O||x("ChallengeService did not return a response.");var B;P({challengeCompleted:(B=O.verified)!=null?B:!1})},
onServerError:function(I,O){x(O)}}})})};
O1m=function(W,P,x,I){P({recaptchaResponse:I}).then(function(O){O.challengeCompleted?_.dO()?(x(3),_.FY().resolve(_.qR).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:W}})):x(2):x(4)},function(){x(4)})};
JUx=function(W,P,x){_.h1("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.$$("HL"),function(){var I;(I=window.grecaptcha)==null||I.ready(function(){var O=window.grecaptcha;O?(x(O.render(W,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:O1m.bind(null,W,IQA,P)})),P(1)):P(4)})})};
BFm=function(W,P){return function(){switch(P()){case 0:return W().captchaLoadingMessage;case 1:return W().challengeReason;case 3:return W().captchaSuccessfulMessage;case 2:return W().captchaCookieSetFailureMessage;case 4:return W().captchaFailedMessage;default:return W().challengeReason}}()};
_.Lo=function(){if(!nx7){var W=document.querySelector("#player.skeleton");W&&(_.oE(W),nx7=!0)}};
_.yUR=function(){return YqG=DHm()};
oxt=function(){return _.y(function(W){return K6t!==void 0?W.return():_.S(W,Z1G(),0)})};
Z1G=function(){return _.y(function(W){if(W.nextAddress==1)return _.S(W,$Hm(),2);YqG=W.yieldResult;K6t=_.Gr.addLowPriorityJob(Z1G,5E3);_.Kl(W)})};
m9C=function(W){var P=P===void 0?Sqx:P;var x,I,O=(x=W.responseContext)==null?void 0:(I=x.mainAppWebResponseContext)==null?void 0:I.trackingParam;if(!O){P.increment("MISSING");var B,Y,K,Z,d,v;_.ge(new _.mW("282054944_a",{yqm:!!((B=W.responseContext)==null?0:(Y=B.mainAppWebResponseContext)==null?0:Y.loggedOut),mim:((K=W.responseContext)==null?void 0:K.mainAppWebResponseContext)===void 0,riD:W.responseContext===void 0,sEC:(Z=W.playabilityStatus)==null?void 0:Z.contextParams,kBb:(((d=W.streamingData)==
null?void 0:d.formats)||[]).length>0,nWQ:(((v=W.streamingData)==null?void 0:v.adaptiveFormats)||[]).length>0,os:!!W.offlineState,cotn:W.cotn}));return 2}x="";try{x=uAm(O)}catch(C){return P.increment("C_ERROR"),_.G$(C),2}try{var m=_.d9m(x);var t=syS(m)}catch(C){return P.increment("P_ERROR"),_.G$(C),2}t=_.RQ(t,vxC,1,_.qT());O=[];t=_.n(t);for(m=t.next();!m.done;m=t.next())I=m.value,m=I.getPath(),x=(0,_.jU.getValueByKeys)(W,m.split(".")),x=String(x===void 0||x===null?"":x),I=I.getValue()||"",B=/[+\-\/_]/g,
x.replace(B,"")!==I.replace(B,"")&&(P.increment("MISMATCH"),_.p("ab_mis_log_err")&&(x=new _.mW("282054944_p",{qBC:m,g:String(x),e:String(I)}),_.G$(x)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(m)||(m.match(/enforcementMessageViewModel/i)?O.push(3):O.push(2)));if(O.length>0)return Math.max.apply(Math,_.ju(O));P.increment("SUCCESS");return 1};
phm=function(W){var P=new WX;if(W.interpreterJavascript){var x=_.AbR(W.interpreterJavascript);x=H6(x).toString();var I=new VRG;_.SU(I,6,x);_.I$(P,1,I,Nb)}else W.interpreterUrl&&(x=_.Ez(W.interpreterUrl),x=_.y4(x).toString(),I=new _.tRR,_.SU(I,4,x),_.I$(P,2,I,Nb));W.interpreterHash&&_.PX(P,3,W.interpreterHash,Nb);W.program&&_.PX(P,4,W.program,Nb);W.globalName&&_.PX(P,5,W.globalName,Nb);W.clientExperimentsStateBlob&&_.PX(P,7,W.clientExperimentsStateBlob,Nb);return P};
xc=function(W){var P={};W=_.n(W.split("&"));for(var x=W.next();!x.done;x=W.next())x=x.value.split("="),x.length===2&&(P[x[0]]=x[1]);return P};
jyR=function(W){return Number(W.t)||7200};
MaU=function(){if(_.p("bg_st_hr"))return"havuokmhhs-0";var W,P=((W=performance)==null?void 0:W.timeOrigin)||0;return"havuokmhhs-"+Math.floor(P)};
Qy8=function(){return new Promise(function(W){var P=window.top;P.ntpevasrs!==void 0?W(new Iz(P.ntpevasrs)):(P.ntpqfbel===void 0&&(P.ntpqfbel=[]),P.ntpqfbel.push(function(x){W(new Iz(x))}))})};
C$U=function(W){var P=W.t8s.bind(W);_.lA("yt.aba.att",P);W=W.j0M.bind(W);_.lA("yt.aba.att2",W)};
z78=function(W){switch(_.YO(W.input)){case _.fR(AUW):var P={};return P.encryptedVideoId=W.innerTubeRequest.externalVideoId,P}return{}};
Exm=function(W){switch(_.YO(W.input)){case _.fR(AUW):if(_.p("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.fR(Oe):if(_.p("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&W.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.fR(G9U):var P,x;if(_.p("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((x=_.Q((P=W.config)==null?void 0:P.command,
Mco))==null?0:x.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.D9U=function(W){var P;if(W.playlistVideoRenderer&&((P=W.playlistVideoRenderer)==null?0:P.engagementBar))return gxm(W.playlistVideoRenderer.engagementBar);if(_.Q(W,JM)){var x;if(W=(x=_.Q(W,JM))==null?void 0:x.engagementBar)return gxm(W)}return""};
gxm=function(W){if(!W)return"";W=_.Q(W,_.MRm);if(W==null||!W.actions)return"";W=_.n(W.actions);for(W=W.next();!W.done;W=W.next()){W=_.Q(W.value,_.$9G);var P=void 0;if((P=W)==null||!P.itemId)break;return W.itemId}return""};
_.wh8=function(W){var P;if(W.playlistVideoRenderer&&((P=W.playlistVideoRenderer)==null?0:P.videoId))return W.playlistVideoRenderer.videoId;if(_.Q(W,JM)){var x,I;if(W=(x=_.Q(W,JM))==null?void 0:(I=x.playlistItemData)==null?void 0:I.videoId)return W}return""};
_.h7W=function(W){var P;if(W.playlistVideoRenderer&&((P=W.playlistVideoRenderer)==null?0:P.voteCount))return W.playlistVideoRenderer.voteCount;if(_.Q(W,JM)){var x,I;if(W=(x=_.Q(W,JM))==null?void 0:(I=x.playlistItemData)==null?void 0:I.voteCount)return W}return 0};
_.BX=function(W,P){return _.Jb(W.entities,"flowStateEntity",P)};
e7R=function(W,P,x,I){var O=void 0;W=_.n(W[P.iconName]||[]);for(var B=W.next();!B.done;B=W.next()){B=B.value;var Y=P.iconSize;var K=P.iconStyle;Y=!Y||Y===B[2];var Z=H1o[B[0]];I&&I!==B[1]||!Y||K&&K!==Z?K=!1:O?(K=H1o[B[0]],K=!!P.iconStyle||K==="youtube_outline",Y=O.version<=B[1],K=(!!P.iconSize||B[2]===24)&&K&&Y):K=!0;K&&(O={name:P.iconName,style:H1o[B[0]],size:B[2],version:B[1],allowMirroring:!!B[3],url:x(P.iconName,B)})}return O};
cUR=function(W,P,x,I){return W+(""+H1o[x[0]]+((I===void 0?0:I)?"_experimental":"")+"/"+P+"/v"+x[1]+"/")+(x[2]+"px.svg")};
nP=function(W){return _.p("web_bookmark_playlist_save_icon")?"bookmark":W};
aQR=function(W,P){return cUR("https://fonts.gstatic.com/s/i/",W,P)};
b1R=function(W,P){return cUR("https://fonts.gstatic.com/s/i/",W,P,!0)};
k9m=function(W,P){return cUR("https://www.gstatic.com/youtube/img/icons/web/",W,P)};
U9R=function(W){var P=W.enabled;var x=W.itemPlaybackModel;var I=W.thumbnailElRef;var O=W.containerElRef;var B=W.options;var Y;_.jj(function(){var K=O==null?void 0:O.value;var Z,d=(Z=I())==null?void 0:Z.value;Z=x();var v=B();if(P&&Z&&K&&d&&(v==null?0:v.thumbnail)){var m,t;K={mediaRenderer:{data:Z,hostElement:K},lockupElement:K,thumbnailElement:d,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.AF((m=Z.inlinePlayerData)==null?void 0:m.onVisible),navigationEndpoint:_.AF((t=Z.inlinePlayerData)==
null?void 0:t.onSelect),thumbnail:v.thumbnail,thumbnailOverlays:v.thumbnailOverlays||[],accessibilityText:v.accessibilityText||""},thumbnailSize:v.thumbnailSize,enableRounding:v.enableRounding}}}else K=void 0;if(m=K){var C;(C=Y)==null||no(C);Y=ir(m)}});
_.C4(function(){var K;(K=Y)==null||no(K)})};
XhR=function(W){W=atob(W);for(var P=[],x=0;x<W.length;x++)P.push(W.charCodeAt(x));return new Blob([new Uint8Array(P)],{type:"image/png"})};
NF8=function(W,P,x,I){I=I===void 0?"INSERTION_POSITION_UNSPECIFIED":I;return W({targetId:P},function(O){var B,Y=(B=O.contents)!=null?B:[];B=x!=null?x:[];var K=fQt(Y);switch(I){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},O,{contents:[].concat(_.ju(Y.slice(0,K)),_.ju(B),_.ju(Y.slice(K+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},O,{contents:[].concat(_.ju(B),_.ju(Y))});case "INSERTION_POSITION_LAST":return Object.assign({},O,{contents:[].concat(_.ju(Y),_.ju(B))});
default:return O}})};
TFS=function(W,P,x,I,O){O=O===void 0?"RELATIVE_INSERTION_POSITION_AFTER":O;return W({targetId:P},function(B){var Y,K=(Y=B.contents)!=null?Y:[];Y=lQt(K,x);if(Y<0)return B;Y=O==="RELATIVE_INSERTION_POSITION_BEFORE"?Y:Y+1;return Object.assign({},B,{contents:[].concat(_.ju(K.slice(0,Y)),_.ju(I),_.ju(K.slice(Y)))})})};
fQt=function(W){var P=W.findIndex(function(x){return _.Q(x,_.Yc)});
return P>=0?P:W.length};
lQt=function(W,P){return W.findIndex(function(x){a:{x=_.n(Object.values(x));for(var I=x.next();!I.done;I=x.next())if((I=I.value)&&I.targetId){x=I.targetId;break a}x=""}return x===P})};
i1m=function(W,P,x){return W({targetId:P},function(I){var O,B=(O=I.contents)!=null?O:[];return Object.assign({},I,{contents:rUC(B,x)})})};
rUC=function(W,P){return W.filter(function(x){var I=P.includes;a:{x=_.n(Object.values(x));for(var O=x.next();!O.done;O=x.next())if((O=O.value)&&O.targetId){x=O.targetId;break a}x=""}return!I.call(P,x||"")})};
_.R78=function(W,P){return{engagementPanelSectionListRenderer:{panelIdentifier:W,identifier:P,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
F6t=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
qqd=function(W){var P=F6t(W);if(P==null?0:P.length)return P;W.loadModule("captions");return F6t(W)};
L6x=function(W,P,x){if(W.getVideoData){var I,O=(I=qqd(W))==null?void 0:I.find(function(B){return B.languageCode===x});
I=_.On("/youtube/app/player_caption_language_entity_key","stringEntity",2);P.dispatch(_.mG("stringEntity",I,{key:I,value:(O==null?void 0:O.displayName)||""}));O?W.setOption("captions","track",O):(W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{}))}};
Wbx=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
PTC=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
xPW=function(W){var P=PTC(W);if(P==null?0:P.length)return P;W.loadModule("captions");return PTC(W)};
IrR=function(W){var P=W.getOption("captions","track");if(P)return P;W.loadModule("captions");return W.getOption("captions","track")};
OvG=function(W){var P=xPW(W);if(P!=null&&P.length){var x=IrR(W);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.KK("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(x==null?0:x.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.ju(P.map(function(I){return{listItemViewModel:{title:{content:I.displayName},
isSelected:I.languageCode===(x==null?void 0:x.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:I.languageCode}}]}}}}}}}})))}}}}}}}}};
YpU=function(W){return new Promise(function(P,x){if(W===void 0)_.G$(Error("Ci"),"ERROR"),x(Error("Ci"));else{x=new _.JPx;var I=_.BR7();x=x.init();var O=_.nh8(_.$$("YPC_MB_URL"),!0);Promise.all([x,O]).then(function(){var B=payments.business.integration.ClientTokenFactory.createClientToken(W,I);P(B)})}})};
Zvt=function(W,P,x,I,O,B,Y){var K=_.aP();x=x.replace(/-/g,"+").replace(/_/g,"/");var Z=_.SI().get("hl"),d=_.yV(_.e9),v=P==null?void 0:P.element;v&&_.Fj(v);yPG(P,!0);_.KbU(d,x,K.resolve,function(){v&&_.qz(v)},function(m){v&&_.qz(v);
K.reject(m)},Z,I?function(m){I&&_.cF(W,I,{backend_analytics:m})}:void 0,K.resolve,O,B,Y);
return K.promise};
yPG=function(W,P){!(W=W==null?void 0:W.element)||W.tagName!=="YT-BUTTON-RENDERER"&&W.tagName!=="YTD-BUTTON-RENDERER"||(W.disabled=P)};
ohR=function(){var W=_.KK("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Ru(W),actionButton:{buttonRenderer:Mi7()}}},popupType:"TOAST"}};
SpG=function(){var W=_.KK("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Ru(W),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
ugx=function(W){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:W}]}}};
KP=function(W,P,x,I){var O;return _.y(function(B){if(B.nextAddress==1)return _.OT(B,2),_.S(B,W,4);if(B.nextAddress!=2)return(O=_.sn(P.getState().entities).length>0)?B.return({title:_.Ru(_.KK("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Ru(_.KK("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:DDd()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
B.return($DA(x,I));_.yn(B);return B.return($DA(x,I))})};
dPC=function(W,P){return P?P==="PPSV"||UKC(W,P):!1};
s4m=function(W){W.responseContext||(W.responseContext={});W.responseContext.maxAgeSeconds=0;return W};
oz=function(W){var P;return _.y(function(x){return x.nextAddress==1?_.S(x,vhR(W,"service:topbar:fallback"),2):(P=x.yieldResult)&&_.Zs(P)?x.return(s4m(_.Zs(P))):x.return()})};
mPW=function(W){var P;return _.y(function(x){return x.nextAddress==1?_.S(x,vhR(W,"service:downloads_settings:fallback"),2):(P=x.yieldResult)&&_.Zs(P)?x.return(P):x.return()})};
vhR=function(W,P){var x;return _.y(function(I){if(I.nextAddress==1)return W?_.S(I,W.get(P),2):I.return();x=I.yieldResult;return!x||!_.Zs(x)||!isNaN(Number(x.data.expireTimestampMs))&&x.isExpired()?I.return():I.return(x)})};
VCW=function(W){var P=_.FY().resolve(S_).getState().entities;return W.playlistId?dPC(P,W.playlistId):!1};
tCt=function(W,P){var x;if(P==null?0:(x=P.requestTemplate)==null?0:x.panelId)W.panelId=P.requestTemplate.panelId;var I;if(P==null?0:(I=P.requestTemplate)==null?0:I.params)W.params=P.requestTemplate.params};
j4d=function(){if(pjd)return pjd();var W=!_.p("idb_response_store_auth_killswitch"),P={};pjd=rO("yt-it-response-store",{objectStores:(P.ResponseStore={addedAtVersion:1},P),shared:!W,upgrade:function(x,I){I(1)&&(x=h0(x,"ResponseStore",{keyPath:["key","clientName"]}),HP(x,"byExpiration","expireTimestampMs"),HP(x,"byInterface","clientName"))},
version:1});return pjd()};
Q4S=function(W){return _.bA(j4d(),W)};
APW=function(W,P){var x;return _.y(function(I){return I.nextAddress==1?_.S(I,_.TM(),2):(x=I.yieldResult)?I.return(new CTU(W,P,x)):I.return()})};
z8W=function(W){var P=Object.keys(W)[0];if(P)return W.screenExit&&(P=P+";"+W.screenExit.screen),P};
GHm=function(W){var P=new Map;W=_.n(W);for(var x=W.next();!x.done;x=W.next())x=x.value,x!=null&&(P.has(x.taskType)||P.set(x.taskType,[]),P.get(x.taskType).push(x));return P};
Ehx=function(W){return!isNaN(W)&&W>0};
ghd=function(W){W=[].concat(_.ju(W)).sort(function(x,I){return x-I});
var P=Math.floor(W.length/2);return W.length%2?W[P]:(W[P-1]+W[P])/2};
$PS=function(W,P){W=W===void 0?mgt:W;P=P===void 0?{}:P;_.lA("yt.logging.errors.log",_.G$);sxS();DPA(Qxx(),P);window.onerror=W;MCR=vYG;window.addEventListener("unhandledrejection",function(x){if(x.reason instanceof Error){var I=x.reason;_.Dw(I,{source:"unhandledrejection"});I.name==="AbortError"&&(I.level="WARNING")}vYG(x.reason);x.preventDefault()})};
_.wjx=function(W){return W.a11y.ephemeralAction||null};
_.h8x=function(W){var P,x,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F,nm,pm,zR,Am,kW,$W,ao,e8,iC,hw,dk,Oc,Bm,GA,KM,PZ,j$,YW;return _.y(function(QZ){if(QZ.nextAddress==1)return _.S(QZ,_.Z5(W,{mode:"readonly",enableRetries:!0},function(ez){return oY(ez,"playbackData").then(function(b3){var D3=b3.map(function(rS){return rS.transfer}).filter(function(rS){return!!rS}),lp=b3.map(function(rS){return rS.offlineVideoPolicy}).filter(function(rS){return!!rS}),TE=b3.filter(function(rS){return!!rS.key}).map(function(rS){return _.On(_.Pu(rS.key).entityId,
"downloadStatusEntity")});
D3=oY(ez,"transfer",D3);lp=oY(ez,"offlineVideoPolicy",lp);TE=oY(ez,"downloadStatusEntity",TE);var sc=D3.then(function(rS){rS=rS.reduce(function(jz,yf){(yf==null?0:yf.offlineVideoStreams)&&jz.push.apply(jz,_.ju(yf.offlineVideoStreams));return jz},[]).filter(function(jz){return!!jz});
return oY(ez,"offlineVideoStreams",rS)});
return wO.all([D3,lp,sc,TE]).then(function(rS){var jz=_.n(rS);rS=jz.next().value;var yf=jz.next().value;var CM=jz.next().value;jz=jz.next().value;return[b3,rS,yf,CM,jz]})})}),2);
if(QZ.nextAddress!=3)return P=QZ.yieldResult,_.S(QZ,_.Z5(W,{mode:"readonly",enableRetries:!0},function(ez){return oY(ez,"mainDownloadsListEntity").then(function(b3){var D3,lp;return(lp=(D3=b3[0])==null?void 0:D3.downloads)!=null?lp:[]})}),3);
x=QZ.yieldResult;I=_.n(P);O=I.next().value;B=I.next().value;Y=I.next().value;K=I.next().value;Z=I.next().value;d=O;v=B;m=Y;t=K;C=Z;z={};D={};w={};a={};k={};T=[];N=_.n(v);for(Io=N.next();!Io.done;Io=N.next())(F=Io.value)&&(z[F.key]=F);nm=_.n(m);for(pm=nm.next();!pm.done;pm=nm.next())(zR=pm.value)&&(D[zR.key]=zR);Am=_.n(C);for(kW=Am.next();!kW.done;kW=Am.next())($W=kW.value)&&(w[$W.key]=$W);ao=_.n(t);for(e8=ao.next();!e8.done;e8=ao.next())(iC=e8.value)&&(a[iC.key]=iC);hw=_.n(x);for(dk=hw.next();!dk.done;dk=
hw.next())Oc=dk.value,Bm=void 0,k[(Bm=Oc.videoItem)!=null?Bm:""]=!0,Oc.videoItem&&(KM=GA=void 0,PZ=(KM=(GA=_.Pu(Oc.videoItem))==null?void 0:GA.entityId)!=null?KM:"",T.push({externalVideoId:PZ}));j$=d.filter(function(ez){if(!ez||!ez.key||!ez.offlineVideoPolicy)return!1;ez=_.Pu(ez.key).entityId;ez=_.On(ez,"downloadStatusEntity");var b3;return!(ez&&((b3=w[ez])==null?void 0:b3.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
YW=j$.map(function(ez){var b3=z[ez.transfer],D3=[];if(b3==null?0:b3.offlineVideoStreams)for(var lp=_.n(b3.offlineVideoStreams),TE=lp.next();!TE.done;TE=lp.next())(TE=a[TE.value])&&D3.push(TE);lp=D[ez.offlineVideoPolicy];TE=k;var sc=ez==null?void 0:ez.playerResponseTimestamp,rS=_.Pu(lp.key).entityId;ez=_.On(rS,"mainVideoEntity");if(lp.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var jz="OFFLINE_VIDEO_STATE_DISABLED";lp.expirationTimestamp&&Number(lp.expirationTimestamp)<Date.now()/1E3&&(jz="OFFLINE_VIDEO_STATE_EXPIRED")}else if(lp.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")jz="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(b3==null?void 0:b3.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":jz="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":jz="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":jz="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":jz="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":jz="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":jz="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:jz="OFFLINE_VIDEO_STATE_UNKNOWN"}if(jz==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(b3==null?void 0:b3.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":jz="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":jz="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":jz=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}rS={id:rS,videoState:jz};if(b3==null?0:b3.cotn)rS.cotn=b3.cotn;if(b3==null?0:b3.maximumDownloadQuality)rS.selectedVideoQuality=b3==null?void 0:b3.maximumDownloadQuality;if(b3==null?0:b3.lastProgressTimeMs)rS.lastProgressTimeMs=b3.lastProgressTimeMs;sc&&(rS.playerResponseSavedTimeMs=String(Number(sc)*1E3));b3=String;sc=0;D3=_.n(D3);for(jz=D3.next();!jz.done;jz=D3.next())if(jz=jz.value,jz.streamsProgress){jz=_.n(jz.streamsProgress);for(var yf=jz.next();!yf.done;yf=
jz.next()){var CM=void 0;sc+=Number((CM=yf.value.numBytesDownloaded)!=null?CM:0)}}rS.downloadedBytes=b3(sc);rS.selectedOfflineMode=TE[ez]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";lp.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(rS.offlinePlaybackDisabledReason=lp.offlinePlaybackDisabledReason);return rS});
return QZ.return({offlineVideos:YW,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:T}}})})};
HvA=function(){var W;return _.y(function(P){return P.nextAddress==1?_.S(P,_.Yz(),2):(W=P.yieldResult)?P.return(_.h8x(W)):P.return({state:"PES Unavailable"})})};
arC=function(){var W,P,x,I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,_.Yz(),2);if(O.nextAddress!=3)return(W=O.yieldResult)?_.S(O,e8U(W),3):O.return({state:"PES Unavailable"});P=O.yieldResult;x={};I=P.reduce(function(B,Y){B[Y.key]=Y;return B},x);
return O.return(cPR(I))})};
cPR=function(W){for(var P={},x=[],I=_.n(Object.keys(W)),O=I.next();!O.done;O=I.next()){var B=O.value;O=W[B];var Y=void 0;if(((Y=O)==null?void 0:Y.entityType)==="mainVideoEntity"){delete W[B];var K=O.data;O={};if(K){var Z=void 0;Y=(Z=K.videoId)!=null?Z:"vid-"+B;B=W;O.video=K;delete O.video.formattedDescription;delete O.video.thumbnail;K.owner&&(Z=B[K.owner],Z==null?0:Z.data)&&(delete B[Z.key],O.video.owner=Z.data,delete O.video.owner.avatar);if(K=K.downloadState)if(Z=B[K],Z==null?0:Z.data)if(delete B[K],
K=Z.data.playbackData)if(Z=B[K],Z!=null&&Z.data){delete B[K];K=Z.data;delete K.playerResponseJson;O.playbackData=K;if(K.transfer&&(Z=B[K.transfer],Z==null?0:Z.data)){delete B[Z.key];var d=Z.data;O.transfer=d;Z=[];d=_.n(d.offlineVideoStreams||[]);for(var v=d.next();!v.done;v=d.next())if(v=B[v.value])delete B[v.key],Z.push(v.data);Z&&(O.streams=Z)}(K=K.offlineVideoPolicy)&&(K=B[K])&&K.data&&(delete B[K.key],O.offlineVideoPolicy=K.data)}P[Y]=O}}else O&&O.entityType==="offlineOrchestrationActionWrapperEntity"&&
O.data&&(delete W[O.key],Y=O.data,B=void 0,x.push({id:Y.rootActionId,type:((B=Y.actionProto)==null?void 0:B.actionType)||"",entity:O}))}P.wrapperEntities=x;Object.keys(W).length>0&&(P.unknownKeys=W);return P};
bvG=function(){var W,P,x,I,O,B,Y,K,Z;return _.y(function(d){if(d.nextAddress==1)return W=!!(new _.$N("")).expiringStorage_,I=!!((P=_.xW.crypto)==null?0:(x=P.subtle)==null?0:x.importKey),O=!!_.xW.BroadcastChannel,B=!!_.xW.navigator.locks,_.S(d,ifo(),2);Y=d.yieldResult;K=W&&I&&O&&B&&Y;Z={isSupported:K};if(K)return d.return(Z);Z.missingBrowserFeatures=[];Y||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");W||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
I||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");O||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");B||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return d.return(Z)})};
kHS=function(){var W;return!((W=u4?u4:null)==null||!W.window)};
_.XjC=function(W){if(_.DA()&&_.Zmt("Chromium")>=120){var P=_.UPd().mediaSession;try{P.setActionHandler("enterpictureinpicture",function(){W()})}catch(x){}}};
fro=function(W){for(var P=[],x=_.n(document.styleSheets),I=x.next(),O={};!I.done;O={node$jscomp$725:void 0},I=x.next())O.node$jscomp$725=I.value.ownerNode,O.node$jscomp$725&&(O.node$jscomp$725 instanceof HTMLStyleElement||O.node$jscomp$725 instanceof HTMLLinkElement)&&P.push(new Promise(function(B){return function(Y){var K=B.node$jscomp$725.cloneNode(!0);K.onload=function(){Y()};
K.onerror=function(){_.ge(Error("ej"));Y()};
W.document.head.appendChild(K)}}(O)));
return Promise.all(P)};
WFR=function(W){var P=[_.qi(NRA),_.qi(lrW),_.qi(TRm)];rPt(window.document.documentElement,W.document.documentElement,[_.qi(ivA),_.qi(R8o),_.qi(FbR),_.qi(qpo),_.qi(LbU)]);rPt(window.document.body,W.document.body,P)};
rPt=function(W,P,x){W=_.n(W.attributes);for(var I=W.next();!I.done;I=W.next())if(I=I.value)try{_.b5(x,P,I.name,I.value)}catch(O){}};
xjG=function(W,P){W=new _.dh(W.document.documentElement);W.start(PJx,P);return W};
IMW=function(W){var P=W.document.documentElement;P.addEventListener("click",function(x){Xs7(P,x)});
P.addEventListener("touchstart",function(x){rkG(x)});
P.addEventListener("mousedown",function(x){rkG(x)})};
Jvd=function(W,P,x,I){I=I===void 0?!1:I;P=new Op7(P||W,x||W);return{x:W.x+((I===void 0?0:I)?P.lengthX*-1:P.lengthX)*.2,y:W.y+((I===void 0?0:I)?P.lengthY*-1:P.lengthY)*.2}};
B$C=function(W){if(!W)return!1;var P=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",x,I,O,B=(O=(x=W.errorScreen)==null?void 0:x.playerLegacyDesktopYpcTrailerRenderer)!=null?O:(I=W.errorScreen)==null?void 0:I.ypcTrailerRenderer;return!!P||!!B};
_.nvW=function(W,P){if(!W)return!1;var x,I=(x=W.errorScreen)==null?void 0:x.playerLegacyDesktopYpcOfferRenderer,O;P=!!(P==null?0:(O=P.playerOverlayRenderer)==null?0:O.gatedActionsOverlayRenderer);return!!B$C(W)||!!I||!!P};
KFS=function(W){return Y6W(W,0,"gclid",W.search(yvR))>=0||Y6W(W,0,"gad_source",W.search(yvR))>=0};
S68=function(W){var P=[],x=0;return{push:function(I){P[x]=I;x=(x+1)%W},
iterate:function(){return function O(){var B,Y,K,Z;return _.Zpm(O,function(d){switch(d.nextAddress){case 1:_.Br(d,2),B=P.length,Y=0;case 4:if(!(Y<B)){d.jumpTo(2);break}K=x+Y;Z=_.ovm;return _.S(d,P[K%B],7);case 7:Z(d.yieldResult);Y++;d.jumpTo(4);break;case 2:_.Jo(d),_.YD(d,0)}})}()}}};
djS=function(){var W=_.Wi("web_max_tracing_events",0);_.p("web_enable_tracing")&&W>0&&u2d(W)};
u2d=function(W){var P=S68(W);fgd({sample:function(x,I){return x==="event"?!s3m.has(I==null?void 0:I.type):!1},
spanProcessors:[{onSpanStart:function(x){P.push(x)}}]});
EYA.subscribe("handleError",function(x){try{Object.assign(x.params,{breadcrumbs:JSON.stringify(Array.from(P.iterate()))})}catch(I){_.G$(I,"ERROR")}})};
vvm=function(W){return new Promise(function(P){window.setTimeout(P,W)})};
mjm=function(W){var P={bicf:function(B){W.fmR=B},
blc:function(){return W.getLatestChallengeResponse()},
bcr:function(B){W.rkW.push(B)}},x=window.top;
x.ntpevasrs=P;if(x.ntpqfbel!==void 0)for(var I=_.n(x.ntpqfbel),O=I.next();!O.done;O=I.next())O=O.value,O(P);x.ntpqfbel=void 0};
VWC=function(W){return _.y(function(P){if(P.nextAddress==1)return _.OT(P,2),_.S(P,W.ugT(),4);if(P.nextAddress!=2)return _.ci(P,0);_.yn(P);_.Kl(P)})};
tWU=function(W){var P,x;(P=W.ytcsi)==null||(x=P.tick)==null||x.call(P,"pot_ist")};
p3x=function(W){if(W instanceof Error){var P=_.eL("yt.logging.errors.log");P&&P(W,"WARNING")}};
j3S=function(W){try{var P=JSON.parse(W);if(P.bgChallenge)return P}catch(x){}};
CJm=function(){var W=window,P={networkStatusManagerPromise:_.FY().resolve(new Mkx(_.bE)),initialChallengeSli:_.p("wpo_att_sli")?new _.bAo("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};W=W===void 0?window:W;var x=W.ytAtR,I;P==null||(I=P.initialChallengeSli)==null||_.se(I);if(x){if(x=j3S(x)){var O;P==null||(O=P.initialChallengeSli)==null||_.vX(O,"SUCCESS");Q3A(x,P)}W.ytAtR=void 0}else W.ytAtRC=function(B){if(B=j3S(B)){var Y;P==null||(Y=P.initialChallengeSli)==null||
_.vX(Y,"SUCCESS");Q3A(B,P);W.ytAtRC=void 0}}};
GJ7=function(){if(AvG)return AvG;try{var W=_.ZV("IFRAME");_.g9(W,_.W9(zvW));W.sandbox.add("allow-same-origin");W.style.display="none";document.body.appendChild(W);return AvG=W}catch(P){W=new _.mW("Failed to create sandbox iframe"),_.G$(W)}};
Evo=function(W){var P,x;return(x=W==null?void 0:(P=W.contentWindow)==null?void 0:P.fetch)!=null?x:window.fetch};
gvU=function(W){var P,x;return(x=W==null?void 0:(P=W.contentWindow)==null?void 0:P.JSON.parse)!=null?x:JSON.parse};
DjW=function(W){var P,x;return(x=W==null?void 0:(P=W.contentWindow)==null?void 0:P.Request)!=null?x:window.Request};
w37=function(){if(k1m()==="hidden")var W="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else k1m()==="visible"&&(W="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",MWU=null);W&&$jd(W)};
$jd=function(W){if(W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(hvS===W)return;hvS=W}var P=9E4+Math.random()*2E3;if(W!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.LD()>P)&&k1m()==="visible"){P=-1;MWU&&(P=Math.round((0,_.iA)()-MWU));var x=String;var I=_.eL("_fact",window);I=I==null||I==-1?-1:Math.max(Date.now()-I,0);_.Ay("foregroundHeartbeat",{firstActivityMs:x(I),clientDocumentNonce:t3o,index:String(Hpm),lastEventDeltaMs:String(P),trigger:W});
_.lA("_fact",-1,window);Hpm++;MWU=(0,_.iA)()}};
_.evm=function(){try{return!!self.sessionStorage}catch(W){return!1}};
cvt=function(){var W=navigator;return new Promise(function(P,x){var I;(I=W.webkitTemporaryStorage)!=null&&I.queryUsageAndQuota?W.webkitTemporaryStorage.queryUsageAndQuota(function(O,B){P({usage:O,quota:B})},function(O){x(O)}):x(Error("nj"))})};
aM8=function(W,P){var x={errorSeverity:P.errorSeverity.toString(),wizFeatureFlags:Object.entries(P.featureFlags).join("\n")};dgU(P,x);P=P.errorSeverity;P===3?_.G$(W,"ERROR",void 0,void 0,void 0,x):P===2&&_.G$(W,"WARNING",void 0,void 0,void 0,x);_.p("cow_if_errors_in_popup")&&P===3&&W.message.indexOf("<If>")!==-1&&window.alert(W.message)};
bpx=function(W,P,x){W.componentType!==vJ&&x instanceof HTMLElement&&P&&!_.p("cow_logging_in_component_wrapper")&&Nmm(x,P,!0)};
kJ7=function(W,P,x){P=P===void 0?{}:P;var I,O=(I=_.Q(W.commandMetadata,_.rU))==null?void 0:I.url;I=P.form||{};!x||I.element||I.skipDefaultElement||(P.form=P.form||{},P.form.element=x);if(O&&O!=="/service_ajax")return{type:0,command:W,form:P.form};if(_.p("kevlar_service_command_check")){if(_.ey(_.FY().resolve(_.m7),W))return Object.assign({},{type:1,command:W},P)}else{var B;if((B=_.Q(W.commandMetadata,_.rU))==null?0:B.apiUrl)return Object.assign({},{type:1,command:W},P)}return{type:2,command:W,form:P.form}};
UjU=function(W){if(W.form){var P=W.form,x=Object.assign({},P);P=P.element;x=(delete x.element,x);if(P)return[_.Iu(P,[W.command,x,W.commandController])]}return[]};
X3R=function(W){if(W.form){var P=W.form,x=Object.assign({},P);P=P.element;x=(delete x.element,x);P&&_.OL(P,[W.command],P,x)}};
N$U=function(W,P,x){var I=new fMA(W,P),O=new mf(W,P,x);W={"/youtubei/v1/browse":new VV(W,P,x),"/youtubei/v1/player":I,"/youtubei/v1/navigation/resolve_url":new tM,"/youtubei/v1/next":O,"/youtubei/v1/guide":new pP(x),"/youtubei/v1/search":new j_(W,P,x),"/youtubei/v1/reel/reel_item_watch":new QV(W,P,x),"/youtubei/v1/get_watch":new CP(I,O)};W["/youtubei/v1/account/account_menu"]=new AM;W["/youtubei/v1/notification/get_notification_menu"]=new zc;return W};
Ee=function(){var W=_.FY().resolve(Gc);return Promise.resolve(lM8(W,_.xW.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
T$R=function(W){return W&&(W=_.gh(_.oGU(W)))?(new URLSearchParams(W)).get("service"):null};
$c=function(W,P){_.Fo(_.Ds(),function(){_.CK("adl")});
_.FY().resolve(rvt)(P);W=W.root;W.loadData&&W.loadData(P);(P==null?0:P.response)?_.vX(X17(),"SUCCESS"):_.ge(new _.mW("Lifecycle: No response in data",_.wo("IS_SHELL_LOAD"),P?P.page:"NO_PAGE",P?P.endpoint:"NO_ENDPOINT"));W.polymerController.$["page-manager"].lazyPrepareCriticalPages((P==null?void 0:P.page)||"",P.endpoint);var x,I;((I=_.Q(P==null?void 0:(x=P.endpoint)==null?void 0:x.commandMetadata,_.rU))==null?0:I.webPageType)&&_.Xe().dispatch(_.M$(_.Q(P.endpoint.commandMetadata,_.rU).webPageType))};
ipS=function(){var W,P;return _.y(function(x){switch(x.nextAddress){case 1:W=window;if(!W.getDataPromise){x.jumpTo(2);break}_.OT(x,3);return _.S(x,W.getDataPromise(),5);case 5:return x.return(x.yieldResult);case 3:return _.yn(x),_.S(x,Ee(),6);case 6:return x.return(x.yieldResult);case 2:if(W.getInitialData)return P=W.getInitialData(),W.getInitialData=void 0,x.return(P);throw Error("pj`"+_.xW.location.href);}})};
FF7=function(){_.MR("CSI_SERVICE_NAME","youtube");_.jI({loadType:"cold"});_.p("kevlar_log_lcp")&&Rvd(function(W){_.CK("lcp",W.value)})};
q6C=function(){var W=_.hz(document.location.href,"enable");W&&W.indexOf("scraper")>-1&&_.MR("ADD_SCRAPER_ATTRIBUTES",!0)};
Im7=function(W){var P=W.root;W=[LF7,WKU,_.wh];_.p("web_feedback_endpoint_autolog_allowlist_killswitch")&&W.push(_.hM,P2m);xAm(function(x,I){return kJ7(x,I,P)},function(x){if(!x.command)return[];
var I;((I=x.form)==null?0:I.element)?x.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},x.form,{endpoint:x.command})})):P.handleNavigate(x);return[]},W);
_.FY().addProvider({provide:_.qR,useValue:_.Ix.instance})};
J5R=function(){var W={},P={},x;for(x in OGC){var I=_.n(_.YV(OGC[x],void 0,"NBH2te"));W[x]=I.next().value;P[x]=I.next().value}return[W,function(O){for(var B in O){var Y=void 0;(Y=P[B])==null||Y(O[B])}}]};
_.YgG=function(W,P){var x=_.jU.getValueByKeys(W,"contents","twoColumnWatchNextResults","results","results","contents"),I=_.jU.getValueByKeys(W,"contents","twoColumnWatchNextResults","playlist","playlist")||null,O=null,B=null;if(I)O=_.jU.getValueByKeys(I,"titleText"),B=_.jU.unsafeClone(_.jU.getValueByKeys(I,"longBylineText")),x="",B&&(x=_.kz(B)),B=_.bx(x);else if(x){x=_.n(x);for(var Y=x.next();!Y.done;Y=x.next())Y=Y.value,Y.videoPrimaryInfoRenderer&&(O=_.jU.getValueByKeys.apply(_.jU,[Y].concat(_.ju(BfW)))),
Y.videoSecondaryInfoRenderer&&(B=_.jU.getValueByKeys.apply(_.jU,[Y].concat(_.ju(nkS))))}else _.co(Error("uj"));var K;W.currentVideoEndpoint?K=W.currentVideoEndpoint:_.co(Error("vj"));var Z;P&&(Z=_.jU.getValueByKeys(P,"playabilityStatus","miniplayer","miniplayerRenderer"));W={miniplayerTitle:O,miniplayerSubtitle:B,watchEndpoint:K,playlistData:I};Z&&(W.miniplayerRenderer=Z);return W};
y5m=function(W){if(W)return _.pt(W)};
_.KKm=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
ZGd=function(W){return W.videoDuration?W.numTaps>1&&W.tapDirection!==0?_.HX(W.draggedTime/W.videoDuration,0,1):_.HX((W.playedTime||0)/W.videoDuration,0,1):0};
okW=function(W){return W.videoDuration?W.isDragging||W.numTaps>1&&W.tapDirection!==0?_.HX(W.draggedTime/W.videoDuration,0,1):_.HX((W.playedTime||0)/W.videoDuration,0,1):0};
uSm=function(W){var P,x,I;return _.Q(W==null?void 0:(P=W.markersMap)==null?void 0:(x=P.find(function(O){return O.key==="HEATSEEKER"}))==null?void 0:(I=x.value)==null?void 0:I.heatmap,SgW)};
dAt=function(W){var P,x;return(x=(P=uSm(W))==null?void 0:P.heatMarkersDecorations)!=null?x:[]};
sw7=function(W){if(_.p("mweb_supported_chapters_killswitch"))return!0;var P;return!!(W==null?0:(P=W.markersMap)==null?0:P.find(function(x){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(x.key)}))};
_.vkU=function(W){var P=Object,x=P.assign,I;W={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(I=W==null?void 0:W.getPlayerState())!=null?I:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return x.call(P,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},W,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
mAR=function(W){return function(P){var x=W(),I,O=(I=x.playerApi)==null?void 0:I.getPlayerState();P&&P!==x.playerState&&(P===1||P===2)&&x.setState({playerState:O})}};
tTU=function(W){return function(P){var x=W(),I=x.playerApi;I&&(P==null?void 0:P.type)==="newdata"&&(VTo&&(clearTimeout(VTo),VTo=void 0),_.p("web_shorts_use_progress_state_for_gapless")?(P=I==null?void 0:I.getProgressState(P==null?void 0:P.playertype),P=P.seekableEnd-P.seekableStart):P=I==null?void 0:I.getDuration(P==null?void 0:P.playertype),x.setState({playedTime:0,videoDuration:P}))}};
pHS=function(W){return function(P){var x=W(),I=x.playerApi;if(I){var O=I.getPresentingPlayerType();_.p("web_shorts_use_progress_state_for_gapless")?(I=I.getProgressState(O),I=I.seekableEnd-I.seekableStart):I=I.getDuration(O);x.setState({playedTime:P,videoDuration:I})}}};
C2A=function(W){var P=W.element;var x=W.veType;var I=W.storedVisualElement===void 0?null:W.storedVisualElement;var O=W.elementIndex===void 0?0:W.elementIndex;W=W.clientYouTubeData;var B=_.E_();B!==jwG&&(Qw7.clear(),jwG=B);if(P.visualElement&&Qw7.has(P.visualElement))return null;if(I&&Qw7.has(I))return P.visualElement=I,null;x=_.nt(_.YY(),{veType:x,elementIndex:O,clientYouTubeData:W});if(!x)return null;P.visualElement=x;Qw7.add(x);return x};
_.e_=function(W,P,x,I){x=x===void 0?null:x;I=I===void 0?Rtt:I;var O=O===void 0?null:O;vW(function(){if(P){x instanceof Function&&(x=x());var B=C2A({element:P,veType:W,storedVisualElement:x,clientYouTubeData:void 0});B&&(LoR(P,O),I(B))}})};
zam=function(W){_.e_(112394,W,function(){return A5C},function(P){A5C=P})};
gkx=function(W,P){if(!W)return[];var x,I,O;W=((x=W.markersMap)==null?void 0:(I=x.find(function(B){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(B.key)}))==null?void 0:(O=I.value)==null?void 0:O.chapters)||[];
!GV7(W)||(P==null?0:P.ignoreStub)||(W=[Ekm()].concat(_.ju(W)));return W};
Ekm=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
GV7=function(W){if(W.length===0)return!1;var P;return((P=_.Q(W[0],cX))==null?void 0:P.timeRangeStartMillis)!==0};
az=function(W){return W?W.timeRangeStartMillis||0:0};
MTC=function(W,P){if(W.isDragging&&P)return W=DAA(W,P),W===-1?Ekm():gkx(P)[W]};
DAA=function(W,P){return W.isDragging&&P?gkx(P,{ignoreStub:!0}).findIndex(function(x,I,O){x=$Am(W);return wHo(x,O,I).scrubberHovering}):-1};
$Am=function(W){return Object.assign({},W,{videoDuration:W.videoDuration*1E3,playedTime:W.playedTime*1E3,draggedTime:W.draggedTime*1E3})};
wHo=function(W,P,x){var I=az(_.Q(P[x],cX));P=az(_.Q(P[x+1],cX))||W.videoDuration;x=W.isDragging;var O;if(O=W.isDragging)O=W.draggedTime,O=O!==null&&O>=I&&O<P;var B=W.playedTime;return B!==null&&B>=I&&B<P?{videoPosition:"active",isScrubbing:x,scrubberHovering:O}:W.playedTime<I?{videoPosition:"pending",isScrubbing:x,scrubberHovering:O}:{videoPosition:"seen",isScrubbing:x,scrubberHovering:O}};
haU=function(W,P){return W.videoPosition==="seen"||(P===void 0?0:P)>0};
HGm=function(W,P,x){P=W/P.storyboardInterval;var I=gkx(x);if(!I.length)return-P*72;x=0;I=_.n(I);for(var O=I.next();!O.done;O=I.next())if(az(_.Q(O.value,cX))/1E3<W)x++;else break;return-(P*72)-x*56};
ea8=function(W){return W?W.width/W.columns:0};
c5d=function(W){return W.isHovering?W.hoveredTime:W.draggedTime};
amS=function(W,P){W=W.draggedTime*1E3;return W>=P.visibleTimeRangeStartMillis&&W<=P.visibleTimeRangeEndMillis};
_.bGo=function(W){if(W===void 0||Number.isNaN(W))return"--:--";var P=Math.abs(Math.floor(W)),x=Math.floor(P/86400),I=Math.floor(P%86400/3600),O=Math.floor(P%3600/60);P=Math.floor(P%60);var B="";x>0&&(B+=x+":",I<10&&(B+="0"));if(x>0||I>0)B+=I+":",O<10&&(B+="0");B+=O+":";P<10&&(B+="0");B+=P;return W>=0?B:"-"+B};
kVt=function(W,P){return function(){var x=c5d(W());var I=P();var O=W().playerApi;if(O&&O.getNumberOfStoryboardLevels()!==0){var B=O.getStoryboardFrameIndex(x,1);B!==-1?I=O.getStoryboardFrame(B,1):(x=O.getStoryboardFrameIndex(x,0),O=O.getStoryboardFrame(x,0),I&&O&&(O.height*=3,O.width*=3),I=O)}else I=null;if(!I)return null;P()&&(I.width=90*I.columns,I.height=160*I.rows);return I}};
_.b4=function(W){if(!W||W.getVideoData)return W};
UAt=function(){var W;return{playerApi:(W=_.nC())!=null?W:void 0}};
_.Tfo=function(W){function P(F){F!==0||m?F>50&&(m||!C)?(t(!1),z(!0)):F<=50&&(m||C)&&(t(!1),z(!1)):t(!0)}
function x(){var F;return _.y(function(nm){if(nm.nextAddress==1)return _.S(nm,_.Bq(),2);(F=nm.yieldResult)&&(F.isMuted()?t(!0):t(!1));_.Kl(nm)})}
var I=W.noSlider;var O=W.orientation;W=_.fa();var B=_.fa(),Y=_.Nl(),K=_.n(KC(!1)),Z=K.next().value,d=K.next().value,v=_.n(KC(!1));K=v.next().value;v=v.next().value;var m=K,t=v;v=_.n(KC(!0));K=v.next().value;v=v.next().value;var C=K,z=v;K=O==="vertical_down";_.AQ(function(){function F(){d(!0)}
function nm(){d(!1)}
I?(x(),P(m?0:100)):Y&&Y.value&&(Y.value.addEventListener("focus",F),Y.value.addEventListener("focusout",nm),XHU(Y.value).then(function(){P(Number(fmC(Y.value)))}));
B&&B.value&&(B.value.addEventListener("focus",F),B.value.addEventListener("focusout",nm));return function(){var pm;Y==null||(pm=Y.value)==null||pm.removeEventListener("focus",F);var zR;Y==null||(zR=Y.value)==null||zR.removeEventListener("focusout",nm);B.value.removeEventListener("focus",F);B.value.removeEventListener("focusout",nm)}});
var D=_.yB(function(){if(Y&&Y.value){var F=Number(fmC(Y.value));Nfm(F);Y.value.style.setProperty("--gradient-percent",F+"%");P(F)}return!1});
v={};v=(v.ytdDesktopShortsVolumeControlsHost=!0,v.ytdDesktopShortsVolumeControlsHostVertical=K,v.ytdDesktopShortsVolumeControlsHostExpanded=Z,v);var w={},a=(w.ytdDesktopShortsVolumeControlsSliderContainer=!0,w.ytdDesktopShortsVolumeControlsSliderContainerExpanded=Z,w.ytdDesktopShortsVolumeControlsSliderContainerVertical=K,w.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=O==="vertical_down",w.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=Z&&K,w);O={};var k=(O.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,O.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=I?!1:Z,O);Z={};Z=(Z.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=K,Z);O=_.yB(function(){d(!0)});
w=_.yB(function(){d(!1)});
var T=_.yB(function(){if(Y&&Y.value||I)lm8(Y.value,m,I),t(!m);return!1}),N=_.p("web_shorts_keyboard_enable_mute_shortcut")?m?_.KK("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.KK("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):m?_.KK("UNMUTE_VOLUME",void 0,"Unmute"):_.KK("MUTE_VOLUME",void 0,"Mute"),Io={sources:[{clientResource:{imageName:m?"VOLUME_OFF_FILLED":C?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.u("desktop-shorts-volume-controls",{"on:pointerleave":w,class:_.BF(v),el:W},fU(!K,function(){return _.u("div",{class:_.BF(k)})}),_.u("div",{class:_.BF(Z)},_.u("button",{"aria-label":N,
title:N,el:B,"on:click":T,"on:pointerenter":O,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Io?_.u(_.bq,{data:Io,alt:N,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),fU(!I,function(){return _.u("div",{class:_.BF(a)},_.u("input",{"aria-label":_.KK("VOLUME"),title:_.KK("VOLUME"),el:Y,"on:input":D,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
XHU=function(W){var P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,_.Bq(),2);P=I.yieldResult;x=50;P&&(x=P.getVolume(),P.isMuted()?r5C(W,0):r5C(W,x));_.Kl(I)})};
Nfm=function(W){var P;_.y(function(x){if(x.nextAddress==1)return _.S(x,_.Bq(),2);if(P=x.yieldResult)P.unMute(!0),P.setVolume(W,!0);_.Kl(x)})};
r5C=function(W,P){W&&(W.value=""+P,W.style.setProperty("--gradient-percent",P+"%"))};
fmC=function(W){var P;return(P=W==null?void 0:W.value)!=null?P:0};
lm8=function(W,P,x){var I;_.y(function(O){if(O.nextAddress==1)return _.S(O,_.Bq(),2);I=O.yieldResult;P&&I?(I.unMute(!0),!x&&W&&r5C(W,I.getVolume())):I&&(I.mute(!0),!x&&W&&r5C(W,0));_.Kl(O)})};
iGG=function(){var W;_.y(function(P){if(P.nextAddress==1)return _.S(P,_.Bq(),2);W=P.yieldResult;if(!W)return P.return();W.isMuted()?W.unMute(!0):W.mute(!0);_.Kl(P)})};
RaR=function(W){var P=_.FY().resolve(_.kc).getPlayerElement();P&&W&&(W===1?P.pause():P.play())};
FKo=function(W){_.P7(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
qgU=function(W){_.P7(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Wid=function(W){return _.jL(W.document.body,function(){return _.u(LK8,null)})};
Pyo=function(){var W=window.performance.getEntriesByType("navigation");return W?W.map(function(P){return P.type}).includes("reload"):!1};
yBG=function(){Ue(Ue(Ue(Ue(Ue(Ue(Ue(_.FY().resolve(_.X3),_.xZG),_.IaW),_.O$7),_.JBm),_.BIG),_.nro),_.YDd)};
KiG=function(W,P){P=P===void 0?!1:P;var x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return P||!_.p("kevlar_shorts_seedless_retry_initial_load")||(x=window,I=!(!x.getDataPromise&&!x.getInitialData),I)?_.S(Y,ipS(),2):(setTimeout(KiG.bind(window,W,!0),1E3),Y.return());if(Y.nextAddress!=3)return O=Y.yieldResult,_.S(Y,Z$m(O),3);B=Y.yieldResult;$c(W,B);_.Kl(Y)})};
Z$m=function(W){var P;if((P=W.response)==null||!P.replacementEndpoint)return _.Jn(W);P=_.FY().resolve(Gc);W=W.response;_.Q(W.replacementEndpoint,_.uS)&&W.sequenceContinuation&&(_.Q(W.replacementEndpoint,_.uS).sequenceParams=W.sequenceContinuation);return fP(P,W.replacementEndpoint,{},_.xW.location.href,"shorts",function(){},function(){return!1})};
orS=function(W){var P=_.Xe(),x,I=_.Q((x=W.response)==null?void 0:x.frameworkUpdates,kC),O;x=_.Q((O=W.playerResponse)==null?void 0:O.frameworkUpdates,kC);var B;W=_.Q((B=W.reelWatchSequenceResponse)==null?void 0:B.frameworkUpdates,kC);I&&_.KR(I,P);x&&_.KR(x,P);W&&_.KR(W,P)};
SDR=function(W){var P;_.p("enable_redirect_linking_for_desktop_web_client")&&((P=window.location.hash)==null?0:P.includes("redirect_state"))&&W.url&&(W.url=W.url.toString()+window.location.hash)};
sbS=function(W){var P=_.FY(),x=P.resolve(Gc);P=P.resolve(_.ukt);W.endpoint&&(x=dZA(x,W.endpoint),x.content&&W.response&&_.N$(P,W.response,x.content),x.player&&W.playerResponse&&_.N$(P,W.playerResponse,x.player),x.reelSequence&&W.reelWatchSequenceResponse&&_.N$(P,W.reelWatchSequenceResponse,x.reelSequence))};
l4=function(W,P){orS(P);var x;(P==null?0:P.url)&&((x=window.location.hash)==null?0:x.includes("redirect_state"))&&(SDR(P),(x=T$R(P.url))&&_.W7(W.root,"yt-initialize-third-party",[x,P]));sbS(P);x=_.FY();var I=x.resolve(vrR);P.playerResponse&&x.resolve(mZR).handleResponse(P.playerResponse);if(P.playerResponse){x=void 0;if(_.p("ab_v_vid_sig")&&P.endpoint){var O,B=(O=_.Q(P.endpoint,_.U_))!=null?O:_.Q(P.endpoint,_.uS);B&&(x=B.videoId)}VNd(I,P.playerResponse,x)}P.playerResponse&&Ok8(P.playerResponse)&&
_.p("web_enable_ab_rsp_cl")?oxt().then(function(){tNG(I,P.playerResponse);$c(W,P)}):$c(W,P)};
jbW=function(W){if(W=W.root.data){var P=_.FY().resolve(p8U);W.endpoint&&(W.response&&P.handleResponse(W.response,void 0,document.querySelector("ytd-app")),W.playerResponse&&P.handleResponse(W.playerResponse),W.reelWatchSequenceResponse&&P.handleResponse(W.reelWatchSequenceResponse))}};
QbU=function(W){var P,x,I,O,B,Y;return _.y(function(K){switch(K.nextAddress){case 1:P=window;if(!P.getDataPromise){K.jumpTo(2);break}_.OT(K,3);return _.S(K,P.getDataPromise(),5);case 5:x=K.yieldResult;l4(W,x);_.ci(K,4);break;case 3:return _.yn(K),_.S(K,Ee(),6);case 6:I=K.yieldResult,$c(W,I);case 4:return K.return();case 2:if(!_.p("sw_nav_preload_pbj")){K.jumpTo(7);break}P.fetchInitialData=function(){var Z;return _.y(function(d){if(d.nextAddress==1)return _.S(d,Ee(),2);Z=d.yieldResult;$c(W,Z);_.Kl(d)})};
if(P.getInitialData){P.loadInitialData=function(Z){l4(W,Z)};
O=P.getInitialData();P.getInitialData=void 0;l4(W,O);K.jumpTo(8);break}P.fetchInitialData=void 0;return _.S(K,Ee(),9);case 9:B=K.yieldResult,$c(W,B);case 8:return K.return();case 7:P.getInitialData?(Y=P.getInitialData(),P.getInitialData=void 0,l4(W,Y)):P.loadInitialData=function(Z){l4(W,Z)},_.Kl(K)}})};
Cyd=function(W){var P=0;return function(){return P<W.length?{done:!1,value:W[P++]}:{done:!0}}};
ABR=typeof Object.defineProperties=="function"?Object.defineProperty:function(W,P,x){if(W==Array.prototype||W==Object.prototype)return W;W[P]=x.value;return W};
zgW=function(W){W=["object"==typeof globalThis&&globalThis,W,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var P=0;P<W.length;++P){var x=W[P];if(x&&x.Math==Math)return x}throw Error("a");};
_.N1=zgW(this);Tc=function(W,P){if(P)a:{var x=_.N1;W=W.split(".");for(var I=0;I<W.length-1;I++){var O=W[I];if(!(O in x))break a;x=x[O]}W=W[W.length-1];I=x[W];P=P(I);P!=I&&P!=null&&ABR(x,W,{configurable:!0,writable:!0,value:P})}};
Tc("Symbol",function(W){if(W)return W;var P=function(B,Y){this.$jscomp$symbol$id_=B;ABR(this,"description",{configurable:!0,writable:!0,value:Y})};
P.prototype.toString=function(){return this.$jscomp$symbol$id_};
var x="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",I=0,O=function(B){if(this instanceof O)throw new TypeError("b");return new P(x+(B||"")+"_"+I++,B)};
return O});
Tc("Symbol.iterator",function(W){if(W)return W;W=Symbol("c");for(var P="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x<P.length;x++){var I=_.N1[P[x]];typeof I==="function"&&typeof I.prototype[W]!="function"&&ABR(I.prototype,W,{configurable:!0,writable:!0,value:function(){return G3o(Cyd(this))}})}return W});
Tc("Symbol.asyncIterator",function(W){return W?W:Symbol("d")});
var G3o=function(W){W={next:W};W[Symbol.iterator]=function(){return this};
return W},Erm=typeof Object.create=="function"?Object.create:function(W){var P=function(){};
P.prototype=W;return new P},gro=function(){function W(){function x(){}
new x;Reflect.construct(x,[],function(){});
return new x instanceof x}
if(typeof Reflect!="undefined"&&Reflect.construct){if(W())return Reflect.construct;var P=Reflect.construct;return function(x,I,O){x=P(x,I);O&&Reflect.setPrototypeOf(x,O.prototype);return x}}return function(x,I,O){O===void 0&&(O=x);
O=Erm(O.prototype||Object.prototype);return Function.prototype.apply.call(x,O,I)||O}}(),DZo;
if(typeof Object.setPrototypeOf=="function")DZo=Object.setPrototypeOf;else{var MN7;a:{var $Zx={a:!0},w8o={};try{w8o.__proto__=$Zx;MN7=w8o.a;break a}catch(W){}MN7=!1}DZo=MN7?function(W,P){W.__proto__=P;if(W.__proto__!==P)throw new TypeError("e`"+W);return W}:null}rh=DZo;
_.A=function(W,P){W.prototype=Erm(P.prototype);W.prototype.constructor=W;if(rh)rh(W,P);else for(var x in P)if(x!="prototype")if(Object.defineProperties){var I=Object.getOwnPropertyDescriptor(P,x);I&&Object.defineProperty(W,x,I)}else W[x]=P[x];W.superClass_=P.prototype};
_.n=function(W){var P=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(P)return P.call(W);if(typeof W.length=="number")return{next:Cyd(W)};throw Error("f`"+String(W));};
UW=function(W){for(var P,x=[];!(P=W.next()).done;)x.push(P.value);return x};
_.ju=function(W){return W instanceof Array?W:UW(_.n(W))};
_.i4=function(W){return hgR(W,W)};
hgR=function(W,P){W.raw=P;Object.freeze&&(Object.freeze(W),Object.freeze(P));return W};
Rz=function(W,P){return Object.prototype.hasOwnProperty.call(W,P)};
H$t=typeof Object.assign=="function"?Object.assign:function(W,P){for(var x=1;x<arguments.length;x++){var I=arguments[x];if(I)for(var O in I)Rz(I,O)&&(W[O]=I[O])}return W};
Tc("Object.assign",function(W){return W||H$t});
var egA=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},cB7=function(W){if(W.isRunning_)throw new TypeError("h");
W.isRunning_=!0};
egA.prototype.JSC$6636_next_=function(W){this.yieldResult=W};
var aaC=function(W,P){W.abruptCompletion_={exception:P,isException:!0};W.nextAddress=W.catchAddress_||W.finallyAddress_};
egA.prototype.return=function(W){this.abruptCompletion_={return:W};this.nextAddress=this.finallyAddress_};
_.S=function(W,P,x){W.nextAddress=x;return{value:P}};
egA.prototype.jumpTo=function(W){this.nextAddress=W};
_.Kl=function(W){W.nextAddress=0};
_.OT=function(W,P,x){W.catchAddress_=P;x!=void 0&&(W.finallyAddress_=x)};
_.Br=function(W,P){W.catchAddress_=0;W.finallyAddress_=P||0};
_.ci=function(W,P,x){W.nextAddress=P;W.catchAddress_=x||0};
_.yn=function(W,P){W.catchAddress_=P||0;P=W.abruptCompletion_.exception;W.abruptCompletion_=null;return P};
_.Jo=function(W,P,x,I){I?W.finallyContexts_[I]=W.abruptCompletion_:W.finallyContexts_=[W.abruptCompletion_];W.catchAddress_=P||0;W.finallyAddress_=x||0};
_.YD=function(W,P,x){x=W.finallyContexts_.splice(x||0)[0];(x=W.abruptCompletion_=W.abruptCompletion_||x)?x.isException?W.nextAddress=W.catchAddress_||W.finallyAddress_:x.jumpTo!=void 0&&W.finallyAddress_<x.jumpTo?(W.nextAddress=x.jumpTo,W.abruptCompletion_=null):W.nextAddress=W.finallyAddress_:W.nextAddress=P};
b$o=function(W){this.JSC$6641_context_=new egA;this.program_=W};
UZo=function(W,P){cB7(W.JSC$6641_context_);var x=W.JSC$6641_context_.yieldAllIterator_;if(x)return k3S(W,"return"in x?x["return"]:function(I){return{value:I,done:!0}},P,W.JSC$6641_context_.return);
W.JSC$6641_context_.return(P);return F3(W)};
k3S=function(W,P,x,I){try{var O=P.call(W.JSC$6641_context_.yieldAllIterator_,x);if(!(O instanceof Object))throw new TypeError("g`"+O);if(!O.done)return W.JSC$6641_context_.isRunning_=!1,O;var B=O.value}catch(Y){return W.JSC$6641_context_.yieldAllIterator_=null,aaC(W.JSC$6641_context_,Y),F3(W)}W.JSC$6641_context_.yieldAllIterator_=null;I.call(W.JSC$6641_context_,B);return F3(W)};
F3=function(W){for(;W.JSC$6641_context_.nextAddress;)try{var P=W.program_(W.JSC$6641_context_);if(P)return W.JSC$6641_context_.isRunning_=!1,{value:P.value,done:!1}}catch(x){W.JSC$6641_context_.yieldResult=void 0,aaC(W.JSC$6641_context_,x)}W.JSC$6641_context_.isRunning_=!1;if(W.JSC$6641_context_.abruptCompletion_){P=W.JSC$6641_context_.abruptCompletion_;W.JSC$6641_context_.abruptCompletion_=null;if(P.isException)throw P.exception;return{value:P.return,done:!0}}return{value:void 0,done:!0}};
X8W=function(W){this.next=function(P){cB7(W.JSC$6641_context_);W.JSC$6641_context_.yieldAllIterator_?P=k3S(W,W.JSC$6641_context_.yieldAllIterator_.next,P,W.JSC$6641_context_.JSC$6636_next_):(W.JSC$6641_context_.JSC$6636_next_(P),P=F3(W));return P};
this.throw=function(P){cB7(W.JSC$6641_context_);W.JSC$6641_context_.yieldAllIterator_?P=k3S(W,W.JSC$6641_context_.yieldAllIterator_["throw"],P,W.JSC$6641_context_.JSC$6636_next_):(aaC(W.JSC$6641_context_,P),P=F3(W));return P};
this.return=function(P){return UZo(W,P)};
this[Symbol.iterator]=function(){return this}};
_.Zpm=function(W,P){P=new X8W(new b$o(P));rh&&W.prototype&&rh(P,W.prototype);return P};
fam=function(W){function P(I){return W.next(I)}
function x(I){return W.throw(I)}
return new Promise(function(I,O){function B(Y){Y.done?I(Y.value):Promise.resolve(Y.value).then(P,x).then(B,O)}
B(W.next())})};
_.y=function(W){return fam(new X8W(new b$o(W)))};
NDR=function(W){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return W};
this.next=function(P){return Promise.resolve(W.next(P))};
this["throw"]=function(P){return new Promise(function(x,I){var O=W["throw"];O!==void 0?x(O.call(W,P)):(x=W["return"],x!==void 0&&x.call(W),I(new TypeError("i")))})};
W["return"]!==void 0&&(this["return"]=function(P){return Promise.resolve(W["return"](P))})};
_.tH=function(){for(var W=Number(this),P=[],x=W;x<arguments.length;x++)P[x-W]=arguments[x];return P};
_.ovm=function(W){return W};
Tc("globalThis",function(W){return W||_.N1});
Tc("Reflect",function(W){return W?W:{}});
Tc("Reflect.construct",function(){return gro});
Tc("Reflect.setPrototypeOf",function(W){return W?W:rh?function(P,x){try{return rh(P,x),!0}catch(I){return!1}}:null});
Tc("Promise",function(W){function P(){this.batch_=null}
function x(Y){return Y instanceof O?Y:new O(function(K){K(Y)})}
if(W&&(typeof _.N1.PromiseRejectionEvent!=="undefined"||!_.N1.Promise||_.N1.Promise.toString().indexOf("[native code]")===-1))return W;P.prototype.asyncExecute=function(Y){if(this.batch_==null){this.batch_=[];var K=this;this.asyncExecuteFunction(function(){K.executeBatch_()})}this.batch_.push(Y)};
var I=_.N1.setTimeout;P.prototype.asyncExecuteFunction=function(Y){I(Y,0)};
P.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Y=this.batch_;this.batch_=[];for(var K=0;K<Y.length;++K){var Z=Y[K];Y[K]=null;try{Z()}catch(d){this.asyncThrow_(d)}}}this.batch_=null};
P.prototype.asyncThrow_=function(Y){this.asyncExecuteFunction(function(){throw Y;})};
var O=function(Y){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var K=this.createResolveAndReject_();try{Y(K.resolve,K.reject)}catch(Z){K.reject(Z)}};
O.prototype.createResolveAndReject_=function(){function Y(d){return function(v){Z||(Z=!0,d.call(K,v))}}
var K=this,Z=!1;return{resolve:Y(this.resolveTo_),reject:Y(this.JSC$6657_reject_)}};
O.prototype.resolveTo_=function(Y){if(Y===this)this.JSC$6657_reject_(new TypeError("j"));else if(Y instanceof O)this.settleSameAsPromise_(Y);else{a:switch(typeof Y){case "object":var K=Y!=null;break a;case "function":K=!0;break a;default:K=!1}K?this.resolveToNonPromiseObj_(Y):this.fulfill_(Y)}};
O.prototype.resolveToNonPromiseObj_=function(Y){var K=void 0;try{K=Y.then}catch(Z){this.JSC$6657_reject_(Z);return}typeof K=="function"?this.settleSameAsThenable_(K,Y):this.fulfill_(Y)};
O.prototype.JSC$6657_reject_=function(Y){this.settle_(2,Y)};
O.prototype.fulfill_=function(Y){this.settle_(1,Y)};
O.prototype.settle_=function(Y,K){if(this.state_!=0)throw Error("k`"+Y+"`"+K+"`"+this.state_);this.state_=Y;this.result_=K;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
O.prototype.scheduleUnhandledRejectionCheck_=function(){var Y=this;I(function(){if(Y.notifyUnhandledRejection_()){var K=_.N1.console;typeof K!=="undefined"&&K.error(Y.result_)}},1)};
O.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Y=_.N1.CustomEvent,K=_.N1.Event,Z=_.N1.dispatchEvent;if(typeof Z==="undefined")return!0;typeof Y==="function"?Y=new Y("unhandledrejection",{cancelable:!0}):typeof K==="function"?Y=new K("unhandledrejection",{cancelable:!0}):(Y=_.N1.document.createEvent("CustomEvent"),Y.initCustomEvent("unhandledrejection",!1,!0,Y));Y.promise=this;Y.reason=this.result_;return Z(Y)};
O.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Y=0;Y<this.onSettledCallbacks_.length;++Y)B.asyncExecute(this.onSettledCallbacks_[Y]);this.onSettledCallbacks_=null}};
var B=new P;O.prototype.settleSameAsPromise_=function(Y){var K=this.createResolveAndReject_();Y.callWhenSettled_(K.resolve,K.reject)};
O.prototype.settleSameAsThenable_=function(Y,K){var Z=this.createResolveAndReject_();try{Y.call(K,Z.resolve,Z.reject)}catch(d){Z.reject(d)}};
O.prototype.then=function(Y,K){function Z(t,C){return typeof t=="function"?function(z){try{d(t(z))}catch(D){v(D)}}:C}
var d,v,m=new O(function(t,C){d=t;v=C});
this.callWhenSettled_(Z(Y,d),Z(K,v));return m};
O.prototype.catch=function(Y){return this.then(void 0,Y)};
O.prototype.callWhenSettled_=function(Y,K){function Z(){switch(d.state_){case 1:Y(d.result_);break;case 2:K(d.result_);break;default:throw Error("l`"+d.state_);}}
var d=this;this.onSettledCallbacks_==null?B.asyncExecute(Z):this.onSettledCallbacks_.push(Z);this.isRejectionHandled_=!0};
O.resolve=x;O.reject=function(Y){return new O(function(K,Z){Z(Y)})};
O.race=function(Y){return new O(function(K,Z){for(var d=_.n(Y),v=d.next();!v.done;v=d.next())x(v.value).callWhenSettled_(K,Z)})};
O.all=function(Y){var K=_.n(Y),Z=K.next();return Z.done?x([]):new O(function(d,v){function m(z){return function(D){t[z]=D;C--;C==0&&d(t)}}
var t=[],C=0;do t.push(void 0),C++,x(Z.value).callWhenSettled_(m(t.length-1),v),Z=K.next();while(!Z.done)})};
return O});
var q$=function(W,P,x){if(W==null)throw new TypeError("m`"+x);if(P instanceof RegExp)throw new TypeError("n`"+x);return W+""};
Tc("String.prototype.startsWith",function(W){return W?W:function(P,x){var I=q$(this,P,"startsWith"),O=I.length,B=P.length;x=Math.max(0,Math.min(x|0,I.length));for(var Y=0;Y<B&&x<O;)if(I[x++]!=P[Y++])return!1;return Y>=B}});
Tc("Object.setPrototypeOf",function(W){return W||rh});
Tc("Symbol.dispose",function(W){return W?W:Symbol("o")});
Tc("SuppressedError",function(W){function P(x,I,O){if(!(this instanceof P))return new P(x,I,O);O=Error(O);"stack"in O&&(this.stack=O.stack);this.message=O.message;this.error=x;this.suppressed=I}
if(W)return W;_.A(P,Error);P.prototype.name="SuppressedError";return P});
var NIG=function(W,P,x){W instanceof String&&(W=String(W));for(var I=W.length,O=0;O<I;O++){var B=W[O];if(P.call(x,B,O,W))return{i:O,v:B}}return{i:-1,v:void 0}};
Tc("Array.prototype.find",function(W){return W?W:function(P,x){return NIG(this,P,x).v}});
Tc("WeakMap",function(W){function P(){}
function x(Z){var d=typeof Z;return d==="object"&&Z!==null||d==="function"}
function I(Z){if(!Rz(Z,B)){var d=new P;ABR(Z,B,{value:d})}}
function O(Z){var d=Object[Z];d&&(Object[Z]=function(v){if(v instanceof P)return v;Object.isExtensible(v)&&I(v);return d(v)})}
if(function(){if(!W||!Object.seal)return!1;try{var Z=Object.seal({}),d=Object.seal({}),v=new W([[Z,2],[d,3]]);if(v.get(Z)!=2||v.get(d)!=3)return!1;v.delete(Z);v.set(d,4);return!v.has(Z)&&v.get(d)==4}catch(m){return!1}}())return W;
var B="$jscomp_hidden_"+Math.random();O("freeze");O("preventExtensions");O("seal");var Y=0,K=function(Z){this.JSC$6664_id_=(Y+=Math.random()+1).toString();if(Z){Z=_.n(Z);for(var d;!(d=Z.next()).done;)d=d.value,this.set(d[0],d[1])}};
K.prototype.set=function(Z,d){if(!x(Z))throw Error("p");I(Z);if(!Rz(Z,B))throw Error("q`"+Z);Z[B][this.JSC$6664_id_]=d;return this};
K.prototype.get=function(Z){return x(Z)&&Rz(Z,B)?Z[B][this.JSC$6664_id_]:void 0};
K.prototype.has=function(Z){return x(Z)&&Rz(Z,B)&&Rz(Z[B],this.JSC$6664_id_)};
K.prototype.delete=function(Z){return x(Z)&&Rz(Z,B)&&Rz(Z[B],this.JSC$6664_id_)?delete Z[B][this.JSC$6664_id_]:!1};
return K});
Tc("Map",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var K=Object.seal({x:4}),Z=new W(_.n([[K,"s"]]));if(Z.get(K)!="s"||Z.size!=1||Z.get({x:4})||Z.set({x:4},"t")!=Z||Z.size!=2)return!1;var d=Z.entries(),v=d.next();if(v.done||v.value[0]!=K||v.value[1]!="s")return!1;v=d.next();return v.done||v.value[0].x!=4||v.value[1]!="t"||!d.next().done?!1:!0}catch(m){return!1}}())return W;
var P=new WeakMap,x=function(K){this[0]={};this[1]=B();this.size=0;if(K){K=_.n(K);for(var Z;!(Z=K.next()).done;)Z=Z.value,this.set(Z[0],Z[1])}};
x.prototype.set=function(K,Z){K=K===0?0:K;var d=I(this,K);d.list||(d.list=this[0][d.id]=[]);d.entry?d.entry.value=Z:(d.entry={next:this[1],previous:this[1].previous,head:this[1],key:K,value:Z},d.list.push(d.entry),this[1].previous.next=d.entry,this[1].previous=d.entry,this.size++);return this};
x.prototype.delete=function(K){K=I(this,K);return K.entry&&K.list?(K.list.splice(K.index,1),K.list.length||delete this[0][K.id],K.entry.previous.next=K.entry.next,K.entry.next.previous=K.entry.previous,K.entry.head=null,this.size--,!0):!1};
x.prototype.clear=function(){this[0]={};this[1]=this[1].previous=B();this.size=0};
x.prototype.has=function(K){return!!I(this,K).entry};
x.prototype.get=function(K){return(K=I(this,K).entry)&&K.value};
x.prototype.entries=function(){return O(this,function(K){return[K.key,K.value]})};
x.prototype.keys=function(){return O(this,function(K){return K.key})};
x.prototype.values=function(){return O(this,function(K){return K.value})};
x.prototype.forEach=function(K,Z){for(var d=this.entries(),v;!(v=d.next()).done;)v=v.value,K.call(Z,v[1],v[0],this)};
x.prototype[Symbol.iterator]=x.prototype.entries;var I=function(K,Z){var d=Z&&typeof Z;d=="object"||d=="function"?P.has(Z)?d=P.get(Z):(d=""+ ++Y,P.set(Z,d)):d="p_"+Z;var v=K[0][d];if(v&&Rz(K[0],d))for(K=0;K<v.length;K++){var m=v[K];if(Z!==Z&&m.key!==m.key||Z===m.key)return{id:d,list:v,index:K,entry:m}}return{id:d,list:v,index:-1,entry:void 0}},O=function(K,Z){var d=K[1];
return G3o(function(){if(d){for(;d.head!=K[1];)d=d.previous;for(;d.next!=d.head;)return d=d.next,{done:!1,value:Z(d)};d=null}return{done:!0,value:void 0}})},B=function(){var K={};
return K.previous=K.next=K.head=K},Y=0;
return x});
Tc("Set",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var x=Object.seal({x:4}),I=new W(_.n([x]));if(!I.has(x)||I.size!=1||I.add(x)!=I||I.size!=1||I.add({x:4})!=I||I.size!=2)return!1;var O=I.entries(),B=O.next();if(B.done||B.value[0]!=x||B.value[1]!=x)return!1;B=O.next();return B.done||B.value[0]==x||B.value[0].x!=4||B.value[1]!=B.value[0]?!1:O.next().done}catch(Y){return!1}}())return W;
var P=function(x){this.JSC$6678_map_=new Map;if(x){x=_.n(x);for(var I;!(I=x.next()).done;)this.add(I.value)}this.size=this.JSC$6678_map_.size};
P.prototype.add=function(x){x=x===0?0:x;this.JSC$6678_map_.set(x,x);this.size=this.JSC$6678_map_.size;return this};
P.prototype.delete=function(x){x=this.JSC$6678_map_.delete(x);this.size=this.JSC$6678_map_.size;return x};
P.prototype.clear=function(){this.JSC$6678_map_.clear();this.size=0};
P.prototype.has=function(x){return this.JSC$6678_map_.has(x)};
P.prototype.entries=function(){return this.JSC$6678_map_.entries()};
P.prototype.values=function(){return this.JSC$6678_map_.values()};
P.prototype.keys=P.prototype.values;P.prototype[Symbol.iterator]=P.prototype.values;P.prototype.forEach=function(x,I){var O=this;this.JSC$6678_map_.forEach(function(B){return x.call(I,B,B,O)})};
return P});
Tc("Math.log2",function(W){return W?W:function(P){return Math.log(P)/Math.LN2}});
Tc("Object.values",function(W){return W?W:function(P){var x=[],I;for(I in P)Rz(P,I)&&x.push(P[I]);return x}});
Tc("Object.is",function(W){return W?W:function(P,x){return P===x?P!==0||1/P===1/x:P!==P&&x!==x}});
Tc("Array.prototype.includes",function(W){return W?W:function(P,x){var I=this;I instanceof String&&(I=String(I));var O=I.length;x=x||0;for(x<0&&(x=Math.max(x+O,0));x<O;x++){var B=I[x];if(B===P||Object.is(B,P))return!0}return!1}});
Tc("String.prototype.includes",function(W){return W?W:function(P,x){return q$(this,P,"includes").indexOf(P,x||0)!==-1}});
Tc("Array.from",function(W){return W?W:function(P,x,I){x=x!=null?x:function(K){return K};
var O=[],B=typeof Symbol!="undefined"&&Symbol.iterator&&P[Symbol.iterator];if(typeof B=="function"){P=B.call(P);for(var Y=0;!(B=P.next()).done;)O.push(x.call(I,B.value,Y++))}else for(B=P.length,Y=0;Y<B;Y++)O.push(x.call(I,P[Y],Y));return O}});
Tc("Object.entries",function(W){return W?W:function(P){var x=[],I;for(I in P)Rz(P,I)&&x.push([I,P[I]]);return x}});
Tc("Number.isFinite",function(W){return W?W:function(P){return typeof P!=="number"?!1:!isNaN(P)&&P!==Infinity&&P!==-Infinity}});
Tc("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Tc("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Tc("Number.isInteger",function(W){return W?W:function(P){return Number.isFinite(P)?P===Math.floor(P):!1}});
Tc("Number.isSafeInteger",function(W){return W?W:function(P){return Number.isInteger(P)&&Math.abs(P)<=Number.MAX_SAFE_INTEGER}});
Tc("String.prototype.endsWith",function(W){return W?W:function(P,x){var I=q$(this,P,"endsWith");x===void 0&&(x=I.length);x=Math.max(0,Math.min(x|0,I.length));for(var O=P.length;O>0&&x>0;)if(I[--x]!=P[--O])return!1;return O<=0}});
var laR=function(W,P){W instanceof String&&(W+="");var x=0,I=!1,O={next:function(){if(!I&&x<W.length){var B=x++;return{value:P(B,W[B]),done:!1}}I=!0;return{done:!0,value:void 0}}};
O[Symbol.iterator]=function(){return O};
return O};
Tc("Array.prototype.entries",function(W){return W?W:function(){return laR(this,function(P,x){return[P,x]})}});
Tc("Math.imul",function(W){return W?W:function(P,x){P=Number(P);x=Number(x);var I=P&65535,O=x&65535;return I*O+((P>>>16&65535)*O+I*(x>>>16&65535)<<16>>>0)|0}});
Tc("Math.trunc",function(W){return W?W:function(P){P=Number(P);if(isNaN(P)||P===Infinity||P===-Infinity||P===0)return P;var x=Math.floor(Math.abs(P));return P<0?-x:x}});
Tc("Number.isNaN",function(W){return W?W:function(P){return typeof P==="number"&&isNaN(P)}});
Tc("Array.prototype.keys",function(W){return W?W:function(){return laR(this,function(P){return P})}});
Tc("Array.prototype.values",function(W){return W?W:function(){return laR(this,function(P,x){return x})}});
Tc("Array.prototype.fill",function(W){return W?W:function(P,x,I){var O=this.length||0;x<0&&(x=Math.max(0,O+x));if(I==null||I>O)I=O;I=Number(I);I<0&&(I=Math.max(0,O+I));for(x=Number(x||0);x<I;x++)this[x]=P;return this}});
var LP=function(W){return W?W:Array.prototype.fill};
Tc("Int8Array.prototype.fill",LP);Tc("Uint8Array.prototype.fill",LP);Tc("Uint8ClampedArray.prototype.fill",LP);Tc("Int16Array.prototype.fill",LP);Tc("Uint16Array.prototype.fill",LP);Tc("Int32Array.prototype.fill",LP);Tc("Uint32Array.prototype.fill",LP);Tc("Float32Array.prototype.fill",LP);Tc("Float64Array.prototype.fill",LP);
Tc("Object.fromEntries",function(W){return W?W:function(P){var x={};if(!(Symbol.iterator in P))throw new TypeError("r`"+P);P=P[Symbol.iterator].call(P);for(var I=P.next();!I.done;I=P.next()){I=I.value;if(Object(I)!==I)throw new TypeError("s");x[I[0]]=I[1]}return x}});
Tc("String.prototype.replaceAll",function(W){return W?W:function(P,x){if(P instanceof RegExp&&!P.global)throw new TypeError("t");return P instanceof RegExp?this.replace(P,x):this.replace(new RegExp(String(P).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),x)}});
Tc("Object.getOwnPropertySymbols",function(W){return W?W:function(){return[]}});
Tc("String.prototype.repeat",function(W){return W?W:function(P){var x=q$(this,null,"repeat");if(P<0||P>1342177279)throw new RangeError("u");P|=0;for(var I="";P;)if(P&1&&(I+=x),P>>>=1)x+=x;return I}});
Tc("Array.prototype.findIndex",function(W){return W?W:function(P,x){return NIG(this,P,x).i}});
Tc("Array.prototype.flatMap",function(W){return W?W:function(P,x){var I=[];Array.prototype.forEach.call(this,function(O,B){O=P.call(x,O,B,this);Array.isArray(O)?I.push.apply(I,O):I.push(O)});
return I}});
Tc("String.prototype.codePointAt",function(W){return W?W:function(P){var x=q$(this,null,"codePointAt"),I=x.length;P=Number(P)||0;if(P>=0&&P<I){P|=0;var O=x.charCodeAt(P);if(O<55296||O>56319||P+1===I)return O;P=x.charCodeAt(P+1);return P<56320||P>57343?O:(O-55296)*1024+P+9216}}});
Tc("String.fromCodePoint",function(W){return W?W:function(P){for(var x="",I=0;I<arguments.length;I++){var O=Number(arguments[I]);if(O<0||O>1114111||O!==Math.floor(O))throw new RangeError("v`"+O);O<=65535?x+=String.fromCharCode(O):(O-=65536,x+=String.fromCharCode(O>>>10&1023|55296),x+=String.fromCharCode(O&1023|56320))}return x}});
Tc("String.prototype.padStart",function(W){return W?W:function(P,x){var I=q$(this,null,"padStart");P-=I.length;x=x!==void 0?String(x):" ";return(P>0&&x?x.repeat(Math.ceil(P/x.length)).substring(0,P):"")+I}});
Tc("Promise.prototype.finally",function(W){return W?W:function(P){return this.then(function(x){return Promise.resolve(P()).then(function(){return x})},function(x){return Promise.resolve(P()).then(function(){throw x;
})})}});
Tc("Object.hasOwn",function(W){return W?W:function(P,x){return Object.prototype.hasOwnProperty.call(P,x)}});
Tc("Math.sign",function(W){return W?W:function(P){P=Number(P);return P===0||isNaN(P)?P:P>0?1:-1}});
Tc("Array.prototype.flat",function(W){return W?W:function(P){P=P===void 0?1:P;var x=[];Array.prototype.forEach.call(this,function(I){Array.isArray(I)&&P>0?(I=Array.prototype.flat.call(I,P-1),x.push.apply(x,I)):x.push(I)});
return x}});
Tc("String.raw",function(W){return W?W:function(P,x){if(P==null)throw new TypeError("w");for(var I=P.raw,O=I.length,B="",Y=0;Y<O;++Y)B+=I[Y],Y+1<O&&Y+1<arguments.length&&(B+=String(arguments[Y+1]));return B}});
Tc("Reflect.ownKeys",function(W){return W?W:function(P){var x=[],I=Object.getOwnPropertyNames(P);P=Object.getOwnPropertySymbols(P);for(var O=0;O<I.length;O++)(I[O].substring(0,14)=="jscomp_symbol_"?P:x).push(I[O]);return x.concat(P)}});
Tc("Object.getOwnPropertyDescriptors",function(W){return W?W:function(P){for(var x={},I=Reflect.ownKeys(P),O=0;O<I.length;O++)x[I[O]]=Object.getOwnPropertyDescriptor(P,I[O]);return x}});
Tc("WeakSet",function(W){if(function(){if(!W||!Object.seal)return!1;try{var x=Object.seal({}),I=Object.seal({}),O=new W([x]);if(!O.has(x)||O.has(I))return!1;O.delete(x);O.add(I);return!O.has(x)&&O.has(I)}catch(B){return!1}}())return W;
var P=function(x){this.JSC$6685_map_=new WeakMap;if(x){x=_.n(x);for(var I;!(I=x.next()).done;)this.add(I.value)}};
P.prototype.add=function(x){this.JSC$6685_map_.set(x,!0);return this};
P.prototype.has=function(x){return this.JSC$6685_map_.has(x)};
P.prototype.delete=function(x){return this.JSC$6685_map_.delete(x)};
return P});
Tc("Promise.allSettled",function(W){function P(I){return{status:"fulfilled",value:I}}
function x(I){return{status:"rejected",reason:I}}
return W?W:function(I){var O=this;I=Array.from(I,function(B){return O.resolve(B).then(P,x)});
return O.all(I)}});
Tc("Number.parseInt",function(W){return W||parseInt});
_._DumpException=window._DumpException||function(W){throw W;};
window._DumpException=_._DumpException;var TIt,WI,PI,x5,rBS,i$R,Rg8,FiG,l3,qDR;TIt=TIt||{};_.xW=this||self;_.lA=function(W,P,x){W=W.split(".");x=x||_.xW;for(var I;W.length&&(I=W.shift());)W.length||P===void 0?x[I]&&x[I]!==Object.prototype[I]?x=x[I]:x=x[I]={}:x[I]=P};
WI=function(W){var P=_.eL("WIZ_global_data.oxN3nb");W=P&&P[W];return W!=null?W:!1};
PI=_.xW._F_toggles||[];x5=function(){};
x5.get=function(){return null};
_.eL=function(W,P){W=W.split(".");P=P||_.xW;for(var x=0;x<W.length;x++)if(P=P[W[x]],P==null)return null;return P};
_.Id=function(W){W.instance_=void 0;W.getInstance=function(){return W.instance_?W.instance_:W.instance_=new W}};
_.u3=function(W){var P=typeof W;return P!="object"?P:W?Array.isArray(W)?"array":P:"null"};
_.xi=function(W){var P=_.u3(W);return P=="array"||P=="object"&&typeof W.length=="number"};
_.Jw=function(W){var P=typeof W;return P=="object"&&W!=null||P=="function"};
_.nM=function(W){return Object.prototype.hasOwnProperty.call(W,rBS)&&W[rBS]||(W[rBS]=++i$R)};
rBS="closure_uid_"+(Math.random()*1E9>>>0);i$R=0;Rg8=function(W,P,x){return W.call.apply(W.bind,arguments)};
FiG=function(W,P,x){if(!W)throw Error();if(arguments.length>2){var I=Array.prototype.slice.call(arguments,2);return function(){var O=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(O,I);return W.apply(P,O)}}return function(){return W.apply(P,arguments)}};
_.mx=function(W,P,x){_.mx=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Rg8:FiG;return _.mx.apply(null,arguments)};
_.ou=function(W,P){var x=Array.prototype.slice.call(arguments,1);return function(){var I=x.slice();I.push.apply(I,arguments);return W.apply(this,I)}};
_.O1=function(){return Date.now()};
l3=function(W){return W};
_.J8=function(W,P){function x(){}
x.prototype=P.prototype;W.superClass_=P.prototype;W.prototype=new x;W.prototype.constructor=W;W.base=function(I,O,B){for(var Y=Array(arguments.length-2),K=2;K<arguments.length;K++)Y[K-2]=arguments[K];return P.prototype[O].apply(I,Y)}};
qDR=function(W){return W};var onS,svW;_.f=function(W,P,x,I){var O=arguments.length,B=O<3?P:I===null?I=Object.getOwnPropertyDescriptor(P,x):I,Y;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")B=Reflect.decorate(W,P,x,I);else for(var K=W.length-1;K>=0;K--)if(Y=W[K])B=(O<3?Y(B):O>3?Y(P,x,B):Y(P,x))||B;return O>3&&B&&Object.defineProperty(P,x,B),B};
_.l=function(W,P){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(W,P)};
onS=function(W,P){if(P!==null&&P!==void 0){if(typeof P!=="object"&&typeof P!=="function")throw new TypeError("x");if(x===void 0){if(!Symbol.dispose)throw new TypeError("z");var x=P[Symbol.dispose]}if(typeof x!=="function")throw new TypeError("A");W.stack.push({value:P,dispose:x,async:!1})}return P};
svW=function(W){function P(B){W.error=W.hasError?new SuppressedError(B,W.error,"An error was suppressed during disposal."):B;W.hasError=!0}
function x(){for(;I=W.stack.pop();)try{if(!I.async&&O===1)return O=0,W.stack.push(I),Promise.resolve().then(x);if(I.dispose){var B=I.dispose.call(I.value);if(I.async)return O|=2,Promise.resolve(B).then(x,function(Y){P(Y);return x()})}else O|=1}catch(Y){P(Y)}if(O===1)return W.hasError?Promise.reject(W.error):Promise.resolve();
if(W.hasError)throw W.error;}
var I,O=0;x()};_.J8(_.Wd,Error);_.Wd.prototype.name="CustomError";var Li8;var WN8=void 0,PXU,x4G=typeof TextDecoder!=="undefined",IAt,x7m=typeof String.prototype.isWellFormed==="function",PCW=typeof TextEncoder!=="undefined";var I08;_.sW=function(W){for(var P=[],x=0,I=0;I<W.length;I++){var O=W.charCodeAt(I);O<128?P[x++]=O:(O<2048?P[x++]=O>>6|192:((O&64512)==55296&&I+1<W.length&&(W.charCodeAt(I+1)&64512)==56320?(O=65536+((O&1023)<<10)+(W.charCodeAt(++I)&1023),P[x++]=O>>18|240,P[x++]=O>>12&63|128):P[x++]=O>>12|224,P[x++]=O>>6&63|128),P[x++]=O&63|128)}return P};
I08=function(W){for(var P=[],x=0,I=0;x<W.length;){var O=W[x++];if(O<128)P[I++]=String.fromCharCode(O);else if(O>191&&O<224){var B=W[x++];P[I++]=String.fromCharCode((O&31)<<6|B&63)}else if(O>239&&O<365){B=W[x++];var Y=W[x++],K=W[x++];O=((O&7)<<18|(B&63)<<12|(Y&63)<<6|K&63)-65536;P[I++]=String.fromCharCode(55296+(O>>10));P[I++]=String.fromCharCode(56320+(O&1023))}else B=W[x++],Y=W[x++],P[I++]=String.fromCharCode((O&15)<<12|(B&63)<<6|Y&63)}return P.join("")};var uC=String.prototype.trim?function(W){return W.trim()}:function(W){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(W)[1]},ON8=/&/g,JrU=/</g,BA8=/>/g,nSS=/"/g,YlU=/'/g,yrt=/\x00/g,KNm=/[\x00&<>"']/;var BI=!!(PI[0]>>15&1),ZN8=!!(PI[0]>>16&1),oSt=!!(PI[0]&2),Slx=!!(PI[0]&4),uwx=!!(PI[0]&32),d4t=!!(PI[0]&512);var vd=BI?ZN8:WI(610401301),s58=BI?oSt:WI(513659523),vSm=BI?Slx:WI(568333945),tGm=BI?uwx:WI(1331761403),m4d=BI?d4t:WI(103340015);var VG,V18=_.xW.navigator;VG=V18?V18.userAgentData||null:null;var Uz;_.fm=function(W,P){return Array.prototype.indexOf.call(W,P,void 0)};
_.bP=function(W,P,x){Array.prototype.forEach.call(W,P,x)};
_.nW=function(W,P,x){return Array.prototype.filter.call(W,P,x)};
_.C5=function(W,P,x){return Array.prototype.map.call(W,P,x)};
Uz=function(W,P,x){return Array.prototype.some.call(W,P,x)};
_.WIx=function(W,P,x){return Array.prototype.every.call(W,P,x)};var Y5=function(W){Y5[" "](W);return W};
Y5[" "]=function(){};
var Eh=function(W,P){try{return Y5(W[P]),!0}catch(x){}return!1},GOR=function(W,P,x,I){I=I?I(P):P;
return Object.prototype.hasOwnProperty.call(W,I)?W[I]:W[I]=x(P)};var t18,fj,pEo,j57,CXt,ArR,BiS,zGd,Ggx,ESG,A4C,D4m,M1R,HNd,eGC,crt;_.UPd=function(){return _.xW.navigator||null};
t18=EU();_.yo=BSA();fj=QG("Edge");pEo=fj||_.yo;_.KW=QG("Gecko")&&!(_.S8(_.sU(),"WebKit")&&!QG("Edge"))&&!(QG("Trident")||QG("MSIE"))&&!QG("Edge");_.Z2=_.S8(_.sU(),"WebKit")&&!QG("Edge");j57=_.Z2&&QG("Mobile");_.Q5S=_.utW();CXt=_.d7C();ArR=(hm()?VG.platform==="Linux":QG("Linux"))||_.soR();BiS=_.oWW();zGd=SUo();Ggx=QG("iPad");ESG=QG("iPod");_.gSU=_.Hd();A4C=_.S8(_.sU(),"KaiOS");D4m=function(){var W=_.xW.document;return W?W.documentMode:void 0};
a:{var $47="",wEx=function(){var W=_.sU();if(_.KW)return/rv:([^\);]+)(\)|;)/.exec(W);if(fj)return/Edge\/([\d\.]+)/.exec(W);if(_.yo)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(W);if(_.Z2)return/WebKit\/(\S+)/.exec(W);if(t18)return/(?:Version)[ \/]?(\S+)/.exec(W)}();
wEx&&($47=wEx?wEx[1]:"");if(_.yo){var hGU=D4m();if(hGU!=null&&hGU>parseFloat($47)){M1R=String(hGU);break a}}M1R=$47}HNd=M1R;eGC={};_.od=function(W){return GOR(eGC,W,function(){return _.dS(HNd,W)>=0})};
if(_.xW.document&&_.yo){var a0U=D4m();crt=a0U?a0U:parseInt(HNd,10)||void 0}else crt=void 0;_.bN8=crt;var z3m,G78,kgR;_.Se=gS();z3m=SUo()||QG("iPod");G78=QG("iPad");kgR=_.YUG();_.u9=_.DA();_.MM=_.M7()&&!_.Hd();var U4C,dg,rHm,Z6G,f0x,XER;U4C={};dg=null;rHm=_.KW||_.Z2||typeof _.xW.btoa=="function";_.L2=function(W,P){P===void 0&&(P=0);XER();P=U4C[P];for(var x=Array(Math.floor(W.length/3)),I=P[64]||"",O=0,B=0;O<W.length-2;O+=3){var Y=W[O],K=W[O+1],Z=W[O+2],d=P[Y>>2];Y=P[(Y&3)<<4|K>>4];K=P[(K&15)<<2|Z>>6];Z=P[Z&63];x[B++]=d+Y+K+Z}d=0;Z=I;switch(W.length-O){case 2:d=W[O+1],Z=P[(d&15)<<2]||I;case 1:W=W[O],x[B]=P[W>>2]+P[(W&3)<<4|d>>4]+Z+I}return x.join("")};
Z6G=function(W){var P="";f0x(W,function(x){P+=String.fromCharCode(x)});
return P};
_.d9m=function(W){var P=[];f0x(W,function(x){P.push(x)});
return P};
_.up=function(W){var P=W.length,x=P*3/4;x%3?x=Math.floor(x):_.ZA("=.",W[P-1])&&(x=_.ZA("=.",W[P-2])?x-2:x-1);var I=new Uint8Array(x),O=0;f0x(W,function(B){I[O++]=B});
return O!==x?I.subarray(0,O):I};
f0x=function(W,P){function x(Z){for(;I<W.length;){var d=W.charAt(I++),v=dg[d];if(v!=null)return v;if(!_.Km(d))throw Error("E`"+d);}return Z}
XER();for(var I=0;;){var O=x(-1),B=x(0),Y=x(64),K=x(64);if(K===64&&O===-1)break;P(O<<2|B>>4);Y!=64&&(P(B<<4&240|Y>>2),K!=64&&P(Y<<6&192|K))}};
XER=function(){if(!dg){dg={};for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),P=["+/=","+/","-_=","-_.","-_"],x=0;x<5;x++){var I=W.concat(P[x].split(""));U4C[x]=I;for(var O=0;O<I.length;O++){var B=I[O];dg[B]===void 0&&(dg[B]=O)}}}};var HmR=typeof Uint8Array!=="undefined",zxR=!_.yo&&typeof btoa==="function",GRo=/[-_.]/g,CCx={"-":"+",_:"/",".":"="},bp={};var aW,l0t;aW=function(W,P){if(P!==bp)throw Error("G");this.JSC$6716_value_=W;if(W!=null&&W.length===0)throw Error("F");};
_.ki=function(){return NAW||(NAW=new aW(null,bp))};
l0t=function(W){return new Uint8Array($T(W)||0)};
aW.prototype.isEmpty=function(){return this.JSC$6716_value_==null};
aW.prototype.sizeBytes=function(){var W=$T(this);return W?W.length:0};
var $T=function(W){if(bp!==bp)throw Error("G");var P=W.JSC$6716_value_;P=P==null||HmR&&P!=null&&P instanceof Uint8Array?P:typeof P==="string"?EWd(P):null;return P==null?P:W.JSC$6716_value_=P},NAW;var D77=void 0;var zA=typeof Symbol==="function"&&typeof Symbol()==="symbol",TAA=Aw("jas",void 0,!0),f2=Aw(void 0,"0di"),Ei=Aw(void 0,"1oa"),Td=Aw(void 0,Symbol()),DbG=Aw(void 0,"0ub"),$bd=Aw(void 0,"0ubs"),H2S=Aw(void 0,"0ubsb"),TkU=Aw(void 0,"0actk"),Uv=Aw("m_m","messagePrototypeMarker",!0),kAS=Aw(void 0,"vps"),GAR=Aw();var $77,M8U,mu,rrd;$77={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};M8U=Object.defineProperties;_.Ec=zA?TAA:"internalArrayState";rrd=[];Mb(rrd,7);mu=Object.freeze(rrd);var X6={},Hm={},iNC=function(W,P,x){this.iterable=W;this.mapper=P;this.thisArg=x};
iNC.prototype.next=function(){var W=this.iterable.next();W.done||(W.value=this.mapper.call(this.thisArg,W.value));return W};
iNC.prototype[Symbol.iterator]=function(){return this};
var RG8=Object.freeze({}),Nb={};_.FNC=ip(function(W){return W!==null&&W!==void 0});var kRR=ip(function(W){return typeof W==="number"}),bmt=ip(function(W){return typeof W==="string"}),U7R=ip(function(W){return typeof W==="boolean"}),qlt=ip(function(W){return W!=null&&typeof W==="object"&&typeof W.then==="function"}),PPA=ip(function(W){return typeof W==="function"}),qp=ip(function(W){return!!W&&(typeof W==="object"||typeof W==="function")});var RW=typeof _.xW.BigInt==="function"&&typeof _.xW.BigInt(0)==="bigint";var Hy=ip(function(W){return RW?W>=LNo&&W<=WvS:W[0]==="-"?XdW(W,PMG):XdW(W,xu7)}),PMG=Number.MIN_SAFE_INTEGER.toString(),LNo=RW?BigInt(Number.MIN_SAFE_INTEGER):void 0,xu7=Number.MAX_SAFE_INTEGER.toString(),WvS=RW?BigInt(Number.MAX_SAFE_INTEGER):void 0;var I_U=typeof Uint8Array.prototype.slice==="function",qb=0,LM=0,RK;var Gd,ML,sv,wM,RxG;Gd=typeof BigInt==="function"?BigInt.asIntN:void 0;_.h9=typeof BigInt==="function"?BigInt.asUintN:void 0;ML=Number.isSafeInteger;sv=Number.isFinite;wM=Math.trunc;RxG=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var UbR={};var Aw8={},OuS=function(){try{var W=function(){return gro(Map,[],this.constructor)};
_.A(W,Map);Y5(new W);return!1}catch(P){return!0}}(),s1=function(){this.JSC$6744_map_=new Map};
_.J=s1.prototype;_.J.get=function(W){return this.JSC$6744_map_.get(W)};
_.J.set=function(W,P){this.JSC$6744_map_.set(W,P);this.size=this.JSC$6744_map_.size;return this};
_.J.delete=function(W){W=this.JSC$6744_map_.delete(W);this.size=this.JSC$6744_map_.size;return W};
_.J.clear=function(){this.JSC$6744_map_.clear();this.size=this.JSC$6744_map_.size};
_.J.has=function(W){return this.JSC$6744_map_.has(W)};
_.J.entries=function(){return this.JSC$6744_map_.entries()};
_.J.keys=function(){return this.JSC$6744_map_.keys()};
_.J.values=function(){return this.JSC$6744_map_.values()};
_.J.forEach=function(W,P){return this.JSC$6744_map_.forEach(W,P)};
s1.prototype[Symbol.iterator]=function(){return this.entries()};
var WZ=function(){if(OuS)return Object.setPrototypeOf(s1.prototype,Map.prototype),Object.defineProperties(s1.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),s1;var W=function(){return gro(Map,[],this.constructor)};
_.A(W,Map);return W}(),NL=function(W,P,x,I){x=x===void 0?tzm:x;
I=I===void 0?tzm:I;var O=WZ.call(this)||this;O.arrayState=W[_.Ec]|0;O.valueCtor=P;O.keyToApi=x;O.valueToApi=O.valueCtor?jWR:I;for(var B=0;B<W.length;B++){var Y=W[B],K=x(Y[0],!1,!0),Z=Y[1];P?Z===void 0&&(Z=null):Z=I(Y[1],!1,!0,void 0,void 0,O.arrayState);WZ.prototype.set.call(O,K,Z)}return O};
_.A(NL,WZ);var JKG=function(W){if(W.arrayState&2)throw Error("K");};
_.J=NL.prototype;_.J.clear=function(){JKG(this);WZ.prototype.clear.call(this)};
_.J.delete=function(W){JKG(this);return WZ.prototype.delete.call(this,this.keyToApi(W,!0,!1))};
_.J.entries=function(){if(this.valueCtor){var W=WZ.prototype.keys.call(this);W=new iNC(W,QWx,this)}else W=WZ.prototype.entries.call(this);return W};
_.J.values=function(){if(this.valueCtor){var W=WZ.prototype.keys.call(this);W=new iNC(W,NL.prototype.get,this)}else W=WZ.prototype.values.call(this);return W};
_.J.forEach=function(W,P){this.valueCtor?WZ.prototype.forEach.call(this,function(x,I,O){W.call(P,O.get(I),I,O)}):WZ.prototype.forEach.call(this,W,P)};
_.J.set=function(W,P){JKG(this);W=this.keyToApi(W,!0,!1);return W==null?this:P==null?(WZ.prototype.delete.call(this,W),this):WZ.prototype.set.call(this,W,this.valueToApi(P,!0,!0,this.valueCtor,!1,this.arrayState))};
_.J.has=function(W){return WZ.prototype.has.call(this,this.keyToApi(W,!1,!1))};
_.J.get=function(W){W=this.keyToApi(W,!1,!1);var P=WZ.prototype.get.call(this,W);if(P!==void 0){var x=this.valueCtor;return x?(x=this.valueToApi(P,!1,!0,x,this.callToMutableOnAccess,this.arrayState),x!==P&&WZ.prototype.set.call(this,W,x),x):P}};
NL.prototype[Symbol.iterator]=function(){return this.entries()};
NL.prototype.toJSON=void 0;var Cpx;var HMm=function(){},i3=function(W,P){for(var x in W)!isNaN(x)&&P(W,+x,W[x])},edR=function(W){var P=new HMm;
i3(W,function(x,I,O){P[I]=By(O)});
P.reviveUnknownFields=W.reviveUnknownFields;return P},Eid={reviveIntoImmutable:!0};var hdA;var Xmm,f3U;var BXm,Qc,Ka,de,nFR,A8,So,YXx,yKo,gg,KvC,D2,wg,h8;BXm=_.Fl(0);_.vI={};_.mS=function(W,P,x,I,O){P=Qc(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P,x,O);if(P!==null||I&&W.noLegacyNull!==Hm)return P};
Qc=function(W,P,x,I){if(P===-1)return null;var O=P+(x?0:-1),B=W.length-1;if(!(B<1+(x?0:-1))){if(O>=B){var Y=W[B];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){x=Y[P];var K=!0}else if(O===B)x=Y;else return}else x=W[O];if(I&&x!=null){I=I(x);if(I==null)return I;if(!Object.is(I,x))return K?Y[P]=I:W[O]=I,I}return x}};
_.WP=function(W,P,x,I){uI(W);var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;si(O,O[_.Ec]|0,P,x,I);return W};
_.Vo=function(W,P,x){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return gD(W,W[_.Ec]|0,P,x)!==void 0};
_.t8=function(W,P,x,I){var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return gD(O,O[_.Ec]|0,P,de(W,I,x))!==void 0};
_.qT=function(W){return W===RG8?2:4};
_.pW=function(W,P){W=_.mS(W,P,void 0,void 0,WOx);return W==null?_.ki():W};
Ka=function(W,P,x,I){uI(W);var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=O[_.Ec]|0;if(I==null){var Y=xLm(O);if(IB7(Y,O,B,x)===P)Y.set(x,0);else return W}else B=O2m(O,B,x,P);si(O,B,P,I);return W};
_.Qo=function(W,P,x,I){var O=W[_.Ec]|0,B=TA(O);O=O2m(W,O,x,P,B);si(W,O,P,I,B)};
de=function(W,P,x){return _.CW(W,P)===x?x:-1};
_.CW=function(W,P){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return IB7(xLm(W),W,void 0,P,void 0)};
nFR=function(W,P,x){var I=W[_.Ec]|0,O=TA(I),B=Qc(W,x,O);if(B!=null&&B[Uv]===X6){if(!cm(B))return S$(B),B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(B)&&(Y=B);if(Y){var K=Y[_.Ec]|0;K&2&&(Y=nx(Y,K))}Y=BZ(Y,P,!0);Y!==B&&si(W,I,x,Y,O);return Y};
_.qM=function(W,P,x,I){var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=O[_.Ec]|0;P=gD(O,B,P,x,I);if(P==null)return P;B=O[_.Ec]|0;if(!cm(W,B)){var Y=pmt(P);Y!==P&&(S$(W)&&(O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=O[_.Ec]|0),P=Y,B=si(O,B,x,P,I),dD(O,B))}return P};
_.RQ=function(W,P,x,I){var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return J9R(W,O,O[_.Ec]|0,P,x,I,!1,!0)};
_.I$=function(W,P,x,I){x=BMd(x);_.WP(W,P,x,I);x&&!cm(x)&&dD(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
_.O0=function(W,P,x,I){I=BMd(I);Ka(W,P,x,I);I&&!cm(I)&&dD(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
A8=function(W,P,x){uI(W);var I=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=I[_.Ec]|0;if(x==null)return si(I,O,P),W;for(var B=x===mu?7:x[_.Ec]|0,Y=B,K=px(B),Z=K||Object.isFrozen(x),d=!0,v=!0,m=0;m<x.length;m++){var t=x[m];K||(t=cm(t),d&&(d=!t),v&&(v=t))}K||(B=d?13:5,B=v?B&-4097:B|4096);Z&&B===Y||(x=By(x),Y=0,B=Vc(B,O));B!==Y&&Mb(x,B);O=si(I,O,P,x);2&B||!(4096&B||16&B)||dD(I,O);return W};
So=function(W,P,x,I){Yvm(W,P,x,I);return W};
YXx=function(W,P,x){Yvm(W,P,ze,void 0,x,1,!0);return W};
_.Ge=function(W,P,x){W=_.mS(W,P,void 0,x);P=typeof W;W=W==null?W:P==="bigint"?_.Fl((0,_.h9)(64,W)):_.mO(W)?P==="string"?_.ZMG(W):_.ywR(W):void 0;return W};
_.E1=function(W,P){var x=x===void 0?!1:x;var I;return(I=_.imS(_.mS(W,P)))!=null?I:x};
_.L5=function(W,P,x){x=x===void 0?0:x;var I;return(I=_.C2(_.mS(W,P)))!=null?I:x};
yKo=function(W,P){var x=x===void 0?0:x;W=_.A9(_.mS(W,P));return W!=null?W:x};
gg=function(W,P,x){x=x===void 0?BXm:x;var I;return(I=_.ulo(_.mS(W,P)))!=null?I:x};
KvC=function(W){var P=P===void 0?BXm:P;var x;return(x=_.Ge(W,23))!=null?x:P};
D2=function(W,P){var x=x===void 0?0:x;var I;return(I=_.mS(W,P,void 0,void 0,_.K2))!=null?I:x};
_.MY=function(W,P,x,I){x=x===void 0?"":x;var O;return(O=_.aG(_.mS(W,P,I)))!=null?O:x};
_.$5=function(W,P){var x=x===void 0?0:x;var I;return(I=_.jm(_.mS(W,P)))!=null?I:x};
wg=function(W,P){var x=x===void 0?"0":x;W=Scm(_.mS(W,P),!0);return W!=null?W:x};
h8=function(W,P,x){return _.MY(W,de(W,x,P))};
_.HI=function(W,P,x,I){return _.qM(W,P,de(W,I,x),void 0)};
_.KU=function(W,P){return _.aG(_.mS(W,P,void 0,_.vI))};
_.IE=function(W,P,x){return _.WP(W,P,rmx(x))};
_.Cf=function(W,P,x){return _.A2(W,P,rmx(x),!1)};
_.ee=function(W,P,x){return _.WP(W,P,_.Qf(x))};
_.vB=function(W,P,x){return _.WP(W,P,DB(x))};
_.SU=function(W,P,x){return _.WP(W,P,cy(x))};
_.PX=function(W,P,x,I){return _.A2(W,P,cy(x),"",I)};
_.Lj=function(W,P,x){return _.WP(W,P,x==null?x:_.p2(x))};
_.cI=function(W,P,x){return _.A2(W,P,x==null?x:_.p2(x),0)};var DS=function(W,P,x){this.buffer=W;if(x&&!P)throw Error();this.JSC$6756_isImmutable=P};var Zum=function(W,P,x,I){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6759_start_=0;this.init(W,P,x,I)},ad,SXU,uDC,sgU,Gdd,oFd;
_.J=Zum.prototype;_.J.init=function(W,P,x,I){var O=I===void 0?{}:I;I=O.aliasBytesFields===void 0?!1:O.aliasBytesFields;O=O.treatNewDataAsImmutable===void 0?!1:O.treatNewDataAsImmutable;this.aliasBytesFields=I;this.treatNewDataAsImmutable=O;W&&(W=y9m(W,this.treatNewDataAsImmutable),this.bytes_=W.buffer,this.bytesAreImmutable_=W.JSC$6756_isImmutable,this.JSC$6759_start_=P||0,this.end_=x!==void 0?this.JSC$6759_start_+x:this.bytes_.length,this.cursor_=this.JSC$6759_start_)};
_.J.free=function(){this.clear();oFd.length<100&&oFd.push(this)};
_.J.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6759_start_=0;this.aliasBytesFields=!1};
_.J.reset=function(){this.cursor_=this.JSC$6759_start_};
_.J.atEnd=function(){return this.cursor_==this.end_};
_.b9=function(W,P){var x=0,I=0,O=0,B=W.bytes_,Y=W.cursor_;do{var K=B[Y++];x|=(K&127)<<O;O+=7}while(O<32&&K&128);O>32&&(I|=(K&127)>>4);for(O=3;O<32&&K&128;O+=7)K=B[Y++],I|=(K&127)<<O;ad(W,Y);if(K<128)return P(x>>>0,I>>>0);throw Error("X");};
ad=function(W,P){W.cursor_=P;if(P>W.end_)throw Error("Y`"+P+"`"+W.end_);};
_.k5=function(W){var P=W.bytes_,x=W.cursor_,I=P[x++],O=I&127;if(I&128&&(I=P[x++],O|=(I&127)<<7,I&128&&(I=P[x++],O|=(I&127)<<14,I&128&&(I=P[x++],O|=(I&127)<<21,I&128&&(I=P[x++],O|=I<<28,I&128&&P[x++]&128&&P[x++]&128&&P[x++]&128&&P[x++]&128&&P[x++]&128)))))throw Error("X");ad(W,x);return O};
_.X0=function(W){var P=W.bytes_,x=W.cursor_,I=P[x],O=P[x+1],B=P[x+2];P=P[x+3];ad(W,W.cursor_+4);return(I<<0|O<<8|B<<16|P<<24)>>>0};
SXU=function(W){var P=_.X0(W);W=_.X0(W);return lAm(P,W)};
uDC=function(W){var P=_.X0(W),x=_.X0(W);W=(x>>31)*2+1;var I=x>>>20&2047;P=4294967296*(x&1048575)+P;return I==2047?P?NaN:W*Infinity:I==0?W*4.9E-324*P:W*Math.pow(2,I-1075)*(P+4503599627370496)};
_.duC=function(W){for(var P=0,x=W.cursor_,I=x+10,O=W.bytes_;x<I;){var B=O[x++];P|=B;if((B&128)===0)return ad(W,x),!!(P&127)}throw Error("X");};
sgU=function(W,P){if(P<0)throw Error("Z`"+P);var x=W.cursor_,I=x+P;if(I>W.end_)throw Error("Y`"+(W.end_-x)+"`"+P);W.cursor_=I;return x};
Gdd=function(W,P){if(P==0)return _.ki();var x=sgU(W,P);W.aliasBytesFields&&W.bytesAreImmutable_?x=W.bytes_.subarray(x,x+P):(W=W.bytes_,P=x+P,x=x===P?new Uint8Array(0):I_U?W.slice(x,P):new Uint8Array(W.subarray(x,P)));return x.length==0?_.ki():new aW(x,bp)};
oFd=[];var muo=function(W,P,x,I){if(oFd.length){var O=oFd.pop();O.init(W,P,x,I);W=O}else W=new Zum(W,P,x,I);this.decoder_=W;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;vFx(this,I)},vFx=function(W,P){P=P===void 0?{}:P;
W.discardUnknownFields=P.discardUnknownFields===void 0?!1:P.discardUnknownFields},DLR=function(W,P,x,I){if(V08.length){var O=V08.pop();
vFx(O,I);O.decoder_.init(W,P,x,I);return O}return new muo(W,P,x,I)},A9R,kT,t0R,V08;
muo.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;V08.length<100&&V08.push(this)};
muo.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
A9R=function(W){if(W.decoder_.atEnd())return!1;W.fieldCursor_=W.decoder_.cursor_;var P=_.k5(W.decoder_)>>>0,x=P>>>3;P&=7;if(!(P>=0&&P<=5))throw Error("T`"+P+"`"+W.fieldCursor_);if(x<1)throw Error("U`"+x+"`"+W.fieldCursor_);W.nextField_=x;W.nextWireType_=P;return!0};
kT=function(W){switch(W.nextWireType_){case 0:W.nextWireType_!=0?kT(W):_.duC(W.decoder_);break;case 1:W=W.decoder_;ad(W,W.cursor_+8);break;case 2:if(W.nextWireType_!=2)kT(W);else{var P=_.k5(W.decoder_)>>>0;W=W.decoder_;ad(W,W.cursor_+P)}break;case 5:W=W.decoder_;ad(W,W.cursor_+4);break;case 3:P=W.nextField_;do{if(!A9R(W))throw Error("V");if(W.nextWireType_==4){if(W.nextField_!=P)throw Error("W");break}kT(W)}while(1);break;default:throw Error("T`"+W.nextWireType_+"`"+W.fieldCursor_);}};
t0R=function(W,P,x){var I=W.decoder_.end_,O=_.k5(W.decoder_)>>>0,B=W.decoder_.cursor_+O,Y=B-I;Y<=0&&(W.decoder_.end_=B,x(P,W,void 0,void 0,void 0),Y=B-W.decoder_.cursor_);if(Y)throw Error("S`"+O+"`"+(O-Y));W.decoder_.cursor_=B;W.decoder_.end_=I};
_.pDG=function(W){var P=_.k5(W.decoder_)>>>0;W=W.decoder_;var x=sgU(W,P);W=W.bytes_;if(x4G){var I=W,O;(O=PXU)||(O=PXU=new TextDecoder("utf-8",{fatal:!0}));P=x+P;I=x===0&&P===I.length?I:I.subarray(x,P);try{var B=O.decode(I)}catch(d){if(WN8===void 0){try{O.decode(new Uint8Array([128]))}catch(v){}try{O.decode(new Uint8Array([97])),WN8=!0}catch(v){WN8=!1}}!WN8&&(PXU=void 0);throw d;}}else{B=x;P=B+P;x=[];for(var Y=null,K,Z;B<P;)K=W[B++],K<128?x.push(K):K<224?B>=P?Pd():(Z=W[B++],K<194||(Z&192)!==128?(B--,
Pd()):x.push((K&31)<<6|Z&63)):K<240?B>=P-1?Pd():(Z=W[B++],(Z&192)!==128||K===224&&Z<160||K===237&&Z>=160||((O=W[B++])&192)!==128?(B--,Pd()):x.push((K&15)<<12|(Z&63)<<6|O&63)):K<=244?B>=P-2?Pd():(Z=W[B++],(Z&192)!==128||(K<<28)+(Z-144)>>30!==0||((O=W[B++])&192)!==128||((I=W[B++])&192)!==128?(B--,Pd()):(K=(K&7)<<18|(Z&63)<<12|(O&63)<<6|I&63,K-=65536,x.push((K>>10&1023)+55296,(K&1023)+56320))):Pd(),x.length>=8192&&(Y=WRC(Y,x),x.length=0);B=WRC(Y,x)}return B};
_.jgt=function(W){var P=_.k5(W.decoder_)>>>0;return Gdd(W.decoder_,P)};
_.Qg7=function(W,P,x){var I=_.k5(W.decoder_)>>>0;for(I=W.decoder_.cursor_+I;W.decoder_.cursor_<I;)x.push(P(W.decoder_))};
V08=[];var CMC=function(W,P){this.JSC$6766_lo=W>>>0;this.JSC$6766_hi=P>>>0},zBm=function(W){if(!W)return AKS||(AKS=new CMC(0,0));
if(!/^\d+$/.test(W))return null;J9(W);return new CMC(qb,LM)},AKS,ULW=function(W,P){this.JSC$6768_lo=W>>>0;
this.JSC$6768_hi=P>>>0},b2m=function(W){if(!W)return G8t||(G8t=new ULW(0,0));
if(!/^-?\d+$/.test(W))return null;J9(W);return new ULW(qb,LM)},G8t;var EFR=function(){this.JSC$6770_buffer_=[]},kd8,gFA;
EFR.prototype.length=function(){return this.JSC$6770_buffer_.length};
EFR.prototype.end=function(){var W=this.JSC$6770_buffer_;this.JSC$6770_buffer_=[];return W};
kd8=function(W,P,x){for(;x>0||P>127;)W.JSC$6770_buffer_.push(P&127|128),P=(P>>>7|x<<25)>>>0,x>>>=7;W.JSC$6770_buffer_.push(P)};
gFA=function(W,P){for(;P>127;)W.JSC$6770_buffer_.push(P&127|128),P>>>=7;W.JSC$6770_buffer_.push(P)};
_.Xy8=function(W,P){if(P>=0)gFA(W,P);else{for(var x=0;x<9;x++)W.JSC$6770_buffer_.push(P&127|128),P>>=7;W.JSC$6770_buffer_.push(1)}};
_.F5=function(W,P){W.JSC$6770_buffer_.push(P>>>0&255);W.JSC$6770_buffer_.push(P>>>8&255);W.JSC$6770_buffer_.push(P>>>16&255);W.JSC$6770_buffer_.push(P>>>24&255)};var Dut,N5,NM8,r9R;Dut=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new EFR};
N5=function(W,P){P.length!==0&&(W.blocks_.push(P),W.totalLength_+=P.length)};
_.Svd=function(W,P){_.iI(W,P,2);P=W.encoder_.end();N5(W,P);P.push(W.totalLength_);return P};
_.u6R=function(W,P){var x=P.pop();for(x=W.totalLength_+W.encoder_.length()-x;x>127;)P.push(x&127|128),x>>>=7,W.totalLength_++;P.push(x);W.totalLength_++};
_.iI=function(W,P,x){gFA(W.encoder_,P*8+x)};
NM8=function(W,P,x){if(x!=null){switch(typeof x){case "string":zBm(x)}_.iI(W,P,1);switch(typeof x){case "number":W=W.encoder_;fAm(x);_.F5(W,qb);_.F5(W,LM);break;case "bigint":x=BigInt.asUintN(64,x);x=new CMC(Number(x&BigInt(4294967295)),Number(x>>BigInt(32)));W=W.encoder_;P=x.JSC$6766_hi;_.F5(W,x.JSC$6766_lo);_.F5(W,P);break;default:x=zBm(x),W=W.encoder_,P=x.JSC$6766_hi,_.F5(W,x.JSC$6766_lo),_.F5(W,P)}}};
r9R=function(W,P,x){_.iI(W,P,2);gFA(W.encoder_,x.length);N5(W,W.encoder_.end());N5(W,x)};var KOd,wD7,hBR,cKx,a_G;KOd=wD();_.M0A=wD();_.$ut=wD();wD7=wD();hBR=wD();_.HuR=wD();_.fW=wD();_.eBm=wD();cKx=wD();a_G=wD();_.buG=wD();_.k87=wD();_.aK=function(W,P,x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W,P,x)};
_.aK.prototype.toJSON=function(){return IK(this)};
_.aK.prototype.serialize=function(W){return JSON.stringify(IK(this,W))};
var ISW=function(W,P){if(P==null||P=="")return new W;P=JSON.parse(P);if(!Array.isArray(P))throw Error("$");return new W(hxU(P))};
_.aK.prototype.getExtension=function(W){Mzm(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W.fieldIndex);gim(this,W.fieldIndex);return W.ctor?W.isRepeated?W.getExtensionFn(this,W.ctor,W.fieldIndex,_.qT(),W.JSC$6781_hasMessageId):W.getExtensionFn(this,W.ctor,W.fieldIndex,W.JSC$6781_hasMessageId):W.isRepeated?W.getExtensionFn(this,W.fieldIndex,_.qT(),W.JSC$6781_hasMessageId):W.getExtensionFn(this,W.fieldIndex,W.defaultValue,W.JSC$6781_hasMessageId)};
_.aK.prototype.clone=function(){var W=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=W[_.Ec]|0;return ZS(this,W,P)?yc(this,W,!0):new this.constructor(nx(W,P,!1))};
_.aK.prototype[Uv]=X6;_.aK.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var HZ=function(W,P,x){this.$$binaryReaderFn=W;this.$$binaryWriterFn=P;W=l3(KOd);this.$$isMsg=!!W&&x===W||!1},mLW=Z2U(function(W,P,x,I,O){if(W.nextWireType_!==2)return!1;
t0R(W,nFR(P,I,x),O);return!0},dLm),Vmm=Z2U(function(W,P,x,I,O){if(W.nextWireType_!==2)return!1;
t0R(W,nFR(P,I,x),O);return!0},dLm),X5=Symbol(),bI=Symbol(),C3S=Symbol(),$Lo=Symbol(),E4R=Symbol(),sGm,v4C;var Wud,Uut,XD7,f_C,NXt,l_d,TXx,rKS,iuR,RBR,FvC,Lvx,WLS,xJR,I7W;Wud=function(W,P){var x=new Dut;wyt(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x,e$(X5,Ui,fx,P));N5(x,x.encoder_.end());W=new Uint8Array(x.totalLength_);P=x.blocks_;for(var I=P.length,O=0,B=0;B<I;B++){var Y=P[B];W.set(Y,O);O+=Y.length}x.blocks_=[W];return W};
Uut=_.lI(function(W,P,x){if(W.nextWireType_!==1)return!1;_.Tk(P,x,uDC(W.decoder_));return!0},aBR,a_G);
XD7=_.lI(function(W,P,x,I){if(W.nextWireType_!==1)return!1;_.Qo(P,x,I,uDC(W.decoder_));return!0},aBR,a_G);
f_C=_.lI(function(W,P,x,I){if(W.nextWireType_!==5)return!1;var O=_.X0(W.decoder_);W=(O>>31)*2+1;var B=O>>>23&255;O&=8388607;_.Qo(P,x,I,B==255?O?NaN:W*Infinity:B==0?W*1.401298464324817E-45*O:W*Math.pow(2,B-150)*(O+8388608));return!0},function(W,P,x){P=_.K2(P);
P!=null&&(_.iI(W,x,5),W=W.encoder_,x=RK||(RK=new DataView(new ArrayBuffer(8))),x.setFloat32(0,+P,!0),LM=0,qb=x.getUint32(0,!0),_.F5(W,qb))},cKx);
_.NY=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;_.Tk(P,x,_.b9(W.decoder_,x4));return!0},_.q5,_.fW);
NXt=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;W=_.b9(W.decoder_,x4);_.Tk(P,x,W===0?void 0:W);return!0},_.q5,_.fW);
l_d=_.lI(function(W,P,x,I){if(W.nextWireType_!==0)return!1;_.Qo(P,x,I,_.b9(W.decoder_,x4));return!0},_.q5,_.fW);
_.l9=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;_.Tk(P,x,_.k5(W.decoder_));return!0},fB8,wD7);
TXx=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;W=_.k5(W.decoder_);_.Tk(P,x,W===0?void 0:W);return!0},fB8,wD7);
rKS=_.lI(function(W,P,x,I){if(W.nextWireType_!==0)return!1;_.Qo(P,x,I,_.k5(W.decoder_));return!0},fB8,wD7);
iuR=_.lI(function(W,P,x){if(W.nextWireType_!==1)return!1;_.Tk(P,x,SXU(W.decoder_));return!0},_.lBS,_.eBm);
RBR=_.c9x(function(W,P,x){if(W.nextWireType_!==1&&W.nextWireType_!==2)return!1;P=_.Gk(P,P[_.Ec]|0,x);W.nextWireType_==2?_.Qg7(W,SXU,P):P.push(SXU(W.decoder_));return!0},function(W,P,x){P=_.eQG(sWR,P,!1);
if(P!=null)for(var I=0;I<P.length;I++)NM8(W,x,P[I])},_.eBm);
_.Te=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;_.Tk(P,x,_.duC(W.decoder_));return!0},_.TMo,_.M0A);
FvC=_.lI(function(W,P,x,I){if(W.nextWireType_!==0)return!1;_.Qo(P,x,I,_.duC(W.decoder_));return!0},_.TMo,_.M0A);
_.rg=_.lI(function(W,P,x){if(W.nextWireType_!==2)return!1;_.Tk(P,x,_.pDG(W));return!0},_.i2t,_.$ut);
_.qXR=_.lI(function(W,P,x,I){if(W.nextWireType_!==2)return!1;_.Qo(P,x,I,_.pDG(W));return!0},_.i2t,_.$ut);
Lvx=_.c9x(function(W,P,x){if(W.nextWireType_!==2)return!1;W=_.pDG(W);_.Gk(P,P[_.Ec]|0,x).push(W);return!0},function(W,P,x){P=_.eQG(_.aG,P,!0);
if(P!=null)for(var I=0;I<P.length;I++){var O=W,B=x,Y=P[I];Y!=null&&r9R(O,B,OmW(Y))}},_.$ut);
WLS=void 0;WLS=WLS===void 0?KOd:WLS;_.i9=new HZ(function(W,P,x,I,O){if(W.nextWireType_!==2)return!1;I=BZ(void 0,I,!0);_.Gk(P,P[_.Ec]|0,x).push(I);t0R(W,I,O);return!0},function(W,P,x,I,O){if(Array.isArray(P))for(var B=0;B<P.length;B++)FOm(W,P[B],x,I,O)},WLS);
_.Rd=Z2U(function(W,P,x,I,O,B){if(W.nextWireType_!==2)return!1;var Y=P[_.Ec]|0;O2m(P,Y,B,x,TA(Y));P=nFR(P,I,x);t0R(W,P,O);return!0},FOm);
_.PiA=_.lI(function(W,P,x){if(W.nextWireType_!==2)return!1;_.Tk(P,x,_.jgt(W));return!0},_.qvo,_.buG);
xJR=_.lI(function(W,P,x,I){if(W.nextWireType_!==2)return!1;_.Qo(P,x,I,_.jgt(W));return!0},_.qvo,_.buG);
I7W=_.lI(function(W,P,x,I){if(W.nextWireType_!==0)return!1;_.Qo(P,x,I,_.k5(W.decoder_)>>>0);return!0},function(W,P,x){P=_.A9(P);
P!=null&&P!=null&&(_.iI(W,x,0),gFA(W.encoder_,P))},hBR);
_.F0=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;_.Tk(P,x,_.k5(W.decoder_));return!0},_.LO8,_.k87);var BHt=function(){var W=OVC,P=J_W;this.fieldIndex=175237375;this.ctor=P;this.isRepeated=0;this.getExtensionFn=_.qM;this.defaultValue=void 0;this.JSC$6781_hasMessageId=W.messageId!=null?Nb:void 0};
BHt.prototype.register=function(){Y5(this)};var nbC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(nbC,_.aK);var Y5d=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Y5d,_.aK);var BDG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(BDG,_.aK);var y_S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(y_S,_.aK);var KLd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(KLd,_.aK);var ZVm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(ZVm,_.aK);var obC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(obC,_.aK);obC.prototype.getData=function(){return _.pW(this,2)};var S5W=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(S5W,_.aK);var uWS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(uWS,_.aK);uWS.prototype.getStyle=function(){return _.qM(this,nbC,1)};var xH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(xH,_.aK);xH.prototype.getPayloadCase=function(){return _.CW(this,JH)};
xH.prototype.getStyle=function(){return _.HI(this,uWS,6,JH)};
var dJ8=function(){var W=new xH,P=new KLd;return _.O0(W,7,JH,P)},sTR=function(){var W=new xH,P=new ZVm;
return _.O0(W,8,JH,P)},JH=[1,
2,3,4,5,6,7,8];var vbm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(vbm,_.aK);var mJR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(mJR,_.aK);var VDx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(VDx,_.aK);var tDx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(tDx,_.aK);var pGA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(pGA,_.aK);var jTR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(jTR,_.aK);var QTt=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(QTt,_.aK);var CiR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(CiR,_.aK);CiR.prototype.getData=function(){return _.pW(this,2)};var A_S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(A_S,_.aK);var J2U=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(J2U,_.aK);J2U.prototype.getPayloadCase=function(){return _.CW(this,qY)};
var qY=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var LW=function(W,P){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=P===void 0?2:P};
_.A(LW,Error);var zAW=Promise;var G_S=function(W){this.channelPromise=W};
G_S.prototype.send=function(W,P,x){this.channelPromise.then(function(I){I.send(W,P,x)})};var EbW=function(W,P){this.data=W;this.channel=P};
EbW.prototype.reply=function(W,P,x){this.channel.send(W,P,x)};var gb8=function(W){this.JSC$6847_port_=W};
gb8.prototype.send=function(W,P,x){x=x===void 0?[]:x;var I=new MessageChannel;DJU(I.port1,P);this.JSC$6847_port_.postMessage(W,[I.port2].concat(x))};
var MDG=function(W,P){DJU(W,P);return new gb8(W)},DJU=function(W,P){P&&(W.onmessage=function(x){P(new EbW(x.data,MDG(x.ports[0])))})};var $Jm=function(W){this.verifier_=W},wGA=function(W){var P=Object.create(null);
(typeof W==="string"?[W]:W).forEach(function(x){if(x==="null")throw Error("ba");P[x]=!0});
return function(x){return P[x]===!0}};_.hA7=function(){if(!_.xW.addEventListener||!Object.defineProperty)return!1;var W=!1,P=Object.defineProperty({},"passive",{get:function(){W=!0}});
try{var x=function(){};
_.xW.addEventListener("test",x,P);_.xW.removeEventListener("test",x,P)}catch(I){}return W}();var HVC;_.Wx=function(W){var P=W.destination;var x=W.iframe;var I=W.origin;var O=W.channelName===void 0?"ZNWN1d":W.channelName;var B=W.onMessage===void 0?void 0:W.onMessage;W=W.onEstablished===void 0?void 0:W.onEstablished;return HVC({destination:P,getSource:function(){return x.contentWindow},
originVerifier:I instanceof $Jm?I:typeof I==="function"?new $Jm(I):new $Jm(wGA(I)),channelName:O,onMessage:B,onEstablished:W})};
HVC=function(W){var P=W.destination;var x=W.getSource;var I=W.originVerifier;var O=W.token===void 0?void 0:W.token;var B=W.channelName;var Y=W.onMessage===void 0?void 0:W.onMessage;var K=W.onEstablished===void 0?void 0:W.onEstablished;return new G_S(new zAW(function(Z,d){var v=function(m){m.source&&m.source===x()&&I.verifier_(m.origin)&&(m.data.n||m.data)===B&&(P.removeEventListener("message",v,!1),O&&m.data.t!==O?d(Error("ca`"+B+"`"+O+"`"+m.data.t)):(Z(MDG(m.ports[0],Y)),K&&K(m)))};
P.addEventListener("message",v,!1)}))};var eAd=function(W){try{W()}catch(P){OU(P)}};var a7m=function(W){var P=this;var x=W.getMessageType;var I=W.onUnregisteredMessage===void 0?function(){}:W.onUnregisteredMessage;
var O=W.onBeforeRegisteredMessage===void 0?function(){}:W.onBeforeRegisteredMessage;
W=W.onAfterRegisteredMessage===void 0?function(){}:W.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=x;this.onUnregisteredMessage_=I;this.onBeforeRegisteredMessage_=O;this.onAfterRegisteredMessage_=W;this.onMessage=function(B){return c_d(P,B)}};
a7m.prototype.register=function(W,P){this.registry_.set(W,P);return this};
var c_d=function(W,P){var x=W.getMessageType_(P.data),I=W.registry_.get(x);I?(eAd(function(){return W.onBeforeRegisteredMessage_(P,x)}),eAd(function(){return I(P)}),eAd(function(){return W.onAfterRegisteredMessage_(P,x)})):eAd(function(){return W.onUnregisteredMessage_(P,x)})};var bV7=function(W){this.JSC$6864_channel_=W},UJ7,XG8;
bV7.prototype.send=function(W,P,x){this.JSC$6864_channel_.send(IK(W),P,x)};
_.k_m=function(W,P){return function(x){var I=new W(x.data);return P(new EbW(I,x.channel))}};
UJ7=function(W){return function(P){return W(new EbW(P.data,new bV7(P.channel)))}};
XG8=function(W,P){return UJ7(_.k_m(W,P))};var f7C=function(W,P,x,I){this.registry=W;this.delegate=P;this.receiveMessageConstructor=x;this.createInitMessage=I;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},OxR=function(W){var P=new a7m({getMessageType:W.getPayloadCase});
return new f7C(P,new bV7(_.Wx({iframe:W.child,destination:window,origin:W.origin,channelName:W.channelName,onMessage:XG8(W.receiveMessageConstructor,P.onMessage)})),W.receiveMessageConstructor,W.createInitMessage)},NHo=function(W,P){W.createInitMessage=P};
f7C.prototype.send=function(W){if(!this.initialised)throw new LW("Attempted to send a message before initialisation.");this.delegate.send(W)};
var l7S=function(W,P){return _.y(function(x){if(!W.initialised)throw new LW("Attempted to send a message before initialisation.");return x.return(new Promise(function(I){W.delegate.send(P,XG8(W.receiveMessageConstructor,I))}))})};
f7C.prototype.init=function(){var W=this;return _.y(function(P){if(W.initialised)throw new LW("Attempted to initialise twice. The SDK can only be initialised once.");if(W.createInitMessage!==void 0){var x=W.delegate,I=x.send,O=W.createInitMessage;var B=new Y5d;var Y=[].concat(_.ju(W.features));B=_.Cx(B,1,Y,_.p2);I.call(x,O.call(W,B))}W.initialised=!0;_.Kl(P)})};
var Px=function(W,P){if(W.initialised)throw new LW('Attempted to set up API "'+P+'" after initialisation. All APIs must be set up before initialising the SDK.');W.features.add(P);return W.registry};
_.N1.Object.defineProperties(f7C.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var THA=function(W){this.channel=W;this.registered=!1};
THA.prototype.update=function(W){if(this.channel.isInitialised){if(!this.registered)throw new LW("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var P=new xH;var x=new y_S;x=_.IE(x,1,W);P=_.O0(P,2,JH,x);this.channel.send(P)}else this.register();this.JSC$6878_audioEnabled=W};
THA.prototype.register=function(){Px(this.channel,1);this.registered=!0};
THA.prototype.isAudioEnabled=function(){return this.JSC$6878_audioEnabled};var r_G=function(W){this.channel=W};
_.J=r_G.prototype;_.J.onFirstFrameReady=function(W){Px(this.channel,2).register(11,function(P){P=_.HI(P.data,vbm,11,qY);if(!P)throw new LW("Unexpectedly nonexistent GameFirstFrameReadyEvent");W(_.MY(P,1))})};
_.J.onReady=function(W){Px(this.channel,2).register(4,function(P){P=_.HI(P.data,VDx,4,qY);if(!P)throw new LW("Unexpectedly nonexistent GameReadyEvent");W(_.MY(P,1))})};
_.J.onLevelComplete=function(W){Px(this.channel,2).register(5,function(P){P=_.HI(P.data,tDx,5,qY);if(!P)throw new LW("Unexpectedly nonexistent LevelCompleteEvent");W(_.MY(P,1),_.L5(P,2))})};
_.J.onGameOver=function(W){Px(this.channel,2).register(6,function(P){P=_.HI(P.data,mJR,6,qY);if(!P)throw new LW("Unexpectedly nonexistent GameOverEvent");W(_.MY(P,1))})};
_.J.pause=function(){var W=this;if(!this.channel.isInitialised)return Px(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new LW("Using unregistered Game Feature: pause.");var P=dJ8();return new Promise(function(x){return _.y(function(I){if(I.nextAddress==1)return _.S(I,l7S(W.channel,P),2);x();_.Kl(I)})})};
_.J.resume=function(){var W=this;if(!this.channel.isInitialised)return Px(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new LW("Using unregistered Game Feature: resume.");var P=sTR();return new Promise(function(x){return _.y(function(I){if(I.nextAddress==1)return _.S(I,l7S(W.channel,P),2);x();_.Kl(I)})})};var iVW=function(W){this.channel=W};
iVW.prototype.onReady=function(W){Px(this.channel,5).register(8,function(P){if(!_.HI(P.data,pGA,8,qY))throw new LW("Unexpectedly nonexistent PageReadyEvent");W()})};var RAR=function(W){this.channel=W};
RAR.prototype.onChange=function(W){Px(this.channel,3).register(7,function(P){P=_.HI(P.data,jTR,7,qY);if(!P)throw new LW("Unexpectedly nonexistent ScoreEvent");W(_.MY(P,1),_.L5(P,2))})};var FL8={load:function(){throw new LW("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new LW("Storage used, but storage.onSave() listener not set!");}},q5A=function(W){this.channel=W;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},LLW=function(W){Px(W.channel,4).register(2,FL8.load).register(3,FL8.save);
W.initialSetupDone=!0};
q5A.prototype.onLoad=function(W){this.initialSetupDone||LLW(this);this.loadRegistered||(this.loadRegistered=!0,Px(this.channel,4).register(2,function(P){var x,I,O;return _.y(function(B){if(B.nextAddress==1){x=_.HI(P.data,QTt,2,qY);if(!x)throw new LW("Unexpectedly nonexistent StorageLoad");I=_.MY(x,1);return _.S(B,W(I),2)}O=B.yieldResult;var Y=P.reply,K=new xH;var Z=new obC;Z=_.SU(Z,1,I);Z=_.WP(Z,2,_.Uc(O,!1));K=_.O0(K,3,JH,Z);Y.call(P,K);_.Kl(B)})}))};
q5A.prototype.onSave=function(W){this.initialSetupDone||LLW(this);this.saveRegistered||(this.saveRegistered=!0,Px(this.channel,4).register(3,function(P){var x,I,O;return _.y(function(B){if(B.nextAddress==1){x=_.HI(P.data,CiR,3,qY);if(!x)throw new LW("Unexpectedly nonexistent StorageSave");I=_.MY(x,1);O=l0t(x.getData());return _.S(B,W(I,O),2)}var Y=P.reply,K=new xH;var Z=new S5W;Z=_.SU(Z,1,I);K=_.O0(K,4,JH,Z);Y.call(P,K);_.Kl(B)})}))};var WRp=function(W){this.channel=W};
WRp.prototype.update=function(W){if(!this.channel.features.has(6))throw new LW("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var P=new xH,x=new uWS;W=_.I$(x,1,W);P=_.O0(P,6,JH,W);this.channel.send(P)};
WRp.prototype.register=function(){Px(this.channel,6)};var PCi=function(W){this.channel=W;this.userActivityLoggingIntervalMs=0};
PCi.prototype.onUserActivity=function(W,P){this.userActivityLoggingIntervalMs=P;Px(this.channel,7).register(9,function(x){if(!_.HI(x.data,A_S,9,qY))throw new LW("Unexpectedly nonexistent ClickEvent");W()})};var x7M=function(W){var P=this;this.channel=W;this.init=this.channel.init.bind(this.channel);this.page=new iVW(this.channel);this.game=new r_G(this.channel);this.audio=new THA(this.channel);this.score=new RAR(this.channel);this.storage=new q5A(this.channel);this.style=new WRp(this.channel);this.userActivity=new PCi(this.channel);NHo(this.channel,function(x){var I=new BDG;x=_.I$(I,1,x);x=_.ee(x,3,P.userActivity.userActivityLoggingIntervalMs);I=P.audio.isAudioEnabled();I!==void 0&&_.IE(x,2,I);I=new xH;
return _.O0(I,5,JH,x)})};var IAl=function(){this.timedFunctionContext=0};
IAl.prototype.timeExecution=function(W,P){var x=this;return function(){var I=_.tH.apply(0,arguments);x.timedFunctionContext=W;return P.apply(null,_.ju(I))}};var Omi=function(){var W={};this.priorityTasks=(W[3]=[],W[2]=[],W[1]=[],W);this.isFlushing=!1},B9=function(W,P,x){var I=Jmp(W,x);
W.priorityTasks[x].push(P);I&&W.priorityTasks[x].length===1&&W.flush()},Jmp=function(W,P){return Object.keys(W.priorityTasks).map(function(x){return Number(x)}).filter(function(x){return!isNaN(x)&&x>P}).every(function(x){return W.priorityTasks[x].length===0})};
Omi.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(W){return W.length>0});)BS3(this,3),BS3(this,2),BS3(this,1)}catch(W){throw Object.values(this.priorityTasks).forEach(function(P){return void P.splice(0,P.length)}),W;
}finally{this.isFlushing=!1}}};
var BS3=function(W,P){for(;Jmp(W,P)&&W.priorityTasks[P].length>0;)W.priorityTasks[P][0](),W.priorityTasks[P].shift()};
_.N1.Object.defineProperties(Omi.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(W){return W.length>0})}}});var oTG={};var nWi=globalThis.trustedTypes,YiG=nWi,KuG;var nz=function(W){this.privateDoNotAccessOrElseWrappedResourceUrl=W};
nz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var YUZ=_.i4([""]),ymb=hgR(["\x00"],["\\0"]),KRW=hgR(["\n"],["\\n"]),Zml=hgR(["\x00"],["\\u0000"]);Kz(function(W){return W(YUZ)})||Kz(function(W){return W(ymb)})||Kz(function(W){return W(KRW)})||Kz(function(W){return W(Zml)});var v6;_.ZH=function(W,P){this.privateDoNotAccessOrElseWrappedUrl=P};
_.ZH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.oWi=o$("about:blank");v6=o$("about:invalid#zClosurez");var Sit=function(W){this.isValid=W},SUW=new Sit(function(W){return/^[^:]*([/?#]|$)/.test(W)}),uti=d9("data"),d7p=d9("http"),soA=d9("https"),vW3=d9("ftp"),m7W=d9("mailto"),V8P=d9("intent"),t8l=d9("vnd.youtube"),u5m=[uti,
d7p,soA,m7W,vW3,SUW],d5U=B6(function(){return typeof URL==="function"}),pdc=["data:",
"http:","https:","mailto:","ftp:"],vTd=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var zI=function(W){this.privateDoNotAccessOrElseWrappedHtml=W};
zI.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var CPU=B6(function(){return new zI(nWi?nWi.emptyHTML:"")});var jow={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"},DH=function(W,P){var x=Error.call(this,W+" cannot be used with intent "+jow[P]);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.type=W;this.intent=P;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.A(DH,Error);_.w9=function(W){this.privateDoNotAccessOrElseWrappedScript=W};
_.w9.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var pZU=function(W){this.privateDoNotAccessOrElseWrappedAttributePrefix=W};
pZU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var jKA="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var jxR=function(W){var P=_.eL("window.location.href");W==null&&(W='Unknown Error of type "null/undefined"');if(typeof W==="string")return{message:W,name:"Unknown error",lineNumber:"Not available",fileName:P,stack:"Not available"};var x=!1;try{var I=W.lineNumber||W.line||"Not available"}catch(Y){I="Not available",x=!0}try{var O=W.fileName||W.filename||W.sourceURL||_.xW.$googDebugFname||P}catch(Y){O="Not available",x=!0}P=Qod(W);if(!(!x&&W.lineNumber&&W.fileName&&W.stack&&W.message&&W.name)){x=W.message;
if(x==null){if(W.constructor&&W.constructor instanceof Function){if(W.constructor.name)x=W.constructor.name;else if(x=W.constructor,x_[x])x=x_[x];else{x=String(x);if(!x_[x]){var B=/function\s+([^\(]+)/m.exec(x);x_[x]=B?B[1]:"[Anonymous]"}x=x_[x]}x='Unknown Error of type "'+x+'"'}else x="Unknown Error of unknown type";typeof W.toString==="function"&&Object.prototype.toString!==W.toString&&(x+=": "+W.toString())}return{message:x,name:W.name||"UnknownError",lineNumber:I,fileName:O,stack:P||"Not available"}}return{message:W.message,
name:W.name,lineNumber:W.lineNumber,fileName:W.fileName,stack:P}},Qod=function(W,P){P||(P={});
P[CCd(W)]=!0;var x=W.stack||"",I=W.cause;I&&!P[CCd(I)]&&(x+="\nCaused by: ",I.stack&&I.stack.indexOf(I.toString())==0||(x+=typeof I==="string"?I:I.message+"\n"),x+=Qod(I,P));W=W.errors;if(Array.isArray(W)){I=1;var O;for(O=0;O<W.length&&!(I>4);O++)P[CCd(W[O])]||(x+="\nInner error "+I++ +": ",W[O].stack&&W[O].stack.indexOf(W[O].toString())==0||(x+=typeof W[O]==="string"?W[O]:W[O].message+"\n"),x+=Qod(W[O],P));O<W.length&&(x+="\n... "+(W.length-O)+" more inner errors")}return x},CCd=function(W){var P=
"";
typeof W.toString==="function"&&(P=""+W);return P+W.stack},x_={};var AmM,iP,Oa,GRW,EWm,zxP,Hn,HV,D7b;AmM=function(W,P){for(var x=W.split("%s"),I="",O=Array.prototype.slice.call(arguments,1);O.length&&x.length>1;)I+=x.shift()+O.shift();return I+x.join("%s")};
_.al=function(W){return encodeURIComponent(String(W))};
iP=function(W){return decodeURIComponent(W.replace(/\+/g," "))};
Oa=function(W){KNm.test(W)&&(W.indexOf("&")!=-1&&(W=W.replace(ON8,"&amp;")),W.indexOf("<")!=-1&&(W=W.replace(JrU,"&lt;")),W.indexOf(">")!=-1&&(W=W.replace(BA8,"&gt;")),W.indexOf('"')!=-1&&(W=W.replace(nSS,"&quot;")),W.indexOf("'")!=-1&&(W=W.replace(YlU,"&#39;")),W.indexOf("\x00")!=-1&&(W=W.replace(yrt,"&#0;")));return W};
GRW=function(W){var P={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var x=_.xW.document.createElement("div");return W.replace(zxP,function(I,O){var B=P[I];if(B)return B;O.charAt(0)=="#"&&(O=Number("0"+O.slice(1)),isNaN(O)||(B=String.fromCharCode(O)));B||(_.a$(x,GI(I+" ")),B=x.firstChild.nodeValue.slice(0,-1));return P[I]=B})};
EWm=function(W){return W.replace(/&([^;]+);/g,function(P,x){switch(x){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return x.charAt(0)!="#"||(x=Number("0"+x.slice(1)),isNaN(x))?P:String.fromCharCode(x)}})};
zxP=/&([^;\s<&]+);?/g;_.Tgm=function(W){return String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.gWM=String.prototype.repeat?function(W,P){return W.repeat(P)}:function(W,P){return Array(P+1).join(W)};
_.I_=function(W,P){if(!Number.isFinite(W))return String(W);W=String(W);var x=W.indexOf(".");x===-1&&(x=W.length);var I=W[0]==="-"?"-":"";I&&(W=W.substring(1));return I+(0,_.gWM)("0",Math.max(0,P-x))+W};
Hn=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.O1()).toString(36)};
HV=function(W){for(var P=0,x=0;x<W.length;++x)P=31*P+W.charCodeAt(x)>>>0;return P};
_.Zt=function(W){return String(W).replace(/\-([a-z])/g,function(P,x){return x.toUpperCase()})};
_.Kf=function(W){return String(W).replace(/([A-Z])/g,"-$1").toLowerCase()};
D7b=function(W){return W.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(P,x,I){return x+I.toUpperCase()})};var M8c=function(){this.names=new Map};
M8c.prototype.getName=function(W){var P=this.names.get(W);if(P)return P;var x;P=(x=W.description)!=null?x:Hn();this.names.set(W,P);return P};var $7b=function(W){var P=Error.call(this,W?W.length+" errors occurred during unsubscription:\n"+W.map(function(x,I){return I+1+") "+x.toString()}).join("\n  "):"");
this.message=P.message;"stack"in P&&(this.stack=P.stack);this.errors=W;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.A($7b,Error);var TI=function(W){this.initialTeardown=W;this.closed=!1;this._teardowns=this._parentage=null};
_.J=TI.prototype;
_.J.unsubscribe=function(){if(!this.closed){this.closed=!0;var W=this._parentage;if(Array.isArray(W))for(var P=_.n(W),x=P.next();!x.done;x=P.next())x.value.remove(this);else W==null||W.remove(this);P=this.initialTeardown;if(l5(P))try{P()}catch(B){var I=B instanceof $7b?B.errors:[B]}var O=this._teardowns;if(O)for(this._teardowns=null,P=_.n(O),x=P.next();!x.done;x=P.next()){x=x.value;try{l5(x)?x():x.unsubscribe()}catch(B){x=void 0,I=(x=I)!=null?x:[],B instanceof $7b?I=[].concat(_.ju(I),_.ju(B.errors)):
I.push(B)}}if(I)throw new $7b(I);}};
_.J.add=function(W){if(W&&W!==this)if(this.closed)l5(W)?W():W.unsubscribe();else{if(W instanceof TI){if(W.closed||W._hasParent(this))return;W._addParent(this)}var P;(this._teardowns=(P=this._teardowns)!=null?P:[]).push(W)}};
_.J._hasParent=function(W){var P=this._parentage;return P===W||Array.isArray(P)&&P.includes(W)};
_.J._addParent=function(W){var P=this._parentage;this._parentage=Array.isArray(P)?(P.push(W),P):P?[P,W]:W};
_.J._removeParent=function(W){var P=this._parentage;P===W?this._parentage=null:Array.isArray(P)&&NE(P,W)};
_.J.remove=function(W){var P=this._teardowns;P&&NE(P,W);W instanceof TI&&W._removeParent(this)};
var wd3=new TI;wd3.closed=!0;TI.JSC$6974_EMPTY=wd3;var zXt=function(){setTimeout.apply(null,_.ju(_.tH.apply(0,arguments)))};var OF=function(W){TI.call(this);this.JSC$6979_isStopped=!1;this.destination=W instanceof OF?W:new J6(!W||l5(W)?{next:W!=null?W:void 0}:W);A2S(W)&&W.add(this)};
_.A(OF,TI);OF.JSC$6974_EMPTY=TI.JSC$6974_EMPTY;OF.create=function(W,P,x){return new Bx(W,P,x)};
_.J=OF.prototype;_.J.next=function(W){this.JSC$6979_isStopped||this._next(W)};
_.J.error=function(W){this.JSC$6979_isStopped||(this.JSC$6979_isStopped=!0,this._error(W))};
_.J.complete=function(){this.JSC$6979_isStopped||(this.JSC$6979_isStopped=!0,this._complete())};
_.J.unsubscribe=function(){this.closed||(this.JSC$6979_isStopped=!0,TI.prototype.unsubscribe.call(this))};
_.J._next=function(W){this.destination.next(W)};
_.J._error=function(W){this.destination.error(W);this.unsubscribe()};
_.J._complete=function(){this.destination.complete();this.unsubscribe()};
var J6=function(W){this.partialObserver=W};
J6.prototype.next=function(W){var P=this.partialObserver;if(P.next)try{P.next(W)}catch(x){R$(x)}};
J6.prototype.error=function(W){var P=this.partialObserver;if(P.error)try{P.error(W)}catch(x){R$(x)}else R$(W)};
J6.prototype.complete=function(){var W=this.partialObserver;if(W.complete)try{W.complete()}catch(P){R$(P)}};
var Bx=function(W,P,x){OF.call(this);var I;l5(W)||!W?I={next:W!=null?W:void 0,error:P!=null?P:void 0,complete:x!=null?x:void 0}:I=W;this.destination=new J6(I)};
_.A(Bx,OF);Bx.JSC$6974_EMPTY=OF.JSC$6974_EMPTY;Bx.create=OF.create;var Pr=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Lz=function(W){W&&(this._subscribe=W)};
_.J=Lz.prototype;_.J.lift=function(W){var P=new Lz;P.source=this;P.operator=W;return P};
_.J.subscribe=function(W,P,x){W=W&&W instanceof OF||W&&l5(W.next)&&l5(W.error)&&l5(W.complete)&&A2S(W)?W:new Bx(W,P,x);P=this.operator;x=this.source;W.add(P?P.call(W,x):x?this._subscribe(W):this._trySubscribe(W));return W};
_.J._trySubscribe=function(W){try{return this._subscribe(W)}catch(P){W.error(P)}};
_.J.forEach=function(W,P){var x=this;P=ETG(P);return new P(function(I,O){var B=x.subscribe(function(Y){try{W(Y)}catch(K){O(K),B==null||B.unsubscribe()}},O,I)})};
_.J._subscribe=function(W){var P;return(P=this.source)==null?void 0:P.subscribe(W)};
Lz.prototype[Pr]=function(){return this};
Lz.prototype.pipe=function(){var W=_.tH.apply(0,arguments);return W.length?Gk7(W)(this):this};
Lz.create=function(W){return new Lz(W)};var hxc=function(){var W=Error.call(this,"object unsubscribed");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.A(hxc,Error);var IQ=function(){this.observers=[];this.hasError=this.JSC$6995_isStopped=this.closed=!1;this.thrownError=null};
_.A(IQ,Lz);_.J=IQ.prototype;_.J.lift=function(W){var P=new nd(this,this);P.operator=W;return P};
_.J._throwIfClosed=function(){if(this.closed)throw new hxc;};
_.J.next=function(W){this._throwIfClosed();if(!this.JSC$6995_isStopped){var P=this.observers.slice();P=_.n(P);for(var x=P.next();!x.done;x=P.next())x.value.next(W)}};
_.J.error=function(W){this._throwIfClosed();if(!this.JSC$6995_isStopped){this.hasError=this.JSC$6995_isStopped=!0;this.thrownError=W;for(var P=this.observers;P.length;)P.shift().error(W)}};
_.J.complete=function(){this._throwIfClosed();if(!this.JSC$6995_isStopped){this.JSC$6995_isStopped=!0;for(var W=this.observers;W.length;)W.shift().complete()}};
_.J.unsubscribe=function(){this.JSC$6995_isStopped=this.closed=!0;this.observers=null};
_.J._trySubscribe=function(W){this._throwIfClosed();return Lz.prototype._trySubscribe.call(this,W)};
_.J._subscribe=function(W){this._throwIfClosed();this._checkFinalizedStatuses(W);return this._innerSubscribe(W)};
_.J._innerSubscribe=function(W){var P=this,x=this.JSC$6995_isStopped,I=this.observers;return this.hasError||x?TI.JSC$6974_EMPTY:(I.push(W),new TI(function(){return NE(P.observers,W)}))};
_.J._checkFinalizedStatuses=function(W){var P=this.thrownError,x=this.JSC$6995_isStopped;this.hasError?W.error(P):x&&W.complete()};
IQ.create=function(W,P){return new nd(W,P)};
var nd=function(W,P){IQ.call(this);this.destination=W;this.source=P};
_.A(nd,IQ);nd.create=IQ.create;nd.prototype.next=function(W){var P,x;(P=this.destination)==null||(x=P.next)==null||x.call(P,W)};
nd.prototype.error=function(W){var P,x;(P=this.destination)==null||(x=P.error)==null||x.call(P,W)};
nd.prototype.complete=function(){var W,P;(W=this.destination)==null||(P=W.complete)==null||P.call(W)};
nd.prototype._subscribe=function(W){var P,x;return(x=(P=this.source)==null?void 0:P.subscribe(W))!=null?x:TI.JSC$6974_EMPTY};var H9=function(W){IQ.call(this);this._value=W};
_.A(H9,IQ);H9.create=IQ.create;H9.prototype._subscribe=function(W){var P=IQ.prototype._subscribe.call(this,W);!P.closed&&W.next(this._value);return P};
H9.prototype.getValue=function(){var W=this.thrownError,P=this._value;if(this.hasError)throw W;this._throwIfClosed();return P};
H9.prototype.next=function(W){IQ.prototype.next.call(this,this._value=W)};
_.N1.Object.defineProperties(H9.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var ET=new Lz(function(W){return W.complete()});var Wr=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var eXd=function(W){return W&&typeof W.length==="number"&&typeof W!=="function"};var HmP={now:function(){return(HmP.delegate||Date).now()},
delegate:void 0};var Xb=function(W,P,x){W=W===void 0?Infinity:W;P=P===void 0?Infinity:P;x=x===void 0?HmP:x;IQ.call(this);this.JSC$7017_bufferSize=W;this.windowTime=P;this.timestampProvider=x;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=P===Infinity;this.JSC$7017_bufferSize=Math.max(1,W);this.windowTime=Math.max(1,P)};
_.A(Xb,IQ);Xb.create=IQ.create;Xb.prototype.next=function(W){var P=this.buffer,x=this.infiniteTimeWindow,I=this.timestampProvider,O=this.windowTime;this.JSC$6995_isStopped||(P.push(W),!x&&P.push(I.now()+O));exp(this);IQ.prototype.next.call(this,W)};
Xb.prototype._subscribe=function(W){this._throwIfClosed();exp(this);for(var P=this._innerSubscribe(W),x=this.infiniteTimeWindow,I=this.buffer.slice(),O=0;O<I.length&&!W.closed;O+=x?1:2)W.next(I[O]);this._checkFinalizedStatuses(W);return P};
var exp=function(W){var P=W.JSC$7017_bufferSize,x=W.timestampProvider,I=W.buffer;W=W.infiniteTimeWindow;var O=(W?1:2)*P;P<Infinity&&O<I.length&&I.splice(0,I.length-O);if(!W){P=x.now();x=0;for(W=1;W<I.length&&I[W]<=P;W+=2)x=W;x&&I.splice(0,x+1)}};var aAc=function(W,P){P=P===void 0?cmA:P;this.schedulerActionCtor=W;this.now=P};
aAc.prototype.schedule=function(W,P,x){P=P===void 0?0:P;return(new this.schedulerActionCtor(this,W)).schedule(x,P)};
var cmA=HmP.now;var GIo=function(){var W=Error.call(this,"no elements in sequence");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.A(GIo,Error);var vr=function(W,P,x,I,O){OF.call(this,W);this.onUnsubscribe=O;P&&(this._next=function(B){try{P(B)}catch(Y){this.destination.error(Y)}});
x&&(this._error=function(B){try{x(B)}catch(Y){this.destination.error(Y)}this.unsubscribe()});
I&&(this._complete=function(){try{I()}catch(B){this.destination.error(B)}this.unsubscribe()})};
_.A(vr,OF);vr.JSC$6974_EMPTY=OF.JSC$6974_EMPTY;vr.create=OF.create;vr.prototype.unsubscribe=function(){var W;this.closed||(W=this.onUnsubscribe)!=null&&W.call(this);OF.prototype.unsubscribe.call(this)};var kD=function(W,P){this.source=W;this.subjectFactory=P;this._subject=null;this._refCount=0;this._connection=null};
_.A(kD,Lz);kD.create=Lz.create;kD.prototype._subscribe=function(W){return bml(this).subscribe(W)};
var bml=function(W){var P=W._subject;if(!P||P.JSC$6995_isStopped)W._subject=W.subjectFactory();return W._subject};
kD.prototype._teardown=function(){this._refCount=0;var W=this._connection;this._subject=this._connection=null;W==null||W.unsubscribe()};
kD.prototype.connect=function(){var W=this,P=this._connection;if(!P){P=this._connection=new TI;var x=bml(this);P.add(this.source.subscribe(new vr(x,void 0,function(I){W._teardown();x.error(I)},function(){W._teardown();
x.complete()},function(){return W._teardown()})));
P.closed&&(this._connection=null,P=TI.JSC$6974_EMPTY)}return P};var ixS=Array.isArray;var Fux=Array.isArray,kRP=Object,qiC=kRP.getPrototypeOf,LuA=kRP.prototype,WyG=kRP.keys;var Cl=function(W,P,x){OF.call(this,W);this._next=P;this.shouldComplete=x};
_.A(Cl,OF);Cl.JSC$6974_EMPTY=OF.JSC$6974_EMPTY;Cl.create=OF.create;Cl.prototype._complete=function(){this.shouldComplete()?OF.prototype._complete.call(this):this.unsubscribe()};var Y08=["addListener","removeListener"],nHC=["addEventListener","removeEventListener"],KyS=["on","off"];var Y_=function(){TI.call(this)};
_.A(Y_,TI);Y_.JSC$6974_EMPTY=TI.JSC$6974_EMPTY;Y_.prototype.schedule=function(){return this};var U7P=function(W,P){return setInterval.apply(null,[W,P].concat(_.ju(_.tH.apply(2,arguments))))};var yi=function(W,P){TI.call(this);this.scheduler=W;this.work=P;this.pending=!1};
_.A(yi,Y_);yi.JSC$6974_EMPTY=Y_.JSC$6974_EMPTY;yi.prototype.schedule=function(W,P){P=P===void 0?0:P;if(this.closed)return this;this.state=W;W=this.id;var x=this.scheduler;W!=null&&(this.id=Xdi(this,W,P));this.pending=!0;this.delay=P;this.id=this.id||this.requestAsyncId(x,this.id,P);return this};
yi.prototype.requestAsyncId=function(W,P,x){x=x===void 0?0:x;return U7P(W.flush.bind(W,this),x)};
var Xdi=function(W,P,x){x=x===void 0?0:x;if(x!=null&&W.delay===x&&W.pending===!1)return P;clearInterval(P)};
yi.prototype.execute=function(W,P){if(this.closed)return Error("la");this.pending=!1;if(W=this._execute(W,P))return W;this.pending===!1&&this.id!=null&&(this.id=Xdi(this,this.id,null))};
yi.prototype._execute=function(W){var P=!1;try{this.work(W)}catch(I){P=!0;var x=!!I&&I||Error(I)}if(P)return this.unsubscribe(),x};
yi.prototype.unsubscribe=function(){if(!this.closed){var W=this.id,P=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;NE(P,this);W!=null&&(this.id=Xdi(this,W,null));this.delay=null;Y_.prototype.unsubscribe.call(this)}};var fAM=function(W,P){P=P===void 0?cmA:P;aAc.call(this,W,P);this.actions=[];this.active=!1;this.scheduled=void 0};
_.A(fAM,aAc);fAM.prototype.flush=function(W){var P=this.actions;if(this.active)P.push(W);else{var x;this.active=!0;do if(x=W.execute(W.state,W.delay))break;while(W=P.shift());this.active=!1;if(x){for(;W=P.shift();)W.unsubscribe();throw x;}}};var V7=new Lz(r9);var Zz7=Array.isArray;var Kd=function(W,P){yi.call(this,W,P);this.scheduler=W;this.work=P};
_.A(Kd,yi);Kd.JSC$6974_EMPTY=yi.JSC$6974_EMPTY;Kd.prototype.schedule=function(W,P){P=P===void 0?0:P;if(P>0)return yi.prototype.schedule.call(this,W,P);this.delay=P;this.state=W;this.scheduler.flush(this);return this};
Kd.prototype.execute=function(W,P){return P>0||this.closed?yi.prototype.execute.call(this,W,P):this._execute(W,P)};
Kd.prototype.requestAsyncId=function(W,P,x){x=x===void 0?0:x;return x!=null&&x>0||x==null&&this.delay>0?yi.prototype.requestAsyncId.call(this,W,P,x):W.flush(this)};var NSd=function(){fAM.apply(this,arguments)};
_.A(NSd,fAM);var TDA=new NSd(Kd);var lAM=function(){this.performanceMonitor=new IAl;this.queue=new Omi;this.internalSymbol=Symbol();this.debugNames=new M8c};
lAM.prototype.getOnBackgrounded=function(){return V7};
_.N1.Object.defineProperties(lAM.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Z9=function(W,P){P=Error.call(this,P?W+": "+P:String(W));this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=W;this.__proto__=Z9.prototype;this.name=String(W)};
_.A(Z9,Error);var tl=function(W){Z9.call(this,1E3,'sfr:"'+W+'"');this.measurementStrategyFailureReason=W;this.__proto__=tl.prototype};
_.A(tl,Z9);var p5=function(){Z9.call(this,1003);this.__proto__=p5.prototype};
_.A(p5,Z9);var o_=function(){Z9.call(this,1009);this.__proto__=o_.prototype};
_.A(o_,Z9);var TSc=function(){Z9.call(this,1011);this.__proto__=TSc.prototype};
_.A(TSc,Z9);var rmd=function(){Z9.call(this,1007);this.__proto__=p5.prototype};
_.A(rmd,Z9);var uz=function(W){Z9.call(this,1004,String(W));this.inputObservableIndex=W;this.__proto__=uz.prototype};
_.A(uz,Z9);var au8=function(W){Z9.call(this,1010,W);this.__proto__=dJ.prototype};
_.A(au8,Z9);var dJ=function(W){Z9.call(this,1005,W);this.__proto__=dJ.prototype};
_.A(dJ,Z9);var imk=function(W){var P=_.tH.apply(1,arguments),x=this;this.orderedFactories=[];this.orderedFactories.push(W);P.forEach(function(I){x.orderedFactories.push(I)})};
imk.prototype.isSupported=function(W){return this.orderedFactories.some(function(P){return P.isSupported(W)})};
imk.prototype.makeBeacon=function(W,P){for(var x=0;x<this.orderedFactories.length;x++)if(this.orderedFactories[x].isSupported(P))return this.orderedFactories[x].makeBeacon(W,P);throw new o_;};var QQm=Symbol("ma"),RxZ=Symbol("na"),$D=function(W,P){this.value=W;this.timeline=P},Mi=function(W,P){if(P.timeline!==W.timeline)throw new rmd;
return W.value-P.value};
_.J=$D.prototype;_.J.equals=function(W){return Mi(this,W)===0};
_.J.maximum=function(W){if(W.timeline!==this.timeline)throw new rmd;return this.value>=W.value?this:W};
_.J.round=function(){return new $D(Math.round(this.value),this.timeline)};
_.J.add=function(W){return new $D(this.value+W,this.timeline)};
_.J.toString=function(){return String(this.value)};var SA=function(W,P){this.context=W;this.JSC$7101_pinger=P};
SA.prototype.isSupported=function(W){return this.JSC$7101_pinger.isSupported(W)};
SA.prototype.makeBeacon=function(W,P){if(!this.isSupported(P))throw new o_;return new uY(this.context,this.JSC$7101_pinger,P!=null?P:void 0,W)};
var uY=function(W,P,x,I){var O=this;this.JSC$7107_pinger=P;this.properties=x;this.url=I;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var B;this.method=(B=x==null?void 0:x.beaconMethod)!=null?B:"GET";this.backgroundedSubscription=W.getOnBackgrounded().subscribe(function(){O.sendNow()})};
uY.prototype.deactivate=function(){this.internalIsPending=!1};
uY.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7107_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var W,P;this.JSC$7107_pinger.pingWithHeadersAndBody((W=this.properties)!=null?W:{},this.customHeaders,(P=this.body)!=null?P:"",this.url)}else this.JSC$7107_pinger.ping(this.url);this.internalIsPending=!1}catch(x){}else this.internalIsPending=!1};
uY.prototype.setHeader=function(W){this.customHeaders.set(W,void 0)};
_.N1.Object.defineProperties(uY.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var qUp=function(){for(var W=_.n(_.tH.apply(0,arguments)),P=W.next();!P.done;P=W.next())if(P=P.value,P.available()){this.timeProvider=P;return}this.timeProvider=new FRb};
_.J=qUp.prototype;_.J.available=function(){return this.timeProvider.available()};
_.J.now=function(){return this.timeProvider.now()};
_.J.setTimeout=function(W,P){return this.timeProvider.setTimeout(W,P)};
_.J.clearTimeout=function(W){this.timeProvider.clearTimeout(W)};
_.J.interval=function(W,P){var x=this.intervalObservable(W).subscribe(P);return function(){return void x.unsubscribe()}};
_.J.intervalObservable=function(W){return this.timeProvider.intervalObservable(W)};
_.N1.Object.defineProperties(qUp.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var FRb=function(){this.timeline=Symbol()};
_.J=FRb.prototype;_.J.available=function(){return!1};
_.J.now=function(){return new $D(0,this.timeline)};
_.J.setTimeout=function(){return 0};
_.J.clearTimeout=function(){};
_.J.interval=function(){return function(){}};
_.J.intervalObservable=function(){return V7};var dN=function(W,P){this.intrinsicFunctionNamespace=W;this.performanceMonitor=P};
_.J=dN.prototype;_.J.setTimeout=function(W,P){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,W),P)};
_.J.clearTimeout=function(W){this.intrinsicFunctionNamespace.clearTimeout(W)};
_.J.interval=function(W,P){var x=this.intervalObservable(W).subscribe(P);return function(){return void x.unsubscribe()}};
_.J.intervalObservable=function(W){var P=this;return new Lz(function(x){var I=0,O=P.intrinsicFunctionNamespace.setInterval(function(){x.next(I++)},W);
return function(){P.intrinsicFunctionNamespace.clearInterval(O)}})};
_.J.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var LRi=function(W,P){dN.call(this,W,P);this.timeline=RxZ};
_.A(LRi,dN);LRi.prototype.now=function(){return new $D(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
LRi.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&dN.prototype.available.call(this)};var WPW=function(W,P){dN.call(this,W,P);this.timeline=QQm};
_.A(WPW,dN);WPW.prototype.now=function(){return new $D(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
WPW.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&dN.prototype.available.call(this)};var xbZ=function(W){this.context=W;if(Pp3===void 0)a:{var P,x,I=(P=W.global)==null?void 0:(x=P.document)==null?void 0:x.createElement("meta");if(I)try{I.httpEquiv="origin-trial";I.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";W.global.document.head.append(I);Pp3=I;break a}catch(O){}Pp3=void 0}},
Pp3;
xbZ.prototype.isSupported=function(W){return p6x(this.context)!==void 0&&!(W==null||!W.endOfSession)&&!sF(this.context)&&!(W==null?0:W.attributionEnabled)&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
xbZ.prototype.makeBeacon=function(W,P){if(!this.isSupported(P))throw new o_;return new vx(this.context,W,P)};
var vx=function(W,P,x){this.context=W;this.properties=x;this.JSC$7134_urlWithoutToken=P;var I;this.beaconMethod=(I=x==null?void 0:x.beaconMethod)!=null?I:"GET";W=p6x(this.context);if(W===void 0)throw Error();this.fetchLater=W;I3k(this,OMZ(this))},I3k=function(W,P){W.beaconResult&&W.beaconResult.activated||(W.beaconAbort=new AbortController,W.beaconResult=W.fetchLater(P,{method:W.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:W.beaconAbort.signal,activateAfter:96E4}))},OMZ=function(W){W=W.JSC$7134_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"flapi=1"};
vx.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
vx.prototype.sendNow=function(){};
vx.prototype.setHeader=function(){};
_.N1.Object.defineProperties(vx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7134_urlWithoutToken},
set:function(W){this.JSC$7134_urlWithoutToken=W;W=OMZ(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);I3k(this,W)}},
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 Jwb=function(W){this.context=W};
Jwb.prototype.isSupported=function(){return!sF(this.context)&&!!this.context.global.fetch};
Jwb.prototype.ping=function(){var W=this;return g_.apply(null,_.ju(_.tH.apply(0,arguments).map(function(P){return It(W.context.global.fetch(P,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Vn(function(x){return x.status===200}))}))).pipe(EHt(function(P){return P}),DEC())};
Jwb.prototype.pingWithHeadersAndBody=function(W,P,x){for(var I=_.tH.apply(3,arguments),O=this,B=new Headers,Y=_.n(P.entries()),K=Y.next();!K.done;K=Y.next()){var Z=_.n(K.value);K=Z.next().value;Z=Z.next().value;B.set(K,Z)}var d,v=(d=W.keepAlive)!=null?d:!1;g_.apply(null,_.ju(I.map(function(m){return It(O.context.global.fetch(m,Object.assign({},{method:String(W.beaconMethod),cache:"no-cache"},v?{keepalive:!0}:{},{mode:"no-cors",headers:B,body:x}))).pipe(Vn(function(t){return t.status===200}))}))).pipe(EHt(function(m){return m}),
DEC())};var Bkc,QaC;_.me=function(){};
_.UU=function(W){return W};
Bkc=function(W){var P=P||0;return function(){return W.apply(this,Array.prototype.slice.call(arguments,0,P))}};
_.Vi=function(W){var P=!1,x;return function(){P||(x=W(),P=!0);return x}};
_.t6=function(W,P){var x=0;return function(I){_.xW.clearTimeout(x);var O=arguments;x=_.xW.setTimeout(function(){W.apply(void 0,O)},P)}};
QaC=function(W,P){var x=0,I=!1,O=[],B=function(){x=0;I&&(I=!1,Y())},Y=function(){x=_.xW.setTimeout(B,P);
var K=O;O=[];W.apply(void 0,K)};
return function(K){O=arguments;x?I=!0:Y()}};var Yc3=function(){return vd&&VG?VG.mobile:!niM()&&(QG("iPod")||QG("iPhone")||QG("Android")||QG("IEMobile"))},niM=function(){return vd&&VG?!VG.mobile&&(QG("iPad")||QG("Android")||QG("Silk")):QG("iPad")||QG("Android")&&!QG("Mobile")||QG("Silk")};var ywP;_.jU={};ywP="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.jU.add=function(W,P,x){if(W!==null&&P in W)throw Error("pa`"+P);W[P]=x};
_.jU.clear=function(W){for(var P in W)delete W[P]};
_.jU.clone=function(W){var P={},x;for(x in W)P[x]=W[x];return P};
_.jU.contains=function(W,P){return w6m(W,P)};
_.jU.containsKey=function(W,P){return W!==null&&P in W};
_.jU.containsValue=w6m;_.jU.create=e5o;_.jU.createImmutableView=function(W){var P=W;Object.isFrozen&&!Object.isFrozen(W)&&(P=Object.create(W),Object.freeze(P));return P};
_.jU.createSet=cHG;_.jU.equals=function(W,P){for(var x in W)if(!(x in P)||W[x]!==P[x])return!1;for(var I in P)if(!(I in W))return!1;return!0};
_.jU.every=function(W,P,x){for(var I in W)if(!P.call(x,W[I],I,W))return!1;return!0};
_.jU.extend=function(W,P){for(var x,I,O=1;O<arguments.length;O++){I=arguments[O];for(x in I)W[x]=I[x];for(var B=0;B<ywP.length;B++)x=ywP[B],Object.prototype.hasOwnProperty.call(I,x)&&(W[x]=I[x])}};
_.jU.filter=function(W,P,x){var I={},O;for(O in W)P.call(x,W[O],O,W)&&(I[O]=W[O]);return I};
_.jU.findKey=h5G;_.jU.findValue=function(W,P,x){return(P=h5G(W,P,x))&&W[P]};
_.jU.forEach=function(W,P,x){for(var I in W)P.call(x,W[I],I,W)};
_.jU.get=function(W,P,x){return W!==null&&P in W?W[P]:x};
_.jU.getAllPropertyNames=function(W,P,x){if(!W)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return $Em(W);for(var I={};W&&(W!==Object.prototype||P)&&(W!==Function.prototype||x);){for(var O=Object.getOwnPropertyNames(W),B=0;B<O.length;B++)I[O[B]]=!0;W=Object.getPrototypeOf(W)}return $Em(I)};
_.jU.getAnyKey=function(W){for(var P in W)return P};
_.jU.getAnyValue=function(W){for(var P in W)return W[P]};
_.jU.getCount=function(W){var P=0,x;for(x in W)P++;return P};
_.jU.getKeys=$Em;_.jU.getSuperClass=function(W){return(W=Object.getPrototypeOf(W.prototype))&&W.constructor};
_.jU.getValueByKeys=function(W,P){var x=_.xi(P),I=x?P:arguments;for(x=x?0:1;x<I.length;x++){if(W==null)return;W=W[I[x]]}return W};
_.jU.getValues=function(W){var P=[],x=0,I;for(I in W)P[x++]=W[I];return P};
_.jU.isEmpty=function(W){for(var P in W)return!1;return!0};
_.jU.isImmutableView=function(W){return!!Object.isFrozen&&Object.isFrozen(W)};
_.jU.map=function(W,P,x){var I={},O;for(O in W)I[O]=P.call(x,W[O],O,W);return I};
_.jU.remove=function(W,P){var x;(x=P in W)&&delete W[P];return x};
_.jU.set=function(W,P,x){W[P]=x};
_.jU.setIfUndefined=function(W,P,x){return P in W?W[P]:W[P]=x};
_.jU.setWithReturnValueIfNotSet=function(W,P,x){if(P in W)return W[P];x=x();return W[P]=x};
_.jU.some=function(W,P,x){for(var I in W)if(P.call(x,W[I],I,W))return!0;return!1};
_.jU.transpose=function(W){var P={},x;for(x in W)P[W[x]]=x;return P};
_.jU.unsafeClone=Hzm;var pd=function(W,P,x,I,O){this.allowedElements=W;this.elementPolicies=P;this.allowedGlobalAttributes=x;this.globalAttributePolicies=I;this.globallyAllowedAttributePrefixes=O},KPc=function(W,P,x){x=W.elementPolicies.get(x);
return(x==null?0:x.has(P))?x.get(P):W.allowedGlobalAttributes.has(P)?{policyAction:1}:(x=W.globalAttributePolicies.get(P))?x:W.globallyAllowedAttributePrefixes&&[].concat(_.ju(W.globallyAllowedAttributePrefixes)).some(function(I){return P.indexOf(I)===0})?{policyAction:1}:{policyAction:0}};var ZMZ="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(" "),
oip=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],ScM="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
ulW=[["dir",{policyAction:3,conditions:B6(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:B6(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:B6(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:B6(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],dbP=new pd(new Set(ZMZ),new Map(oip),new Set(ScM),new Map(ulW)),sWA=new pd(new Set(ZMZ.concat(["BUTTON",
"INPUT"])),new Map(oip),new Set(B6(function(){return ScM.concat(["class","id","name"])})),new Map(B6(function(){return ulW.concat([["style",
{policyAction:1}]])})));var vik,mbd,tzM;vik=function(W,P,x,I){this.JSC$7194_sanitizerTable=W;this.styleElementSanitizer=P;this.styleAttributeSanitizer=x;this.JSC$7194_resourceUrlPolicy=I;this.changes=[]};
_.VzP=function(W,P){var x=document.implementation.createHTMLDocument("");W=mbd(W,P,x);x=x.body;x.appendChild(W);x=(new XMLSerializer).serializeToString(x);x=x.slice(x.indexOf(">")+1,x.lastIndexOf("</"));return GI(x)};
mbd=function(W,P,x){P=bzm(P,x);P=document.createTreeWalker(P,5,function(K){if(K.nodeType===3)K=1;else if(UEU(K))if(K=kIm(K),K===null)K=2;else{var Z=W.JSC$7194_sanitizerTable;K=K!=="FORM"&&(Z.allowedElements.has(K)||Z.elementPolicies.has(K))?1:2}else K=2;return K});
for(var I=P.nextNode(),O=x.createDocumentFragment(),B=O;I!==null;){var Y=void 0;if(I.nodeType===3)W.styleElementSanitizer&&B.nodeName==="STYLE"?(I=W.styleElementSanitizer(I.data),Y=W.createTextNode(I)):Y=W.createTextNode(I.data);else if(UEU(I))Y=tzM(W,I,x);else throw Error("da");B.appendChild(Y);if(I=P.firstChild())B=Y;else for(;!(I=P.nextSibling())&&(I=P.parentNode());)B=B.parentNode}return O};
vik.prototype.createTextNode=function(W){return document.createTextNode(W)};
tzM=function(W,P,x){var I,O=kIm(P);x=x.createElement(O);P=P.attributes;for(var B=_.n(P),Y=B.next();!Y.done;Y=B.next()){var K=Y.value;Y=K.name;K=K.value;var Z=KPc(W.JSC$7194_sanitizerTable,Y,O);a:{if(I=Z.conditions){I=_.n(I);for(var d=I.next();!d.done;d=I.next()){var v=_.n(d.value);d=v.next().value;v=v.next().value;var m=void 0;if((d=(m=P.getNamedItem(d))==null?void 0:m.value)&&!v.has(d)){I=!1;break a}}}I=!0}if(I)switch(Z.policyAction){case 1:Ll(x,Y,K);break;case 2:Z=_.sKm(K);K=Z!==void 0&&pdc.indexOf(Z.toLowerCase())!==
-1?K:"about:invalid#zClosurez";Ll(x,Y,K);break;case 3:Ll(x,Y,K.toLowerCase());break;case 4:W.styleAttributeSanitizer?(K=W.styleAttributeSanitizer(K),Ll(x,Y,K)):Ll(x,Y,K);break;case 5:W.JSC$7194_resourceUrlPolicy?(Z={type:2,attributeName:Y,elementName:O},K=aH8(K),(K=W.JSC$7194_resourceUrlPolicy(K,Z))&&Ll(x,Y,K.toString())):Ll(x,Y,K);break;case 6:if(W.JSC$7194_resourceUrlPolicy){Z={type:2,attributeName:Y,elementName:O};I=[];K=_.n(K.split(","));for(d=K.next();!d.done;d=K.next())v=_.n(d.value.trim().split(/\s+/,
2)),d=v.next().value,v=v.next().value,I.push({url:d,descriptor:v});K={parts:[]};I=_.n(I);for(d=I.next();!d.done;d=I.next())d=d.value,v=aH8(d.url),(v=W.JSC$7194_resourceUrlPolicy(v,Z))&&K.parts.push({url:v.toString(),descriptor:d.descriptor});Ll(x,Y,X6x(K))}else Ll(x,Y,K)}}return x};
_.pml=B6(function(){return new vik(dbP)});
_.jWP=B6(function(){return new vik(sWA)});var QWd=function(){this.calledBuild=!1;this.JSC$7206_sanitizerTable=dbP},Cpd=function(){QWd.apply(this,arguments)};
_.A(Cpd,QWd);Cpd.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new vik(this.JSC$7206_sanitizerTable,void 0,void 0,this.JSC$7206_resourceUrlPolicy)};var Awz=/[^#]*/;var Jzo=function(W){try{return!!W&&W.location.href!=null&&Eh(W,"foo")}catch(P){return!1}},GAP=function(W){var P=zdz;
if(P)for(var x in P)Object.prototype.hasOwnProperty.call(P,x)&&W(P[x],x,P)},Eim=function(){var W=[];
GAP(function(P){W.push(P)});
return W},zdz={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"},giM=_.Vi(function(){return Eim()}),Mzw=function(){var W=DbZ("IFRAME"),
P={};
_.bP(giM(),function(x){W.sandbox&&W.sandbox.supports&&W.sandbox.supports(x)&&(P[x]=!0)});
return P},DbZ=function(W,P){P=P===void 0?document:P;
return P.createElement(String(W).toLowerCase())};var jA;_.HX=function(W,P,x){return Math.min(Math.max(W,P),x)};
jA=function(W,P,x){return W+x*(P-W)};_.Al=function(W,P){this.x=W!==void 0?W:0;this.y=P!==void 0?P:0};
_.J=_.Al.prototype;_.J.clone=function(){return new _.Al(this.x,this.y)};
_.J.equals=function(W){return W instanceof _.Al&&(this==W?!0:this&&W?this.x==W.x&&this.y==W.y:!1)};
_.J.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.J.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.J.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.J.translate=function(W,P){W instanceof _.Al?(this.x+=W.x,this.y+=W.y):(this.x+=Number(W),typeof P==="number"&&(this.y+=P));return this};
_.J.scale=function(W,P){this.x*=W;this.y*=typeof P==="number"?P:W;return this};_.y7=function(W,P){this.width=W;this.height=P};
_.J=_.y7.prototype;_.J.clone=function(){return new _.y7(this.width,this.height)};
_.J.area=function(){return this.width*this.height};
_.J.aspectRatio=function(){return this.width/this.height};
_.J.isEmpty=function(){return!this.area()};
_.J.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.J.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.J.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.J.scale=function(W,P){this.width*=W;this.height*=typeof P==="number"?P:W;return this};var we=function(W,P){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=W===AFd&&P||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=$bm};
we.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var wmk=function(W){return W instanceof we&&W.constructor===we&&W.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===$bm?W.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},$bm={},AFd={};
new we(AFd,"");var oQ,Sa,Cd,hd3,cwm,edP,zD,bMk,UbP,kAk,EF,XmM,RdA,iMp,rwW,FPm,qcz,LPm,WOd,fzo,P33,IBb,O2M,xLM,Qi;oQ=function(W){return W?new Qi(_.GD(W)):Li8||(Li8=new Qi)};
_.qx=function(W,P){return typeof P==="string"?W.getElementById(P):P};
Sa=function(W,P){return(P||document).getElementsByTagName(String(W))};
_.HMM=function(W){return hd3("yt-formatted-string","paper-input-input",W)};
Cd=function(W,P,x,I){W=I||W;return(P=P&&P!="*"?String(P).toUpperCase():"")||x?W.querySelectorAll(P+(x?"."+x:"")):W.getElementsByTagName("*")};
hd3=function(W,P,x){var I=document,O=W&&W!="*"?String(W).toUpperCase():"";return O||P?(x||I).querySelector(O+(P?"."+P:"")):Cd(I,W,P,x)[0]||null};
cwm=function(W,P){_.jU.forEach(P,function(x,I){I=="style"?W.style.cssText=x:I=="class"?W.className=x:I=="for"?W.htmlFor=x:edP.hasOwnProperty(I)?W.setAttribute(edP[I],x):_.Bd(I,"aria-")||_.Bd(I,"data-")?W.setAttribute(I,x):W[I]=x})};
edP={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"};_.K5=function(W){W=(W||window).document;W=W.compatMode=="CSS1Compat"?W.documentElement:W.body;return new _.y7(W.clientWidth,W.clientHeight)};
_.a3c=function(W){var P=_.A6(W);W=W.defaultView;return new _.Al(W.pageXOffset||P.scrollLeft,W.pageYOffset||P.scrollTop)};
_.A6=function(W){return W.scrollingElement?W.scrollingElement:_.Z2||W.compatMode!="CSS1Compat"?W.body||W.documentElement:W.documentElement};
zD=function(W){return W?W.defaultView:window};
_.zT=function(W,P,x){return bMk(document,arguments)};
bMk=function(W,P){var x=P[1],I=kAk(W,String(P[0]));x&&(typeof x==="string"?I.className=x:Array.isArray(x)?I.className=x.join(" "):cwm(I,x));P.length>2&&UbP(W,I,P,2);return I};
UbP=function(W,P,x,I){function O(K){K&&P.appendChild(typeof K==="string"?W.createTextNode(K):K)}
for(;I<x.length;I++){var B=x[I];if(!_.xi(B)||_.Jw(B)&&B.nodeType>0)O(B);else{a:{if(B&&typeof B.length=="number"){if(_.Jw(B)){var Y=typeof B.item=="function"||typeof B.item=="string";break a}if(typeof B==="function"){Y=typeof B.item=="function";break a}}Y=!1}_.bP(Y?_.Lm(B):B,O)}}};
_.ZV=function(W){return kAk(document,W)};
kAk=function(W,P){P=String(P);W.contentType==="application/xhtml+xml"&&(P=P.toLowerCase());return W.createElement(P)};
_.GT=function(){return document.createTextNode("\n")};
EF=function(W){if(W.nodeType!=1)return!1;switch(W.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};
XmM=function(W,P){UbP(_.GD(W),W,arguments,1)};
_.gN=function(W){for(var P;P=W.firstChild;)W.removeChild(P)};
_.D9=function(W,P){P.parentNode&&P.parentNode.insertBefore(W,P)};
_.MQ=function(W,P){P.parentNode&&P.parentNode.insertBefore(W,P.nextSibling)};
_.oE=function(W){return W&&W.parentNode?W.parentNode.removeChild(W):null};
_.f3c=function(W,P){var x=P.parentNode;x&&x.replaceChild(W,P)};
_.NkP=function(W){var P,x=W.parentNode;if(x&&x.nodeType!=11)if(W.removeNode)W.removeNode(!1);else{for(;P=W.firstChild;)x.insertBefore(P,W);_.oE(W)}};
_.$_=function(W){return W.children!=void 0?W.children:Array.prototype.filter.call(W.childNodes,function(P){return P.nodeType==1})};
_.Tkc=function(W){return W.nextElementSibling!==void 0?W.nextElementSibling:_.l3i(W.nextSibling,!0)};
_.l3i=function(W,P){for(;W&&W.nodeType!=1;)W=P?W.nextSibling:W.previousSibling;return W};
_.Nt=function(W){return _.Jw(W)&&W.nodeType==1};
_.wv=function(W,P){if(!W||!P)return!1;if(W.contains&&P.nodeType==1)return W==P||W.contains(P);if(typeof W.compareDocumentPosition!="undefined")return W==P||!!(W.compareDocumentPosition(P)&16);for(;P&&W!=P;)P=P.parentNode;return P==W};
RdA=function(W,P){if(W==P)return 0;if(W.compareDocumentPosition)return W.compareDocumentPosition(P)&2?1:-1;if("sourceIndex"in W||W.parentNode&&"sourceIndex"in W.parentNode){var x=W.nodeType==1,I=P.nodeType==1;if(x&&I)return W.sourceIndex-P.sourceIndex;var O=W.parentNode,B=P.parentNode;return O==B?rwW(W,P):!x&&_.wv(O,P)?-1*iMp(W,P):!I&&_.wv(B,W)?iMp(P,W):(x?W.sourceIndex:O.sourceIndex)-(I?P.sourceIndex:B.sourceIndex)}I=_.GD(W);x=I.createRange();x.selectNode(W);x.collapse(!0);W=I.createRange();W.selectNode(P);
W.collapse(!0);return x.compareBoundaryPoints(_.xW.Range.START_TO_END,W)};
iMp=function(W,P){var x=W.parentNode;if(x==P)return-1;for(;P.parentNode!=x;)P=P.parentNode;return rwW(P,W)};
rwW=function(W,P){for(;P=P.previousSibling;)if(P==W)return-1;return 1};
FPm=function(W){var P,x=arguments.length;if(!x)return null;if(x==1)return arguments[0];var I=[],O=Infinity;for(P=0;P<x;P++){for(var B=[],Y=arguments[P];Y;)B.unshift(Y),Y=Y.parentNode;I.push(B);O=Math.min(O,B.length)}B=null;for(P=0;P<O;P++){Y=I[0][P];for(var K=1;K<x;K++)if(Y!=I[K][P])return B;B=Y}return B};
_.GD=function(W){return W.nodeType==9?W:W.ownerDocument||W.document};
qcz=function(W){return W.contentDocument||W.contentWindow.document};
_.wN=function(W,P){if("textContent"in W)W.textContent=P;else if(W.nodeType==3)W.data=String(P);else if(W.firstChild&&W.firstChild.nodeType==3){for(;W.lastChild!=W.firstChild;)W.removeChild(W.lastChild);W.firstChild.data=String(P)}else _.gN(W),W.appendChild(_.GD(W).createTextNode(String(P)))};
LPm={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};WOd={IMG:" ",BR:"\n"};fzo=function(W){var P;W.tagName=="A"&&W.hasAttribute("href")||W.tagName=="INPUT"||W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="BUTTON"?P=!W.disabled&&(!W.hasAttribute("tabindex")||P33(W)):P=W.hasAttribute("tabindex")&&P33(W);return P};
P33=function(W){W=W.tabIndex;return typeof W==="number"&&W>=0&&W<32768};
IBb=function(W){var P=[];xLM(W,P,!0);W=P.join("");W=W.replace(/ \xAD /g," ").replace(/\xAD/g,"");W=W.replace(/\u200B/g,"");W=W.replace(/ +/g," ");W!=" "&&(W=W.replace(/^\s*/,""));return W};
O2M=function(W){var P=[];xLM(W,P,!1);return P.join("")};
xLM=function(W,P,x){if(!(W.nodeName in LPm))if(W.nodeType==3)x?P.push(String(W.nodeValue).replace(/(\r\n|\r|\n)/g,"")):P.push(W.nodeValue);else if(W.nodeName in WOd)P.push(WOd[W.nodeName]);else for(W=W.firstChild;W;)xLM(W,P,x),W=W.nextSibling};
_.J9A=function(W,P,x){if(!P&&!x)return null;var I=P?String(P).toUpperCase():null;return _.MT(W,function(O){return(!I||O.nodeName==I)&&(!x||typeof O.className==="string"&&_.N7(O.className.split(/\s+/),x))},!0)};
_.MT=function(W,P,x){W&&!x&&(W=W.parentNode);for(x=0;W;){if(P(W))return W;W=W.parentNode;x++}return null};
Qi=function(W){this.JSC$7231_document_=W||_.xW.document||document};
_.J=Qi.prototype;_.J.getElement=function(W){return _.qx(this.JSC$7231_document_,W)};
_.J.$=Qi.prototype.getElement;_.J.getElementsByTagName=function(W,P){return(P||this.JSC$7231_document_).getElementsByTagName(String(W))};
_.J.getElementsByTagNameAndClass=function(W,P,x){return Cd(this.JSC$7231_document_,W,P,x)};
_.J.$$=Qi.prototype.getElementsByTagNameAndClass;_.J.setProperties=cwm;_.J.JSC$7233_createDom=function(W,P,x){return bMk(this.JSC$7231_document_,arguments)};
_.J.createElement=function(W){return kAk(this.JSC$7231_document_,W)};
_.J.createTextNode=function(W){return this.JSC$7231_document_.createTextNode(String(W))};
_.J.getWindow=function(){return this.JSC$7231_document_.defaultView};
var ZC=function(W){return _.a3c(W.JSC$7231_document_)};
_.J=Qi.prototype;_.J.appendChild=function(W,P){W.appendChild(P)};
_.J.append=XmM;_.J.canHaveChildren=EF;_.J.removeNode=_.oE;_.J.getChildren=_.$_;_.J.contains=_.wv;_.J=xK.prototype;_.J.getWidth=function(){return this.right-this.left};
_.J.getHeight=function(){return this.bottom-this.top};
_.J.clone=function(){return new xK(this.top,this.right,this.bottom,this.left)};
_.J.contains=function(W){return this&&W?W instanceof xK?W.left>=this.left&&W.right<=this.right&&W.top>=this.top&&W.bottom<=this.bottom:W.x>=this.left&&W.x<=this.right&&W.y>=this.top&&W.y<=this.bottom:!1};
_.J.expand=function(W,P,x,I){_.Jw(W)?(this.top-=W.top,this.right+=W.right,this.bottom+=W.bottom,this.left-=W.left):(this.top-=W,this.right+=Number(P),this.bottom+=Number(x),this.left-=Number(I));return this};
_.J.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};
_.J.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};
_.J.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};
_.J.translate=function(W,P){W instanceof _.Al?(this.left+=W.x,this.right+=W.x,this.top+=W.y,this.bottom+=W.y):(this.left+=W,this.right+=W,typeof P==="number"&&(this.top+=P,this.bottom+=P));return this};
_.J.scale=function(W,P){P=typeof P==="number"?P:W;this.left*=W;this.right*=W;this.top*=P;this.bottom*=P;return this};var h6=function(W,P,x,I){this.left=W;this.top=P;this.width=x;this.height=I};
_.J=h6.prototype;_.J.clone=function(){return new h6(this.left,this.top,this.width,this.height)};
_.J.boundingRect=function(W){var P=Math.max(this.left+this.width,W.left+W.width),x=Math.max(this.top+this.height,W.top+W.height);this.left=Math.min(this.left,W.left);this.top=Math.min(this.top,W.top);this.width=P-this.left;this.height=x-this.top};
_.J.contains=function(W){return W instanceof _.Al?W.x>=this.left&&W.x<=this.left+this.width&&W.y>=this.top&&W.y<=this.top+this.height:this.left<=W.left&&this.left+this.width>=W.left+W.width&&this.top<=W.top&&this.top+this.height>=W.top+W.height};
_.J.distance=function(W){var P=W.x<this.left?this.left-W.x:Math.max(W.x-(this.left+this.width),0);W=W.y<this.top?this.top-W.y:Math.max(W.y-(this.top+this.height),0);return Math.sqrt(P*P+W*W)};
_.J.getSize=function(){return new _.y7(this.width,this.height)};
_.J.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};
_.J.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};
_.J.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};
_.J.translate=function(W,P){W instanceof _.Al?(this.left+=W.x,this.top+=W.y):(this.left+=W,typeof P==="number"&&(this.top+=P));return this};
_.J.scale=function(W,P){P=typeof P==="number"?P:W;this.left*=W;this.width*=W;this.top*=P;this.height*=P;return this};var n4M,cx,oK7,eA,Z2c,KOm,o4P,asd,Svm,dLw;_.Hx=function(W,P,x){if(typeof P==="string")(P=_.BMm(W,P))&&(W.style[P]=x);else for(var I in P){x=W;var O=P[I],B=_.BMm(x,I);B&&(x.style[B]=O)}};
n4M={};_.BMm=function(W,P){var x=n4M[P];if(!x){var I=_.Zt(P);x=I;W.style[I]===void 0&&(I=(_.Z2?"Webkit":_.KW?"Moz":null)+D7b(I),W.style[I]!==void 0&&(x=I));n4M[P]=x}return x};
_.Qt=function(W,P){var x=_.GD(W);return x.defaultView&&x.defaultView.getComputedStyle&&(W=x.defaultView.getComputedStyle(W,null))?W[P]||W.getPropertyValue(P)||"":""};
_.Mp=function(W,P){return _.Qt(W,P)||(W.currentStyle?W.currentStyle[P]:null)||W.style&&W.style[P]};
_.YvM=function(W){return _.Mp(W,"position")};
cx=function(W,P,x){if(P instanceof _.Al){var I=P.x;P=P.y}else I=P,P=x;W.style.left=eA(I,!1);W.style.top=eA(P,!1)};
oK7=function(W){try{return W.getBoundingClientRect()}catch(P){return{left:0,top:0,right:0,bottom:0}}};
_.gJ=function(W){var P=_.GD(W),x=new _.Al(0,0);if(W==(P?_.GD(P):document).documentElement)return x;W=oK7(W);P=ZC(oQ(P));x.x=W.left+P.x;x.y=W.top+P.y;return x};
_.y9M=function(W,P,x){if(P instanceof _.y7)x=P.height,P=P.width;else if(x==void 0)throw Error("sa");W.style.width=eA(P,!0);W.style.height=eA(x,!0)};
eA=function(W,P){typeof W=="number"&&(W=(P?Math.round(W):W)+"px");return W};
Z2c=function(W){return KOm(W)};
KOm=function(W){var P=o4P;if(_.Mp(W,"display")!="none")return P(W);var x=W.style,I=x.display,O=x.visibility,B=x.position;x.visibility="hidden";x.position="absolute";x.display="inline";W=P(W);x.display=I;x.position=B;x.visibility=O;return W};
o4P=function(W){var P=W.offsetWidth,x=W.offsetHeight,I=_.Z2&&!P&&!x;return(P===void 0||I)&&W.getBoundingClientRect?(W=oK7(W),new _.y7(W.right-W.left,W.bottom-W.top)):new _.y7(P,x)};
asd=function(W){var P=_.gJ(W);W=KOm(W);return new h6(P.x,P.y,W.width,W.height)};
Svm=function(W,P){W=W.style;"opacity"in W?W.opacity=P:"MozOpacity"in W?W.MozOpacity=P:"filter"in W&&(W.filter=P===""?"":"alpha(opacity="+Number(P)*100+")")};
_.bZ=function(W,P){W.style.display=P?"":"none"};
_.u6P=function(W){return"rtl"==_.Mp(W,"direction")};
dLw=function(W){var P=_.Qt(W,"marginLeft"),x=_.Qt(W,"marginRight"),I=_.Qt(W,"marginTop");W=_.Qt(W,"marginBottom");return new xK(parseFloat(I),parseFloat(x),parseFloat(W),parseFloat(P))};
_.sGw=function(W){var P=_.Qt(W,"borderLeftWidth"),x=_.Qt(W,"borderRightWidth"),I=_.Qt(W,"borderTopWidth");W=_.Qt(W,"borderBottomWidth");return new xK(parseFloat(I),parseFloat(x),parseFloat(W),parseFloat(P))};var a_=function(W){this.context=W};
a_.prototype.isSupported=function(W){return(W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="POST"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive)?!1:!sF(this.context)};
a_.prototype.ping=function(){var W=this;return Su(_.tH.apply(0,arguments).map(function(P){try{var x=W.context.global,I=!1;I=I===void 0?!1:I;x.google_image_requests||(x.google_image_requests=[]);var O=DbZ("IMG",x.document);I&&(O.attributionSrc="");O.src=P;x.google_image_requests.push(O);return!0}catch(B){return!1}}).every(function(P){return P}))};
a_.prototype.pingWithHeadersAndBody=function(W,P,x){this.ping.apply(this,_.ju(_.tH.apply(3,arguments)))};var v4p=function(W){this.context=W};
v4p.prototype.isSupported=function(W){return mLi&&!sF(this.context)&&N9o(this.context)!==void 0&&!(W==null?0:W.attributionEnabled)&&(W==null?void 0:W.beaconMethod)!=="POST"&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
v4p.prototype.makeBeacon=function(W,P){if(!this.isSupported(P))throw new o_;return new bY(this.context,W)};
var mLi=!1,bY=function(W,P){this.context=W;this.JSC$7252_urlWithoutToken=P;W=N9o(this.context);if(W===void 0)throw Error();this.wrappedBeacon=new W(VmM(this),{})},VmM=function(W){W=W.JSC$7252_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"pbapi=1"};
bY.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
bY.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
bY.prototype.setHeader=function(){};
_.N1.Object.defineProperties(bY.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7252_urlWithoutToken},
set:function(W){this.JSC$7252_urlWithoutToken=W;this.wrappedBeacon.setURL(VmM(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(W){if(W!=="GET")throw new o_;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var tmd=function(W){this.context=W};
tmd.prototype.isSupported=function(W){if((W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="GET"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive))return!1;var P;return!sF(this.context)&&((P=this.context.global.navigator)==null?void 0:P.sendBeacon)!==void 0};
tmd.prototype.ping=function(){var W=this;return Su(_.tH.apply(0,arguments).map(function(P){var x;return(x=W.context.global.navigator)==null?void 0:x.sendBeacon(P)}).every(function(P){return P}))};
tmd.prototype.pingWithHeadersAndBody=function(W,P,x){this.ping.apply(this,_.ju(_.tH.apply(3,arguments)))};var n5=function(W){this.value=W},XP=function(W,P){return Su(W.value).pipe(Jl(P))},NT=new n5(!1),CZt=new n5(!0);var $K=function(W){this.value=W;this.releasedSubject=new IQ};
$K.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.N1.Object.defineProperties($K.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7265_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Olx=["FRAME","IMG","IFRAME"],q0R=/^[01](px)?$/,Iuo=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},xix=function(){var W=new Iuo;
W.crossDomainLoadedDefault=!0;W.pendingImagesBlockLoad=!0;return W};var pyM=function(W,P){var x=Zlm(W);if(x)if(x.onCreativeLoad)x.onCreativeLoad(P);else{var I=P?[P]:[],O=function(B){for(var Y=0;Y<I.length;++Y)try{I[Y](1,B)}catch(K){}I={push:function(K){K(1,B)}}};
x.onCreativeLoad=function(B){I.push(B)};
x.setAttribute("data-creative-load-listener","");x.addEventListener("creativeLoad",function(B){O(B.detail)});
_.xW.addEventListener("message",function(B){KJC(x,O,B)})}};var k_=function(W,P){var x=this;this.global=W;this.parentContext=P;this.JSC$7276_onVisibilityChange=this.document?g_(Su(!0),GE(this.document,"visibilitychange")).pipe(w_(this.parentContext.performanceMonitor,748),Vn(function(){return x.getVisibilityState()}),at()):Su("visible");
this.document?GE(this.document,"DOMContentLoaded").pipe(w_(this.parentContext.performanceMonitor,739),cr(1)):Su(R5G("DOMContentLoaded"))},QEU=function(W){return W.document!==null&&W.document.visibilityState!==void 0};
k_.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
k_.prototype.querySelector=function(W){return this.document?this.document.querySelector(W):null};
k_.prototype.querySelectorAll=function(W){return this.document?_.Lm(this.document.querySelectorAll(W)):[]};
k_.prototype.elementFromPoint=function(W,P){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;W=this.document.elementFromPoint(W,P);return W===null?null:new $K(W)};
var ojU=function(W,P,x){x=x===void 0?!1:x;if(P.ref===void 0||!W.document)return Su(P).pipe(w_(W.parentContext.performanceMonitor,749));var I=new Xb(1),O=function(){I.next(P)};
x||pyM(P.ref,O);JoA(P.ref,O);return I.pipe(w_(W.parentContext.performanceMonitor,749),cr(1))};
_.N1.Object.defineProperties(k_.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Eh(this.global,"document")?this.global.document||null:null}}});var oDR=_.i4(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),STS=_.i4(["./reach_worklet.js"]),ubm=_.i4(["./reach_worklet.js"]),jGm=_.i4(["./reach_worklet.html"]),QGm=_.i4(["./reach_worklet.js"]),C3k=_.i4(["./reach_worklet.js"]);_.W9(jGm);_.W9(QGm);_.W9(C3k);var eU={left:0,top:0,width:0,height:0};var A9P,zQP,Gdm,E4A,TO,DLA,MmW,$LW,Y6W,yvR,H2k,eQZ;A9P=function(W,P,x,I,O,B,Y){var K="";W&&(K+=W+":");x&&(K+="//",P&&(K+=P+"@"),K+=x,I&&(K+=":"+I));O&&(K+=O);B&&(K+="?"+B);Y&&(K+="#"+Y);return K};
zQP=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.NR=function(W){return W.match(zQP)};
_.gh=function(W,P){return W?P?decodeURI(W):decodeURIComponent(W):W};
Gdm=function(W){W=_.NR(W)[1]||null;!W&&_.xW.self&&_.xW.self.location&&(W=_.xW.self.location.protocol.slice(0,-1));return W?W.toLowerCase():""};
_.lP=function(W){return _.gh(_.NR(W)[3]||null,!0)};
_.YO=function(W){return _.gh(_.NR(W)[5]||null,!0)};
_.oGU=function(W){var P=W.indexOf("#");return P<0?null:W.slice(P+1)};
E4A=function(W){W=_.NR(W);return A9P(W[1],W[2],W[3],W[4])};
_.g4Z=function(W){W=_.NR(W);return A9P(W[1],null,W[3],W[4])};
_.en=function(W){W=_.NR(W);return A9P(null,null,null,null,W[5],W[6],W[7])};
_.NV=function(W){var P=W.indexOf("#");return P<0?W:W.slice(0,P)};
TO=function(W,P){W=_.NR(W);P=_.NR(P);return W[3]==P[3]&&W[1]==P[1]&&W[4]==P[4]};
DLA=function(W,P){if(W){W=W.split("&");for(var x=0;x<W.length;x++){var I=W[x].indexOf("="),O=null;if(I>=0){var B=W[x].substring(0,I);O=W[x].substring(I+1)}else B=W[x];P(B,O?iP(O):"")}}};
MmW=function(W){var P=W.indexOf("#");P<0&&(P=W.length);var x=W.indexOf("?");if(x<0||x>P){x=P;var I=""}else I=W.substring(x+1,P);return[W.slice(0,x),I,W.slice(P)]};
$LW=function(W,P){return P?W?W+"&"+P:P:W};
_.wyl=function(W,P){if(!P)return W;W=MmW(W);W[1]=$LW(W[1],P);return W[0]+(W[1]?"?"+W[1]:"")+W[2]};
_.hQp=function(W,P,x){if(Array.isArray(P))for(var I=0;I<P.length;I++)_.hQp(W,String(P[I]),x);else P!=null&&x.push(W+(P===""?"":"="+_.al(P)))};
_.Kj=function(W){var P=[],x;for(x in W)_.hQp(x,W[x],P);return P.join("&")};
_.fX=function(W,P){P=_.Kj(P);return _.wyl(W,P)};
_.UF=function(W,P,x){x=x!=null?"="+_.al(x):"";return _.wyl(W,P+x)};
Y6W=function(W,P,x,I){for(var O=x.length;(P=W.indexOf(x,P))>=0&&P<I;){var B=W.charCodeAt(P-1);if(B==38||B==63)if(B=W.charCodeAt(P+O),!B||B==61||B==38||B==35)return P;P+=O+1}return-1};
yvR=/#|$/;_.hz=function(W,P){var x=W.search(yvR),I=Y6W(W,0,P,x);if(I<0)return null;var O=W.indexOf("&",I);if(O<0||O>x)O=x;I+=P.length+1;return iP(W.slice(I,O!==-1?O:0))};
H2k=/[?&]($|#)/;_.T7=function(W,P){for(var x=W.search(yvR),I=0,O,B=[];(O=Y6W(W,I,P,x))>=0;)B.push(W.substring(I,O)),I=Math.min(W.indexOf("&",O)+1||x,x);B.push(W.slice(I));return B.join("").replace(H2k,"$1")};
_.hy=function(W,P,x){return _.UF(_.T7(W,P),P,x)};
eQZ=function(W){var P=MmW(window.location.href),x=P[1],I=[];x&&x.split("&").forEach(function(O){var B=O.indexOf("=");B=B>=0?O.slice(0,B):O;W.hasOwnProperty(B)||I.push(O)});
P[1]=$LW(I.join("&"),_.Kj(W));return P[0]+(P[1]?"?"+P[1]:"")+P[2]};var hYd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(hYd,_.aK);hYd.prototype.getVersion=function(){return _.MY(this,2)};var wrR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(wrR,_.aK);var GEW=function(W,P){return _.SU(W,2,P)},$iC=function(W,P){return _.SU(W,3,P)};
wrR.prototype.getModel=function(){return _.MY(this,4)};
var gDC=function(W,P){return _.SU(W,4,P)},zYm=function(W,P){return _.SU(W,5,P)},Muo=function(W,P){return _.SU(W,9,P)},Aom=function(W,P){return A8(W,10,P)},CtG=function(W,P){return _.IE(W,11,P)},EDG=function(W,P){return _.SU(W,1,P)},DiC=function(W,P){return _.IE(W,7,P)};var jt7="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var f5=function(W,P,x,I){W=W===void 0?window:W;P=P===void 0?null:P;x=x===void 0?new IAl:x;I=I===void 0?di8():I;lAM.call(this);var O=this;this.global=W;this.debugChannel=P;this.performanceMonitor=x;this.onPageHide=zE(function(){return GE(O.global,"pagehide")}).pipe(w_(this.performanceMonitor,941));
this.onLoad=zE(function(){return GE(O.global,"load")}).pipe(w_(this.performanceMonitor,738),cr(1));
this.onResize=zE(function(){return GE(O.global,"resize")}).pipe(w_(this.performanceMonitor,741));
this.onMessage=zE(function(){return GE(O.global,"message")}).pipe(w_(this.performanceMonitor,740));
this.document=new k_(this.global,this);this.timeProvider=new qUp(new WPW(this.intrinsicFunctionNamespace,this.performanceMonitor),new LRi(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new imk(new xbZ(this),new v4p(this),new SA(this,new Jwb(this)),new SA(this,new tmd(this)),new SA(this,new a_(this)))};
_.A(f5,lAM);var sF=function(W){var P=W.global;return!!W.global.HTMLFencedFrameElement&&!!P.fence&&typeof P.fence.reportEvent==="function"};
_.J=f5.prototype;_.J.reportFencedFrameEvent=function(W){sF(this)&&this.global.fence.reportEvent(W)};
_.J.getOnBackgrounded=function(){return this.onPageHide.pipe(w_(this.performanceMonitor,942),Jl(this.queue),Vn(function(){}))};
_.J.postMessage=function(W,P,x){x=x===void 0?[]:x;this.global.postMessage(W,P,x)};
_.J.getWidth=function(){return Jzo(this.global)?this.global.width:0};
_.J.getHeight=function(){return Jzo(this.global)?this.global.height:0};
_.J.isMobile=function(){return niM()||Yc3()};
var wJ=function(W,P){try{var x=VuR(P,W.global,W.isMobile());return{left:x.left,top:x.top,width:x.getWidth(),height:x.getHeight()}}catch(I){return eU}};
f5.prototype.validate=function(){var W=this.beaconFactory.isSupported()||sF(this);return this.global&&this.timeProvider.available()&&W};
var T9U=function(W){return(W=eY7(W.global))?It(W):null};
_.N1.Object.defineProperties(f5.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(W){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Jzo(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}}});_.c9d=!_.yo&&!_.M7();var AzR=function(W){return W};var GFo=function(W){return W.pipe(Du(function(P){var x=P.endOfSessionReason;var I;return((I=P.viewable)==null?void 0:I.extrapolateToNow().value)||x!=void 0}),cr(1),Hr())};var Xro=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},fuW=function(W){var P=W.sequenceNumber.toString(10).padStart(2,"0");
P=""+W.startTime+P;W.sequenceNumber<99&&W.sequenceNumber++;return P};var jEm=qE(Rt(function(W){return W.endOfSessionReason===void 0}),Vn(function(W){return Object.assign({},W,{timestamps:sh(W)})}),Du(function(W){var P=W.viewable;
W=W.timestamps;var x;return(x=P==null?void 0:P.extrapolateUsingTimestampMap(W).value)!=null?x:!1}),Vn(function(W){var P=W.beaconFactory;
var x=W.timestampedExposureHistory;var I=W.timeOnScreen;var O=W.binaryContext;W=W.timestamps;if(P===void 0||x===void 0||I===void 0||O===void 0)return!1;if(I.extrapolateUsingTimestampMap(W).value.every(function(B){return B>=0}))return!0;
x=x.map(function(B){return B.timestamp+":"+B.value}).join(",");
I=v9({bin:O,tos:I},W);P.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+I+("&eh="+x)).sendNow();return!0}),Rt(function(W){return!W}),Hr());var luA=function(W){return{id:W.pingId,mcvt:W.maxConsecutiveViewTime,p:W.creativePosition,asp:W.adSpeedPosition,tm:W.totalMeasurementTime,tu:W.totalUnviewedTime,mtos:W.maxTimeOnScreen,tos:W.timeOnScreen,v:W.binaryVersion,bin:W.binaryContext,avms:W.measurementStrategy,bs:W.browserSize,mc:W.maximumExposure,"if":W.crossDomainIframeState,vu:W.delayedImpressionJsState,app:W.inApp,mse:W.mraidError,mtop:W.mraidSituation,itpl:W.injectedTemplateId,adk:W.adKey,exk:W.awbidKey,rs:W.requestSource,la:W.isLargeAd,
cr:W.isContentRecommendationAd,uach:W.userAgentClientHints,vs:W.viewState,r:W.reasonCode,pay:W.hasCpmavUrl,co:W.clientPingOrderCounter,rst:W.adRenderStartTime,rpt:W.adRenderPeriodTime,isd:W.initialScrollDepth,lsd:W.loadedScrollDepth,context:W.errorContext,msg:W.errorMessage,stack:W.errorStack,name:W.errorName,ec:W.hasElementChanged,sfr:W.strategyFailureReasons,met:W.creativeSearchResult,wmsd:W.webMeasurementStartDiagnostic,pv:W.pageVisible,epv:W.eosPageVisible,pbe:W.inStatefulBeaconExperiment,fle:W.inFetchLaterBeaconExperiment,
vae:W.inViewableAttributionExperiment,spb:W.supportsPendingBeacon,sfl:W.supportsFetchLater,ffslot:W.isFencedFrameSlotTurtlex,reach:W.sharedStorageReachMode,io2:W.v2VisibilityBitVector,rxdbg:W.rxDebugger,omida:W.omidAppId,omidp:W.omidPartner,omidpv:W.omidPartnerVersion,omidor:W.omidOcclusionReasons,omidv:W.omidVersion,omids:W.omidSessionType,omidam:W.omidAccessMode,omidct:W.omidCreativeType,omidia:W.omidInApp,omiddc:W.omidDeviceCategory,omidlat:W.omidLastActivity,omiddit:W.omidDeviceIdleTime,qid:W.errorEscapedQueryId}};var zI7=function(W){var P=[];return W.pipe(Vn(function(x){var I=x.beaconFactory,O=x.fetchBeaconFactory,B=x.timeOnScreen,Y=x.timeOnScreenUrlPrefixes,K=x.payloadMapper,Z=x.timeOnScreenPingId,d=x.timeOnScreenReason,v=x.urlSerializer,m=x.viewable,t=x.hasImpressionFired,C=x.inStatefulBeaconExperiment,z=x.supportsPendingBeacon,D=x.supportsFetchLater,w=x.turtlexReportEventData;if(!x.geometryMeasurable||!t||x.maxTimeOnScreen===void 0||B===void 0||Y===void 0||K===void 0||Z===void 0||v===void 0||I===void 0)return!1;
if(x.isTurtlex){if(d===void 0)return!1;Y=x.reportFencedFrameEvent;if(!Y)return!1;Y({eventType:"active-view-time-on-screen",eventData:w!=null?w:"",destination:["buyer"]});return!0}if(!(C||D||d))return!1;w=sh(x);var a;m=(a=m==null?void 0:m.extrapolateUsingTimestampMap(w).value)!=null?a:!1;a=v(Object.assign({},x,{pingId:Z,viewState:m?4:3,reasonCode:d!=null?d:"u",payloadMapper:K,urlPrefixes:Y}),w);if(C){for(;P.length>Y.length;)x=void 0,(x=P.shift())==null||x.deactivate();a.forEach(function(T,N){N>=P.length?
P.push(I.makeBeacon(T)):P[N].url=T});
return z&&O&&d!==void 0?(a.forEach(function(T){O.makeBeacon(T).sendNow()}),!0):d!==void 0}if(z&&O&&d!==void 0)return a.forEach(function(T){O.makeBeacon(T).sendNow()}),!0;
if(D&&O){for(;P.length>Y.length;)z=void 0,(z=P.shift())==null||z.deactivate();var k=v(Object.assign({},x,{pingId:Z,viewState:m?4:3,reasonCode:d!=null?d:"u",payloadMapper:K,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),w)[0];a.forEach(function(T,N){N>=P.length?P.push(I.makeBeacon(k,{endOfSession:!0})):P[N].url=k});
return d!==void 0?(a.forEach(function(T){O.makeBeacon(T).sendNow()}),!0):d!==void 0}return d!==void 0?(a.forEach(function(T){I.makeBeacon(T).sendNow()}),!0):!1}),Rt(function(x){return!x}),Hr())};var Ejd=qE(Du(function(W){return W.immediateUrlPrefixes!==void 0&&W.payloadMapper!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),Du(function(W){return WYt(W)!==null}),qTR(function(W){return W.activeViewUnmeasurableEvent},function(W){return W.emit}),Vn(function(W){if(W.isTurtlex){var P=W.reportFencedFrameEvent;
if(P){var x;P({eventType:"active-view-unmeasurable",eventData:(x=W.turtlexReportEventData)!=null?x:"",destination:["buyer"]})}}else{x=void 0;var I=WYt(W);if(I==="x"){var O,B=(O=W.geometricMeasurementErrors)!=null?O:W.contextValidationErrors;B&&(P=B.stack,x=B.message)}W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:2,reasonCode:I,errorMessage:x,errorStack:P}),sh(W)).forEach(function(Y){W.beaconFactory.makeBeacon(Y).sendNow()})}}),
cr(1),Hr());var PzR=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var pnC=qE(Du(function(W){return W.payloadMapper!==void 0&&W.immediateUrlPrefixes!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),Vn(function(W){return Object.assign({},W,{timestamps:sh(W)})}),Du(function(W){var P=W.viewable;
var x=W.hasImpressionFired;W=W.timestamps;var I;return!!x&&((I=P==null?void 0:P.extrapolateUsingTimestampMap(W).value)!=null?I:!1)}),qTR(function(W){return W.activeViewViewableEvent},function(W){return W.emit}),Vn(function(W){var P=W.beaconFactory,x=W.turtlexReportEventData;
if(W.isTurtlex){var I=W.reportFencedFrameEvent;if(!I)return!1;I({eventType:"active-view-viewable",eventData:x!=null?x:"",destination:["buyer"]});return!0}x=W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:4,reasonCode:"v"}),W.timestamps);(I=W.cpmavUrls)&&I.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(I,W).forEach(function(O){P.makeBeacon(O).sendNow()});
(I=W.viewableRelayUrls)&&I.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(I,W).forEach(function(O){P.makeBeacon(O).sendNow()});
x.forEach(function(O){P.makeBeacon(O,{attributionEnabled:W.isViewableAttributionEnabled}).sendNow()});
return!0}),Rt(function(W){return!W}),Hr());var fCU=Vn(function(W){return[W.value.topWindowViewportExternalGeometry.width,W.value.topWindowViewportExternalGeometry.height]});var hl=function(W,P){this.callback=W;this.options=P;this.intersectionObserverV2=this.intersectionObserverV1=null},Ald=function(W,P){P?W.intersectionObserverV2||(P=Object.assign({},W.options,{delay:100,
trackVisibility:!0}),W.intersectionObserverV2=new IntersectionObserver(W.callback,P)):W.intersectionObserverV1||(W.intersectionObserverV1=new IntersectionObserver(W.callback,W.options))},aBP=function(W,P){W=P?W.intersectionObserverV2:W.intersectionObserverV1;
if(!W)throw new TSc;return W};
hl.prototype.observe=function(W,P){aBP(this,W).observe(P)};
hl.prototype.unobserve=function(W,P){aBP(this,W).unobserve(P)};
hl.prototype.disconnect=function(W){aBP(this,W).disconnect()};
hl.prototype.takeRecords=function(W){return aBP(this,W).takeRecords()};var DC={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:eU,topWindowViewportExternalGeometry:eU,measurementRequests:new IQ,elementGeometrySourceName:"ns",elementGeometry:eU,intersectionGeometry:eU,viewportLocalAppOffset:{x:0,y:0}};var $TR=aQ(qE(Vn(function(W){var P;return(P=W.exposureOverride)!=null?P:GDR(W)}),Vn(function(W){return isFinite(W)?W:0}))),b5m=aQ(qE(Vn(function(W){var P;
return(P=W.exposureOverride)!=null?P:GDR(W)}),Vn(function(W){return isFinite(W)?W:-1})));var Xf=function(W,P){this.a=W;this.b=P;if(W.clock.timeline!==P.clock.timeline)throw Error();};
Xf.prototype.equivalentTo=function(W){return W instanceof Xf?this.a.equivalentTo(W.a)&&this.b.equivalentTo(W.b):!1};
Xf.prototype.extrapolateToTime=function(W){var P=this.a.extrapolateToTime(W).value,x=this.b.extrapolateToTime(W).value;return{timestamp:W,value:[P,x]}};
_.N1.Object.defineProperties(Xf.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 W=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),P=this.a.lastMeasurement.timestamp.equals(W)?this.a.lastMeasurement.value:this.a.extrapolateToTime(W).value,x=this.b.lastMeasurement.timestamp.equals(W)?this.b.lastMeasurement.value:this.b.extrapolateToTime(W).value;return{timestamp:W,value:[P,x]}}}});var fd=function(W,P){this.input=W;this.mapFunction=P;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
fd.prototype.equivalentTo=function(W){return W instanceof fd?this.input.equivalentTo(W.input)&&this.mapFunction===W.mapFunction:!1};
fd.prototype.extrapolateToTime=function(W){W=this.input.extrapolateToTime(W);return{timestamp:W.timestamp,value:this.mapFunction(W.value)}};
_.N1.Object.defineProperties(fd.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var NQ=function(){};
NQ.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
NQ.prototype.extrapolateUsingTimestampMap=function(W){var P=this.clock.timeline,x,I=(x=W.get(P))!=null?x:this.clock.now();W.set(P,I);return this.extrapolateToTime(I)};
NQ.prototype.map=function(W){return new b2w(this,W)};
NQ.prototype.joinWith=function(W){return new kdz(this,W)};
var kdz=function(){Xf.apply(this,arguments);this.map=NQ.prototype.map;this.joinWith=NQ.prototype.joinWith;this.extrapolateToNow=NQ.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=NQ.prototype.extrapolateUsingTimestampMap};
_.A(kdz,Xf);var b2w=function(){fd.apply(this,arguments);this.map=NQ.prototype.map;this.joinWith=NQ.prototype.joinWith;this.extrapolateToNow=NQ.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=NQ.prototype.extrapolateUsingTimestampMap};
_.A(b2w,fd);var kK=function(W,P){this.lastMeasurement=P;this.extrapolateToNow=NQ.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=NQ.prototype.extrapolateUsingTimestampMap;this.map=NQ.prototype.map;this.joinWith=NQ.prototype.joinWith;this.clock=W};
kK.prototype.equivalentTo=function(W){return W.active};
kK.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.N1.Object.defineProperties(kK.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var X98=Vn(function(W){if(W.value.viewportGeometrySourceName==="omid"){if(W.value.elementGeometrySourceName==="nio")return"omio";if(W.value.elementGeometrySourceName==="geo")return"omgeo"}return W.value.elementGeometrySourceName==="geo"||W.value.elementGeometrySourceName==="nio"?W.value.viewportGeometrySourceName:W.value.elementGeometrySourceName});var gKm=qE(Du(function(W){return!isNaN(W)}),Ni(function(W,P){return isNaN(W)?P:Math.min(W,P)},NaN),at());var w9G=aQ(qE(Vn(function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.exposedViewportLocalGeometry.width*W.exposedViewportLocalGeometry.height)}),Vn(function(W){return isFinite(W)?Math.min(1,W):0})));var UTU=qE(aQ(Vn(function(W){W=W.exposureOverride?W.elementGeometry.width*W.elementGeometry.height*W.exposureOverride/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height):W.intersectionGeometry.width*W.intersectionGeometry.height/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height);return isFinite(W)?W:0})));var TJR=function(W,P){var x=this;this.timeProvider=W;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=P.pipe(at()).subscribe(function(I){i5t(x);x.measurementRequestObserver=I})},R6C=function(W,P){i5t(W);
W.lastMeasurementRequest=W.timeProvider.setTimeout(function(){var x;return void((x=W.measurementRequestObserver)==null?void 0:x.next())},P)},i5t=function(W){W.lastMeasurementRequest!==null&&W.timeProvider.clearTimeout(W.lastMeasurementRequest);
W.lastMeasurementRequest=null};
TJR.prototype.dispose=function(){i5t(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var ULi=function(){};var mpG=function(W,P){this.context=W;this.strategies=P};
_.A(mpG,ULi);mpG.prototype.buildGeometrySource=function(W,P){var x=this.strategies.map(function(B){return B.buildGeometrySource(W,P)}),I=PZt(x.map(function(B){return B.geometrySource})),O=I.capturedErrors.pipe(Xyz());
return{geometrySource:I.chain.pipe(Jl(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:O,strategyErrors:I.capturedErrors}].concat(_.ju(x.map(function(B){return B.additionalOutputs}))))}};
var Xyz=function(){return Ni(function(W,P){P instanceof tl?W.push(P.measurementStrategyFailureReason):W.push(-1);return W},[])};var tao=function(W,P){this.context=W;this.poller=P};
_.A(tao,ULi);tao.prototype.buildGeometrySource=function(W,P){var x=xpU(OUt(this.context,this.poller),uPS(this.context,P.requestSource));return{geometrySource:Wxt(W.measurableCreative.pipe(x),P.inApp),additionalOutputs:{}}};var VaC=function(W,P,x){x=x===void 0?tUt(W,P):x;this.context=W;this.intersectionObserverStrategy=x};
_.A(VaC,ULi);VaC.prototype.buildGeometrySource=function(W,P){var x=this.intersectionObserverStrategy(P.useV2);return{geometrySource:Wxt(W.measurableCreative.pipe(x,p9C(this.context)),P.inApp),additionalOutputs:{}}};var fBz=function(W,P,x){var I=I===void 0?Symbol():I;this.element=W;this.immediateUrls=P;this.timeOnScreenUrls=x;this.symbol=I};var lC8=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Kx8=Object.freeze([1,.75,lC8.exposureThreshold,lC8.largeAdExposureThreshold,0]);var CvC=function(W,P){P=P===void 0?36E5:P;var x=x===void 0?!0:x;this.creatives=new IQ;this.elementsToUnregister=new IQ;this.elementMap=new Map;var I=new f5(window,null);I.beaconFactory=new SA(I,new a_(I));vjU(I,this.creatives,this.elementsToUnregister,W,P,x).subscribe()},Gzt=function(W,P,x,I){if(!W.elementMap.has(P)){var O=new $K(P);
W.elementMap.set(P,O);W.creatives.next(new fBz(O,x,I))}},z1m=function(W,P){W.elementsToUnregister.next(P);
var x=W.elementMap.get(P);x!==void 0&&(x.release(),W.elementMap.delete(P))};var V9m=function(W){var P=W.url;W=W.uaDataValues;this.JSC$7381_url_=P;this.uaDataValues_=W;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var x=/[?&]([^&=]+)=([^&]*)/g;W=x.exec(P);)this.urlParamValues_[W[1]]=W[2]},t9t=function(W){W=W.uaDataValues_;
if(!W)return"";var P=lz("uap",W.platform)+lz("uapv",W.platformVersion)+lz("uafv",W.uaFullVersion)+lz("uaa",W.architecture)+lz("uam",W.model)+lz("uab",W.bitness);W.fullVersionList&&(P+="&uafvl="+encodeURIComponent(W.fullVersionList.map(function(x){return encodeURIComponent(x.brand)+";"+encodeURIComponent(x.version)}).join("|")));
W.wow64!=null&&(P+="&uaw="+Number(W.wow64));return P.slice(1)};var lY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(lY,_.aK);lY.prototype.getId=function(){return _.MY(this,1)};
lY.prototype.setId=function(W){return _.PX(this,1,W)};var TT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(TT,_.aK);TT.prototype.getSeconds=function(){return gg(this,1)};
TT.prototype.setSeconds=function(W){return _.A2(this,1,DB(W),"0")};_.Ur=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(_.Ur,_.aK);_.Ur.prototype.getSeconds=function(){return gg(this,1)};
_.Ur.prototype.setSeconds=function(W){return _.A2(this,1,DB(W),"0")};
_.NMz=function(W){var P=Number(wg(W,1));W=_.L5(W,2);return new Date(P*1E3+W/1E6)};var rN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(rN,_.aK);rN.prototype.getUrl=function(){return _.MY(this,1)};
rN.prototype.setUrl=function(W){return _.PX(this,1,W)};
rN.prototype.getHeight=function(){return _.L5(this,2)};
rN.prototype.getWidth=function(){return _.L5(this,3)};var iY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(iY,_.aK);iY.prototype.getAspectRatio=function(){return D2(this,1)};
iY.prototype.setAspectRatio=function(W){return _.A2(this,1,_.Y4(W),0)};
iY.prototype.getDuration=function(){return _.qM(this,TT,2)};var lBk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(lBk,_.aK);var TMW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(TMW,_.aK);var r9P=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(r9P,_.aK);var i2l=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(i2l,_.aK);var RQz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(RQz,_.aK);var FOM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(FOM,_.aK);var qvW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(qvW,_.aK);var LOz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(LOz,_.aK);var Wum=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Wum,_.aK);var R_=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(R_,_.aK);var Ff=[2,4,5,6,7];var PIW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(PIW,_.aK);var ze=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(ze,_.aK);_.J=ze.prototype;_.J.getId=function(){return _.qM(this,lY,1)};
_.J.setId=function(W){return _.I$(this,1,W)};
_.J.getName=function(){return _.MY(this,2)};
_.J.setDescription=function(W){return _.PX(this,3,W)};
_.J.getUrl=function(){return _.MY(this,8)};
_.J.setUrl=function(W){return _.PX(this,8,W)};
var qQ=function(W){return _.RQ(W,rN,10,_.qT())};
ze.prototype.getOwner=function(W){var P=_.t2(this,40,_.aG,3,!0);fM(P,W);return P[W]};
ze.prototype.getVersion=function(){return gg(this,45)};
var Ld=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Ld,_.aK);_.x5k=[0,NXt,TXx];_.ISi=[0,NXt,TXx];var OxA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(OxA,_.aK);var W1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(W1,_.aK);W1.prototype.getStatus=function(){return _.$5(this,1)};
W1.prototype.removeItem=function(W){return YXx(this,2,W)};var J2c=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(J2c,_.aK);J2c.prototype.getName=function(){return _.MY(this,8)};var P1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(P1,_.aK);P1.prototype.getCommand=function(){return _.$5(this,1)};
P1.prototype.getSource=function(){return _.qM(this,J2c,2)};
P1.prototype.setVisible=function(W){return _.Cf(this,5,W)};
P1.prototype.removeItem=function(W){return YXx(this,7,W)};var BDZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(BDZ,_.aK);BDZ.prototype.getCommand=function(){return _.$5(this,1)};
BDZ.prototype.removeItem=function(W){return YXx(this,4,W)};
var nTc=_.P6(BDZ);var xf=function(W,P,x){x=x===void 0?Error():x;var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.code=W;P+=":";x instanceof Error?(this.message=P+x.message,this.stack=x.stack||""):(this.message=P+String(x),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(xf,Error);_.vn=function(){this.JSC$7439_disposed_=this.JSC$7439_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.vn.prototype.JSC$7439_disposed_=!1;_.vn.prototype.isDisposed=function(){return this.JSC$7439_disposed_};
_.vn.prototype.dispose=function(){this.JSC$7439_disposed_||(this.JSC$7439_disposed_=!0,this.disposeInternal())};
_.vn.prototype[Symbol.dispose]=function(){this.dispose()};
_.nU=function(W,P){W.addOnDisposeCallback(_.ou(_.TD,P))};
_.vn.prototype.addOnDisposeCallback=function(W,P){this.JSC$7439_disposed_?P!==void 0?W.call(P):W():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),P&&(W=W.bind(P)),this.onDisposeCallbacks_.push(W))};
_.vn.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var I1=function(W){_.vn.call(this);this.wpc=W};
_.A(I1,_.vn);I1.prototype.ugT=function(){return this.wpc.f()};
I1.prototype.aOu=function(W){return this.wpc.c(W)};
I1.prototype.gv=function(W){return this.wpc.m(wnW(W))};
I1.prototype.x0=function(W){return this.wpc.mws(wnW(W))};
var iz=function(W){_.vn.call(this);var P=this;this.vx=W;this.lKF="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.nkp=void 0;this.fPT=this.vx.p;this.p31=this.vxc.bind(this);this.addOnDisposeCallback(function(){return void YiZ(P)})};
_.A(iz,_.vn);var y2A=function(W){var P;return _.y(function(x){if(x.nextAddress==1){if(!W.vx.wpc)throw new xf(30,"NWA");return W.iUK?x.return(W.iUK):_.S(x,W.vx.wpc(),2)}P=x.yieldResult;W.iUK=new I1(P);return x.return(W.iUK)})};
iz.prototype.snapshot=function(W){return this.vx.s(Object.assign({},W.za&&{c:W.za},W.wra&&{s:W.wra},W.tCT!==void 0&&{p:W.tCT}))};
iz.prototype.vxc=function(W){this.vx.e(W)};
iz.prototype.uJQ=function(W,P){return this.vx.c(W,P,!1)};
var YiZ=function(W){W.nkp!==void 0&&(W.lKF.forEach(function(P){var x;(x=W.nkp)==null||x.removeEventListener(P,W.p31)}),W.nkp=void 0)};
iz.prototype.b9w=function(){return this.vx.l()};var KuZ,O7=function(){_.vn.apply(this,arguments);this.bYp=1;this[KuZ]=this.dispose};
_.A(O7,_.vn);O7.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.bYp++;return this};
O7.prototype.dispose=function(){--this.bYp||_.vn.prototype.dispose.call(this)};
KuZ=Symbol.dispose;var xS8=function(W){this.a02=W;W.addNewEventMetric("/client_streamz/bg/frs",_.xj("mk"))};
xS8.prototype.record=function(W,P){this.a02.record("/client_streamz/bg/frs",W,P)};
var B1W=function(W){this.nLB=W;W.addNewEventMetric("/client_streamz/bg/wrl",_.xj("mn"),Pn("ac"),Pn("sc"),_.xj("rk"),_.xj("mk"))};
B1W.prototype.record=function(W,P,x,I,O,B){this.nLB.record("/client_streamz/bg/wrl",W,P,x,I,O,B)};
var O4o=function(W){this.kaB=W;W.addNewCounter("/client_streamz/bg/ec",_.xj("en"),_.xj("mk"))};
O4o.prototype.increment=function(W,P){this.kaB.JSC$7692_incrementCounter("/client_streamz/bg/ec",W,P)};
var JgU=function(W){this.yPA=W;W.addNewEventMetric("/client_streamz/bg/el",_.xj("en"),_.xj("mk"))};
JgU.prototype.record=function(W,P,x){this.yPA.record("/client_streamz/bg/el",W,P,x)};
var IlG=function(W){this.ikx=W;W.addNewCounter("/client_streamz/bg/cec",Pn("ec"),_.xj("mk"))};
IlG.prototype.increment=function(W,P){this.ikx.JSC$7692_incrementCounter("/client_streamz/bg/cec",W,P)};
var nVS=function(W){this.esA=W;W.addNewCounter("/client_streamz/bg/po/csc",Pn("cs"),_.xj("mk"))};
nVS.prototype.increment=function(W,P){this.esA.JSC$7692_incrementCounter("/client_streamz/bg/po/csc",W,P)};
var Yw7=function(W){this.gLx=W;W.addNewCounter("/client_streamz/bg/po/ctav",_.xj("av"),_.xj("mk"))};
Yw7.prototype.increment=function(W,P){this.gLx.JSC$7692_incrementCounter("/client_streamz/bg/po/ctav",W,P)};
var ygU=function(W){this.xPb=W;W.addNewCounter("/client_streamz/bg/po/cwsc",_.xj("su"),_.xj("mk"))};
ygU.prototype.increment=function(W,P){this.xPb.JSC$7692_incrementCounter("/client_streamz/bg/po/cwsc",W,P)};var vVW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(vVW,_.aK);var sCt=function(W,P){return _.Cx(W,3,P,FR7)};var ZxZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(ZxZ,_.aK);var oTZ=[1,2,3];var Sil=[0,oTZ,_.qXR,rKS,FvC];var u5M=[0,_.i9,[0,Uut,_.NY]];var d5c=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(d5c,_.aK);var sKw=[1,2,3];var vTm=[0,sKw,l_d,XD7,_.Rd,u5M];var m5Z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(m5Z,_.aK);var V$Z=[0,_.i9,Sil,vTm];var t$A=[0,_.rg];var pZc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(pZc,_.aK);var jK3=[0,_.rg,-1,_.Te];var QKp=[0,_.rg,-1,_.l9,_.Te];var CIm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(CIm,_.aK);var A2k=[1,2,3];var zXl=[0,A2k,_.Rd,jK3,_.Rd,QKp,_.Rd,t$A];var Gkb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Gkb,_.aK);Gkb.prototype.JSC$7512_serializeBinary=PIo([0,_.rg,zXl,Lvx,_.i9,V$Z,iuR,RBR]);var ETZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(ETZ,_.aK);var M$m=function(W){var P=new Gkb;P=_.SU(P,1,W.JSC$7628_metricName);var x=gTW(W);P=_.Cx(P,3,x,_.em);x=[];for(var I=[],O=_.n(W.cellMap.keys()),B=O.next();!B.done;B=O.next())I.push(B.value.split(","));for(O=0;O<I.length;O++){B=I[O];for(var Y=W.cellType,K=W.getCells(B)||[],Z=[],d=0;d<K.length;d++){var v=K[d],m=v&&v.cellValue;v=new d5c;switch(Y){case 3:m=Number(m);Number.isFinite(m)&&Ka(v,1,sKw,DB(m));break;case 2:Ka(v,2,sKw,_.Y4(Number(m)))}Z.push(v)}Y=Z;for(K=0;K<Y.length;K++){Z=Y[K];d=new m5Z;Z=_.I$(d,
2,Z);d=[];v=D5z(W);for(m=0;m<v.length;m++){var t=v[m],C=B[m],z=new ZxZ;switch(t){case 3:Ka(z,1,oTZ,cy(String(C)));break;case 2:t=Number(C);Number.isFinite(t)&&Ka(z,2,oTZ,_.Qf(t));break;case 1:Ka(z,3,oTZ,rmx(C==="true"))}d.push(z)}A8(Z,1,d);x.push(Z)}}A8(P,4,x);return P};var $5k=function(W){if(!W)return"";if(/^about:(?:blank|srcdoc)$/.test(W))return window.origin||"";W.indexOf("blob:")===0&&(W=W.substring(5));W=W.split("#")[0].split("?")[0];W=W.toLowerCase();W.indexOf("//")==0&&(W=window.location.protocol+W);/^[\w\-]*:\/\//.test(W)||(W=window.location.href);var P=W.substring(W.indexOf("://")+3),x=P.indexOf("/");x!=-1&&(P=P.substring(0,x));x=W.substring(0,W.indexOf("://"));if(!x)throw Error("ua`"+W);if(x!=="http"&&x!=="https"&&x!=="chrome-extension"&&x!=="moz-extension"&&
x!=="file"&&x!=="android-app"&&x!=="chrome-search"&&x!=="chrome-untrusted"&&x!=="chrome"&&x!=="app"&&x!=="devtools")throw Error("va`"+x);W="";var I=P.indexOf(":");if(I!=-1){var O=P.substring(I+1);P=P.substring(0,I);if(x==="http"&&O!=="80"||x==="https"&&O!=="443")W=":"+O}return x+"://"+P+W};var hXc=function(W,P,x){var I=String(_.xW.location.href);return I&&W&&P?[P,wZW($5k(I),W,x||null)].join(" "):null},wZW=function(W,P,x){var I=[],O=[];
if((Array.isArray(x)?2:1)==1)return O=[P,W],_.bP(I,function(K){O.push(K)}),Hxk(O.join(" "));
var B=[],Y=[];_.bP(x,function(K){Y.push(K.key);B.push(K.value)});
x=Math.floor((new Date).getTime()/1E3);O=B.length==0?[x,P,W]:[B.join(":"),x,P,W];_.bP(I,function(K){O.push(K)});
W=Hxk(O.join(" "));W=[x,W];Y.length==0||W.push(Y.join(""));return W.join("_")},Hxk=function(W){var P=Upd();
P.update(W);return P.digestString().toLowerCase()};var JW=function(W){this.JSC$7523_document_=W||{cookie:""}},eXm;
_.J=JW.prototype;_.J.isEnabled=function(){if(!_.xW.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};
_.J.set=function(W,P,x){var I=!1;if(typeof x==="object"){var O=x.sameSite;I=x.secure||!1;var B=x.domain||void 0;var Y=x.path||void 0;var K=x.maxAge}if(/[;=\s]/.test(W))throw Error("wa`"+W);if(/[;\r\n]/.test(P))throw Error("xa`"+P);K===void 0&&(K=-1);x=B?";domain="+B:"";Y=Y?";path="+Y:"";I=I?";secure":"";K=K<0?"":K==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+K*1E3)).toUTCString();this.JSC$7523_document_.cookie=W+"="+P+x+Y+K+I+(O!=null?";samesite="+O:"")};
_.J.get=function(W,P){for(var x=W+"=",I=(this.JSC$7523_document_.cookie||"").split(";"),O=0,B;O<I.length;O++){B=uC(I[O]);if(B.lastIndexOf(x,0)==0)return B.slice(x.length);if(B==W)return""}return P};
_.J.remove=function(W,P,x){var I=this.containsKey(W);this.set(W,"",{maxAge:0,path:P,domain:x});return I};
_.J.getKeys=function(){return eXm(this).keys};
_.J.getValues=function(){return eXm(this).values};
_.J.isEmpty=function(){return!this.JSC$7523_document_.cookie};
_.J.getCount=function(){return this.JSC$7523_document_.cookie?(this.JSC$7523_document_.cookie||"").split(";").length:0};
_.J.containsKey=function(W){return this.get(W)!==void 0};
_.J.containsValue=function(W){for(var P=eXm(this).values,x=0;x<P.length;x++)if(P[x]==W)return!0;return!1};
_.J.clear=function(){for(var W=eXm(this).keys,P=W.length-1;P>=0;P--)this.remove(W[P])};
eXm=function(W){W=(W.JSC$7523_document_.cookie||"").split(";");for(var P=[],x=[],I,O,B=0;B<W.length;B++)O=uC(W[B]),I=O.indexOf("="),I==-1?(P.push(""),x.push(O)):(P.push(O.substring(0,I)),x.push(O.substring(I+1)));return{keys:P,values:x}};
_.SB=new JW(typeof document=="undefined"?null:document);var JVU=function(){var W=_.xW.__SAPISID||_.xW.__APISID||_.xW.__3PSAPISID||_.xW.__1PSAPISID||_.xW.__OVERRIDE_SID;if(W)return!0;typeof document!=="undefined"&&(W=new JW(document),W=W.get("SAPISID")||W.get("APISID")||W.get("__Secure-3PAPISID")||W.get("__Secure-1PAPISID"));return!!W},c2z=function(W,P,x,I){(W=_.xW[W])||typeof document==="undefined"||(W=(new JW(document)).get(P));
return W?hXc(W,x,I):null},iRd=function(W){var P=$5k(_.xW==null?void 0:_.xW.location.href),x=[];
if(JVU()){P=P.indexOf("https:")==0||P.indexOf("chrome-extension:")==0||P.indexOf("chrome-untrusted://new-tab-page")==0||P.indexOf("moz-extension:")==0;var I=P?_.xW.__SAPISID:_.xW.__APISID;I||typeof document==="undefined"||(I=new JW(document),I=I.get(P?"SAPISID":"APISID")||I.get("__Secure-3PAPISID"));(I=I?hXc(I,P?"SAPISIDHASH":"APISIDHASH",W):null)&&x.push(I);P&&((P=c2z("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",W))&&x.push(P),(W=c2z("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",W))&&x.push(W))}return x.length==
0?null:x.join(" ")};var aSd=function(){this.minSize=1024};
aSd.prototype.compress=function(W){var P,x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:return P=new CompressionStream("gzip"),x=(new Response(P.readable)).arrayBuffer(),I=P.writable.getWriter(),_.S(B,I.write((new TextEncoder).encode(W)),2);case 2:return _.S(B,I.close(),3);case 3:return O=Uint8Array,_.S(B,x,4);case 4:return B.return(new O(B.yieldResult))}})};
aSd.prototype.isSupported=function(W){return W<this.minSize?!1:typeof CompressionStream!=="undefined"};var bxP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(bxP,_.aK);var B1=function(W,P){this.intervalMs=W;this.callback=P;this.enabled=!1;this.nowFn=function(){return _.O1()};
this.lastTimeMs=this.nowFn()};
B1.prototype.setInterval=function(W){this.intervalMs=W;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
B1.prototype.start=function(){var W=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){W.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
B1.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
B1.prototype.tick=function(){var W=this;if(this.enabled){var P=Math.max(this.nowFn()-this.lastTimeMs,0);P<this.intervalMs*.8?this.timer=setTimeout(function(){W.tick()},this.intervalMs-P):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var kkc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(kkc,_.aK);var U5m=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(U5m,_.aK);var XZp=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(XZp,_.aK);XZp.prototype.getTransmissionType=function(){return _.$5(this,1)};var lVU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(lVU,_.aK);lVU.prototype.getVersion=function(){return _.MY(this,2)};var nA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(nA,_.aK);var NvA=function(W){A8(TvC,1,W)};
nA.prototype.getModel=function(){return _.MY(this,6)};
var fS3=_.P6(nA);var NDP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(NDP,_.aK);var Xno=["platform","platformVersion","architecture","model","uaFullVersion"],TvC=new nA,fVx=null;var lSw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(lSw,_.aK);var TD3=function(W){return _.Lj(W,1,1)};var r2p=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W,4)};
_.A(r2p,_.aK);_.Yf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W,36)};
_.A(_.Yf,_.aK);_.Yf.prototype.getExperimentIds=function(){return _.qM(this,bxP,16)};var ixk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W,19)};
_.A(ixk,_.aK);ixk.prototype.setLogSource=function(W){return _.Lj(this,2,W)};
ixk.prototype.setScheduler=function(W){return _.Lj(this,10,W)};var Fud=function(W,P){this.isServiceWorkerScope=P=P===void 0?!1:P;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new ixk;Number.isInteger(W)&&this.logRequest.setLogSource(W);P||(this.locale=document.documentElement.getAttribute("lang"));RXk(this,new lSw)};
Fud.prototype.setLogSource=function(W){this.logRequest.setLogSource(W);return this};
var RXk=function(W,P){_.I$(W.logRequest,1,P);_.$5(P,1)||TD3(P);W.isServiceWorkerScope||(P=yq(W),_.MY(P,5)||_.SU(P,5,W.locale));W.uach&&(P=yq(W),_.qM(P,nA,9)||_.I$(P,9,W.uach))},qip=function(W,P){W.transmissionType=P},Lu3=function(W){var P=P===void 0?Xno:P;
var x=W.isServiceWorkerScope?void 0:zD();x?rzU(x,P).then(function(I){W.uach=fS3(I!=null?I:"[]");I=yq(W);_.I$(I,9,W.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},yq=function(W){W=_.qM(W.logRequest,lSw,1);
var P=_.qM(W,NDP,11);P||(P=new NDP,_.I$(W,11,P));return P};
Fud.prototype.build=function(W,P,x,I,O,B){P=P===void 0?0:P;x=x===void 0?0:x;I=I===void 0?null:I;O=O===void 0?0:O;B=B===void 0?0:B;if(!this.isServiceWorkerScope){var Y=yq(this);var K=new XZp;K=_.Lj(K,1,this.transmissionType);K=_.IE(K,2,this.isFinal);x=_.ee(K,3,x>0?x:void 0);x=_.ee(x,4,O>0?O:void 0);x=_.ee(x,5,B>0?B:void 0);O=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B=O[_.Ec]|0;x=cm(x,B)?x:ZS(x,O,B)?yc(x,O):new x.constructor(nx(O,B,!0));_.I$(Y,10,x)}Y=this.logRequest.clone();x=Date.now().toString();
Y=_.WP(Y,4,DB(x));W=W.slice();W=A8(Y,3,W);I&&(Y=new kkc,I=_.ee(Y,13,I),Y=new U5m,I=_.I$(Y,2,I),Y=new r2p,I=_.I$(Y,1,I),I=_.Lj(I,2,9),_.I$(W,18,I));P&&_.vB(W,14,P);return W};OW.prototype.currBackoffCount_=0;OW.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
OW.prototype.getValue=function(){return this.currValue_};
var WyZ=function(W){W.currBaseValue_=Math.min(W.maxValue_,W.currBaseValue_*W.backoffFactor_);W.currValue_=Math.min(W.maxValue_,W.currBaseValue_+(W.randomFactor_?Math.round(W.randomFactor_*(Math.random()-.5)*2*W.currBaseValue_):0));W.currBackoffCount_++};var OVC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W,8)};
_.A(OVC,_.aK);var P5p=_.P6(OVC);var J_W=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(J_W,_.aK);var KA;KA=new BHt;var ZG=function(W){_.vn.call(this);var P=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7601_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$7601_sendBeaconApiEnabled=!1;this.logSource=W.logSource;this.getAuthHeaderValue=
W.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Fud(W.logSource,W.isServiceWorkerScope);this.network=W.network||null;this.productID=W.productID||null;this.clearcutUrl=W.urlOverride||null;this.sessionIndex=W.sessionIndex||null;this.disableAutomaticFlush=W.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!W.disableWithCredentials;this.isServiceWorkerScope=W.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!zD()&&!!zD().navigator&&zD().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(xEc())).searchParams&&!!(new URL(xEc())).searchParams.set;var x=TD3(new lSw);RXk(this.logRequestBuilder,x);this.flushBackoff=new OW(1E4,3E5,.1);W=IHw(this,W.backgroundJobDeferrer);this.JSC$7601_flushTimer=new B1(this.flushBackoff.getValue(),W);this.backupTimer=new B1(6E5,W);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Ozw(P);
var I;(I=P.metalogService)==null||I.flush()}}),document.addEventListener("pagehide",function(){Ozw(P);
var I;(I=P.metalogService)==null||I.flush()}))};
_.A(ZG,_.vn);var IHw=function(W,P){return W.isBrowserSupported?P?function(){P().then(function(){W.flush()})}:function(){W.flush()}:function(){}};
ZG.prototype.disposeInternal=function(){Ozw(this);this.JSC$7601_flushTimer.stop();this.backupTimer.stop();_.vn.prototype.disposeInternal.call(this)};
var JHk=function(W){W.clearcutUrl||(W.clearcutUrl=xEc());try{return(new URL(W.clearcutUrl)).toString()}catch(P){return(new URL(W.clearcutUrl,zD().location.origin)).toString()}};
ZG.prototype.dispatch=function(W){if(W instanceof _.Yf)this.log(W);else try{var P=new _.Yf,x=W.serialize();var I=_.SU(P,8,x);this.log(I)}catch(O){o1(this,4,1)}};
var o1=function(W,P,x){W.metalogService&&W.metalogService.increment(P,x)};
ZG.prototype.log=function(W){o1(this,2,1);if(this.isBrowserSupported){W=W.clone();var P=this.sequencePosition++;W=_.vB(W,21,P);this.componentId&&_.SU(W,26,this.componentId);P=W;if(Scm(_.mS(P,1))==null){var x=Date.now();x=Number.isFinite(x)?x.toString():"0";_.WP(P,1,DB(x))}_.oiC(_.mS(P,15))!=null||_.vB(P,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(x=this.experimentIds.clone(),_.I$(P,16,x));o1(this,1,1);P=this.pendingEvents.length-1E3+1;P>0&&(this.pendingEvents.splice(0,P),this.numLogsDroppedSinceLastFlush+=
P,o1(this,3,P));this.pendingEvents.push(W);this.disableAutomaticFlush||this.JSC$7601_flushTimer.enabled||this.JSC$7601_flushTimer.start()}};
ZG.prototype.flush=function(W,P){var x=this;if(this.pendingEvents.length===0)W&&W();else if(this.JSC$7601_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,B9A(this);else{var I=Date.now();if(this.noFlushUntilMs>I&&this.startWaitingMs<I)P&&P("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?qip(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var O=this.pendingEvents.length,
B=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Y=this.getAuthHeaderValue();if(Y&&this.lastFailedAuth===Y)P&&P("stale-auth-token");else{this.pendingEvents=[];this.JSC$7601_flushTimer.enabled&&this.JSC$7601_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;I=B.serialize();var K;this.JSC$7601_compressor&&this.JSC$7601_compressor.isSupported(I.length)&&
(K=this.JSC$7601_compressor.compress(I));var Z=nHp(this,I,Y),d=function(t){x.flushBackoff.reset();x.JSC$7601_flushTimer.setInterval(x.flushBackoff.getValue());if(t){var C=null;try{var z=JSON.stringify(JSON.parse(t.replace(")]}'\n","")));C=P5p(z)}catch(D){}C&&(t=Number(gg(C,1,_.Fl("-1"))),t>0&&(x.startWaitingMs=Date.now(),x.noFlushUntilMs=x.startWaitingMs+t),Mzm(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,KA.fieldIndex),gim(C,KA.fieldIndex),C=KA.ctor?KA.getExtensionFn(C,KA.ctor,KA.fieldIndex,
KA.JSC$6781_hasMessageId):KA.getExtensionFn(C,KA.fieldIndex,null,KA.JSC$6781_hasMessageId),C=C===null?void 0:C)&&(C=_.L5(C,1,-1),C!==-1&&(x.flushBackoff=new OW(C<1?1:C,3E5,.1),x.JSC$7601_flushTimer.setInterval(x.flushBackoff.getValue())))}W&&W();x.numRetriesSinceLastSuccessfulFlush=0},v=function(t,C){var z=_.RQ(B,_.Yf,3,_.qT());
var D=Number(gg(B,14));WyZ(x.flushBackoff);x.JSC$7601_flushTimer.setInterval(x.flushBackoff.getValue());t===401&&Y&&(x.lastFailedAuth=Y);D&&(x.numLogsDroppedSinceLastFlush+=D);C===void 0&&(C=x.isRetryable(t));C&&(x.pendingEvents=z.concat(x.pendingEvents),x.disableAutomaticFlush||x.JSC$7601_flushTimer.enabled||x.JSC$7601_flushTimer.start());o1(x,7,1);P&&P("net-send-failed",t);++x.numRetriesSinceLastSuccessfulFlush},m=function(){x.network&&x.network.send(Z,d,v)};
K?K.then(function(t){o1(x,5,O);Z.requestHeaders["Content-Encoding"]="gzip";Z.requestHeaders["Content-Type"]="application/binary";Z.body=t;Z.bodyType=2;m()},function(){o1(x,6,O);
m()}):m()}}}};
var nHp=function(W,P,x){x=x===void 0?null:x;var I=I===void 0?W.withCredentials:I;var O={},B=new URL(JHk(W));x&&(O.Authorization=x);W.sessionIndex&&(O["X-Goog-AuthUser"]=W.sessionIndex,B.searchParams.set("authuser",W.sessionIndex));W.pageId&&(Object.defineProperty(O,"X-Goog-PageId",{value:W.pageId}),B.searchParams.set("pageId",W.pageId));return{url:B.toString(),body:P,bodyType:1,requestHeaders:O,requestType:"POST",withCredentials:I,timeoutMillis:W.timeoutMillis}},Ozw=function(W){W.logRequestBuilder.isFinal=
!0;
W.flush();W.logRequestBuilder.isFinal=!1},B9A=function(W){Y0z(W,function(P,x){P=new URL(P);
P.searchParams.set("format","json");var I=!1;try{I=zD().navigator.sendBeacon(P.toString(),x.serialize())}catch(O){}I||(W.isSendBeaconSupported=!1);return I})},Y0z=function(W,P){if(W.pendingEvents.length!==0){var x=new URL(JHk(W));
x.searchParams.delete("format");var I=W.getAuthHeaderValue();I&&x.searchParams.set("auth",I);x.searchParams.set("authuser",W.sessionIndex||"0");for(I=0;I<10&&W.pendingEvents.length;++I){var O=W.pendingEvents.slice(0,32),B=W.logRequestBuilder.build(O,W.numLogsDroppedSinceLastFlush,W.numRetriesSinceLastSuccessfulFlush,W.productID,W.persistedLogRecoveredCount,W.persistedLogExpiredCount);if(!P(x.toString(),B)){++W.numRetriesSinceLastSuccessfulFlush;break}W.numLogsDroppedSinceLastFlush=0;W.numRetriesSinceLastSuccessfulFlush=
0;W.persistedLogRecoveredCount=0;W.persistedLogExpiredCount=0;W.pendingEvents=W.pendingEvents.slice(O.length)}W.JSC$7601_flushTimer.enabled&&W.JSC$7601_flushTimer.stop()}};
ZG.prototype.isRetryable=function(W){return 500<=W&&W<600||W===401||W===0};
var xEc=function(){return"https://play.google.com/log?format=json&hasfast=true"};var yHk=function(){this.abortSupported=typeof AbortController!=="undefined"};
yHk.prototype.send=function(W,P,x){var I=this,O,B,Y,K,Z,d,v,m,t,C;return _.y(function(z){switch(z.nextAddress){case 1:return B=(O=I.abortSupported?new AbortController:void 0)?setTimeout(function(){O.abort()},W.timeoutMillis):void 0,_.OT(z,2,3),Y=Object.assign({},{method:W.requestType,
headers:Object.assign({},W.requestHeaders)},W.body&&{body:W.body},W.withCredentials&&{credentials:"include"},{signal:W.timeoutMillis&&O?O.signal:null}),_.S(z,fetch(W.url,Y),5);case 5:K=z.yieldResult;if(K.status!==200){(Z=x)==null||Z(K.status);z.jumpTo(3);break}if((d=P)==null){z.jumpTo(7);break}return _.S(z,K.text(),8);case 8:d(z.yieldResult);case 7:case 3:_.Jo(z);clearTimeout(B);_.YD(z,0);break;case 2:v=_.yn(z);switch((m=v)==null?void 0:m.name){case "AbortError":(t=x)==null||t(408);break;default:(C=
x)==null||C(400)}z.jumpTo(3)}})};
yHk.prototype.getTransmissionType=function(){return 4};_.Bn=function(W,P){P=P===void 0?"0":P;_.vn.call(this);this.logSource=W;this.sessionIndex=P;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7619_clearExperimentIds=this.productID=null;this.JSC$7619_sendBeaconApiEnabled=!1;this.pageId=null};
_.A(_.Bn,_.vn);var Swt=function(W,P){W.buildLabel=P;return W},oVW=function(W,P){W.network=P;
return W},dSm=function(W,P){W.JSC$7619_clearExperimentIds=P},Z4C=function(W){W.JSC$7619_sendBeaconApiEnabled=!0;
return W};
_.Bn.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Bn.prototype.build=function(){this.network||(this.network=new yHk);var W=new ZG({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:iRd,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.nU(this,W);if(this.buildLabel){var P=this.buildLabel,x=yq(W.logRequestBuilder);
_.SU(x,7,P)}W.JSC$7601_compressor=new aSd;this.componentId&&(W.componentId=this.componentId);this.productID&&(W.productID=this.productID);this.pageId&&(W.pageId=this.pageId);this.JSC$7619_clearExperimentIds&&((x=this.JSC$7619_clearExperimentIds)?(W.experimentIds||(W.experimentIds=new bxP),P=W.experimentIds,x=x.serialize(),_.SU(P,4,x)):W.experimentIds&&_.WP(W.experimentIds,4));this.JSC$7619_sendBeaconApiEnabled&&(W.JSC$7601_sendBeaconApiEnabled=W.isSendBeaconSupported);Lu3(W.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(W);return W};var mS7=function(W,P,x,I,O,B,Y){W=W===void 0?-1:W;P=P===void 0?"":P;x=x===void 0?"":x;I=I===void 0?!1:I;O=O===void 0?"":O;_.vn.call(this);this.logSource=W;this.componentId=P;B?P=B:(W=new _.Bn(W,"0"),W.componentId=P,_.nU(this,W),x!==""&&(W.destinationUrl=x),I&&(W.serviceWorkerScopeEnabled=!0),O&&Swt(W,O),Y&&oVW(W,Y),P=W.build());this.JSC$7623_transport=P};
_.A(mS7,_.vn);mS7.prototype.flush=function(W){W=W||[];if(W.length){for(var P=new ETZ,x=[],I=0;I<W.length;I++){var O=W[I],B=M$m(O);x.push(B);O.clear()}A8(P,1,x);this.JSC$7623_transport.dispatch(P);this.JSC$7623_transport.flush()}};var Kyk=function(W){this.cellValue=W};var S3=function(W,P,x){this.JSC$7628_metricName=W;this.cellType=P;this.fields=x||[];this.cellMap=new Map},D5z=function(W){return W.fields.map(function(P){return P.fieldType})},gTW=function(W){return W.fields.map(function(P){return P.fieldName})};
_.J=S3.prototype;_.J.addCell=function(W){var P=_.tH.apply(1,arguments),x=this.getCells(P);x?x.push(new Kyk(W)):this.JSC$7628_setCell(W,P)};
_.J.JSC$7628_setCell=function(W){var P=this.JSC$7628_getKey(_.tH.apply(1,arguments));this.cellMap.set(P,[new Kyk(W)])};
_.J.getCells=function(){var W=this.JSC$7628_getKey(_.tH.apply(0,arguments));return this.cellMap.has(W)?this.cellMap.get(W):void 0};
_.J.getCell=function(){var W=this.getCells(_.tH.apply(0,arguments));return W&&W.length?W[0]:void 0};
_.J.clear=function(){this.cellMap.clear()};
_.J.JSC$7628_getKey=function(){var W=_.tH.apply(0,arguments);return W?W.join(","):"key"};var Zzb=function(W,P){S3.call(this,W,3,P)};
_.A(Zzb,S3);Zzb.prototype.JSC$7631_incrementCounterBy=function(W){var P=_.tH.apply(1,arguments),x=0,I=this.getCell(P);I&&(x=I.cellValue);this.JSC$7628_setCell(x+W,P)};var oHm=function(W,P){S3.call(this,W,2,P)};
_.A(oHm,S3);oHm.prototype.record=function(W){this.addCell(W,_.tH.apply(1,arguments))};_.uk=function(W){this.id=W};
_.uk.prototype.toString=function(){return this.id};_.d0=function(W,P){this.type=W instanceof _.uk?String(W):W;this.currentTarget=this.target=P;this.defaultPrevented=this.propagationStopped_=!1};
_.d0.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.d0.prototype.preventDefault=function(){this.defaultPrevented=!0};_.s7=function(W,P){_.d0.call(this,W?W.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;W&&this.init(W,P)};
_.J8(_.s7,_.d0);
_.s7.prototype.init=function(W,P){var x=this.type=W.type,I=W.changedTouches&&W.changedTouches.length?W.changedTouches[0]:null;this.target=W.target||W.srcElement;this.currentTarget=P;P=W.relatedTarget;P||(x=="mouseover"?P=W.fromElement:x=="mouseout"&&(P=W.toElement));this.relatedTarget=P;I?(this.clientX=I.clientX!==void 0?I.clientX:I.pageX,this.clientY=I.clientY!==void 0?I.clientY:I.pageY,this.screenX=I.screenX||0,this.screenY=I.screenY||0):(this.offsetX=_.Z2||W.offsetX!==void 0?W.offsetX:W.layerX,
this.offsetY=_.Z2||W.offsetY!==void 0?W.offsetY:W.layerY,this.clientX=W.clientX!==void 0?W.clientX:W.pageX,this.clientY=W.clientY!==void 0?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0);this.button=W.button;this.keyCode=W.keyCode||0;this.key=W.key||"";this.charCode=W.charCode||(x=="keypress"?W.keyCode:0);this.ctrlKey=W.ctrlKey;this.altKey=W.altKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pointerId=W.pointerId||0;this.pointerType=W.pointerType;this.state=W.state;
this.timeStamp=W.timeStamp;this.event_=W;W.defaultPrevented&&_.s7.superClass_.preventDefault.call(this)};
_.s7.prototype.stopPropagation=function(){_.s7.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.s7.prototype.preventDefault=function(){_.s7.superClass_.preventDefault.call(this);var W=this.event_;W.preventDefault?W.preventDefault():W.returnValue=!1};var S0c="closure_listenable_"+(Math.random()*1E6|0),v1=function(W){return!(!W||!W[S0c])};var uVk=0;var dEi=function(W,P,x,I,O){this.listener=W;this.proxy=null;this.src=P;this.type=x;this.capture=!!I;this.handler=O;this.key=++uVk;this.removed=this.callOnce=!1},s$i=function(W){W.removed=!0;
W.listener=null;W.proxy=null;W.src=null;W.handler=null};Jz.prototype.add=function(W,P,x,I,O){var B=W.toString();W=this.listeners[B];W||(W=this.listeners[B]=[],this.typeCount_++);var Y=vHA(W,P,I,O);Y>-1?(P=W[Y],x||(P.callOnce=!1)):(P=new dEi(P,this.src,B,!!I,O),P.callOnce=x,W.push(P));return P};
Jz.prototype.remove=function(W,P,x,I){W=W.toString();if(!(W in this.listeners))return!1;var O=this.listeners[W];P=vHA(O,P,x,I);return P>-1?(s$i(O[P]),_.TR(O,P),O.length==0&&(delete this.listeners[W],this.typeCount_--),!0):!1};
var mEc=function(W,P){var x=P.type;if(!(x in W.listeners))return!1;var I=_.Ft(W.listeners[x],P);I&&(s$i(P),W.listeners[x].length==0&&(delete W.listeners[x],W.typeCount_--));return I};
Jz.prototype.removeAll=function(W){W=W&&W.toString();var P=0,x;for(x in this.listeners)if(!W||x==W){for(var I=this.listeners[x],O=0;O<I.length;O++)++P,s$i(I[O]);delete this.listeners[x];this.typeCount_--}return P};
Jz.prototype.getListener=function(W,P,x,I){W=this.listeners[W.toString()];var O=-1;W&&(O=vHA(W,P,x,I));return O>-1?W[O]:null};
Jz.prototype.hasListener=function(W,P){var x=W!==void 0,I=x?W.toString():"",O=P!==void 0;return _.jU.some(this.listeners,function(B){for(var Y=0;Y<B.length;++Y)if(!(x&&B[Y].type!=I||O&&B[Y].capture!=P))return!0;return!1})};
var vHA=function(W,P,x,I){for(var O=0;O<W.length;++O){var B=W[O];if(!B.removed&&B.listener==P&&B.capture==!!x&&B.handler==I)return O}return-1};var V5l,t5b,p6d,Q$i,C5k,Kt,Z1,GIW,AHP,z5i,mz,EHl,j$p;V5l="closure_lm_"+(Math.random()*1E6|0);t5b={};p6d=0;_.uq=function(W,P,x,I,O){if(I&&I.once)return Kt(W,P,x,I,O);if(Array.isArray(P)){for(var B=0;B<P.length;B++)_.uq(W,P[B],x,I,O);return null}x=j$p(x);return v1(W)?W.listen(P,x,_.Jw(I)?!!I.capture:!!I,O):Q$i(W,P,x,!1,I,O)};
Q$i=function(W,P,x,I,O,B){if(!P)throw Error("za");var Y=_.Jw(O)?!!O.capture:!!O,K=mz(W);K||(W[V5l]=K=new Jz(W));x=K.add(P,x,I,Y,B);if(x.proxy)return x;I=C5k();x.proxy=I;I.src=W;I.listener=x;if(W.addEventListener)_.hA7||(O=Y),O===void 0&&(O=!1),W.addEventListener(P.toString(),I,O);else if(W.attachEvent)W.attachEvent(AHP(P.toString()),I);else if(W.addListener&&W.removeListener)W.addListener(I);else throw Error("Aa");p6d++;return x};
C5k=function(){var W=z5i,P=function(x){return W.call(P.src,P.listener,x)};
return P};
Kt=function(W,P,x,I,O){if(Array.isArray(P)){for(var B=0;B<P.length;B++)Kt(W,P[B],x,I,O);return null}x=j$p(x);return v1(W)?W.listenOnce(P,x,_.Jw(I)?!!I.capture:!!I,O):Q$i(W,P,x,!0,I,O)};
_.Vq=function(W,P,x,I,O){if(Array.isArray(P))for(var B=0;B<P.length;B++)_.Vq(W,P[B],x,I,O);else I=_.Jw(I)?!!I.capture:!!I,x=j$p(x),v1(W)?W.unlisten(P,x,I,O):W&&(W=mz(W))&&(P=W.getListener(P,x,I,O))&&Z1(P)};
Z1=function(W){if(typeof W==="number"||!W||W.removed)return!1;var P=W.src;if(v1(P))return mEc(P.eventTargetListeners_,W);var x=W.type,I=W.proxy;P.removeEventListener?P.removeEventListener(x,I,W.capture):P.detachEvent?P.detachEvent(AHP(x),I):P.addListener&&P.removeListener&&P.removeListener(I);p6d--;(x=mz(P))?(mEc(x,W),x.typeCount_==0&&(x.src=null,P[V5l]=null)):s$i(W);return!0};
GIW=function(W,P,x,I,O){x=j$p(x);I=!!I;return v1(W)?W.getListener(P,x,I,O):W?(W=mz(W))?W.getListener(P,x,I,O):null:null};
AHP=function(W){return W in t5b?t5b[W]:t5b[W]="on"+W};
z5i=function(W,P){if(W.removed)W=!0;else{P=new _.s7(P,this);var x=W.listener,I=W.handler||W.src;W.callOnce&&Z1(W);W=x.call(I,P)}return W};
mz=function(W){W=W[V5l];return W instanceof Jz?W:null};
EHl="__closure_events_fn_"+(Math.random()*1E9>>>0);j$p=function(W){if(typeof W==="function")return W;W[EHl]||(W[EHl]=function(P){return W.handleEvent(P)});
return W[EHl]};_.tW=function(){_.vn.call(this);this.eventTargetListeners_=new Jz(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.J8(_.tW,_.vn);_.tW.prototype[S0c]=!0;_.J=_.tW.prototype;_.J.setParentEventTarget=function(W){this.parentEventTarget_=W};
_.J.addEventListener=function(W,P,x,I){_.uq(this,W,P,x,I)};
_.J.removeEventListener=function(W,P,x,I){_.Vq(this,W,P,x,I)};
_.J.dispatchEvent=function(W){var P,x=this.parentEventTarget_;if(x)for(P=[];x;x=x.parentEventTarget_)P.push(x);x=this.actualEventTarget_;var I=W.type||W;if(typeof W==="string")W=new _.d0(W,x);else if(W instanceof _.d0)W.target=W.target||x;else{var O=W;W=new _.d0(I,x);_.jU.extend(W,O)}O=!0;var B;if(P)for(B=P.length-1;!W.propagationStopped_&&B>=0;B--){var Y=W.currentTarget=P[B];O=gHM(Y,I,!0,W)&&O}W.propagationStopped_||(Y=W.currentTarget=x,O=gHM(Y,I,!0,W)&&O,W.propagationStopped_||(O=gHM(Y,I,!1,W)&&
O));if(P)for(B=0;!W.propagationStopped_&&B<P.length;B++)Y=W.currentTarget=P[B],O=gHM(Y,I,!1,W)&&O;return O};
_.J.disposeInternal=function(){_.tW.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.J.listen=function(W,P,x,I){return this.eventTargetListeners_.add(String(W),P,!1,x,I)};
_.J.listenOnce=function(W,P,x,I){return this.eventTargetListeners_.add(String(W),P,!0,x,I)};
_.J.unlisten=function(W,P,x,I){return this.eventTargetListeners_.remove(String(W),P,x,I)};
_.J.removeAllListeners=function(W){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(W):0};
var gHM=function(W,P,x,I){P=W.eventTargetListeners_.listeners[String(P)];if(!P)return!0;P=P.concat();for(var O=!0,B=0;B<P.length;++B){var Y=P[B];if(Y&&!Y.removed&&Y.capture==x){var K=Y.listener,Z=Y.handler||Y.src;Y.callOnce&&mEc(W.eventTargetListeners_,Y);O=K.call(Z,I)!==!1&&O}}return O&&!I.defaultPrevented};
_.tW.prototype.getListener=function(W,P,x,I){return this.eventTargetListeners_.getListener(String(W),P,x,I)};
_.tW.prototype.hasListener=function(W,P){return this.eventTargetListeners_.hasListener(W!==void 0?String(W):void 0,P)};var pA=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(W){return W&&AsyncContext.Snapshot.wrap(W)}:function(W){return W};var DEp=function(W,P){this.create_=W;this.reset_=P;this.occupants_=0;this.JSC$7663_head_=null};
DEp.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var W=this.JSC$7663_head_;this.JSC$7663_head_=W.next;W.next=null}else W=this.create_();return W};
DEp.prototype.put=function(W){this.reset_(W);this.occupants_<100&&(this.occupants_++,W.next=this.JSC$7663_head_,this.JSC$7663_head_=W)};var M5b=function(){this.workTail_=this.workHead_=null};
M5b.prototype.add=function(W,P){var x=RIx.get();x.set(W,P);this.workTail_?this.workTail_.next=x:this.workHead_=x;this.workTail_=x};
M5b.prototype.remove=function(){var W=null;this.workHead_&&(W=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),W.next=null);return W};
var RIx=new DEp(function(){return new $EM},function(W){return W.reset()}),$EM=function(){this.next=this.scope=this.fn=null};
$EM.prototype.set=function(W,P){this.fn=W;this.scope=P;this.next=null};
$EM.prototype.reset=function(){this.next=this.scope=this.fn=null};var w6M,FxA,iUm,h5Z;FxA=!1;iUm=new M5b;_.j3=function(W,P){w6M||h5Z();FxA||(w6M(),FxA=!0);iUm.add(W,P)};
h5Z=function(){var W=Promise.resolve(void 0);w6M=function(){W.then(qW8)}};var Hzw=function(W){W.prototype.$goog_Thenable=!0},e5W=function(W){if(!W)return!1;
try{return!!W.$goog_Thenable}catch(P){return!1}};var cHZ,aHz,bzM,UEc,X6d,fHA,rHw,Fyl,PtP,Lyw,MCR;_.yE=function(W,P){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(W!=_.me)try{var x=this;W.call(P,function(I){x.resolve_(2,I)},function(I){x.resolve_(3,I)})}catch(I){this.resolve_(3,I)}};
cHZ=function(){this.next=this.context=this.JSC$7674_onRejected=this.JSC$7674_onFulfilled=this.child=null;this.always=!1};
cHZ.prototype.reset=function(){this.context=this.JSC$7674_onRejected=this.JSC$7674_onFulfilled=this.child=null;this.always=!1};
aHz=new DEp(function(){return new cHZ},function(W){W.reset()});
bzM=function(W,P,x){var I=aHz.get();I.JSC$7674_onFulfilled=W;I.JSC$7674_onRejected=P;I.context=x;return I};
_.Jn=function(W){if(W instanceof _.yE)return W;var P=new _.yE(_.me);P.resolve_(2,W);return P};
_.s2=function(W){return new _.yE(function(P,x){x(W)})};
UEc=function(W,P,x){kIM(W,P,x,null)||_.j3(_.ou(P,W))};
_.Qq=function(W){return new _.yE(function(P,x){var I=W.length,O=[];if(I)for(var B=function(d,v){I--;O[d]=v;I==0&&P(O)},Y=function(d){x(d)},K,Z=0;Z<W.length;Z++)K=W[Z],UEc(K,_.ou(B,Z),Y);
else P(O)})};
X6d=function(W){return new _.yE(function(P){var x=W.length,I=[];if(x)for(var O=function(K,Z,d){x--;I[K]=Z?{fulfilled:!0,value:d}:{fulfilled:!1,reason:d};x==0&&P(I)},B,Y=0;Y<W.length;Y++)B=W[Y],UEc(B,_.ou(O,Y,!0),_.ou(O,Y,!1));
else P(I)})};
fHA=function(W){return new _.yE(function(P,x){var I=W.length,O=[];if(I)for(var B=function(d){P(d)},Y=function(d,v){I--;
O[d]=v;I==0&&x(O)},K,Z=0;Z<W.length;Z++)K=W[Z],UEc(K,B,_.ou(Y,Z));
else P(void 0)})};
_.aP=function(){var W,P,x=new _.yE(function(I,O){W=I;P=O});
return new N9W(x,W,P)};
_.yE.prototype.then=function(W,P,x){return lHl(this,pA(typeof W==="function"?W:null),pA(typeof P==="function"?P:null),x)};
Hzw(_.yE);rHw=function(W,P,x,I){T9c(W,bzM(P||_.me,x||null,I))};
_.CA=function(W,P){P=pA(P);P=bzM(P,P);P.always=!0;T9c(W,P);return W};
_.yE.prototype.finally=function(W){var P=this;W=pA(W);return new Promise(function(x,I){rHw(P,function(O){W();x(O)},function(O){W();
I(O)})})};
_.yE.prototype.thenCatch=function(W,P){return lHl(this,null,pA(W),P)};
_.yE.prototype.catch=_.yE.prototype.thenCatch;_.yE.prototype.cancel=function(W){if(this.state_==0){var P=new _.Rq(W);_.j3(function(){izP(this,P)},this)}};
var izP=function(W,P){if(W.state_==0)if(W.parent_){var x=W.parent_;if(x.callbackEntries_){for(var I=0,O=null,B=null,Y=x.callbackEntries_;Y&&(Y.always||(I++,Y.child==W&&(O=Y),!(O&&I>1)));Y=Y.next)O||(B=Y);O&&(x.state_==0&&I==1?izP(x,P):(B?(I=B,I.next==x.callbackEntriesTail_&&(x.callbackEntriesTail_=I),I.next=I.next.next):R5Z(x),Fyl(x,O,3,P)))}W.parent_=null}else W.resolve_(3,P)},T9c=function(W,P){W.callbackEntries_||W.state_!=2&&W.state_!=3||q0A(W);
W.callbackEntriesTail_?W.callbackEntriesTail_.next=P:W.callbackEntries_=P;W.callbackEntriesTail_=P},lHl=function(W,P,x,I){var O=bzM(null,null,null);
O.child=new _.yE(function(B,Y){O.JSC$7674_onFulfilled=P?function(K){try{var Z=P.call(I,K);B(Z)}catch(d){Y(d)}}:B;
O.JSC$7674_onRejected=x?function(K){try{var Z=x.call(I,K);Z===void 0&&K instanceof _.Rq?Y(K):B(Z)}catch(d){Y(d)}}:Y});
O.child.parent_=W;T9c(W,O);return O.child};
_.yE.prototype.unblockAndFulfill_=function(W){this.state_=0;this.resolve_(2,W)};
_.yE.prototype.unblockAndReject_=function(W){this.state_=0;this.resolve_(3,W)};
_.yE.prototype.resolve_=function(W,P){this.state_==0&&(this===P&&(W=3,P=new TypeError("Ba")),this.state_=1,kIM(P,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=P,this.state_=W,this.parent_=null,q0A(this),W!=3||P instanceof _.Rq||Lyw(this,P)))};
var kIM=function(W,P,x,I){if(W instanceof _.yE)return rHw(W,P,x,I),!0;if(e5W(W))return W.then(P,x,I),!0;if(_.Jw(W))try{var O=W.then;if(typeof O==="function")return WJP(W,O,P,x,I),!0}catch(B){return x.call(I,B),!0}return!1},WJP=function(W,P,x,I,O){var B=!1,Y=function(Z){B||(B=!0,x.call(O,Z))},K=function(Z){B||(B=!0,I.call(O,Z))};
try{P.call(W,Y,K)}catch(Z){K(Z)}},q0A=function(W){W.executing_||(W.executing_=!0,_.j3(W.executeCallbacks_,W))},R5Z=function(W){var P=null;
W.callbackEntries_&&(P=W.callbackEntries_,W.callbackEntries_=P.next,P.next=null);W.callbackEntries_||(W.callbackEntriesTail_=null);return P};
_.yE.prototype.executeCallbacks_=function(){for(var W;W=R5Z(this);)Fyl(this,W,this.state_,this.result_);this.executing_=!1};
Fyl=function(W,P,x,I){if(x==3&&P.JSC$7674_onRejected&&!P.always)for(;W&&W.hadUnhandledRejection_;W=W.parent_)W.hadUnhandledRejection_=!1;if(P.child)P.child.parent_=null,PtP(P,x,I);else try{P.always?P.JSC$7674_onFulfilled.call(P.context):PtP(P,x,I)}catch(O){MCR.call(null,O)}aHz.put(P)};
PtP=function(W,P,x){P==2?W.JSC$7674_onFulfilled.call(W.context,x):W.JSC$7674_onRejected&&W.JSC$7674_onRejected.call(W.context,x)};
Lyw=function(W,P){W.hadUnhandledRejection_=!0;_.j3(function(){W.hadUnhandledRejection_&&MCR.call(null,P)})};
MCR=OU;_.Rq=function(W){_.Wd.call(this,W)};
_.J8(_.Rq,_.Wd);_.Rq.prototype.name="cancel";var N9W=function(W,P,x){this.promise=W;this.resolve=P;this.reject=x};var AW;_.Fm=function(W,P){_.tW.call(this);this.JSC$7686_interval_=W||1;this.timerObject_=P||_.xW;this.boundTick_=(0,_.mx)(this.tick_,this);this.last_=_.O1()};
_.J8(_.Fm,_.tW);_.J=_.Fm.prototype;_.J.enabled=!1;_.J.JSC$7688_timer_=null;_.J.setInterval=function(W){this.JSC$7686_interval_=W;this.JSC$7688_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7688_timer_&&this.stop()};
_.J.tick_=function(){if(this.enabled){var W=_.O1()-this.last_;W>0&&W<this.JSC$7686_interval_*.8?this.JSC$7688_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7686_interval_-W):(this.JSC$7688_timer_&&(this.timerObject_.clearTimeout(this.JSC$7688_timer_),this.JSC$7688_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.J.start=function(){this.enabled=!0;this.JSC$7688_timer_||(this.JSC$7688_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7686_interval_),this.last_=_.O1())};
_.J.stop=function(){this.enabled=!1;this.JSC$7688_timer_&&(this.timerObject_.clearTimeout(this.JSC$7688_timer_),this.JSC$7688_timer_=null)};
_.J.disposeInternal=function(){_.Fm.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
AW=function(W,P,x){if(typeof W==="function")x&&(W=(0,_.mx)(W,x));else if(W&&typeof W.handleEvent=="function")W=(0,_.mx)(W.handleEvent,W);else throw Error("Ca");return Number(P)>2147483647?-1:_.xW.setTimeout(W,P||0)};
_.xid=function(W){var P=null;return(new _.yE(function(x,I){P=AW(function(){x(void 0)},W);
P==-1&&I(Error("Da"))})).thenCatch(function(x){_.xW.clearTimeout(P);
throw x;})};var Yj=function(W){_.vn.call(this);this.streamzLogger=W;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7692_flushTimer=new _.Fm(this.flushInterval);this.JSC$7692_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.nU(this,this.JSC$7692_flushTimer)};
_.A(Yj,_.vn);Yj.prototype.sendIsolatedPayload=function(W){this.shouldSendIsolatedPayload=W;this.invocationLimit=1};
var IuW=function(W){W.JSC$7692_flushTimer.enabled||W.JSC$7692_flushTimer.start();W.invocationCount++;W.invocationCount>=W.invocationLimit&&W.snapshotAndFlush()};
Yj.prototype.snapshotAndFlush=function(){var W=this.metricMap.values();W=[].concat(_.ju(W)).filter(function(P){return P.cellMap.size});
W.length&&this.streamzLogger.flush(W,this.shouldSendIsolatedPayload);Old(W);this.invocationCount=0;this.JSC$7692_flushTimer.enabled&&this.JSC$7692_flushTimer.stop()};
Yj.prototype.addNewCounter=function(W){var P=_.tH.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new Zzb(W,P))};
Yj.prototype.addNewEventMetric=function(W){var P=_.tH.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new oHm(W,P))};
var Jo3=function(W,P){return W.disabledMetrics.has(P)?void 0:W.metricMap.get(P)};
Yj.prototype.JSC$7692_incrementCounter=function(W){this.JSC$7692_incrementCounterBy(W,1,_.tH.apply(1,arguments))};
Yj.prototype.JSC$7692_incrementCounterBy=function(W,P){var x=_.tH.apply(2,arguments),I=Jo3(this,W);I&&I instanceof Zzb&&(I.JSC$7631_incrementCounterBy(P,x),IuW(this))};
Yj.prototype.record=function(W,P){var x=_.tH.apply(2,arguments),I=Jo3(this,W);I&&I instanceof oHm&&(I.record(P,x),IuW(this))};
var Old=function(W){for(var P=0;P<W.length;P++)W[P].clear()};_.zQ=function(W,P,x){x=x===void 0?{}:x;P=Error.call(this,P);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=W;this.metadata=x;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(_.zQ,Error);_.zQ.prototype.toString=function(){var W="RpcError("+(W9d(this.code)||String(this.code))+")";this.message&&(W+=": "+this.message);return W};_.B_W=_.xW.JSON.parse;_.GQ=_.xW.JSON.stringify;_.jn=_.xW.JSON.parse;_.nDZ=function(W){switch(W){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 YTz=function(W){switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var yoM,KJp=function(){};
_.J8(KJp,_.P_m);KJp.prototype.createInstance=function(){return new XMLHttpRequest};
yoM=new KJp;_.E7=function(W){_.tW.call(this);this.headers=new Map;this.JSC$7701_xmlHttpFactory_=W||null;this.JSC$7701_active_=!1;this.JSC$7701_xhr_=null;this.JSC$7701_lastUri_="";this.JSC$7701_lastErrorCode_=0;this.JSC$7701_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7701_timeoutId_=null;this.responseType_="";this.JSC$7701_withCredentials_=!1};
_.J8(_.E7,_.tW);var Zlw=/^https?$/i,oDA=["POST","PUT"],STk=[],yWx=function(W,P,x,I,O,B,Y){var K=new _.E7;STk.push(K);P&&K.listen("complete",P);K.listenOnce("ready",K.cleanupSend_);B&&(K.timeoutInterval_=Math.max(0,B));Y&&(K.JSC$7701_withCredentials_=Y);K.send(W,x,I,O)};
_.E7.prototype.cleanupSend_=function(){this.dispose();_.Ft(STk,this)};
_.E7.prototype.send=function(W,P,x,I){if(this.JSC$7701_xhr_)throw Error("Ea`"+this.JSC$7701_lastUri_+"`"+W);P=P?P.toUpperCase():"GET";this.JSC$7701_lastUri_=W;this.JSC$7701_lastError_="";this.JSC$7701_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7701_active_=!0;this.JSC$7701_xhr_=this.createXhr();this.JSC$7701_xhr_.onreadystatechange=pA((0,_.mx)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7701_xhr_.open(P,String(W),!0),this.inOpen_=!1}catch(Y){ubw(this,Y);return}W=x||"";x=new Map(this.headers);
if(I)if(Object.getPrototypeOf(I)===Object.prototype)for(var O in I)x.set(O,I[O]);else if(typeof I.keys==="function"&&typeof I.get==="function"){O=_.n(I.keys());for(var B=O.next();!B.done;B=O.next())B=B.value,x.set(B,I.get(B))}else throw Error("Fa`"+String(I));I=Array.from(x.keys()).find(function(Y){return"content-type"==Y.toLowerCase()});
O=_.xW.FormData&&W instanceof _.xW.FormData;!_.N7(oDA,P)||I||O||x.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");P=_.n(x);for(I=P.next();!I.done;I=P.next())x=_.n(I.value),I=x.next().value,x=x.next().value,this.JSC$7701_xhr_.setRequestHeader(I,x);this.responseType_&&(this.JSC$7701_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7701_xhr_&&this.JSC$7701_xhr_.withCredentials!==this.JSC$7701_withCredentials_&&(this.JSC$7701_xhr_.withCredentials=this.JSC$7701_withCredentials_);
try{this.JSC$7701_timeoutId_&&(clearTimeout(this.JSC$7701_timeoutId_),this.JSC$7701_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7701_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7701_xhr_.send(W),this.inSend_=!1}catch(Y){ubw(this,Y)}};
_.E7.prototype.createXhr=function(){return this.JSC$7701_xmlHttpFactory_?this.JSC$7701_xmlHttpFactory_.createInstance():yoM.createInstance()};
_.E7.prototype.timeout_=function(){typeof TIt!="undefined"&&this.JSC$7701_xhr_&&(this.JSC$7701_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7701_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var ubw=function(W,P){W.JSC$7701_active_=!1;W.JSC$7701_xhr_&&(W.inAbort_=!0,W.JSC$7701_xhr_.abort(),W.inAbort_=!1);W.JSC$7701_lastError_=P;W.JSC$7701_lastErrorCode_=5;diz(W);stp(W)},diz=function(W){W.errorDispatched_||(W.errorDispatched_=!0,W.dispatchEvent("complete"),W.dispatchEvent("error"))};
_.E7.prototype.abort=function(W){this.JSC$7701_xhr_&&this.JSC$7701_active_&&(this.JSC$7701_active_=!1,this.inAbort_=!0,this.JSC$7701_xhr_.abort(),this.inAbort_=!1,this.JSC$7701_lastErrorCode_=W||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),stp(this))};
_.E7.prototype.disposeInternal=function(){this.JSC$7701_xhr_&&(this.JSC$7701_active_&&(this.JSC$7701_active_=!1,this.inAbort_=!0,this.JSC$7701_xhr_.abort(),this.inAbort_=!1),stp(this,!0));_.E7.superClass_.disposeInternal.call(this)};
_.E7.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)vD3(this);else this.onReadyStateChangeEntryPoint_()};
_.E7.prototype.onReadyStateChangeEntryPoint_=function(){vD3(this)};
var vD3=function(W){if(W.JSC$7701_active_&&typeof TIt!="undefined")if(W.inSend_&&_.g0(W)==4)setTimeout(W.onReadyStateChange_.bind(W),0);else if(W.dispatchEvent("readystatechange"),W.isComplete()){W.JSC$7701_active_=!1;try{if(W.isSuccess())W.dispatchEvent("complete"),W.dispatchEvent("success");else{W.JSC$7701_lastErrorCode_=6;try{var P=_.g0(W)>2?W.JSC$7701_xhr_.statusText:""}catch(x){P=""}W.JSC$7701_lastError_=P+" ["+W.getStatus()+"]";diz(W)}}finally{stp(W)}}},stp=function(W,P){if(W.JSC$7701_xhr_){W.JSC$7701_timeoutId_&&
(clearTimeout(W.JSC$7701_timeoutId_),W.JSC$7701_timeoutId_=null);
var x=W.JSC$7701_xhr_;W.JSC$7701_xhr_=null;P||W.dispatchEvent("ready");try{x.onreadystatechange=null}catch(I){}}};
_.E7.prototype.isActive=function(){return!!this.JSC$7701_xhr_};
_.E7.prototype.isComplete=function(){return _.g0(this)==4};
_.E7.prototype.isSuccess=function(){var W=this.getStatus(),P;if(!(P=YTz(W))){if(W=W===0)W=Gdm(String(this.JSC$7701_lastUri_)),W=!Zlw.test(W);P=W}return P};
_.g0=function(W){return W.JSC$7701_xhr_?W.JSC$7701_xhr_.readyState:0};
_.J=_.E7.prototype;_.J.getStatus=function(){try{return _.g0(this)>2?this.JSC$7701_xhr_.status:-1}catch(W){return-1}};
_.J.getResponseText=function(){try{return this.JSC$7701_xhr_?this.JSC$7701_xhr_.responseText:""}catch(W){return""}};
_.J.getResponse=function(){try{if(!this.JSC$7701_xhr_)return null;if("response"in this.JSC$7701_xhr_)return this.JSC$7701_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7701_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7701_xhr_)return this.JSC$7701_xhr_.mozResponseArrayBuffer}return null}catch(W){return null}};
_.J.getAllResponseHeaders=function(){return this.JSC$7701_xhr_&&_.g0(this)>=2?this.JSC$7701_xhr_.getAllResponseHeaders()||"":""};
_.J.getLastError=function(){return typeof this.JSC$7701_lastError_==="string"?this.JSC$7701_lastError_:String(this.JSC$7701_lastError_)};var u8R=function(){};
u8R.prototype.send=function(W,P,x){P=P===void 0?function(){}:P;
x=x===void 0?function(){}:x;
yWx(W.url,function(I){I=I.target;I.isSuccess()?P(I.getResponseText()):x(I.getStatus())},W.requestType,W.body,W.requestHeaders,W.timeoutMillis,W.withCredentials)};
u8R.prototype.getTransmissionType=function(){return 1};var mi3=function(W,P){this.logger=W;this.event=P;this.startTime=yk()};
mi3.prototype.done=function(){this.logger.vt(this.event,yk()-this.startTime)};
var DG=function(){O7.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.A(DG,O7);var Mm=function(W,P,x){var I=yk();P=P();W.vt(x,yk()-I);return P},tj8=function(){DG.apply(this,arguments)};
_.A(tj8,DG);_.J=tj8.prototype;_.J.ihR=function(){};
_.J.gO=function(){};
_.J.vt=function(){};
_.J.logError=function(){};
_.J.zP=function(){};
_.J.s5A=function(){};
_.J.pNK=function(){};
_.J.cFd=function(){};
_.J.s6w=function(){};
var VuA=function(W){DG.call(this);var P=this;this.logger=W;this.TEST_ONLY={oZb:function(){return P.logger},
getExperimentIds:function(){return P.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void P.logger.dispose()})};
_.A(VuA,DG);_.J=VuA.prototype;_.J.update=function(W){this.logger.dispose();this.logger=W};
_.J.gO=function(W){this.logger.gO(W)};
_.J.vt=function(W,P){this.logger.vt(W,P)};
_.J.logError=function(W){this.logger.logError(W)};
_.J.zP=function(){this.logger.zP()};
_.J.s5A=function(W){this.logger.s5A(W)};
_.J.pNK=function(W){this.logger.pNK(W)};
_.J.cFd=function(W){this.logger.cFd(W)};
_.J.s6w=function(W){this.logger.s6w(W)};
_.J.ihR=function(W){this.logger.ihR(W)};
var tu3=function(W,P){_.vn.call(this);var x=this;this.callback=W;this.nFS=P;this.w4p=-P;this.addOnDisposeCallback(function(){return void clearTimeout(x.timer)})};
_.A(tu3,_.vn);var prz=function(W){if(W.timer===void 0){var P=Math.max(0,W.w4p+W.nFS-yk());W.timer=setTimeout(function(){try{W.callback()}finally{W.w4p=yk(),W.timer=void 0}},P)}},jtb=function(W,P){DG.call(this);
this.metrics=W;this.cD=P};
_.A(jtb,DG);_.J=jtb.prototype;_.J.ihR=function(W){this.metrics.vky.record(W,this.cD)};
_.J.gO=function(W){this.metrics.eventCount.increment(W,this.cD)};
_.J.vt=function(W,P){this.metrics.x1w.record(P,W,this.cD)};
_.J.logError=function(W){this.metrics.errorCount.increment(W,this.cD)};
_.J.s5A=function(W){this.metrics.cHF.increment(W,this.cD)};
_.J.pNK=function(W){this.metrics.f7M.increment(W,this.cD)};
_.J.cFd=function(W){this.metrics.ogQ.increment(W,this.cD)};
var pJR=function(W,P){P=P===void 0?[]:P;var x={cD:W.cD||"_",vga:W.vga||[],oaK:W.oaK|0,destinationUrl:W.destinationUrl,tBQ:W.tBQ||function(){},
pU:W.pU||function(B,Y){return Vjm(B,Y,x.tBQ,x.destinationUrl)}},I=x.pU("49",x.vga.concat(P));
jtb.call(this,K9S(I),x.cD);var O=this;this.TEST_ONLY={getExperimentIds:function(){return O.options.vga.concat(O.vQW).sort(function(B,Y){return B-Y})}};
this.options=x;this.service=I;this.qSo=!W.pU;this.flushDebouncer=new tu3(function(){return void O.service.snapshotAndFlush()},x.oaK);
this.addOnDisposeCallback(function(){O.flushDebouncer.dispose();O.qSo&&O.service.dispose()});
(this.vQW=P.slice()).sort(_.Z3)};
_.A(pJR,jtb);pJR.prototype.s6w=function(W){var P=this;W=W.slice();W.sort(_.Z3);_.oW(W,this.vQW)||(this.flushDebouncer.dispose(),this.qSo&&this.service.dispose(),this.service=this.options.pU("49",this.options.vga.concat(W)),this.flushDebouncer=new tu3(function(){return void P.service.snapshotAndFlush()},this.options.oaK),this.metrics=K9S(this.service),this.vQW=W)};
pJR.prototype.zP=function(){prz(this.flushDebouncer)};var VRG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(VRG,_.aK);_.tRR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(_.tRR,_.aK);var WX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W,0,WX.messageId)};
_.A(WX,_.aK);var QtA=_.x5S(WX);WX.messageId="bfkj";var czC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(czC,_.aK);var CtZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(CtZ,_.aK);var AoM=_.P6(CtZ);_.If=function(){var W=this;this.promise=new Promise(function(P,x){W.resolve=P;W.reject=x})};_.$f=function(W){_.vn.call(this);var P=this;this.y8a=Math.floor(Math.random()*200);this.hnA=new CtZ;if("challenge"in W&&QtA(W.challenge)){var x=_.MY(W.challenge,4,void 0,Nb);var I=_.MY(W.challenge,5,void 0,Nb);_.MY(W.challenge,7,void 0,Nb)&&(this.hnA=AoM(_.MY(W.challenge,7,void 0,Nb)))}else x=W.program,I=W.globalName;this.addOnDisposeCallback(function(){var z,D,w;return _.y(function(a){if(a.nextAddress==1)return _.S(a,P.gnd,2);z=a.yieldResult;D=z.b6C;(w=D)==null||w();_.Kl(a)})});
this.logger=jCt(W.gU||{},this.hnA,W.dM5);_.nU(this,this.logger);var O=new _.If;this.gnd=O.promise;this.logger.gO("t");var B=this.logger.share(),Y=new mi3(B,"t"),K=function(z,D,w,a){if(!P.logger.isDisposed()){var k="k";D?k="h":w&&(k="u");k!=="k"?a!==0&&(P.logger.gO(k),P.logger.vt(k,z)):P.y8a<=0?(P.logger.gO(k),P.logger.vt(k,z),P.y8a=Math.floor(Math.random()*200)):P.y8a--}},Z=function(z,D,w,a){Promise.resolve().then(function(){Y.done();
B.zP();B.dispose();O.resolve({hed:z,b6C:D,dNu:w,tNA:a})})};
if(!_.xW[I])throw this.logger.logError(25),Error("Ga");if(!_.xW[I].a)throw this.logger.logError(26),Error("Ha");try{var d=_.xW[I].a;I=[];for(var v=[],m=aVx(this.hnA),t=0;t<m.length;t++)I.push(m[t]),v.push(1);var C=bU8(this.hnA);for(m=0;m<C.length;m++)I.push(C[m]),v.push(2);this.xdb=_.n(d(x,Z,!0,W.rNM,K,[I,v],_.MY(this.hnA,5))).next().value;this.fPT=O.promise.then(function(){})}catch(z){throw this.logger.logError(28),z;
}};
_.A(_.$f,_.vn);_.$f.prototype.snapshot=function(W){if(this.isDisposed())throw Error("Ia");this.logger.gO("n");var P=this.logger.share();return this.gnd.then(function(x){var I=x.hed;return new Promise(function(O){var B=new mi3(P,"n");I(function(Y){B.done();P.ihR(Y.length);P.zP();P.dispose();O(Y)},[W.za,
W.wra,W.x5F,W.tCT])})})};
_.zYw=function(W,P){if(W.isDisposed())throw Error("Ia");W.logger.gO("n");var x=Mm(W.logger,function(){return W.xdb([P.za,P.wra,P.x5F,P.tCT])},"n");
W.logger.ihR(x.length);W.logger.zP();return x};
_.$f.prototype.vxc=function(W){this.gnd.then(function(P){var x;(x=P.dNu)==null||x(W)})};
_.$f.prototype.uJQ=function(W,P){return this.gnd.then(function(x){var I;return(I=x.tNA)==null?void 0:I(W,P,!1)})};
_.$f.prototype.b9w=function(){return this.logger.share()};var GEi=function(){this.jrJ={};this.okJ=null},EDZ=function(){GEi.instance||(GEi.instance=new GEi);
return GEi.instance},Dip=function(W,P){return gDp(W,_.qM(P,VRG,1,Nb),_.qM(P,_.tRR,2,Nb),_.MY(P,3,void 0,Nb))},gDp=function(W,P,x,I){if(!P&&!x)return Promise.resolve();
if(!I)return flG(P,x);var O;(O=W.jrJ)[I]||(O[I]=new Promise(function(B,Y){flG(P,x).then(function(){W.okJ=I;B()},function(K){delete W.jrJ[I];
Y(K)})}));
return W.jrJ[I]};var MuW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(MuW,_.aK);var $ip=function(W,P){return _.PX(W,1,P)},wrP=function(W,P){return _.PX(W,2,P)};var w0=function(W){_.vn.call(this);var P=this;this.options=W;this.eDO=new _.If;this.fPT=this.eDO.promise;this.e5R=new _.If;this.nvJ=1;this.aFO=new _.If;this.uIs=[];this.zYg=W.zYg||function(){};
this.logger=new VuA(jCt(W.gU||{}));hYm(this,W.cu,W.fV1,W.vWm,W.uXD,Object.assign({},HlW,W.wlT||{}));this.addOnDisposeCallback(function(){return void eYb(P)})};
_.A(w0,_.vn);w0.prototype.snapshot=function(W){var P=this;return _.y(function(x){switch(x.nextAddress){case 1:if(P.isDisposed())throw Error("Ia");if(P.lm||P.pgW){x.jumpTo(2);break}return _.S(x,P.e5R.promise,2);case 2:if(!P.lm){x.jumpTo(4);break}return _.S(x,P.lm.snapshot(W),5);case 5:return x.return(x.yieldResult);case 4:throw P.pgW;}})};
var com=function(W){var P;return _.y(function(x){if(W.isDisposed())throw Error("Ia");(P=W.iK)!=null&&(P.endTimeMs=0,P.resolver(1));return _.S(x,W.aFO.promise,0)})},eYb=function(W){W.pgW=Error("Ka");
W.e5R.resolve();kFU(W.eDO.promise);W.eDO.reject(Error("Ka"));W.logger.dispose();Promise.all(W.uIs).then(function(){var x;return _.y(function(I){(x=W.lm)==null||x.dispose();W.lm=void 0;_.Kl(I)})});
W.uIs=[];var P;(P=W.iK)!=null&&(P.endTimeMs=0,P.resolver(1));kFU(W.aFO.promise);W.aFO.reject(Error("Ka"))};
w0.prototype.vxc=function(W){var P,x;(P=this.lm)==null||(x=P.vxc)==null||x.call(P,W)};
w0.prototype.uJQ=function(W,P){var x,I,O;return(O=(x=this.lm)==null?void 0:(I=x.uJQ)==null?void 0:I.call(x,W,P))!=null?O:Promise.resolve()};
var auz=function(W,P){var x=W.zYg;W.zYg=function(){x();P()}},blm=function(W,P){W.isDisposed()||(W.lm=P,W.logger.update(P.b9w()),W.e5R.resolve(),W.eDO.resolve(void 0),W.zYg())};
w0.prototype.handleError=function(W){if(!this.isDisposed()){this.pgW=W;this.e5R.resolve();var P,x;(x=(P=this.options).p9M)==null||x.call(P,W)}};
var kEw=function(W,P){P&&(Promise.all(W.uIs).then(function(){return void P.dispose()}),W.uIs=[])},hW=function(W,P){W.nvJ=P;
var x,I;(I=(x=W.options).faC)==null||I.call(x,P)},Uic=function(W){W.isDisposed()||(W.aFO.resolve(),W.aFO=new _.If)},hYm=function(W,P,x,I,O,B){I=I===void 0?EDZ():I;
O=O===void 0?Promise.resolve(void 0):O;var Y,K,Z,d,v,m,t,C,z,D,w,a;_.y(function(k){switch(k.nextAddress){case 1:return _.S(k,0,3);case 3:K=null;if(!Y){k.jumpTo(6);break}hW(W,7);_.OT(k,7);return _.S(k,uZ(Y.snapshot({}),B.iPS,function(){return Promise.resolve("E:CTO")}),9);
case 9:K=k.yieldResult;_.ci(k,6);break;case 7:_.yn(k),K="E:UCE";case 6:Z=void 0,d=Y?B.a62:B.nd1,v=new OW(d,B.knF,B.yfO,B.j3F),m=1;case 10:if(!(m<=B.maxAttempts)){k.jumpTo(12);break}if(m===1){k.jumpTo(13);break}hW(W,0);W.iK=new XrW(v.getValue(),B.dsA,B.zvb);return _.S(k,W.iK.promise,14);case 14:t=k.yieldResult,W.iK=void 0,t===1?(m=1,v.reset()):WyZ(v);case 13:_.OT(k,15);C=void 0;if(x){C=x;k.jumpTo(17);break}hW(W,5);z=I.okJ;return _.S(k,uZ(fui(P,z,K),B.yb2,function(){return Promise.reject(Error("La"))}),
18);
case 18:C=k.yieldResult;case 17:return hW(W,3),_.S(k,uZ(Dip(I,C),B.jh1,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return hW(W,8),_.S(k,O,20);case 20:return D=new _.$f({challenge:C,gU:W.options.gU,rNM:W.options.rNM}),_.S(k,uZ(D.fPT,B.da5,function(){return Promise.reject(Error("Na"))}),21);
case 21:Z=D;k.jumpTo(12);break;case 15:w=_.yn(k),W.handleError(w),Uic(W);case 11:m++;k.jumpTo(10);break;case 12:if(W.isDisposed()){k.jumpTo(5);break}Z&&(x=void 0,kEw(W,Y),Y=Z,blm(W,Z),Uic(W));hW(W,2);W.iK=new XrW(B.r2R,B.dsA,B.zvb);return _.S(k,W.iK.promise,22);case 22:W.iK=void 0;if(W.isDisposed()){k.jumpTo(5);break}k.jumpTo(3);break;case 5:(a=Y)==null||a.dispose(),_.Kl(k)}})};
w0.prototype.b9w=function(){return this.logger.share()};
var HlW={r2R:432E5,dsA:3E5,zvb:10,iPS:1E4,yb2:3E4,jh1:3E4,da5:6E4,nd1:1E3,a62:6E4,knF:6E5,yfO:.25,j3F:2,maxAttempts:10},XrW=function(W,P,x){var I=this;this.endTimeMs=Date.now()+W;this.promise=new Promise(function(B){I.resolver=B});
var O=function(){var B=I.endTimeMs-Date.now();B<=x?I.resolver(0):setTimeout(O,Math.min(B,P))};
O()};var N_l,T1d=(N_l=Math.imul)!=null?N_l:function(W,P){return W*P|0},dv=[196,
200,224,18],H1=function(W,P,x){x=x===void 0?[]:x;this.maxItems=W;this.uU=P===void 0?0:P;this.wy=x},lu3=function(W){var P=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!P)return new H1(W);var x=P.split(",");if(x.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new H1(W);P=x.slice(1);P.length===1&&P[0]===""&&(P=[]);x=Number(x[0]);return isNaN(x)||x<0||x>P.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new H1(W)):new H1(W,x,P)};
H1.prototype.serialize=function(){return String(this.uU)+","+this.wy.join()};
H1.prototype.insert=function(W,P){var x=void 0;if(this.wy[this.uU]!==W){var I=this.wy.indexOf(W);I!==-1?(this.wy.splice(I,1),I<this.uU&&this.uU--,this.wy.splice(this.uU,0,W)):(x=this.wy[this.uU],this.wy[this.uU]=W)}this.uU=(this.uU+1)%this.maxItems;W=N1R("iU5q-!O9@$",this.serialize());x&&W&&P(x);return W};
var T_W=function(W,P){this.logger=P;try{var x=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(I){x=!1}x&&(this.index=lu3(W))},rok=function(W,P,x,I,O){var B=W.index?Mm(W.logger,function(){return F98(W.index,i48(P),x,I,O)},"W"):"u";
W.logger.cFd(B)},ilw=function(W,P,x){var I=_.n(W.index?Mm(W.logger,function(){return qwm(i48(P),x)},"R"):["u"]),O=I.next().value;
I=I.next().value;W.logger.pNK(O);return I};var RYc={toString:function(W){var P=[],x=0;W-=-2147483648;P[x++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(W%52);for(W=Math.floor(W/52);W>0;)P[x++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(W%62),W=Math.floor(W/62);return P.join("")}};var LJd=function(W){W=FJc(W);for(var P=2654435769,x=2654435769,I=314159265,O=W.length,B=O,Y=0,K=function(){P-=x;P-=I;P^=I>>>13;x-=I;x-=P;x^=P<<8;I-=P;I-=x;I^=x>>>13;P-=x;P-=I;P^=I>>>12;x-=I;x-=P;x^=P<<16;I-=P;I-=x;I^=x>>>5;P-=x;P-=I;P^=I>>>3;x-=I;x-=P;x^=P<<10;I-=P;I-=x;I^=x>>>15};B>=12;B-=12,Y+=12)P+=qTP(W,Y),x+=qTP(W,Y+4),I+=qTP(W,Y+8),K();
I+=O;switch(B){case 11:I+=W[Y+10]<<24;case 10:I+=W[Y+9]<<16;case 9:I+=W[Y+8]<<8;case 8:x+=W[Y+7]<<24;case 7:x+=W[Y+6]<<16;case 6:x+=W[Y+5]<<8;case 5:x+=W[Y+4];case 4:P+=W[Y+3]<<24;case 3:P+=W[Y+2]<<16;case 2:P+=W[Y+1]<<8;case 1:P+=W[Y]}K();return RYc.toString(I)},FJc=function(W){for(var P=[],x=0;x<W.length;x++)P.push(W.charCodeAt(x));
return P},qTP=function(W,P){return W[P]+(W[P+1]<<8)+(W[P+2]<<16)+(W[P+3]<<24)};var WYl,e3=function(W){_.vn.call(this);this.logger=W;this.nIs=new _.If;this[WYl]=this.dispose};
_.A(e3,_.vn);var PzP=function(W,P){var x=setTimeout(function(){W.nIs.resolve()},P);
W.addOnDisposeCallback(function(){return void clearTimeout(x)})};
e3.prototype.x0=function(W,P){var x=this.gv(W);P==null||P(x);return Mm(this.logger,function(){return _.L2(x,2)},this.bqA)};
var xTk=function(W,P,x,I){return Mm(W.logger,function(){return x?W.x0(P,I):W.gv(P,I)},W.pY)};
WYl=Symbol.dispose;var ICl=function(W,P,x,I){e3.call(this,W);this.iA2=P;this.gFP=x;this.pY="m";this.bqA="x";this.e3F=0;PzP(this,I)};
_.A(ICl,e3);ICl.prototype.gv=function(W,P){var x=this;this.logger.gO(this.pY);++this.e3F>=this.gFP&&this.nIs.resolve();var I=W();W=Mm(this.logger,function(){return x.iA2(I)},"C");
if(W===void 0)throw new xf(17,"YNJ:Undefined");if(!(W instanceof Uint8Array))throw new xf(18,"ODM:Invalid");P==null||P(W);return W};
var O5M=function(W,P,x){e3.call(this,W);this.a32=P;this.pY="f";this.bqA="z";PzP(this,x)};
_.A(O5M,e3);O5M.prototype.gv=function(){return this.a32};
var JlW=function(W,P,x){e3.call(this,W);this.pfd=P;this.pY="w";this.bqA="z";PzP(this,x)};
_.A(JlW,e3);JlW.prototype.gv=function(){var W=this;return Mm(this.logger,function(){return _.up(W.pfd)},"d")};
JlW.prototype.x0=function(){return this.pfd};
var BJM=function(W,P){e3.call(this,W);this.error=P;this.pY="e";this.bqA="y"};
_.A(BJM,e3);var nKb=function(W,P){var x=(P(W.error.message)+":"+P(W.error.stack)).substring(0,2048);P=x.length+1;x=L9C(x);var I=new Uint8Array(4+x.length);I.set([42,P&127|128,P>>7,W.error.code]);I.set(x,4);return I};
BJM.prototype.gv=function(){if(this.fp1)return this.fp1;this.fp1=nKb(this,function(W){return"_"+LJd(W)});
return nKb(this,function(W){return W})};
var Yhb=function(W,P,x){e3.call(this,W);this.jBB=P;this.clientState=x;this.pY="S";this.bqA="q"};
_.A(Yhb,e3);Yhb.prototype.gv=function(){var W=Math.floor(Date.now()/1E3),P=[Math.random()*255,Math.random()*255],x=P.concat([this.jBB&255,this.clientState],[W>>24&255,W>>16&255,W>>8&255,W&255]);W=new Uint8Array(2+x.length);W[0]=34;W[1]=x.length;W.set(x,2);x=W.subarray(2);for(var I=P=P.length;I<x.length;++I)x[I]^=x[I%P];this.logger.s5A(this.clientState);return W};var ylw={eVw:3E4,jQD:2E4},c1=function(W){_.vn.call(this);var P=this;this.kLR=new _.If;this.hWO=0;this.dV=void 0;this.state=2;this.vx=W.vx;this.cu=W.cu;this.wlT=Object.assign({},ylw,W.wlT||{});this.logger=W.vx.b9w();var x;this.onError=(x=W.onError)!=null?x:function(){};
this.nfR=W.nfR||!1;if(KYp(W)){var I=this.vx;this.u6F=function(){return com(I).catch(function(Y){Y=P.reportError(new xf(P.nk?20:32,"TRG:Disposed",Y));P.dV=Y;var K;(K=P.nk)==null||K.dispose();P.nk=void 0;P.kLR.reject(Y)})};
auz(I,function(){return void Z5W(P)});
I.nvJ===2&&Z5W(this)}else this.u6F=W.b01,Z5W(this);var O=this.logger.share();O.gO("o");var B=new mi3(O,"o");this.kLR.promise.then(function(){B.done();O.zP();O.dispose()},function(){return void O.dispose()});
this.addOnDisposeCallback(function(){P.nk?(P.nk.dispose(),P.nk=void 0):P.dV?P.logger.zP():(P.dV=P.reportError(new xf(32,"TNP:Disposed")),P.logger.zP(),P.kLR.reject(P.dV))});
_.nU(this,this.logger)};
_.A(c1,_.vn);c1.prototype.ugT=function(){return this.kLR.promise};
var oKb=function(W,P){if(!(P instanceof xf))if(P instanceof _.zQ){var x=Error(P.toString());x.stack=P.stack;P=new xf(11,"EBH:Error",x)}else P=new xf(12,"BSO:Unknown",P);return W.reportError(P)},Z5W=function(W){var P,x,I,O,B,Y,K,Z,d,v,m,t,C,z,D;
return _.y(function(w){switch(w.nextAddress){case 1:P=void 0;W.hWO++;x=new _.If;W.vx instanceof w0&&W.vx.uIs.push(x.promise);if(!W.nfR){w.jumpTo(2);break}I=new _.If;setTimeout(function(){return void I.resolve()});
return _.S(w,I.promise,2);case 2:return O=W.logger.share(),_.OT(w,4,5),W.state=5,B={},Y=[],_.S(w,uZ(W.vx.snapshot({za:B,x5F:Y}),W.wlT.jQD,function(){return Promise.reject(new xf(15,"MDA:Timeout"))}),7);
case 7:K=w.yieldResult;if(W.isDisposed())throw new xf(W.nk?20:32,"MDA:Disposed");Z=Y[0];W.state=6;return _.S(w,uZ(Shz(W.cu,K),W.wlT.eVw,function(){return Promise.reject(new xf(10,"BWB:Timeout"))}),8);
case 8:d=w.yieldResult;if(W.isDisposed())throw new xf(W.nk?20:32,"BWB:Disposed");W.state=7;P=Mm(O,function(){var k=uPk(W,d,x,Z);k.nIs.promise.then(function(){return void W.u6F()});
return k},"i");
case 5:_.Jo(w);O.dispose();_.YD(w,6);break;case 4:v=_.yn(w);(m=P)==null||m.dispose();if(!W.dV){t=oKb(W,v);x.resolve();var a;if(a=W.vx instanceof w0&&W.hWO<2)a:if(v instanceof xf)a=v.code!==32&&v.code!==20&&v.code!==10;else{if(v instanceof _.zQ)switch(v.code){case 2:case 13:case 14:case 4:break;default:a=!1;break a}a=!0}if(a)return C=(1+Math.random()*.25)*(W.nk?6E4:1E3),z=setTimeout(function(){return void W.u6F()},C),W.addOnDisposeCallback(function(){return void clearTimeout(z)}),w.return();
W.dV=t}O.logError(W.nk?13:14);W.kLR.reject(W.dV);return w.return();case 6:W.state=8,W.hWO=0,(D=W.nk)==null||D.dispose(),W.nk=P,W.kLR.resolve(),_.Kl(w)}})},uPk=function(W,P,x,I){var O=yKo(P,2)*1E3;
if(O<=0)throw new xf(31,"TTM:Invalid");if(_.MY(P,4))return new JlW(W.logger,_.MY(P,4),O);if(!yKo(P,3))return new O5M(W.logger,l0t(_.pW(P,1)),O);if(!I)throw new xf(4,"PMD:Undefined");I=I(l0t(_.pW(P,1)));if(!(I instanceof Function))throw new xf(16,"APF:Failed");W.sBM=Math.floor((Date.now()+O)/1E3);W=new ICl(W.logger,I,yKo(P,3),O);W.addOnDisposeCallback(function(){return void x.resolve()});
return W};
c1.prototype.gv=function(W){return dTp(this,Object.assign({},W),!1)};
c1.prototype.x0=function(W){return dTp(this,Object.assign({},W),!0)};
c1.prototype.aOu=function(W){if(W>150)return!1;try{return this.cache=new T_W(W,this.logger),!0}catch(P){return this.reportError(new xf(22,"GBJ:init",P)),!1}};
c1.prototype.reportError=function(W){this.logger.logError(W.code);this.onError(W);return W};
var sQd=function(W,P){P=P instanceof xf?P:new xf(5,"TVD:error",P);return W.reportError(P)},dTp=function(W,P,x){try{if(W.isDisposed())throw new xf(21,"BNT:disposed");
if(!W.nk&&W.dV)throw W.dV;var I,O;return(O=(I=vKA(W,P,x))!=null?I:mTW(W,P,x))!=null?O:VUP(W,P,x)}catch(B){if(!P.bFW)throw sQd(W,B);return tUl(W,x,B)}},vKA=function(W,P,x){var I;
return(I=W.nk)==null?void 0:xTk(I,function(){return p9p(W,P)},x,function(O){var B;
if(W.nk instanceof ICl&&((B=P.vL)==null?0:B.g4A))try{var Y;(Y=W.cache)==null||rok(Y,p9p(W,P),O,P.vL.drT,W.sBM-120)}catch(K){W.reportError(new xf(24,"ELX:write",K))}})},mTW=function(W,P,x){var I;
if((I=P.vL)!=null&&I.tzd)try{var O,B=(O=W.cache)==null?void 0:ilw(O,p9p(W,P),P.vL.drT);return B?x?Mm(W.logger,function(){return _.L2(B,2)},"a"):B:void 0}catch(Y){W.reportError(new xf(23,"RXO:read",Y))}},VUP=function(W,P,x){var I={stack:[],
error:void 0,hasError:!1};try{if(!P.tJF)throw new xf(29,"SDF:notready");return xTk(onS(I,new Yhb(W.logger,0,W.state)),function(){return p9p(W,P)},x)}catch(O){I.error=O,I.hasError=!0}finally{svW(I)}},tUl=function(W,P,x){var I={stack:[],
error:void 0,hasError:!1};try{var O=sQd(W,x);return xTk(onS(I,new BJM(W.logger,O)),function(){return[]},P)}catch(B){I.error=B,I.hasError=!0}finally{svW(I)}},p9p=function(W,P){return P.b8O?P.b8O:P.za?Mm(W.logger,function(){return P.b8O=L9C(P.za)},"c"):[]},KYp=function(W){return ip(function(P){if(!qp(P))return!1;
for(var x=_.n(Object.entries(W)),I=x.next();!I.done;I=x.next()){var O=_.n(I.value);I=O.next().value;O=O.next().value;if(!(I in P)){if(O.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!O(P[I]))return!1}return!0})}({vx:function(W){return ip(function(P){return P instanceof W})}(w0)},"");var jQA=function(){var W=_.LR();this.JSC$7816_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Wn("cookie_enabled"),Wn("cookie_3p_enabled"),_.xj("browser"))};
jQA.prototype.increment=function(W,P,x){this.JSC$7816_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",W,P,x)};
var dWx=function(){var W=_.LR();this.JSC$7840_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Pn("tick"),Wn("from_st_cookie"))};
dWx.prototype.increment=function(W,P){this.JSC$7840_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",W,P)};
var QQw=function(){var W=_.LR();this.JSC$7846_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.xj("status"))};
QQw.prototype.increment=function(W){this.JSC$7846_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",W)};
var Czm=function(){var W=_.LR();this.JSC$7849_streamzService=W;W.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.xj("stage"),Wn("is_using_ytd_player"),Wn("has_expandable_tiles"))};
Czm.prototype.increment=function(W,P,x){this.JSC$7849_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",W,P,x)};
var Alm=function(){var W=_.LR();this.JSC$7852_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/response_signature",_.xj("check_status"))};
Alm.prototype.increment=function(W){this.JSC$7852_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/response_signature",W)};
var z6c=function(){var W=_.LR();this.JSC$7855_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.xj("sig"),Pn("de"))};
z6c.prototype.increment=function(W,P){this.JSC$7855_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/e_sig_log",W,P)};
var GDA=function(){var W=_.LR();this.JSC$7858_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.xj("sig"),Pn("de"))};
GDA.prototype.increment=function(W,P){this.JSC$7858_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/e_sig_en",W,P)};
_.EKW=function(){var W=_.LR();this.JSC$7861_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.xj("action"))};
_.EKW.prototype.increment=function(W){this.JSC$7861_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/enforcement_intent",W)};var a1=window;var gKM=(new Date).getTime();var DTi=function(W){this.servicePromise_=W;W.then((0,_.mx)(function(){},this),function(){},this)},MUb=function(W,P,x){W.servicePromise_.then(function(I){var O=I[P];
if(!O)throw Error("Oa`"+P);return O.apply(I,x)})},h6p=function(W,P,x){for(var I=Array(arguments.length-2),O=2;O<arguments.length;O++)I[O-2]=arguments[O];
O=$TA(W,P).then(function(B){return B.apply(null,I)},function(B){B=Error("Pa`"+P+"`"+W,{cause:B});
delete w9Z[P];return _.s2(B)});
return new DTi(O)},w9Z={},$TA=function(W,P){var x=w9Z[P];
if(x)return x;x=(x=_.eL(P))?_.Jn(x):(new _.yE(function(I,O){var B=(new Qi(document)).createElement("SCRIPT");B.async=!0;_.c6(B,_.YH(wmk(W)));B.onload=B.onreadystatechange=function(){B.readyState&&B.readyState!="loaded"&&B.readyState!="complete"||I()};
B.onerror=function(Y){O(Error("Qa`"+P+"`"+W,{cause:Y}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(B)})).then(function(){var I=_.eL(P);
if(!I)throw Error("Ra`"+P+"`"+W);return I});
return w9Z[P]=x};var H5p={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},clZ=function(){var W=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=Wkm(function(){return _.y(function(P){if(P.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?P.return(Promise.resolve()):_.S(P,e6b(W),2);W.rsaForList.length>
0&&document.addEventListener("click",W.requestAccessForHelpPanel);_.Kl(P)})});
this.requestAccessForHelpPanel=function(){if(!(W.rsaForPromises.length>0)){for(var P=_.n(W.rsaForList),x=P.next();!x.done;x=P.next()){x=x.value;try{W.rsaForPromises.push(document.requestStorageAccessFor(x))}catch(I){}}Promise.all(W.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){W.reset()})}}};
clZ.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var e6b=function(W){var P,x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:P=_.n(Object.values(H5p)),x=P.next();case 2:if(x.done){B.jumpTo(0);break}I=x.value;_.OT(B,5);return _.S(B,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:I}),7);case 7:O=B.yieldResult;O.state!=="granted"&&W.rsaForList.push(I);_.ci(B,3);break;case 5:_.yn(B);B.jumpTo(0);break;case 3:x=P.next(),B.jumpTo(2)}})};(new clZ).initialize();var aCZ=function(W){this.JSC$7875_loader_=W};
aCZ.prototype.startHelp=function(W){MUb(this.JSC$7875_loader_,"startHelp",arguments)};
aCZ.prototype.JSC$7877_loadChatSupport=function(W){MUb(this.JSC$7875_loader_,"loadChatSupport",arguments)};
var kDb=function(W,P){P=P||{};W=h6p(b5M,"help.service.Lazy.create",W,{apiKey:P.apiKey||P.apiKey,asxUiUri:P.asxUiUri||P.asxUiUri,environment:P.environment||P.environment,flow:P.flow||P.flow,frdProductData:P.frdProductData||P.frdProductData,frdProductDataSerializedJspb:P.frdProductDataSerializedJspb||P.frdProductDataSerializedJspb,helpCenterPath:P.helpCenterPath||P.helpCenterPath,locale:P.locale||P.locale||"en-US".replace(/-/g,"_"),nonce:P.nonce||P.nonce,productData:P.productData||P.productData,receiverUri:P.receiverUri||
P.receiverUri,renderApiUri:P.renderApiUri||P.renderApiUri,theme:P.theme||P.theme,window:P.window||P.window});return new aCZ(W)},b5M=new we(AFd,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var UTc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(UTc,_.aK);var X9z=_.P6(UTc);_.fCc=new function(W,P,x,I){this.configType=W;this.flagName=x;this.defaultValue=I;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 lCz=function(){this.retriever=_.FY().resolve(NJw)};xRR(Node);xRR(Element);var TJA=xRR(HTMLElement);xRR(SVGElement);var rli,i5l,U7,R6p;rli=function(W){return typeof W.className=="string"?W.className:W.getAttribute&&W.getAttribute("class")||""};
i5l=function(W){return W.classList?W.classList:rli(W).match(/\S+/g)||[]};
_.bk=function(W,P){typeof W.className=="string"?W.className=P:W.setAttribute&&W.setAttribute("class",P)};
_.kf=function(W,P){return W.classList?W.classList.contains(P):_.N7(i5l(W),P)};
_.kY=function(W,P){if(W.classList)W.classList.add(P);else if(!_.kf(W,P)){var x=rli(W);_.bk(W,x+(x.length>0?" "+P:P))}};
U7=function(W,P){if(W.classList)Array.prototype.forEach.call(P,function(O){_.kY(W,O)});
else{var x={};Array.prototype.forEach.call(i5l(W),function(O){x[O]=!0});
Array.prototype.forEach.call(P,function(O){x[O]=!0});
P="";for(var I in x)P+=P.length>0?" "+I:I;_.bk(W,P)}};
_.ax=function(W,P){W.classList?W.classList.remove(P):_.kf(W,P)&&_.bk(W,Array.prototype.filter.call(i5l(W),function(x){return x!=P}).join(" "))};
R6p=function(W,P){W.classList?Array.prototype.forEach.call(P,function(x){_.ax(W,x)}):_.bk(W,Array.prototype.filter.call(i5l(W),function(x){return!_.N7(P,x)}).join(" "))};var FYW=function(W){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=W.document},Wxl=function(W,P){qhP(W);
var x=document.createElement("div"),I;(I=P.parentNode)==null||I.insertBefore(x,P);x.tabIndex=0;x.id="fc-focus-trap-pre-div";x=document.createElement("div");var O;(O=P.parentNode)==null||O.insertBefore(x,P.nextSibling);x.tabIndex=0;x.id="fc-focus-trap-post-div";var B=LYi(W,P),Y=LYi(W,P,!0);B&&Y&&(W.focusChangeHandler=function(){var K=W.document.activeElement;if(K)if(_.wv(P,K))W.previouslyFocusedElement=K;else if(K===W.document.activeElement)switch(W.previouslyFocusedElement){case B:Y.focus();W.previouslyFocusedElement=
Y;break;default:B.focus(),W.previouslyFocusedElement=B}},W.document.addEventListener("focus",W.focusChangeHandler,!0),W.document.addEventListener("focusin",W.focusChangeHandler))},qhP=function(W){W.focusChangeHandler&&(document.removeEventListener("focus",W.focusChangeHandler,!0),document.removeEventListener("focusin",W.focusChangeHandler),W.focusChangeHandler=null);
var P;(P=document.getElementById("fc-focus-trap-pre-div"))==null||P.remove();var x;(x=document.getElementById("fc-focus-trap-post-div"))==null||x.remove()},PZl=function(W,P,x,I,O){x=x===void 0?!0:x;
var B;O=(B=O===void 0?null:O)!=null?B:LYi(W,P,I===void 0?!1:I);O!==null&&(O.focus(),x&&Wxl(W,P))};
FYW.prototype.disableButton=function(W,P){P=P===void 0?null:P;W.disabled=!0;P&&_.kY(W,P)};
var LYi=function(W,P,x){x=x===void 0?!1:x;if(fzo(P)&&!x)return P;var I=x?[].slice.call(P.children,0).reverse():P.children;I=_.n(I);for(var O=I.next();!O.done;O=I.next())if(O=O.value,TJA(O)&&(O=LYi(W,O,x)))return O;return fzo(P)&&x?P:null};var xpc=function(W){this.originalBodyOverflow="";this.JSC$7901_domHelper=oQ(W)};_.J8(_.Vk,_.vn);_.J=_.Vk.prototype;_.J.JSC$7904_id_=0;_.J.disposeInternal=function(){_.Vk.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7902_listener_;delete this.handler_};
_.J.start=function(W){this.stop();this.JSC$7904_id_=AW(this.callback_,W!==void 0?W:this.JSC$7902_interval_)};
_.J.stop=function(){this.isActive()&&_.xW.clearTimeout(this.JSC$7904_id_);this.JSC$7904_id_=0};
_.J.fire=function(){this.stop();this.JSC$7904_doAction_()};
_.J.isActive=function(){return this.JSC$7904_id_!=0};
_.J.JSC$7904_doAction_=function(){this.JSC$7904_id_=0;this.JSC$7902_listener_&&this.JSC$7902_listener_.call(this.handler_)};_.q1=function(W){_.vn.call(this);this.handler_=W;this.JSC$7905_keys_={}};
_.J8(_.q1,_.vn);var IVc=[];_.q1.prototype.listen=function(W,P,x,I){Array.isArray(P)||(P&&(IVc[0]=P.toString()),P=IVc);for(var O=0;O<P.length;O++){var B=_.uq(W,P[O],x||this.handleEvent,I||!1,this.handler_||this);if(!B)break;this.JSC$7905_keys_[B.key]=B}return this};
_.q1.prototype.listenOnce=function(W,P,x,I){return OUl(this,W,P,x,I)};
var OUl=function(W,P,x,I,O,B){if(Array.isArray(x))for(var Y=0;Y<x.length;Y++)OUl(W,P,x[Y],I,O,B);else{P=Kt(P,x,I||W.handleEvent,O,B||W.handler_||W);if(!P)return W;W.JSC$7905_keys_[P.key]=P}return W};
_.q1.prototype.unlisten=function(W,P,x,I,O){if(Array.isArray(P))for(var B=0;B<P.length;B++)this.unlisten(W,P[B],x,I,O);else if(W=GIW(W,P,x||this.handleEvent,_.Jw(I)?!!I.capture:!!I,O||this.handler_||this))Z1(W),delete this.JSC$7905_keys_[W.key];return this};
_.q1.prototype.removeAll=function(){_.jU.forEach(this.JSC$7905_keys_,function(W,P){this.JSC$7905_keys_.hasOwnProperty(P)&&Z1(W)},this);
this.JSC$7905_keys_={}};
_.q1.prototype.disposeInternal=function(){_.q1.superClass_.disposeInternal.call(this);this.removeAll()};
_.q1.prototype.handleEvent=function(){throw Error("Sa");};var XM=function(){_.vn.call(this);this.services_={}};
_.J8(XM,_.vn);_.J=XM.prototype;_.J.logger=null;_.J.connect=function(W){W&&W()};
_.J.isConnected=function(){return!0};
_.J.registerService=function(W,P,x){this.services_[W]={callback:P,objectPayload:!!x}};
_.J.getService=function(W,P){var x=this.services_[W];return x?x:this.defaultService_?{callback:_.ou(this.defaultService_,W),objectPayload:_.Jw(P)}:null};
var JzW=function(W,P){if(P&&typeof W==="string")try{return JSON.parse(W)}catch(x){return null}else if(!P&&typeof W!=="string")return(0,_.GQ)(W);return W};
XM.prototype.disposeInternal=function(){XM.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 fA=function(W,P){this.sequence_=[];this.onCancelFunction_=W;this.defaultScope_=P||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};
fA.prototype.cancel=function(W){if(this.fired_)this.result_ instanceof fA&&this.result_.cancel();else{if(this.parent_){var P=this.parent_;delete this.parent_;W?P.cancel(W):(P.branches_--,P.branches_<=0&&P.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Nm(this))}};
fA.prototype.continue_=function(W,P){this.blocked_=!1;BvM(this,W,P)};
var BvM=function(W,P,x){W.fired_=!0;W.result_=x;W.hadError_=!P;nj3(W)},yzA=function(W){if(W.fired_){if(!W.silentlyCanceled_)throw new YWW(W);
W.silentlyCanceled_=!1}};
fA.prototype.callback=function(W){yzA(this);BvM(this,!0,W)};
fA.prototype.errback=function(W){yzA(this);BvM(this,!1,W)};
var Kxz=function(W,P,x){lk(W,P,null,x)};
fA.prototype.finally=function(W){var P=this;return new Promise(function(x,I){lk(P,function(O){W();x(O)},function(O){W();
I(O)})})};
var lk=function(W,P,x,I){var O=W.fired_;O||(P===x?P=x=pA(P):(P=pA(P),x=pA(x)));W.sequence_.push([P,x,I]);O&&nj3(W)};
fA.prototype.then=function(W,P,x){var I,O,B=new _.yE(function(Y,K){O=Y;I=K});
lk(this,O,function(Y){Y instanceof Nm?B.cancel():I(Y);return ZUk},this);
return B.then(W,P,x)};
Hzw(fA);var ojc=function(W,P){P instanceof fA?Kxz(W,(0,_.mx)(P.branch,P)):Kxz(W,function(){return P})};
fA.prototype.branch=function(W){var P=new fA;lk(this,P.callback,P.errback,P);W&&(P.parent_=this,this.branches_++);return P};
fA.prototype.isError=function(W){return W instanceof Error};
var SWl=function(W){return Uz(W.sequence_,function(P){return typeof P[1]==="function"})},ZUk={},nj3=function(W){if(W.unhandledErrorId_&&W.fired_&&SWl(W)){var P=W.unhandledErrorId_,x=uJk[P];
x&&(_.xW.clearTimeout(x.JSC$7922_id_),delete uJk[P]);W.unhandledErrorId_=0}W.parent_&&(W.parent_.branches_--,delete W.parent_);P=W.result_;for(var I=x=!1;W.sequence_.length&&!W.blocked_;){var O=W.sequence_.shift(),B=O[0],Y=O[1];O=O[2];if(B=W.hadError_?Y:B)try{var K=B.call(O||W.defaultScope_,P);K===ZUk&&(K=void 0);K!==void 0&&(W.hadError_=W.hadError_&&(K==P||W.isError(K)),W.result_=P=K);if(e5W(P)||typeof _.xW.Promise==="function"&&P instanceof _.xW.Promise)I=!0,W.blocked_=!0}catch(Z){P=Z,W.hadError_=
!0,SWl(W)||(x=!0)}}W.result_=P;I&&(K=(0,_.mx)(W.continue_,W,!0),I=(0,_.mx)(W.continue_,W,!1),P instanceof fA?(lk(P,K,I),P.blocking_=!0):P.then(K,I));x&&(P=new dpZ(P),uJk[P.JSC$7922_id_]=P,W.unhandledErrorId_=P.JSC$7922_id_)},YWW=function(){_.Wd.call(this)};
_.J8(YWW,_.Wd);YWW.prototype.message="Deferred has already fired";YWW.prototype.name="AlreadyCalledError";var Nm=function(){_.Wd.call(this)};
_.J8(Nm,_.Wd);Nm.prototype.message="Deferred was canceled";Nm.prototype.name="CanceledError";var dpZ=function(W){this.JSC$7922_id_=_.xW.setTimeout((0,_.mx)(this.throwError,this),0);this.JSC$7922_error_=W};
dpZ.prototype.throwError=function(){delete uJk[this.JSC$7922_id_];throw this.JSC$7922_error_;};
var uJk={};var sEm={1:"NativeMessagingTransport"},vjc=["pu","lru","pru","lpu","ppu"],Vap=function(){for(var W=10,P=mpZ,x=P.length,I="";W-- >0;)I+=P.charAt(Math.floor(Math.random()*x));return I},mpZ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var TQ=function(W){_.vn.call(this);this.JSC$7925_domHelper_=W||oQ()};
_.J8(TQ,_.vn);TQ.prototype.transportType=0;TQ.prototype.getWindow=function(){return this.JSC$7925_domHelper_.getWindow()};
TQ.prototype.getName=function(){return sEm[String(this.transportType)]||""};var r0=function(W,P,x,I,O){TQ.call(this,x);this.JSC$7928_channel_=W;this.protocolVersion_=O||2;this.peerHostname_=P||"*";this.JSC$7928_eventHandler_=new _.q1(this);this.maybeAttemptToConnectTimer_=new _.Fm(100,this.getWindow());this.oneSidedHandshake_=!!I;this.setupAckReceived_=new fA;this.setupAckSent_=new fA;this.JSC$7928_connected_=new fA;this.endpointId_=Vap();this.peerEndpointId_=null;this.oneSidedHandshake_?taW(this.JSC$7928_channel_)==1?ojc(this.JSC$7928_connected_,this.setupAckReceived_):
ojc(this.JSC$7928_connected_,this.setupAckSent_):(ojc(this.JSC$7928_connected_,this.setupAckReceived_),this.protocolVersion_==2&&ojc(this.JSC$7928_connected_,this.setupAckSent_));Kxz(this.JSC$7928_connected_,this.notifyConnected_,this);this.JSC$7928_connected_.callback(!0);this.JSC$7928_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.J8(r0,TQ);r0.prototype.peerProtocolVersion_=null;r0.prototype.initialized_=!1;r0.prototype.transportType=1;var pnp={};r0.prototype.sendTimerId_=0;
var CZl=function(W){var P=W.event_.data;if(typeof P!=="string")return!1;var x=P.indexOf("|"),I=P.indexOf(":");if(x==-1||I==-1)return!1;var O=P.substring(0,x);x=P.substring(x+1,I);P=P.substring(I+1);if(I=ik[O])return I.xpcDeliver(x,P,W.event_.origin),!0;I=jEM(P)[0];for(var B in ik){var Y=ik[B];if(taW(Y)==1&&!Y.isConnected()&&x=="tp"&&(I=="SETUP"||I=="SETUP_NTPV2")&&QEc(Y,W.event_.origin))return delete ik[Y.name],Y.name=O,ik[O]=Y,Y.xpcDeliver(x,P),!0}return!1},AzP=function(W){W.protocolVersion_!=2||
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||W.send("tp","SETUP_NTPV2,"+W.endpointId_);
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||W.send("tp","SETUP")},zIb=function(W,P){if(W.protocolVersion_!=2||W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||P!=2){if(W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||P!=1)return;
W.send("tp","SETUP_ACK")}else W.send("tp","SETUP_ACK_NTPV2");W.setupAckSent_.fired_||W.setupAckSent_.callback(!0)},GFW=function(W,P){P>W.peerProtocolVersion_&&(W.peerProtocolVersion_=P);
W.peerProtocolVersion_==1&&(W.setupAckSent_.fired_||W.oneSidedHandshake_||W.setupAckSent_.callback(!0),W.peerEndpointId_=null)};
_.J=r0.prototype;_.J.connect=function(){var W=this.getWindow(),P=_.nM(W),x=pnp[P];typeof x!=="number"&&(x=0);x==0&&_.uq(W.postMessage?W:W.document,"message",CZl,!1,r0);pnp[P]=x+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.J.maybeAttemptToConnect_=function(){var W=taW(this.JSC$7928_channel_)==0;this.oneSidedHandshake_&&W||this.JSC$7928_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),AzP(this))};
_.J.send=function(W,P){var x=this.JSC$7928_channel_.peerWindowObject_;x&&(this.send=function(I,O){var B=this,Y=this.JSC$7928_channel_.name;this.sendTimerId_=AW(function(){B.sendTimerId_=0;try{var K=x.postMessage?x:x.document;K.postMessage&&K.postMessage(Y+"|"+I+":"+O,B.peerHostname_)}catch(Z){}},0)},this.send(W,P))};
_.J.notifyConnected_=function(){var W=this.JSC$7928_channel_,P=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;W.isConnected()||W.connectionDelay_&&W.connectionDelay_.isActive()||(W.state_=2,_.TD(W.connectionDelay_),P!==void 0?(W.connectionDelay_=new _.Vk(W.connectCb_,P),W.connectionDelay_.start()):(W.connectionDelay_=null,W.connectCb_()))};
_.J.disposeInternal=function(){if(this.initialized_){var W=this.getWindow(),P=_.nM(W),x=pnp[P];pnp[P]=x-1;x==1&&_.Vq(W.postMessage?W:W.document,"message",CZl,!1,r0)}this.sendTimerId_&&(_.xW.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.TD(this.JSC$7928_eventHandler_);delete this.JSC$7928_eventHandler_;_.TD(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7928_connected_.cancel();delete this.JSC$7928_connected_;delete this.send;r0.superClass_.disposeInternal.call(this)};
var jEM=function(W){W=W.split(",");W[1]=W[1]||null;return W};_.R1=function(W){if(W.getValues&&typeof W.getValues=="function")return W.getValues();if(typeof Map!=="undefined"&&W instanceof Map||typeof Set!=="undefined"&&W instanceof Set)return Array.from(W.values());if(typeof W==="string")return W.split("");if(_.xi(W)){for(var P=[],x=W.length,I=0;I<x;I++)P.push(W[I]);return P}return _.jU.getValues(W)};
_.Ejm=function(W){if(W.getKeys&&typeof W.getKeys=="function")return W.getKeys();if(!W.getValues||typeof W.getValues!="function"){if(typeof Map!=="undefined"&&W instanceof Map)return Array.from(W.keys());if(!(typeof Set!=="undefined"&&W instanceof Set)){if(_.xi(W)||typeof W==="string"){var P=[];W=W.length;for(var x=0;x<W;x++)P.push(x);return P}return _.jU.getKeys(W)}}};
_.gj3=function(W,P,x){if(W.forEach&&typeof W.forEach=="function")W.forEach(P,x);else if(_.xi(W)||typeof W==="string")Array.prototype.forEach.call(W,P,x);else for(var I=_.Ejm(W),O=_.R1(W),B=O.length,Y=0;Y<B;Y++)P.call(x,O[Y],I&&I[Y],W)};var CL7,Ip,JV,eIM,DpA,$pp,Mac,HUw,wni;
_.Xu=function(W,P){this.JSC$7933_domain_=this.userInfo_=this.scheme_="";this.JSC$7933_port_=null;this.fragment_=this.JSC$7933_path_="";this.JSC$7933_ignoreCase_=!1;var x;W instanceof _.Xu?(this.JSC$7933_ignoreCase_=P!==void 0?P:W.JSC$7933_ignoreCase_,_.FM(this,W.scheme_),this.userInfo_=W.userInfo_,_.qm(this,W.JSC$7933_domain_),_.LA(this,W.JSC$7933_port_),_.WL(this,W.getPath()),_.PL(this,W.JSC$7933_queryData_.clone()),_.x1(this,W.fragment_)):W&&(x=_.NR(String(W)))?(this.JSC$7933_ignoreCase_=!!P,_.FM(this,
x[1]||"",!0),this.userInfo_=Ip(x[2]||""),_.qm(this,x[3]||"",!0),_.LA(this,x[4]),_.WL(this,x[5]||"",!0),_.PL(this,x[6]||"",!0),_.x1(this,x[7]||"",!0)):(this.JSC$7933_ignoreCase_=!!P,this.JSC$7933_queryData_=new _.OP(null,this.JSC$7933_ignoreCase_))};
_.Xu.prototype.toString=function(){var W=[],P=this.scheme_;P&&W.push(JV(P,DpA,!0),":");var x=this.JSC$7933_domain_;if(x||P=="file")W.push("//"),(P=this.userInfo_)&&W.push(JV(P,DpA,!0),"@"),W.push(_.al(x).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),x=this.JSC$7933_port_,x!=null&&W.push(":",String(x));if(x=this.getPath())this.JSC$7933_domain_&&x.charAt(0)!="/"&&W.push("/"),W.push(JV(x,x.charAt(0)=="/"?Mac:$pp,!0));(x=this.JSC$7933_queryData_.toString())&&W.push("?",x);(x=this.fragment_)&&W.push("#",JV(x,
wni));return W.join("")};
_.Xu.prototype.resolve=function(W){var P=this.clone(),x=!!W.scheme_;x?_.FM(P,W.scheme_):x=!!W.userInfo_;x?P.userInfo_=W.userInfo_:x=!!W.JSC$7933_domain_;x?_.qm(P,W.JSC$7933_domain_):x=W.JSC$7933_port_!=null;var I=W.getPath();if(x)_.LA(P,W.JSC$7933_port_);else if(x=!!W.JSC$7933_path_){if(I.charAt(0)!="/")if(this.JSC$7933_domain_&&!this.JSC$7933_path_)I="/"+I;else{var O=P.getPath().lastIndexOf("/");O!=-1&&(I=P.getPath().slice(0,O+1)+I)}O=I;if(O==".."||O==".")I="";else if(_.ZA(O,"./")||_.ZA(O,"/.")){I=
_.Bd(O,"/");O=O.split("/");for(var B=[],Y=0;Y<O.length;){var K=O[Y++];K=="."?I&&Y==O.length&&B.push(""):K==".."?((B.length>1||B.length==1&&B[0]!="")&&B.pop(),I&&Y==O.length&&B.push("")):(B.push(K),I=!0)}I=B.join("/")}else I=O}x?_.WL(P,I):x=W.JSC$7933_queryData_.toString()!=="";x?_.PL(P,W.JSC$7933_queryData_.clone()):x=!!W.fragment_;x&&_.x1(P,W.fragment_);return P};
_.Xu.prototype.clone=function(){return new _.Xu(this)};
_.FM=function(W,P,x){W.scheme_=x?Ip(P,!0):P;W.scheme_&&(W.scheme_=W.scheme_.replace(/:$/,""));return W};
_.qm=function(W,P,x){W.JSC$7933_domain_=x?Ip(P,!0):P;return W};
_.LA=function(W,P){if(P){P=Number(P);if(isNaN(P)||P<0)throw Error("Ta`"+P);W.JSC$7933_port_=P}else W.JSC$7933_port_=null;return W};
_.Xu.prototype.getPath=function(){return this.JSC$7933_path_};
_.WL=function(W,P,x){W.JSC$7933_path_=x?Ip(P,!0):P;return W};
_.PL=function(W,P,x){P instanceof _.OP?(W.JSC$7933_queryData_=P,hIp(W.JSC$7933_queryData_,W.JSC$7933_ignoreCase_)):(x||(P=JV(P,HUw)),W.JSC$7933_queryData_=new _.OP(P,W.JSC$7933_ignoreCase_));return W};
_.aE=function(W,P,x){W.JSC$7933_queryData_.set(P,x);return W};
_.cn=function(W,P){return W.JSC$7933_queryData_.get(P)};
_.x1=function(W,P,x){W.fragment_=x?Ip(P):P;return W};
_.BL=function(W){_.aE(W,"zx",Hn());return W};
_.ea=function(W,P){return W instanceof _.Xu?W.clone():new _.Xu(W,P)};
CL7=function(W,P){W instanceof _.Xu||(W=_.ea(W));P instanceof _.Xu||(P=_.ea(P));return W.resolve(P)};
Ip=function(W,P){return W?P?decodeURI(W.replace(/%25/g,"%2525")):decodeURIComponent(W):""};
JV=function(W,P,x){return typeof W==="string"?(W=encodeURI(W).replace(P,eIM),x&&(W=W.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),W):null};
eIM=function(W){W=W.charCodeAt(0);return"%"+(W>>4&15).toString(16)+(W&15).toString(16)};
DpA=/[#\/\?@]/g;$pp=/[#\?:]/g;Mac=/[#\?]/g;HUw=/[#\?@]/g;wni=/#/g;_.OP=function(W,P){this.count_=this.keyMap_=null;this.encodedQuery_=W||null;this.JSC$7934_ignoreCase_=!!P};
_.nb=function(W){W.keyMap_||(W.keyMap_=new Map,W.count_=0,W.encodedQuery_&&DLA(W.encodedQuery_,function(P,x){W.add(iP(P),x)}))};
_.J=_.OP.prototype;_.J.getCount=function(){_.nb(this);return this.count_};
_.J.add=function(W,P){_.nb(this);this.encodedQuery_=null;W=Y1(this,W);var x=this.keyMap_.get(W);x||this.keyMap_.set(W,x=[]);x.push(P);this.count_+=1;return this};
_.J.remove=function(W){_.nb(this);W=Y1(this,W);return this.keyMap_.has(W)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(W).length,this.keyMap_.delete(W)):!1};
_.J.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.J.isEmpty=function(){_.nb(this);return this.count_==0};
_.J.containsKey=function(W){_.nb(this);W=Y1(this,W);return this.keyMap_.has(W)};
_.J.containsValue=function(W){var P=this.getValues();return _.N7(P,W)};
_.J.forEach=function(W,P){_.nb(this);this.keyMap_.forEach(function(x,I){x.forEach(function(O){W.call(P,O,I,this)},this)},this)};
_.J.getKeys=function(){_.nb(this);for(var W=Array.from(this.keyMap_.values()),P=Array.from(this.keyMap_.keys()),x=[],I=0;I<P.length;I++)for(var O=W[I],B=0;B<O.length;B++)x.push(P[I]);return x};
_.J.getValues=function(W){_.nb(this);var P=[];if(typeof W==="string")this.containsKey(W)&&(P=P.concat(this.keyMap_.get(Y1(this,W))));else{W=Array.from(this.keyMap_.values());for(var x=0;x<W.length;x++)P=P.concat(W[x])}return P};
_.J.set=function(W,P){_.nb(this);this.encodedQuery_=null;W=Y1(this,W);this.containsKey(W)&&(this.count_-=this.keyMap_.get(W).length);this.keyMap_.set(W,[P]);this.count_+=1;return this};
_.J.get=function(W,P){if(!W)return P;W=this.getValues(W);return W.length>0?String(W[0]):P};
_.czp=function(W,P,x){W.remove(P);x.length>0&&(W.encodedQuery_=null,W.keyMap_.set(Y1(W,P),_.Lm(x)),W.count_+=x.length)};
_.OP.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var W=[],P=Array.from(this.keyMap_.keys()),x=0;x<P.length;x++){var I=P[x],O=_.al(I);I=this.getValues(I);for(var B=0;B<I.length;B++){var Y=O;I[B]!==""&&(Y+="="+_.al(I[B]));W.push(Y)}}return this.encodedQuery_=W.join("&")};
_.OP.prototype.clone=function(){var W=new _.OP;W.encodedQuery_=this.encodedQuery_;this.keyMap_&&(W.keyMap_=new Map(this.keyMap_),W.count_=this.count_);return W};
var Y1=function(W,P){P=String(P);W.JSC$7934_ignoreCase_&&(P=P.toLowerCase());return P},hIp=function(W,P){P&&!W.JSC$7934_ignoreCase_&&(_.nb(W),W.encodedQuery_=null,W.keyMap_.forEach(function(x,I){var O=I.toLowerCase();
I!=O&&(this.remove(I),_.czp(this,O,x))},W));
W.JSC$7934_ignoreCase_=P};
_.OP.prototype.extend=function(W){for(var P=0;P<arguments.length;P++)_.gj3(arguments[P],function(x,I){this.add(I,x)},this)};var yg=function(W,P){XM.call(this);for(var x=0,I;I=vjc[x];x++)if(I in W&&!/^https?:\/\//.test(W[I]))throw Error("Va`"+W[I]+"`"+I);this.cfg_=W;this.name=this.cfg_.cn||Vap();this.JSC$7929_domHelper_=P||oQ();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.q1(this);W.lpu=W.lpu||E4A(this.JSC$7929_domHelper_.getWindow().location.href)+"/robots.txt";W.ppu=W.ppu||E4A(W.pu||"")+"/robots.txt";ik[this.name]=this;GIW(window,"unload",aVd)||Kt(window,"unload",aVd)};
_.J8(yg,XM);var bUz=RegExp("^%*tp$"),kFc=RegExp("^%+tp$");_.J=yg.prototype;_.J.connectionDelay_=null;_.J.peerWindowDeferred_=null;_.J.transport_=null;_.J.state_=1;_.J.isConnected=function(){return this.state_==2};
_.J.peerWindowObject_=null;_.J.iframeElement_=null;_.J.connect=function(W){this.connectCb_=W||_.me;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Kxz(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.J.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7929_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var W=this.iframeElement_.contentWindow;W||(W=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=W}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7929_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new r0(this,this.cfg_.ph,this.JSC$7929_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.J.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.TD(this.transport_);this.connectCb_=this.transport_=null;_.TD(this.connectionDelay_);this.connectionDelay_=null};
_.J.send=function(W,P){if(this.isConnected()){try{var x=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(O){x=!1}if(x){_.Jw(P)&&(P=(0,_.GQ)(P));x=this.transport_;var I=x.send;bUz.test(W)&&(W="%"+W);W=W.replace(/[%:|]/g,encodeURIComponent);I.call(x,W,P)}else this.close()}};
_.J.xpcDeliver=function(W,P,x){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.mx)(this.xpcDeliver,this,W,P,x));else if(QEc(this,x)&&!this.isDisposed()&&this.state_!=3)if(W&&W!="tp")this.isConnected()&&(W=W.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),W=kFc.test(W)?W.substring(1):W,W=this.getService(W,P))&&(P=JzW(P,W.objectPayload),P!=null&&W.callback(P));else switch(W=this.transport_,x=jEM(P),P=x[1],x[0]){case "SETUP_ACK":GFW(W,1);W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":W.protocolVersion_==2&&(GFW(W,2),W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0));break;case "SETUP":GFW(W,1);zIb(W,1);break;case "SETUP_NTPV2":W.protocolVersion_==2&&(x=W.peerProtocolVersion_,GFW(W,2),zIb(W,2),x!=1&&W.peerEndpointId_==null||W.peerEndpointId_==P||AzP(W),W.peerEndpointId_=P)}};
var taW=function(W){var P=W.cfg_.role;return typeof P==="number"?P:window.parent==W.peerWindowObject_?1:0},QEc=function(W,P){var x=W.cfg_.ph;
return _.Km(P==null?"":String(P))||_.Km(x==null?"":String(x))||P==W.cfg_.ph};
yg.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete ik[this.name];_.TD(this.peerLoadHandler_);delete this.peerLoadHandler_;yg.superClass_.disposeInternal.call(this)};
var aVd=function(){for(var W in ik)_.TD(ik[W])},ik={};var XnW=function(W,P){this.JSC$7943_win=W;this.allowAdsHttpEndpoint=P;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7943_domHelper=oQ(W);this.scrollManager=new xpc(W);this.accessibilityManager=new FYW(W);Upm(this)},Upm=function(W){var P=function(){W.allowAdsPopup&&W.allowAdsPopup.style.setProperty("display","none","important");
W.wallElement.style.setProperty("display","","important");qhP(W.accessibilityManager);PZl(W.accessibilityManager,W.wallElement.querySelector(".fc-dialog-container"),!1,!1,W.wallElement.querySelector(".fc-button-whitelist"));var O=W.scrollManager;O.JSC$7901_domHelper.JSC$7231_document_.body.style.overflow=O.originalBodyOverflow};
W.allowAdsPopup=W.JSC$7943_domHelper.JSC$7233_createDom("DIV",{"class":"fc-whitelist-root"});W.allowAdsPopup.style.setProperty("display","none","important");W.JSC$7943_domHelper.appendChild(W.JSC$7943_domHelper.JSC$7231_document_.body,W.allowAdsPopup);var x=W.JSC$7943_domHelper.JSC$7233_createDom("DIV",{"class":"fc-dialog-overlay"});W.JSC$7943_domHelper.appendChild(W.allowAdsPopup,x);var I=W.JSC$7943_domHelper.JSC$7233_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:P});W.JSC$7943_domHelper.appendChild(W.allowAdsPopup,
I);x=W.JSC$7943_domHelper.JSC$7233_createDom("IFRAME");x.className="fc-whitelist-dialog";x.frameBorder="0";x.id="fc-whitelist-iframe";x.tabIndex="0";_.g9(x,W.allowAdsHttpEndpoint);W.JSC$7943_domHelper.appendChild(I,x);I={};I.pu=_.y4(W.allowAdsHttpEndpoint).toString();I.tp=1;I.cn="fc-whitelist-channel";I.ifrid=x.id;I.osh=!0;W.allowAdsCrossPageChannel=new yg(I);W.allowAdsCrossPageChannel.registerService("close",P);W.allowAdsCrossPageChannel.registerService("refresh",function(){W.JSC$7943_win.location.reload()});
W.allowAdsCrossPageChannel.registerService("resize",function(O){if(O){var B=W.allowAdsPopup.querySelector(".fc-whitelist-dialog");O.width&&B.style.setProperty("width",O.width,"important");O.height&&B.style.setProperty("height",O.height,"important")}},!0);
W.allowAdsCrossPageChannel.connect()};
XnW.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7943_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Zn=window,op=document,fVd=Zn.location,Nv3=function(){},lVc=/\[native code\]/,St=function(W,P,x){return W[P]=W[P]||x},Tvp=function(W){W=W.sort();
for(var P=[],x=void 0,I=0;I<W.length;I++){var O=W[I];O!=x&&P.push(O);x=O}return P},um=function(){var W;
if((W=Object.create)&&lVc.test(W))W=W(null);else{W={};for(var P in W)W[P]=void 0}return W},di=St(Zn,"gapi",{});var sP={};sP=St(Zn,"___jsl",um());St(sP,"I",0);St(sP,"hel",10);var rzc=function(){var W=fVd.href;if(sP.dpo)var P=sP.h;else{P=sP.h;var x=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),I=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(W=W&&(x.exec(W)||I.exec(W)))try{P=decodeURIComponent(W[2])}catch(O){}}return P},iUM=function(W){var P=St(sP,"PQ",[]);
sP.PQ=[];var x=P.length;if(x===0)W();else for(var I=0,O=function(){++I===x&&W()},B=0;B<x;B++)P[B](O)},RId=function(W){return St(St(sP,"H",um()),W,um())};var vL=function(W){this.JSC$7945_obj_=W};
vL.prototype.value=function(){return this.JSC$7945_obj_};
vL.prototype.getWidth=function(){return this.JSC$7945_obj_.width};
vL.prototype.getHeight=function(){return this.JSC$7945_obj_.height};
vL.prototype.getStyle=function(){return this.JSC$7945_obj_.style};var Fx3=function(W){this.JSC$7948_obj_=W||{}};
_.J=Fx3.prototype;_.J.value=function(){return this.JSC$7948_obj_};
_.J.setUrl=function(W){this.JSC$7948_obj_.url=W;return this};
_.J.getUrl=function(){return this.JSC$7948_obj_.url};
_.J.getStyle=function(){return this.JSC$7948_obj_.style};
_.J.setId=function(W){this.JSC$7948_obj_.id=W;return this};
_.J.getId=function(){return this.JSC$7948_obj_.id};
_.J.getContext=function(){return this.JSC$7948_obj_.context};
var qWz=function(W){W.JSC$7948_obj_.attributes=W.JSC$7948_obj_.attributes||{};return new vL(W.JSC$7948_obj_.attributes)};var Lxb=function(){Fx3.apply(this,arguments)};
_.A(Lxb,Fx3);var W9m=St(sP,"perf",um());St(W9m,"g",um());var P_w=St(W9m,"i",um());St(W9m,"r",[]);um();um();var IlZ=function(W,P,x){P&&P.length>0&&(P=xSz(P),x&&x.length>0&&(P+="___"+xSz(x)),P.length>28&&(P=P.substr(0,28)+(P.length-28)),x=P,P=St(P_w,"_p",um()),St(P,x,um())[W]=(new Date).getTime(),P=W9m.r,typeof P==="function"?P(W,"_p",x):P.push([W,"_p",x]))},xSz=function(W){return W.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var O4W=um(),Jgc=[],mm=function(W){throw Error("Ya`"+W);};
Jgc.push(["jsl",function(W){for(var P in W)if(Object.prototype.hasOwnProperty.call(W,P)){var x=W[P];typeof x=="object"?sP[P]=St(sP,P,[]).concat(x):St(sP,P,x)}if(P=W.u)W=St(sP,"us",[]),W.push(P),(P=/^https:(.*)$/.exec(P))&&W.push("http:"+P[1])}]);
var B1i=/^(\/[a-zA-Z0-9_\-]+)+$/,nVk=[/\/amp\//,/\/amp$/,/^\/amp$/],Ywb=/^[a-zA-Z0-9\-_\.,!]+$/,ygc=/^gapi\.loaded_[0-9]+$/,K9k=/^[a-zA-Z0-9,._-]+$/,u8A=function(W,P,x,I,O){var B=W.split(";"),Y=B.shift(),K=O4W[Y],Z=null;K?Z=K(B,P,x,I):mm("no hint processor for: "+Y);Z||mm("failed to generate load url");P=Z;x=P.match(Z4p);(I=P.match(oVi))&&I.length===1&&Swl.test(P)&&x&&x.length===1||mm("failed sanity: "+W);try{W="?";if(O&&O.length>0){yZ(O);var d=O.join(",");Z=Z+"?le="+d;W="&"}if(sP.rol){var v=sP.ol;
v&&v.length&&(Z=""+Z+W+"ol="+v.length)}}catch(m){}return Z},vVi=function(W,P,x,I){W=dSM(W);
ygc.test(x)||mm("invalid_callback");P=sCl(P);I=I&&I.length?sCl(I):null;var O=function(B){return encodeURIComponent(B).replace(/%2C/g,",")};
return[encodeURIComponent(W.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",O(W.version),"/m=",O(P),I?"/exm="+O(I):"","/rt=j/sv=1/d=1/ed=1",W.activeMods?"/am="+O(W.activeMods):"",W.resourceSig?"/rs="+O(W.resourceSig):"",W.zcms?"/t="+O(W.zcms):"","/cb=",O(x)].join("")},dSM=function(W){W.charAt(0)!=="/"&&mm("relative path");
for(var P=W.substring(1).split("/"),x=[];P.length;){W=P.shift();if(!W.length||W.indexOf(".")==0)mm("empty/relative directory");else if(W.indexOf("=")>0){P.unshift(W);break}x.push(W)}W={};for(var I=0,O=P.length;I<O;++I){var B=P[I].split("="),Y=decodeURIComponent(B[0]),K=decodeURIComponent(B[1]);B.length==2&&Y&&K&&(W[Y]=W[Y]||K)}P="/"+x.join("/");B1i.test(P)||mm("invalid_prefix");x=0;for(I=nVk.length;x<I;++x)nVk[x].test(P)&&mm("invalid_prefix");x=mSb(W,"k",!0);I=mSb(W,"am");O=mSb(W,"rs");W=mSb(W,"t");
return{pathPrefix:P,version:x,activeMods:I,resourceSig:O,zcms:W}},sCl=function(W){for(var P=[],x=0,I=W.length;x<I;++x){var O=W[x].replace(/\./g,"_").replace(/-/g,"_");
K9k.test(O)&&P.push(O)}return P.join(",")},mSb=function(W,P,x){W=W[P];
!W&&x&&mm("missing: "+P);if(W){if(Ywb.test(W))return W;mm("invalid: "+P)}return null},Swl=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,oVi=/\/cb=/g,Z4p=/\/\//g;
O4W.m=function(W,P,x,I){(W=W[0])||mm("missing_hint");return"https://apis.google.com"+vVi(W,P,x,I)};
var VjM=decodeURI("%73cript"),tjz=/^[-+_0-9\/A-Za-z]+={0,2}$/,pJA=function(W,P){for(var x=[],I=0;I<W.length;++I){var O=W[I],B;if(B=O){a:{for(B=0;B<P.length;B++)if(P[B]===O)break a;B=-1}B=B<0}B&&x.push(O)}return x},jCl=function(){var W=sP.nonce;
return W!==void 0?W&&W===String(W)&&W.match(tjz)?W:sP.nonce=null:op.querySelector?(W=op.querySelector("script[nonce]"))?(W=W.nonce||W.getAttribute("nonce")||"",W&&W===String(W)&&W.match(tjz)?sP.nonce=W:sP.nonce=null):null:null},AgW=function(W){if(op.readyState!="loading")QCb(W);
else{var P=jCl(),x="";P!==null&&(x=' nonce="'+P+'"');W="<"+VjM+' src="'+encodeURI(W)+'"'+x+"></"+VjM+">";op.write(C_3?C_3.createHTML(W):W)}},QCb=function(W){var P=op.createElement(VjM);
P.setAttribute("src",C_3?C_3.createScriptURL(W):W);W=jCl();W!==null&&P.setAttribute("nonce",W);P.async="true";(W=op.getElementsByTagName(VjM)[0])?W.parentNode.insertBefore(P,W):(op.head||op.body||op.documentElement).appendChild(P)},GBA=function(W,P,x){z_M(function(){var I=P===rzc()?St(di,"_",um()):um();
I=St(RId(P),"_",I);W(I)},x)},Vt7=function(W,P){var x=P||{};
typeof P=="function"&&(x={},x.callback=P);var I=(P=x)&&P._c;if(I)for(var O=0;O<Jgc.length;O++){var B=Jgc[O][0],Y=Jgc[O][1];Y&&Object.prototype.hasOwnProperty.call(I,B)&&Y(I[B],W,P)}P=[];W?P=W.split(":"):x.features&&(P=x.features);if(!(W=x.h)&&(W=rzc(),!W))throw Error("Za");EVA(P||[],x,W)},EVA=function(W,P,x){W=Tvp(W)||[];
var I=P.callback,O=P.config,B=P.timeout,Y=P.ontimeout,K=P.onerror,Z=void 0;typeof K=="function"&&(Z=K);var d=null,v=!1;if(B&&!Y||!B&&Y)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";K=St(RId(x),"r",[]).sort();var m=St(RId(x),"L",[]).sort(),t=sP.le||[],C=[].concat(K),z=function(T,N){if(v)return 0;Zn.clearTimeout(d);m.push.apply(m,D);var Io=((di||{}).config||{}).update;Io?Io(O):O&&St(sP,"cu",[]).push(O);if(N){IlZ("me0",T,C);try{GBA(N,x,Z)}finally{IlZ("me1",T,C)}}return 1};
B>0&&(d=Zn.setTimeout(function(){v=!0;Y()},B));
var D=pJA(W,m);if(D.length){D=pJA(W,K);var w=St(sP,"CP",[]),a=w.length;w[a]=function(T){if(!T)return 0;IlZ("ml1",D,C);var N=function(F){w[a]=null;z(D,T)&&iUM(function(){I&&I();F()})},Io=function(){var F=w[a+1];
F&&F()};
a>0&&w[a-1]?w[a]=function(){N(Io)}:N(Io)};
if(D.length){var k="loaded_"+sP.I++;di[k]=function(T){w[a](T);di[k]=null};
W=u8A(x,D,"gapi."+k,K,t);K.push.apply(K,D);IlZ("ml0",D,C);P.sync||Zn.___gapisync?AgW(W):QCb(W)}else w[a](Nv3)}else z(D)&&I&&I()},gVl;
var DSb=null,Mjm=_.xW.trustedTypes;if(Mjm&&Mjm.createPolicy){try{DSb=Mjm.createPolicy("goog#gapi",{createHTML:qDR,createScript:qDR,createScriptURL:qDR})}catch(W){_.xW.console&&_.xW.console.error(W.message)}gVl=DSb}else gVl=DSb;var C_3=gVl,z_M=function(W,P){if(sP.hee&&sP.hel>0)try{return W()}catch(x){P&&P(x),sP.hel--,Vt7("debug_error",function(){try{window.___jsl.hefn(x)}catch(I){throw x;}})}else try{return W()}catch(x){throw P&&P(x),x;
}},$SW=di.load;
$SW&&St(sP,"ol",[]).push($SW);di.load=function(W,P){return z_M(function(){return Vt7(W,P)})};var n$x;var wJp=function(W,P){this.serviceId_=W;this.moduleId_=P||null};
wJp.prototype.toString=function(){return this.serviceId_};
wJp.prototype.getModuleId=function(){return this.moduleId_};var B7R=new wJp("MpJwZc","MpJwZc");var YSR=new _.uk("a"),nQU=function(W,P,x){_.d0.call(this,W,P);this.node=P;this.kind=x};
_.A(nQU,_.d0);var h_p=function(){this.JSC$7961_keys_={};this.urlPrefix_="";this.JSC$7961_queryData_={}};
h_p.prototype.toString=function(){var W=this.urlPrefix_+H4M(this),P=_.Kj(this.JSC$7961_queryData_),x="";P!=""&&(x="?"+P);return W+x};
var e_c=function(W){W=Vg(W,"md");return!!W&&W!=="0"},H4M=function(W){var P=[],x=(0,_.mx)(function(I){this.JSC$7961_keys_[I]!==void 0&&P.push(I+"="+this.JSC$7961_keys_[I])},W);
e_c(W)?(x("md"),x("k"),x("ck"),x("am"),x("rs"),x("gssmodulesetproto"),x("slk"),x("dti")):(x("sdch"),x("k"),x("ck"),x("am"),x("rt"),"d"in W.JSC$7961_keys_||tV(W,"d","0"),x("d"),x("exm"),x("excm"),(W.JSC$7961_keys_.excm||W.JSC$7961_keys_.exm)&&P.push("ed=1"),x("im"),x("dg"),x("sm"),Vg(W,"br")!="1"&&Vg(W,"br")!="0"||x("br"),x("br-d"),Vg(W,"rb")=="1"&&x("rb"),Vg(W,"zs")!=="0"&&x("zs"),cgl(W)!==""&&x("wt"),x("gssmodulesetproto"),x("ujg"),x("sp"),x("rs"),x("cb"),x("ee"),x("slk"),x("dti"),x("m"));return P.join("/")},
Vg=function(W,P){return W.JSC$7961_keys_[P]?W.JSC$7961_keys_[P]:null},tV=function(W,P,x){x?W.JSC$7961_keys_[P]=x:delete W.JSC$7961_keys_[P]},alp=function(W,P){W.urlPrefix_=P},b4M=function(W,P){P&&P.length>0?(P.sort(),tV(W,"exm",P.join(","))):tV(W,"exm",null)},kBl=function(W,P){P&&P.length>0?(P.sort(),tV(W,"excm",P.join(","))):tV(W,"excm",null)},USl=function(W){return(W=Vg(W,"m"))?W.split(","):[]},cgl=function(W){switch(Vg(W,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},XJw=function(W,P){var x=Object.keys(P).filter(function(I){return!!Object.keys(P[I]).length}).map(function(I){var O=Object.keys(P[I]);
O.length>1&&O.sort();return I+":"+O.join(",")});
x.sort();tV(W,"ee",x.join(";"))},qVd=function(W){var P=Vg(W,"ee");
if(!P)return{};W={};P=_.n(P.split(";"));for(var x=P.next();!x.done;x=P.next()){var I=_.n(x.value.split(":"));x=I.next().value;I=I.next().value;W[x]={};I=_.n(I.split(","));for(var O=I.next();!O.done;O=I.next())W[x][O.value]=!0}return W},flZ=function(W){delete W.JSC$7961_keys_.m;
delete W.JSC$7961_keys_.exm;delete W.JSC$7961_keys_.ed};
h_p.prototype.clone=function(){if(m4d){var W=new h_p;W.JSC$7961_keys_=Object.assign({},this.JSC$7961_keys_);W.urlPrefix_=this.urlPrefix_;W.JSC$7961_queryData_=Object.assign({},this.JSC$7961_queryData_);return W}return iZ(this.toString())};
var iZ=function(W,P){P=P===void 0?!0:P;var x=N1A(W),I=new h_p,O=_.NR(x)[5];_.jU.forEach(llk,function(Y){var K=O.match("/"+Y+"=([^/]+)");K&&tV(I,Y,K[1])});
var B="";B=W.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";alp(I,W.substr(0,W.indexOf(B)+B.length));if(!P)return I;(W=_.NR(x)[6]||null)&&DLA(W,function(Y,K){I.JSC$7961_queryData_[Y]=K});
return I},iXR=function(W){W=_.YO(N1A(W));
return W===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(W)?/\/k=/.test(W):!1},N1A=function(W){return W.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?W.substr(65):W},llk={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"},T1m=RegExp("^loaded_(g|h)?[_\\d]+$");_.pb=function(W){this.JSC$7973_id_=W;this.opts={}};
_.pb.prototype.JSC$7975_setLabel=function(W){this.label_=W||void 0;return this};
_.pb.prototype.addUploadMetadata=function(W,P){var x=this.opts.data||{};x[W]=P;this.opts.data=x;return this};
var rgz=function(W){var P=_.jU.filter(W.opts,function(x){return x!==null});
P=_.jU.isEmpty(P)?null:P;W=[W.JSC$7973_id_,W.label_,P];P=m7o(W);return W=W.slice(0,P+1)};
_.pb.prototype.toString=function(){var W=rgz(this);return"("+_.C5(W,function(P){return JSON.stringify(P)}).join(",")+")"};
_.pb.prototype.getId=function(){return this.JSC$7973_id_};
_.pb.prototype.getOptions=function(){return _.jU.clone(this.opts)};var jt=function(){_.pb.call(this,"image-search")};
_.A(jt,_.pb);jt.prototype.setSize=function(W){this.opts.imgsz=W;return this};
jt.prototype.JSC$7975_setLabel=function(W){_.pb.prototype.JSC$7975_setLabel.call(this,W);return this};
jt.prototype.addUploadMetadata=function(W,P){_.pb.prototype.addUploadMetadata.call(this,W,P);return this};var Qg=function(){_.pb.call(this,"maps")};
_.A(Qg,_.pb);Qg.prototype.setZoom=function(W){this.opts.zoom=W;return this};
Qg.prototype.JSC$7975_setLabel=function(W){_.pb.prototype.JSC$7975_setLabel.call(this,W);return this};
Qg.prototype.addUploadMetadata=function(W,P){_.pb.prototype.addUploadMetadata.call(this,W,P);return this};_.Cb=function(){_.pb.call(this,"photos")};
_.A(_.Cb,_.pb);_.Cb.prototype.JSC$7975_setLabel=function(W){_.pb.prototype.JSC$7975_setLabel.call(this,W);return this};
_.Cb.prototype.addUploadMetadata=function(W,P){_.pb.prototype.addUploadMetadata.call(this,W,P);return this};var AV=function(){_.pb.call(this,"url")};
_.A(AV,_.pb);var i4z=function(){var W=new AV;W.opts.type="video";W.opts.site="youtube.com";return W};
AV.prototype.JSC$7975_setLabel=function(W){_.pb.prototype.JSC$7975_setLabel.call(this,W);return this};
AV.prototype.addUploadMetadata=function(W,P){_.pb.prototype.addUploadMetadata.call(this,W,P);return this};var zu=function(){_.pb.call(this,"video-search")};
_.A(zu,_.pb);var R_d=function(){var W=new zu;W.opts.site="youtube.com";return W};
zu.prototype.JSC$7975_setLabel=function(W){_.pb.prototype.JSC$7975_setLabel.call(this,W);return this};
zu.prototype.addUploadMetadata=function(W,P){_.pb.prototype.addUploadMetadata.call(this,W,P);return this};var F9z=function(){_.pb.call(this,"web")};
_.A(F9z,_.pb);F9z.prototype.JSC$7975_setLabel=function(W){_.pb.prototype.JSC$7975_setLabel.call(this,W);return this};
F9z.prototype.addUploadMetadata=function(W,P){_.pb.prototype.addUploadMetadata.call(this,W,P);return this};var Gu=function(){this.items_=[];this.opts={}},qwM=function(W){switch(W){case "image-search":return new jt;
case "maps":return new Qg;case "photos":return new _.Cb;case "url":return new AV;case "video-search":return new zu;case "web":return new F9z}return new _.pb(W)};
Gu.prototype.addView=function(W){this.items_.push(typeof W==="string"?qwM(W):W);return this};
var L9p=function(W){return"("+_.C5(W.items_,function(P){return P.toString()}).join(",")+")"};
Gu.prototype.toString=function(){return L9p(this)};
Gu.prototype.getViews=function(W,P){P=P===void 0?[]:P;for(var x=this.items_,I=0;I<x.length;I++){var O=x[I];O instanceof Gu?O.getViews(W,P):O.getId()==W&&P.push(O)}return P};
Gu.prototype.getOptions=function(){return _.jU.clone(this.opts)};var gv=function(W){this.basePickerUrl_=W||"https://docs.google.com/picker";this.nav_=new Gu};
gv.prototype.nav_=null;gv.prototype.addView=function(W){this.nav_.addView(W);return this};
gv.prototype.getBaseUrl=function(){return this.basePickerUrl_};
gv.prototype.getViews=function(W){return this.nav_.getViews(W)};
_.WkM=function(W,P){W.callback_=P;return W};var PP3=new Map;PP3.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");PP3.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");PP3.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var xRP=new Set;xRP.add("application/vnd.google-apps.kix");xRP.add("application/vnd.google-apps.ritz");xRP.add("application/vnd.google-apps.punch");var uYp=function(W,P,x){var I=x&&_.MY(x,1);x=I$c(x);var O=W[0].getId();switch(_.$5(O,2)){case 13:return OXi(W,P,I,x);case 3:return JQ3(W,P,I,x);case 10:return BoM(W,P,I,x);case 27:return BoM(W,P,I,x);case 12:return n$d(W,P);case 2:return YVP(W,P,I,x);case 5:return yQ3(W,P,I,x);case 9:return Kkw(W,P,I,x);case 6:return ZXl(W,P,I,x);case 25:return o$z(W,P,I,x);case 1:return _.Vo(W[0],lBk,26)?SV3(W,P,I,x):BoM(W,P,I,x);default:return{}}},ZXl=function(W,P,x,I){W=W.map(function(O){return{id:O.getId().getId(),
serviceId:"youtube",name:O.getName(),description:_.MY(O,3),type:EP(O),lastEditedUtc:_.NMz(_.qM(O,_.Ur,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:O.getUrl(),embedUrl:_.MY(O,13),thumbnails:gi(qQ(O))}});
return{action:P,docs:W,viewToken:I,view:x||"youtube",v2Translated:!0}},YVP=function(W,P,x,I){var O=W.map(function(B){var Y=B.getId().getId(),K=_.MY(B,7),Z=B.getName(),d=EP(B),v=_.NMz(_.qM(B,_.Ur,12)).getTime(),m=B.getUrl(),t=Number(KvC(B)),C=_.MY(B,3),z=_.MY(B,11),D=gi(qQ(B));
var w=_.qM(B,Ld,21);w=_.E1(w,1);var a=_.qM(B,Ld,21);a=_.MY(a,10);var k=_.MY(B,13);var T=_.qM(B,Ld,21);T=_.E1(T,9);var N=_.qM(B,Ld,21);N=_.MY(N,11);Y={id:Y,serviceId:"docs",mimeType:K,name:Z,type:d,lastEditedUtc:v,url:m,sizeBytes:t,description:C,iconUrl:z,thumbnails:D,isShared:w,downloadUrl:a,embedUrl:k,copyable:T,resourceKey:N};K=_.qM(B,Ld,21);_.E1(K,12)&&(Y.uploadState="success",Y.isNew=!0);K=_.qM(B,Ld,21);_.Vo(K,iY,3)&&(B=_.qM(B,Ld,21),B=_.qM(B,iY,3),_.Vo(B,TT,2)&&(K=zF(B.getDuration().getSeconds()),
Z=B.getDuration(),Z=_.L5(Z,2),Y.duration=K+Z/1E9),Y.aspectRatio=B.getAspectRatio());return Y});
return{action:P,docs:O,viewToken:I,view:x||"all",extraUserInputs:dRZ(W),v2Translated:!0}},yQ3=function(W,P,x,I){W=W.map(function(O){var B=_.qM(O,PIW,15);
B=_.qM(B,rN,1);So(O,10,rN,B);return{id:O.getId().getId(),serviceId:"web",mimeType:_.MY(O,7),name:O.getName(),type:EP(O),url:O.getUrl(),description:_.MY(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(qQ(O))}});
return{action:P,docs:W,viewToken:I,view:x||"image-search",v2Translated:!0}},Kkw=function(W,P,x,I){W=W.map(function(O){return{serviceId:"url",
name:qQ(O)[0].getUrl().split("/").pop(),type:EP(O),mimeType:_.MY(O,7),url:O.getUrl(),description:_.MY(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(qQ(O))}});
return{action:P,docs:W,viewToken:I,view:x||"url",v2Translated:!0}},SV3=function(W,P,x,I){W=W.map(function(O){return{id:O.getId().getId(),
serviceId:"picasa",name:O.getName(),type:EP(O),description:_.MY(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(qQ(O))}});
return{action:P,docs:W,viewToken:I,view:x||"webcam",v2Translated:!0}},BoM=function(W,P,x,I){return{action:P,
docs:W.map(sli),viewToken:I,view:v$l(x||"upload",W),extraUserInputs:dRZ(W),v2Translated:!0}},v$l=function(W,P){return P.some(function(x){var I;
return((I=_.qM(x,R_,30))==null?void 0:_.$5(I,3))===9})?W+"/gmailphotos":W},JQ3=function(W,P,x,I){var O=W.map(function(B){var Y={id:B.getId().getId(),
serviceId:"picasa",mimeType:_.MY(B,7),name:B.getName(),type:EP(B),lastEditedUtc:_.NMz(_.qM(B,_.Ur,12)).getTime(),url:B.getUrl(),sizeBytes:Number(KvC(B)),description:_.MY(B,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(qQ(B)),mediaKey:B.getId().getId(),parentId:_.MY(B,4)},K,Z=(K=_.qM(B,i2l,18))==null?void 0:_.qM(K,r9P,3);Z&&(Y.latitude=D2(Z,1),Y.longitude=D2(Z,2));var d;B=(d=_.qM(B,i2l,18))==null?void 0:gg(d,6);d=B!=null?zF(B):void 0;d&&(Y.version=
d);return Y});
return{action:P,docs:O,viewToken:I,view:x||"photos",extraUserInputs:dRZ(W),v2Translated:!0}},OXi=function(W,P,x,I){W=W.map(function(O){return{id:O.getId().getId(),
serviceId:"et",name:qQ(O)[0].getUrl().split("/").pop(),description:_.MY(O,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(qQ(O),"etjpg")}});
return{action:P,docs:W,viewToken:I,view:x||"et",v2Translated:!0}},o$z=function(W,P,x,I){W=W.map(function(O){var B=O.getId().getId(),Y=I["2"];
return{id:B,serviceId:Y.type!=="gmail_themes"&&Y.parent==="6226252643674576769"?"picasa":"static_themes",name:O.getName(),mimeType:_.MY(O,7),type:EP(O),description:_.MY(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:O.getUrl(),embedUrl:O.getUrl(),thumbnails:gi(qQ(O))}});
return{action:P,docs:W,viewToken:I,view:x||"photos",v2Translated:!0}},n$d=function(W,P){W=W.map(function(x){var I=_.qM(x,TMW,27);
I=_.t2(I,1,_.aG,_.qT())[0];return{id:x.getId().getId(),serviceId:"contacts",mimeType:_.MY(x,7),name:x.getName(),description:_.MY(x,3),url:"mailto:"+I,thumbnail:[{url:_.MY(x,11)}],email:I}});
return{action:P,docs:W,view:"contacts",v2Translated:!0}},I$c=function(W){if(!W)return{};
var P=_.MY(W,3);P=P&&JSON.parse(P)||{};return{0:_.MY(W,1),1:_.MY(W,2),2:P}},gi=function(W,P){P=P===void 0?"":P;
if(!W.length)return null;P=="etjpg"&&(W=W.filter(function(x){return x.getUrl().includes("w1200-h300")}));
return W.map(function(x){return{url:x.getUrl(),height:x.getHeight(),width:x.getWidth(),type:P}})},dRZ=function(W){return{isAttachment:W.some(function(P){return _.E1(P,31)})}},sli=function(W){var P,x={id:(P=W.getId())==null?void 0:P.getId(),
serviceId:mRk(W),mimeType:_.MY(W,7),name:W.getName(),type:EP(W),sizeBytes:Number(KvC(W)),description:_.MY(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(qQ(W)),isNew:!0};if(P=_.qM(W,R_,30)){x.dataUrl=_.MY(P,1)||null;a:{var I=_.qM(W,R_,30);switch(_.$5(I,3)){case 9:I=_.HI(I,LOz,2,Ff);I={remoteRefs:I&&_.MY(I,1)};break a;case 10:case 15:I=_.HI(I,qvW,4,Ff);var O=qQ(W);I={photo_id:I&&_.MY(I,1),media_key:W.getId().getId(),media_type:_.$5(W,6)===1?1:2,image_url:O&&
O[0].getUrl(),width:O&&String(O[0].getWidth()),height:O&&String(O[0].getHeight())};break a}I=null}x.uploadMetadata=I;x.uploadId=_.MY(P,9)||null;x.uploadState=VLd(P)||null}(I=P&&_.HI(P,qvW,4,Ff))&&(x.id=_.MY(I,1));(I=P&&_.HI(P,Wum,5,Ff))&&(x.contentId=_.MY(I,1));(I=P&&_.HI(P,RQz,7,Ff))&&(x.contentId=_.MY(I,1));(I=P&&_.HI(P,FOM,6,Ff))&&(x.contentId=_.MY(I,1));(P==null?void 0:_.$5(P,3))===1&&(x.mediaKey=W.getId().getId());return x},mRk=function(W){var P;
switch(((P=_.qM(W,R_,30))==null?void 0:_.$5(P,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},EP=function(W){switch(_.$5(W,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 _.MY(W,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},VLd=function(W){switch(W==null?void 0:_.$5(W,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 Qlc,tLp,pob,jlM;_.Dn=function(W,P){var x=P||{};P=x.document||document;var I=_.y4(W).toString(),O=(new Qi(P)).createElement("SCRIPT"),B={script_:O,timeout_:void 0},Y=new fA(tLp,B),K=null,Z=x.timeout!=null?x.timeout:5E3;Z>0&&(K=window.setTimeout(function(){pob(O,!0);Y.errback(new jlM(1,"Timeout reached for loading script "+I))},Z),B.timeout_=K);
O.onload=O.onreadystatechange=function(){O.readyState&&O.readyState!="loaded"&&O.readyState!="complete"||(pob(O,x.cleanupWhenDone||!1,K),Y.callback(null))};
O.onerror=function(){pob(O,!0,K);Y.errback(new jlM(0,"Error while loading script "+I))};
B=x.attributes||{};_.jU.extend(B,{type:"text/javascript",charset:"UTF-8"});cwm(O,B);_.c6(O,W);Qlc(P).appendChild(O);return Y};
Qlc=function(W){var P=Sa("HEAD",W);return P&&P.length!==0?P[0]:W.documentElement};
tLp=function(){if(this&&this.script_){var W=this.script_;W&&W.tagName=="SCRIPT"&&pob(W,!0,this.timeout_)}};
pob=function(W,P,x){x!=null&&_.xW.clearTimeout(x);W.onload=function(){};
W.onerror=function(){};
W.onreadystatechange=function(){};
P&&window.setTimeout(function(){_.oE(W)},0)};
jlM=function(W,P){var x="Jsloader error (code #"+W+")";P&&(x+=": "+P);_.Wd.call(this,x);this.code=W};
_.J8(jlM,_.Wd);var CPc=_.i4(["https://apis.google.com/js/api.js"]),AQw=_.W9(CPc),g$P=function(W,P){var x=!1,I=ziW(W,P).then(function(B){x=!0;return B}),O=_.xid(5E3).then(function(){return x?ziW(W,P):GOA(P).then(function(B){return E$d(B,W)})});
return fHA([I,O])},ziW=function(W,P){return DRm(P).then(function(x){return E$d(x,W)})},E$d=function(W,P){var x=_.Bd(P,"gapi.")?P.slice(5):P;
return W[x]?_.Jn(W[x]):new _.yE(function(I,O){var B=AW(function(){O(Error("bb"))},3E4);
W.load(P,{callback:function(){_.xW.clearTimeout(B);I(W[x])},
onerror:function(Y){_.xW.clearTimeout(B);O(Y)}})})},DRm=function(W){return W.gapi&&W.gapi.load?_.Jn(W.gapi):GOA(W)},GOA=function(W){return _.Dn(AQw,{document:W.document}).then(function(){return W.gapi})},MLA=function(){};
MLA.prototype.load=function(W,P){P=P===void 0?window:P;var x=Date.now();return g$P(W,P).then(function(I){var O=Date.now();return{library:I,loadStartMs:x,loadEndMs:O}},function(I){throw I instanceof Error?I:Error(String(I));
})};var tLC=function(){_.vn.call(this);this.gapiLoader_=new MLA;this.origin_=null;this.gapiPickerIframeResolver_=_.aP();this.gapiIframesResolver_=_.aP();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.A(tLC,_.vn);var $Rw=function(W,P){var x=_.eL("gapi.iframes",P);return x?(W=Date.now(),_.Jn({library:x,loadStartMs:W,loadEndMs:W})):W.gapiLoader_.load("gapi.iframes",P)},wok=function(W,P,x,I,O,B){var Y=!1;
Y=Y===void 0?!1:Y;$Rw(W,zD(P.ownerDocument)).then(function(K){var Z=K.library;W.gapiIframesResolver_.resolve(Z);K=W.gapiPickerIframeResolver_;var d=K.resolve,v=Y;v=v===void 0?!1:v;var m={};m["host-message-handler"]=x;W.hostMessageHandlerInternal_=m;var t=_.ea(I);t=_.ea(t);t=_.LA(_.qm(_.FM(new _.Xu,t.scheme_),t.JSC$7933_domain_),t.JSC$7933_port_).toString();W.origin_=t;t=(new Lxb).setUrl(I);t.JSC$7948_obj_.where=P;t.JSC$7948_obj_.allowPost=v;t.JSC$7948_obj_.messageHandlers=m;v=_.eL("makeWhiteListIframesFilter",
Z)([W.origin_]);t.JSC$7948_obj_.messageHandlersFilter=v;O!=null&&t.setId(O);B!=null&&(t.JSC$7948_obj_.rpctoken=B);v=qWz(t);v.JSC$7945_obj_.style={display:"block","min-width":"100%",width:"1px"};v.JSC$7945_obj_.height="100%";qWz(t).value().allow="camera 'src' "+W.origin_;Z=Z.getContext().openChild(t.value());d.call(K,Z)},function(K){W.gapiIframesResolver_.reject(K);
W.gapiPickerIframeResolver_.reject(K)});
return W.gapiPickerIframeResolver_.promise},hik=function(W,P){return _.Qq([W.gapiIframesResolver_.promise,
W.gapiPickerIframeResolver_.promise]).then(function(x){var I=_.n(x);x=I.next().value;return(I=I.next().value)?I.send("picker-message-handler",P,void 0,_.eL("makeWhiteListIframesFilter",x)([W.origin_])):_.s2(Error("cb"))})};
tLC.prototype.disposeInternal=function(){HXi(this);_.vn.prototype.disposeInternal.call(this)};
var HXi=function(W){W.gapiPickerIframeResolver_.promise.then(function(P){P&&(P.unregister("host-message-handler"),delete W.hostMessageHandlerInternal_["host-message-handler"])})};var eiM=function(){this.nextId=0};var a$b=function(W,P){switch(W.action){case "select-contacts":W=cQl(W.contacts);break;case "visibility":W=W.visible;var x=new P1;W=_.cI(x,1,7).setVisible(W);x={};x["iframe-command"]=W.serialize();W=x;break;default:W=null}return W?hik(P,W):_.Jn()},cQl=function(W){if(!W||W.length==0)return null;
var P=new P1;_.cI(P,1,11);var x=new eiM;W.forEach(function(I){if(I.email){var O=new ze;O=_.PX(O,2,I.name?I.name:I.email);var B=new TMW;I=_.n4m(B,1,_.em,I.email,_.aG);I=_.I$(O,27,I);O=I.setId;B=(new lY).setId(":"+(x.nextId++).toString(36));B=_.cI(B,2,12);I=O.call(I,B)}else I=null;I&&So(P,7,ze,I)});
W={};W["iframe-command"]=P.serialize();return W};_.bXM=function(){if(CXt){var W=/Windows NT ([0-9.]+)/;return(W=W.exec(_.sU()))?W[1]:"0"}return _.Q5S?(W=/1[0|1][_.][0-9_.]+/,(W=W.exec(_.sU()))?W[0].replace(/_/g,"."):"10"):BiS?(W=/Android\s+([^\);]+)(\)|;)/,(W=W.exec(_.sU()))?W[1]:""):zGd||Ggx||ESG?(W=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(W=W.exec(_.sU()))?W[1].replace(/_/g,"."):""):""}();var MC;MC=function(W){return(W=W.exec(_.sU()))?W[1]:""};
_.kOb=function(){if(_.Se)return MC(/Firefox\/([0-9.]+)/);if(_.yo||fj||t18)return HNd;if(_.u9){if(_.Hd()||_.utW()){var W=MC(/CriOS\/([0-9.]+)/);if(W)return W}return MC(/Chrome\/([0-9.]+)/)}if(_.MM&&!_.Hd())return MC(/Version\/([0-9.]+)/);if(z3m||G78){if(W=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.sU()))return W[1]+"."+W[2]}else if(kgR)return(W=MC(/Android\s+([0-9.]+)/))?W:MC(/Version\/([0-9.]+)/);return""}();var URm=function(){};
_.Id(URm);URm.prototype.nextId_=0;_.$1=function(W){return":"+(W.nextId_++).toString(36)};var wi=function(W){_.tW.call(this);this.JSC$8043_dom_=W||oQ();this.JSC$8043_id_=null;this.inDocument_=!1;this.JSC$8043_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.J8(wi,_.tW);wi.prototype.idGenerator_=URm.getInstance();wi.prototype.getId=function(){return this.JSC$8043_id_||(this.JSC$8043_id_=_.$1(this.idGenerator_))};
wi.prototype.setId=function(W){this.parent_&&this.parent_.childIndex_&&(_.jU.remove(this.parent_.childIndex_,this.JSC$8043_id_),_.jU.add(this.parent_.childIndex_,W,this));this.JSC$8043_id_=W};
wi.prototype.getElement=function(){return this.JSC$8043_element_};
var hV=function(W){W.googUiComponentHandler_||(W.googUiComponentHandler_=new _.q1(W));return W.googUiComponentHandler_},XoA=function(W,P){if(W==P)throw Error("db");
var x;if(x=P&&W.parent_&&W.JSC$8043_id_){x=W.parent_;var I=W.JSC$8043_id_;x=x.childIndex_&&I?_.jU.get(x.childIndex_,I)||null:null}if(x&&W.parent_!=P)throw Error("db");W.parent_=P;wi.superClass_.setParentEventTarget.call(W,P)};
wi.prototype.setParentEventTarget=function(W){if(this.parent_&&this.parent_!=W)throw Error("eb");wi.superClass_.setParentEventTarget.call(this,W)};
wi.prototype.JSC$8045_createDom=function(){this.JSC$8043_element_=this.JSC$8043_dom_.createElement("DIV")};
wi.prototype.render=function(W){f$k(this,W)};
var f$k=function(W,P,x){if(W.inDocument_)throw Error("fb");W.JSC$8043_element_||W.JSC$8045_createDom();P?P.insertBefore(W.JSC$8043_element_,x||null):W.JSC$8043_dom_.JSC$7231_document_.body.appendChild(W.JSC$8043_element_);W.parent_&&!W.parent_.inDocument_||W.enterDocument()};
_.J=wi.prototype;_.J.decorate=function(W){if(this.inDocument_)throw Error("fb");if(W&&this.canDecorate(W)){this.wasDecorated_=!0;var P=_.GD(W);this.JSC$8043_dom_&&this.JSC$8043_dom_.JSC$7231_document_==P||(this.JSC$8043_dom_=oQ(W));this.decorateInternal(W);this.enterDocument()}else throw Error("gb");};
_.J.canDecorate=function(){return!0};
_.J.decorateInternal=function(W){this.JSC$8043_element_=W};
_.J.enterDocument=function(){this.inDocument_=!0;NoW(this,function(W){!W.inDocument_&&W.getElement()&&W.enterDocument()})};
_.J.exitDocument=function(){NoW(this,function(W){W.inDocument_&&W.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.J.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);NoW(this,function(W){W.dispose()});
!this.wasDecorated_&&this.JSC$8043_element_&&_.oE(this.JSC$8043_element_);this.parent_=this.model_=this.JSC$8043_element_=this.childIndex_=this.children_=null;wi.superClass_.disposeInternal.call(this)};
_.J.getModel=function(){return this.model_};
_.J.addChild=function(W,P){var x=this.children_?this.children_.length:0;if(W.inDocument_&&(P||!this.inDocument_))throw Error("fb");if(x<0||x>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);W.parent_==this?(_.jU.set(this.childIndex_,W.getId(),W),_.Ft(this.children_,W)):_.jU.add(this.childIndex_,W.getId(),W);XoA(W,this);_.t8t(this.children_,x,0,W);W.inDocument_&&this.inDocument_&&W.parent_==this?(P=this.getContentElement(),
(P.childNodes[x]||null)!=W.getElement()&&(W.getElement().parentElement==P&&P.removeChild(W.getElement()),x=P.childNodes[x]||null,P.insertBefore(W.getElement(),x))):P?(this.JSC$8043_element_||this.JSC$8045_createDom(),x=this.children_?this.children_[x+1]||null:null,f$k(W,this.getContentElement(),x?x.JSC$8043_element_:null)):this.inDocument_&&!W.inDocument_&&W.JSC$8043_element_&&W.JSC$8043_element_.parentNode&&W.JSC$8043_element_.parentNode.nodeType==1&&W.enterDocument()};
_.J.getContentElement=function(){return this.JSC$8043_element_};
var NoW=function(W,P){W.children_&&W.children_.forEach(P,void 0)};
wi.prototype.removeChild=function(W,P){if(W){var x=typeof W==="string"?W:W.getId();W=this.childIndex_&&x?_.jU.get(this.childIndex_,x)||null:null;x&&W&&(_.jU.remove(this.childIndex_,x),_.Ft(this.children_,W),P&&(W.exitDocument(),W.JSC$8043_element_&&_.oE(W.JSC$8043_element_)),XoA(W,null))}if(!W)throw Error("ib");return W};_.J8(ZXt,Kkm);_.J8(o$8,Kkm);var l$z;var Tow=function(W,P){P?W.setAttribute("role",P):W.removeAttribute("role")},HL=function(W,P,x){Array.isArray(x)&&(x=x.join(" "));
var I="aria-"+P;x===""||x==void 0?(l$z||(x={},l$z=(x.atomic=!1,x.autocomplete="none",x.dropeffect="none",x.haspopup=!1,x.live="off",x.multiline=!1,x.multiselectable=!1,x.orientation="vertical",x.readonly=!1,x.relevant="additions text",x.required=!1,x.sort="none",x.busy=!1,x.disabled=!1,x.hidden=!1,x.invalid="false",x)),x=l$z,P in x?W.setAttribute(I,x[P]):W.removeAttribute(I)):W.setAttribute(I,x)};var rQz;_.et=function(W,P,x){_.tW.call(this);this.target=W;this.handle=P||W;this.limits=x||new h6(NaN,NaN,NaN,NaN);this.JSC$8048_document_=_.GD(W);this.JSC$8048_eventHandler_=new _.q1(this);_.nU(this,this.JSC$8048_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;_.uq(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=rQz};
_.J8(_.et,_.tW);rQz=_.xW.document&&_.xW.document.documentElement&&!!_.xW.document.documentElement.setCapture&&!!_.xW.document.releaseCapture;_.iXP=function(W,P){W.hysteresisDistanceSquared_=Math.pow(P,2)};
_.J=_.et.prototype;_.J.setEnabled=function(W){this.enabled_=W};
_.J.disposeInternal=function(){_.et.superClass_.disposeInternal.call(this);_.Vq(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8048_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8048_document_.releaseCapture();this.handle=this.target=null};
_.J.startDrag=function(W){var P=W.type=="mousedown";if(!this.enabled_||this.dragging_||P&&(W.event_.button!=0||_.Q5S&&W.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new cL("start",this,W.clientX,W.clientY,W)))this.dragging_=!0,P&&W.preventDefault();else return;else P&&W.preventDefault();P=this.JSC$8048_document_;var x=P.documentElement,I=!this.useSetCapture_;this.JSC$8048_eventHandler_.listen(P,["touchmove","mousemove"],this.handleMove_,
{capture:I,passive:!1});this.JSC$8048_eventHandler_.listen(P,["touchend","mouseup"],this.endDrag,I);this.useSetCapture_?(x.setCapture(!1),this.JSC$8048_eventHandler_.listen(x,"losecapture",this.endDrag)):this.JSC$8048_eventHandler_.listen(zD(P),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8048_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,I);this.clientX=this.startX=W.clientX;this.clientY=this.startY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=ZC(oQ(this.JSC$8048_document_))}};
_.J.endDrag=function(W,P){this.JSC$8048_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8048_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new cL("end",this,W.clientX,W.clientY,W,Riz(this,this.deltaX),FkZ(this,this.deltaY),P||W.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.J.handleMove_=function(W){if(this.enabled_){var P=W.clientX-this.clientX,x=W.clientY-this.clientY;this.clientX=W.clientX;this.clientY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;if(!this.dragging_){var I=this.startX-this.clientX,O=this.startY-this.clientY;if(I*I+O*O>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new cL("start",this,W.clientX,W.clientY,W)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(W);return}}x=qVm(this,P,x);P=x.x;x=x.y;this.dragging_&&this.dispatchEvent(new cL("beforedrag",
this,W.clientX,W.clientY,W,P,x))&&(LkW(this,W,P,x),W.preventDefault())}};
var qVm=function(W,P,x){var I=ZC(oQ(W.JSC$8048_document_));P+=I.x-W.pageScroll.x;x+=I.y-W.pageScroll.y;W.pageScroll=I;W.deltaX+=P;W.deltaY+=x;return new _.Al(Riz(W,W.deltaX),FkZ(W,W.deltaY))};
_.et.prototype.onScroll_=function(W){var P=qVm(this,0,0);W.clientX=this.clientX;W.clientY=this.clientY;LkW(this,W,P.x,P.y)};
var LkW=function(W,P,x,I){W.target.style.left=x+"px";W.target.style.top=I+"px";W.dispatchEvent(new cL("drag",W,P.clientX,P.clientY,P,x,I))},Riz=function(W,P){var x=W.limits;
W=isNaN(x.left)?null:x.left;x=isNaN(x.width)?0:x.width;return Math.min(W!=null?W+x:Infinity,Math.max(W!=null?W:-Infinity,P))},FkZ=function(W,P){var x=W.limits;
W=isNaN(x.top)?null:x.top;x=isNaN(x.height)?0:x.height;return Math.min(W!=null?W+x:Infinity,Math.max(W!=null?W:-Infinity,P))};
_.et.prototype.isDragging=function(){return this.dragging_};
var cL=function(W,P,x,I,O,B,Y){_.d0.call(this,W);this.clientX=x;this.clientY=I;this.browserEvent=O;this.left=B!==void 0?B:P.deltaX;this.top=Y!==void 0?Y:P.deltaY};
_.J8(cL,_.d0);var ap=function(W){this.JSC$8055_map_=new Map;var P=arguments.length;if(P>1){if(P%2)throw Error("oa");for(var x=0;x<P;x+=2)this.set(arguments[x],arguments[x+1])}else W&&this.addAll(W)};
_.J=ap.prototype;_.J.getCount=function(){return this.JSC$8055_map_.size};
_.J.getValues=function(){return Array.from(this.JSC$8055_map_.values())};
_.J.getKeys=function(){return Array.from(this.JSC$8055_map_.keys())};
_.J.containsKey=function(W){return this.JSC$8055_map_.has(W)};
_.J.containsValue=function(W){return this.getValues().some(function(P){return P==W})};
_.J.equals=function(W,P){var x=this;P=P===void 0?function(I,O){return I===O}:P;
return this===W?!0:this.JSC$8055_map_.size!=W.getCount()?!1:this.getKeys().every(function(I){return P(x.JSC$8055_map_.get(I),W.get(I))})};
_.J.isEmpty=function(){return this.JSC$8055_map_.size==0};
_.J.clear=function(){this.JSC$8055_map_.clear()};
_.J.remove=function(W){return this.JSC$8055_map_.delete(W)};
_.J.get=function(W,P){return this.JSC$8055_map_.has(W)?this.JSC$8055_map_.get(W):P};
_.J.set=function(W,P){this.JSC$8055_map_.set(W,P);return this};
_.J.addAll=function(W){if(W instanceof ap){W=_.n(W.JSC$8055_map_);for(var P=W.next();!P.done;P=W.next()){var x=_.n(P.value);P=x.next().value;x=x.next().value;this.JSC$8055_map_.set(P,x)}}else if(W)for(W=_.n(Object.entries(W)),P=W.next();!P.done;P=W.next())x=_.n(P.value),P=x.next().value,x=x.next().value,this.JSC$8055_map_.set(P,x)};
_.J.forEach=function(W,P){var x=this;P=P===void 0?this:P;this.JSC$8055_map_.forEach(function(I,O){return W.call(P,I,O,x)})};
_.J.clone=function(){return new ap(this)};(function(){for(var W=["ms","moz","webkit","o"],P,x=0;P=W[x]&&!_.xW.requestAnimationFrame;++x)_.xW.requestAnimationFrame=_.xW[P+"RequestAnimationFrame"],_.xW.cancelAnimationFrame=_.xW[P+"CancelAnimationFrame"]||_.xW[P+"CancelRequestAnimationFrame"];if(!_.xW.requestAnimationFrame){var I=0;_.xW.requestAnimationFrame=function(O){var B=(new Date).getTime(),Y=Math.max(0,16-(B-I));I=B+Y;return _.xW.setTimeout(function(){O(B+Y)},Y)};
_.xW.cancelAnimationFrame||(_.xW.cancelAnimationFrame=function(O){clearTimeout(O)})}})();
var WWk=[[],[]],PAd=0,xMz=!1,I8Z=0,JYA=function(W,P){var x=I8Z++,I={measureTask:{id:x,fn:W.measure,context:P},mutateTask:{id:x,fn:W.mutate,context:P},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(I.args||(I.args=[]),I.args.length=0,I.args.push.apply(I.args,arguments),I.args.push(I.state)):I.args&&I.args.length!=0?(I.args[0]=I.state,I.args.length=1):I.args=[I.state];I.isScheduled||(I.isScheduled=!0,WWk[PAd].push(I));xMz||(xMz=!0,window.requestAnimationFrame(Ojw))}},Ojw=
function(){xMz=!1;
var W=WWk[PAd],P=W.length;PAd=(PAd+1)%2;for(var x,I=0;I<P;++I){x=W[I];var O=x.measureTask;x.isScheduled=!1;O.fn&&O.fn.apply(O.context,x.args)}for(I=0;I<P;++I)x=W[I],O=x.mutateTask,x.isScheduled=!1,O.fn&&O.fn.apply(O.context,x.args),x.state={};W.length=0};var BOk=_.i4(["about:blank"]),nOd=_.i4(["javascript:undefined"]),Yyb=_.W9(BOk);_.y4(Yyb);var yY3=_.W9(nOd);_.y4(yY3);var bm=function(W){_.tW.call(this);this.JSC$8061_element_=W;this.listenKeyIn_=_.uq(this.JSC$8061_element_,"focus",this,!0);this.listenKeyOut_=_.uq(this.JSC$8061_element_,"blur",this,!0)};
_.J8(bm,_.tW);bm.prototype.handleEvent=function(W){var P=new _.s7(W.event_);P.type=W.type=="focusin"||W.type=="focus"?"focusin":"focusout";this.dispatchEvent(P)};
bm.prototype.disposeInternal=function(){bm.superClass_.disposeInternal.call(this);Z1(this.listenKeyIn_);Z1(this.listenKeyOut_);delete this.JSC$8061_element_};var KWz=function(W,P){this.JSC$8064_element_=W;this.JSC$8064_dom_=P};var k1=function(W,P){wi.call(this,P);this.useIframeMask_=!!W;this.lastFocus_=null;this.resizeBackgroundTask_=JYA({mutate:this.resizeBackground_},this);JYA({mutate:this.updateModalAndBackground_},this)};
_.J8(k1,wi);_.J=k1.prototype;_.J.focusHandler_=null;_.J.visible_=!1;_.J.bgEl_=null;_.J.bgIframeEl_=null;_.J.tabCatcherElement_=null;_.J.backwardTabWrapInProgress_=!1;_.J.getCssClass=function(){return"goog-modalpopup"};
_.J.getBackgroundElement=function(){return this.bgEl_};
_.J.JSC$8045_createDom=function(){k1.superClass_.JSC$8045_createDom.call(this);var W=this.getElement(),P=uC(this.getCssClass()).split(" ");U7(W,P);W.tabIndex=0;_.bZ(W,!1);Zjl(this);oOp(this)};
var Zjl=function(W){if(W.useIframeMask_&&!W.bgIframeEl_){var P=W.JSC$8043_dom_.JSC$7233_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.g9(P,Yyb);W.bgIframeEl_=P;W.bgIframeEl_.className=W.getCssClass()+"-bg";_.bZ(W.bgIframeEl_,!1);Svm(W.bgIframeEl_,0)}W.bgEl_||(W.bgEl_=W.JSC$8043_dom_.JSC$7233_createDom("DIV",W.getCssClass()+"-bg"),_.bZ(W.bgEl_,!1))},oOp=function(W){W.tabCatcherElement_||(W.tabCatcherElement_=W.JSC$8043_dom_.createElement("SPAN"),_.bZ(W.tabCatcherElement_,
!1),W.tabCatcherElement_.tabIndex=0,W.tabCatcherElement_.style.position="absolute")};
_.J=k1.prototype;_.J.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.J.canDecorate=function(W){return!!W&&W.tagName=="DIV"};
_.J.decorateInternal=function(W){k1.superClass_.decorateInternal.call(this,W);W=uC(this.getCssClass()).split(" ");U7(this.getElement(),W);Zjl(this);oOp(this);this.getElement().tabIndex=0;_.bZ(this.getElement(),!1)};
_.J.enterDocument=function(){this.bgIframeEl_&&_.D9(this.bgIframeEl_,this.getElement());_.D9(this.bgEl_,this.getElement());k1.superClass_.enterDocument.call(this);_.MQ(this.tabCatcherElement_,this.getElement());this.focusHandler_=new bm(this.JSC$8043_dom_.JSC$7231_document_);hV(this).listen(this.focusHandler_,"focusin",this.onFocus);Syk(this,!1)};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.TD(this.focusHandler_);k1.superClass_.exitDocument.call(this);_.oE(this.bgIframeEl_);_.oE(this.bgEl_);_.oE(this.tabCatcherElement_)};
_.J.setVisible=function(W){if(W!=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_&&Syk(this,W),W){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8043_dom_.JSC$7231_document_.activeElement}catch(O){}this.updateModalAndBackground_();hV(this).listen(this.JSC$8043_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8043_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);u9z(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Kt(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){hV(this).unlisten(this.JSC$8043_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8043_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Kt(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var P=this.JSC$8043_dom_,x=P.JSC$7231_document_.body,I=P.JSC$7231_document_.activeElement||x;if(!this.lastFocus_||this.lastFocus_==x){this.lastFocus_=null;break a}(I==x||P.contains(this.getElement(),I))&&this.lastFocus_.focus()}catch(O){}this.lastFocus_=
null}}};
var Syk=function(W,P){W.modalAriaVisibilityHelper_||(W.modalAriaVisibilityHelper_=new KWz(W.JSC$8043_element_,W.JSC$8043_dom_));W=W.modalAriaVisibilityHelper_;if(P){W.hiddenElements_||(W.hiddenElements_=[]);P=W.JSC$8064_dom_.getChildren(W.JSC$8064_dom_.JSC$7231_document_.body);for(var x=0;x<P.length;x++){var I=P[x],O;if(O=I!=W.JSC$8064_element_)O=I.getAttribute("aria-hidden"),O=!(O==null||O==void 0?0:String(O));O&&(HL(I,"hidden",!0),W.hiddenElements_.push(I))}}else if(W.hiddenElements_){for(P=0;P<
W.hiddenElements_.length;P++)W.hiddenElements_[P].removeAttribute("aria-hidden");W.hiddenElements_=null}};
k1.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var u9z=function(W,P){W.bgIframeEl_&&_.bZ(W.bgIframeEl_,P);W.bgEl_&&_.bZ(W.bgEl_,P);_.bZ(W.getElement(),P);_.bZ(W.tabCatcherElement_,P)};
_.J=k1.prototype;_.J.onShow=function(){this.dispatchEvent("show")};
_.J.onHide=function(){u9z(this,!1);this.dispatchEvent("hide")};
_.J.isVisible=function(){return this.visible_};
_.J.focus=function(){this.focusElement_()};
_.J.resizeBackground_=function(){this.bgIframeEl_&&_.bZ(this.bgIframeEl_,!1);this.bgEl_&&_.bZ(this.bgEl_,!1);var W=this.JSC$8043_dom_.JSC$7231_document_;var P=_.K5(zD(this.JSC$8043_dom_.JSC$7231_document_)||window);var x=Math.max(P.width,Math.max(W.body.scrollWidth,W.documentElement.scrollWidth));W=Math.max(P.height,Math.max(W.body.scrollHeight,W.documentElement.scrollHeight));this.bgIframeEl_&&(_.bZ(this.bgIframeEl_,!0),_.y9M(this.bgIframeEl_,x,W));this.bgEl_&&(_.bZ(this.bgEl_,!0),_.y9M(this.bgEl_,
x,W))};
_.J.reposition=function(){var W;if(_.YvM(this.getElement())=="fixed")var P=W=0;else P=ZC(this.JSC$8043_dom_),W=P.x,P=P.y;var x=Z2c(this.getElement());var I=_.K5(zD(this.JSC$8043_dom_.JSC$7231_document_)||window);W=Math.max(W+I.width/2-x.width/2,0);P=Math.max(P+I.height/2-x.height/2,0);cx(this.getElement(),W,P);cx(this.tabCatcherElement_,W,P)};
_.J.onFocus=function(W){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():W.target==this.tabCatcherElement_&&AW(this.focusElement_,0,this)};
_.J.focusElement_=function(){try{this.getElement().focus()}catch(W){}};
_.J.disposeInternal=function(){_.TD(this.popupShowTransition_);this.popupShowTransition_=null;_.TD(this.popupHideTransition_);this.popupHideTransition_=null;_.TD(this.bgShowTransition_);this.bgShowTransition_=null;_.TD(this.bgHideTransition_);this.bgHideTransition_=null;k1.superClass_.disposeInternal.call(this)};var GF=function(W,P,x){k1.call(this,P,x);this.JSC$8074_class_=W||"modal-dialog";this.buttons_=(new UP).addButton(dMM,!0).addButton(s6i,!1,!0)};
_.J8(GF,k1);_.J=GF.prototype;_.J.escapeToCancel_=!0;_.J.hasTitleCloseButton_=!0;_.J.modal_=!0;_.J.draggable_=!0;_.J.backgroundElementOpacity_=.5;_.J.title_="";_.J.JSC$8076_dragger_=null;_.J.JSC$8076_disposeOnHide_=!1;_.J.titleEl_=null;_.J.titleTextEl_=null;_.J.titleTextId_=null;_.J.titleCloseEl_=null;_.J.contentEl_=null;_.J.buttonEl_=null;_.J.getCssClass=function(){return this.JSC$8074_class_};
_.J.setTitle=function(W){this.title_=W;this.titleTextEl_&&_.wN(this.titleTextEl_,W)};
_.J.getTitle=function(){return this.title_};
_.J.getContent=function(){return""};
_.J.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var vOi=function(W){W.getElement()||W.render();return W.getElement()};
GF.prototype.getBackgroundElement=function(){this.getElement()||this.render();return GF.superClass_.getBackgroundElement.call(this)};
var mMw=function(W,P){W.backgroundElementOpacity_=P;W.getElement()&&(P=W.getBackgroundElement())&&Svm(P,W.backgroundElementOpacity_)};
GF.prototype.setDraggable=function(W){this.draggable_=W;VBZ(this,W&&this.inDocument_)};
GF.prototype.JSC$8076_handleDrag=function(){};
var VBZ=function(W,P){var x=uC(W.JSC$8074_class_+"-title-draggable").split(" ");W.getElement()&&(P?U7(W.titleEl_,x):R6p(W.titleEl_,x));P&&!W.JSC$8076_dragger_?(P=new _.et(W.getElement(),W.titleEl_),W.JSC$8076_dragger_=P,U7(W.titleEl_,x),_.uq(W.JSC$8076_dragger_,"start",W.setDraggerLimits_,!1,W),_.uq(W.JSC$8076_dragger_,"drag",W.JSC$8076_handleDrag,!1,W)):!P&&W.JSC$8076_dragger_&&(W.JSC$8076_dragger_.dispose(),W.JSC$8076_dragger_=null)};
_.J=GF.prototype;
_.J.JSC$8045_createDom=function(){GF.superClass_.JSC$8045_createDom.call(this);var W=this.getElement(),P=this.JSC$8043_dom_;this.titleTextId_=this.getId();var x=this.getId()+".contentEl";this.titleEl_=P.JSC$7233_createDom("DIV",this.JSC$8074_class_+"-title",this.titleTextEl_=P.JSC$7233_createDom("SPAN",{className:this.JSC$8074_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=P.JSC$7233_createDom("SPAN",this.JSC$8074_class_+"-title-close"));XmM(W,this.titleEl_,this.contentEl_=
P.JSC$7233_createDom("DIV",{className:this.JSC$8074_class_+"-content",id:x}),this.buttonEl_=P.JSC$7233_createDom("DIV",this.JSC$8074_class_+"-buttons"));Tow(this.titleTextEl_,"heading");Tow(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;HL(this.titleCloseEl_,"label","Close");Tow(W,"dialog");HL(W,"labelledby",this.titleTextId_||"");_.bZ(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(W=this.buttons_,W.JSC$8077_element_=this.buttonEl_,W.render());_.bZ(this.buttonEl_,!!this.buttons_);
mMw(this,this.backgroundElementOpacity_)};
_.J.decorateInternal=function(W){GF.superClass_.decorateInternal.call(this,W);W=this.getElement();var P=this.JSC$8074_class_+"-content";this.contentEl_=Cd(document,null,P,W)[0];this.contentEl_||(this.contentEl_=this.JSC$8043_dom_.JSC$7233_createDom("DIV",P),W.appendChild(this.contentEl_));P=this.JSC$8074_class_+"-title";var x=this.JSC$8074_class_+"-title-text",I=this.JSC$8074_class_+"-title-close";(this.titleEl_=Cd(document,null,P,W)[0])?(this.titleTextEl_=Cd(document,null,x,this.titleEl_)[0],this.titleCloseEl_=
Cd(document,null,I,this.titleEl_)[0]):(this.titleEl_=this.JSC$8043_dom_.JSC$7233_createDom("DIV",P),W.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=IBb(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.zT("SPAN",{className:x,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;HL(W,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8043_dom_.JSC$7233_createDom("SPAN",
I),this.titleEl_.appendChild(this.titleCloseEl_));_.bZ(this.titleCloseEl_,this.hasTitleCloseButton_);P=this.JSC$8074_class_+"-buttons";(this.buttonEl_=Cd(document,null,P,W)[0])?(this.buttons_=new UP(this.JSC$8043_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8043_dom_.JSC$7233_createDom("DIV",P),W.appendChild(this.buttonEl_),this.buttons_&&(W=this.buttons_,W.JSC$8077_element_=this.buttonEl_,W.render()),_.bZ(this.buttonEl_,!!this.buttons_));mMw(this,this.backgroundElementOpacity_)};
_.J.enterDocument=function(){GF.superClass_.enterDocument.call(this);hV(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);hV(this).listen(this.buttonEl_,"click",this.onButtonClick_);VBZ(this,this.draggable_);hV(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var W=this.getElement();Tow(W,"dialog");this.titleTextEl_.id!==""&&HL(W,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){W=this.JSC$8043_dom_;
var P=this.getBackgroundElement();W.removeNode(this.bgIframeEl_);W.removeNode(P)}this.isVisible()&&Syk(this,!1)}};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);VBZ(this,!1);GF.superClass_.exitDocument.call(this)};
_.J.setVisible=function(W){W!=this.isVisible()&&(this.inDocument_||this.render(),GF.superClass_.setVisible.call(this,W))};
_.J.onShow=function(){GF.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.J.onHide=function(){GF.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8076_disposeOnHide_&&this.dispose()};
_.J.setDraggerLimits_=function(){var W=this.JSC$8043_dom_.JSC$7231_document_,P=_.K5(zD(W)||window),x=Math.max(W.body.scrollWidth,P.width);W=Math.max(W.body.scrollHeight,P.height);var I=Z2c(this.getElement());_.YvM(this.getElement())=="fixed"?this.JSC$8076_dragger_.limits=new h6(0,0,Math.max(0,P.width-I.width),Math.max(0,P.height-I.height)):this.JSC$8076_dragger_.limits=new h6(0,0,x-I.width,W-I.height)};
_.J.onTitleCloseClick_=function(){tBk(this)};
var tBk=function(W){if(W.hasTitleCloseButton_){var P=W.buttons_,x=P&&P.cancelButton_;x?(P=P.get(x),W.dispatchEvent(new Xq(x,P))&&W.setVisible(!1)):W.setVisible(!1)}},pim=function(W){W.hasTitleCloseButton_=!1;
W.titleCloseEl_&&_.bZ(W.titleCloseEl_,W.hasTitleCloseButton_)};
GF.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;GF.superClass_.disposeInternal.call(this)};
GF.prototype.onButtonClick_=function(W){a:{for(W=W.target;W!=null&&W!=this.buttonEl_;){if(W.tagName=="BUTTON")break a;W=W.parentNode}W=null}if(W&&!W.disabled){W=W.name;var P=this.buttons_.get(W);this.dispatchEvent(new Xq(W,P))&&this.setVisible(!1)}};
GF.prototype.onKey_=function(W){var P=!1,x=!1,I=this.buttons_,O=W.target;if(W.type=="keydown")if(this.escapeToCancel_&&W.keyCode==27){var B=I&&I.cancelButton_;O=O.tagName=="SELECT"&&!O.disabled;B&&!O?(x=!0,P=I.get(B),P=this.dispatchEvent(new Xq(B,P))):O||(P=!0)}else{if(W.keyCode==9&&W.shiftKey&&O==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(v){}AW(this.resetBackwardTabWrap_,0,this)}}else if(W.keyCode==13){if(O.tagName=="BUTTON"&&!O.disabled)B=O.name;
else if(O==this.titleCloseEl_)tBk(this);else if(I){var Y=I.defaultButton_,K;if(K=Y)a:{K=Sa("BUTTON",I.JSC$8077_element_);for(var Z,d=0;Z=K[d];d++)if(Z.name==Y||Z.id==Y){K=Z;break a}K=null}O=(O.tagName=="TEXTAREA"||O.tagName=="SELECT"||O.tagName=="A")&&!O.disabled;!K||K.disabled||O||(B=Y)}B&&I&&(x=!0,P=this.dispatchEvent(new Xq(B,String(I.get(B)))))}else O!=this.titleCloseEl_||W.keyCode!=32&&W.key!=" "||tBk(this);if(P||x)W.stopPropagation(),W.preventDefault();P&&this.setVisible(!1)};
var Xq=function(W,P){this.type="dialogselect";this.key=W;this.caption=P};
_.J8(Xq,_.d0);var UP=function(W){ap.call(this);W||oQ();this.cancelButton_=this.JSC$8077_element_=this.defaultButton_=null};
_.J8(UP,ap);_.J=UP.prototype;_.J.clear=function(){ap.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.J.set=function(W,P,x,I){ap.prototype.set.call(this,W,P);x&&(this.defaultButton_=W);I&&(this.cancelButton_=W);return this};
_.J.addButton=function(W,P,x){return this.set(W.key,W.caption,P,x)};
_.J.render=function(){if(this.JSC$8077_element_){_.a$(this.JSC$8077_element_,CPU);var W=oQ(this.JSC$8077_element_);this.forEach(function(P,x){P=W.JSC$7233_createDom("BUTTON",{name:x},P);x==this.defaultButton_&&(P.className="goog-buttonset-default");this.JSC$8077_element_.appendChild(P)},this)}};
_.J.decorate=function(W){if(W&&W.nodeType==1){this.JSC$8077_element_=W;W=Sa("BUTTON",this.JSC$8077_element_);for(var P,x,I,O=0;P=W[O];O++)if(x=P.name||P.id,I=IBb(P)||P.value,x){var B=O==0;this.set(x,I,B,P.name=="cancel");B&&_.kY(P,"goog-buttonset-default")}}};
_.J.getElement=function(){return this.JSC$8077_element_};
var dMM={key:"ok",caption:"OK"},s6i={key:"cancel",caption:"Cancel"},j6p={key:"yes",caption:"Yes"},Q6P={key:"no",caption:"No"},CAA={key:"save",caption:"Save"},AYp={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new UP).addButton(dMM,!0,!0),(new UP).addButton(dMM,!0).addButton(s6i,!1,!0),(new UP).addButton(j6p,!0).addButton(Q6P,!1,!0),(new UP).addButton(j6p).addButton(Q6P,!0).addButton(s6i,!1,!0),(new UP).addButton(AYp).addButton(CAA).addButton(s6i,!0,!0));_.J8(SVA,GF);_.J8(uYC,gv);var zMi=_.i4(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),GMM=_.i4(["//apis.google.com/js/rpc.js"]),QlU=_.W9(zMi),jlm=_.W9(GMM),slW=null;var DV=function(W,P){_.tW.call(this);this.JSC$8086_element_=W;W=_.Nt(this.JSC$8086_element_)?this.JSC$8086_element_:this.JSC$8086_element_?this.JSC$8086_element_.body:null;this.isRtl_=!!W&&_.u6P(W);this.listenKey_=_.uq(this.JSC$8086_element_,_.KW?"DOMMouseScroll":"mousewheel",this,P)};
_.J8(DV,_.tW);DV.prototype.handleEvent=function(W){var P=0,x=0,I=W.event_;I.type=="mousewheel"?(W=EOl(-I.wheelDelta),I.wheelDeltaX!==void 0?(P=EOl(-I.wheelDeltaX),x=EOl(-I.wheelDeltaY)):x=W):(W=I.detail,W>100?W=3:W<-100&&(W=-3),I.axis!==void 0&&I.axis===I.HORIZONTAL_AXIS?P=W:x=W);typeof this.maxDeltaX_==="number"&&(P=_.HX(P,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(x=_.HX(x,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(P=-P);P=new gOW(W,I,P,x);this.dispatchEvent(P)};
var EOl=function(W){return _.Z2&&(_.Q5S||ArR)&&W%40!=0?W:W/40};
DV.prototype.disposeInternal=function(){DV.superClass_.disposeInternal.call(this);Z1(this.listenKey_);this.listenKey_=null};
var gOW=function(W,P,x,I){_.s7.call(this,P);this.type="mousewheel";this.detail=W;this.deltaX=x;this.deltaY=I};
_.J8(gOW,_.s7);_.yV=function(W){var P="instance_";if(W.instance_&&W.hasOwnProperty(P))return W.instance_;P=new W;return W.instance_=P};var po7;var DMk=_.i4(["https://about:blank"]),MBc=_.i4(['javascript:""']),$MA=_.i4(["about:blank"]);_.J8(kj,SVA);_.J=kj.prototype;_.J.JSC$8094_url_="";_.J.JSC$8094_iframe_=null;_.J.iframeLoaded_=!1;_.J.loadedFired_=!1;_.J.callback_=function(){};
_.J.enterDocument=function(){kj.superClass_.enterDocument.call(this);VLx(this.getBackgroundElement(),hV(this))};
_.J.render=function(W){var P=this;kj.superClass_.render.call(this,W);this.useGapi_?$Rw(this.iframeManager_,window).then(function(){return wii(P)}).then(null,function(){P.callback_({action:"error"})}):hMb(this)};
var wii=function(W){var P=W.JSC$8043_dom_.JSC$7233_createDom("div",["picker-dialog-content","picker-frame"]);_.bZ(P,!1);W.getContentElement().appendChild(P);return wok(W.iframeManager_,P,function(x){var I=nTc(x["iframe-command"]);switch(I.getCommand()){case 1:x=W.callback_;I=_.qM(I,W1,2);var O="";switch(I.getStatus()){case 2:O="cancel";break;case 1:O="picked";break;case 3:O="error"}var B=_.RQ(I,ze,2,_.qT(RG8));I=B.length===0?{action:O}:uYp(B,O,_.qM(I,OxA,7));x.call(W,I);W.setVisible(!1);break;case 4:pim(W);
W.callback_({action:"loaded"});break;case 7:case 8:x=W.callback_;a:{O=I.getCommand();B=_.qM(I,W1,2);switch(O){case 7:O="uploadScheduled";break;case 8:O="uploadStateChange";break;default:I={};break a}I=_.RQ(B,ze,2,_.qT(RG8));if(I.length===0)I={action:O};else{var Y=_.qM(B,OxA,7);B=Y&&_.MY(Y,1);Y=I$c(Y);I=BoM(I,O,B,Y)}}x.call(W,I)}},W.JSC$8094_url_,W.targetId_,W.rpcToken_).then(function(x){W.JSC$8094_iframe_=x.getIframeEl();
Hjw(W);_.bZ(W.JSC$8094_iframe_.parentElement,!0);_.kY(W.getElement(),"picker-dialog");eMk(W);return x})},hMb=function(W){W.JSC$8094_iframe_=W.JSC$8043_dom_.JSC$7233_createDom("IFRAME",{id:W.targetId_,
name:W.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.g9(W.JSC$8094_iframe_,cYb(W));_.kY(W.getElement(),"picker-dialog");W.getContentElement().appendChild(W.JSC$8094_iframe_);hV(W).listen(W.JSC$8094_iframe_,"load",function(){return void Hjw(W)});
W.JSC$8094_iframe_.src=W.JSC$8094_url_;eMk(W)},bjk=function(W){a8i(W,(0,_.mx)(function(P){P.setAuthToken(this.targetId_,this.rpcToken_)},W))},eMk=function(W){var P=_.cn(_.ea(W.JSC$8094_url_),"title");
P&&W.setTitle(P)},cYb=function(W){return _.Zmt("Internet Explorer")>=7&&_.Bd(W.JSC$8094_url_,"https")?_.W9(DMk):_.yo?_.W9(MBc):_.W9($MA)},Hjw=function(W){bjk(W);
W.iframeLoaded_=!0;W.JSC$8094_iframe_.tabIndex=0;W.isVisible()&&W.focus()};
kj.prototype.handleKeydown_=function(W){W.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),W.stopPropagation(),W.preventDefault())};
var a8i=function(W,P){var x=W.JSC$8092_gadgetsDomHelper_;v$t(function(){P(x.getWindow().gadgets.rpc)},x)};
kj.prototype.setUrl=function(W){W=_.aE(new _.Xu(W),"rpcService",this.targetId_);_.aE(W,"rpctoken",this.rpcToken_);_.x1(W,"rpctoken="+this.rpcToken_);_.FM(W,"https");this.JSC$8094_url_=W.toString();this.JSC$8094_iframe_&&(this.JSC$8094_iframe_.src=this.JSC$8094_url_)};
var kMd=function(W,P){W.callback_=P;a8i(W,(0,_.mx)(function(x){x.register(this.targetId_,(0,_.mx)(this.handlePickerAction_,this))},W))};
kj.prototype.handlePickerAction_=function(W){var P=W.action;P=="loaded"&&(this.loadedFired_=!0,UMc(this,new o$8(this.isVisible())),Xiw(this),pim(this),hV(this).unlisten(this.JSC$8043_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8094_iframe_.tabIndex=0);P!="picked"&&P!="cancel"||this.setVisible(!1);this.callback_(W)};
var Xiw=function(W){W.JSC$8094_appId_&&UMc(W,new ZXt(W.JSC$8094_appId_,window.location.protocol+"//"+window.location.host))};
kj.prototype.setRelayUrl=function(W){a8i(this,(0,_.mx)(function(P){P.setRelayUrl(this.targetId_,W)},this))};
var UMc=function(W,P){W.useGapi_&&a$b(P,W.iframeManager_).then(null,function(){W.callback_({action:"error"})});
a8i(W,(0,_.mx)(function(x){x.call(this.targetId_,"picker",null,P)},W))};
kj.prototype.resizePicker_=function(){var W=zD(this.JSC$8043_dom_.JSC$7231_document_)||window;if(_.cn(_.ea(this.JSC$8094_url_),"ignoreLimits")=="true")W=new _.y7(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.cn(_.ea(this.JSC$8094_url_),"shadeDialog")=="true"){var P=vOi(this);P=dLw(P);var x=_.K5(W);W=x.width-80;x=x.height-40;P&&(W-=P.left?P.left:0,W-=P.right?P.right:0,x-=P.top?P.top:0,x-=P.bottom?P.bottom:0);W=new _.y7(W>0?W:0,x>0?x:0)}else(P=this.preferredDialogWidth_)?(P=Math.max(320,
Math.min(1051,P)),(x=this.preferredDialogHeight_)||(x=_.K5(W).height*.85),x=Math.max(480,Math.min(650,x))):(P=_.K5(W),x=P.width*.618,x=x<P.height?Math.round(Math.max(480,Math.min(650,x*.85))):Math.round(Math.max(480,Math.min(650,P.height*.85))),P=Math.round(x/.618)),W=_.K5(W),P=Math.min(P,Math.max(W.width,320)),x=Math.min(x,Math.max(W.height,480)),W=new _.y7(P,x);_.y9M(this.getContentElement(),W);this.reposition()};
kj.prototype.reposition=function(){if(_.cn(_.ea(this.JSC$8094_url_),"shadeDialog")=="true"){var W=Z2c(this.getElement()),P=_.K5(this.JSC$8043_dom_.getWindow());W=Math.floor(P.width/2-W.width/2);P=vOi(this);if(P=dLw(P)){var x=P.left?P.left:0;x+=P.right?P.right:0;W=Math.floor(W-x/2)}W=W>0?W:0;P=ZC(this.JSC$8043_dom_).y;cx(this.getElement(),W,P)}else kj.superClass_.reposition.call(this)};
kj.prototype.setVisible=function(W){if(W!=this.isVisible()&&this.autoSizeDialog_){var P=this.JSC$8043_dom_.getWindow();W?(this.resizePicker_(),hV(this).listen(P,"resize",this.resizePicker_),this.iframeLoaded_||hV(this).listen(P,"keydown",this.handleKeydown_)):(hV(this).unlisten(P,"resize",this.resizePicker_),this.iframeLoaded_||hV(this).unlisten(P,"keydown",this.handleKeydown_))}kj.superClass_.setVisible.call(this,W);UMc(this,new o$8(W))};
kj.prototype.focus=function(){kj.superClass_.focus.call(this);if(this.JSC$8094_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8094_iframe_.focus()}catch(W){}};var so=function(W,P){P=P===void 0?kj:P;gv.call(this,W);this.pickerConstructor=P;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(W=window.location.origin)||(W=window.location.protocol+"//"+window.location.host);W&&this.urlParamMap_.set("origin",W);this.postProcessors_=[]};
_.A(so,uYC);so.prototype.JSC$8099_disposeOnHide_=!1;
so.prototype.build=function(){this.JSC$8000_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8000_appId_);this.getRelayUrl()||this.setRelayUrl(_.WL(_.x1(_.PL(_.ea(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var W=new this.pickerConstructor(f8W(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);W.JSC$8076_disposeOnHide_=this.JSC$8099_disposeOnHide_;
W.JSC$8094_appId_=this.JSC$8000_appId_;W.loadedFired_&&Xiw(W);kMd(W,this.callback_);return W};
var NOi=function(W){W.urlParamMap_.set("multiselectEnabled","true");return W};
so.prototype.getHeight=function(){return this.dialogHeight_};
so.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
so.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
so.prototype.getWidth=function(){return this.dialogWidth_};
var l8M=function(W){W.JSC$8099_disposeOnHide_=void 0;return W};
so.prototype.setRelayUrl=function(W){this.urlParamMap_.set("parent",W);return this};
var TOc=function(W,P){W.urlParamMap_.set("selectButtonLabel",P);return W};
so.prototype.setSize=function(W,P){this.dialogWidth_=W;this.dialogHeight_=P;return this};
so.prototype.setTitle=function(W){this.urlParamMap_.set("title",W);return this};
var f8W=function(W){W.postProcessors_.length&&W.urlParamMap_.set("pp",JSON.stringify(W.postProcessors_));W.urlParamMap_.set("nav",L9p(W.nav_));var P=new _.Xu(W.getBaseUrl());W.urlParamMap_.forEach(function(x,I){_.aE(P,I,x)});
return P};var RMA=function(W,P){W.name!==void 0?(this.name=W.name,this.code=rYk[W.name]):(this.code=W=W.code,this.name=ijW(W));_.Wd.call(this,AmM("%s %s",this.name,P))};
_.J8(RMA,_.Wd);var ijW=function(W){var P=_.jU.findKey(rYk,function(x){return W==x});
if(P===void 0)throw Error("lb`"+W);return P},fb={},rYk=(fb.AbortError=3,fb.EncodingError=5,fb.InvalidModificationError=9,fb.InvalidStateError=7,fb.NotFoundError=1,fb.NotReadableError=4,fb.NoModificationAllowedError=6,fb.PathExistsError=12,fb.QuotaExceededError=10,fb.SecurityError=2,fb.SyntaxError=8,fb.TypeMismatchError=11,fb);var FWm=function(W,P){_.d0.call(this,W.type,P);this.event_=W};
_.J8(FWm,_.d0);var qyZ=function(W,P,x){x===void 0&&(x=W.size);return W.slice?W.slice(P,x):null};var zio=new WeakMap,AQm=function(W,P){W=[W];for(var x=P.length-1;x>=0;--x)W.push(typeof P[x],P[x]);return W.join("\v")};_.E$x(function(){if(!_.xW.Blob)return!1;var W=new Uint8Array(100);try{var P=new Blob([W])}catch(x){return!1}return P.size!=100?!1:!0});
var LWi=_.E$x(function(){if(!_.xW.Blob)return!1;var W=new Uint8Array(100);try{var P=new Blob([W])}catch(x){return!1}return qyZ(P,0,1)===null?!1:!0});_.xW.U3bHHf!=null||(_.xW.U3bHHf=0);_.xW.U3bHHf++;var DRd={};var Np=void 0;var $Rm=Symbol("tb");var Noo=TF("WizInjectionContext_Dispatcher");var bXm=TF("WizInjectionContext_RootElement");var URd=TF("WizInjectionContext_AppContext"),kO7=TF("WizInjectionContext_ModelRootElement"),XoR=TF("WizInjectionContext_RendererData"),f$S=TF("WizInjectionContext_InjectingConstructor"),a$7=TF("WizInjectionContext_AsyncDeps"),l$8={};var FkG=!1;var Wpp=Symbol("xb"),f8o=Symbol("yb"),rYS=Symbol("zb"),l8m=Symbol("Ab"),PEm=ip(function(W){return qp(W)&&Wpp in W});var PAx={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:s58,enableLazyTsx:vSm,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var FJ=Object.assign({},{attributes:{},handleError:function(W){throw W;}},PAx);var nOx=Symbol("Bb"),NC={},JYR=(NC[nOx]=!0,NC.debugName="[component]",NC.getComponentStack=function(){for(var W=[],P=this;P;)Yy7(P)&&W.push(P.debugName),P=P.parent;return W},NC.registerSignal=function(){},NC.registerEffect=function(){},NC);var LU=null,IC=!1,u98=1,BJ=Symbol("Cb"),oC={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var lm=Symbol("Db"),Tu=Symbol("Eb"),Jg=Symbol("Fb"),j6C=Object.assign({},oC,{value:lm,dirty:!0,error:null,equal:yYA,kind:"computed",producerMustRecompute:function(W){return W.value===lm||W.value===Tu},
producerRecomputeValue:function(W){if(W.value===Tu)throw Error("da");var P=W.value;W.value=Tu;var x=VBG(W),I=!1;try{var O=W.computation();WJ(null);I=P!==lm&&P!==Jg&&O!==Jg&&W.equal(P,O)}catch(B){O=Jg,W.error=B}finally{tBS(W,x)}I?W.value=P:(W.value=O,W.version++)}});var GMm=function(){throw Error();};var gOo=null,CAR=Object.assign({},oC,{equal:yYA,value:void 0,kind:"signal"});Object.assign({},oC,{value:lm,dirty:!0,error:null,equal:yYA,kind:"linkedSignal",producerMustRecompute:function(W){return W.value===lm||W.value===Tu},
producerRecomputeValue:function(W){if(W.value===Tu)throw Error("da");var P=W.value;W.value=Tu;var x=VBG(W);try{var I=W.source();var O=W.computation(I,P===lm||P===Jg?void 0:{source:W.sourceValue,value:P});W.sourceValue=I}catch(B){O=Jg,W.error=B}finally{tBS(W,x)}P!==lm&&O!==Jg&&W.equal(P,O)?W.value=P:(W.value=O,W.version++)}});Object.assign({},oC,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(W){W.schedule!==null&&W.schedule(W.ref)},
hasRun:!1,cleanupFn:function(){}});var MBU=Symbol("Gb"),yU=Symbol("Hb");var K4=Array.isArray;var kMx;var PEM={},Xim=bjS(Object.assign({},{consumerAllowSignalWrites:!0},PEM)),KX=bjS(Object.assign({},{consumerAllowSignalWrites:!0},PEM));var d1=0,ri=function(){this.queue=new Set};
ri.prototype.remove=function(W){this.queue.delete(W)};
ri.prototype.clear=function(){this.queue.clear()};
var xtd=function(){ri.apply(this,arguments)};
_.A(xtd,ri);xtd.prototype.schedule=function(W){this.queue.add(W)};
xtd.prototype.flush=function(){if(this.queue.size)for(var W=_.n(this.queue),P=W.next();!P.done;P=W.next()){P=P.value;this.queue.delete(P);try{P.run()}catch(x){IqZ(x)}}};
var ODp=new xtd,im=function(){ri.apply(this,arguments)};
_.A(im,ri);var J0W=function(){im.apply(this,arguments)};
_.A(J0W,im);J0W.prototype.schedule=function(W){W.hasRun?this.queue.add(W):W.run()};
J0W.prototype.flush=function(){if(this.queue.size){var W=this.queue;this.queue=new Set;xtx(W)}};
var NOW=new J0W,B3p=function(){im.apply(this,arguments)};
_.A(B3p,im);B3p.prototype.schedule=function(W){var P=this;return _.y(function(x){if(x.nextAddress==1)return W.hasRun?x.jumpTo(2):_.S(x,Promise.resolve(),3);if(x.nextAddress!=2)return W.run(),x.return();P.queue.add(W);_.Kl(x)})};
B3p.prototype.flush=function(){var W=this;return _.y(function(P){if(P.nextAddress==1)return W.queue.size?_.S(P,Promise.resolve(),2):P.return();xtx(W.queue);_.Kl(P)})};
var ijo=new B3p,nNi=function(){im.apply(this,arguments)};
_.A(nNi,im);nNi.prototype.schedule=function(W){this.queue.add(W)};
nNi.prototype.flush=function(){this.queue.size&&xtx(this.queue)};
var TOU=new nNi,LWW=[NOW,ODp,TOU,ijo],Yzb=[NOW,TOU,ijo],FWd=[];gOo=function(){WpC();for(var W=_.n(FWd),P=W.next();!P.done;P=W.next())P=P.value,P()};
var IqZ=OU;var vJ=Symbol("Mb");var sw=null,B3C,nNW=null,Yz7;var Rp={},y0l=Object.assign({},oC,(Rp[Wpp]=!0,Rp.effectType=f8o,Rp.isResettableContext=!0,Rp.producerNode=void 0,Rp.hasRun=!1,Rp.effectFn=null,Rp.consumerIsAlwaysLive=!0,Rp.consumerAllowSignalWrites=!0,Rp.consumerMarkedDirty=RMR,Rp.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(IC)throw Error("Nb");this.dirty=!1;if(!this.hasRun||dMm(this)){this.hasRun=!0;cQt(this);var W=lZ(this),P=VBG(this);I8G("effectRun",this.debugName);try{FJ.enableContextBasedComponentStacks?this.effectFn():p4(this.effectFn,
this.componentStack)}catch(x){throw FJ.enableContextBasedComponentStacks&&tg(x),x;}finally{Ojm("effectRun",this.debugName),tBS(this,P),lZ(W)}}}},Rp.componentStack=void 0,Rp.debugName="[effect]",Rp[Symbol.dispose]=function(){KW8(this);
if(Ow(this))for(var W=0;W<this.producerNode.length;W++)Zjt(this.producerNode[W],this.producerIndexOfThis[W]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);W=_.n(Yzb);for(var P=W.next();!P.done;P=W.next())P.value.remove(this);eim(this)},Rp));var ZDx=Object.assign({},y0l,{effectType:rYS});var oN7=Symbol("Ob");var Szx=Object.assign({},y0l,{effectType:f8o});var iDR=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var F8=Symbol("Pb");var Y$=function(){},uP=function(W){this.props=W;
this.__unmounted=!1};
uP.prototype.didPatch=function(){};
uP.prototype.didMount=function(){};
uP.prototype.didUnmount=function(){};
uP.prototype.didUpdate=function(){};var sDm={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,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,valign:1,value:1,width:1,wrap:1},dtA={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}]}},a2W={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},VVt=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],mtC={"*":{async:1,dir:0,loading:2,target:3}};var Kpw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Fq={},pPG=(Fq[1]=null,Fq[2]=function(W,P){return P instanceof zI?E0(P):v6.toString()},Fq[3]=function(W,P){return S5(P)?_.u5(P):Kpw.test(String(P))?String(P):v6.toString()},Fq[4]=function(W,P){return P instanceof nz?_.y4(P):v6.toString()},Fq[5]=function(W,P){return String(P)},Fq[7]=null,Fq[8]=null,Fq[10]=null,Fq);var nCU=Symbol("Sb");var XCR=function(W){var P=ZDd,x=W,I="",O="",B=1;W<0&&(W=-W);if(W===Infinity)W=(Infinity*Math.sign(x)).toString();else{for(var Y=0;Y<oNb.length;Y++){var K=oNb[Y];B=P[K];if(W>=B||B<=1&&W>.1*B){I=K;break}}I?(I+="B",O=" "):B=1;W=Math.round(x/B*10)/10+O+I}return W},oNb="Y Z E P T G M K  m u n".split(" "),ZDd={"":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};_.Szd=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 Il={};RegExp.prototype.hasOwnProperty("sticky");var qzt=function(W){W=String(W);for(var P=function(I,O,B){for(var Y=Math.min(O.length-B,I.length),K=0;K<Y;K++){var Z=O[B+K];if(I[K]!==("A"<=Z&&Z<="Z"?Z.toLowerCase():Z))return!1}return!0},x=0;(x=W.indexOf("<",x))!=-1;){if(P("\x3c/script",W,x)||P("\x3c!--",W,x))return"zSoyz";
x+=1}return W};var MS={default:"__default"};var ENC=Object.prototype.hasOwnProperty;CEx.prototype=Object.create(null);var re=MVt();var f4=null;var XPm=function(W){this.created=[];this.deleted=[];this.node=W};var fqU=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var W=this,P=W;W;)P=W,W=W.parentNode;return P};var wPA=function(W,P){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=W;this.key=P;this.text=void 0};var HJ=null,ej=null,w1=null,aC=null,aqW=[],c0R=HDt,kV=[],X8=[],BLd=function(W){return N3o(function(P,x,I){w1=ej=P;ej=null;x(I);eh7(null);ej=w1;w1=w1.parentNode;return P},W)}(),JdR=function(W){return N3o(function(P,x,I){var O={nextSibling:P};
ej=O;x(I);w1&&eh7(P.nextSibling);return O===ej?null:ej},W)}();var NS=[],T3t=0;var l_=new CEx;var mT=new CEx;var uGA=MVt(),Fpt=uGA[MS.default],LpG=uGA.style,Rhx=["focusin","focusout"];var wBC=function(){},jRd=function(){},awR=function(){},HaC=function(){};var RC=Symbol("Zb");var BeR,Jy7=Oam;var JQ=Symbol("$b");var vMR={};var cyd=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(" ")),
eU8=new Set(["a","font","script","style","title"]);var Z$={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var ol=null,SL=function(W,P){uP.call(this,W);var x=this;this.functionComponent=P;this.hooks=[];this.hookCounter=0;this.disposeEffects=Ag(function(I){x.effectContext=I;_.C4(function(){zUt(x,x.el)})},FJ.alwaysTrackContexts||!!Np)};
_.A(SL,uP);SL.prototype.render=function(W){var P=ol;ol=this;this.hookCounter=0;var x=WJ(KX),I=lZ(this.effectContext);try{return I8G("render",this.componentName),this.functionComponent(W)}finally{Ojm("render",this.componentName),lZ(I),WJ(x),ol=P}};
_.N1.Object.defineProperties(SL.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return ODC(this.functionComponent)}}});var baR=Symbol("nc"),Mox=function(W,P,x){this.kind=W;this.props=P;this.children=x};
_.A(Mox,Y$);Mox.prototype.render=function(){return Dl8(this.kind,this.props,this.children)};
Mox.prototype.getChildren=function(){return this.children};var Ulo=[];GMm=function(W){throw Error("sb`"+W.debugName);};
(function(){var W=f4;f4=function(P){W==null||W(P);XBU(P)}})();var dt3=void 0,sDw={},vNM=new WeakMap,fwG={getComponent:function(W){if(W.hasAttribute("ng-version"))return sDw;if(!W.__wizComponent)return null;W=W.__wizComponent;vNM.set(W.propsAndState,W);return W.propsAndState},
getDirectiveMetadata:function(W){if(W===sDw)return{framework:"wiz",name:"<Root>",props:{}};W=vNM.get(W);if(!W)throw Error("oc");return{framework:"wiz",name:W.name,props:Object.fromEntries(Object.keys(W.props).map(function(P){return[P,P]}))}},
"\u0275setProfiler":function(W){var P;(P=dt3)==null||P();dt3=qyG(function(){W(2)})},
isSignal:function(W){return typeof W==="function"&&W[BJ]!==void 0}};var lwd={nonNullableCondIsNull:function(){return Error("sc")}};_.u.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.u.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.u.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var qAm=function(){this.map=new Map};
qAm.prototype.push=function(W,P){var x=this.map;x.has(W)&&(this.multi||(this.multi=new Map),this.multi.set(P,x.get(W)));x.set(W,P)};
qAm.prototype.pop=function(W){var P=this.map,x=P.get(W),I;x!==void 0&&((I=this.multi)==null?0:I.has(x))?(P.set(W,this.multi.get(x)),this.multi.delete(x)):P.delete(W);return x};var INR={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(W){return Error("uc`"+W)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(W,P){return Error("yc`"+W+"`"+P)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(W){return Error("zc`"+W)},
USE_ELEMENT_NOT_ASSIGNED:function(W){return Error("Ac`"+String(W))}};BeR=$lG;var KhW=Symbol("Bc");Cso({beforeRender:function(W){var P=lZ(W.effectContext);try{var x;((x=W.__syncEffects)==null?0:x.length)&&oQW(W.__syncEffects)}finally{lZ(P)}},
didPatch:function(W){var P=lZ(W.effectContext);try{var x;((x=W.__syncEffects)==null?0:x.length)&&oQW(W.__syncEffects)}finally{lZ(P)}},
didUnmount:function(W){var P;((P=W.hooks)==null?0:P.length)&&W.hooks.forEach(ZJ7)}});var mtp,VVl,tVd;mtp=_.xW.window;_.D$=(mtp==null?void 0:(VVl=mtp.yt)==null?void 0:VVl.config_)||(mtp==null?void 0:(tVd=mtp.ytcfg)==null?void 0:tVd.data_)||{};_.lA("yt.config_",_.D$);var pPZ={},shd=[];_.mW=function(W){var P=_.tH.apply(1,arguments);var x=Error.call(this,W);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.args=[].concat(_.ju(P));Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(_.mW,Error);var mC7=function(W,P,x){this.actionName=W;this.optionalAction=P===void 0?!1:P;this.args=x===void 0?null:x;this.returnValue=[]};_.R=function(W){this.name=W};_.eo=new _.R("signalAction");var GYA=/^[\w.]*$/,pfo={q:!0,search_query:!0},tkA=String(VkU);var qC;qC=Symbol("Cc");_.Lb=function(W){this.name=W};
_.Lb.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var EQx=function(W){this.key=W},Mkx=function(W){this.deferredKey=W},D1m=function(){var W=this;
this.providers=new Map;this.JSC$8315_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(W.providers)}}};
D1m.prototype.addProvider=function(W){this.providers.set(W.provide,W);var P=this.JSC$8315_deferred.get(W.provide);if(P)try{P.resolver(this.resolve(W.provide))}catch(x){P.rejector(x)}};
D1m.prototype.resolve=function(W){return W instanceof Mkx?jDi(this,W):W instanceof EQx?QDP(this,W.key,[],!0):QDP(this,W,[])};
var jDi=function(W,P){P=P.deferredKey;if(W.JSC$8315_deferred.has(P))return W.JSC$8315_deferred.get(P).promise;var x={};x.promise=new Promise(function(I,O){x.resolver=I;x.rejector=O});
W.JSC$8315_deferred.set(P,x);return x.promise},QDP=function(W,P,x,I){I=I===void 0?!1:I;
if(x.indexOf(P)>-1)throw Error("Dc`"+P);if(W.cachedValues.has(P))return W.cachedValues.get(P);if(!W.providers.has(P)){if(I)return;throw Error("Ec`"+P);}I=W.providers.get(P);x.push(P);if(I.useValue!==void 0)var O=I.useValue;else if(I.useFactory)O=I[qC]?CEd(W,I[qC],x):[],O=I.useFactory.apply(I,_.ju(O));else if(I.useClass){O=I.useClass;var B=O[qC]?CEd(W,O[qC],x):[];O=new (Function.prototype.bind.apply(O,[null].concat(_.ju(B))))}else throw Error("Fc`"+P);x.pop();I.skipCache||W.cachedValues.set(P,O);return O},
CEd=function(W,P,x){return P?P.map(function(I){return I instanceof EQx?QDP(W,I.key,x,!0):QDP(W,I,x)}):[]};var gQU;var cB=new _.Lb("ENDPOINT_HANDLER_TOKEN");_.aR=new _.R("urlEndpoint");var A0Z=function(){this.data=[];this.cachedPackedInt52=-1};
A0Z.prototype.set=function(W,P){P=P===void 0?!0:P;0<=W&&W<52&&Number.isInteger(W)&&this.data[W]!==P&&(this.data[W]=P,this.cachedPackedInt52=-1)};
A0Z.prototype.get=function(W){return!!this.data[W]};
var zhw=function(W){W.cachedPackedInt52===-1&&(W.cachedPackedInt52=W.data.reduce(function(P,x,I){return P+(x?Math.pow(2,I):0)},0));
return W.cachedPackedInt52};var lNC=function(W){var P=Gr3;W=W===void 0?_.eL("yt.ads.biscotti.lastId_")||"":W;var x=Object,I=x.assign,O={};O.dt=gKM;O.flash="0";a:{try{var B=P.JSC$8321_win_.top.location.href}catch(pm){B=2;break a}B=B?B===P.doc_.location.href?0:1:2}O=(O.frm=B,O);try{O.u_tz=-(new Date).getTimezoneOffset();var Y=Y===void 0?a1:Y;try{var K=Y.history.length}catch(pm){K=0}O.u_his=K;var Z;O.u_h=(Z=a1.screen)==null?void 0:Z.height;var d;O.u_w=(d=a1.screen)==null?void 0:d.width;var v;O.u_ah=(v=a1.screen)==null?void 0:v.availHeight;
var m;O.u_aw=(m=a1.screen)==null?void 0:m.availWidth;var t;O.u_cd=(t=a1.screen)==null?void 0:t.colorDepth}catch(pm){}K=P.JSC$8321_win_;try{var C=K.screenX;var z=K.screenY}catch(pm){}try{var D=K.outerWidth;var w=K.outerHeight}catch(pm){}try{var a=K.innerWidth;var k=K.innerHeight}catch(pm){}try{var T=K.screenLeft;var N=K.screenTop}catch(pm){}try{a=K.innerWidth,k=K.innerHeight}catch(pm){}try{var Io=K.screen.availWidth;var F=K.screen.availTop}catch(pm){}C=[T,N,C,z,Io,F,D,w,a,k];z=miA(!1,P.JSC$8321_win_.top);
D={};var nm=nm===void 0?_.xW:nm;w=new A0Z;"SVGElement"in nm&&"createElementNS"in nm.document&&w.set(0);a=Mzw();a["allow-top-navigation-by-user-activation"]&&w.set(1);a["allow-popups-to-escape-sandbox"]&&w.set(2);nm.crypto&&nm.crypto.subtle&&w.set(3);"TextDecoder"in nm&&"TextEncoder"in nm&&w.set(4);nm=zhw(w);P=(D.bc=nm,D.bih=z.height,D.biw=z.width,D.brdim=C.join(),D.vis=Bvm(P.doc_),D.wgl=!!a1.WebGLRenderingContext,D);x=I.call(x,O,P);x.ca_type="image";W&&(x.bid=W);return x},Gr3=new function(){var W=
window.document;
this.JSC$8321_win_=window;this.doc_=W};
_.lA("yt.ads_.signals_.getAdSignalsString",function(W){return jhx(lNC(W))});_.O1();navigator.userAgent.indexOf(" (CrKey ");var eyG="XMLHttpRequest"in _.xW?function(){return new XMLHttpRequest}:null;var ENp="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),gNk=[].concat(_.ju(ENp),["client_dev_set_cookie"]);var N7R={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"},bJG="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(_.ju(ENp)),POm=!1,U17=_.T7R,qSU=fNW;var Cqt=[{messageFn:function(W){return"Cannot read property '"+W.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(W){return"Cannot call '"+W.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(W){return W.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var DtW={messageWeights:[],callbackWeights:[{callback:J1d,weight:500},{callback:BUS,weight:500}]};var MVl=function(){this.callbackWeights=[];this.messageWeights=[]},$td,Qxx=function(){if(!$td){var W=$td=new MVl;
W.messageWeights.length=0;W.callbackWeights.length=0;DPA(W,DtW)}return $td},DPA=function(W,P){P.messageWeights&&W.messageWeights.push.apply(W.messageWeights,P.messageWeights);
P.callbackWeights&&W.callbackWeights.push.apply(W.callbackWeights,P.callbackWeights)};_.J8(_.Z8,_.vn);_.Z8.prototype.subscribe=function(W,P,x){var I=this.topics_[W];I||(I=this.topics_[W]=[]);var O=this.JSC$8345_key_;this.subscriptions_[O]=W;this.subscriptions_[O+1]=P;this.subscriptions_[O+2]=x;this.JSC$8345_key_=O+3;I.push(O);return O};
var wP3=function(W){var P=EYA,x=!1,I=P.subscribe("handleError",function(O){x||(x=!0,this.unsubscribeByKey(I),W.apply(void 0,arguments))},P)};
_.Z8.prototype.unsubscribe=function(W,P,x){if(W=this.topics_[W]){var I=this.subscriptions_;if(W=W.find(function(O){return I[O+1]==P&&I[O+2]==x}))return this.unsubscribeByKey(W)}return!1};
_.Z8.prototype.unsubscribeByKey=function(W){var P=this.subscriptions_[W];if(P){var x=this.topics_[P];this.publishDepth_!=0?(this.pendingKeys_.push(W),this.subscriptions_[W+1]=function(){}):(x&&_.Ft(x,W),delete this.subscriptions_[W],delete this.subscriptions_[W+1],delete this.subscriptions_[W+2])}return!!P};
_.Z8.prototype.publish=function(W,P){var x=this.topics_[W];if(x){var I=Array(arguments.length-1),O=arguments.length,B;for(B=1;B<O;B++)I[B-1]=arguments[B];if(this.async_)for(B=0;B<x.length;B++)O=x[B],hhA(this.subscriptions_[O+1],this.subscriptions_[O+2],I);else{this.publishDepth_++;try{for(B=0,O=x.length;B<O&&!this.isDisposed();B++){var Y=x[B];this.subscriptions_[Y+1].apply(this.subscriptions_[Y+2],I)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;x=this.pendingKeys_.pop();)this.unsubscribeByKey(x)}}return B!=
0}return!1};
var hhA=function(W,P,x){_.j3(function(){W.apply(P,x)})};
_.Z8.prototype.clear=function(W){if(W){var P=this.topics_[W];P&&(P.forEach(this.unsubscribeByKey,this),delete this.topics_[W])}else this.subscriptions_.length=0,this.topics_={}};
_.Z8.prototype.getCount=function(W){if(W){var P=this.topics_[W];return P?P.length:0}W=0;for(P in this.topics_)W+=this.getCount(P);return W};
_.Z8.prototype.disposeInternal=function(){_.Z8.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var EYA=new _.Z8;var PP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(PP,_.aK);PP.prototype.getColdHashData=function(){return _.MY(this,3)};
PP.prototype.getHotHashData=function(){return _.MY(this,5)};
PP.prototype.setHotHashData=function(W){return _.SU(this,5,W)};var tIm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(tIm,_.aK);var rER=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(rER,_.aK);_.J=rER.prototype;_.J.getDeviceId=function(){return _.MY(this,6)};
_.J.getExperimentIds=function(W){var P=_.t2(this,9,_.C2,3,!0);fM(P,W);return P[W]};
_.J.getPlayerType=function(){return _.$5(this,36)};
_.J.setHomeGroupInfo=function(W){return _.I$(this,81,W)};
_.J.clearLocationPlayabilityToken=function(){return _.WP(this,89)};var oR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(oR,_.aK);oR.prototype.setKey=function(W){return _.SU(this,1,W)};
oR.prototype.getValue=function(){return h8(this,2,RoR)};
var RoR=[2,3,4,5,6];var HDl=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(HDl,_.aK);HDl.prototype.setTrackingParams=function(W){return _.WP(this,1,_.Uc(W,!1))};var i_R=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(i_R,_.aK);var QuG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(QuG,_.aK);QuG.prototype.getExperimentIds=function(W){var P=_.t2(this,5,_.A9,3,!0);fM(P,W);return P[W]};var sA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(sA,_.aK);sA.prototype.getToken=function(){return _.KU(this,2)};
sA.prototype.setToken=function(W){return _.SU(this,2,W)};var us=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(us,_.aK);us.prototype.setSafetyMode=function(W){return _.Lj(this,5,W)};var Zw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Zw,_.aK);Zw.prototype.setClient=function(W){return _.I$(this,1,W)};var juR={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 p7W;_.Ma=function(){var W=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.xW.addEventListener("beforeinstallprompt",function(P){P.preventDefault();W.deferredInstallPrompt=P});
_.xW.addEventListener("appinstalled",function(){W.appInstalledEventFired=!0},{once:!0})};
p7W=function(){if(!_.xW.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.xW.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.xW.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.xW.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.xW.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(W){return"WEB_DISPLAY_MODE_UNKNOWN"}};var zSW=function(){this.syncHeaders=!0},GZC=function(W){var P={},x=[];
"USER_SESSION_ID"in _.D$&&x.push({key:"u",value:_.$$("USER_SESSION_ID")});if(x=iRd(x))P.Authorization=x,x=W=W==null?void 0:W.sessionIndex,x===void 0&&(x=Number(_.$$("SESSION_INDEX",0)),x=isNaN(x)?0:x),_.p("voice_search_auth_header_removal")||(P["X-Goog-AuthUser"]=x.toString()),"INNERTUBE_HOST_OVERRIDE"in _.D$||(P["X-Origin"]=window.location.origin),W===void 0&&"DELEGATED_SESSION_ID"in _.D$&&(P["X-Goog-PageId"]=_.$$("DELEGATED_SESSION_ID"));return P};var ehb={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Wp=_.eL("ytglobal.prefsUserPrefsPrefs_")||{},c0A;_.lA("ytglobal.prefsUserPrefsPrefs_",Wp);_.Pp=function(){this.cookieName=_.$$("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.$$("ALT_PREF_COOKIE_DOMAIN","youtube.com");var W=_.SB.get(this.cookieName,void 0);W&&this.parse(W)};
_.SI=function(){c0A||(c0A=new _.Pp);return c0A};
_.Pp.prototype.get=function(W,P){aqi(W);bDW(W);W=Wp[W]!==void 0?Wp[W].toString():null;return W!=null?W:P?P:""};
_.Pp.prototype.set=function(W,P){aqi(W);bDW(W);if(P==null)throw Error("Ic");Wp[W]=P.toString()};
_.Pp.prototype.getFlag=function(W){return!!((krm("f"+(Math.floor(W/31)+1))||0)&1<<W%31)};
_.uB=function(W,P,x){W="f"+(Math.floor(P/31)+1);P=1<<P%31;var I=krm(W)||0;I=x?I|P:I&~P;I===0?delete Wp[W]:(x=I.toString(16),Wp[W]=x.toString())};
_.Pp.prototype.remove=function(W){aqi(W);bDW(W);delete Wp[W]};
_.Pp.prototype.save=function(){var W=!0;_.p("web_secure_pref_cookie_killswitch")&&(W=!1);_.uA(this.cookieName,this.dump(),63072E3,this.cookieDomain,W)};
_.Pp.prototype.clear=function(){_.jU.clear(Wp)};
_.Pp.prototype.dump=function(){var W=[],P;for(P in Wp)Wp.hasOwnProperty(P)&&W.push(P+"="+encodeURIComponent(String(Wp[P])));return W.join("&")};
var bDW=function(W){if(/^f([1-9][0-9]*)$/.test(W))throw Error("Jc`"+W);},aqi=function(W){if(!/^\w+$/.test(W))throw Error("Kc`"+W);
},krm=function(W){W=Wp[W]!==void 0?Wp[W].toString():null;
return W!=null&&/^[A-Fa-f0-9]+$/.test(W)?parseInt(W,16):null};
_.Pp.prototype.parse=function(W){W=decodeURIComponent(W).split("&");for(var P=0;P<W.length;P++){var x=W[P].split("="),I=x[0];(x=x[1])&&(Wp[I]=x.toString())}};var dVR={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"},CBR={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},AnG={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},vaW={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Rx;_.xU=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.VE=function(W,P,x){return W.addJob(P,0,x)};
_.xU.prototype.addLowPriorityJob=function(W,P){return this.addJob(W,1,P)};
_.pC=function(W,P,x){return W.addJob(P,2,x)};
_.GS=function(W,P,x){return W.addJob(P,3,x)};
_.Fo=function(W,P,x){return W.addJob(P,4,x)};
Rx=function(W){var P=_.eL("yt.scheduler.instance.addImmediateJob");P?P(W):W()};
_.xU.prototype.debounce=function(W,P,x){var I=this,O=0,B=function(){O&&I.cancelJob(O);O=I.addJob(W,P,x);I.cancelDebouncedJobMap.set(B,O)};
return B};
_.xU.prototype.cancelThrottle=function(W){(W=this.cancelThrottledJobMap.get(W))&&W()};var Ie=function(){_.xU.apply(this,arguments)};
_.A(Ie,_.xU);_.Ds=function(){Ie.instance||(Ie.instance=new Ie);return Ie.instance};
Ie.prototype.addJob=function(W,P,x){x!==void 0&&Number.isNaN(Number(x))&&(x=void 0);var I=_.eL("yt.scheduler.instance.addJob");return I?I(W,P,x):x===void 0?(W(),NaN):_.Oy(W,x||0)};
Ie.prototype.cancelJob=function(W){if(W===void 0||!Number.isNaN(Number(W))){var P=_.eL("yt.scheduler.instance.cancelJob");P?P(W):_.nj(W)}};
Ie.prototype.start=function(){var W=_.eL("yt.scheduler.instance.start");W&&W()};
Ie.prototype.pause=function(){var W=_.eL("yt.scheduler.instance.pause");W&&W()};
_.Gr=_.Ds();_.VO.prototype.set=function(W,P){P===void 0?this.mechanism.remove(W):this.mechanism.set(W,(0,_.GQ)(P))};
_.VO.prototype.get=function(W){try{var P=this.mechanism.get(W)}catch(x){return}if(P!==null)try{return JSON.parse(P)}catch(x){throw"Storage: Invalid value was encountered";}};
_.VO.prototype.remove=function(W){this.mechanism.remove(W)};var Oj=function(W){this.mechanism=W};
_.J8(Oj,_.VO);var Utd=function(W){this.data=W},XPw=function(W){return W===void 0||W instanceof Utd?W:new Utd(W)};
Oj.prototype.set=function(W,P){Oj.superClass_.set.call(this,W,XPw(P))};
Oj.prototype.getWrapper=function(W){W=Oj.superClass_.get.call(this,W);if(W===void 0||W instanceof Object)return W;throw"Storage: Invalid value was encountered";};
Oj.prototype.get=function(W){if(W=this.getWrapper(W)){if(W=W.data,W===void 0)throw"Storage: Invalid value was encountered";}else W=void 0;return W};_.J8(tY,Oj);_.fqc=function(W){var P=W.creation;W=W.expiration;return!!W&&W<_.O1()||!!P&&P>_.O1()};
tY.prototype.set=function(W,P,x){if(P=XPw(P)){if(x){if(x<_.O1()){tY.prototype.remove.call(this,W);return}P.expiration=x}P.creation=_.O1()}tY.superClass_.set.call(this,W,P)};
tY.prototype.getWrapper=function(W,P){var x=tY.superClass_.getWrapper.call(this,W);if(x)if(!P&&_.fqc(x))tY.prototype.remove.call(this,W);else return x};var JZ=function(){};
JZ.prototype.next=function(){return Bp};
var Bp={done:!0,value:void 0},n0=function(W){return{value:W,done:!1}};
JZ.prototype.__iterator__=function(){return this};
_.N3W=function(W){if(W instanceof JZ)return W;if(typeof W.__iterator__=="function")return W.__iterator__(!1);if(_.xi(W)){var P=0,x=new JZ;x.next=function(){for(;;){if(P>=W.length)return Bp;if(P in W)return n0(W[P++]);P++}};
return x}throw Error("Lc");};var lqM=function(W){if(W instanceof YU||W instanceof yw||W instanceof K0)return W;if(typeof W.next=="function")return new YU(function(){return W});
if(typeof W[Symbol.iterator]=="function")return new YU(function(){return W[Symbol.iterator]()});
if(typeof W.__iterator__=="function")return new YU(function(){return W.__iterator__()});
throw Error("Mc");},YU=function(W){this.func_=W};
YU.prototype.__iterator__=function(){return new yw(this.func_())};
YU.prototype[Symbol.iterator]=function(){return new K0(this.func_())};
YU.prototype.toEs6=function(){return new K0(this.func_())};
var yw=function(W){this.JSC$8429_iter_=W};
_.A(yw,JZ);yw.prototype.next=function(){return this.JSC$8429_iter_.next()};
yw.prototype[Symbol.iterator]=function(){return new K0(this.JSC$8429_iter_)};
yw.prototype.toEs6=function(){return new K0(this.JSC$8429_iter_)};
var K0=function(W){YU.call(this,function(){return W});
this.JSC$8432_iter_=W};
_.A(K0,YU);K0.prototype.next=function(){return this.JSC$8432_iter_.next()};var T3l=function(){};var Zg=function(){};
_.J8(Zg,T3l);Zg.prototype.getCount=function(){for(var W=0,P=_.n(this),x=P.next();!x.done;x=P.next())W++;return W};
Zg.prototype[Symbol.iterator]=function(){return lqM(this.__iterator__(!0)).toEs6()};
Zg.prototype.clear=function(){var W=Array.from(this);W=_.n(W);for(var P=W.next();!P.done;P=W.next())this.remove(P.value)};_.J8(pj,Zg);_.J=pj.prototype;_.J.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var W=this.storage_;if(W)try{W.setItem("__sak","1");W.removeItem("__sak");var P=!0}catch(x){P=x instanceof DOMException&&(x.name==="QuotaExceededError"||x.code===22||x.code===1014||x.name==="NS_ERROR_DOM_QUOTA_REACHED")&&W&&W.length!==0}else P=!1;this.cachedIsStorageAvailable_=P}return this.cachedIsStorageAvailable_};
_.J.set=function(W,P){oe(this);try{this.storage_.setItem(W,P)}catch(x){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.J.get=function(W){oe(this);W=this.storage_.getItem(W);if(typeof W!=="string"&&W!==null)throw"Storage mechanism: Invalid value was encountered";return W};
_.J.remove=function(W){oe(this);this.storage_.removeItem(W)};
_.J.getCount=function(){oe(this);return this.storage_.length};
_.J.__iterator__=function(W){oe(this);var P=0,x=this.storage_,I=new JZ;I.next=function(){if(P>=x.length)return Bp;var O=x.key(P++);if(W)return n0(O);O=x.getItem(O);if(typeof O!=="string")throw"Storage mechanism: Invalid value was encountered";return n0(O)};
return I};
_.J.clear=function(){oe(this);this.storage_.clear()};
_.J.key=function(W){oe(this);return this.storage_.key(W)};
var oe=function(W){if(W.storage_==null)throw Error("Nc");W.isAvailable()||OU(Error("Nc"))};_.J8(Vn7,pj);_.J8(tnS,pj);_.J8(jB,Zg);jB.prototype.set=function(W,P){this.mechanism_.set(this.JSC$8447_prefix_+W,P)};
jB.prototype.get=function(W){return this.mechanism_.get(this.JSC$8447_prefix_+W)};
jB.prototype.remove=function(W){this.mechanism_.remove(this.JSC$8447_prefix_+W)};
jB.prototype.__iterator__=function(W){var P=this.mechanism_[Symbol.iterator](),x=this,I=new JZ;I.next=function(){var O=P.next();if(O.done)return O;for(O=O.value;O.slice(0,x.JSC$8447_prefix_.length)!=x.JSC$8447_prefix_;){O=P.next();if(O.done)return O;O=O.value}return n0(W?O.slice(x.JSC$8447_prefix_.length):x.mechanism_.get(O))};
return I};_.$N=function(W){this.expiringStorage_=(W=_.pVx(W))?new tY(W):null;this.JSC$8451_domain_=document.domain||window.location.hostname};
_.$N.prototype.set=function(W,P,x,I){x=x||31104E3;this.remove(W);if(this.expiringStorage_)try{this.expiringStorage_.set(W,P,Date.now()+x*1E3);return}catch(B){}var O="";if(I)try{O=escape((0,_.GQ)(P))}catch(B){return}else O=escape(P);_.uA(W,O,x,this.JSC$8451_domain_)};
_.$N.prototype.get=function(W,P){var x=void 0,I=!this.expiringStorage_;if(!I)try{x=this.expiringStorage_.get(W)}catch(O){I=!0}if(I&&(x=_.SB.get(W,void 0))&&(x=unescape(x),P))try{x=JSON.parse(x)}catch(O){this.remove(W),x=void 0}return x};
_.$N.prototype.remove=function(W){this.expiringStorage_&&this.expiringStorage_.remove(W);_.oam(W,"/",this.JSC$8451_domain_)};
_.$N.prototype.getCreationTime=function(W){return this.expiringStorage_&&(W=(this.expiringStorage_.getWrapper(W)||{}).creation,typeof W==="number")?W:null};var QiW=function(){var W;return function(){W||(W=new _.$N("ytidb"));return W}}();var A1A;_.Cj=[];A1A=!1;var NU8=z3m||G78;var S2={},r0i=(S2.AUTH_INVALID="No user identifier specified.",S2.EXPLICIT_ABORT="Transaction was explicitly aborted.",S2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",S2.MISSING_INDEX="Index not created.",S2.MISSING_OBJECT_STORES="Object stores not created.",S2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",S2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",S2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",S2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",S2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",S2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",S2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",S2),ud={},iDP=(ud.AUTH_INVALID="ERROR",ud.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",ud.EXPLICIT_ABORT="IGNORED",
ud.IDB_NOT_SUPPORTED="ERROR",ud.MISSING_INDEX="WARNING",ud.MISSING_OBJECT_STORES="ERROR",ud.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",ud.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",ud.QUOTA_EXCEEDED="WARNING",ud.QUOTA_MAYBE_EXCEEDED="WARNING",ud.UNKNOWN_ABORT="WARNING",ud.INCOMPATIBLE_DB_VERSION="WARNING",ud),dl={},Rhd=(dl.AUTH_INVALID=!1,dl.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,dl.EXPLICIT_ABORT=!1,dl.IDB_NOT_SUPPORTED=!1,dl.MISSING_INDEX=!1,dl.MISSING_OBJECT_STORES=!1,dl.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,dl.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,dl.QUOTA_EXCEEDED=!1,dl.QUOTA_MAYBE_EXCEEDED=!0,dl.UNKNOWN_ABORT=!0,dl.INCOMPATIBLE_DB_VERSION=!1,dl),D8=function(W,P,x,I,O){P=P===void 0?{}:P;x=x===void 0?r0i[W]:x;I=I===void 0?iDP[W]:I;O=O===void 0?Rhd[W]:O;_.mW.call(this,x,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:W},P));this.type=W;this.message=x;this.level=I;this.retryable=O;Object.setPrototypeOf(this,D8.prototype)};
_.A(D8,_.mW);var Fpl=function(W,P){D8.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:P,foundObjectStores:W},r0i.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Fpl.prototype)};
_.A(Fpl,D8);var gaW=function(W,P){var x=Error.call(this);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.index=W;this.objectStore=P;Object.setPrototypeOf(this,gaW.prototype)};
_.A(gaW,Error);var DV7=["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 hY=function(W){this.executor=W},wO=function(W){var P=this;
this.state={status:"PENDING"};this.JSC$8479_onFulfilled=[];this.JSC$8479_onRejected=[];W=W.executor;var x=function(O){if(P.state.status==="PENDING"){P.state={status:"FULFILLED",value:O};O=_.n(P.JSC$8479_onFulfilled);for(var B=O.next();!B.done;B=O.next())B=B.value,B()}},I=function(O){if(P.state.status==="PENDING"){P.state={status:"REJECTED",
reason:O};O=_.n(P.JSC$8479_onRejected);for(var B=O.next();!B.done;B=O.next())B=B.value,B()}};
try{W(x,I)}catch(O){I(O)}};
wO.all=function(W){return new wO(new hY(function(P,x){var I=[],O=W.length;O===0&&P(I);for(var B={i$jscomp$505:0};B.i$jscomp$505<W.length;B={i$jscomp$505:B.i$jscomp$505},++B.i$jscomp$505)wO.resolve(W[B.i$jscomp$505]).then(function(Y){return function(K){I[Y.i$jscomp$505]=K;O--;O===0&&P(I)}}(B)).catch(function(Y){x(Y)})}))};
wO.resolve=function(W){return new wO(new hY(function(P,x){W instanceof wO?W.then(P,x):P(W)}))};
wO.reject=function(W){return new wO(new hY(function(P,x){x(W)}))};
wO.prototype.then=function(W,P){var x=this,I=W!=null?W:wVd,O=P!=null?P:$Vx;return new wO(new hY(function(B,Y){x.state.status==="PENDING"?(x.JSC$8479_onFulfilled.push(function(){qzl(x,x,I,B,Y)}),x.JSC$8479_onRejected.push(function(){LpZ(x,x,O,B,Y)})):x.state.status==="FULFILLED"?qzl(x,x,I,B,Y):x.state.status==="REJECTED"&&LpZ(x,x,O,B,Y)}))};
wO.prototype.catch=function(W){return this.then(void 0,W)};
var qzl=function(W,P,x,I,O){try{if(W.state.status!=="FULFILLED")throw Error("Qc");var B=x(W.state.value);B instanceof wO?Wnc(W,P,B,I,O):I(B)}catch(Y){O(Y)}},LpZ=function(W,P,x,I,O){try{if(W.state.status!=="REJECTED")throw Error("Rc");
var B=x(W.state.reason);B instanceof wO?Wnc(W,P,B,I,O):I(B)}catch(Y){O(Y)}},Wnc=function(W,P,x,I,O){P===x?O(new TypeError("Sc")):x.then(function(B){B instanceof wO?Wnc(W,P,B,I,O):I(B)},function(B){O(B)})};var sj;sj=window;_.iA=sj.ytcsi&&sj.ytcsi.now?sj.ytcsi.now:sj.performance&&sj.performance.timing&&sj.performance.now&&sj.performance.timing.navigationStart?function(){return sj.performance.timing.navigationStart+sj.performance.now()}:function(){return(new Date).getTime()};var eB=function(W,P){this.JSC$8491_wrapped=W;this.options=P;this.transactionCount=0;this.startedMs=Math.round((0,_.iA)());this.hasUnknownAbortedTransaction=!1},Iwp,OaM,Vw,nMc;
eB.prototype.add=function(W,P,x){return _.kO(this,[W],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore(W).add(P,x)})};
eB.prototype.clear=function(W){return _.kO(this,[W],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore(W).clear()})};
eB.prototype.close=function(){this.JSC$8491_wrapped.close();var W;((W=this.options)==null?0:W.closed)&&this.options.closed()};
eB.prototype.count=function(W,P){return _.kO(this,[W],{mode:"readonly",enableRetries:!0},function(x){return x.objectStore(W).count(P)})};
var h0=function(W,P,x){W=W.JSC$8491_wrapped.createObjectStore(P,x);return new vp(W)};
eB.prototype.delete=function(W,P){return _.kO(this,[W],{mode:"readwrite",enableRetries:!0},function(x){return x.objectStore(W).delete(P)})};
var Psd=function(W,P){return _.kO(W,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(x){return x.objectStore("ResponseStore").index("byInterface").delete(P)})};
eB.prototype.get=function(W,P){return _.kO(this,[W],{mode:"readonly",enableRetries:!0},function(x){return x.objectStore(W).get(P)})};
eB.prototype.getAll=function(W,P,x){return _.kO(this,[W],{mode:"readonly",enableRetries:!0},function(I){return I.objectStore(W).getAll(P,x)})};
eB.prototype.put=function(W,P,x){return _.kO(this,[W],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore(W).put(P,x)})};
eB.prototype.objectStoreNames=function(){return Array.from(this.JSC$8491_wrapped.objectStoreNames)};
_.kO=function(W,P,x,I){var O,B,Y,K,Z,d,v,m,t,C,z,D;return _.y(function(w){switch(w.nextAddress){case 1:var a={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof x==="string"?a.mode=x:Object.assign(a,x);O=a;W.transactionCount++;B=O.enableRetries?3:1;Y=0;case 2:if(K){w.jumpTo(4);break}Y++;Z=Math.round((0,_.iA)());_.OT(w,5);d=W.JSC$8491_wrapped.transaction(P,O.mode);a=new c1o(d);a=xld(a,I);return _.S(w,a,7);case 7:return v=w.yieldResult,m=Math.round((0,_.iA)()),Iwp(W,Z,m,Y,void 0,
P.join(),O),w.return(v);case 5:t=_.yn(w);C=Math.round((0,_.iA)());z=Mnt(t,W.JSC$8491_wrapped.name,P.join(),W.JSC$8491_wrapped.version);if((D=z instanceof D8&&!z.retryable)||Y>=B)Iwp(W,Z,C,Y,z,P.join(),O),K=z;w.jumpTo(2);break;case 4:return w.return(Promise.reject(K))}})};
Iwp=function(W,P,x,I,O,B,Y){P=x-P;O?(O instanceof D8&&(O.type==="QUOTA_EXCEEDED"||O.type==="QUOTA_MAYBE_EXCEEDED")&&zM("QUOTA_EXCEEDED",{dbName:Ey(W.JSC$8491_wrapped.name),objectStoreNames:B,transactionCount:W.transactionCount,transactionMode:Y.mode}),O instanceof D8&&O.type==="UNKNOWN_ABORT"&&(x-=W.startedMs,x<0&&x>=2147483648&&(x=0),zM("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:B,transactionDuration:P,transactionCount:W.transactionCount,dbDuration:x}),W.hasUnknownAbortedTransaction=!0),
OaM(W,!1,I,B,P,Y.tag),_.AY(O)):OaM(W,!0,I,B,P,Y.tag)};
OaM=function(W,P,x,I,O,B){zM("TRANSACTION_ENDED",{objectStoreNames:I,connectionHasUnknownAbortedTransaction:W.hasUnknownAbortedTransaction,duration:O,isSuccessful:P,tryCount:x,tag:B===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":B})};
eB.prototype.getVersion=function(){return this.JSC$8491_wrapped.version};
eB.prototype.getName=function(){return this.JSC$8491_wrapped.name};
var vp=function(W){this.JSC$8506_wrapped=W};
vp.prototype.add=function(W,P){return Hi(this.JSC$8506_wrapped.add(W,P))};
vp.prototype.autoIncrement=function(){return this.JSC$8506_wrapped.autoIncrement};
vp.prototype.clear=function(){return Hi(this.JSC$8506_wrapped.clear()).then(function(){})};
var HP=function(W,P,x){W.JSC$8506_wrapped.createIndex(P,x,{unique:!1})};
vp.prototype.count=function(W){return Hi(this.JSC$8506_wrapped.count(W))};
var Jyb=function(W,P){return X9(W,{query:P},function(x){return x.delete().then(function(){return x.continue()})}).then(function(){})};
vp.prototype.delete=function(W){return W instanceof IDBKeyRange?Jyb(this,W):Hi(this.JSC$8506_wrapped.delete(W))};
vp.prototype.get=function(W){return Hi(this.JSC$8506_wrapped.get(W))};
vp.prototype.getAll=function(W,P){return"getAll"in IDBObjectStore.prototype?Hi(this.JSC$8506_wrapped.getAll(W,P)):BeP(this,W,P)};
var BeP=function(W,P,x){var I=[];return X9(W,{query:P},function(O){if(!(x!==void 0&&I.length>=x))return I.push(O.getValue()),O.continue()}).then(function(){return I})};
vp.prototype.index=function(W){try{return new ma(this.JSC$8506_wrapped.index(W))}catch(P){if(P instanceof Error&&P.name==="NotFoundError")throw new gaW(W,this.JSC$8506_wrapped.name);throw P;}};
vp.prototype.getName=function(){return this.JSC$8506_wrapped.name};
vp.prototype.keyPath=function(){return this.JSC$8506_wrapped.keyPath};
vp.prototype.put=function(W,P){return Hi(this.JSC$8506_wrapped.put(W,P))};
var X9=function(W,P,x){W=W.JSC$8506_wrapped.openCursor(P.query,P.direction);return nMc(W).then(function(I){return e3S(I,x)})},c1o=function(W){var P=this;
this.JSC$8514_wrapped=W;this.objectStoreCache=new Map;this.JSC$8514_aborted=!1;this.done=new Promise(function(x,I){P.JSC$8514_wrapped.addEventListener("complete",function(){x()});
P.JSC$8514_wrapped.addEventListener("error",function(O){O.currentTarget===O.target&&I(P.JSC$8514_wrapped.error)});
P.JSC$8514_wrapped.addEventListener("abort",function(){var O=P.JSC$8514_wrapped.error;if(O)I(O);else if(!P.JSC$8514_aborted){O=D8;for(var B=P.JSC$8514_wrapped.objectStoreNames,Y=[],K=0;K<B.length;K++){var Z=B.item(K);if(Z===null)throw Error("Tc");Y.push(Z)}O=new O("UNKNOWN_ABORT",{objectStoreNames:Y.join(),dbName:P.JSC$8514_wrapped.db.name,mode:P.JSC$8514_wrapped.mode});I(O)}})})},xld=function(W,P){var x=new Promise(function(I,O){try{P(W).then(function(B){I(B)}).catch(O)}catch(B){O(B),W.abort()}});
return Promise.all([x,W.done]).then(function(I){return _.n(I).next().value})};
c1o.prototype.abort=function(){this.JSC$8514_wrapped.abort();this.JSC$8514_aborted=!0;throw new D8("EXPLICIT_ABORT");};
c1o.prototype.objectStore=function(W){W=this.JSC$8514_wrapped.objectStore(W);var P=this.objectStoreCache.get(W);P||(P=new vp(W),this.objectStoreCache.set(W,P));return P};
var ma=function(W){this.JSC$8516_wrapped=W};
ma.prototype.count=function(W){return Hi(this.JSC$8516_wrapped.count(W))};
ma.prototype.delete=function(W){return _.R6(this,{query:W},function(P){return P.delete().then(function(){return P.continue()})})};
ma.prototype.get=function(W){return Hi(this.JSC$8516_wrapped.get(W))};
ma.prototype.getAll=function(W,P){return"getAll"in IDBIndex.prototype?Hi(this.JSC$8516_wrapped.getAll(W,P)):YA3(this,W,P)};
var YA3=function(W,P,x){var I=[];return _.R6(W,{query:P},function(O){if(!(x!==void 0&&I.length>=x))return I.push(O.getValue()),O.continue()}).then(function(){return I})};
ma.prototype.keyPath=function(){return this.JSC$8516_wrapped.keyPath};
ma.prototype.unique=function(){return this.JSC$8516_wrapped.unique};
_.R6=function(W,P,x){W=W.JSC$8516_wrapped.openCursor(P.query===void 0?null:P.query,P.direction===void 0?"next":P.direction);return nMc(W).then(function(I){return e3S(I,x)})};
Vw=function(W,P){this.request=W;this.cursor=P};
nMc=function(W){return Hi(W).then(function(P){return P?new Vw(W,P):null})};
Vw.prototype.continue=function(W){this.cursor.continue(W);return nMc(this.request)};
Vw.prototype.delete=function(){return Hi(this.cursor.delete()).then(function(){})};
Vw.prototype.getValue=function(){return this.cursor.value};
Vw.prototype.update=function(W){return Hi(this.cursor.update(W))};var tZ=function(W,P){this.name=W;this.options=P;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},yyp;
tZ.prototype.openDb=function(W,P,x){x=x===void 0?{}:x;return bfC(W,P,x)};
tZ.prototype.delete=function(W){W=W===void 0?{}:W;return _.a6(this.name,W)};
yyp=function(W,P){return new D8("INCOMPATIBLE_DB_VERSION",{dbName:W.name,oldVersion:W.options.version,newVersion:P})};
_.bA=function(W,P){if(!P)throw $O("openWithToken",Ey(W.name));return W.open()};
tZ.prototype.open=function(){var W=this;if(!this.isCompatible)throw yyp(this);if(this.connectionPromise)return this.connectionPromise;var P,x=function(){W.connectionPromise===P&&(W.connectionPromise=void 0)},I={blocking:function(B){B.close()},
closed:x,terminated:x,upgrade:this.options.upgrade},O=function(){var B,Y,K,Z,d,v,m,t,C,z;return _.y(function(D){switch(D.nextAddress){case 1:return Y=(B=Error().stack)!=null?B:"",_.OT(D,2),_.S(D,W.openDb(W.name,W.options.version,I),4);case 4:for(var w=K=D.yieldResult,a=W.options,k=[],T=_.n(Object.keys(a.objectStores)),N=T.next();!N.done;N=T.next()){N=N.value;var Io=a.objectStores[N],F=Io.removedAtVersion===void 0?Number.MAX_VALUE:Io.removedAtVersion;!(w.JSC$8491_wrapped.version>=Io.addedAtVersion)||
w.JSC$8491_wrapped.version>=F||w.JSC$8491_wrapped.objectStoreNames.contains(N)||k.push(N)}Z=k;if(Z.length===0){D.jumpTo(5);break}d=Object.keys(W.options.objectStores);v=K.objectStoreNames();if(W.timesReopenedToFixMissingObjectStore<_.Wi("ytidb_reopen_db_retries",0))return W.timesReopenedToFixMissingObjectStore++,K.close(),_.AY(new D8("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:d,foundObjectStores:v})),D.return(O());if(!(W.timesDeletedToFixMissingObjectStore<_.Wi("ytidb_remake_db_retries",
1))){D.jumpTo(6);break}W.timesDeletedToFixMissingObjectStore++;return _.S(D,W.delete(),7);case 7:return _.AY(new D8("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:d,foundObjectStores:v})),D.return(O());case 6:throw new Fpl(v,d);case 5:return D.return(K);case 2:m=_.yn(D);if(m instanceof DOMException?m.name!=="VersionError":"DOMError"in self&&m instanceof DOMError?m.name!=="VersionError":!(m instanceof Object&&"message"in m)||m.message!=="An attempt was made to open a database using a lower version than the existing version."){D.jumpTo(8);
break}return _.S(D,W.openDb(W.name,void 0,Object.assign({},I,{upgrade:void 0})),9);case 9:t=D.yieldResult;C=t.getVersion();if(W.options.version!==void 0&&C>W.options.version+1)throw t.close(),W.isCompatible=!1,yyp(W,C);return D.return(t);case 8:throw x(),m instanceof Error&&!_.p("ytidb_async_stack_killswitch")&&(m.stack=m.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),Mnt(m,W.name,"",(z=W.options.version)!=null?z:-1);}})};
return this.connectionPromise=P=O()};var k7S=new tZ("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(W,P){P(1)&&h0(W,"databases",{keyPath:"actualName"})}});var r1S,ltR=new function(){}(new function(){});new _.If;var KnM=function(W,P){tZ.call(this,W,P);this.options=P;GM(W)};
_.A(KnM,tZ);var OKm=function(W,P){var x;return function(){x||(x=new KnM(W,P));return x}};
KnM.prototype.openDb=function(W,P,x){x=x===void 0?{}:x;return(this.options.shared?L1R:q_W)(W,P,Object.assign({},x))};
KnM.prototype.delete=function(W){W=W===void 0?{}:W;return(this.options.shared?IEx:WZx)(this.name,W)};var Zak={},JnR=rO("ytGcfConfig",{objectStores:(Zak.coldConfigStore={addedAtVersion:1},Zak.hotConfigStore={addedAtVersion:1},Zak),shared:!1,upgrade:function(W,P){P(1)&&(HP(h0(W,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),HP(h0(W,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var oMl=function(){_.vn.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var W=_.eL("yt.gcf.config.hotUpdateCallbacks");W?(this.localHotConfigJobQueue=[].concat(_.ju(W)),this.sharedHotConfigJobQueue=W):(this.sharedHotConfigJobQueue=[],_.lA("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.A(oMl,_.vn);oMl.prototype.disposeInternal=function(){for(var W=_.n(this.localHotConfigJobQueue),P=W.next();!P.done;P=W.next()){var x=this.sharedHotConfigJobQueue;P=x.indexOf(P.value);P>=0&&x.splice(P,1)}this.localHotConfigJobQueue.length=0;_.vn.prototype.disposeInternal.call(this)};var ty=function(){var W=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new oMl;this.TEST_ONLY={initializeConfigDb:function(){W.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return W.coldGlobalConfigGroup},
setHotConfigGroup:function(P){SA3(W,P)},
setHotHashData:function(P){W.setHotHashData(P)},
setColdConfigGroup:function(P){uLi(W,P)},
getColdHashData:function(){return W.coldHashData},
getHotHashData:function(){return W.hotHashData},
getHotConfigGroup:function(){return W.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return dlm()},
getExportedHotConfigGroup:function(){return p0()},
getExportedColdHashData:function(){return _.eL("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.eL("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){sRz(W)},
resetInstance:function(){W.setHotHashData(void 0);vMP(W);delete ty.instance},
setDebounceTimer:function(P){W.debounceTimer=P},
getDebounceTimer:function(){return W.debounceTimer}}},mlb=function(){if(!ty.instance){var W=new ty;
ty.instance=W}return ty.instance},pBp=function(W){var P;
_.y(function(x){if(x.nextAddress==1)return _.p("start_client_gcf")||_.p("delete_gcf_config_db")?_.p("start_client_gcf")?_.S(x,_.TM(),3):x.jumpTo(2):x.return();x.nextAddress!=2&&((P=x.yieldResult)&&_.vi()&&!_.p("delete_gcf_config_db")?(W.isConfigDbInitialized=!0,sRz(W)):(VoP(W),tom(W)));return _.p("delete_gcf_config_db")?_.S(x,ZKd(),0):x.jumpTo(0)})},oYx=function(){var W;
return(W=p0())!=null?W:_.$$("RAW_HOT_CONFIG_GROUP")},jRm=function(W){var P,x,I,O,B,Y;
return _.y(function(K){switch(K.nextAddress){case 1:if(W.hotGlobalConfigGroup)return K.return(p0());if(!W.isConfigDbInitialized)return P=$O("getHotConfig IDB not initialized"),_.co(P),K.return(Promise.reject(P));x=NM();I=_.$$("TIME_CREATED_MS");if(!x){O=$O("getHotConfig token error");_.co(O);K.jumpTo(2);break}return _.S(K,KZU(x),3);case 3:if((B=K.yieldResult)&&B.timestamp>I)return SA3(W,B.config),W.setHotHashData(B.hashData),K.return(p0());case 2:tom(W);if(!(x&&W.hotGlobalConfigGroup&&W.hotHashData)){K.jumpTo(4);
break}return _.S(K,n6t(W.hotGlobalConfigGroup,W.hotHashData,x,I),4);case 4:return W.hotGlobalConfigGroup?K.return(p0()):(Y=new _.mW("Config not available in ytConfig"),_.co(Y),K.return(Promise.reject(Y)))}})},CsW=function(W){var P,x,I,O,B,Y;
return _.y(function(K){switch(K.nextAddress){case 1:if(W.coldGlobalConfigGroup)return K.return(dlm());if(!W.isConfigDbInitialized)return P=$O("getColdConfig IDB not initialized"),_.co(P),K.return(Promise.reject(P));x=NM();I=_.$$("TIME_CREATED_MS");if(!x){O=$O("getColdConfig");_.co(O);K.jumpTo(2);break}return _.S(K,ynS(x),3);case 3:if((B=K.yieldResult)&&B.timestamp>I)return uLi(W,B.config),QRd(W,B.configData),vMP(W,B.hashData),K.return(dlm());case 2:VoP(W);if(!(x&&W.coldGlobalConfigGroup&&W.coldHashData&&
W.configData)){K.jumpTo(4);break}return _.S(K,YLG(W.coldGlobalConfigGroup,W.coldHashData,W.configData,x,I),4);case 4:return W.coldGlobalConfigGroup?K.return(dlm()):(Y=new _.mW("Config not available in ytConfig"),_.co(Y),K.return(Promise.reject(Y)))}})},sRz=function(W){if(!W.hotGlobalConfigGroup||!W.coldGlobalConfigGroup){if(!NM()){var P=$O("scheduleGetConfigs");
_.co(P)}W.initJob||(W.initJob=_.Gr.addLowPriorityJob(function(){return _.y(function(x){switch(x.nextAddress){case 1:return _.OT(x,2),_.S(x,jRm(W),4);case 4:_.ci(x,3);break;case 2:_.yn(x);case 3:return _.OT(x,5),_.S(x,CsW(W),7);case 7:_.ci(x,6);break;case 5:_.yn(x);case 6:W.initJob&&(W.initJob=0),_.Kl(x)}})},100))}},nYo=function(W,P,x){var I,O,B;
return _.y(function(Y){switch(Y.nextAddress){case 1:if(!_.p("start_client_gcf")){Y.jumpTo(0);break}x&&SA3(W,x);W.setHotHashData(P);I=NM();if(!I){Y.jumpTo(3);break}if(x){Y.jumpTo(4);break}return _.S(Y,KZU(I),5);case 5:O=Y.yieldResult,x=(B=O)==null?void 0:B.config;case 4:return _.S(Y,n6t(x,P,I),3);case 3:if(x)for(var K=x,Z=_.n(W.configUpdateService.sharedHotConfigJobQueue),d=Z.next();!d.done;d=Z.next())d=d.value,d(K);_.Kl(Y)}})},Y2R=function(W,P,x){var I,O,B,Y;
return _.y(function(K){if(K.nextAddress==1){if(!_.p("start_client_gcf"))return K.jumpTo(0);vMP(W,P);return(I=NM())?x?K.jumpTo(4):_.S(K,ynS(I),5):K.jumpTo(0)}K.nextAddress!=4&&(O=K.yieldResult,x=(B=O)==null?void 0:B.config);if(!x)return K.jumpTo(0);Y=x.configData;return _.S(K,YLG(x,P,Y,I),0)})},g68=function(){var W=mlb(),P=(0,_.iA)()-W.debounceTimer;
if(!(W.debounceTimer!==0&&P<_.Wi("send_config_hash_timer"))){P=_.eL("yt.gcf.config.coldConfigData");var x=_.eL("yt.gcf.config.hotHashData"),I=_.eL("yt.gcf.config.coldHashData");P&&x&&I&&(W.debounceTimer=(0,_.iA)());return{coldConfigData:P,hotHashData:x,coldHashData:I}}},VoP=function(W){uLi(W,_.$$("RAW_COLD_CONFIG_GROUP"));
vMP(W,_.$$("SERIALIZED_COLD_HASH_DATA"));var P;QRd(W,(P=W.coldGlobalConfigGroup)==null?void 0:P.configData)},tom=function(W){SA3(W,_.$$("RAW_HOT_CONFIG_GROUP"));
W.setHotHashData(_.$$("SERIALIZED_HOT_HASH_DATA"))},SA3=function(W,P){W.hotGlobalConfigGroup=P;
_.lA("yt.gcf.config.hotConfigGroup",W.hotGlobalConfigGroup||null)},uLi=function(W,P){W.coldGlobalConfigGroup=P;
_.lA("yt.gcf.config.coldConfigGroup",W.coldGlobalConfigGroup||null)};
ty.prototype.setHotHashData=function(W){this.hotHashData=W;_.lA("yt.gcf.config.hotHashData",this.hotHashData||null)};
var vMP=function(W,P){W.coldHashData=P;_.lA("yt.gcf.config.coldHashData",W.coldHashData||null)},QRd=function(W,P){W.configData=P;
_.lA("yt.gcf.config.coldConfigData",W.configData||null)},p0=function(){return _.eL("yt.gcf.config.hotConfigGroup")},dlm=function(){return _.eL("yt.gcf.config.coldConfigGroup")};var BP={},Aym=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";BP.assign=function(W){for(var P=Array.prototype.slice.call(arguments,1);P.length;){var x=P.shift();if(x){if(typeof x!=="object")throw new TypeError("Wc`"+x);for(var I in x)Object.prototype.hasOwnProperty.call(x,I)&&(W[I]=x[I])}}return W};
BP.shrinkBuf=function(W,P){if(W.length===P)return W;if(W.subarray)return W.subarray(0,P);W.length=P;return W};
var zUl={arraySet:function(W,P,x,I,O){if(P.subarray&&W.subarray)W.set(P.subarray(x,x+I),O);else for(var B=0;B<I;B++)W[O+B]=P[x+B]},
flattenChunks:function(W){var P,x;var I=x=0;for(P=W.length;I<P;I++)x+=W[I].length;var O=new Uint8Array(x);I=x=0;for(P=W.length;I<P;I++){var B=W[I];O.set(B,x);x+=B.length}return O}},G$Z={arraySet:function(W,P,x,I,O){for(var B=0;B<I;B++)W[O+B]=P[x+B]},
flattenChunks:function(W){return[].concat.apply([],W)}};
BP.setTyped=function(){Aym?(BP.Buf8=Uint8Array,BP.Buf16=Uint16Array,BP.Buf32=Int32Array,BP.assign(BP,zUl)):(BP.Buf8=Array,BP.Buf16=Array,BP.Buf32=Array,BP.assign(BP,G$Z))};
BP.setTyped();var EMd=!0;try{new Uint8Array(1)}catch(W){EMd=!1}
var KBx=function(W){var P,x,I=W.length,O=0;for(P=0;P<I;P++){var B=W.charCodeAt(P);if((B&64512)===55296&&P+1<I){var Y=W.charCodeAt(P+1);(Y&64512)===56320&&(B=65536+(B-55296<<10)+(Y-56320),P++)}O+=B<128?1:B<2048?2:B<65536?3:4}var K=new BP.Buf8(O);for(P=x=0;x<O;P++)B=W.charCodeAt(P),(B&64512)===55296&&P+1<I&&(Y=W.charCodeAt(P+1),(Y&64512)===56320&&(B=65536+(B-55296<<10)+(Y-56320),P++)),B<128?K[x++]=B:(B<2048?K[x++]=192|B>>>6:(B<65536?K[x++]=224|B>>>12:(K[x++]=240|B>>>18,K[x++]=128|B>>>12&63),K[x++]=
128|B>>>6&63),K[x++]=128|B&63);return K};var FZA={};FZA=function(W,P,x,I){var O=W&65535|0;W=W>>>16&65535|0;for(var B;x!==0;){B=x>2E3?2E3:x;x-=B;do O=O+P[I++]|0,W=W+O|0;while(--B);O%=65521;W%=65521}return O|W<<16|0};for(var jV={},j2,gMp=[],Dlz=0;Dlz<256;Dlz++){j2=Dlz;for(var Mod=0;Mod<8;Mod++)j2=j2&1?3988292384^j2>>>1:j2>>>1;gMp[Dlz]=j2}jV=function(W,P,x,I){x=I+x;for(W^=-1;I<x;I++)W=W>>>8^gMp[(W^P[I])&255];return W^-1};var KD={};KD={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 bKd=[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],UUR=[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],ybU=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],iK8=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],sz=Array(576);xN(sz);var vP=Array(60);xN(vP);var YN=Array(512);xN(YN);var nD=Array(256);xN(nD);var kZG=Array(29);xN(kZG);var X7R=Array(30);xN(X7R);var BER,nzR,Ynx,JbC=!1;var zr;
zr=[new A0(0,0,0,0,function(W,P){var x=65535;for(x>W.pending_buf_size-5&&(x=W.pending_buf_size-5);;){if(W.lookahead<=1){Qd(W);if(W.lookahead===0&&P===0)return 1;if(W.lookahead===0)break}W.strstart+=W.lookahead;W.lookahead=0;var I=W.block_start+x;if(W.strstart===0||W.strstart>=I)if(W.lookahead=W.strstart-I,W.strstart=I,Vd(W,!1),W.strm.avail_out===0)return 1;if(W.strstart-W.block_start>=W.w_size-262&&(Vd(W,!1),W.strm.avail_out===0))return 1}W.insert=0;if(P===4)return Vd(W,!0),W.strm.avail_out===0?3:
4;W.strstart>W.block_start&&Vd(W,!1);return 1}),
new A0(4,4,8,4,qLU),new A0(4,5,16,8,qLU),new A0(4,6,32,32,qLU),new A0(4,4,16,16,CD),new A0(8,16,32,32,CD),new A0(8,16,128,128,CD),new A0(8,32,128,256,CD),new A0(32,128,258,1024,CD),new A0(32,258,258,4096,CD)];var OR8={};OR8=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 ZRC=Object.prototype.toString;
I5W.prototype.push=function(W,P){var x=this.strm,I=this.options.chunkSize;if(this.ended)return!1;var O=P===~~P?P:P===!0?4:0;typeof W==="string"?x.input=KBx(W):ZRC.call(W)==="[object ArrayBuffer]"?x.input=new Uint8Array(W):x.input=W;x.next_in=0;x.avail_in=x.input.length;do{x.avail_out===0&&(x.output=new BP.Buf8(I),x.next_out=0,x.avail_out=I);W=xBt(x,O);if(W!==1&&W!==0)return $lZ(this,W),this.ended=!0,!1;if(x.avail_out===0||x.avail_in===0&&(O===4||O===2))if(this.options.to==="string"){var B=BP.shrinkBuf(x.output,
x.next_out);P=B;B=B.length;if(B<65537&&(P.subarray&&EMd||!P.subarray))P=String.fromCharCode.apply(null,BP.shrinkBuf(P,B));else{for(var Y="",K=0;K<B;K++)Y+=String.fromCharCode(P[K]);P=Y}this.chunks.push(P)}else P=BP.shrinkBuf(x.output,x.next_out),this.chunks.push(P)}while((x.avail_in>0||x.avail_out===0)&&W!==1);if(O===4)return(x=this.strm)&&x.state?(I=x.state.status,I!==42&&I!==69&&I!==73&&I!==91&&I!==103&&I!==113&&I!==666?W=Zq(x,-2):(x.state=null,W=I===113?Zq(x,-3):0)):W=-2,$lZ(this,W),this.ended=
!0,W===0;O===2&&($lZ(this,0),x.avail_out=0);return!0};
var $lZ=function(W,P){P===0&&(W.result=W.options.to==="string"?W.chunks.join(""):BP.flattenChunks(W.chunks));W.chunks=[];W.err=P;W.msg=W.strm.msg};var wBp=typeof TextEncoder!=="undefined"?new TextEncoder:null,kKC=wBp?function(W){return wBp.encode(W)}:function(W){W=_.sW(W);
for(var P=new Uint8Array(W.length),x=0;x<P.length;x++)P[x]=W[x];return P};var Sj8={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},d_x={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Qw=function(W,P){this.version=W;this.args=P};
Qw.prototype.serialize=function(){return{version:this.version,args:this.args}};var sY8=function(W,P){this.topic=W;this.dataClass=P};
sY8.prototype.toString=function(){return this.topic};var hUb=_.eL("ytPubsub2Pubsub2Instance")||new _.Z8;_.Z8.prototype.subscribe=_.Z8.prototype.subscribe;_.Z8.prototype.unsubscribeByKey=_.Z8.prototype.unsubscribeByKey;_.Z8.prototype.publish=_.Z8.prototype.publish;_.Z8.prototype.clear=_.Z8.prototype.clear;_.lA("ytPubsub2Pubsub2Instance",hUb);var dBt=_.eL("ytPubsub2Pubsub2SubscribedKeys")||{};_.lA("ytPubsub2Pubsub2SubscribedKeys",dBt);var mBR=_.eL("ytPubsub2Pubsub2TopicToKeys")||{};_.lA("ytPubsub2Pubsub2TopicToKeys",mBR);
var vzC=_.eL("ytPubsub2Pubsub2IsAsync")||{};_.lA("ytPubsub2Pubsub2IsAsync",vzC);_.lA("ytPubsub2Pubsub2SkipSubKey",null);var Ezm=void 0,zpm=void 0;var epd=_.Wi("max_body_size_to_compress",5E5),cbd=_.Wi("min_body_size_to_compress",500),g3=!0,f5C=0,Dq=0,XuG=_.Wi("compression_performance_threshold_lr",250),NES=_.Wi("slow_compressions_before_abandon_count",4),Mlt=!1,$Bm=new Map,bRU=1,a5S=!0;_.J8(Mt,rb7);Mt.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 Hap=function(W,P,x){x||(x=0);var I=W.W_;if(typeof P==="string")for(var O=0;O<16;O++)I[O]=P.charCodeAt(x)<<24|P.charCodeAt(x+1)<<16|P.charCodeAt(x+2)<<8|P.charCodeAt(x+3),x+=4;else for(O=0;O<16;O++)I[O]=P[x]<<24|P[x+1]<<16|P[x+2]<<8|P[x+3],x+=4;for(P=16;P<80;P++)x=I[P-3]^I[P-8]^I[P-14]^I[P-16],I[P]=(x<<1|x>>>31)&4294967295;P=W.chain_[0];x=W.chain_[1];O=W.chain_[2];for(var B=W.chain_[3],Y=W.chain_[4],K,Z,d=0;d<80;d++)d<40?d<20?(K=B^x&(O^B),Z=1518500249):(K=x^O^B,Z=1859775393):d<60?(K=x&O|B&(x|O),
Z=2400959708):(K=x^O^B,Z=3395469782),K=(P<<5|P>>>27)+K+Y+Z+I[d]&4294967295,Y=B,B=O,O=(x<<30|x>>>2)&4294967295,x=P,P=K;W.chain_[0]=W.chain_[0]+P&4294967295;W.chain_[1]=W.chain_[1]+x&4294967295;W.chain_[2]=W.chain_[2]+O&4294967295;W.chain_[3]=W.chain_[3]+B&4294967295;W.chain_[4]=W.chain_[4]+Y&4294967295};
Mt.prototype.update=function(W,P){if(W!=null){P===void 0&&(P=W.length);for(var x=P-this.blockSize,I=0,O=this.buf_,B=this.inbuf_;I<P;){if(B==0)for(;I<=x;)Hap(this,W,I),I+=this.blockSize;if(typeof W==="string")for(;I<P;){if(O[B]=W.charCodeAt(I),++B,++I,B==this.blockSize){Hap(this,O);B=0;break}}else for(;I<P;)if(O[B]=W[I],++B,++I,B==this.blockSize){Hap(this,O);B=0;break}}this.inbuf_=B;this.total_+=P}};
Mt.prototype.digest=function(){var W=[],P=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var x=this.blockSize-1;x>=56;x--)this.buf_[x]=P&255,P/=256;Hap(this,this.buf_);for(x=P=0;x<5;x++)for(var I=24;I>=0;I-=8)W[P]=this.chain_[x]>>I&255,++P;return W};var FB8;var AZ=function(W){var P=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(v){P.databaseToken=v},
triggerThrottle:function(){P.throttledSend()},
cancelThrottle:function(){P.cancelThrottledSend()},
immediateSend:function(v){return _.y(function(m){return _.S(m,P.immediateSend(v),0)})},
requestWithinAgeLimit:function(v,m){return P.requestWithinAgeLimit(v,m)},
retryQueuedRequests:function(){P.retryQueuedRequests()}};
var x;this.throttleTimeout=(x=W.throttleTimeout)!=null?x:100;var I;this.retryMaxAttempts=(I=W.retryMaxAttempts)!=null?I:1;var O;this.requestAgeLimitMs=(O=W.requestAgeLimitMs)!=null?O:2592E6;var B;this.queuedRequestAgeLimitMs=(B=W.queuedRequestAgeLimitMs)!=null?B:12E4;var Y;this.retryDelayMs=(Y=W.retryDelayMs)!=null?Y:5E3;var K;this.databaseToken=(K=W.databaseToken)!=null?K:void 0;this.enableCleaning=!!W.enableCleaning;var Z;this.cleaningRate=(Z=W.cleaningRate)!=null?Z:.1;var d;this.potentialEsfErrorLimit=
(d=W.potentialEsfErrorLimit)!=null?d:10;W.handleError&&(this.handleError=W.handleError);W.handleWarning&&(this.handleWarning=W.handleWarning);W.disableYtIdbTransactions&&(this.disableYtIdbTransactions=W.disableYtIdbTransactions);W.bypassDbTokenDependency&&(this.bypassDbTokenDependency=W.bypassDbTokenDependency);this.getBooleanFlag=W.getBooleanFlag;this.jobManager=W.jobManager;this.logsStore=W.logsStore;this.networkManager=W.networkManager;this.sendFn=W.sendFn;this.onlineEvent=W.onlineEvent;this.offlineEvent=
W.offlineEvent;C0(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&eUz(this)},eUz=function(W){C0(W)&&!W.disableYtIdbTransactions&&(W.initialized=!0,W.enableCleaning&&Math.random()<=W.cleaningRate&&W.logsStore.cleanLogsStore(W.databaseToken),W.retryQueuedRequests(),W.networkManager.isNetworkAvailable()&&W.throttledSend(),W.networkManager.listen(W.onlineEvent,W.throttledSend.bind(W)),W.networkManager.listen(W.offlineEvent,W.cancelThrottledSend.bind(W)))};
_.J=AZ.prototype;_.J.writeThenSend=function(W,P){var x=this;P=P===void 0?{}:P;if(C0(this)&&this.initialized){var I={url:W,options:P,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(I,this.databaseToken).then(function(O){I.id=O;x.networkManager.isNetworkAvailable()&&x.immediateSend(I)}).catch(function(O){x.immediateSend(I);
cym(x,O)})}else this.sendFn(W,P)};
_.J.sendThenWrite=function(W,P,x){var I=this;P=P===void 0?{}:P;if(C0(this)&&this.initialized){var O={url:W,options:P,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(O.skipRetry=x);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!O.skipRetry){if(!O.skipRetry){var B=P.onError?P.onError:function(){};
P.onError=function(Y,K){return _.y(function(Z){if(Z.nextAddress==1)return _.S(Z,I.logsStore.set(O,I.databaseToken).catch(function(d){cym(I,d)}),2);
B(Y,K);_.Kl(Z)})}}this.sendFn(W,P,O.skipRetry)}else this.logsStore.set(O,this.databaseToken).catch(function(Y){I.sendFn(W,P,O.skipRetry);
cym(I,Y)})}else this.sendFn(W,P,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&x)};
_.J.sendAndWrite=function(W,P){var x=this;P=P===void 0?{}:P;if(C0(this)&&this.initialized){var I={url:W,options:P,timestamp:this.now(),status:"NEW",sendCount:0},O=!1,B=P.onSuccess?P.onSuccess:function(){};
I.options.onSuccess=function(Y,K){I.id!==void 0?x.logsStore.deleteRequest(I.id,x.databaseToken):O=!0;x.networkManager.networkStatusHint&&x.getBooleanFlag&&x.getBooleanFlag("vss_network_hint")&&x.networkManager.networkStatusHint(!0);B(Y,K)};
this.sendFn(I.url,I.options,void 0,!0);this.logsStore.set(I,this.databaseToken).then(function(Y){I.id=Y;O&&x.logsStore.deleteRequest(I.id,x.databaseToken)}).catch(function(Y){cym(x,Y)})}else this.sendFn(W,P,void 0,!0)};
_.J.throttledSend=function(){var W=this;if(!C0(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,W.logsStore.getMostRecentByStatus("NEW",W.databaseToken),2);if(x.nextAddress!=3)return P=x.yieldResult,P?_.S(x,W.immediateSend(P),3):(W.cancelThrottledSend(),x.return());W.intervalJob&&(W.intervalJob=0,W.throttledSend());_.Kl(x)})},this.throttleTimeout))};
_.J.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.J.immediateSend=function(W){var P=this,x;return _.y(function(I){switch(I.nextAddress){case 1:if(!C0(P))throw Error("$c");if(W.id===void 0){I.jumpTo(2);break}return _.S(I,P.logsStore.markAsQueued(W.id,P.databaseToken),3);case 3:(x=I.yieldResult)||P.handleWarning(Error("ad"));case 2:if(P.requestWithinAgeLimit(W,P.requestAgeLimitMs)){I.jumpTo(4);break}P.handleWarning(Error("bd"));if(W.id===void 0){I.jumpTo(5);break}return _.S(I,P.logsStore.deleteRequest(W.id,P.databaseToken),5);case 5:return I.return();
case 4:W.skipRetry||(W=awP(P,W));if(!W){I.jumpTo(0);break}if(!W.skipRetry||W.id===void 0){I.jumpTo(8);break}return _.S(I,P.logsStore.deleteRequest(W.id,P.databaseToken),8);case 8:P.sendFn(W.url,W.options,!!W.skipRetry),_.Kl(I)}})};
var awP=function(W,P){if(!C0(W))throw Error("cd");var x=P.options.onError?P.options.onError:function(){};
P.options.onError=function(O,B){var Y,K,Z,d;return _.y(function(v){switch(v.nextAddress){case 1:Y=xam(B);(K=IzR(B))&&W.getBooleanFlag&&W.getBooleanFlag("web_enable_error_204")&&W.handleError(Error("dd"),P.url,B);if(!(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&Y||W.getBooleanFlag&&!W.getBooleanFlag("nwl_consider_error_code")&&W.potentialEsfErrorCounter<=W.potentialEsfErrorLimit)){v.jumpTo(2);break}if(!W.networkManager.sendNetworkCheckRequest){v.jumpTo(3);break}return _.S(v,W.networkManager.sendNetworkCheckRequest(),
3);case 3:if(W.networkManager.isNetworkAvailable()){v.jumpTo(2);break}x(O,B);if(!W.getBooleanFlag||!W.getBooleanFlag("nwl_consider_error_code")||((Z=P)==null?void 0:Z.id)===void 0){v.jumpTo(6);break}return _.S(v,W.logsStore.resetRequest(P.id,W.databaseToken,!1),6);case 6:return v.return();case 2:if(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&!Y&&W.potentialEsfErrorCounter>W.potentialEsfErrorLimit)return v.return();W.potentialEsfErrorCounter++;if(((d=P)==null?void 0:d.id)===void 0){v.jumpTo(8);
break}return P.sendCount<W.retryMaxAttempts?_.S(v,W.logsStore.resetRequest(P.id,W.databaseToken,!0,K?!1:void 0),12):_.S(v,W.logsStore.deleteRequest(P.id,W.databaseToken),8);case 12:W.jobManager.addLowPriorityJob(function(){W.networkManager.isNetworkAvailable()&&W.throttledSend()},W.retryDelayMs);
case 8:x(O,B),_.Kl(v)}})};
var I=P.options.onSuccess?P.options.onSuccess:function(){};
P.options.onSuccess=function(O,B){var Y;return _.y(function(K){if(K.nextAddress==1)return((Y=P)==null?void 0:Y.id)===void 0?K.jumpTo(2):_.S(K,W.logsStore.deleteRequest(P.id,W.databaseToken),2);W.networkManager.networkStatusHint&&W.getBooleanFlag&&W.getBooleanFlag("vss_network_hint")&&W.networkManager.networkStatusHint(!0);I(O,B);_.Kl(K)})};
return P};
AZ.prototype.requestWithinAgeLimit=function(W,P){W=W.timestamp;return this.now()-W>=P?!1:!0};
AZ.prototype.retryQueuedRequests=function(){var W=this;if(!C0(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(P){P&&!W.requestWithinAgeLimit(P,W.queuedRequestAgeLimitMs)?W.jobManager.addLowPriorityJob(function(){return _.y(function(x){if(x.nextAddress==1)return P.id===void 0?x.jumpTo(2):_.S(x,W.logsStore.resetRequest(P.id,W.databaseToken),2);W.retryQueuedRequests();_.Kl(x)})}):W.networkManager.isNetworkAvailable()&&W.throttledSend()})};
var cym=function(W,P){W.writeError&&!W.networkManager.isNetworkAvailable()?W.writeError(P):W.handleError(P)},C0=function(W){return!!W.databaseToken||W.bypassDbTokenDependency};var OLm;var Ztd={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var baP={},uy7=rO("ServiceWorkerLogsDatabase",{objectStores:(baP.SWHealthLog={addedAtVersion:1},baP),shared:!0,upgrade:function(W,P){P(1)&&HP(h0(W,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var jfU={},p5U=0;var zk8;var zX=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},kN=function(){if(!zX.instance){var W=_.eL("yt.networkRequestMonitor.instance")||new zX;
_.lA("yt.networkRequestMonitor.instance",W);zX.instance=W}return zX.instance};
zX.prototype.requestComplete=function(W,P){P&&(this.anyRequestHasSucceeded=!0);W=this.removeParams(W);this.requestMap.get(W)||this.requestMap.set(W,P)};
zX.prototype.isEndpointCFR=function(W){W=this.removeParams(W);return(W=this.requestMap.get(W))?!1:W===!1&&this.anyRequestHasSucceeded?!0:null};
zX.prototype.removeParams=function(W){return W.split("?")[0]};
zX.prototype.removeParams=zX.prototype.removeParams;zX.prototype.isEndpointCFR=zX.prototype.isEndpointCFR;zX.prototype.requestComplete=zX.prototype.requestComplete;zX.getInstance=kN;var GX=function(W){_.tW.call(this);var P=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=W!=null?W:{addLowPriorityJob:function(O,B){return setTimeout(O,B)},
cancelJob:function(O){clearTimeout(O)}};
var x,I;this.isOnline=(I=(x=window.navigator)==null?void 0:x.onLine)!=null?I:!0;this.onNavigatorChange=function(){return _.y(function(O){return _.S(O,k$A(P),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||UlW(this)};
_.A(GX,_.tW);GX.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete GX.instance};
GX.prototype.isNetworkAvailable=function(){return this.isOnline};
var UlW=function(W){W.pollingJob=W.jobManager.addLowPriorityJob(function(){var P;return _.y(function(x){if(x.nextAddress==1)return W.isOnline?((P=window.navigator)==null?0:P.onLine)?x.jumpTo(3):_.S(x,k$A(W),3):_.S(x,k$A(W),3);UlW(W);_.Kl(x)})},3E4)},k$A=function(W,P){return W.networkRequestPromise?W.networkRequestPromise:W.networkRequestPromise=new Promise(function(x){var I,O,B,Y;
return _.y(function(K){switch(K.nextAddress){case 1:return I=window.AbortController?new window.AbortController:void 0,B=(O=I)==null?void 0:O.signal,Y=!1,_.OT(K,2,3),I&&(W.abortTimeoutKey=W.jobManager.addLowPriorityJob(function(){I.abort()},P||2E4)),_.S(K,fetch("/generate_204",{method:"HEAD",
signal:B}),5);case 5:Y=!0;case 3:_.Jo(K);W.networkRequestPromise=void 0;W.abortTimeoutKey&&(W.jobManager.cancelJob(W.abortTimeoutKey),W.abortTimeoutKey=0);Y!==W.isOnline&&(W.isOnline=Y,W.isOnline?W.dispatchEvent("networkstatus-online"):W.dispatchEvent("networkstatus-offline"));x(Y);_.YD(K,0);break;case 2:_.yn(K),Y=!1,K.jumpTo(3)}})})};var Ej=function(){_.tW.call(this);var W=this;this.shouldFlushErrors=!1;GX.instance||(GX.instance=new GX(_.Gr));this.sharedNetworkStatusManager=GX.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(W.shouldFlushErrors&&_.p("offline_error_handling")){var P=G1R().get("errors",!0);if(P){for(var x in P)if(P[x]){var I=new _.mW(x,"sent via offline_errors");I.name=P[x].name;I.stack=P[x].stack;I.level=P[x].level;_.hQ(I)}G1R().set("errors",{},2592E3,!0)}}})};
_.A(Ej,_.tW);var XBc=function(){if(!Ej.instance){var W=_.eL("yt.networkStatusManager.instance")||new Ej;_.lA("yt.networkStatusManager.instance",W);Ej.instance=W}return Ej.instance};
_.J=Ej.prototype;_.J.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.J.networkStatusHint=function(W){this.sharedNetworkStatusManager.isOnline=W};
_.J.getWindowStatus=function(){var W=window.navigator.onLine;return W===void 0?!0:W};
_.J.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.J.listen=function(W,P){return this.sharedNetworkStatusManager.listen(W,P)};
_.J.sendNetworkCheckRequest=function(W){W=k$A(this.sharedNetworkStatusManager,W);W.then(function(P){_.p("use_cfr_monitor")&&kN().requestComplete("generate_204",P)});
return W};
Ej.prototype.sendNetworkCheckRequest=Ej.prototype.sendNetworkCheckRequest;Ej.prototype.listen=Ej.prototype.listen;Ej.prototype.enableErrorFlushing=Ej.prototype.enableErrorFlushing;Ej.prototype.getWindowStatus=Ej.prototype.getWindowStatus;Ej.prototype.networkStatusHint=Ej.prototype.networkStatusHint;Ej.prototype.isNetworkAvailable=Ej.prototype.isNetworkAvailable;Ej.getInstance=XBc;_.bE=function(W){W=W===void 0?{}:W;_.tW.call(this);var P=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=XBc();var x=_.eL("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);x&&(W.rateLimit?(this.rateLimit=W.rateLimit,x("networkstatus-online",function(){fwZ(P,"publicytnetworkstatus-online")}),x("networkstatus-offline",function(){fwZ(P,"publicytnetworkstatus-offline")})):(x("networkstatus-online",function(){P.dispatchEvent("publicytnetworkstatus-online")}),x("networkstatus-offline",
function(){P.dispatchEvent("publicytnetworkstatus-offline")})))};
_.A(_.bE,_.tW);_.bE.prototype.isNetworkAvailable=function(){var W=_.eL("yt.networkStatusManager.instance.isNetworkAvailable");return W?W.bind(this.nsmInstance)():!0};
_.bE.prototype.networkStatusHint=function(W){var P=_.eL("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);P&&P(W)};
_.bE.prototype.sendNetworkCheckRequest=function(W){var P=this,x;return _.y(function(I){x=_.eL("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(P.nsmInstance);return _.p("skip_network_check_if_cfr")&&kN().isEndpointCFR("generate_204")?I.return(new Promise(function(O){var B;P.networkStatusHint(((B=window.navigator)==null?void 0:B.onLine)||!0);O(P.isNetworkAvailable())})):x?I.return(x(W)):I.return(!0)})};
var fwZ=function(W,P){W.rateLimit?W.lastJobTime?(_.Gr.cancelJob(W.schedulerJob),W.schedulerJob=_.Gr.addLowPriorityJob(function(){W.lastPublicSignalSent!==P&&(W.dispatchEvent(P),W.lastPublicSignalSent=P,W.lastJobTime=(0,_.iA)())},W.rateLimit-((0,_.iA)()-W.lastJobTime))):(W.dispatchEvent(P),W.lastPublicSignalSent=P,W.lastJobTime=(0,_.iA)()):W.dispatchEvent(P)};var $aS,gl=function(){AZ.call(this,{logsStore:{cleanLogsStore:o3R,deleteRequest:ZLS,getMostRecentByStatus:Yoo,markAsQueued:yqA,resetRequest:K77,set:n3W},networkManager:_.w5R(),handleError:function(W,P,x){var I,O=x==null?void 0:(I=x.error)==null?void 0:I.code;if(O===400||O===415){var B;W=new _.mW(W.message,P,x==null?void 0:(B=x.error)==null?void 0:B.code);_.co(W,void 0,void 0,void 0,!0)}else _.hQ(W)},
handleWarning:_.co,sendFn:DaS,now:_.iA,writeError:E3m,jobManager:_.Ds(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Wi("potential_esf_error_limit",10),getBooleanFlag:_.p,disableYtIdbTransactions:!(_.vi()&&_.hkW())});this.initializationPromise=new _.If;_.p("networkless_immediately_drop_all_requests")&&SoR();IEx("LogsDatabaseV2")};
_.A(gl,AZ);_.lwm=function(){var W=_.eL("yt.networklessRequestController.instance");W||(W=new gl,_.lA("yt.networklessRequestController.instance",W),_.p("networkless_logging")&&_.TM().then(function(P){W.databaseToken=P;eUz(W);W.initializationPromise.resolve();W.enableCleaning&&Math.random()<=W.cleaningRate&&W.databaseToken&&sfW(W.databaseToken);_.p("networkless_immediately_drop_sw_health_store")&&Nei(W)}));
return W};
gl.prototype.writeThenSend=function(W,P){P||(P={});P=M9R(W,P);_.vi()||(this.initialized=!1);AZ.prototype.writeThenSend.call(this,W,P)};
gl.prototype.sendThenWrite=function(W,P,x){P||(P={});P=M9R(W,P);_.vi()||(this.initialized=!1);AZ.prototype.sendThenWrite.call(this,W,P,x)};
gl.prototype.sendAndWrite=function(W,P){P||(P={});P=M9R(W,P);_.vi()||(this.initialized=!1);AZ.prototype.sendAndWrite.call(this,W,P)};
gl.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Nei=function(W){var P;_.y(function(x){if(!W.databaseToken)throw P=$O("clearSWHealthLogsDb"),P;return x.return(v3m(W.databaseToken).catch(function(I){W.handleError(I)}))})};_.ekm=!1;_.HLU=_.xW.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.ekm};_.lA("ytNetworklessLoggingInitializationOptions",_.HLU);var Ca=function(W){var P=this;this.config_=null;W?this.config_=W:o6U()&&(this.config_=_.F9());_.VE(_.Gr,function(){PSW(P)},5E3)};
Ca.prototype.isReady=function(){!this.config_&&o6U()&&(this.config_=_.F9());return!!this.config_};
var W78=function(W,P,x,I){!_.$$("VISITOR_DATA")&&P!=="visitor_id"&&Math.random()<.01&&_.co(new _.mW("Missing VISITOR_DATA when sending innertube request.",P,x,I));if(!W.isReady()){var O=new _.mW("innertube xhrclient not ready",P,x,I);_.hQ(O);throw O;}var B={headers:I.headers||{},method:"POST",postParams:x,postBody:I.postBody,postBodyFormat:I.postBodyFormat||"JSON",onTimeout:function(){I.onTimeout()},
onFetchTimeout:I.onTimeout,onSuccess:function(m,t){if(I.onSuccess)I.onSuccess(t)},
onFetchSuccess:function(m){if(I.onSuccess)I.onSuccess(m)},
onError:function(m,t){if(I.onError)I.onError(t)},
onFetchError:function(m){if(I.onError)I.onError(m)},
timeout:I.timeout,withCredentials:!0,compress:I.compress};B.headers["Content-Type"]||(B.headers["Content-Type"]="application/json");var Y="";(O=W.config_.innertubeHostOverride)&&(Y=O);var K=W.config_.innertubeUseThirdPartyAuth||!1,Z=_.E6m(K,Y,I);Object.assign(B.headers,Z);B.headers.Authorization&&!Y&&K&&(B.headers["x-origin"]=window.location.origin);var d=_.XY(Y+("/youtubei/"+W.config_.innertubeApiVersion+"/"+P),{alt:"json"}),v=function(m){m=m===void 0?!1:m;var t;if(I.retry&&Y!="www.youtube-nocookie.com"&&
(m||_.p("skip_ls_gel_retry")||B.headers["Content-Type"]!=="application/json"||(t=qnm(P,x,Z,K)),t)){var C=B.onSuccess,z=B.onFetchSuccess;B.onSuccess=function(a,k){LB8(t);C(a,k)};
x.onFetchSuccess=function(a,k){LB8(t);z(a,k)}}try{if(m&&I.retry&&!I.networklessOptions.bypassNetworkless)B.method="POST",I.networklessOptions.writeThenSend?_.lwm().writeThenSend(d,B):_.lwm().sendAndWrite(d,B);
else if(I.compress){var D=!I.networklessOptions.writeThenSend;if(B.postBody){var w=B.postBody;typeof w!=="string"&&(w=JSON.stringify(B.postBody));UBR(d,w,B,_.yO,D)}else UBR(d,JSON.stringify(B.postParams),B,rCR,D)}else _.p("web_all_payloads_via_jspb")?_.yO(d,B):rCR(d,B)}catch(a){if(a.name==="InvalidAccessError")t&&(LB8(t),t=0),_.co(Error("fd"));else throw a;}t&&_.VE(_.Gr,function(){PSW(W)},5E3)};
_.cqC()?ifo().then(function(m){v(m)}):v(!1)};var XLR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(XLR,_.aK);var TeA=0,bLR=_.Z2?"webkit":_.KW?"moz":_.yo?"ms":t18?"o":"";_.lA("ytDomDomGetNextId",_.eL("ytDomDomGetNextId")||function(){return++TeA});var ryW={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},Tr=function(W){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(W=
W||window.event){this.event=W;for(var P in W)P in ryW||(this[P]=W[P]);this.scale=W.scale;this.rotation=W.rotation;var x=W.target||W.srcElement;x&&x.nodeType==3&&(x=x.parentNode);this.target=x;var I=W.relatedTarget;if(I)try{I=I.nodeName?I:null}catch(O){I=null}else this.type=="mouseover"?I=W.fromElement:this.type=="mouseout"&&(I=W.toElement);this.relatedTarget=I;this.clientX=W.clientX!=void 0?W.clientX:W.pageX;this.clientY=W.clientY!=void 0?W.clientY:W.pageY;this.keyCode=W.keyCode?W.keyCode:W.which;
this.charCode=W.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=W.altKey;this.ctrlKey=W.ctrlKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pageX_=W.pageX;this.pageY_=W.pageY}}catch(O){}},iak=function(W){if(document.body&&document.documentElement){var P=document.body.scrollTop+document.documentElement.scrollTop;
W.pageX_=W.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);W.pageY_=W.clientY+P}};
Tr.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Tr.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Tr.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var lE=_.xW.ytEventsEventsListeners||{};_.lA("ytEventsEventsListeners",lE);var lzR=_.xW.ytEventsEventsCounter||{count:0};_.lA("ytEventsEventsCounter",lzR);var TTS=_.Vi(function(){var W=!1;try{var P=Object.defineProperty({},"capture",{get:function(){W=!0}});
window.addEventListener("test",null,P)}catch(x){}return W});_.J8(iE,_.vn);iE.prototype.onMouseMove_=function(W){W.pageX_===void 0&&iak(W);var P=W.pageX_;W.pageY_===void 0&&iak(W);this.position_=new _.Al(P,W.pageY_)};
iE.prototype.checkPosition_=function(){if(this.position_){var W=(0,_.iA)();if(this.previousTime_!=0){var P=this.previousPosition_,x=this.position_,I=P.x-x.x;P=P.y-x.y;I=Math.sqrt(I*I+P*P)/(W-this.previousTime_);this.cycles_[this.index_]=Math.abs((I-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(x=P=0;x<4;x++)P+=this.cycles_[x]||0;P>=3&&this.callback_();this.previousVelocity_=I}this.previousTime_=W;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
iE.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.rqd(this.mouseListenerKey_)};var qoW={};var BcA=new _.R("rawColdConfigGroup");var JFd=new _.R("rawHotConfigGroup");var RUw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(RUw,_.aK);var UCm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(UCm,_.aK);var mn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W,500)};
_.A(mn,_.aK);mn.prototype.getPayloadCase=function(){return _.CW(this,Fnm)};
mn.prototype.getContext=function(){return _.qM(this,UCm,33)};
var Fnm=[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];var LrA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(LrA,_.aK);var Elm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Elm,_.aK);Elm.prototype.setVideoId=function(W){return Ka(this,1,glt,cy(W))};
Elm.prototype.getPlaylistId=function(){return _.KU(this,de(this,glt,2))};
var glt=[1,2];var TYm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(TYm,_.aK);TYm.prototype.getContext=function(){return _.qM(this,Zw,1)};
TYm.prototype.getTier=function(){return _.$5(this,7)};var qAM,PB,xM;qAM=_.xW.ytPubsubPubsubInstance||new _.Z8;PB=_.xW.ytPubsubPubsubSubscribedKeys||{};xM=_.xW.ytPubsubPubsubTopicToKeys||{};_.L7m=_.xW.ytPubsubPubsubIsSynchronous||{};_.Z8.prototype.subscribe=_.Z8.prototype.subscribe;_.Z8.prototype.unsubscribeByKey=_.Z8.prototype.unsubscribeByKey;_.Z8.prototype.publish=_.Z8.prototype.publish;_.Z8.prototype.clear=_.Z8.prototype.clear;_.lA("ytPubsubPubsubInstance",qAM);_.lA("ytPubsubPubsubTopicToKeys",xM);_.lA("ytPubsubPubsubIsSynchronous",_.L7m);
_.lA("ytPubsubPubsubSubscribedKeys",PB);var OA=window;var Dg=_.p("web_enable_lifecycle_monitoring")&&O_S()!==0,Lnb=_.p("web_enable_lifecycle_monitoring");var PVc=function(W){var P=this;var x=x===void 0?0:x;var I=I===void 0?_.Ds():I;this.JSC$8713_defaultPriority=x;this.scheduler=I;this.completedResolver=new _.If;this.scheduledPayloads=W;for(W={i$jscomp$529:0};W.i$jscomp$529<this.scheduledPayloads.length;W={payload$jscomp$18:void 0,i$jscomp$529:W.i$jscomp$529},W.i$jscomp$529++)W.payload$jscomp$18=this.scheduledPayloads[W.i$jscomp$529],x=function(O){return function(){O.payload$jscomp$18.job();P.scheduledPayloads[O.i$jscomp$529].processed=!0;P.scheduledPayloads.every(function(B){return B.processed===
!0})&&P.completedResolver.resolve()}}(W),I=this.scheduler.addJob(x,Whm(this,W.payload$jscomp$18)),this.scheduledPayloads[W.i$jscomp$529]=Object.assign({},W.payload$jscomp$18,{job:x,
jobId:I})};
PVc.prototype.flushJobs=function(){var W=this,P=Array.from(this.scheduledPayloads.keys()).sort(function(I,O){return Whm(W,W.scheduledPayloads[O])-Whm(W,W.scheduledPayloads[I])});
P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=this.scheduledPayloads[x.value],x.jobId===void 0||x.processed||(this.scheduler.cancelJob(x.jobId),this.scheduler.addJob(x.job,10))};
PVc.prototype.cancel=function(){for(var W=_.n(this.scheduledPayloads),P=W.next();!P.done;P=W.next())P=P.value,P.jobId===void 0||P.processed||this.scheduler.cancelJob(P.jobId),P.processed=!0;this.completedResolver.resolve()};
var Whm=function(W,P){var x;return(x=P.priority)!=null?x:W.JSC$8713_defaultPriority};var M_=function(W){this.state=W;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Dg&&JER(this.state)};
M_.prototype.install=function(W){this.plugins.push(W);return this};
M_.prototype.uninstall=function(){var W=this;_.tH.apply(0,arguments).forEach(function(P){P=W.plugins.indexOf(P);P>-1&&W.plugins.splice(P,1)})};
M_.prototype.transition=function(W,P){var x=this;Dg&&BY7(this.state);var I=this.transitions.find(function(B){return Array.isArray(B.from)?B.from.find(function(Y){return Y===x.state&&B.to===W}):B.from===x.state&&B.to===W});
if(I){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);x1z(this,W,P);this.state=W;Dg&&JER(this.state);I=I.action.bind(this);var O=this.plugins.filter(function(B){return B[W]}).map(function(B){return B[W]});
I(INP(this,O),P)}else throw Error("gd`"+this.state+"`"+W);};
var INP=function(W,P){var x=P.filter(function(O){return OJi(W,O)===10}),I=P.filter(function(O){return OJi(W,O)!==10});
return W.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var O=_.tH.apply(0,arguments);return _.y(function(B){if(B.nextAddress==1)return _.S(B,W.runImmediateJobsAsync.apply(W,[x].concat(_.ju(O))),2);W.setJobSetWithScheduledJobs.apply(W,[I].concat(_.ju(O)));_.Kl(B)})}:function(){var O=_.tH.apply(0,arguments);
W.runImmediateJobsSync.apply(W,[x].concat(_.ju(O)));W.setJobSetWithScheduledJobs.apply(W,[I].concat(_.ju(O)))}};
M_.prototype.runImmediateJobsSync=function(W){var P=_.tH.apply(1,arguments);_.Ds();for(var x=_.n(W),I=x.next(),O={};!I.done;O={lifecycle$jscomp$2:void 0},I=x.next())O.lifecycle$jscomp$2=I.value,Rx(function(B){return function(){JCl(B.lifecycle$jscomp$2.name);YZA(function(){return B.lifecycle$jscomp$2.callback.apply(B.lifecycle$jscomp$2,_.ju(P))});
$U(B.lifecycle$jscomp$2.name)}}(O))};
M_.prototype.runImmediateJobsAsync=function(W){var P=_.tH.apply(1,arguments),x,I,O,B;return _.y(function(Y){Y.nextAddress==1&&(_.Ds(),x=_.n(W),I=x.next(),O={});if(Y.nextAddress!=3){if(I.done)return Y.jumpTo(0);O.lifecycle$jscomp$3=I.value;O.asyncJobCompletion=void 0;B=function(K){return function(){JCl(K.lifecycle$jscomp$3.name);var Z=YZA(function(){return K.lifecycle$jscomp$3.callback.apply(K.lifecycle$jscomp$3,_.ju(P))});
qlt(Z)?K.asyncJobCompletion=_.p("web_lifecycle_error_handling_killswitch")?Z.then(function(){$U(K.lifecycle$jscomp$3.name)}):Z.then(function(){$U(K.lifecycle$jscomp$3.name)},function(d){nlA(d);
$U(K.lifecycle$jscomp$3.name)}):$U(K.lifecycle$jscomp$3.name)}}(O);
Rx(B);return O.asyncJobCompletion?_.S(Y,O.asyncJobCompletion,3):Y.jumpTo(3)}O={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};I=x.next();return Y.jumpTo(2)})};
M_.prototype.setJobSetWithScheduledJobs=function(W){var P=_.tH.apply(1,arguments),x=this,I=W.map(function(O){return{job:function(){JCl(O.name);YZA(function(){return O.callback.apply(O,_.ju(P))});
$U(O.name)},
priority:OJi(x,O)}});
I.length&&(this.jobSet=new PVc(I))};
var OJi=function(W,P){var x,I;return(I=(x=W.overridePriority)!=null?x:P.priority)!=null?I:0},JCl=function(W){Dg&&W&&JER(W)},$U=function(W){Dg&&W&&BY7(W)},x1z=function(W,P,x){Lnb&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+W.constructor.name+"] '"+W.state+"' to '"+P+"'"),console.log("with message: ",x),console.groupEnd())};
_.N1.Object.defineProperties(M_.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var B7A=function(W){M_.call(this,W===void 0?"none":W);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(){}}]},nQc;
_.A(B7A,M_);B7A.prototype.runApplicationNavigationBegin=function(W,P){var x=this;this.navigationTimer=_.VE(_.Gr,function(){x.currentState==="application_navigating"&&x.transition("none")},5E3);
W(P==null?void 0:P.event)};
B7A.prototype.runApplicationNavigationEnd=function(W,P){this.navigationTimer&&(_.Gr.cancelJob(this.navigationTimer),this.navigationTimer=null);W(P==null?void 0:P.event)};
_.Ot7=function(){nQc||(nQc=new B7A);return nQc};var I1m=[];_.lA("yt.logging.transport.getScrapedGelPayloads",function(){return I1m});var Jy=function(){var W=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return W.totalEntries}}};
Jy.prototype.storePayload=function(W,P){W=yEW(W);this.store[W]?this.store[W].push(P):(this.memoizedKeySequences={},this.store[W]=[P]);this.totalEntries++;_.p("more_accurate_gel_parser")&&(P=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(P));return W};
Jy.prototype.smartExtractMatchingEntries=function(W){if(!W.keys.length)return[];for(var P=YSA(this,W.keys.splice(0,1)[0]),x=[],I=0;I<P.length;I++)this.store[P[I]]&&W.sizeLimit&&(this.store[P[I]].length<=W.sizeLimit?(x.push.apply(x,_.ju(this.store[P[I]])),delete this.store[P[I]]):x.push.apply(x,_.ju(this.store[P[I]].splice(0,W.sizeLimit))));this.totalEntries-=x.length;(W==null?0:W.sizeLimit)&&x.length<(W==null?void 0:W.sizeLimit)&&(W.sizeLimit-=x.length,x.push.apply(x,_.ju(this.smartExtractMatchingEntries(W))));
return x};
Jy.prototype.extractMatchingEntries=function(W){W=YSA(this,W);for(var P=[],x=0;x<W.length;x++)this.store[W[x]]&&(P.push.apply(P,_.ju(this.store[W[x]])),delete this.store[W[x]]);this.totalEntries-=P.length;return P};
Jy.prototype.getSequenceCount=function(W){W=YSA(this,W);for(var P=0,x=0;x<W.length;x++){var I=void 0;P+=((I=this.store[W[x]])==null?void 0:I.length)||0}return P};
var YSA=function(W,P){var x=yEW(P);if(W.memoizedKeySequences[x])return W.memoizedKeySequences[x];var I=Object.keys(W.store)||[];if(I.length<=1&&yEW(P)===I[0])return I;for(var O=[],B=0;B<I.length;B++){var Y=I[B].split("/");if(yCl(P.auth,Y[0])){var K=P.isJspb;yCl(K===void 0?"undefined":K?"true":"false",Y[1])&&yCl(P.cttAuthInfo,Y[2])&&(K=P.tier,K=K===void 0?"undefined":JSON.stringify(K),yCl(K,Y[3])&&O.push(I[B]))}}return W.memoizedKeySequences[x]=O},yCl=function(W,P){return W===void 0||W==="undefined"?
!0:W===P};
Jy.prototype.getSequenceCount=Jy.prototype.getSequenceCount;Jy.prototype.extractMatchingEntries=Jy.prototype.extractMatchingEntries;Jy.prototype.smartExtractMatchingEntries=Jy.prototype.smartExtractMatchingEntries;Jy.prototype.storePayload=Jy.prototype.storePayload;var aet,eoA,b_o,YM,Khi,KT7,yFd,H_8,hoR,Q7W,cES,Pqt,MdG;aet=_.Wi("initial_gel_batch_timeout",2E3);eoA=_.Wi("gel_queue_timeout_max_ms",6E4);b_o=_.Wi("gel_min_batch_size",5);YM=void 0;Khi=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
KT7=new Khi;yFd=new Khi;H_8=new Khi;hoR=new Khi;cES=!0;Pqt=1;_.WTt=new Map;MdG=_.xW.ytLoggingTransportTokensToCttTargetIds_||{};_.lA("ytLoggingTransportTokensToCttTargetIds_",MdG);var Dnx=_.xW.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.lA("ytLoggingTransportTokensToJspbCttTargetIds_",Dnx);var na={};var pa=_.xW.ytLoggingGelSequenceIdObj_||{};_.lA("ytLoggingGelSequenceIdObj_",pa);var uod=[];var zV7=new Set,VSt=0,Dgo=0,gYd=0,pWx=[],tSW=[],MSx=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Ncx=function(){};
Ncx.prototype.getUrl=function(W,P){P=P===void 0?!1:P;return W.hasOwnProperty("shareEndpoint")?null:_.Ht8(W,null,P)};
var N8d=function(W,P,x){W={endpoint:P,actions:[]};x=(x.path?x.path[0]:x.target).icon||"";P=x.indexOf(":");P>0&&(x=x.substr(P+1));x&&W.actions.push(x);return W};var UgW=/Command$/,kmG=/Endpoint$/,cFd=new Map;var ZJb,oQi;ZJb=1;_.bs=function(){this.actionRoutingMap=new Map};
_.bs.prototype.triggerAction=function(W){var P=new mC7(W,!1,_.tH.apply(1,arguments));this.handleAction(P);return P.returnValue};
_.bs.prototype.triggerOptionalAction=function(W){var P=new mC7(W,!0,_.tH.apply(1,arguments));this.handleAction(P);return P.returnValue};
_.wl=function(W,P,x){P.forEach(function(I){var O=btR(I);O&&W.triggerOptionalAction(O,I,x,void 0)})};
_.bs.prototype.handleAction=function(W){var P=this.actionRoutingMap.get(W.actionName);P&&oQi(W,P);W.optionalAction||W.returnValue.length!==0||(W=new _.mW("Unhandled action",W.actionName),_.co(W))};
oQi=function(W,P){P.forEach(function(x){var I=null;x?I=x.apply(null,W.args):(x=Error("hd"),x.params=W.actionName,_.hQ(x));W.returnValue.push(I)})};
_.kM=function(W,P,x){x||(x=ZJb++);for(var I=_.n(Object.keys(P)),O=I.next();!O.done;O=I.next()){O=O.value;var B=W.actionRoutingMap.get(O);B||(B=new Map,W.actionRoutingMap.set(O,B));W.registerActionHandler(x,O,P[O],B)}return x};
_.bs.prototype.registerActionHandler=function(W,P,x,I){I.set(W,_.Ho(x))};
_.UA=function(W,P,x){P=_.n(Object.keys(P));for(var I=P.next();!I.done;I=P.next())(I=W.actionRoutingMap.get(I.value))&&I.delete(x)};
_.Id(_.bs);var rFm=function(W,P){var x=_.bs.getInstance();_.AQ(function(){var I={},O=_.kM(x,(I[W]=P,I));_.C4(function(){var B={};_.UA(x,(B[W]="",B),O)})})};var q2o=function(W,P){_.AQ(function(){var x=W.value;x?(x.addEventListener("yt-service-request-sent",P,void 0),_.C4(function(){x?x.removeEventListener("yt-service-request-sent",P,void 0):LTR(W)})):LTR(W)})};BeR=$lG;var oCW=new Set(["For","If","Match","Watch"]),SSl={},umM=(SSl[MS.default]=function(){return WnU},SSl.style=function(){return WnU},SSl),d1i;
for(d1i in umM)FJ.attributes[d1i]=umM[d1i](FJ.attributes[d1i]);var RR=new _.Lb("VISIBILITY_OBSERVER");var jPo={retrieve:function(W){return this.id.\u0275prov.token===W.\u0275prov.token?this.contextValue:this?woS(this,this.id):$Rm}};var shm=function(W,P,x){if(W!==ls)return!1;W=BLd(document.createElement("div"),function(){var I=L4(!1);try{x[0]()}finally{L4(I)}});
W=Array.from(W.childNodes);W.length===1&&(W=W[0]);return W};var vQW=function(W){W=W.clone();flZ(W);tV(W,"dg",null);tV(W,"d","0");b4M(W,null);kBl(W,null);return W},m1z=!0,Vkc=function(W,P,x){var I=x===void 0?{}:x;
x=I.cssRowKey===void 0?void 0:I.cssRowKey;var O=I.combinedSignature===void 0?void 0:I.combinedSignature;var B=I.extraEdges===void 0?void 0:I.extraEdges;I=I.callback===void 0?void 0:I.callback;tV(W,"m",P.join(","));B&&XJw(W,B);x&&(tV(W,"ck",x),O?tV(W,"rs",O):m1z&&(m1z=!1));if(I){if(I!=null&&!T1m.test(I))throw Error("ab`"+I);tV(W,"cb",I)}W=W.toString();_.Bd(W,"/")&&(W=E4A(document.location.href)+W);return _.YH(W)};var pfW=function(W){return tk3(W).then(function(P){return JSON.parse(P.responseText)})},tk3=function(W){var P={},x=P.xmlHttpFactory?P.xmlHttpFactory.createInstance():yoM.createInstance();
return(new _.yE(function(I,O){var B;try{x.open("GET",W,!0)}catch(Z){O(new hZ("Error opening XHR: "+Z.message,W,x))}x.onreadystatechange=function(){if(x.readyState==4){_.xW.clearTimeout(B);var Z;!(Z=YTz(x.status))&&(Z=x.status===0)&&(Z=Gdm(W),Z=!(Z=="http"||Z=="https"||Z==""));Z?I(x):O(new jhd(x.status,W,x))}};
x.onerror=function(){O(new hZ("Network error",W,x))};
if(P.headers)for(var Y in P.headers){var K=P.headers[Y];K!=null&&x.setRequestHeader(Y,K)}P.withCredentials&&(x.withCredentials=P.withCredentials);P.responseType&&(x.responseType=P.responseType);P.mimeType&&x.overrideMimeType(P.mimeType);P.timeoutMs>0&&(B=_.xW.setTimeout(function(){x.onreadystatechange=function(){};
x.abort();O(new Qhc(W,x))},P.timeoutMs));
try{x.send(null)}catch(Z){x.onreadystatechange=function(){},_.xW.clearTimeout(B),O(new hZ("Error sending XHR: "+Z.message,W,x))}})).thenCatch(function(I){I instanceof _.Rq&&x.abort();
throw I;})},hZ=function(W,P,x){_.Wd.call(this,W+", url="+P);
this.url=P;this.xhr=x};
_.J8(hZ,_.Wd);hZ.prototype.name="XhrError";var jhd=function(W,P,x){hZ.call(this,"Request Failed, status="+W,P,x);this.status=W};
_.J8(jhd,hZ);jhd.prototype.name="XhrHttpError";var Qhc=function(W,P){hZ.call(this,"Request timed out",W,P)};
_.J8(Qhc,hZ);Qhc.prototype.name="XhrTimeoutError";x5=x5||{};var Hp=function(){_.vn.call(this)};
_.J8(Hp,_.vn);Hp.prototype.initialize=function(){};var CVm=function(W,P){this.fn_=W;this.handler_=P};
CVm.prototype.execute=function(W){this.fn_&&(this.fn_.call(this.handler_||null,W),this.fn_=this.handler_=null)};
CVm.prototype.abort=function(){this.handler_=this.fn_=null};var e2=function(W,P){_.vn.call(this);this.deps_=W;this.JSC$8840_id_=P;this.onloadCallbacks_=[];this.JSC$8840_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.J8(e2,_.vn);e2.prototype.moduleConstructor_=Hp;e2.prototype.module_=null;e2.prototype.getId=function(){return this.JSC$8840_id_};
e2.prototype.registerCallback=function(W,P){return ACz(this.onloadCallbacks_,W,P)};
var zy3=function(W,P){ACz(W.JSC$8840_onErrorCallbacks_,P)},ACz=function(W,P,x){P=new CVm(P,x);
W.push(P);return P};
e2.prototype.isLoaded=function(){return!!this.module_};
e2.prototype.onLoad=function(W){var P=new this.moduleConstructor_;P.initialize(W());this.module_=P;P=(P=GY3(this.earlyOnloadCallbacks_,W()))||GY3(this.onloadCallbacks_,W());P||(this.JSC$8840_onErrorCallbacks_.length=0);return P};
e2.prototype.onError=function(W){(W=GY3(this.JSC$8840_onErrorCallbacks_,W))&&OU(Error("nd`"+W));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var GY3=function(W,P){for(var x=[],I=0;I<W.length;I++)try{W[I].execute(P)}catch(O){OU(O),x.push(O)}W.length=0;return x.length?x:null};
e2.prototype.disposeInternal=function(){e2.superClass_.disposeInternal.call(this);_.TD(this.module_)};var EQd,hyw,$1W,wfi,D1M,Mkd,bJZ,cCP,aNm;
_.ae=function(W,P,x,I,O){I=I===void 0?!1:I;O=O===void 0?!1:O;var B=B===void 0?!0:B;this.scsReferenceUrl_=iZ(_.y4(W).toString(),B);this.cssRowKey_=P;this.combinedSignature_=x;this.useNegativeLoading_=I;this.requestedModuleMap_={};this.JSC$8843_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(W=Vg(this.scsReferenceUrl_,"excm"))?W.split(","):[];this.shouldScanForCss_=O;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;Lko();this.logger=null;_.cp(this,USl(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
EQd=function(W,P){if(P.href||P.getAttribute("data-href"))if(P=P.href||P.getAttribute("data-href"),iXR(P)&&!iZ(P).urlPrefix_.endsWith("_/js/")){P=USl(iZ(P));P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=x.value,W.loadedCssModuleList_.includes(x)||W.loadedCssModuleList_.push(x)}};
_.ae.prototype.JSC$8845_loadModules=function(W,P,x){var I=x===void 0?{}:x;x=I.extraEdges;var O=I.onError;var B=I.onSuccess;I=I.forceReload;this.JSC$8843_moduleInfoMap_=P;if(!W)throw Error("od");if(this.shouldScanForCss_){P=_.n(document.getElementsByTagName("style"));for(var Y=P.next();!Y.done;Y=P.next())EQd(this,Y.value);P=_.n(document.getElementsByTagName("link"));for(Y=P.next();!Y.done;Y=P.next())EQd(this,Y.value)}gQc(this,D1M(this,W),x,O,B,I)};
var gQc=function(W,P,x,I,O,B){I=I===void 0?function(){}:I;
O=O===void 0?function(){}:O;
B=B===void 0?!1:B;Mkd(W,P,function(Y,K,Z){Z=Z===void 0?K:Z;W.enableFallbackFetch&&B?W.loadWithFetch(Y,K,I,O,Z):W.load(Y,K,I,O,Z,x)},x)||I(-1)};
_.ae.prototype.loadWithFetch=function(){_.y(function(){throw Error("pd");})};
_.ae.prototype.maybeSetAdditionalFields=function(){};
hyw=function(W,P,x){if(W.useNegativeLoading_){var I=W.scsReferenceUrl_;W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,extraEdges:x,requestedModuleIds:$1W(W),requestedCssModuleIds:wfi(W)};var O=W===void 0?{}:W;W=O.requestedModuleIds===void 0?[]:O.requestedModuleIds;x=O.requestedCssModuleIds===void 0?[]:O.requestedCssModuleIds;var B=O.cssRowKey===void 0?void 0:O.cssRowKey;var Y=O.combinedSignature===void 0?void 0:O.combinedSignature;var K=O.extraEdges===void 0?void 0:O.extraEdges;
O=O.callback===void 0?void 0:O.callback;I=vQW(I);tV(I,"d","1");b4M(I,W);kBl(I,x);P=Vkc(I,P,{cssRowKey:B,combinedSignature:Y,extraEdges:K,callback:O})}else I=W.scsReferenceUrl_,W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,requestedModuleIds:$1W(W),requestedCssModuleIds:wfi(W)},K=W===void 0?{}:W,W=K.requestedCssModuleIds===void 0?[]:K.requestedCssModuleIds,x=K.cssRowKey===void 0?void 0:K.cssRowKey,B=K.combinedSignature===void 0?void 0:K.combinedSignature,Y=K.extraEdges===void 0?
void 0:K.extraEdges,K=K.callback===void 0?void 0:K.callback,I=vQW(I),kBl(I,W),P=Vkc(I,P,{cssRowKey:x,combinedSignature:B,extraEdges:Y,callback:K});return P};
_.cp=function(W,P){for(var x=!1,I=[],O=0;O<P.length;++O){var B=P[O];W.requestedModuleMap_[B]||(W.requestedModuleMap_[B]=!0,W.requestedModuleList_.push(B),x=!0,I.push(B))}x&&(W.requestedModuleListSorted_=!1)};
_.bd=function(W,P){for(var x=[],I=0;I<P.length;++I){var O=P[I];W.requestedModuleMap_[O]&&(delete W.requestedModuleMap_[O],_.Ft(W.requestedModuleList_,O),x.push(O))}};
_.ae.prototype.load=function(W,P,x,I,O){O=O===void 0?P:O;_.y4(W);var B=this.useCors_,Y=this.corsMode_,K=this.fetchPriority,Z=_.ZV("SCRIPT");_.c6(Z,W);B&&(Z.crossOrigin=Y);Z.async=!1;K&&Z.setAttribute("fetchpriority",K);_.cp(this,P);_.HJm(this,W,Z,P,x,I,O)};
_.HJm=function(W,P,x,I,O,B,Y){Y=Y===void 0?I:Y;W.lastScript_=x;W.insertPos.insertBefore(x,W.insertPos.firstChild);_.eyZ(x,I,function(){x.parentElement.removeChild(x);W.lastScript_==x&&(W.lastScript_=null);var K=new Set;I.map(function(d){return K.add(d)});
for(var Z in W.JSC$8843_moduleInfoMap_)W.JSC$8843_moduleInfoMap_[Z].isLoaded()&&K.add(Z);Array.from(K);B()},function(K){x.parentElement.removeChild(x);
W.lastScript_==x&&(W.lastScript_=null);_.bd(W,K);W.pendingModuleGraphUpdate_?W.pendingModuleGraphUpdate_.then(function(){O(-1,P)}):O(-1,P)},Y)};
_.eyZ=function(W,P,x,I,O){O=O===void 0?P:O;var B=P.length,Y=function(){B=0;W.onload=null;W.onerror=null;K=function(){}},K=function(){Y();
var d=O.filter(function(v){return!Qk().getModuleInfo(v).isLoaded()});
d.length!==0?I(d,"Response was successful but was missing module(s) "+d+"."):x()},Z=function(){B--;
B==0&&K()};
P.forEach(function(d){d=Qk().getModuleInfo(d);d.isLoaded()?Z():(ACz(d.earlyOnloadCallbacks_,Z),zy3(d,Z))});
W.onload=function(){return K()};
W.onerror=function(){Y();I(P)}};
$1W=function(W){W.requestedModuleListSorted_||(W.requestedModuleListSorted_=!0,W.requestedModuleList_.sort());return W.requestedModuleList_};
wfi=function(W){W=W.loadedCssModuleList_;W.sort();return W};
D1M=function(W,P){return P.filter(function(x){return!W.requestedModuleMap_[x]})};
Mkd=function(W,P,x,I){if(W.pendingModuleGraphUpdate_)return W.pendingModuleGraphUpdate_.then(function(){Mkd(W,P,x,I)}),!0;
if(!W.useNegativeLoading_){var O=[],B=Object.assign({},W.requestedModuleMap_);cCP(W,P,function(v){O.push(v.getId())},I,function(v){return!v.isLoaded()},B);
P=O}for(B=0;B<P.length;){for(var Y=P.length-B,K=B==0?P:P.slice(B,P.length),Z=hyw(W,K,I),d=_.y4(Z).toString();d.length>W.urlMaxLength;)if(Y>1)Y-=Math.ceil((d.length-W.urlMaxLength)/6),Y=Math.max(Y,1),K=P.slice(B,B+Y),Z=hyw(W,K,I),d=_.y4(Z).toString();else return W.useNegativeLoading_?(W.useNegativeLoading_=!1,W.pendingModuleGraphUpdate_=aNm(W).then(function(v){bJZ(W,v,I)}),Mkd(W,P.slice(B),x,I)):!1;
B+=Y;W.useNegativeLoading_?x(Z,K):x(Z,K,B===P.length?P:[])}return!0};
bJZ=function(W,P,x){Qk().setAllModuleInfoString((P||{}).moduleGraph);cCP(W,$1W(W),function(I){_.cp(W,[I.getId()])},x);
W.pendingModuleGraphUpdate_=null};
cCP=function(W,P,x,I,O,B){B=B===void 0?{}:B;var Y=Qk();P=_.n(P);for(var K=P.next();!K.done;K=P.next()){K=K.value;var Z=Y.getModuleInfo(K);if(!(B[K]||O&&!O(Z))){B[K]=!0;var d=Z.deps_||[];if(I){var v=[];I[K]&&(v=Object.keys(I[K]));d=d.concat(v)}cCP(W,d,x,I,O,B);x(Z)}}};
aNm=function(W){W=W.scsReferenceUrl_.clone();flZ(W);tV(W,"dg",null);tV(W,"md","1");return pfW(W.toString())};var Ad8=new Uint8Array(123);var kYZ=[];var U1b=function(){this.JSC$7955_loader_=null};
_.J=U1b.prototype;_.J.setBatchModeEnabled=function(){};
_.J.setAllModuleInfoString=function(){};
_.J.addExtraEdge=function(){throw Error("qd");};
_.J.removeExtraEdge=function(){throw Error("rd");};
_.J.getModuleContext=function(){return null};
_.J.isActive=function(){return!1};
_.J.isUserActive=function(){return!1};
_.J.registerCallback=function(){};var kU=function(W,P,x,I,O){var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.name="ModuleLoadFailure";this.type=W;this.status=P;this.requestedModuleIds=x;this.url=I;this.cause=O;this.message=this.toString()};
_.A(kU,Error);kU.prototype.toString=function(){return XfP(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var XfP=function(W){switch(W.type){case kU.JSC$8855_Type.UNAUTHORIZED:return"Unauthorized";case kU.JSC$8855_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case kU.JSC$8855_Type.TIMEOUT:return"Timed out";case kU.JSC$8855_Type.OLD_CODE_GONE:return"Out of date module id";case kU.JSC$8855_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+W.type}};
x5.ModuleLoadFailure=kU;x5.ModuleLoadFailure.JSC$8855_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Uj=function(){this.moduleIds_=this.JSC$7955_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8858_extraEdges_={};this.JSC$8858_callbackMap_={};this.JSC$8858_currentlyLoadingModule_=this.baseModuleInfo_=new e2([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new fA;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.J8(Uj,U1b);var fNi=function(W,P){_.Wd.call(this,"Error loading "+W+": "+P)};
_.J8(fNi,_.Wd);Uj.prototype.setBatchModeEnabled=function(W){this.batchModeEnabled_=W};
Uj.prototype.setAllModuleInfoString=function(W,P){if(!(this instanceof Uj))this.setAllModuleInfoString(W,P);else if(typeof W==="string"){if(W.startsWith("d$")){W=W.substring(2);for(var x=[],I=0,O=W.indexOf("/"),B=0,Y=!1,K=0;;){var Z=Y?W.substring(B):W.substring(B,O);if(Z.length===0)I++,B="sy"+I.toString(36),Z=[];else{var d=Z.indexOf(":");if(d<0)B=Z,Z=[];else if(d===Z.length-1)B=Z.substring(0,d),Z=Array(x[K-1]);else{B=Z.substring(0,d);Z=Z.substring(d+1).split(",");d=K;for(var v=0;v<Z.length;v++)d-=
Z[v].length===0?1:Number(Z[v]),Z[v]=x[d]}d=0;if(B.length===0)d=1;else if(B.charAt(0)==="+"||B.charAt(0)==="-")d=Number(B);d!==0&&(I+=d,B="sy"+I.toString(36))}x.push(B);N7P(this,B,Z);if(Y)break;B=O+1;O=W.indexOf("/",B);O===-1&&(Y=!0);K++}this.moduleIds_=x}else if(W.startsWith("p$"))lNp(this,W);else{W=W.split("/");x=[];for(I=0;I<W.length;I++){K=W[I].split(":");O=K[0];Y=[];if(K[1])for(Y=K[1].split(","),K=0;K<Y.length;K++)Y[K]=x[parseInt(Y[K],36)];x.push(O);N7P(this,O,Y)}this.moduleIds_=x}P&&P.length?
(_.IW(this.loadingModuleIds_,P),this.lastInitialModuleId_=_.cd(P)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8858_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8858_currentlyLoadingModule_=null,(P=this.baseModuleInfo_.onLoad((0,_.mx)(this.getModuleContext,this)))&&P.length&&T7A(this,new x5.ModuleLoadFailure(x5.ModuleLoadFailure.JSC$8855_Type.INIT_ERROR,void 0,void 0,void 0,P[0])),Xc(this))}};
var lNp=function(W,P){var x=P.substring(2);for(P=0;P<64;P++)Ad8["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(P)]=P;var I={buf:x,pos:0};La(I);var O=La(I),B=La(I)+1;P=Array(O);var Y=Array(O),K=Array(O);B=Array(B);var Z=0,d=0,v=I.pos,m=I.buf.indexOf("|",I.pos);I.pos=m+1;for(m=0;m<O;m++){var t=La(I),C=t&2,z=t&1;t>>>=2;z?(Z+=t>>>1^-(t&1),t="sy"+Z.toString(36)):(z=v,v+=t,t=x.substring(z,v));P[m]=t;C&&(B[d++]=t)}B[d]="";I.pos++;d=O&-2;x=O&1;for(Z=0;Z<d;Z+=2)v=zWA(I),K[Z]=
v&7,K[Z+1]=v>>>3&7;x&&(x=zWA(I),K[d]=x&7);I.pos++;for(d=0;d<O;d++)K[d]===7&&(K[d]=La(I));I.pos++;for(x=d=0;x<O;x++){Z=K[x];v=Z===0?kYZ:Array(Z);Y[x]=v;m=d;for(C=0;C<Z;C++)m-=La(I),v[C]=B[m];B[d]===P[x]&&d++}for(I=0;I<P.length;I++)N7P(W,P[I],Y[I]);W.moduleIds_=P};
_.J=Uj.prototype;_.J.getModuleInfo=function(W){return this.moduleInfoMap[W]};
_.J.addExtraEdge=function(W,P){var x=this.getModuleInfo(W);x&&x.isLoaded()?this.load(P):(this.JSC$8858_extraEdges_[W]||(this.JSC$8858_extraEdges_[W]={}),this.JSC$8858_extraEdges_[W][P]=!0)};
_.J.removeExtraEdge=function(W,P){if(this.JSC$8858_extraEdges_[W]){delete this.JSC$8858_extraEdges_[W][P];for(var x in this.JSC$8858_extraEdges_[W])return;delete this.JSC$8858_extraEdges_[W]}};
_.J.isActive=function(){return this.loadingModuleIds_.length>0};
_.J.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Xc=function(W){var P=W.lastActive_,x=W.isActive();x!=P&&(W.executeCallbacks_(x?"active":"idle"),W.lastActive_=x);P=W.isUserActive();P!=W.userLastActive_&&(W.executeCallbacks_(P?"userActive":"userIdle"),W.userLastActive_=P)},N7P=function(W,P,x){W.moduleInfoMap[P]?(W=W.moduleInfoMap[P].deps_,W!=x&&W.splice.apply(W,[0,
W.length].concat(_.ju(x)))):W.moduleInfoMap[P]=new e2(x,P)},iJW=function(W,P,x){var I=[];
yZ(P,I);P=[];for(var O={},B=0;B<I.length;B++){var Y=I[B],K=W.getModuleInfo(Y);if(!K)throw Error("sd`"+Y);var Z=new fA;O[Y]=Z;K.isLoaded()?Z.callback(null):(rCP(W,Y,K,!!x,Z),W.isModuleLoading(Y)||P.push(Y))}P.length>0&&(W.loadingModuleIds_.length===0?W.loadModules_(P):(W.requestedModuleIdsQueue_.push(P),Xc(W)));return O},rCP=function(W,P,x,I,O){x.registerCallback(O.callback,O);
zy3(x,function(B){O.errback(new fNi(P,B))});
W.isModuleLoading(P)?I&&(Ryw(W,P),Xc(W)):I&&Ryw(W,P)};
Uj.prototype.loadModules_=function(W,P,x){var I=this;P||(this.consecutiveFailures_=0);var O=Fhb(this,W);this.loadingModuleIds_=O;this.requestedLoadingModuleIds_=this.batchModeEnabled_?W:_.Lm(O);Xc(this);if(O.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,O);if(Object.keys(this.JSC$8858_extraEdges_).length>0&&!this.JSC$7955_loader_.supportsExtraEdges)throw Error("td");W=(0,_.mx)(this.JSC$7955_loader_.JSC$8845_loadModules,this.JSC$7955_loader_,_.Lm(O),this.moduleInfoMap,{extraEdges:this.JSC$8858_extraEdges_,
forceReload:!!x,onError:function(B,Y){var K=I.requestedLoadingModuleIds_;B=B!=null?B:void 0;I.consecutiveFailures_++;var Z=_.Lm(O);I.requestedLoadingModuleIds_=K;O.forEach(_.ou(_.Ft,I.requestedModuleIds_),I);B==401?(T7A(I,new x5.ModuleLoadFailure(x5.ModuleLoadFailure.JSC$8855_Type.UNAUTHORIZED,B)),I.requestedModuleIdsQueue_.length=0):B==410?(qSc(I,new x5.ModuleLoadFailure(x5.ModuleLoadFailure.JSC$8855_Type.OLD_CODE_GONE,B)),LhM(I)):I.consecutiveFailures_>=3?(qSc(I,new x5.ModuleLoadFailure(x5.ModuleLoadFailure.JSC$8855_Type.CONSECUTIVE_FAILURES,
B,Z,Y)),LhM(I)):I.loadModules_(I.requestedLoadingModuleIds_,!0,B==8001||!1)},
onTimeout:(0,_.mx)(this.handleLoadTimeout_,this)});(P=Math.pow(this.consecutiveFailures_,2)*5E3)?_.xW.setTimeout(W,P):W()}};
var Fhb=function(W,P){P=P.filter(function(O){return W.moduleInfoMap[O].isLoaded()?(_.xW.setTimeout(function(){return Error("ud`"+O)},0),!1):!0});
for(var x=[],I=0;I<P.length;I++)x=x.concat(W1w(W,P[I]));yZ(x);return!W.batchModeEnabled_&&x.length>1?(P=x.shift(),W.requestedModuleIdsQueue_=x.map(function(O){return[O]}).concat(W.requestedModuleIdsQueue_),[P]):x},W1w=function(W,P){var x=_.jU.createSet(W.requestedModuleIds_),I=[];
x[P]||I.push(P);P=[P];for(var O=0;O<P.length;O++)for(var B=W.getModuleInfo(P[O]).deps_,Y=B.length-1;Y>=0;Y--){var K=B[Y];W.getModuleInfo(K).isLoaded()||x[K]||(I.push(K),P.push(K))}I.reverse();yZ(I);return I};
Uj.prototype.JSC$8853_setLoaded=function(){if(this.JSC$8858_currentlyLoadingModule_){var W=this.JSC$8858_currentlyLoadingModule_.getId(),P=[];if(this.JSC$8858_extraEdges_[W]){for(var x=_.n(Object.keys(this.JSC$8858_extraEdges_[W])),I=x.next();!I.done;I=x.next()){I=I.value;var O=this.getModuleInfo(I);O&&!O.isLoaded()&&(this.removeExtraEdge(W,I),P.push(I))}this.loadMultiple(P)}this.isDisposed()||((P=this.moduleInfoMap[W].onLoad((0,_.mx)(this.getModuleContext,this)))&&P.length&&T7A(this,new x5.ModuleLoadFailure(x5.ModuleLoadFailure.JSC$8855_Type.INIT_ERROR,
void 0,void 0,void 0,P[0])),_.Ft(this.userInitiatedLoadingModuleIds_,W),_.Ft(this.loadingModuleIds_,W),this.loadingModuleIds_.length===0&&LhM(this),this.lastInitialModuleId_&&W==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Xc(this),this.JSC$8858_currentlyLoadingModule_=null)}};
Uj.prototype.isModuleLoading=function(W){if(_.N7(this.loadingModuleIds_,W))return!0;for(var P=0;P<this.requestedModuleIdsQueue_.length;P++)if(_.N7(this.requestedModuleIdsQueue_[P],W))return!0;return!1};
Uj.prototype.load=function(W,P){return iJW(this,[W],P)[W]};
Uj.prototype.loadMultiple=function(W){return iJW(this,W)};
var Ryw=function(W,P){_.N7(W.userInitiatedLoadingModuleIds_,P)||W.userInitiatedLoadingModuleIds_.push(P)};
Uj.prototype.beforeLoadModuleCode=function(W){var P=this;this.JSC$8858_currentlyLoadingModule_&&this.JSC$8858_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8853_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[W]&&POM(this,this.moduleInfoMap[W].deps_||[],function(x){x.module_=new Hp;_.Ft(P.loadingModuleIds_,x.getId())},function(x){return!x.isLoaded()});
this.JSC$8858_currentlyLoadingModule_=this.getModuleInfo(W)};
Uj.prototype.handleLoadTimeout_=function(){qSc(this,new x5.ModuleLoadFailure(x5.ModuleLoadFailure.JSC$8855_Type.TIMEOUT));LhM(this)};
var qSc=function(W,P){W.requestedLoadingModuleIds_.length>1?W.requestedModuleIdsQueue_=W.requestedLoadingModuleIds_.map(function(x){return[x]}).concat(W.requestedModuleIdsQueue_):T7A(W,P)},T7A=function(W,P){var x=W.requestedLoadingModuleIds_;
W.loadingModuleIds_.length=0;for(var I=[],O=0;O<W.requestedModuleIdsQueue_.length;O++){var B=W.requestedModuleIdsQueue_[O].filter(function(Z){var d=W1w(this,Z);return Uz(x,function(v){return _.N7(d,v)})},W);
_.IW(I,B)}for(O=0;O<x.length;O++)_.lC(I,x[O]);for(O=0;O<I.length;O++){for(B=0;B<W.requestedModuleIdsQueue_.length;B++)_.Ft(W.requestedModuleIdsQueue_[B],I[O]);_.Ft(W.userInitiatedLoadingModuleIds_,I[O])}if(O=W.JSC$8858_callbackMap_.error)for(B=0;B<O.length;B++)for(var Y=O[B],K=0;K<I.length;K++)Y("error",I[K],P);for(I=0;I<x.length;I++)if(W.moduleInfoMap[x[I]])W.moduleInfoMap[x[I]].onError(P);W.requestedLoadingModuleIds_.length=0;Xc(W)},LhM=function(W){for(;W.requestedModuleIdsQueue_.length;){var P=
W.requestedModuleIdsQueue_.shift().filter(function(x){return!this.getModuleInfo(x).isLoaded()},W);
if(P.length>0){W.loadModules_(P);return}}Xc(W)};
Uj.prototype.registerCallback=function(W,P){Array.isArray(W)||(W=[W]);for(var x=0;x<W.length;x++){var I=W[x],O=P,B=this.JSC$8858_callbackMap_;B[I]||(B[I]=[]);B[I].push(O)}};
Uj.prototype.executeCallbacks_=function(W){for(var P=this.JSC$8858_callbackMap_[W],x=0;P&&x<P.length;x++)P[x](W)};
var POM=function(W,P,x,I,O){I=I===void 0?function(){return!0}:I;
O=O===void 0?{}:O;P=_.n(P);for(var B=P.next();!B.done;B=P.next()){B=B.value;var Y=W.getModuleInfo(B);!O[B]&&I(Y)&&(O[B]=!0,POM(W,Y.deps_||[],x,I,O),x(Y))}};
Uj.prototype.dispose=function(){_.rJ(_.jU.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8858_callbackMap_={};this.isDisposed_=!0};
Uj.prototype.isDisposed=function(){return this.isDisposed_};
_.ja=function(){return new Uj};var xVw=[5E3,2E4],Itb=function(){this.JSC$7955_loader_=null;this.JSC$8866_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8866_queue_=[];this.JSC$8866_extraEdges_=Object.create(null);this.JSC$8866_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.A(Itb,U1b);_.J=Itb.prototype;_.J.setAllModuleInfoString=function(){this.JSC$8866_currentlyLoadingModule_&&this.JSC$8866_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8853_setLoaded()};
_.J.getModuleInfo=function(W){var P=this.JSC$8866_moduleInfoMap_[W];P||(P=new e2([],W),this.JSC$8866_moduleInfoMap_[W]=P);return P};
_.J.addExtraEdge=function(W,P){this.getModuleInfo(W).isLoaded()?this.load(P):(this.JSC$8866_extraEdges_[W]||(this.JSC$8866_extraEdges_[W]={}),this.JSC$8866_extraEdges_[W][P]=!0)};
_.J.removeExtraEdge=function(W,P){if(this.JSC$8866_extraEdges_[W]){delete this.JSC$8866_extraEdges_[W][P];for(var x in this.JSC$8866_extraEdges_[W])return;delete this.JSC$8866_extraEdges_[W]}};
_.J.isModuleLoading=function(W){return!!this.loadingModules_[W]};
_.J.load=function(W){OfM(this,[W]);return J1m(this,W)};
_.J.loadMultiple=function(W){var P=this,x=Object.create(null),I=[];W.forEach(function(O){x[O]||(x[O]=J1m(P,O),I.push(O))});
OfM(this,I);return x};
_.J.beforeLoadModuleCode=function(W){var P;((P=this.JSC$8866_currentlyLoadingModule_)==null?void 0:P.getId())==="synthetic_module_overhead"&&this.JSC$8853_setLoaded();var x,I;BUk(this,(I=(x=this.JSC$8866_moduleInfoMap_[W])==null?void 0:x.deps_)!=null?I:[],function(O){O.module_=new Hp},function(O){return!O.isLoaded()});
this.JSC$8866_currentlyLoadingModule_=this.getModuleInfo(W)};
_.J.JSC$8853_setLoaded=function(){if(this.JSC$8866_currentlyLoadingModule_){var W=this.JSC$8866_currentlyLoadingModule_.getId(),P=[];if(this.JSC$8866_extraEdges_[W]){for(var x=_.n(Object.keys(this.JSC$8866_extraEdges_[W])),I=x.next();!I.done;I=x.next())I=I.value,this.getModuleInfo(I).isLoaded()||(this.removeExtraEdge(W,I),P.push(I));this.loadMultiple(P)}this.JSC$8866_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8866_currentlyLoadingModule_=null;(!this.isModuleLoading(W)&&/^sy[0-9a-z]{0,4}$/.test(W)||W==="synthetic_module_overhead")&&delete this.JSC$8866_moduleInfoMap_[W];this.unsetModulesAsLoading(W)}};
_.J.setModulesAsLoading=function(){var W=this;_.tH.apply(0,arguments).forEach(function(P){W.loadingModules_[P]=!0})};
_.J.unsetModulesAsLoading=function(){var W=this;_.tH.apply(0,arguments).forEach(function(P){delete W.loadingModules_[P]})};
var J1m=function(W,P){return new _.yE(function(x,I){var O=W.getModuleInfo(P);O.isLoaded()?x(null):(O.registerCallback(function(){x(null)}),zy3(O,function(B){var Y="Error loading "+P+": "+B;
B instanceof x5.ModuleLoadFailure&&B.url&&(Y=Y+", requested url: "+B.url.toString());I(Error(Y))}))})},OfM=function(W,P){P=P.filter(function(x){return!W.isModuleLoading(x)&&!W.getModuleInfo(x).isLoaded()});
P.length>0&&(W.setModulesAsLoading.apply(W,_.ju(P)),W.JSC$8866_queue_.push(P),naZ(W))},naZ=function(W){for(var P={};W.activeLoads_<Infinity&&W.JSC$8866_queue_.length>0;P={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})P.ids$jscomp$36=W.JSC$8866_queue_.shift().filter(function(x){return!W.getModuleInfo(x).isLoaded()}),P.ids$jscomp$36.length>0&&(W.activeLoads_++,P.finishLoad=function(x){return function(){W.activeLoads_--;
naZ(W);x.finishLoad=function(){}}}(P),_.Qq(P.ids$jscomp$36.map(function(x){return J1m(W,x)})).then(function(x){return function(){(0,x.finishLoad)()}}(P)),P.attempt$jscomp$6=0,P.load$jscomp$1=function(x){return function(){if(Object.keys(W.JSC$8866_extraEdges_).length>0&&!W.JSC$7955_loader_.supportsExtraEdges)throw Error("td");
W.JSC$7955_loader_.JSC$8845_loadModules(x.ids$jscomp$36,W.JSC$8866_moduleInfoMap_,{extraEdges:W.JSC$8866_extraEdges_,onError:function(I,O){var B=xVw[x.attempt$jscomp$6++];B!==void 0?setTimeout(function(){(0,x.load$jscomp$1)()},B):(W.unsetModulesAsLoading.apply(W,_.ju(x.ids$jscomp$36)),(0,x.finishLoad)(),x.ids$jscomp$36.forEach(function(Y){Y=W.getModuleInfo(Y);
if(!Y.isLoaded())Y.onError(new x5.ModuleLoadFailure(x5.ModuleLoadFailure.JSC$8855_Type.CONSECUTIVE_FAILURES,I,x.ids$jscomp$36,O))}))}})}}(P),(0,P.load$jscomp$1)())},BUk=function(W,P,x,I,O){I=I===void 0?function(){return!0}:I;
O=O===void 0?{}:O;P=_.n(P);for(var B=P.next();!B.done;B=P.next()){B=B.value;var Y=W.getModuleInfo(B);!O[B]&&I(Y)&&(O[B]=!0,BUk(W,Y.deps_||[],x,I,O),x(Y))}};var Y_k=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var ECC=Symbol("wd");window.JSCompiler_renameProperty=function(W){return W};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var y1l=!Y_k||HTMLElement.es5Shimmed||_.xW.Reflect===void 0||_.xW.customElements===void 0||_.xW.customElements.polyfillWrapFlushCallback||!1,K1z,Fqx=function(){var W=HTMLElement;if(y1l)return W;if(K1z!==void 0)return K1z;var P=_.xW.Reflect,x=function(){return P.construct(W,[],this.constructor)};
x.prototype=W.prototype;x.prototype.constructor=x;x.es5Shimmed=!0;Object.setPrototypeOf(x,W);return K1z=x},Zfc=!1;y1l||Zfc||(Zfc=!0,_.xW.HTMLElement=Fqx());/*

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 wFd=/(url\()([^)]*)(\))/g,MyC=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,$xt,Wf;var M1=!window.ShadyDOM||!window.ShadyDOM.inUse,oaM=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),S_m=!window.customElements.polyfillWrapFlushCallback,uuA;if(uuA=M1&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var dVP=new CSSStyleSheet;dVP.replaceSync("");var sik=document.createElement("div");sik.attachShadow({mode:"open"});sik.shadowRoot.adoptedStyleSheets=[dVP];uuA=sik.shadowRoot.adoptedStyleSheets[0]===dVP}catch(W){uuA=!1}
var vai=uuA,mVP=window.Polymer&&window.Polymer.rootPath||HEG(document.baseURI||window.location.href),uV=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,NpG=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Hf=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Vnb=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,DN=window.Polymer&&window.Polymer.legacyOptimizations||!1,hC=window.Polymer&&window.Polymer.legacyWarnings||!1,tnk=window.Polymer&&window.Polymer.syncInitialRender||
!1,sS=window.Polymer&&window.Polymer.legacyUndefined||!1,pVd=window.Polymer&&window.Polymer.orderedComputed||!1,f0=window.Polymer&&window.Polymer.removeNestedTemplates||!1,N_=window.Polymer&&window.Polymer.fastDomIf||!1,ld=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,jiz=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Qii=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var TX={},COZ={},mh=function(){return HTMLElement.apply(this,arguments)||this};
_.A(mh,HTMLElement);mh.import=function(W,P){return W?(W=TX[W]||COZ[W.toLowerCase()])&&P?W.querySelector(P):W:null};
mh.prototype.attributeChangedCallback=function(W,P,x){P!==x&&this.register()};
mh.prototype.register=function(W){if(W=W||this.id){if(Hf&&(TX[W]||COZ[W.toLowerCase()])!==void 0)throw TX[W]=COZ[W.toLowerCase()]=null,Error("xd`"+W);this.id=W;TX[W]=COZ[W.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.N1.Object.defineProperties(mh.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var W=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;W=_.Pf(this.getAttribute("assetpath")||"",W.baseURI);this.__assetpath=HEG(W)}return this.__assetpath}}});
_.N1.Object.defineProperties(mh,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
mh["import"]=mh.import;mh.prototype.modules=TX;customElements.define("dom-module",mh);var A13=0,cdC=0,xQ=[],z3M=0,eWU=!1,G7z=document.createTextNode(""),EaM,ES;(new window.MutationObserver(ahW)).observe(G7z,{characterData:!0});_.rl={after:function(W){return{run:function(P){return window.setTimeout(P,W)},
cancel:function(P){window.clearTimeout(P)}}},
run:function(W,P){return window.setTimeout(W,P)},
cancel:function(W){window.clearTimeout(W)}};
_.dc={run:function(W){return window.requestAnimationFrame(W)},
cancel:function(W){window.cancelAnimationFrame(W)}};
EaM={run:function(W){return window.requestIdleCallback?window.requestIdleCallback(W):window.setTimeout(W,16)},
cancel:function(W){window.cancelIdleCallback?window.cancelIdleCallback(W):window.clearTimeout(W)}};
ES={run:function(W){eWU||(eWU=!0,G7z.textContent=z3M++);xQ.push(W);return A13++},
cancel:function(W){var P=W-cdC;if(P>=0){if(!xQ[P])throw Error("yd`"+W);xQ[P]=null}}};var gai=0,id=function(W){var P=W.__mixinApplications;P||(P=new WeakMap,W.__mixinApplications=P);var x=gai++;return function(I){var O=I.__mixinSet;if(O&&O[x])return I;var B=P,Y=B.get(I);Y||(Y=W(I),B.set(I,Y),I=Object.create(Y.__mixinSet||O||null),I[x]=!0,Y.__mixinSet=I);return Y}};_.Sk=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(W){return ShadyDOM.patch(W)}:function(W){return W};var DVb=id(function(W){var P=function(){var x=W.call(this)||this;x.__dataEnabled=!1;x.__dataReady=!1;x.__dataInvalid=!1;x.__data={};x.__dataPending=null;x.__dataOld=null;x.__dataInstanceProps=null;x.__dataCounter=0;x.__serializing=!1;x._initializeProperties();return x};
_.A(P,W);P.createProperties=function(x){var I=this.prototype,O;for(O in x)O in I||I._createPropertyAccessor(O)};
P.attributeNameForProperty=function(x){return x.toLowerCase()};
P.typeForProperty=function(){};
P.prototype._createPropertyAccessor=function(x,I){this._addPropertyToAttributeMap(x);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[x]||(this.__dataHasAccessor[x]=!0,this._definePropertyAccessor(x,I))};
P.prototype._addPropertyToAttributeMap=function(x){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var I=this.__dataAttributes[x];I||(I=this.constructor.attributeNameForProperty(x),this.__dataAttributes[I]=x);return I};
P.prototype._definePropertyAccessor=function(x,I){Object.defineProperty(this,x,{get:function(){return this.__data[x]},
set:I?function(){}:function(O){this._setPendingProperty(x,O,!0)&&this._invalidateProperties()}})};
P.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
P.prototype._initializeProperties=function(){for(var x in this.__dataHasAccessor)this.hasOwnProperty(x)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[x]=this[x],delete this[x])};
P.prototype._initializeInstanceProperties=function(x){Object.assign(this,x)};
P.prototype._setProperty=function(x,I){this._setPendingProperty(x,I)&&this._invalidateProperties()};
P.prototype._getProperty=function(x){return this.__data[x]};
P.prototype._setPendingProperty=function(x,I){var O=this.__data[x],B=this._shouldPropertyChange(x,I,O);B&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||x in this.__dataOld||(this.__dataOld[x]=O),this.__data[x]=I,this.__dataPending[x]=I);return B};
P.prototype._isPropertyPending=function(x){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(x))};
P.prototype._invalidateProperties=function(){var x=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ES.run(function(){x.__dataInvalid&&(x.__dataInvalid=!1,x._flushProperties())}))};
P.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
P.prototype._flushProperties=function(){this.__dataCounter++;var x=this.__data,I=this.__dataPending,O=this.__dataOld;this._shouldPropertiesChange(x,I,O)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(x,I,O));this.__dataCounter--};
P.prototype._shouldPropertiesChange=function(x,I){return!!I};
P.prototype._propertiesChanged=function(){};
P.prototype._shouldPropertyChange=function(x,I,O){return O!==I&&(O===O||I===I)};
P.prototype.attributeChangedCallback=function(x,I,O,B){I!==O&&this._attributeToProperty(x,O);W.prototype.attributeChangedCallback&&W.prototype.attributeChangedCallback.call(this,x,I,O,B)};
P.prototype._attributeToProperty=function(x,I,O){if(!this.__serializing){var B=this.__dataAttributes;x=B&&B[x]||x;this[x]=this._deserializeValue(I,O||this.constructor.typeForProperty(x))}};
P.prototype._propertyToAttribute=function(x,I,O){this.__serializing=!0;O=arguments.length<3?this[x]:O;this._valueToNodeAttribute(this,O,I||this.constructor.attributeNameForProperty(x));this.__serializing=!1};
P.prototype._valueToNodeAttribute=function(x,I,O){I=this._serializeValue(I);if(O==="class"||O==="name"||O==="slot")x=(0,_.Sk)(x);I===void 0?x.removeAttribute(O):x.setAttribute(O,I===""&&window.trustedTypes?window.trustedTypes.emptyScript:I)};
P.prototype._serializeValue=function(x){switch(typeof x){case "boolean":return x?"":void 0;default:return x!=null?x.toString():void 0}};
P.prototype._deserializeValue=function(x,I){switch(I){case Boolean:return x!==null;case Number:return Number(x);default:return x}};
return P});var Mnl=0,bEA=[];var $Vd=id(function(W){function P(B){B=Object.getPrototypeOf(B);return B.prototype instanceof O?B:null}
function x(B){if(!B.hasOwnProperty("__ownProperties")){var Y=null;if(B.hasOwnProperty("properties")){var K=B.properties;if(K){Y={};for(var Z in K){var d=K[Z];Y[Z]=typeof d==="function"?{type:d}:d}}}B.__ownProperties=Y}return B.__ownProperties}
var I=DVb(W),O=function(){return I.apply(this,arguments)||this};
_.A(O,I);O.finalize=function(){if(!this.hasOwnProperty("__finalized")){var B=P(this);B&&B.finalize();this.__finalized=!0;this._finalizeClass()}};
O._finalizeClass=function(){var B=x(this);B&&this.createProperties(B)};
O.typeForProperty=function(B){return(B=this._properties[B])&&B.type};
O.prototype._initializeProperties=function(){Mnl++;this.constructor.finalize();I.prototype._initializeProperties.call(this)};
O.prototype.connectedCallback=function(){I.prototype.connectedCallback&&I.prototype.connectedCallback.call(this);this._enableProperties()};
O.prototype.disconnectedCallback=function(){I.prototype.disconnectedCallback&&I.prototype.disconnectedCallback.call(this)};
_.N1.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var B=this;if(!this.hasOwnProperty("__observedAttributes")){k4W(this.prototype);var Y=this._properties;this.__observedAttributes=Y?Object.keys(Y).map(function(K){return B.prototype._addPropertyToAttributeMap(K)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var B=P(this);this.__properties=Object.assign({},B&&B._properties,x(this))}return this.__properties}}});
return O});var UxG={},XFm=/-[a-z]/g,fhd=/([A-Z])/g;for(var wVm={},h3Z=HTMLElement.prototype;h3Z;){for(var Hfp=Object.getOwnPropertyNames(h3Z),e3k=0;e3k<Hfp.length;e3k++)wVm[Hfp[e3k]]=!0;h3Z=Object.getPrototypeOf(h3Z)}var c1W=window.trustedTypes?function(W){return trustedTypes.isHTML(W)||trustedTypes.isScript(W)||trustedTypes.isScriptURL(W)}:function(){return!1},atM=id(function(W){var P=DVb(W);
W=function(){return P.apply(this,arguments)||this};
_.A(W,P);W.createPropertiesForAttributes=function(){for(var x=this.observedAttributes,I=0;I<x.length;I++)this.prototype._createPropertyAccessor(Ih(x[I]))};
W.attributeNameForProperty=function(x){return OS(x)};
W.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);P.prototype._initializeProperties.call(this)};
W.prototype._initializeProtoProperties=function(x){for(var I in x)this._setProperty(I,x[I])};
W.prototype._ensureAttribute=function(x,I){this.hasAttribute(x)||this._valueToNodeAttribute(this,I,x)};
W.prototype._serializeValue=function(x){switch(typeof x){case "object":if(x instanceof Date)return x.toString();if(x){if(c1W(x))return x;try{return JSON.stringify(x)}catch(I){return""}}default:return P.prototype._serializeValue.call(this,x)}};
W.prototype._deserializeValue=function(x,I){switch(I){case Object:try{var O=JSON.parse(x)}catch(B){O=x}break;case Array:try{O=JSON.parse(x)}catch(B){O=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+x)}break;case Date:O=isNaN(x)?String(x):Number(x);O=new Date(O);break;default:O=P.prototype._deserializeValue.call(this,x,I)}return O};
W.prototype._definePropertyAccessor=function(x,I){if(!wVm[x]){var O=this[x];O!==void 0&&(this.__data?this._setPendingProperty(x,O):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[x]=O))}P.prototype._definePropertyAccessor.call(this,x,I)};
W.prototype._hasAccessor=function(x){return this.__dataHasAccessor&&this.__dataHasAccessor[x]};
W.prototype._isPropertyPending=function(x){return!!(this.__dataPending&&x in this.__dataPending)};
return W});var bfp={"dom-if":!0,"dom-repeat":!0},k7k=!1,UVW=!1,XV3=function(){var W=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(P){return P}});
return function(P,x,I){x=x.getAttribute(I);W&&I.startsWith("on-")?P.setAttribute(I,W.createScript(x,I)):P.setAttribute(I,x)}}(),ftm=id(function(W){var P=function(){return W.apply(this,arguments)||this};
_.A(P,W);P._parseTemplate=function(x,I){if(!x._templateInfo){var O=x._templateInfo={};O.nodeInfoList=[];O.nestedTemplate=!!I;O.stripWhiteSpace=I&&I.stripWhiteSpace||x.hasAttribute&&x.hasAttribute("strip-whitespace");this._parseTemplateContent(x,O,{parent:null})}return x._templateInfo};
P._parseTemplateContent=function(x,I,O){return this._parseTemplateNode(x.content,I,O)};
P._parseTemplateNode=function(x,I,O){var B=!1;x.localName!="template"||x.hasAttribute("preserve-content")?x.localName==="slot"&&(I.hasInsertionPoint=!0):B=this._parseTemplateNestedTemplate(x,I,O)||B;if(!k7k){k7k=!0;var Y=document.createElement("textarea");Y.placeholder="a";UVW=Y.placeholder===Y.textContent}UVW&&x.localName==="textarea"&&x.placeholder&&x.placeholder===x.textContent&&(x.textContent=null);x.firstChild&&this._parseTemplateChildNodes(x,I,O);x.hasAttributes&&x.hasAttributes()&&(B=this._parseTemplateNodeAttributes(x,
I,O)||B);return B||O.noted};
P._parseTemplateChildNodes=function(x,I,O){if(x.localName!=="script"&&x.localName!=="style")for(var B=x.firstChild,Y=0,K;B;B=K){if(B.localName=="template"){var Z=B.getAttribute("is");if(Z&&bfp[Z])for(K=B,K.removeAttribute("is"),B=K.ownerDocument.createElement(Z),K.parentNode.replaceChild(B,K),B.appendChild(K);K.attributes.length;)Z=K.attributes[0].name,XV3(B,K,Z),K.removeAttribute(Z)}K=B.nextSibling;if(B.nodeType===Node.TEXT_NODE){for(Z=K;Z&&Z.nodeType===Node.TEXT_NODE;)B.textContent+=Z.textContent,
K=Z.nextSibling,x.removeChild(Z),Z=K;if(I.stripWhiteSpace&&!B.textContent.trim()){x.removeChild(B);continue}}Z={parentIndex:Y,parentInfo:O};this._parseTemplateNode(B,I,Z)&&(Z.infoIndex=I.nodeInfoList.push(Z)-1);B.parentNode&&Y++}};
P._parseTemplateNestedTemplate=function(x,I,O){I=this._parseTemplate(x,I);(I.content=x.content.ownerDocument.createDocumentFragment()).appendChild(x.content);O.templateInfo=I;return!0};
P._parseTemplateNodeAttributes=function(x,I,O){for(var B=!1,Y=Array.from(x.attributes),K=Y.length-1,Z;Z=Y[K];K--)B=this._parseTemplateNodeAttribute(x,I,O,Z.name,Z.value)||B;return B};
P._parseTemplateNodeAttribute=function(x,I,O,B,Y){return B.slice(0,3)==="on-"?(x.removeAttribute(B),O.events=O.events||[],O.events.push({name:B.slice(3),value:Y}),!0):B==="id"?(O.id=Y,!0):!1};
P._contentForTemplate=function(x){var I=x._templateInfo;return I&&I.content||x.content};
P.prototype._stampTemplate=function(x,I){x&&!x.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(x);I=I||this.constructor._parseTemplate(x);var O=I.nodeInfoList;x=document.importNode(I.content||x.content,!0);x.__noInsertionPoint=!I.hasInsertionPoint;var B=x.nodeList=Array(O.length);x.$={};for(var Y=0,K=O.length,Z=void 0;Y<K&&(Z=O[Y]);Y++){var d=B[Y]=NLm(x,Z);Z.id&&(x.$[Z.id]=d);var v=d,m=Z,t=I;m.templateInfo&&(v._templateInfo=m.templateInfo,v._parentTemplateInfo=
t);if(Z.events&&Z.events.length)for(v=0,m=Z.events,t=void 0;v<m.length&&(t=m[v]);v++)this._addMethodEventListenerToNode(d,t.name,t.value,this)}return x};
P.prototype._addMethodEventListenerToNode=function(x,I,O,B){O=lhS(B||x,O);this._addEventListenerToNode(x,I,O);return O};
P.prototype._addEventListenerToNode=function(x,I,O){x.addEventListener(I,O)};
P.prototype._removeEventListenerFromNode=function(x,I,O){x.removeEventListener(I,O)};
return P});var ZN=0,d7=[],NUz={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ltA=/[A-Z]/,TUz=function(W,P,x,I,O){var B=O?Bf(W):W;if(P=P[B])for(B=0;B<P.length;B++){var Y=P[B];if(Y.info.lastRun!==ZN&&(!O||q4S(W,Y.trigger))){Y.info.lastRun=ZN;Y=Y.info;for(var K=x,Z=I,d=0,v=K.length-1,m=-1;d<=v;){var t=d+v>>1,C=Z.get(K[t].methodInfo)-Z.get(Y.methodInfo);if(C<0)d=t+1;else if(C>0)v=t-1;else{m=t;break}}m<
0&&(m=v+1);K.splice(m,0,Y)}}},Sax=[],r1k=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"),Fc=id(function(W){var P=ftm(atM(W));
W=function(){var x=P.call(this)||this;x.__isPropertyEffectsClient=!0;return x};
_.A(W,P);W.prototype._initializeProperties=function(){P.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};
W.prototype._registerHost=function(){if(Re.length){var x=Re[Re.length-1];x._enqueueClient(this);this.__dataHost=x}};
W.prototype._initializeProtoProperties=function(x){this.__data=Object.create(x);this.__dataPending=Object.create(x);this.__dataOld={}};
W.prototype._initializeInstanceProperties=function(x){var I=this.__readOnly,O;for(O in x)I&&I[O]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[O]=this.__dataPending[O]=x[O])};
W.prototype._addPropertyEffect=function(x,I,O){this._createPropertyAccessor(x,I=="__readOnly");var B=FQR(this,I,!0)[x];B||(B=this[I][x]=[]);B.push(O)};
W.prototype._removePropertyEffect=function(x,I,O){x=FQR(this,I,!0)[x];O=x.indexOf(O);O>=0&&x.splice(O,1)};
W.prototype._hasPropertyEffect=function(x,I){I=this[I];return!(!I||!I[x])};
W.prototype._hasReadOnlyEffect=function(x){return this._hasPropertyEffect(x,"__readOnly")};
W.prototype._hasNotifyEffect=function(x){return this._hasPropertyEffect(x,"__notifyEffects")};
W.prototype._hasReflectEffect=function(x){return this._hasPropertyEffect(x,"__reflectEffects")};
W.prototype._hasComputedEffect=function(x){return this._hasPropertyEffect(x,"__computeEffects")};
W.prototype._setPendingPropertyOrPath=function(x,I,O,B){if(B||Bf(Array.isArray(x)?x[0]:x)!==x){if(!B&&(B=KJ(this,x),x=RWS(this,x,I),!x||!P.prototype._shouldPropertyChange.call(this,x,I,B)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(x,I,O)){if(O=this.__dataLinkedPaths)for(var Y in O)B=O[Y],nJ(Y,x)?(B=YQ(Y,B,x),this._setPendingPropertyOrPath(B,I,!0,!0)):nJ(B,x)&&(B=YQ(B,Y,x),this._setPendingPropertyOrPath(B,I,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[x])return this._setPendingProperty(x,
I,O);this[x]=I}return!1};
W.prototype._setUnmanagedPropertyToNode=function(x,I,O){if(O!==x[I]||typeof O=="object")I==="className"&&(x=(0,_.Sk)(x)),x[I]=O};
W.prototype._setPendingProperty=function(x,I,O){var B=this.__dataHasPaths&&JC(x);if(this._shouldPropertyChange(x,I,(B?this.__dataTemp:this.__data)[x])){this.__dataPending||(this.__dataPending={},this.__dataOld={});x in this.__dataOld||(this.__dataOld[x]=this.__data[x]);B?this.__dataTemp[x]=I:this.__data[x]=I;this.__dataPending[x]=I;if(B||this.__notifyEffects&&this.__notifyEffects[x])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[x]=O;return!0}return!1};
W.prototype._setProperty=function(x,I){this._setPendingProperty(x,I,!0)&&this._invalidateProperties()};
W.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
W.prototype._enqueueClient=function(x){this.__dataPendingClients=this.__dataPendingClients||[];x!==this&&this.__dataPendingClients.push(x)};
W.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
W.prototype.__enableOrFlushClients=function(){var x=this.__dataPendingClients;if(x){this.__dataPendingClients=null;for(var I=0;I<x.length;I++){var O=x[I];O.__dataEnabled?O.__dataPending&&O._flushProperties():O._enableProperties()}}};
W.prototype._readyClients=function(){this.__enableOrFlushClients()};
W.prototype.setProperties=function(x,I){for(var O in x)!I&&this.__readOnly&&this.__readOnly[O]||this._setPendingPropertyOrPath(O,x[O],!0);this._invalidateProperties()};
W.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
W.prototype._propertiesChanged=function(x,I,O){x=this.__dataHasPaths;this.__dataHasPaths=!1;var B;if(B=this.__computeEffects)if(pVd){ZN++;var Y=OCx(this),K=[],Z;for(Z in I)TUz(Z,B,K,Y,x);for(;Z=K.shift();)Bpm(this,"",I,O,Z)&&TUz(Z.methodInfo,B,K,Y,x);Object.assign(O,this.__dataOld);Object.assign(I,this.__dataPending);this.__dataPending=null}else for(Y=I;oh(this,B,Y,O,x);)Object.assign(O,this.__dataOld),Object.assign(I,this.__dataPending),Y=this.__dataPending,this.__dataPending=null;B=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(I,O,x);this._flushClients();oh(this,this.__reflectEffects,I,O,x);oh(this,this.__observeEffects,I,O,x);if(B){Y=this.__notifyEffects;K=ZN++;for(var d in B)if(B[d]){if(Z=Y){var v=Y;Z=K;var m=d,t=I,C=O,z=x,D=!1,w=z?Bf(m):m;if(v=v[w]){w=0;for(var a=v.length,k=void 0;w<a&&(k=v[w]);w++)k.info&&k.info.lastRun===Z||z&&!q4S(m,k.trigger)||(k.info&&(k.info.lastRun=Z),k.fn(this,m,t,C,k.info,z,void 0),D=!0)}Z=D}if(Z)var T=!0;else{if(Z=x)Z=d,m=I,t=Bf(Z),t!==
Z?(t=OS(t)+"-changed",WGm(this,t,m[Z],Z),Z=!0):Z=!1;Z&&(T=!0)}}var N;T&&(N=this.__dataHost)&&N._invalidateProperties&&N._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
W.prototype._propagatePropertyChanges=function(x,I,O){this.__propagateEffects&&oh(this,this.__propagateEffects,x,I,O);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,x,I,O)};
W.prototype._runEffectsForTemplate=function(x,I,O,B){var Y=this,K=function(Z,d){oh(Y,x.propertyEffects,Z,O,d,x.nodeList);for(var v=x.firstChild;v;v=v.nextSibling)Y._runEffectsForTemplate(v,Z,O,d)};
x.runEffects?x.runEffects(K,I,B):K(I,B)};
W.prototype.linkPaths=function(x,I){x=yD(x);I=yD(I);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[x]=I};
W.prototype.unlinkPaths=function(x){x=yD(x);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[x]};
W.prototype.notifySplices=function(x,I){var O={path:""};x=KJ(this,x,O);vsG(this,x,O.path,I)};
W.prototype.get=function(x,I){return KJ(I||this,x)};
W.prototype.set=function(x,I,O){O?RWS(O,x,I):this.__readOnly&&this.__readOnly[x]||this._setPendingPropertyOrPath(x,I,!0)&&this._invalidateProperties()};
W.prototype.push=function(x){var I=_.tH.apply(1,arguments),O={path:""},B=KJ(this,x,O),Y=B.length,K=B.push.apply(B,_.ju(I));I.length&&vf(this,B,O.path,Y,I.length,[]);return K};
W.prototype.pop=function(x){var I={path:""};x=KJ(this,x,I);var O=!!x.length,B=x.pop();O&&vf(this,x,I.path,x.length,0,[B]);return B};
W.prototype.splice=function(x,I,O){var B=_.tH.apply(3,arguments),Y={path:""},K=KJ(this,x,Y);I<0?I=K.length-Math.floor(-I):I&&(I=Math.floor(I));var Z=arguments.length===2?K.splice(I):K.splice.apply(K,[I,O].concat(_.ju(B)));(B.length||Z.length)&&vf(this,K,Y.path,I,B.length,Z);return Z};
W.prototype.shift=function(x){var I={path:""};x=KJ(this,x,I);var O=!!x.length,B=x.shift();O&&vf(this,x,I.path,0,0,[B]);return B};
W.prototype.unshift=function(x){var I=_.tH.apply(1,arguments),O={path:""},B=KJ(this,x,O),Y=B.unshift.apply(B,_.ju(I));I.length&&vf(this,B,O.path,0,I.length,[]);return Y};
W.prototype.notifyPath=function(x,I){if(arguments.length==1){var O={path:""};I=KJ(this,x,O);O=O.path}else O=Array.isArray(x)?yD(x):x;this._setPendingPropertyOrPath(O,I,!0,!0)&&this._invalidateProperties()};
W.prototype._createReadOnlyProperty=function(x,I){this._addPropertyEffect(x,"__readOnly");I&&(this["_set"+(x[0].toUpperCase()+x.substring(1))]=function(O){this._setProperty(x,O)})};
W.prototype._createPropertyObserver=function(x,I,O){var B={property:x,method:I,dynamicFn:!!O};this._addPropertyEffect(x,"__observeEffects",{fn:LQW,info:B,trigger:{name:x}});O&&this._addPropertyEffect(I,"__observeEffects",{fn:LQW,info:B,trigger:{name:I}})};
W.prototype._createMethodObserver=function(x,I){var O=dIC(x);if(!O)throw Error("zd`"+x);ZCU(this,O,"__observeEffects",Jp8,null,I)};
W.prototype._createNotifyingProperty=function(x){this._addPropertyEffect(x,"__notifyEffects",{fn:Prm,info:{eventName:OS(x)+"-changed",property:x}})};
W.prototype._createReflectedProperty=function(x){var I=this.constructor.attributeNameForProperty(x);I[0]==="-"?console.warn("Property "+x+" cannot be reflected to attribute "+I+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(x,"__reflectEffects",{fn:xId,info:{attrName:I}})};
W.prototype._createComputedProperty=function(x,I,O){var B=dIC(I);if(!B)throw Error("Ad`"+I);I=ZCU(this,B,"__computeEffects",Bpm,x,O);FQR(this,"__computeInfo")[x]=I};
W.prototype._marshalArgs=function(x,I,O){for(var B=this.__data,Y=[],K=0,Z=x.length;K<Z;K++){var d=x[K],v=d.name,m=d.structured,t=d.wildcard,C=d.value;d.literal||(t?(d=nJ(v,I),m=sSU(B,O,d?I:v),C={path:d?I:v,value:m,base:d?KJ(B,v):m}):C=m?sSU(B,O,v):B[v]);if(sS&&!this._overrideLegacyUndefined&&C===void 0&&x.length>1)return d7;Y[K]=C}return Y};
W.addPropertyEffect=function(x,I,O){this.prototype._addPropertyEffect(x,I,O)};
W.createPropertyObserver=function(x,I,O){this.prototype._createPropertyObserver(x,I,O)};
W.createMethodObserver=function(x,I){this.prototype._createMethodObserver(x,I)};
W.createNotifyingProperty=function(x){this.prototype._createNotifyingProperty(x)};
W.createReadOnlyProperty=function(x,I){this.prototype._createReadOnlyProperty(x,I)};
W.createReflectedProperty=function(x){this.prototype._createReflectedProperty(x)};
W.createComputedProperty=function(x,I,O){this.prototype._createComputedProperty(x,I,O)};
W.bindTemplate=function(x){return this.prototype._bindTemplate(x)};
W.prototype._bindTemplate=function(x,I){var O=this.constructor._parseTemplate(x),B=this.__preBoundTemplateInfo==O;if(!B)for(var Y in O.propertyEffects)this._createPropertyAccessor(Y);I?(O=Object.create(O),O.wasPreBound=B,this.__templateInfo?(x=x._parentTemplateInfo||this.__templateInfo,I=x.lastChild,O.parent=x,x.lastChild=O,(O.previousSibling=I)?I.nextSibling=O:x.firstChild=O):this.__templateInfo=O):this.__preBoundTemplateInfo=O;return O};
W._addTemplatePropertyEffect=function(x,I,O){(x.hostProps=x.hostProps||{})[I]=!0;x=x.propertyEffects=x.propertyEffects||{};(x[I]=x[I]||[]).push(O)};
W.prototype._stampTemplate=function(x,I){I=I||this._bindTemplate(x,!0);Re.push(this);x=P.prototype._stampTemplate.call(this,x,I);Re.pop();I.nodeList=x.nodeList;if(!I.wasPreBound)for(var O=I.childNodes=[],B=x.firstChild;B;B=B.nextSibling)O.push(B);x.templateInfo=I;O=I.nodeList;B=I.nodeInfoList;if(B.length)for(var Y=0;Y<B.length;Y++){var K=O[Y],Z=B[Y].bindings;if(Z)for(var d=0;d<Z.length;d++){var v=Z[d],m=K,t=v;if(t.isCompound){for(var C=m.__dataCompoundStorage||(m.__dataCompoundStorage={}),z=t.parts,
D=Array(z.length),w=0;w<z.length;w++)D[w]=z[w].literal;z=t.target;C[z]=D;t.literal&&t.kind=="property"&&(z==="className"&&(m=(0,_.Sk)(m)),m[z]=t.literal)}KGm(K,this,v)}K.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(I,this.__data,null,!1),this._flushClients());return x};
W.prototype._removeBoundDom=function(x){x=x.templateInfo;var I=x.previousSibling,O=x.nextSibling,B=x.parent;I?I.nextSibling=O:B&&(B.firstChild=O);O?O.previousSibling=I:B&&(B.lastChild=I);x.nextSibling=x.previousSibling=null;x=x.childNodes;for(I=0;I<x.length;I++)O=x[I],(0,_.Sk)((0,_.Sk)(O).parentNode).removeChild(O)};
W._parseTemplateNode=function(x,I,O){var B=P._parseTemplateNode.call(this,x,I,O);if(x.nodeType===Node.TEXT_NODE){var Y=this._parseBindings(x.textContent,I);Y&&(x.textContent=osm(Y)||" ",ypR(this,I,O,"text","textContent",Y),B=!0)}return B};
W._parseTemplateNodeAttribute=function(x,I,O,B,Y){var K=this._parseBindings(Y,I);if(K){Y=B;var Z="property";ltA.test(B)?Z="attribute":B[B.length-1]=="$"&&(B=B.slice(0,-1),Z="attribute");var d=osm(K);d&&Z=="attribute"&&(B=="class"&&x.hasAttribute("class")&&(d+=" "+x.getAttribute(B)),x.setAttribute(B,d));Z=="attribute"&&Y=="disable-upgrade$"&&x.setAttribute(B,"");x.localName==="input"&&Y==="value"&&x.setAttribute(Y,"");x.removeAttribute(Y);Z==="property"&&(B=Ih(B));ypR(this,I,O,Z,B,K,d);return!0}return P._parseTemplateNodeAttribute.call(this,
x,I,O,B,Y)};
W._parseTemplateNestedTemplate=function(x,I,O){var B=P._parseTemplateNestedTemplate.call(this,x,I,O),Y=x.parentNode,K=O.templateInfo,Z=Y.localName==="dom-if",d=Y.localName==="dom-repeat";f0&&(Z||d)&&(Y.removeChild(x),O=O.parentInfo,O.templateInfo=K,O.noted=!0,B=!1);x=K.hostProps;if(N_&&Z)x&&(I.hostProps=Object.assign(I.hostProps||{},x),f0||(O.parentInfo.noted=!0));else for(var v in x)ypR(this,I,O,"property","_host_"+v,[{mode:"{",source:v,dependencies:[v],hostProp:!0}]);return B};
W._parseBindings=function(x,I){for(var O=[],B=0,Y;(Y=r1k.exec(x))!==null;){Y.index>B&&O.push({literal:x.slice(B,Y.index)});B=Y[1][0];var K=!!Y[2];Y=Y[3].trim();var Z=!1,d="",v=-1;B=="{"&&(v=Y.indexOf("::"))>0&&(d=Y.substring(v+2),Y=Y.substring(0,v),Z=!0);v=dIC(Y);var m=[];if(v){var t=v,C=t.args;t=t.methodName;for(var z=0;z<C.length;z++){var D=C[z];D.literal||m.push(D)}if((C=I.dynamicFns)&&C[t]||v.static)m.push(t),v.dynamicFn=!0}else m.push(Y);O.push({source:Y,mode:B,negate:K,customEvent:Z,signature:v,
dependencies:m,event:d});B=r1k.lastIndex}B&&B<x.length&&(x=x.substring(B))&&O.push({literal:x});return O.length?O:null};
W._evaluateBinding=function(x,I,O,B,Y,K){x=I.signature?Jp8(x,O,B,Y,I.signature):O!=I.source?KJ(x,I.source):K&&JC(O)?KJ(x,O):x.__data[O];I.negate&&(x=!x);return x};
_.N1.Object.defineProperties(W.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return NUz}}});
return W}),Re=[];var ifW=window.ShadyCSS&&window.ShadyCSS.cssBuild,q_=id(function(W){function P(I,O,B,Y){if(!ifW){for(var K=O.content.querySelectorAll("style"),Z=pqm(O),d=jSd(B),v=O.content.firstElementChild,m=0;m<d.length;m++){var t=d[m];t.textContent=I._processStyleText(t.textContent,Y);O.content.insertBefore(t,v)}for(v=d=0;v<Z.length;v++)m=Z[v],t=K[d],t!==m?(m=m.cloneNode(!0),t.parentNode.insertBefore(m,t)):d++,m.textContent=I._processStyleText(m.textContent,Y)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(O,
B);if(Qii&&ifW&&vai&&(O=O.content.querySelectorAll("style"))){var C="";Array.from(O).forEach(function(z){C+=z.textContent;z.parentNode.removeChild(z)});
I._styleSheet=new CSSStyleSheet;I._styleSheet.replaceSync(C)}}
var x=$Vd(Fc(W));W=function(){return x.call(this)||this};
_.A(W,x);W._finalizeClass=function(){x._finalizeClass.call(this);var I;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(I=this.__ownObservers)&&this.createObservers(I,this._properties);this._prepareTemplate()};
W._prepareTemplate=function(){var I=this.template;I&&(typeof I==="string"?(console.error("template getter must return HTMLTemplateElement"),I=null):DN||(I=I.cloneNode(!0)));this.prototype._template=I};
W.createProperties=function(I){for(var O in I){var B=this.prototype,Y=O,K=I[O],Z=I;K.computed&&(K.readOnly=!0);K.computed&&(B._hasReadOnlyEffect(Y)?console.warn("Cannot redefine computed property '"+Y+"'."):B._createComputedProperty(Y,K.computed,Z));K.readOnly&&!B._hasReadOnlyEffect(Y)?B._createReadOnlyProperty(Y,!K.computed):K.readOnly===!1&&B._hasReadOnlyEffect(Y)&&console.warn("Cannot make readOnly property '"+Y+"' non-readOnly.");K.reflectToAttribute&&!B._hasReflectEffect(Y)?B._createReflectedProperty(Y):
K.reflectToAttribute===!1&&B._hasReflectEffect(Y)&&console.warn("Cannot make reflected property '"+Y+"' non-reflected.");K.notify&&!B._hasNotifyEffect(Y)?B._createNotifyingProperty(Y):K.notify===!1&&B._hasNotifyEffect(Y)&&console.warn("Cannot make notify property '"+Y+"' non-notify.");K.observer&&B._createPropertyObserver(Y,K.observer,Z[K.observer]);B._addPropertyToAttributeMap(Y)}};
W.createObservers=function(I,O){for(var B=this.prototype,Y=0;Y<I.length;Y++)B._createMethodObserver(I[Y],O)};
W.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);x.prototype._initializeProperties.call(this);this.rootPath=mVP;this.importPath=this.constructor.importPath;var I=this.constructor;if(!I.hasOwnProperty("__propertyDefaults")){I.__propertyDefaults=null;var O=I._properties,B;for(B in O){var Y=O[B];"value"in Y&&(I.__propertyDefaults=I.__propertyDefaults||{},I.__propertyDefaults[B]=Y)}}if(I=I.__propertyDefaults)for(var K in I)O=I[K],
this._canApplyPropertyDefault(K)&&(O=typeof O.value=="function"?O.value.call(this):O.value,this._hasAccessor(K)?this._setPendingProperty(K,O,!0):this[K]=O)};
W.prototype._canApplyPropertyDefault=function(I){return!this.hasOwnProperty(I)};
W._processStyleText=function(I,O){return hWR(I,O)};
W._finalizeTemplate=function(I){var O=this.prototype._template;if(O&&!O.__polymerFinalized){O.__polymerFinalized=!0;var B=this.importPath;B=B?_.Pf(B):"";P(this,O,I,B);this.prototype._bindTemplate(O)}};
W.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);x.prototype.connectedCallback.call(this)};
W.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);x.prototype.ready.call(this)};
W.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));x.prototype._readyClients.call(this)};
W.prototype._attachDom=function(I){var O=(0,_.Sk)(this);if(O.attachShadow)return I?(O.shadowRoot||(O.attachShadow({mode:"open",shadyUpgradeFragment:I}),O.shadowRoot.appendChild(I),this.constructor._styleSheet&&(O.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),tnk&&window.ShadyDOM&&window.ShadyDOM.flushInitial(O.shadowRoot),O.shadowRoot):null;throw Error("Cd");};
W.prototype.updateStyles=function(I){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,I)};
W.prototype.resolveUrl=function(I,O){!O&&this.importPath&&(O=_.Pf(this.importPath));return _.Pf(I,O)};
W._parseTemplateContent=function(I,O,B){O.dynamicFns=O.dynamicFns||this._properties;return x._parseTemplateContent.call(this,I,O,B)};
W._addTemplatePropertyEffect=function(I,O,B){!hC||O in this._properties||B.info.part.signature&&B.info.part.signature.static||B.info.part.hostProp||I.nestedTemplate||console.warn("Property '"+O+"' used in template but not declared in 'properties'; attribute will not be observed.");return x._addTemplatePropertyEffect.call(this,I,O,B)};
_.N1.Object.defineProperties(W,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var I=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof I==="function"&&(I=I());if(I===void 0){if(I=this.hasOwnProperty("is")){I=this.is;var O=null;if(I&&(!Hf||Vnb)&&(O=mh.import(I,"template"),Hf&&!O))throw Error("Bd`"+I);I=O}I=I||Object.getPrototypeOf(this.prototype).constructor.template}this._template=I}return this._template},
set:function(I){this._template=I}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var I=this.importMeta;I?this._importPath=HEG(I.url):this._importPath=(I=mh.import(this.is))&&I.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return W});var R3A=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(W){return W}}),gsR=function(W,P){F1c(W,P);
this.value=P.reduce(function(x,I,O){return x+MKG(I)+W[O+1]},W[0]).toString()},F1c;
gsR.prototype.toString=function(){return this.value};
_.q_i=function(W){var P=_.tH.apply(1,arguments);F1c(W,P);var x=document.createElement("template");P=P.reduce(function(I,O,B){if(O instanceof HTMLTemplateElement)O=O.innerHTML;else if(O instanceof gsR)O=MKG(O);else throw Error("Ed`"+O);return I+O+W[B+1]},W[0]);
R3A&&(P=R3A.createHTML(P));x.innerHTML=P;return x};
F1c=function(W,P){if(!Array.isArray(W)||!Array.isArray(W.raw)||P.length!==W.length-1)throw new TypeError("Fd");};var L0=q_(HTMLElement);var L1A=id(function(W){var P=q_(W);W=function(){var x=P.call(this)||this;x.__lastItems=null;x.__lastMulti=null;x.__selectedMap=null;return x};
_.A(W,P);W.prototype.__updateSelection=function(x,I){var O=I.path;O=="items"?(I=I.base||[],O=this.__lastItems,x!==this.__lastMulti&&this.clearSelection(),O&&(O=Esd(I,O),this.__applySplices(O)),this.__lastItems=I,this.__lastMulti=x):I.path=="items.splices"?this.__applySplices(I.value.indexSplices):(x=O.slice(6),I=parseInt(x,10),x.indexOf(".")<0&&x==I&&this.__deselectChangedIdx(I))};
W.prototype.__applySplices=function(x){for(var I=this,O=this.__selectedMap,B={},Y=0;Y<x.length;B={s$jscomp$108:void 0},Y++){B.s$jscomp$108=x[Y];O.forEach(function(v){return function(m,t){m<v.s$jscomp$108.index||(m>=v.s$jscomp$108.index+v.s$jscomp$108.removed.length?O.set(t,m+v.s$jscomp$108.addedCount-v.s$jscomp$108.removed.length):O.set(t,-1))}}(B));
for(var K=0;K<B.s$jscomp$108.addedCount;K++){var Z=B.s$jscomp$108.index+K;O.has(this.items[Z])&&O.set(this.items[Z],Z)}}this.__updateLinks();var d=0;O.forEach(function(v,m){v<0?(I.multi?I.splice("selected",d,1):I.selected=I.selectedItem=null,O.delete(m)):d++})};
W.prototype.__updateLinks=function(){var x=this;this.__dataLinkedPaths={};if(this.multi){var I=0;this.__selectedMap.forEach(function(O){O>=0&&x.linkPaths("items."+O,"selected."+I++)})}else this.__selectedMap.forEach(function(O){x.linkPaths("selected","items."+O);
x.linkPaths("selectedItem","items."+O)})};
W.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
W.prototype.isSelected=function(x){return this.__selectedMap.has(x)};
W.prototype.isIndexSelected=function(x){return this.isSelected(this.items[x])};
W.prototype.__deselectChangedIdx=function(x){var I=this,O=this.__selectedIndexForItemIndex(x);if(O>=0){var B=0;this.__selectedMap.forEach(function(Y,K){O==B++&&I.deselect(K)})}};
W.prototype.__selectedIndexForItemIndex=function(x){if(x=this.__dataLinkedPaths["items."+x])return parseInt(x.slice(9),10)};
W.prototype.deselect=function(x){var I=this.__selectedMap.get(x);if(I>=0){this.__selectedMap.delete(x);var O;this.multi&&(O=this.__selectedIndexForItemIndex(I));this.__updateLinks();this.multi?this.splice("selected",O,1):this.selected=this.selectedItem=null}};
W.prototype.deselectIndex=function(x){this.deselect(this.items[x])};
W.prototype.select=function(x){this.selectIndex(this.items.indexOf(x))};
W.prototype.selectIndex=function(x){var I=this.items[x];this.isSelected(I)?this.toggle&&this.deselectIndex(x):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(I,x),this.__updateLinks(),this.multi?this.push("selected",I):this.selected=this.selectedItem=I)};
_.N1.Object.defineProperties(W,{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 W}),WZd=L1A(L0),Wz=function(){return WZd.apply(this,arguments)||this};
_.A(Wz,WZd);_.N1.Object.defineProperties(Wz,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Wz.is,Wz);var PBP=window.Polymer;window.Polymer=function(W){return window.Polymer._polymerFn(W)};
PBP&&Object.assign(Polymer,PBP);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:hWR,resolveUrl:_.Pf,pathFromUrl:HEG};Polymer.DomModule=mh;Polymer.Async={timeOut:_.rl,animationFrame:_.dc,idlePeriod:EaM,microTask:ES};Polymer.dedupingMixin=id;Polymer.wrap=_.Sk;Polymer.PropertiesChanged=DVb;Polymer.telemetry={instanceCount:Mnl,incrementInstanceCount:function(){Mnl++},
registrations:bEA,register:k4W,dumpRegistrations:function(){bEA.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=$Vd;Polymer.CaseMap={dashToCamelCase:Ih,camelToDashCase:OS};Polymer.PropertyAccessors=atM;Polymer.TemplateStamp=ftm;Polymer.Path={isPath:JC,root:Bf,isAncestor:TLU,isDescendant:nJ,translate:YQ,matches:rdS,normalize:yD,split:iEo,get:KJ,set:RWS,isDeep:JC};Polymer.Settings={useShadow:M1,useNativeCSSProperties:oaM,useNativeCustomElements:S_m,get rootPath(){return mVP},setRootPath:function(W){mVP=W},
get sanitizeDOMValue(){return uV},setSanitizeDOMValue:function(W){uV=W},
get passiveTouchGestures(){return NpG},setPassiveTouchGestures:function(W){NpG=W},
get strictTemplatePolicy(){return Hf},setStrictTemplatePolicy:function(W){Hf=W},
get allowTemplateFromDomModule(){return Vnb},setAllowTemplateFromDomModule:function(W){Vnb=W},
get legacyOptimizations(){return DN},setLegacyOptimizations:function(W){DN=W},
get syncInitialRender(){return tnk},setSyncInitialRender:function(W){tnk=W},
get legacyUndefined(){return sS},setLegacyUndefined:function(W){sS=W},
get legacyWarnings(){return hC},setLegacyWarnings:function(W){hC=W},
get orderedComputed(){return pVd},setOrderedComputed:function(W){pVd=W},
get fastDomIf(){return N_},setFastDomIf:function(W){N_=W},
get removeNestedTemplates(){return f0},setRemoveNestedTemplates:function(W){f0=W},
get suppressTemplateNotifications(){return ld},setSuppressTemplateNotifications:ld};Polymer.rootPath!==void 0&&(mVP=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(uV=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(NpG=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Hf=Polymer.strictTemplatePolicy);Vnb=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(DN=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(tnk=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(sS=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(hC=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(pVd=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(N_=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(f0=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(ld=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return uV},
set:function(W){uV=W}});Polymer.PropertyEffects=Fc;Polymer.StyleGather={stylesFromModules:tKx,stylesFromModule:VKS,stylesFromTemplate:pqm,stylesFromModuleImports:jSd,cssFromModules:CrR,cssFromModule:QSC,cssFromTemplate:ApG,cssFromModuleImports:function(W){return(W=mh.import(W))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):""}};Polymer.ElementMixin=q_;Polymer.updateStyles=function(W){window.ShadyCSS&&window.ShadyCSS.styleDocument(W)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Esd};Polymer.html=_.q_i;Polymer.htmlLiteral=function(W){return new gsR(W,_.tH.apply(1,arguments))};Polymer.Element=L0;Polymer.ArraySelectorMixin=L1A;Polymer.ArraySelector=Wz;var xUZ=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,IEd=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ZPG=/@media\s(.*)/;var HCW=null,h0d=window.HTMLImports&&window.HTMLImports.whenReady||null,e0o;var OKM=null,Pz=null,xB=function(){this.customStyles=[];this.enqueued=!1;cpm(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},JnP=function(W){!W.enqueued&&Pz&&(W.enqueued=!0,cpm(Pz))};
xB.prototype.addCustomStyle=function(W){W.__seenByShadyCSS||(W.__seenByShadyCSS=!0,this.customStyles.push(W),JnP(this))};
xB.prototype.getStyleForCustomStyle=function(W){if(W.__shadyCSSCachedStyle)return W.__shadyCSSCachedStyle;var P;W.getStyle?P=W.getStyle():P=W;return P};
xB.prototype.processStyles=function(){for(var W=this.customStyles,P=0;P<W.length;P++){var x=W[P];if(!x.__shadyCSSCachedStyle){var I=this.getStyleForCustomStyle(x);I&&(I=I.__appliedElement||I,OKM&&OKM(I),x.__shadyCSSCachedStyle=I)}}return W};
xB.prototype.addCustomStyle=xB.prototype.addCustomStyle;xB.prototype.getStyleForCustomStyle=xB.prototype.getStyleForCustomStyle;xB.prototype.processStyles=xB.prototype.processStyles;Object.defineProperties(xB.prototype,{transformCallback:{get:function(){return OKM},
set:function(W){OKM=W}},
validateCallback:{get:function(){return Pz},
set:function(W){var P=!1;Pz||(P=!0);Pz=W;P&&JnP(this)}}});var bC7=!(window.ShadyDOM&&window.ShadyDOM.inUse),aZC,fJ;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(fJ=window.ShadyCSS.cssBuild);var BwW=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?aZC=window.ShadyCSS.nativeCss:window.ShadyCSS?(kSG(window.ShadyCSS),window.ShadyCSS=void 0):kSG(window.WebComponents&&window.WebComponents.flags);var Yem=aZC;var n6l=new xB;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(W,P){n6l.processStyles();$Ix(W,P)},
styleElement:function(){n6l.processStyles()},
styleDocument:function(W){n6l.processStyles();$Ix(document.body,W)},
getComputedStyleValue:function(W,P){return wqC(W,P)},
flushCustomStyles:function(){},
nativeCss:Yem,nativeShadow:bC7,cssBuild:fJ,disableRuntime:BwW});window.ShadyCSS.CustomStyleInterface=n6l;var YLZ=window.ShadyCSS.CustomStyleInterface,II=function(){var W=HTMLElement.call(this)||this;W._style=null;YLZ.addCustomStyle(W);return W};
_.A(II,HTMLElement);II.prototype.getStyle=function(){if(this._style)return this._style;var W=this.querySelector("style");if(!W)return null;this._style=W;var P=W.getAttribute("include");P&&(W.removeAttribute("include"),W.textContent=CrR(P)+W.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
II.prototype.getStyle=II.prototype.getStyle;window.customElements.define("custom-style",II);Polymer.CustomStyle=II;var O8=function(){this._timer=this._callback=this._asyncModule=null},Jh,KZc;
O8.prototype.setConfig=function(W,P){var x=this;this._asyncModule=W;this._callback=P;this._timer=this._asyncModule.run(function(){x._timer=null;Jh.delete(x);x._callback()})};
O8.prototype.cancel=function(){this.isActive()&&(ynk(this),Jh.delete(this))};
var ynk=function(W){W.isActive()&&(W._asyncModule.cancel(W._timer),W._timer=null)};
O8.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
O8.prototype.isActive=function(){return this._timer!=null};
_.Bz=function(W,P,x){W instanceof O8?ynk(W):W=new O8;W.setConfig(P,x);return W};
Jh=new Set;_.nh=function(W){Jh.add(W)};
KZc=function(){var W=!!Jh.size;Jh.forEach(function(P){try{P.flush()}catch(x){setTimeout(function(){throw x;})}});
return W};var XqW=typeof document.head.style.touchAction==="string",UId=["mousedown","mousemove","mouseup","click"],qa8=[0,1,4,2],ZKm;try{ZKm=(new MouseEvent("test",{buttons:1})).buttons===1}catch(W){ZKm=!1}var FGC=ZKm,fZR=!1;(function(){try{var W=Object.defineProperty({},"passive",{get:function(){fZR=!0}});
window.addEventListener("test",null,W);window.removeEventListener("test",null,W)}catch(P){}})();
var TpR=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),rpm=[],o6c={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},K0S={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},iCS=function(W){var P=W.sourceCapabilities;if(!P||P.firesTouchEvents)if(W.__polymerGesturesHandled={skip:!0},W.type==="click"){P=!1;for(var x=xzS(W),I=0;I<x.length;I++){if(x[I].nodeType===Node.ELEMENT_NODE)if(x[I].localName==="label")rpm.push(x[I]);
else if(o6c[x[I].localName]){var O=x[I];var B=Array.prototype.slice.call(O.labels||[]);if(!B.length){B=[];try{var Y=O.getRootNode();if(O.id){var K=Y.querySelectorAll("label[for = '"+O.id+"']");for(O=0;O<K.length;O++)B.push(K[O])}}catch(Z){}}for(O=0;O<B.length;O++)P=P||rpm.indexOf(B[O])>-1}if(x[I]===SLZ)return}P||(W.preventDefault(),W.stopPropagation())}},SLZ=null,YB=null,Ooo=0,J3m=0,IIR=-1,BnW=!1;
document.addEventListener("touchend",function(W){YB||R07(!0);SLZ=xzS(W)[0];YB=_.Bz(YB,_.rl.after(2500),function(){R07();YB=SLZ=null})},fZR?{passive:!0}:!1);
var xzS=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(W){return W.composedPath&&W.composedPath()||[]},CJ={},jk=[];
nAC({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){pJ(this.info)},
mousedown:function(W){if(tC(W)){var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),x=this;W0A(this.info,function(I){tC(I)||(g7("up",P,I),pJ(x.info))},function(I){tC(I)&&g7("up",P,I);
pJ(x.info)});
g7("down",P,W)}},
touchstart:function(W){g7("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)},
touchend:function(W){g7("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)}});
nAC({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(W){this.moves.length>2&&this.moves.shift();this.moves.push(W)},
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;pJ(this.info)},
mousedown:function(W){if(tC(W)){var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),x=this,I=function(O){var B=O.clientX,Y=O.clientY;YrS(x.info,B,Y)&&(x.info.state=x.info.started?O.type==="mouseup"?"end":"track":"start",x.info.state==="start"&&QD("tap"),x.info.addMove({x:B,y:Y}),tC(O)||(x.info.state="end",pJ(x.info)),P&&y3S(x.info,P,O),x.info.started=!0)};
W0A(this.info,I,function(O){x.info.started&&I(O);pJ(x.info)});
this.info.x=W.clientX;this.info.y=W.clientY}},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchmove:function(W){var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];var x=W.clientX,I=W.clientY;YrS(this.info,x,I)&&(this.info.state==="start"&&QD("tap"),this.info.addMove({x:x,y:I}),y3S(this.info,P,W),this.info.state="track",this.info.started=!0)},
touchend:function(W){var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:W.clientX,y:W.clientY}),y3S(this.info,P,W))}});
nAC({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(W){tC(W)&&(this.info.x=W.clientX,this.info.y=W.clientY)},
click:function(W){tC(W)&&Zot(this.info,W)},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchend:function(W){Zot(this.info,W.changedTouches[0],W)}});var uBw=id(function(W){var P=function(){return W.apply(this,arguments)||this};
_.A(P,W);P.prototype._addEventListenerToNode=function(x,I,O){AC(x,I,O)||W.prototype._addEventListenerToNode.call(this,x,I,O)};
P.prototype._removeEventListenerFromNode=function(x,I,O){zY(x,I,O)||W.prototype._removeEventListenerFromNode.call(this,x,I,O)};
return P});var yQ=id(function(W){var P=function(){return W.apply(this,arguments)||this};
_.A(P,W);P.prototype._shouldPropertyChange=function(x,I,O){return oAm(this,x,I,O,!0)};
return P}),dUk=id(function(W){var P=function(){return W.apply(this,arguments)||this};
_.A(P,W);P.prototype._shouldPropertyChange=function(x,I,O){return oAm(this,x,I,O,this.mutableData)};
_.N1.Object.defineProperties(P,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return P});
yQ._mutablePropertyChange=oAm;var SrR=!1;var suW=uBw(dUk(Fc(HTMLElement))),Kh=function(){var W=suW.call(this)||this;if(Hf)throw Error("Hd");W.root=null;W.$=null;W.__children=null;return W};
_.A(Kh,suW);_.J=Kh.prototype;_.J.attributeChangedCallback=function(){this.mutableData=!0};
_.J.connectedCallback=function(){ujC()||(this.style.display="none");this.render()};
_.J.disconnectedCallback=function(){this.__removeChildren()};
_.J.__insertChildren=function(){(0,_.Sk)((0,_.Sk)(this).parentNode).insertBefore(this.root,this)};
_.J.__removeChildren=function(){if(this.__children)for(var W=0;W<this.__children.length;W++)this.root.appendChild(this.__children[W])};
_.J.render=function(){var W=this;if(!this.__children){var P=P||this.querySelector("template");if(!P){var x=new MutationObserver(function(){if(P=W.querySelector("template"))x.disconnect(),W.render();else throw Error("Id");});
x.observe(this,{childList:!0});return}this.root=this._stampTemplate(P);this.$=this.root.$;this.__children=[];for(var I=this.root.firstChild;I;I=I.nextSibling)this.__children[this.__children.length]=I;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.N1.Object.defineProperties(Kh,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Kh);Polymer.Debouncer=O8;Polymer.Gestures={gestures:CJ,recognizers:jk,deepTargetFind:P6R,addListener:AC,removeListener:zY,register:nAC,setTouchAction:_.GY,prevent:QD,resetMouseCanceller:function(){YB&&YB.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:AC,remove:zY};Polymer.GestureEventListeners=uBw;Polymer.MutableData=yQ;Polymer.OptionalMutableData=dUk;Polymer.DomBind=Kh;_.ZR=function(){do{var W=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var P=KZc()}while(W||P)};var dzm=null;sq8.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:sq8,writable:!0}});var C68=Fc(sq8),Qqx=yQ(C68),v6P=Fc(function(){}),$Q=function(W){var P=v6P.call(this)||this;
P._configureProperties(W);P.root=P._stampTemplate(P.__dataHost);var x=[];P.children=x;for(var I=P.root.firstChild;I;I=I.nextSibling)x.push(I),I.__templatizeInstance=P;P.__templatizeOwner&&P.__templatizeOwner.__hideTemplateChildren__&&P._showHideChildren(!0);x=P.__templatizeOptions;(W&&x.instanceProps||!x.instanceProps)&&P._enableProperties();return P};
_.A($Q,v6P);_.J=$Q.prototype;_.J._configureProperties=function(W){if(this.__templatizeOptions.forwardHostProp)for(var P in this.__hostProps)this._setPendingProperty(P,this.__dataHost["_host_"+P]);for(var x in W)this._setPendingProperty(x,W[x])};
_.J.forwardHostProp=function(W,P){this._setPendingPropertyOrPath(W,P,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.J._addEventListenerToNode=function(W,P,x){var I=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(W,P,function(B){B.model=I;x(B)});
else{var O=this.__dataHost.__dataHost;O&&O._addEventListenerToNode(W,P,x)}};
_.J._showHideChildren=function(W){mzR(W,this.children)};
_.J._setUnmanagedPropertyToNode=function(W,P,x){W.__hideTemplateChildren__&&W.nodeType==Node.TEXT_NODE&&P=="textContent"?W.__polymerTextContent__=x:v6P.prototype._setUnmanagedPropertyToNode.call(this,W,P,x)};
_.J.dispatchEvent=function(){return!0};
_.N1.Object.defineProperties($Q.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var W=this.__parentModel;if(!W){var P;W=this;do W=W.__dataHost.__dataHost;while((P=W.__templatizeOptions)&&!P.parentModel);this.__parentModel=W}return W}}});
var tQm=yQ($Q);var oI=function(){var W=L0.call(this)||this;W.__renderDebouncer=null;W._lastIf=!1;W.__hideTemplateChildren__=!1;return W};
_.A(oI,L0);_.J=oI.prototype;_.J.__debounceRender=function(){var W=this;this.__renderDebouncer=_.Bz(this.__renderDebouncer,ES,function(){return W.__render()});
_.nh(this.__renderDebouncer)};
_.J.disconnectedCallback=function(){L0.prototype.disconnectedCallback.call(this);var W=(0,_.Sk)(this).parentNode;W&&(W.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Sk)(W).host)||this.__teardownInstance()};
_.J.connectedCallback=function(){L0.prototype.connectedCallback.call(this);ujC()||(this.style.display="none");this.if&&this.__debounceRender()};
_.J.__ensureTemplate=function(){var W=this;if(!this.__template){var P=this._templateInfo?this:(0,_.Sk)(this).querySelector("template");if(!P){var x=new MutationObserver(function(){if((0,_.Sk)(W).querySelector("template"))x.disconnect(),W.__render();else throw Error("Ld");});
x.observe(this,{childList:!0});return!1}this.__template=P}return!0};
_.J.__ensureInstance=function(){var W=(0,_.Sk)(this).parentNode;if(this.__hasInstance()){var P=this.__getInstanceNodes();if(P&&P.length&&(0,_.Sk)(this).previousSibling!==P[P.length-1])for(var x=0,I=void 0;x<P.length&&(I=P[x]);x++)(0,_.Sk)(W).insertBefore(I,this)}else{if(!W||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(W)}return!0};
_.J.render=function(){_.ZR()};
_.J.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();ld&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.J.__hasInstance=function(){};
_.J.__getInstanceNodes=function(){};
_.J.__createAndInsertInstance=function(){};
_.J.__teardownInstance=function(){};
_.J._showHideChildren=function(){};
_.N1.Object.defineProperties(oI,{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:oI.prototype.__debounceRender},restamp:{type:Boolean,observer:oI.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var mUc=function(){var W=oI.call(this)||this;W.__instance=null;W.__syncInfo=null;return W};
_.A(mUc,oI);_.J=mUc.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.J.__createAndInsertInstance=function(W){var P=this,x=this.__dataHost||this;if(Hf&&!this.__dataHost)throw Error("Jd");var I=x._bindTemplate(this.__template,!0);I.runEffects=function(O,B,Y){var K=P.__syncInfo;if(P.if)K&&(P.__syncInfo=null,P._showHideChildren(),B=Object.assign(K.changedProps,B)),O(B,Y);else if(P.__instance)if(K||(K=P.__syncInfo={runEffects:O,changedProps:{}}),Y)for(var Z in B)O=Bf(Z),K.changedProps[O]=P.__dataHost[O];else Object.assign(K.changedProps,B)};
this.__instance=x._stampTemplate(this.__template,I);(0,_.Sk)(W).insertBefore(this.__instance,this)};
_.J.__syncHostProperties=function(){var W=this.__syncInfo;W&&(this.__syncInfo=null,W.runEffects(W.changedProps,!1))};
_.J.__teardownInstance=function(){var W=this.__dataHost||this;this.__instance&&(W._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.J._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,mzR(W,this.__instance.templateInfo.childNodes));W||this.__syncHostProperties()};
var VIZ=function(){var W=oI.call(this)||this;W.__ctor=null;W.__instance=null;W.__invalidProps=null;return W};
_.A(VIZ,oI);_.J=VIZ.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.children};
_.J.__createAndInsertInstance=function(W){this.__ctor||(this.__ctor=w7(this.__template,this,{mutableData:!0,forwardHostProp:function(P,x){this.__instance&&(this.if?this.__instance.forwardHostProp(P,x):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Bf(P)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Sk)(W).insertBefore(this.__instance.root,this)};
_.J.__teardownInstance=function(){if(this.__instance){var W=this.__instance.children;if(W&&W.length){var P=(0,_.Sk)(W[0]).parentNode;if(P){P=(0,_.Sk)(P);for(var x=0,I=void 0;x<W.length&&(I=W[x]);x++)P.removeChild(I)}}this.__instance=this.__invalidProps=null}};
_.J.__syncHostProperties=function(){var W=this.__invalidProps;if(W){this.__invalidProps=null;for(var P in W)this.__instance._setPendingProperty(P,this.__dataHost[P]);this.__instance._flushProperties()}};
_.J._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,this.__instance._showHideChildren(W));W||this.__syncHostProperties()};
_.VL=N_?mUc:VIZ;customElements.define(_.VL.is,_.VL);Polymer.enqueueDebouncer=_.nh;Polymer.flush=_.ZR;Polymer.Templatize={templatize:w7,modelForElement:DzA};Polymer.TemplateInstanceBase=$Q;Polymer.DomIf=_.VL;var tIM=dUk(L0),mr=function(){var W=tIM.call(this)||this;W.__instances=[];W.__renderDebouncer=null;W.__itemsIdxToInstIdx={};W.__chunkCount=null;W.__renderStartTime=null;W.__itemsArrayChanged=!1;W.__shouldMeasureChunk=!1;W.__shouldContinueChunking=!1;W.__chunkingId=0;W.__sortFn=null;W.__filterFn=null;W.__observePaths=null;W.__ctor=null;W.__isDetached=!0;W.template=null;return W};
_.A(mr,tIM);_.J=mr.prototype;_.J.disconnectedCallback=function(){tIM.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var W=0;W<this.__instances.length;W++)this.__detachInstance(W);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.J.connectedCallback=function(){tIM.prototype.connectedCallback.call(this);ujC()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var W=(0,_.Sk)((0,_.Sk)(this).parentNode),P=0;P<this.__instances.length;P++)this.__attachInstance(P,W);this.__chunkingId&&this.__render()}};
_.J.__ensureTemplatized=function(){var W=this;if(!this.__ctor){var P=this.template=this._templateInfo?this:this.querySelector("template");if(!P){var x=new MutationObserver(function(){if(W.querySelector("template"))x.disconnect(),W.__render();else throw Error("Md");});
x.observe(this,{childList:!0});return!1}var I={};I[this.as]=!0;I[this.indexAs]=!0;I[this.itemsIndexAs]=!0;this.__ctor=w7(P,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:I,forwardHostProp:function(O,B){for(var Y=this.__instances,K=0,Z=void 0;K<Y.length&&(Z=Y[K]);K++)Z.forwardHostProp(O,B)},
notifyInstanceProp:function(O,B,Y){rdS(this.as,B)&&(O=O[this.itemsIndexAs],B==this.as&&(this.items[O]=Y),B=YQ(this.as,"items."+O,B),this.notifyPath(B,Y))}})}return!0};
_.J.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.J.__functionFromPropertyValue=function(W){if(typeof W==="string"){var P=this.__getMethodHost();return function(){return P[W].apply(P,arguments)}}return W};
_.J.__sortChanged=function(W){this.__sortFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.J.__filterChanged=function(W){this.__filterFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.J.__computeFrameTime=function(W){return Math.ceil(1E3/W)};
_.J.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.J.__handleObservedPaths=function(W){if(this.__sortFn||this.__filterFn)if(!W)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var P=this.__observePaths,x=0;x<P.length;x++)W.indexOf(P[x])===0&&this.__debounceRender(this.__render,this.delay)};
_.J.__itemsChanged=function(W){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(W.path,W.value)||(W.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.J.__debounceRender=function(W,P){P=P===void 0?0:P;this.__renderDebouncer=_.Bz(this.__renderDebouncer,P>0?_.rl.after(P):ES,W.bind(this));_.nh(this.__renderDebouncer)};
_.J.render=function(){this.__debounceRender(this.__render);_.ZR()};
_.J.__render=function(){var W=this;if(this.__ensureTemplatized()){var P=this.items||[],x=this.__sortAndFilterItems(P),I=this.__calculateLimit(x.length);this.__updateInstances(P,I,x);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){W.__chunkingId=null;W.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);ld&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.J.__sortAndFilterItems=function(W){for(var P=this,x=Array(W.length),I=0;I<W.length;I++)x[I]=I;this.__filterFn&&(x=x.filter(function(O,B,Y){return P.__filterFn(W[O],B,Y)}));
this.__sortFn&&x.sort(function(O,B){return P.__sortFn(W[O],W[B])});
return x};
_.J.__calculateLimit=function(W){var P=W,x=this.__instances.length;if(this.initialCount){var I;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(P=Math.min(W,this.initialCount),this.__chunkCount=(I=Math.max(P-x,0))||1):(I=Math.min(Math.max(W-x,0),this.__chunkCount),P=Math.min(x+I,W));this.__shouldMeasureChunk=I===this.__chunkCount;this.__shouldContinueChunking=P<W;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return P};
_.J.__continueChunking=function(){if(this.__shouldMeasureChunk){var W=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/W*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.J.__updateInstances=function(W,P,x){var I=this.__itemsIdxToInstIdx={},O;for(O=0;O<P;O++){var B=this.__instances[O],Y=x[O],K=W[Y];I[Y]=O;B?(B._setPendingProperty(this.as,K),B._setPendingProperty(this.indexAs,O),B._setPendingProperty(this.itemsIndexAs,Y),B._flushProperties()):this.__insertInstance(K,O,Y)}for(W=this.__instances.length-1;W>=O;W--)this.__detachAndRemoveInstance(W)};
_.J.__detachInstance=function(W){W=this.__instances[W];for(var P=(0,_.Sk)(W.root),x=0;x<W.children.length;x++)P.appendChild(W.children[x]);return W};
_.J.__attachInstance=function(W,P){P.insertBefore(this.__instances[W].root,this)};
_.J.__detachAndRemoveInstance=function(W){this.__detachInstance(W);this.__instances.splice(W,1)};
_.J.__stampInstance=function(W,P,x){var I={};I[this.as]=W;I[this.indexAs]=P;I[this.itemsIndexAs]=x;return new this.__ctor(I)};
_.J.__insertInstance=function(W,P,x){W=this.__stampInstance(W,P,x);x=(x=this.__instances[P+1])?x.children[0]:this;(0,_.Sk)((0,_.Sk)(this).parentNode).insertBefore(W.root,x);return this.__instances[P]=W};
_.J._showHideChildren=function(W){for(var P=0;P<this.__instances.length;P++)this.__instances[P]._showHideChildren(W)};
_.J.__handleItemPath=function(W,P){var x=W.slice(6),I=x.indexOf(".");W=I<0?x:x.substring(0,I);if(W==parseInt(W,10)){x=I<0?"":x.substring(I+1);this.__handleObservedPaths(x);if(W=this.__instances[this.__itemsIdxToInstIdx[W]])W._setPendingPropertyOrPath(this.as+(x?"."+x:""),P,!1,!0),W._flushProperties();return!0}};
_.J.itemForElement=function(W){return(W=this.modelForElement(W))&&W[this.as]};
_.J.indexForElement=function(W){return(W=this.modelForElement(W))&&W[this.indexAs]};
_.J.modelForElement=function(W){return DzA(this.template,W)};
_.N1.Object.defineProperties(mr,{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:mr.prototype.__sortChanged},filter:{type:Function,observer:mr.prototype.__filterChanged},observe:{type:String,observer:mr.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!ld,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.*)"]}}});
mr.prototype._setRenderedItemCount=function(){};
customElements.define(mr.is,mr);Polymer.DomRepeat=mr;var p7i=function(W,P){var x=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=W;this.callback=P;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){x._schedule()};
this.connect();this._schedule()},juP=function(W){var P=(0,_.Sk)(W);
if(ek(W))return P.assignedNodes({flatten:!0});W=[];for(var x=0;x<P.childNodes.length;x++){var I=P.childNodes[x];ek(I)?W.push.apply(W,_.ju((0,_.Sk)(I).assignedNodes({flatten:!0}))):W.push(I)}return W};
_.J=p7i.prototype;_.J.connect=function(){var W=this;ek(this._target)?this._listenSlots([this._target]):(0,_.Sk)(this._target).children&&(this._listenSlots((0,_.Sk)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(P){W._processMutations(P)}):(this._nativeChildrenObserver=new MutationObserver(function(P){W._processMutations(P)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.J.disconnect=function(){ek(this._target)?this._unlistenSlots([this._target]):(0,_.Sk)(this._target).children&&(this._unlistenSlots((0,_.Sk)(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};
_.J._schedule=function(){var W=this;this._scheduled||(this._scheduled=!0,ES.run(function(){return W.flush()}))};
_.J._processMutations=function(W){this._processSlotMutations(W);this.flush()};
_.J._processSlotMutations=function(W){if(W)for(var P=0;P<W.length;P++){var x=W[P];x.addedNodes&&this._listenSlots(x.addedNodes);x.removedNodes&&this._unlistenSlots(x.removedNodes)}};
_.J.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 W={target:this._target,addedNodes:[],removedNodes:[]},P=juP(this._target),x=Esd(P,this._effectiveNodes),I=0,O=void 0;I<x.length&&(O=x[I]);I++)for(var B=0,Y=void 0;B<O.removed.length&&(Y=O.removed[B]);B++)W.removedNodes.push(Y);
I=0;for(O=void 0;I<x.length&&(O=x[I]);I++)for(B=O.index;B<O.index+O.addedCount;B++)W.addedNodes.push(P[B]);this._effectiveNodes=P;P=!1;if(W.addedNodes.length||W.removedNodes.length)P=!0,this.callback.call(this._target,W);return P};
_.J._listenSlots=function(W){for(var P=0;P<W.length;P++){var x=W[P];ek(x)&&x.addEventListener("slotchange",this._boundSchedule)}};
_.J._unlistenSlots=function(W){for(var P=0;P<W.length;P++){var x=W[P];ek(x)&&x.removeEventListener("slotchange",this._boundSchedule)}};var SY=Element.prototype,QuZ=SY.matches||SY.matchesSelector||SY.mozMatchesSelector||SY.msMatchesSelector||SY.oMatchesSelector||SY.webkitMatchesSelector,CBP=function(W,P){return QuZ.call(W,P)},cf=function(W){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(W);
this.node=W},E6w;
_.J=cf.prototype;_.J.observeNodes=function(W){return new p7i(this.node,W)};
_.J.unobserveNodes=function(W){W.disconnect()};
_.J.notifyObserver=function(){};
_.J.deepContains=function(W){if((0,_.Sk)(this.node).contains(W))return!0;var P=W;for(W=W.ownerDocument;P&&P!==W&&P!==this.node;)P=(0,_.Sk)(P).parentNode||(0,_.Sk)(P).host;return P===this.node};
_.J.getOwnerRoot=function(){return(0,_.Sk)(this.node).getRootNode()};
_.J.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Sk)(this.node).assignedNodes({flatten:!0}):[]};
_.J.getDestinationInsertionPoints=function(){for(var W=[],P=(0,_.Sk)(this.node).assignedSlot;P;)W.push(P),P=(0,_.Sk)(P).assignedSlot;return W};
_.J.importNode=function(W,P){return(0,_.Sk)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(W,P)};
_.J.getEffectiveChildNodes=function(){return juP(this.node)};
_.J.queryDistributedElements=function(W){for(var P=this.getEffectiveChildNodes(),x=[],I=0,O=P.length,B=void 0;I<O&&(B=P[I]);I++)B.nodeType===Node.ELEMENT_NODE&&CBP(B,W)&&x.push(B);return x};
_.N1.Object.defineProperties(cf.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var W=this.node;return W._activeElement!==void 0?W._activeElement:W.activeElement}}});
var ue=function(W){this.event=W};
_.N1.Object.defineProperties(ue.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 AnZ=cf;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var zSi=window.ShadyDOM.Wrapper,GZp=function(){return zSi.apply(this,arguments)||this};
_.A(GZp,zSi);Object.getOwnPropertyNames(cf.prototype).forEach(function(W){W!="activeElement"&&W!="constructor"&&(GZp.prototype[W]=cf.prototype[W])});
$zW(GZp.prototype,["classList"]);AnZ=GZp;Object.defineProperties(ue.prototype,{localTarget:{get:function(){var W=this.event.currentTarget;W=W&&_.VS(W).getOwnerRoot();for(var P=this.path,x=0;x<P.length;x++){var I=P[x];if(_.VS(I).getOwnerRoot()===W)return I}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else MQU(),$zW(cf.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),wOd();E6w=AnZ;_.VS=function(W){W=W||document;if(W instanceof AnZ)return W;if(W instanceof ue)return W;var P=W.__domApi;P||(W instanceof Event?P=new ue(W):P=new AnZ(W),W.__domApi=P);return P};var g6z=/:host\(:dir\((ltr|rtl)\)\)/g,DUw=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,MIp=/:dir\((?:ltr|rtl)\)/,$Ud=!(!window.ShadyDOM||!window.ShadyDOM.inUse),bV=[],dQ=null,ah="",w7k=id(function(W){$Ud||dQ||(ah=document.documentElement.getAttribute("dir"),dQ=new MutationObserver(hJm),dQ.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var P=atM(W);W=function(){var x=P.call(this)||this;x.__autoDirOptOut=!1;return x};
_.A(W,P);W._processStyleText=function(x,I){x=P._processStyleText.call(this,x,I);!$Ud&&MIp.test(x)&&(x=this._replaceDirInCssText(x),this.__activateDir=!0);return x};
W._replaceDirInCssText=function(x){x=x.replace(g6z,':host([dir="$1"])');return x=x.replace(DUw,':host([dir="$2"]) $1')};
W.prototype.ready=function(){P.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
W.prototype.connectedCallback=function(){P.prototype.connectedCallback&&P.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(dQ&&dQ.takeRecords().length&&hJm(),bV.push(this),this.__autoDirOptOut||this.setAttribute("dir",ah))};
W.prototype.disconnectedCallback=function(){P.prototype.disconnectedCallback&&P.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var x=bV.indexOf(this);x>-1&&bV.splice(x,1)}};
W.__activateDir=!1;return W});var hS3=function(W){for(;W;){var P=Object.getOwnPropertyDescriptor(W,"observedAttributes");if(P)return P.get;W=Object.getPrototypeOf(W.prototype).constructor}return function(){return[]}};
id(function(W){var P=q_(W),x=hS3(P);W=function(){return P.call(this)||this};
_.A(W,P);W.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:P.prototype._initializeProperties.call(this)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||P.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(I){return P.prototype._canApplyPropertyDefault.call(this,I)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(I))};
W.prototype.attributeChangedCallback=function(I,O,B,Y){I=="disable-upgrade"?this.__isUpgradeDisabled&&B==null&&(P.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Sk)(this).isConnected&&P.prototype.connectedCallback.call(this)):P.prototype.attributeChangedCallback.call(this,I,O,B,Y)};
W.prototype.connectedCallback=function(){this.__isUpgradeDisabled||P.prototype.connectedCallback.call(this)};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||P.prototype.disconnectedCallback.call(this)};
_.N1.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return x.call(this).concat("disable-upgrade")}}});
return W});var kQ=!1,eJt=[],US=[];var kam=window.ShadyDOM,UzC=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",fIm):document.readyState==="interactive"||document.readyState==="complete"?fIm():window.addEventListener("DOMContentLoaded",fIm);var Tn7=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=""},Nnm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,lIR=/@import[^;]*;/gim,L0m=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,WfR=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,P4x=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,x$d=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,F0x=/^@[^\s]*keyframes/,
RJo=/\s+/g;var IsS={};var Bht=Promise.resolve();var HKw=new Set;var eSZ=/;\s*/m,cni=/^\s*(initial)|(inherit)\s*$/,aEc=/\s*!important/,bKm=function(){this._map={}};
bKm.prototype.set=function(W,P){W=W.trim();this._map[W]={properties:P,dependants:{}}};
bKm.prototype.get=function(W){W=W.trim();return this._map[W]||null};
var kZZ=null,s8=function(){this._measureElement=this._currentElement=null;this._map=new bKm};
_.J=s8.prototype;_.J.detectMixin=function(W){W=IEd.test(W)||xUZ.test(W);IEd.lastIndex=0;xUZ.lastIndex=0;return W};
_.J.transformTemplate=function(W,P){if(W._gatheredStyle===void 0){var x=[];for(var I=W.content.querySelectorAll("style"),O=0;O<I.length;O++){var B=I[O];if(B.hasAttribute("shady-unscoped")){if(!bC7){var Y=B.textContent;if(!HKw.has(Y)){HKw.add(Y);var K=document.createElement("style");K.setAttribute("shady-unscoped","");K.textContent=Y;document.head.appendChild(K)}B.parentNode.removeChild(B)}}else x.push(B.textContent),B.parentNode.removeChild(B)}(x=x.join("").trim())?(I=document.createElement("style"),
I.textContent=x,W.content.insertBefore(I,W.content.firstChild),x=I):x=null;W._gatheredStyle=x}return(W=W._gatheredStyle)?this.JSC$9076_transformStyle(W,P):null};
_.J.JSC$9076_transformStyle=function(W,P){P=P===void 0?"":P;var x=Kfx(W);this.transformRules(x,P);W.textContent=yMR(x);return x};
_.J.transformCustomStyle=function(W){var P=this,x=Kfx(W);oc8(x,function(I){I.selector===":root"&&(I.selector="html");P.transformRule(I)});
W.textContent=yMR(x);return x};
_.J.transformRules=function(W,P){var x=this;this._currentElement=P;oc8(W,function(I){x.transformRule(I)});
this._currentElement=null};
_.J.transformRule=function(W){W.cssText=UUA(this,W.parsedCssText,W);W.selector===":root"&&(W.selector=":host > *")};
var UUA=function(W,P,x){P=P.replace(xUZ,function(I,O,B,Y){return W._produceCssProperties(I,O,B,Y,x)});
return W._consumeCssProperties(P,x)};
_.J=s8.prototype;_.J._getInitialValueForProperty=function(W){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(W)};
_.J._fallbacksFromPreviousRules=function(W){for(var P=this,x=W;x.parent;)x=x.parent;var I={},O=!1;oc8(x,function(B){(O=O||B===W)||B.selector===W.selector&&Object.assign(I,P._cssTextToMap(B.parsedCssText))});
return I};
_.J._consumeCssProperties=function(W,P){for(var x;x=IEd.exec(W);){var I=x[0],O=x[1];x=x.index;var B=x+I.indexOf("@apply"),Y=x+I.length;I=W.slice(0,B);W=W.slice(Y);B=P?this._fallbacksFromPreviousRules(P):{};Object.assign(B,this._cssTextToMap(I));O=this._atApplyToCssProperties(O,B);W=I+O+W;IEd.lastIndex=x+O.length}return W};
_.J._atApplyToCssProperties=function(W,P){W=W.replace(eSZ,"");var x=[],I=this._map.get(W);I||(this._map.set(W,{}),I=this._map.get(W));if(I){this._currentElement&&(I.dependants[this._currentElement]=!0);var O,B=I.properties;for(O in B){var Y=P&&P[O];I=[O,": var(",W,"_-_",O];Y&&I.push(",",Y.replace(aEc,""));I.push(")");aEc.test(B[O])&&I.push(" !important");x.push(I.join(""))}}return x.join("; ")};
_.J._replaceInitialOrInherit=function(W,P){var x=cni.exec(P);x&&(P=x[1]?this._getInitialValueForProperty(W):"apply-shim-inherit");return P};
_.J._cssTextToMap=function(W,P){P=P===void 0?!1:P;W=W.split(";");for(var x,I,O={},B=0;B<W.length;B++)if(x=W[B])I=x.split(":"),I.length>1&&(x=I[0].trim(),I=I.slice(1).join(":"),P&&(I=this._replaceInitialOrInherit(x,I)),O[x]=I);return O};
_.J._invalidateMixinEntry=function(W){if(kZZ)for(var P in W.dependants)P!==this._currentElement&&kZZ(P)};
_.J._produceCssProperties=function(W,P,x,I,O){var B=this;x&&SeA(x,function(z,D){D&&B._map.get(D)&&(I="@apply "+D+";")});
if(!I)return W;var Y=this._consumeCssProperties(""+I,O);O=W.slice(0,W.indexOf("--"));var K=Y=this._cssTextToMap(Y,!0),Z=this._map.get(P),d=Z&&Z.properties;d?K=Object.assign(Object.create(d),Y):this._map.set(P,K);var v=[],m,t=!1;for(m in K){var C=Y[m];C===void 0&&(C="initial");!d||m in d||(t=!0);v.push(P+"_-_"+m+": "+C)}t&&this._invalidateMixinEntry(Z);Z&&(Z.properties=K);x&&(O=W+";"+O);return O+v.join("; ")+";"};
s8.prototype.detectMixin=s8.prototype.detectMixin;s8.prototype.transformStyle=s8.prototype.JSC$9076_transformStyle;s8.prototype.transformCustomStyle=s8.prototype.transformCustomStyle;s8.prototype.transformRules=s8.prototype.transformRules;s8.prototype.transformRule=s8.prototype.transformRule;s8.prototype.transformTemplate=s8.prototype.transformTemplate;s8.prototype._separator="_-_";Object.defineProperty(s8.prototype,"invalidCallback",{get:function(){return kZZ},
set:function(W){kZZ=W}});var vz=new s8,X7P=function(){this.customStyleInterface=null;vz.invalidCallback=OPW},ms=function(W){!W.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(W.customStyleInterface=window.ShadyCSS.CustomStyleInterface,W.customStyleInterface.transformCallback=function(P){vz.transformCustomStyle(P)},W.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){W.customStyleInterface.enqueued&&W.flushCustomStyles()})})};
_.J=X7P.prototype;_.J.prepareTemplate=function(W,P){ms(this);u3C(W)===""&&(IsS[P]=W,P=vz.transformTemplate(W,P),W._styleAst=P)};
_.J.flushCustomStyles=function(){ms(this);if(this.customStyleInterface){var W=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var P=0;P<W.length;P++){var x=this.customStyleInterface.getStyleForCustomStyle(W[P]);x&&vz.transformCustomStyle(x)}this.customStyleInterface.enqueued=!1}}};
_.J.styleSubtree=function(W,P){ms(this);P&&$Ix(W,P);if(W.shadowRoot)for(this.styleElement(W),W=W.shadowRoot.children||W.shadowRoot.childNodes,P=0;P<W.length;P++)this.styleSubtree(W[P]);else for(W=W.children||W.childNodes,P=0;P<W.length;P++)this.styleSubtree(W[P])};
_.J.styleElement=function(W){ms(this);var P=W.localName,x;P?P.indexOf("-")>-1?x=P:x=W.getAttribute&&W.getAttribute("is")||"":x=W.is;P=IsS[x];if(!(P&&u3C(P)!==""||!P||JMW(P))){if(JMW(P)||P._applyShimValidatingVersion!==P._applyShimNextVersion)this.prepareTemplate(P,x),ncG(P);if(W=W.shadowRoot)if(W=W.querySelector("style"))W.__cssRules=P._styleAst,W.textContent=yMR(P._styleAst)}};
_.J.styleDocument=function(W){ms(this);this.styleSubtree(document.body,W)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var VQ=new X7P,fEP=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(W,P){VQ.flushCustomStyles();VQ.prepareTemplate(W,P)},
prepareTemplateStyles:function(W,P,x){window.ShadyCSS.prepareTemplate(W,P,x)},
prepareTemplateDom:function(){},
styleSubtree:function(W,P){VQ.flushCustomStyles();VQ.styleSubtree(W,P)},
styleElement:function(W){VQ.flushCustomStyles();VQ.styleElement(W)},
styleDocument:function(W){VQ.flushCustomStyles();VQ.styleDocument(W)},
getComputedStyleValue:function(W,P){return wqC(W,P)},
flushCustomStyles:function(){VQ.flushCustomStyles()},
nativeCss:Yem,nativeShadow:bC7,cssBuild:fJ,disableRuntime:BwW};fEP&&(window.ShadyCSS.CustomStyleInterface=fEP)}window.ShadyCSS.ApplyShim=vz;var NwZ;NwZ=window.ShadyCSS;_.th=id(function(W){W=uBw(q_(W));var P=ifW?W:w7k(W),x=hS3(P),I={x:"pan-x",y:"pan-y",none:"none",all:"auto"};W=function(){return P.call(this)||this};
_.A(W,P);W.prototype.created=function(){};
W.prototype.__attributeReaction=function(O,B,Y){(this.__dataAttributes&&this.__dataAttributes[O]||O==="disable-upgrade")&&this.attributeChangedCallback(O,B,Y,null)};
W.prototype.setAttribute=function(O,B){if(jiz&&!this._legacyForceObservedAttributes){var Y=this.getAttribute(O);P.prototype.setAttribute.call(this,O,B);this.__attributeReaction(O,Y,String(B))}else P.prototype.setAttribute.call(this,O,B)};
W.prototype.removeAttribute=function(O){if(jiz&&!this._legacyForceObservedAttributes){var B=this.getAttribute(O);P.prototype.removeAttribute.call(this,O);this.__attributeReaction(O,B,null)}else P.prototype.removeAttribute.call(this,O)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||P.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(O){return P.prototype._canApplyPropertyDefault.call(this,O)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(O))};
W.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(P.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
W.prototype.attached=function(){};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(P.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
W.prototype.detached=function(){};
W.prototype.attributeChangedCallback=function(O,B,Y,K){B!==Y&&(O=="disable-upgrade"?this.__isUpgradeDisabled&&Y==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Sk)(this).isConnected&&this.connectedCallback()):(P.prototype.attributeChangedCallback.call(this,O,B,Y,K),this.attributeChanged(O,B,Y)))};
W.prototype.attributeChanged=function(){};
W.prototype._initializeProperties=function(){if(DN&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var O=Object.getPrototypeOf(this);O.hasOwnProperty("__hasRegisterFinished")||(this._registered(),O.__hasRegisterFinished=!0);P.prototype._initializeProperties.call(this);this.root=this;this.created();jiz&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
W.prototype._takeAttributes=function(){for(var O=this.attributes,B=0,Y=O.length;B<Y;B++){var K=O[B];this.__attributeReaction(K.name,null,K.value)}};
W.prototype._registered=function(){};
W.prototype.ready=function(){this._ensureAttributes();P.prototype.ready.call(this)};
W.prototype._ensureAttributes=function(){};
W.prototype._applyListeners=function(){};
W.prototype.serialize=function(O){return this._serializeValue(O)};
W.prototype.deserialize=function(O,B){return this._deserializeValue(O,B)};
W.prototype.reflectPropertyToAttribute=function(O,B,Y){this._propertyToAttribute(O,B,Y)};
W.prototype.serializeValueToAttribute=function(O,B,Y){this._valueToNodeAttribute(Y||this,O,B)};
W.prototype.extend=function(O,B){if(!O||!B)return O||B;for(var Y=Object.getOwnPropertyNames(B),K=0,Z=void 0;K<Y.length&&(Z=Y[K]);K++){var d=Object.getOwnPropertyDescriptor(B,Z);d&&Object.defineProperty(O,Z,d)}return O};
W.prototype.mixin=function(O,B){for(var Y in B)O[Y]=B[Y];return O};
W.prototype.chainObject=function(O,B){O&&B&&O!==B&&(O.__proto__=B);return O};
W.prototype.instanceTemplate=function(O){O=this.constructor._contentForTemplate(O);return document.importNode(O,!0)};
W.prototype.fire=function(O,B,Y){Y=Y||{};B=B===null||B===void 0?{}:B;O=new Event(O,{bubbles:Y.bubbles===void 0?!0:Y.bubbles,cancelable:!!Y.cancelable,composed:Y.composed===void 0?!0:Y.composed});O.detail=B;(0,_.Sk)(Y.node||this).dispatchEvent(O);return O};
W.prototype.listen=function(O,B,Y){O=O||this;var K=this.__boundListeners||(this.__boundListeners=new WeakMap),Z=K.get(O);Z||(Z={},K.set(O,Z));K=B+Y;Z[K]||(Z[K]=this._addMethodEventListenerToNode(O,B,Y,this))};
W.prototype.unlisten=function(O,B,Y){O=O||this;var K=this.__boundListeners&&this.__boundListeners.get(O);Y=B+Y;var Z=K&&K[Y];Z&&(this._removeEventListenerFromNode(O,B,Z),K[Y]=null)};
W.prototype.setScrollDirection=function(O,B){_.GY(B||this,I[O]||"auto")};
W.prototype.$$=function(O){return this.root.querySelector(O)};
W.prototype.distributeContent=function(){var O=_.VS(this);window.ShadyDOM&&O.shadowRoot&&ShadyDOM.flush()};
W.prototype.getEffectiveChildNodes=function(){return _.VS(this).getEffectiveChildNodes()};
W.prototype.queryDistributedElements=function(O){return _.VS(this).queryDistributedElements(O)};
W.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(O){return O.nodeType===Node.ELEMENT_NODE})};
W.prototype.getEffectiveTextContent=function(){for(var O=this.getEffectiveChildNodes(),B=[],Y=0,K;K=O[Y];Y++)K.nodeType!==Node.COMMENT_NODE&&B.push(K.textContent);return B.join("")};
W.prototype.queryEffectiveChildren=function(O){return(O=this.queryDistributedElements(O))&&O[0]};
W.prototype.queryAllEffectiveChildren=function(O){return this.queryDistributedElements(O)};
W.prototype.getContentChildNodes=function(O){return(O=this.root.querySelector(O||"slot"))?_.VS(O).getDistributedNodes():[]};
W.prototype.getContentChildren=function(O){return this.getContentChildNodes(O).filter(function(B){return B.nodeType===Node.ELEMENT_NODE})};
W.prototype.isLightDescendant=function(O){return this!==O&&(0,_.Sk)(this).contains(O)&&(0,_.Sk)(this).getRootNode()===(0,_.Sk)(O).getRootNode()};
W.prototype.isLocalDescendant=function(O){return this.root===(0,_.Sk)(O).getRootNode()};
W.prototype.scopeSubtree=function(O,B){return XOR(O,B===void 0?!1:B)};
W.prototype.getComputedStyleValue=function(O){return NwZ.getComputedStyleValue(this,O)};
W.prototype.debounce=function(O,B,Y){this._debouncers=this._debouncers||{};return this._debouncers[O]=_.Bz(this._debouncers[O],Y>0?_.rl.after(Y):ES,B.bind(this))};
W.prototype.isDebouncerActive=function(O){this._debouncers=this._debouncers||{};O=this._debouncers[O];return!(!O||!O.isActive())};
W.prototype.flushDebouncer=function(O){this._debouncers=this._debouncers||{};(O=this._debouncers[O])&&O.flush()};
W.prototype.cancelDebouncer=function(O){this._debouncers=this._debouncers||{};(O=this._debouncers[O])&&O.cancel()};
W.prototype.async=function(O,B){return B>0?_.rl.run(O.bind(this),B):~ES.run(O.bind(this))};
W.prototype.cancelAsync=function(O){O<0?ES.cancel(~O):_.rl.cancel(O)};
W.prototype.create=function(O,B){O=document.createElement(O);if(B)if(O.setProperties)O.setProperties(B);else for(var Y in B)O[Y]=B[Y];return O};
W.prototype.elementMatches=function(O,B){return CBP(B||this,O)};
W.prototype.toggleAttribute=function(O,B){var Y=this;arguments.length===3&&(Y=arguments[2]);arguments.length==1&&(B=!Y.hasAttribute(O));if(B)return(0,_.Sk)(Y).setAttribute(O,""),!0;(0,_.Sk)(Y).removeAttribute(O);return!1};
W.prototype.toggleClass=function(O,B,Y){Y=Y||this;arguments.length==1&&(B=!Y.classList.contains(O));B?Y.classList.add(O):Y.classList.remove(O)};
W.prototype.transform=function(O,B){B=B||this;B.style.webkitTransform=O;B.style.transform=O};
W.prototype.translate3d=function(O,B,Y,K){this.transform("translate3d("+O+","+B+","+Y+")",K||this)};
W.prototype.arrayDelete=function(O,B){if(Array.isArray(O)){if(B=O.indexOf(B),B>=0)return O.splice(B,1)}else if(B=KJ(this,O).indexOf(B),B>=0)return this.splice(O,B,1);return null};
W.prototype._logger=function(O,B){Array.isArray(B)&&B.length===1&&Array.isArray(B[0])&&(B=B[0]);switch(O){case "log":case "warn":case "error":console[O].apply(console,_.ju(B))}};
W.prototype._log=function(){this._logger("log",_.tH.apply(0,arguments))};
W.prototype._warn=function(){this._logger("warn",_.tH.apply(0,arguments))};
W.prototype._error=function(){this._logger("error",_.tH.apply(0,arguments))};
W.prototype._logf=function(O){return["[%s::%s]",this.is,O].concat(_.ju(_.tH.apply(1,arguments)))};
_.N1.Object.defineProperties(W.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var O=(0,_.Sk)(this).getRootNode();return O instanceof DocumentFragment?O.host:O}}});
_.N1.Object.defineProperties(W,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return jiz&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],k4W(this.prototype)),this.__observedAttributes):x.call(this).concat("disable-upgrade")}}});
W.prototype.is="";return W});Polymer.FlattenedNodesObserver=p7i;Polymer.DomApi=E6w;Polymer.EventApi=ue;Polymer.dom=_.VS;Polymer.dom.matchesSelector=CBP;Polymer.dom.flush=_.ZR;Polymer.dom.addDebouncer=_.nh;Polymer.DirMixin=w7k;Polymer.RenderStatus={beforeNextRender:_.bot,afterNextRender:_.Xm,flush:function(){for(;eJt.length||US.length;)HoR(eJt),HoR(US);kQ=!1}};Polymer.LegacyElementMixin=_.th;var lEA;lEA=yQ._mutablePropertyChange;var Twb={properties:{mutableData:Boolean},_shouldPropertyChange:function(W,P,x){return lEA(this,W,P,x,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(W,P,x){return lEA(this,W,P,x,!0)}};
Polymer.OptionalMutableDataBehavior=Twb;var d$R={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},t_t={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},V_W=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},t_t),rnc=(0,_.th)(HTMLElement),x0o=function(W,P){W||console.warn("Polymer.Class requires `info` argument");P=P?P(rnc):rnc;P=pXS(W,P,W.behaviors);P.is=P.prototype.is=
W.is;return P};Polymer.Class=x0o;Polymer.mixinBehaviors=function(W,P){return pXS({},(0,_.th)(P),W)};
Polymer.GenerateClassFromInfo=pXS;_.vM=function(W){var P=typeof W==="function"?W:_.vM.Class(W);W._legacyForceObservedAttributes&&(P.prototype._legacyForceObservedAttributes=W._legacyForceObservedAttributes);customElements.define(P.is,P);return P};
_.vM.Class=x0o;Polymer._polymerFn=_.vM;var iKz=window.onLegacyPolymerFunctionDefinedCallback;iKz&&iKz();var OrC={templatize:function(W,P){this._templatizerTemplate=W;this.ctor=w7(W,this,{mutableData:!!P,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(W){return new this.ctor(W)},
modelForElement:function(W){return DzA(this._templatizerTemplate,W)}};Polymer.Templatizer=OrC;_.ph=(0,_.th)(HTMLElement).prototype;Polymer.Base=_.ph;var QzA=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.lV=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.A(_.lV,PolymerFakeBaseClass);var TY=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.A(TY,PolymerFakeBaseClass);var C4U=Symbol("Nd"),$$W=[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 RSW=RSW||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},FZ3;(function(W){function P(N,Io,F){var nm=T.get(N);if(!nm){if(!F)return;nm=new a;T.set(N,nm)}N=nm.get(Io);if(!N){if(!F)return;N=new a;nm.set(Io,N)}return N}
function x(N,Io,F){if(I(N,Io,F))return!0;Io=t(Io);return Io!==null?x(N,Io,F):!1}
function I(N,Io,F){Io=P(Io,F,!1);return Io===void 0?!1:!!Io.has(N)}
function O(N,Io,F){if(I(N,Io,F))return B(N,Io,F);Io=t(Io);if(Io!==null)return O(N,Io,F)}
function B(N,Io,F){Io=P(Io,F,!1);if(Io!==void 0)return Io.get(N)}
function Y(N,Io){var F=K(N,Io);N=t(N);if(N===null)return F;var nm=Y(N,Io);if(nm.length<=0)return F;if(F.length<=0)return nm;Io=new k;N=[];F=_.n(F);for(var pm=F.next();!pm.done;pm=F.next())pm=pm.value,Io.has(pm)||(Io.add(pm),N.push(pm));F=_.n(nm);for(nm=F.next();!nm.done;nm=F.next())nm=nm.value,Io.has(nm)||(Io.add(nm),N.push(nm));return N}
function K(N,Io){N=P(N,Io,!1);var F=[];N&&N.forEach(function(nm,pm){return F.push(pm)});
return F}
function Z(N){return N===void 0}
function d(N){return typeof N==="object"?N!==null:typeof N==="function"}
function v(N){return typeof N==="function"}
function m(N){return typeof N==="symbol"?N:String(N)}
function t(N){var Io=Object.getPrototypeOf(N);if(typeof N!=="function"||N===w||Io!==w)return Io;var F=Object.getPrototypeOf(N.prototype);if(F==null||F===Object.prototype)return Io;F=F.constructor;return typeof F!=="function"||F===N?Io:F}
function C(){function N(){this._keys=[];this._values=[];this._cache=Io}
var Io={};N.prototype={get size(){return this._keys.length},has:function(F){return F===this._cache?!0:this._find(F)>=0?(this._cache=F,!0):!1},
get:function(F){var nm=this._find(F);if(nm>=0)return this._cache=F,this._values[nm]},
set:function(F,nm){this.delete(F);this._keys.push(F);this._values.push(nm);this._cache=F;return this},
delete:function(F){F=this._find(F);return F>=0?(this._keys.splice(F,1),this._values.splice(F,1),this._cache=Io,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=Io},
forEach:function(F){for(var nm=this.size,pm=0;pm<nm;++pm){var zR=this._keys[pm],Am=this._values[pm];this._cache=zR;F.call(this,Am,zR,this)}},
_find:function(F){for(var nm=this._keys,pm=nm.length,zR=0;zR<pm;++zR)if(nm[zR]===F)return zR;return-1}};
return N}
function z(){function N(){this._map=new a}
N.prototype={get size(){return this._map.length},has:function(Io){return this._map.has(Io)},
add:function(Io){this._map.set(Io,Io);return this},
delete:function(Io){return this._map.delete(Io)},
clear:function(){this._map.clear()},
forEach:function(Io,F){this._map.forEach(Io,F)}};
return N}
function D(){function N(){this._key=F()}
function Io($W,ao){for(var e8=0;e8<ao;++e8)$W[e8]=Math.random()*255|0}
function F(){do{if(pm)var $W=pm.randomBytes(16);else typeof Uint8Array==="function"?($W=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues($W):Io($W,16)):($W=Array(16),Io($W,16));$W[6]=$W[6]&79|64;$W[8]=$W[8]&191|128;for(var ao="",e8=0;e8<16;++e8){var iC=$W[e8];if(e8===4||e8===6||e8===8)ao+="-";iC<16&&(ao+="0");ao+=iC.toString(16).toLowerCase()}$W="@@WeakMap@@"+ao}while(zR.call(Am,$W));Am[$W]=!0;return $W}
function nm($W,ao){if(!zR.call($W,kW)){if(!ao)return;Object.defineProperty($W,kW,{value:Object.create(null)})}return $W[kW]}
var pm=typeof global!=="undefined"&&typeof RSW==="object"&&typeof require==="function"&&require("crypto"),zR=Object.prototype.hasOwnProperty,Am={},kW=F();N.prototype={has:function($W){return($W=nm($W,!1))?this._key in $W:!1},
get:function($W){if($W=nm($W,!1))return $W[this._key]},
set:function($W,ao){nm($W,!0)[this._key]=ao;return this},
delete:function($W){return($W=nm($W,!1))&&this._key in $W?delete $W[this._key]:!1},
clear:function(){this._key=F()}};
return N}
var w=Object.getPrototypeOf(Function),a=typeof Map==="function"?Map:C(),k=typeof Set==="function"?Set:z(),T=new (typeof WeakMap==="function"?WeakMap:D());W.decorate=function(N,Io,F,nm){if(Z(nm)){if(Z(F)){if(!Array.isArray(N))throw new TypeError;if(!v(Io))throw new TypeError;for(F=N.length-1;F>=0;--F)if(nm=(0,N[F])(Io),!Z(nm)){if(!v(nm))throw new TypeError;Io=nm}return Io}if(!Array.isArray(N))throw new TypeError;if(!d(Io))throw new TypeError;F=m(F);for(nm=N.length-1;nm>=0;--nm)(0,N[nm])(Io,F)}else{if(Array.isArray(N))if(d(Io)){if(Z(F))throw new TypeError;
if(!d(nm))throw new TypeError;}else throw new TypeError;else throw new TypeError;F=m(F);for(var pm=N.length-1;pm>=0;--pm){var zR=(0,N[pm])(Io,F,nm);if(!Z(zR)){if(!d(zR))throw new TypeError;nm=zR}}return nm}};
W.metadata=function(N,Io){return function(F,nm){if(Z(nm)){if(!v(F))throw new TypeError;P(F,void 0,!0).set(N,Io)}else{if(!d(F))throw new TypeError;nm=m(nm);P(F,nm,!0).set(N,Io)}}};
W.defineMetadata=function(N,Io){var F;if(d(Io))Z(F)||(F=m(F));else throw new TypeError;P(Io,F,!0).set("parameters",N)};
W.hasMetadata=function(N,Io,F){if(d(Io))Z(F)||(F=m(F));else throw new TypeError;return x(N,Io,F)};
W.hasOwnMetadata=function(N,Io,F){if(d(Io))Z(F)||(F=m(F));else throw new TypeError;return I(N,Io,F)};
W.getMetadata=function(N,Io,F){if(d(Io))Z(F)||(F=m(F));else throw new TypeError;return O(N,Io,F)};
W.getOwnMetadata=function(N,Io,F){if(d(Io))Z(F)||(F=m(F));else throw new TypeError;return B(N,Io,F)};
W.getMetadataKeys=function(N,Io){if(d(N))Z(Io)||(Io=m(Io));else throw new TypeError;return Y(N,Io)};
W.getOwnMetadataKeys=function(N,Io){if(d(N))Z(Io)||(Io=m(Io));else throw new TypeError;return K(N,Io)};
W.deleteMetadata=function(N,Io,F){if(d(Io))Z(F)||(F=m(F));else throw new TypeError;var nm=P(Io,F,!1);if(!Z(nm)){if(!nm.delete(N))return!1;if(nm.size>0)return!0;N=T.get(Io);N.delete(F);if(N.size>0)return!0;T.delete(Io);return!0}};
(function(N){if(typeof N.Reflect!=="undefined"){if(N.Reflect!==W)for(var Io in W)N.Reflect[Io]=W[Io]}else N.Reflect=W})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(FZ3||(FZ3={}));var Hko=self;var qLc=[0,_.l9,_.rg,_.l9];var LZA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(LZA,_.aK);var WBZ=_.Lx(LZA,[0,_.PiA,_.i9,qLc,_.rg,_.F0]);_.J8(_.r7,_.vn);_.J=_.r7.prototype;_.J.start=function(){this.stop();this.usingListeners_=!1;var W=PxP(this),P=xBl(this);W&&!P&&this.JSC$9119_win_.mozRequestAnimationFrame?(this.JSC$9119_id_=_.uq(this.JSC$9119_win_,"MozBeforePaint",this.callback_),this.JSC$9119_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9119_id_=W&&P?W.call(this.JSC$9119_win_,this.callback_):this.JSC$9119_win_.setTimeout(Bkc(this.callback_),20)};
_.J.stop=function(){if(this.isActive()){var W=PxP(this),P=xBl(this);W&&!P&&this.JSC$9119_win_.mozRequestAnimationFrame?Z1(this.JSC$9119_id_):W&&P?P.call(this.JSC$9119_win_,this.JSC$9119_id_):this.JSC$9119_win_.clearTimeout(this.JSC$9119_id_)}this.JSC$9119_id_=null};
_.J.fire=function(){this.stop();this.JSC$9121_doAction_()};
_.J.isActive=function(){return this.JSC$9119_id_!=null};
_.J.JSC$9121_doAction_=function(){this.usingListeners_&&this.JSC$9119_id_&&Z1(this.JSC$9119_id_);this.JSC$9119_id_=null;this.JSC$9119_listener_.call(this.handler_,_.O1())};
_.J.disposeInternal=function(){this.stop();_.r7.superClass_.disposeInternal.call(this)};
var PxP=function(W){W=W.JSC$9119_win_;return W.requestAnimationFrame||W.webkitRequestAnimationFrame||W.mozRequestAnimationFrame||W.oRequestAnimationFrame||W.msRequestAnimationFrame||null},xBl=function(W){W=W.JSC$9119_win_;
return W.cancelAnimationFrame||W.cancelRequestAnimationFrame||W.webkitCancelRequestAnimationFrame||W.mozCancelRequestAnimationFrame||W.oCancelRequestAnimationFrame||W.msCancelRequestAnimationFrame||null};_.WO=function(W,P,x){_.vn.call(this);this.JSC$9122_listener_=x!=null?W.bind(x):W;this.JSC$9122_interval_=P;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9122_timer_=null};
_.A(_.WO,_.vn);_.J=_.WO.prototype;_.J.fire=function(W){this.args_=arguments;this.JSC$9122_timer_||this.pauseCount_?this.shouldFire_=!0:I5i(this)};
_.J.stop=function(){this.JSC$9122_timer_&&(_.xW.clearTimeout(this.JSC$9122_timer_),this.JSC$9122_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.J.pause=function(){this.pauseCount_++};
_.J.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9122_timer_||(this.shouldFire_=!1,I5i(this))};
_.J.disposeInternal=function(){_.vn.prototype.disposeInternal.call(this);this.stop()};
var I5i=function(W){W.JSC$9122_timer_=AW(function(){W.JSC$9122_timer_=null;W.shouldFire_&&!W.pauseCount_&&(W.shouldFire_=!1,I5i(W))},W.JSC$9122_interval_);
var P=W.args_;W.args_=null;W.JSC$9122_listener_.apply(null,P)};var ORz=function(W,P){this.childIterator_=W[_.xW.Symbol.iterator]();this.mapFn_=P};
ORz.prototype[Symbol.iterator]=function(){return this};
ORz.prototype.next=function(){var W=this.childIterator_.next();return{value:W.done?void 0:this.mapFn_.call(void 0,W.value),done:W.done}};
var Jbp=function(W,P){return new ORz(W,P)};var BEA={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 mOm=function(W){var P=nzA(W);if(!P)throw Error("Rd`"+W);return P},nzA=function(W){var P={};
W=String(W);var x=W.charAt(0)=="#"?W:"#"+W;if(Ynd.test(x))return P.hex=SH7(x),P.type="hex",P;x=jXo(W);return x.length?(P.hex=LAd(x[0],x[1],x[2]),P.type="rgb",P):BEA&&(W=BEA[W.toLowerCase()])?(P.hex=W,P.type="named",P):null},ybc=/#(.)(.)(.)/,SH7=function(W){if(!Ynd.test(W))throw Error("Td`"+W);
W.length==4&&(W=W.replace(ybc,"#$1$1$2$2$3$3"));return W.toLowerCase()},Vbt=function(W){W=SH7(W);
W=parseInt(W.slice(1),16);return[W>>16,W>>8&255,W&255]},LAd=function(W,P,x){W=Number(W);
P=Number(P);x=Number(x);if(W!=(W&255)||P!=(P&255)||x!=(x&255))throw Error("Ud`"+W+"`"+P+"`"+x);P=W<<16|P<<8|x;return W<16?"#"+(16777216|P).toString(16).slice(1):"#"+P.toString(16)},Ynd=/^#(?:[0-9a-f]{3}){1,2}$/i,KBd=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,jXo=function(W){var P=W.match(KBd);
if(P){W=Number(P[1]);var x=Number(P[2]);P=Number(P[3]);if(W>=0&&W<=255&&x>=0&&x<=255&&P>=0&&P<=255)return[W,x,P]}return[]};var ZRp={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},Ga=ZRp;Ga=ZRp;var aJU,ozd,SnZ;aJU=function(W,P){switch(P){case 1:return W%4!=0||W%100==0&&W%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
ozd=function(W,P,x,I,O){W=new Date(W,P,x);O=O||0;return W.valueOf()+(((I!==void 0?I:3)-O+7)%7-((W.getDay()+6)%7-O+7)%7)*864E5};
_.jY=function(W,P,x){typeof W==="number"?(this.date=SnZ(W,P||0,x||1),ueW(this,x||1)):_.Jw(W)?(this.date=SnZ(W.getFullYear(),W.getMonth(),W.getDate()),ueW(this,W.getDate())):(this.date=new Date(_.O1()),W=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),ueW(this,W))};
SnZ=function(W,P,x){P=new Date(W,P,x);W>=0&&W<100&&P.setFullYear(P.getFullYear()-1900);return P};
_.J=_.jY.prototype;_.J.firstDayOfWeek_=Ga.FIRSTDAYOFWEEK;_.J.firstWeekCutOffDay_=Ga.FIRSTWEEKCUTOFFDAY;_.J.clone=function(){var W=new _.jY(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.J.getFullYear=function(){return this.date.getFullYear()};
_.J.getYear=function(){return this.getFullYear()};
_.J.getMonth=function(){return this.date.getMonth()};
_.J.getDate=function(){return this.date.getDate()};
_.J.getTime=function(){return this.date.getTime()};
_.J.getDay=function(){return this.date.getDay()};
_.J.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.J.getUTCMonth=function(){return this.date.getUTCMonth()};
_.J.getUTCDate=function(){return this.date.getUTCDate()};
_.J.getUTCDay=function(){return this.date.getDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.J.set=function(W){this.date=new Date(W.getFullYear(),W.getMonth(),W.getDate())};
_.J.setFullYear=function(W){this.date.setFullYear(W)};
_.J.setYear=function(W){this.setFullYear(W)};
_.J.setMonth=function(W){this.date.setMonth(W)};
_.J.setDate=function(W){this.date.setDate(W)};
_.J.setTime=function(W){this.date.setTime(W)};
_.J.setUTCFullYear=function(W){this.date.setUTCFullYear(W)};
_.J.setUTCMonth=function(W){this.date.setUTCMonth(W)};
_.J.setUTCDate=function(W){this.date.setUTCDate(W)};
_.J.add=function(W){if(W.years||W.months){var P=this.getMonth()+W.months+W.years*12,x=this.getYear()+Math.floor(P/12);P%=12;P<0&&(P+=12);var I=Math.min(aJU(x,P),this.getDate());this.setDate(1);this.setFullYear(x);this.setMonth(P);this.setDate(I)}W.days&&(x=this.getYear(),P=x>=0&&x<=99?-1900:0,W=new Date((new Date(x,this.getMonth(),this.getDate(),12)).getTime()+W.days*864E5),this.setDate(1),this.setFullYear(W.getFullYear()+P),this.setMonth(W.getMonth()),this.setDate(W.getDate()),ueW(this,W.getDate()))};
_.J.JSC$9135_toIsoString=function(W){var P=this.getFullYear(),x=P<0?"-":P>=1E4?"+":"";return[x+_.I_(Math.abs(P),x?6:4),_.I_(this.getMonth()+1,2),_.I_(this.getDate(),2)].join(W?"-":"")};
_.J.equals=function(W){return!(!W||this.getYear()!=W.getYear()||this.getMonth()!=W.getMonth()||this.getDate()!=W.getDate())};
_.J.toString=function(){return this.JSC$9135_toIsoString()};
var ueW=function(W,P){W.getDate()!=P&&W.date.setUTCHours(W.date.getUTCHours()+(W.getDate()<P?1:-1))};
_.jY.prototype.valueOf=function(){return this.date.valueOf()};var Ch=function(W,P,x,I,O){this.reversed=!!P;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!x;W&&QQ(this,W,I);this.depth=O!=void 0?O:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.J8(Ch,JZ);var QQ=function(W,P,x,I){if(W.node=P)W.tagType=typeof x==="number"?x:W.node.nodeType!=1?0:W.reversed?-1:1;typeof I==="number"&&(W.depth=I)};
_.J=Ch.prototype;_.J.JSC$9150_copyFrom=function(W){this.node=W.node;this.tagType=W.tagType;this.depth=W.depth;this.reversed=W.reversed;this.constrained=W.constrained};
_.J.clone=function(){return new Ch(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.J.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Bp;var W=this.node;var P=this.reversed?-1:1;if(this.tagType==P){var x=this.reversed?W.lastChild:W.firstChild;x?QQ(this,x):QQ(this,W,P*-1)}else(x=this.reversed?W.previousSibling:W.nextSibling)?QQ(this,x):QQ(this,W.parentNode,P*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(W=this.node)?n0(W):Bp};
_.J.equals=function(W){return W.node==this.node&&(!this.node||W.tagType==this.tagType)};
_.J.splice=function(W){var P=this.node,x=this.reversed?1:-1;this.tagType==x&&(this.tagType=x*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Ch.prototype.next.call(this);this.reversed=!this.reversed;x=_.xi(arguments[0])?arguments[0]:arguments;for(var I=x.length-1;I>=0;I--)_.MQ(x[I],P);_.oE(P)};var dBl=function(){},Ah=function(W){for(var P=[],x=W.getTextRangeCount(),I=0;I<x;I++)P.push(W.getTextRange(I));
return P};
dBl.prototype.isReversed=function(){return!1};
dBl.prototype.getWindow=function(){return zD(_.GD(this.JSC$9152_getStartNode()))};
var sYz=function(W,P){Ch.call(this,W,P,!0)};
_.J8(sYz,Ch);var zP=function(W,P,x,I,O){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!O;if(W){this.startNode_=W;this.startOffset_=P;this.endNode_=x;this.endOffset_=I;if(W.nodeType==1&&W.tagName!="BR")if(W=W.childNodes,P=W[P])this.startNode_=P,this.startOffset_=0;else{W.length&&(this.startNode_=_.cd(W));var B=!0}x.nodeType==1&&((this.endNode_=x.childNodes[I])?this.endOffset_=0:this.endNode_=x)}Ch.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);B&&this.next()};
_.J8(zP,sYz);_.J=zP.prototype;_.J.JSC$9158_getStartNode=function(){return this.startNode_};
_.J.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)};
_.J.next=function(){return this.isLast()?Bp:zP.superClass_.next.call(this)};
_.J.JSC$9150_copyFrom=function(W){this.startNode_=W.startNode_;this.endNode_=W.endNode_;this.startOffset_=W.startOffset_;this.endOffset_=W.endOffset_;this.isReversed_=W.isReversed_;zP.superClass_.JSC$9150_copyFrom.call(this,W)};
_.J.clone=function(){var W=new zP(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);W.JSC$9150_copyFrom(this);return W};var vzp=function(){};
vzp.prototype.__iterator__=function(){return new zP(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var GP=function(W){this.range_=W};
_.J8(GP,vzp);var mBA=function(W){var P=_.GD(W).createRange();if(W.nodeType==3)P.setStart(W,0),P.setEnd(W,W.length);else if(EF(W)||W.nodeType==3){for(var x,I=W;(x=I.firstChild)&&(EF(x)||x.nodeType==3);)I=x;P.setStart(I,0);for(I=W;(x=I.lastChild)&&(EF(x)||x.nodeType==3);)I=x;P.setEnd(I,I.nodeType==1?I.childNodes.length:I.length)}else x=W.parentNode,W=Array.prototype.indexOf.call(x.childNodes,W),P.setStart(x,W),P.setEnd(x,W+1);return P},Vlz=function(W,P,x,I){var O=_.GD(W).createRange();
O.setStart(W,P);O.setEnd(x,I);return O};
_.J=GP.prototype;_.J.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.J.getContainer=function(){return this.range_.commonAncestorContainer};
_.J.compareBrowserRangeEndpoints=function(W,P,x){return this.range_.compareBoundaryPoints(x==1?P==1?_.xW.Range.START_TO_START:_.xW.Range.START_TO_END:P==1?_.xW.Range.END_TO_START:_.xW.Range.END_TO_END,W)};
_.J.isCollapsed=function(){return this.range_.collapsed};
_.J.select=function(W){this.selectInternal(zD(_.GD(this.range_.startContainer)).getSelection(),W)};
_.J.selectInternal=function(W){W.removeAllRanges();W.addRange(this.range_)};
_.J.insertNode=function(W,P){var x=this.range_.cloneRange();x.collapse(P);x.insertNode(W);x.detach();return W};
_.J.collapse=function(W){this.range_.collapse(W)};_.J8(iV,GP);iV.prototype.selectInternal=function(W,P){!P||this.isCollapsed()?iV.superClass_.selectInternal.call(this,W,P):(W.collapse(this.range_.endContainer,this.range_.endOffset),W.extend(this.range_.startContainer,this.range_.startOffset))};_.J8(Rh,GP);Rh.prototype.compareBrowserRangeEndpoints=function(W,P,x){return Rh.superClass_.compareBrowserRangeEndpoints.call(this,W,P,x)};
Rh.prototype.selectInternal=function(W,P){P?W.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):W.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var tl3=function(W){return _.Z2?new Rh(W):_.KW?new iV(W):new GP(W)};var E8=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},puZ;
_.J8(E8,dBl);puZ=function(W,P){var x=new E8;x.browserRangeWrapper_=W;x.isReversed_=!!P;return x};
_.jY3=function(W){W=_.Z2?new Rh(mBA(W)):_.KW?new iV(mBA(W)):new GP(mBA(W));return puZ(W)};
_.gQ=function(W,P,x,I){var O=new E8;O.isReversed_=QYd(W,P,x,I);if(_.Nt(W)&&!EF(W)){var B=W.parentNode;P=Array.prototype.indexOf.call(B.childNodes,W);W=B}_.Nt(x)&&!EF(x)&&(B=x.parentNode,I=Array.prototype.indexOf.call(B.childNodes,x),x=B);O.isReversed_?(O.startNode_=x,O.startOffset_=I,O.endNode_=W,O.endOffset_=P):(O.startNode_=W,O.startOffset_=P,O.endNode_=x,O.endOffset_=I);return O};
_.J=E8.prototype;_.J.clone=function(){var W=new E8;W.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();W.startNode_=this.startNode_;W.startOffset_=this.startOffset_;W.endNode_=this.endNode_;W.endOffset_=this.endOffset_;W.isReversed_=this.isReversed_;return W};
_.J.JSC$9152_getType=function(){return"text"};
_.J.getBrowserRangeObject=function(){return DR(this).range_};
_.J.getTextRangeCount=function(){return 1};
_.J.getTextRange=function(){return this};
var DR=function(W){var P;if(!(P=W.browserRangeWrapper_)){P=W.JSC$9152_getStartNode();var x=W.JSC$9152_getStartOffset(),I=W.JSC$9152_getEndNode(),O=W.JSC$9152_getEndOffset();P=_.Z2?new Rh(Vlz(P,x,I,O)):_.KW?new iV(Vlz(P,x,I,O)):new GP(Vlz(P,x,I,O));P=W.browserRangeWrapper_=P}return P};
_.J=E8.prototype;_.J.getContainer=function(){return DR(this).getContainer()};
_.J.JSC$9152_getStartNode=function(){return this.startNode_||(this.startNode_=DR(this).range_.startContainer)};
_.J.JSC$9152_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=DR(this).range_.startOffset};
_.J.JSC$9152_getEndNode=function(){return this.endNode_||(this.endNode_=DR(this).range_.endContainer)};
_.J.JSC$9152_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=DR(this).range_.endOffset};
_.J.isReversed=function(){return this.isReversed_};
_.J.JSC$9152_containsRange=function(W,P){if(W.JSC$9152_getType()=="text"){var x=DR(this);W=DR(W);P=P&&!W.isCollapsed();W=W.range_;x=P?x.compareBrowserRangeEndpoints(W,0,1)>=0&&x.compareBrowserRangeEndpoints(W,1,0)<=0:x.compareBrowserRangeEndpoints(W,0,0)>=0&&x.compareBrowserRangeEndpoints(W,1,1)<=0}else x=!1;return x};
_.J.isCollapsed=function(){return DR(this).isCollapsed()};
_.J.JSC$9152_getText=function(){return DR(this).range_.toString()};
_.J.__iterator__=function(){return new zP(this.JSC$9152_getStartNode(),this.JSC$9152_getStartOffset(),this.JSC$9152_getEndNode(),this.JSC$9152_getEndOffset())};
_.J.select=function(){DR(this).select(this.isReversed_)};
_.J.JSC$9152_removeContents=function(){var W=DR(this).range_;W.extractContents();if(W.startContainer.hasChildNodes()&&(W=W.startContainer.childNodes[W.startOffset])){var P=W.previousSibling;O2M(W)==""&&_.oE(W);P&&O2M(P)==""&&_.oE(P)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.J.insertNode=function(W,P){W=DR(this).insertNode(W,P);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return W};
_.J.collapse=function(W){W=this.isReversed()?!W:W;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(W);W?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Cxd=function(){};
_.J8(Cxd,dBl);Cxd.prototype.JSC$9152_containsRange=function(W,P){var x=Ah(this);W=Ah(W);return(P?Uz:_.WIx)(W,function(I){return Uz(x,function(O){return O.JSC$9152_containsRange(I,P)})})};
Cxd.prototype.insertNode=function(W,P){P?_.D9(W,this.JSC$9152_getStartNode()):_.MQ(W,this.JSC$9152_getEndNode());return W};var AbP,zpw=oQ().JSC$7231_document_.documentElement;AbP=zpw.requestFullscreen?"fullscreenchange":zpw.webkitRequestFullscreen?"webkitfullscreenchange":zpw.mozRequestFullScreen?"mozfullscreenchange":zpw.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var GKM=function(){var W=oQ().JSC$7231_document_;return!!(W.webkitIsFullScreen||W.mozFullScreen||W.msFullscreenElement||W.fullscreenElement)};var Mc=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.J8(Mc,Cxd);_.J=Mc.prototype;_.J.clone=function(){var W=new Mc;W.browserRanges_=_.Lm(this.browserRanges_);return W};
_.J.JSC$9152_getType=function(){return"mutli"};
_.J.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.J.getTextRangeCount=function(){return this.browserRanges_.length};
_.J.getTextRange=function(W){this.ranges_[W]||(this.ranges_[W]=puZ(tl3(this.browserRanges_[W])));return this.ranges_[W]};
_.J.getContainer=function(){if(!this.container_){for(var W=[],P=this.getTextRangeCount(),x=0;x<P;x++)W.push(this.getTextRange(x).getContainer());this.container_=FPm.apply(null,W)}return this.container_};
var $B=function(W){W.sortedRanges_||(W.sortedRanges_=Ah(W),W.sortedRanges_.sort(function(P,x){var I=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();var O=x.JSC$9152_getStartNode();x=x.JSC$9152_getStartOffset();return I==O&&P==x?0:QYd(I,P,O,x)?1:-1}));
return W.sortedRanges_};
_.J=Mc.prototype;_.J.JSC$9152_getStartNode=function(){return $B(this)[0].JSC$9152_getStartNode()};
_.J.JSC$9152_getStartOffset=function(){return $B(this)[0].JSC$9152_getStartOffset()};
_.J.JSC$9152_getEndNode=function(){return _.cd($B(this)).JSC$9152_getEndNode()};
_.J.JSC$9152_getEndOffset=function(){return _.cd($B(this)).JSC$9152_getEndOffset()};
_.J.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.J.JSC$9152_getText=function(){return Ah(this).map(function(W){return W.JSC$9152_getText()}).join("")};
_.J.__iterator__=function(){return new wQ(this)};
_.J.select=function(){var W=this.getWindow().getSelection();W.removeAllRanges();for(var P=this.getTextRangeCount(),x=0;x<P;x++)W.addRange(this.getTextRange(x).getBrowserRangeObject())};
_.J.JSC$9152_removeContents=function(){Ah(this).forEach(function(W){W.JSC$9152_removeContents()})};
_.J.collapse=function(W){if(!this.isCollapsed()){var P=W?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;P.collapse(W);this.ranges_=[P];this.sortedRanges_=[P];this.browserRanges_=[P.getBrowserRangeObject()]}};
var wQ=function(W){this.iterators_=null;this.currentIdx_=0;W&&(this.iterators_=$B(W).map(function(P){return _.N3W(P)}));
Ch.call(this,W?this.JSC$9158_getStartNode():null,!1,!0)};
_.J8(wQ,sYz);_.J=wQ.prototype;_.J.JSC$9158_getStartNode=function(){return this.iterators_[0].JSC$9158_getStartNode()};
_.J.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.J.next=function(){for(;this.currentIdx_<this.iterators_.length;){var W=this.iterators_[this.currentIdx_],P=W.next();if(P.done)this.currentIdx_++;else return QQ(this,W.node,W.tagType,W.depth),P}return Bp};
_.J.JSC$9150_copyFrom=function(W){this.iterators_=_.Lm(W.iterators_);wQ.superClass_.JSC$9150_copyFrom.call(this,W)};
_.J.clone=function(){var W=new wQ(null);W.JSC$9150_copyFrom(this);return W};var Ezw,QYd;_.jQ=function(){var W=window.getSelection();return W&&Ezw(W)};
Ezw=function(W){var P=!1;if(W.createRange)try{var x=W.createRange()}catch(O){return null}else if(W.rangeCount){if(W.rangeCount>1){x=new Mc;P=W.rangeCount;for(var I=0;I<P;I++)x.browserRanges_.push(W.getRangeAt(I));return x}x=W.getRangeAt(0);P=QYd(W.anchorNode,W.anchorOffset,W.focusNode,W.focusOffset)}else return null;return puZ(tl3(x),P)};
_.hh=function(W,P){return _.gQ(W,P,W,P)};
_.Hz=function(W,P,x,I){return _.gQ(W,P,x,I)};
QYd=function(W,P,x,I){if(W==x)return I<P;var O;if(W.nodeType==1&&P)if(O=W.childNodes[P])W=O,P=0;else if(_.wv(W,x))return!0;if(x.nodeType==1&&I)if(O=x.childNodes[I])x=O,I=0;else if(_.wv(x,W))return!1;return(RdA(W,x)||P-I)>0};var eY=function(){_.tW.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.mx)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.mx)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.mx)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.mx)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.mx)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.mx)(this.dispatchProgressEvent_,this)};
_.J8(eY,_.tW);eY.prototype.abort=function(){try{this.reader_.abort()}catch(W){throw new RMA(W,"aborting read");}};
eY.prototype.getError=function(){return this.reader_.error&&new RMA(this.reader_.error,"reading file")};
eY.prototype.dispatchProgressEvent_=function(W){this.dispatchEvent(new FWm(W,this))};
eY.prototype.disposeInternal=function(){eY.superClass_.disposeInternal.call(this);delete this.reader_};
var DBb=function(W){var P=new eY,x=gzd(P);P.reader_.readAsArrayBuffer(W);return x},Mll=function(W){var P=new eY,x=gzd(P);
P.reader_.readAsDataURL(W);return x},gzd=function(W){var P=new fA;
W.listen("loadend",_.ou(function(x,I){var O=I.reader_.result,B=I.getError();O==null||B?x.errback(B):x.callback(O);I.dispose()},P,W));
return P};var cz=function(){_.tW.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9192_eventHandler_=new _.q1(this);this.JSC$9192_isInitialized_=!1};
_.J8(cz,_.tW);var $Bw=new _.uk("d"),wup=new _.uk("beforedragstart"),hpP=new _.uk("dragstart"),HRk=new _.uk("beforedragmove"),epm=new _.uk("dragmove"),cbm=new _.uk("beforedragend"),a5k=new _.uk("dragend"),bRc=new _.uk("e");cz.prototype.isDragging=function(){return!!this.JSC$9192_dragger_};
var kKp=function(W,P){P.dlgGrowthDirection_=0;P.dlgDragHoverClass_=void 0;P.dlgDragPermission=0;W.dragLists_.push(P)},UBA=function(W,P){W.getHandleForDragItem_=P};
cz.prototype.init=function(){if(!this.JSC$9192_isInitialized_){for(var W=this.dragLists_.length,P=0;P<W;P++)for(var x=_.$_(this.dragLists_[P]),I=x.length,O=0;O<I;++O){var B=x[O],Y=this.getHandleForDragItem_(B),K=_.nM(Y);this.dragItemForHandle_[K]=B;this.dragItemHoverClasses_&&(this.JSC$9192_eventHandler_.listen(B,"mouseover",this.handleDragItemMouseover_),this.JSC$9192_eventHandler_.listen(B,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9192_eventHandler_.listen(Y,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9192_eventHandler_.listen(Y,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(B);this.JSC$9192_eventHandler_.listen(Y,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9192_isInitialized_=!0}};
cz.prototype.disposeInternal=function(){this.JSC$9192_eventHandler_.dispose();for(var W=this.dragLists_.length,P=0;P<W;P++){var x=this.dragLists_[P];x.dlgGrowthDirection_=void 0;x.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;XuZ(this);cz.superClass_.disposeInternal.call(this)};
var f5p=function(W,P){for(var x=W.dragLists_.length,I=0;I<x;I++){var O=W.dragLists_[I];O.dlgBounds_=asd(O)}x=W.dragItems_.length;for(I=0;I<x;I++)O=W.dragItems_[I],O!=P&&(O.dlgBounds_=asd(O))};
_.J=cz.prototype;
_.J.handlePotentialDragStart_=function(W){var P=_.nM(W.currentTarget);P=this.dragItemForHandle_[P];if(P.parentElement.dlgDragPermission!=2){this.currDragItem_=P;a:{P=this.currDragItem_;for(var x=P.cloneNode(!0),I=Sa("TEXTAREA",P),O=Sa("TEXTAREA",x),B=0;B<I.length;B++)O[B].value=I[B].value;switch(P.tagName){case "TR":P=_.zT("TABLE",null,_.zT("TBODY",null,x));break a;case "TD":case "TH":P=_.zT("TABLE",null,_.zT("TBODY",null,_.zT("TR",null,x)));break a;case "TEXTAREA":x.value=P.value;default:P=x;break a}P=
void 0}this.draggerEl_=P;this.draggerElClasses_&&U7(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.GD(this.currDragItem_).body.appendChild(this.draggerEl_);x=_.gJ(this.currDragItem_);P=this.draggerEl_;I=_.gJ(P);if(x instanceof _.Al){var Y=x.y;x=x.x}cx(P,P.offsetLeft+(x-I.x),P.offsetTop+(Number(Y)-I.y));this.JSC$9192_dragger_=new _.et(this.draggerEl_);_.iXP(this.JSC$9192_dragger_,this.hysteresisDistance_);
_.uq(this.JSC$9192_dragger_,"start",this.handleDragStart_,!1,this);_.uq(this.JSC$9192_dragger_,"end",this.handleDragEnd_,!1,this);_.uq(this.JSC$9192_dragger_,"earlycancel",this.JSC$9194_cleanup_,!1,this);this.dispatchEvent(new aI($Bw,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9192_dragger_));this.JSC$9192_dragger_.startDrag(W)}};
_.J.handleDragStart_=function(W){if(this.dispatchEvent(new aI(wup,this,W.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Tkc(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?U7(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var P=KOm(this.draggerEl_);this.draggerEl_.halfWidth=P.width/2;this.draggerEl_.halfHeight=P.height/2;P=this.draggerEl_.getBoundingClientRect();
var x=W.clientY,I=Riz(this.JSC$9192_dragger_,W.clientX);if(I>P.right){var O=this.currDragItem_.getBoundingClientRect();this.JSC$9192_dragger_.deltaX=I-(I-O.left)/O.width*P.width}x=FkZ(this.JSC$9192_dragger_,x);x>P.bottom&&(this.JSC$9192_dragger_.deltaY+=x-P.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";f5p(this,this.currDragItem_);this.currDragItem_.style.display="";_.uq(this.JSC$9192_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new aI(hpP,
this,W.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9192_dragger_))}else W.preventDefault(),this.JSC$9194_cleanup_()};
_.J.handleDragMove_=function(W){var P=_.gJ(this.draggerEl_);P=new _.Al(P.x+this.draggerEl_.halfWidth,P.y+this.draggerEl_.halfHeight);a:{var x=null;if(this.currDragItem_.style.display!="none"){x=this.currDragItem_.parentNode;var I=asd(x);if(NEk(P,I))break a}I=this.dragLists_.length;for(var O=0;O<I;O++){var B=this.dragLists_[O];if(B!=x&&NEk(P,B.dlgBounds_)){x=B;break a}}x=null}if(x){if(x==null)throw Error("Vd");I=0;O=!1;B=void 0;switch(x.dlgGrowthDirection_){case 0:I=P.y;var Y=l5z;var K=TEi;break;case 4:O=
!0;case 2:I=P.x;Y=rbb;K=TEi;break;case 5:O=!0;case 3:I=P.x,Y=iRm,K=Rpz}for(var Z=null,d,v=_.$_(x),m=v.length,t=0;t<m;t++){var C=v[t];if(C!=this.currDragItem_){var z=Y(C.dlgBounds_);if(O){var D=FBz(C,P);B===void 0&&(B=D);K(I,z)&&(d==void 0||D<B||D==B&&(K(z,d)||z==d))&&(Z=C,d=z);D<B&&(B=D)}else K(I,z)&&(d==void 0||K(z,d))&&(Z=C,d=z)}}Y=Z!==null&&FBz(Z,P)>B?null:Z}else Y=null;if(!this.dispatchEvent(new aI(HRk,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9192_dragger_,P,x,Y)))return!1;if(x&&x.dlgDragPermission!=
1)this.currDragItem_.parentNode==x&&_.Tkc(this.currDragItem_)==Y||x.insertBefore(this.currDragItem_,Y),this.currDragItem_.style.display="",x.dlgDragHoverClass_&&_.kY(x,x.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",K=this.dragLists_.length,d=0;d<K;d++)I=this.dragLists_[d],I.dlgDragHoverClass_&&_.ax(I,I.dlgDragHoverClass_);x!=this.currHoverList_&&(this.currHoverList_=x,f5p(this,this.currDragItem_));this.dispatchEvent(new aI(epm,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9192_dragger_,
P,x,Y));return!1};
_.J.JSC$9194_cleanup_=function(){XuZ(this);this.JSC$9192_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var W=this.dragLists_.length,P=0;P<W;P++)this.dragLists_[P].dlgBounds_=null;W=this.dragItems_.length;for(P=0;P<W;P++)this.dragItems_[P].dlgBounds_=null};
_.J.handleDragEnd_=function(W){if(!this.dispatchEvent(new aI(cbm,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9192_dragger_)))return!1;XuZ(this);this.dispatchEvent(new aI(a5k,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9192_dragger_));this.JSC$9194_cleanup_();return!0};
var XuZ=function(W){_.TD(W.JSC$9192_dragger_);var P=W.draggerEl_&&W.draggerEl_.parentElement;W.draggerEl_&&_.oE(W.draggerEl_);W.currDragItem_&&W.currDragItem_.style.display=="none"&&(W.origList_.insertBefore(W.currDragItem_,W.origNextItem_),W.currDragItem_.style.display="");W.currDragItemClasses_&&W.currDragItem_?R6p(W.currDragItem_,W.currDragItemClasses_||[]):W.currDragItem_&&(W.currDragItem_.style.visibility="");for(var x=W.dragLists_.length,I=0;I<x;I++){var O=W.dragLists_[I];O.dlgDragHoverClass_&&
_.ax(O,O.dlgDragHoverClass_)}P&&W.dispatchEvent(new aI(bRc,W,null,W.currDragItem_,W.draggerEl_,W.JSC$9192_dragger_))};
_.J=cz.prototype;_.J.getHandleForDragItem_=function(W){return W};
_.J.handleDragItemMouseover_=function(W){U7(W.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemMouseout_=function(W){R6p(W.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemHandleMouseover_=function(W){U7(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.J.handleDragItemHandleMouseout_=function(W){R6p(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
var NEk=function(W,P){return W.x>P.left&&W.x<P.left+P.width&&W.y>P.top&&W.y<P.top+P.height},FBz=function(W,P){W=W.dlgBounds_;
return Math.abs(P.y-(W.top+(W.height-1)/2))},l5z=function(W){return W.top+W.height-1},rbb=function(W){return W.left+W.width-1},iRm=function(W){return W.left||0},TEi=function(W,P){return W<P},Rpz=function(W,P){return W>P},aI=function(W,P,x,I,O,B){_.d0.call(this,W);
this.event=x;this.currDragItem=I;this.draggerEl=O;this.JSC$9196_dragger=B};
_.J8(aI,_.d0);_.J8(LJ,_.vn);var qnw=new _.Al(0,0);LJ.prototype.JSC$9200_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
LJ.prototype.JSC$9200_onMouseMove=function(W){var P=this.containerIsActuallyContent_?qnw:ZC(oQ(this.containerNode_)),x=this.horizontalScrolling_?this.calculateScrollDelta(W.clientX+P.x,this.scrollBounds_.left,this.scrollBounds_.width):0,I=this.calculateScrollDelta(W.clientY+P.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=x;this.scrollDelta_.y=I;!(x=!x&&!I)&&(x=this.constrainScroll_)&&(x=W.clientX+P.x,W=W.clientY+P.y,P=this.containerBounds_,x=!(P.left<=x&&P.left+P.width>=
x&&P.top<=W&&P.top+P.height>=W));x?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
LJ.prototype.calculateScrollDelta=function(W,P,x){var I=0;W<P?I=-8:W>P+x&&(I=8);return I};
LJ.prototype.disposeInternal=function(){LJ.superClass_.disposeInternal.call(this);this.JSC$9198_eventHandler_.dispose();this.scrollTimer_.dispose()};var LBz={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"}}},be=LBz;be=LBz;var kB={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 W7z=function(){},el=function(W){if(typeof W=="number"){var P=new W7z;
P.standardOffset_=W;var x=W;if(x==0)x="Etc/GMT";else{var I=["Etc/GMT",x<0?"-":"+"];x=Math.abs(x);I.push(Math.floor(x/60)%100);x%=60;x!=0&&I.push(":",_.I_(x,2));x=I.join("")}P.timeZoneId_=x;x=W;x==0?x="UTC":(I=["UTC",x<0?"+":"-"],x=Math.abs(x),I.push(Math.floor(x/60)%100),x%=60,x!=0&&I.push(":",x),x=I.join(""));W=PSi(W);P.tzNames_=[x,x];P.tzNamesExt_={STD_LONG_NAME_GMT:W,STD_GENERIC_LOCATION:W};P.transitions_=[];return P}P=new W7z;P.timeZoneId_=W.id;P.standardOffset_=-W.std_offset;P.tzNames_=W.names;
P.tzNamesExt_=W.names_ext;P.transitions_=W.transitions;return P},PSi=function(W){var P=["GMT"];
P.push(W<=0?"+":"-");W=Math.abs(W);P.push(_.I_(Math.floor(W/60)%100,2),":",_.I_(W%60,2));return P.join("")},xaw=function(W,P){P=Date.UTC(P.getUTCFullYear(),P.getUTCMonth(),P.getUTCDate(),P.getUTCHours(),P.getUTCMinutes())/36E5;
for(var x=0;x<W.transitions_.length&&P>=W.transitions_[x];)x+=2;return x==0?0:W.transitions_[x-1]},IzA=function(W,P){W=W.standardOffset_-xaw(W,P);
return W===-1440?0:W};var cu=function(W,P){this.patternParts_=[];this.JSC$9211_dateTimeSymbols_=P||Ga;typeof W=="number"?OLM(this,W):Jqm(this,W)},BTM=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],U8=function(W){return W.getHours?W.getHours():0},Jqm=function(W,P){for(YxS&&(P=P.replace(/\u200f/g,""));P;){for(var x=P,I=0;I<BTM.length;++I){var O=P.match(BTM[I]);
if(O){var B=O[0];P=P.substring(B.length);I==0&&(B=="''"?B="'":(B=B.substring(1,O[1]=="'"?B.length-1:B.length),B=B.replace(/''/g,"'")));W.patternParts_.push({text:B,type:I});break}}if(x===P)throw Error("Wd`"+P);}};
cu.prototype.format=function(W,P){if(!W)throw Error("Xd");var x=P?(W.getTimezoneOffset()-IzA(P,W))*6E4:0,I=x?new Date(W.getTime()+x):W,O=I;P&&I.getTimezoneOffset()!=W.getTimezoneOffset()&&(I=new Date(I.getTime()+(I.getTimezoneOffset()-W.getTimezoneOffset())*6E4),O=new Date(W.getTime()+(x+(x>0?-864E5:864E5))));x=[];for(var B=0;B<this.patternParts_.length;++B){var Y=this.patternParts_[B].text;1==this.patternParts_[B].type?x.push(n3i(this,Y,W,I,O,P)):x.push(Y)}return x.join("")};
var OLM=function(W,P){if(P<4)var x=W.JSC$9211_dateTimeSymbols_.DATEFORMATS[P];else if(P<8)x=W.JSC$9211_dateTimeSymbols_.TIMEFORMATS[P-4];else if(P<12)x=W.JSC$9211_dateTimeSymbols_.DATETIMEFORMATS[P-8],x=x.replace("{1}",W.JSC$9211_dateTimeSymbols_.DATEFORMATS[P-8]),x=x.replace("{0}",W.JSC$9211_dateTimeSymbols_.TIMEFORMATS[P-8]);else if(P===12)x=W.JSC$9211_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(P===13)x=W.JSC$9211_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{OLM(W,10);return}Jqm(W,x)},Xh=function(W,P){P=String(P);
W=W.JSC$9211_dateTimeSymbols_||Ga;if(W.ZERODIGIT!==void 0&&!nP8){for(var x=[],I=0;I<P.length;I++){var O=P.charCodeAt(I);x.push(48<=O&&O<=57?String.fromCharCode(W.ZERODIGIT+O-48):P.charAt(I))}P=x.join("")}return P},nP8=!1,YxS=!1,yq3=function(W,P,x,I){x=x.getFullYear();
x<=0&&I&&(x=1-x);return Xh(W,YoW(x,P))},YoW=function(W,P){P==2&&(W%=100);
W<0&&P++;return _.I_(W,P)},fh=function(W){if(!(W.getHours&&W.getSeconds&&W.getMinutes))throw Error("Yd");
},K7b=function(W,P){fh(P);
P=U8(P);return W.JSC$9211_dateTimeSymbols_.AMPMS[P>=12&&P<24?1:0]},n3i=function(W,P,x,I,O,B){var Y=P.length;
switch(P.charAt(0)){case "G":return x=I.getFullYear()>0?1:0,Y>=4?W.JSC$9211_dateTimeSymbols_.ERANAMES[x]:W.JSC$9211_dateTimeSymbols_.ERAS[x];case "y":return yq3(W,Y,I,!0);case "Y":return x=(new Date(ozd(I.getFullYear(),I.getMonth(),I.getDate(),W.JSC$9211_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$9211_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Y==2&&(x%=100),Xh(W,YoW(x,Y));case "u":return yq3(W,Y,I,!1);case "M":a:switch(x=I.getMonth(),Y){case 5:Y=W.JSC$9211_dateTimeSymbols_.NARROWMONTHS[x];break a;
case 4:Y=W.JSC$9211_dateTimeSymbols_.MONTHS[x];break a;case 3:Y=W.JSC$9211_dateTimeSymbols_.SHORTMONTHS[x];break a;default:Y=Xh(W,_.I_(x+1,Y))}return Y;case "k":return fh(O),Xh(W,_.I_(U8(O)||24,Y));case "S":return Xh(W,(O.getMilliseconds()/1E3).toFixed(Math.min(3,Y)).slice(2)+(Y>3?_.I_(0,Y-3):""));case "E":return x=I.getDay(),Y>=4?W.JSC$9211_dateTimeSymbols_.WEEKDAYS[x]:W.JSC$9211_dateTimeSymbols_.SHORTWEEKDAYS[x];case "a":return K7b(W,O);case "b":return K7b(W,O);case "B":return K7b(W,O);case "h":return fh(O),
Xh(W,_.I_(U8(O)%12||12,Y));case "K":return fh(O),Xh(W,_.I_(U8(O)%12,Y));case "H":return fh(O),Xh(W,_.I_(U8(O),Y));case "c":a:switch(x=I.getDay(),Y){case 5:Y=W.JSC$9211_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[x];break a;case 4:Y=W.JSC$9211_dateTimeSymbols_.STANDALONEWEEKDAYS[x];break a;case 3:Y=W.JSC$9211_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[x];break a;default:Y=Xh(W,_.I_(x,1))}return Y;case "L":a:switch(x=I.getMonth(),Y){case 5:Y=W.JSC$9211_dateTimeSymbols_.STANDALONENARROWMONTHS[x];break a;
case 4:Y=W.JSC$9211_dateTimeSymbols_.STANDALONEMONTHS[x];break a;case 3:Y=W.JSC$9211_dateTimeSymbols_.STANDALONESHORTMONTHS[x];break a;default:Y=Xh(W,_.I_(x+1,Y))}return Y;case "Q":return x=Math.floor(I.getMonth()/3),Y<4?W.JSC$9211_dateTimeSymbols_.SHORTQUARTERS[x]:W.JSC$9211_dateTimeSymbols_.QUARTERS[x];case "d":return Xh(W,_.I_(I.getDate(),Y));case "m":return fh(O),Xh(W,_.I_(O.getMinutes?O.getMinutes():0,Y));case "s":return fh(O),Xh(W,_.I_(O.getSeconds(),Y));case "v":return(B||el(x.getTimezoneOffset())).timeZoneId_;
case "V":return W=B||el(x.getTimezoneOffset()),Y<=2?W.timeZoneId_:xaw(W,x)>0?W.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?W.tzNamesExt_.STD_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return x=ozd(O.getFullYear(),O.getMonth(),O.getDate(),W.JSC$9211_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$9211_dateTimeSymbols_.FIRSTDAYOFWEEK),Xh(W,_.I_(Math.floor(Math.round((x-(new Date((new Date(x)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Y));case "z":return W=B||el(x.getTimezoneOffset()),Y<4?W.tzNames_[xaw(W,x)>0?2:0]:W.tzNames_[xaw(W,x)>0?3:1];case "Z":return P=B||el(x.getTimezoneOffset()),Y<4?(Y=-IzA(P,x),W=[Y<0?"-":"+"],Y=Math.abs(Y),W.push(_.I_(Math.floor(Y/60)%100,2),_.I_(Y%60,2)),Y=W.join("")):Y=Xh(W,PSi(IzA(P,x))),Y;default:return""}};var ZLk=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,o3A=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,KDA=function(W){this.patternParts_=[];this.JSC$9220_dateTimeSymbols_=Ga;if(typeof W=="number"){W>11&&(W=10);if(W<4)var P=this.JSC$9220_dateTimeSymbols_.DATEFORMATS[W];else W<8?P=this.JSC$9220_dateTimeSymbols_.TIMEFORMATS[W-4]:(P=this.JSC$9220_dateTimeSymbols_.DATETIMEFORMATS[W-8],P=P.replace("{1}",this.JSC$9220_dateTimeSymbols_.DATEFORMATS[W-8]),P=P.replace("{0}",this.JSC$9220_dateTimeSymbols_.TIMEFORMATS[W-
8]));SoP(this,P)}else SoP(this,W)},SoP=function(W,P){for(var x=!1,I="",O=0;O<P.length;O++){var B=P.charAt(O);
if(ZLk.test(B))for(I.length>0&&(W.patternParts_.push({text:I,count:0,abutStart:!1,numeric:!1}),I=""),W.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});O<P.length-1&&P.charAt(O+1)==" ";)O++;else if(x)B=="'"?O+1<P.length&&P.charAt(O+1)=="'"?(I+="'",O++):x=!1:I+=B;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(B)>=0){I.length>0&&(W.patternParts_.push({text:I,count:0,abutStart:!1,numeric:!1}),I="");for(var Y=P.charAt(O),K=O+1;K<P.length&&P.charAt(K)==Y;)K++;Y=K-O;Y<=0?K=!1:(K="MydhHmsSDkK".indexOf(B),
K=K>0||K==0&&Y<3);W.patternParts_.push({text:B,count:Y,abutStart:!1,numeric:K});O+=Y-1}else B=="'"?O+1<P.length&&P.charAt(O+1)=="'"?(I+="'",O++):x=!0:I+=B}I.length>0&&W.patternParts_.push({text:I,count:0,abutStart:!1,numeric:!1});P=!1;for(x=0;x<W.patternParts_.length;x++)W.patternParts_[x].numeric?!P&&x+1<W.patternParts_.length&&W.patternParts_[x+1].numeric&&(P=!0,W.patternParts_[x].abutStart=!0):P=!1};
KDA.prototype.parse=function(W,P,x){var I=!1,O=!1;x&&(I=x.predictive||!1,O=x.validate||!1);if(I)for(x=0;x<this.patternParts_.length;x++){var B=this.patternParts_[x];if(B.count>0&&("abBhHkKm".indexOf(B.text.charAt(0))<0||B.count>2||B.abutStart))throw Error("Zd`"+B.text.charAt(0));}B=new uyb;x=[0];B.dayPeriodIndex=-1;for(var Y=0;Y<this.patternParts_.length&&!(I&&x[0]>=W.length);Y++){if(this.patternParts_[Y].count==0){a:{var K=W;var Z=x,d=this.patternParts_[Y],v=I;if(d.text.match(ZLk)!=null){if(d=Z[0],
daM(K,Z),Z[0]>d){K=!0;break a}}else{if(K.indexOf(d.text,Z[0])==Z[0]){Z[0]+=d.text.length;K=!0;break a}if(v&&d.text.indexOf(K.substring(Z[0]))==0){Z[0]+=K.length-Z[0];K=!0;break a}}K=!1}if(K)continue;return 0}if(this.patternParts_[Y].abutStart){a:{Z=W;d=x;v=Y;var m=d[0],t=0;for(K=v;K<this.patternParts_.length;K++){var C=this.patternParts_[K],z=C.count;if(z===0)break;if(K==v&&(z-=t,t++,z==0)){K=0;break a}var D=K>v&&C.numeric,w=d[0];if(!sfi(this,Z,d,C,z,B,!1)||D&&d[0]-w<z)K=v-1,d[0]=m}K-=v}if(K<=0)return 0;
Y+=K-1}else if(!sfi(this,W,x,this.patternParts_[Y],0,B,I))return 0}a:{W=O;if(P==null)throw Error("$d");B.era!=void 0&&B.year!=void 0&&B.era==0&&B.year>0&&(B.year=-(B.year-1));B.year!=void 0&&P.setFullYear(B.year);I=P.getDate();P.setDate(1);B.month!=void 0&&P.setMonth(B.month);B.day!=void 0?P.setDate(B.day):(O=aJU(P.getFullYear(),P.getMonth()),P.setDate(I>O?O:I));typeof P.setHours==="function"&&(B.hours==void 0&&(B.hours=P.getHours()),B.hours<12&&(B.ampm!=void 0&&B.ampm>0?B.hours+=12:B.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(B.dayPeriodName)||["night1","night2"].includes(B.dayPeriodName)&&B.hours>=6)&&(B.hours+=12)),P.setHours(B.hours));typeof P.setMinutes==="function"&&B.minutes!=void 0&&P.setMinutes(B.minutes);typeof P.setSeconds==="function"&&B.seconds!=void 0&&P.setSeconds(B.seconds);typeof P.setMilliseconds==="function"&&B.milliseconds!=void 0&&P.setMilliseconds(B.milliseconds);if(W&&(B.year&&B.year!=P.getFullYear()||B.month&&B.month!=
P.getMonth()||B.day&&B.day!=P.getDate()||B.hours&&B.hours>=24||B.minutes&&B.minutes>=60||B.seconds&&B.seconds>=60||B.milliseconds&&B.milliseconds>=1E3))P=!1;else{B.tzOffset!=void 0&&P.setTime(P.getTime()+(B.tzOffset-P.getTimezoneOffset())*60*1E3);B.ambiguousYear&&(W=new Date,W.setFullYear(W.getFullYear()-80),P.getTime()<W.getTime()&&P.setFullYear(W.getFullYear()+100));if(B.dayOfWeek!=void 0)if(B.day==void 0)B=(7+B.dayOfWeek-P.getDay())%7,B>3&&(B-=7),W=P.getMonth(),P.setDate(P.getDate()+B),P.getMonth()!=
W&&P.setDate(P.getDate()+(B>0?-7:7));else if(B.dayOfWeek!=P.getDay()){P=!1;break a}P=!0}}return P?x[0]:0};
var sfi=function(W,P,x,I,O,B,Y){daM(P,x);if(I.numeric&&O>0&&x[0]+O>P.length)return!1;switch(I.text.charAt(0)){case "G":return Nc(P,x,[W.JSC$9220_dateTimeSymbols_.ERAS],function(K){return B.era=K}),!0;
case "M":case "L":return v3w(W,P,x,O,I,B);case "E":return Nc(P,x,[W.JSC$9220_dateTimeSymbols_.WEEKDAYS,W.JSC$9220_dateTimeSymbols_.SHORTWEEKDAYS],function(K){return B.dayOfWeek=K});
case "B":case "b":return O=[],W=[[].concat(W.JSC$9220_dateTimeSymbols_.AMPMS)],O.push("isAm"),O.push("isPm"),P=Nc(P,x,W,function(K){return B.dayPeriodIndex=K},Y),B.dayPeriodName=O[B.dayPeriodIndex],Y?P:!0;
case "a":return P=Nc(P,x,[W.JSC$9220_dateTimeSymbols_.AMPMS],function(K){return B.ampm=K},Y),Y?P:!0;
case "y":return maz(W,P,x,I,O,B);case "Q":return Nc(P,x,[W.JSC$9220_dateTimeSymbols_.QUARTERS,W.JSC$9220_dateTimeSymbols_.SHORTQUARTERS],function(K){B.month=K*3;B.day=1});
case "d":return le(W,P,x,I,O,function(K){B.day=K}),!0;
case "S":return V9w(W,P,x,O,B);case "h":case "K":case "H":case "k":return P=le(W,P,x,I,O,function(K){B.hours=I.text.charAt(0)==="h"&&K===12?0:K},Y),Y?P:!0;
case "m":return P=le(W,P,x,I,O,function(K){B.minutes=K},Y),Y?P:!0;
case "s":return le(W,P,x,I,O,function(K){B.seconds=K}),!0;
case "z":case "Z":case "v":return t9l(W,P,x,B);default:return!1}},maz=function(W,P,x,I,O,B){var Y=x[0];
O=TP(W,P,x,O);O===null&&(O=TP(W,P,x,0,!0));if(O===null)return!1;O>=0&&x[0]-Y==2&&I.count==2?(W=O,P=(new Date).getFullYear()-80,x=P%100,B.ambiguousYear=W==x,W+=Math.floor(P/100)*100+(W<x?100:0),B.year=W):B.year=O;return!0},v3w=function(W,P,x,I,O,B){return O.numeric&&le(W,P,x,O,I,function(Y){B.month=Y-1})?!0:Nc(P,x,[W.JSC$9220_dateTimeSymbols_.MONTHS,
W.JSC$9220_dateTimeSymbols_.STANDALONEMONTHS,W.JSC$9220_dateTimeSymbols_.SHORTMONTHS,W.JSC$9220_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Y){B.month=Y})},V9w=function(W,P,x,I,O){var B=x[0];
W=TP(W,P,x,I);if(W===null)return!1;x=x[0]-B;O.milliseconds=x<3?W*Math.pow(10,3-x):Math.round(W/Math.pow(10,x-3));return!0},t9l=function(W,P,x,I){P.indexOf("GMT",x[0])==x[0]&&(x[0]+=3);
if(x[0]>=P.length)return I.tzOffset=0,!0;var O=x[0],B=TP(W,P,x,0,!0);if(B===null)return!1;if(x[0]<P.length&&P.charAt(x[0])==":"){var Y=B*60;x[0]++;B=TP(W,P,x,0);if(B===null)return!1;Y+=B}else Y=B,Y=Y<24&&x[0]-O<=3?Y*60:Y%100+Y/100*60;I.tzOffset=-Y;return!0},le=function(W,P,x,I,O,B,Y){Y=Y||!1;
var K=x[0];W=TP(W,P,x,O);if(W===null)return!1;if(Y&&x[0]-K<I.count){if(x[0]<P.length)return!1;W*=Math.pow(10,I.count-(x[0]-K))}B(W);return!0},Nc=function(W,P,x,I,O){O=O||!1;
for(var B,Y=0;Y<x.length;Y++){B=P;for(var K=x[Y],Z=O,d=0,v=null,m=W.substring(B[0]).toLowerCase(),t=0;t<K.length;t++){var C=K[t].toLowerCase();if(Z&&C.indexOf(m)==0){d=m.length;v=t;break}K[t].length>d&&m.indexOf(C)==0&&(d=K[t].length,v=t)}v!==null&&(B[0]+=d);B=v;if(B!==null)return I(B),!0}return!1},daM=function(W,P){(W=W.substring(P[0]).match(o3A))&&(P[0]+=W[0].length)},TP=function(W,P,x,I,O){P=I>0?P.substring(0,x[0]+I):P;
O=O||!1;if(W.JSC$9220_dateTimeSymbols_.ZERODIGIT){I=[];for(var B=x[0];B<P.length;B++){var Y=P.charCodeAt(B)-W.JSC$9220_dateTimeSymbols_.ZERODIGIT;I.push(0<=Y&&Y<=9?String.fromCharCode(Y+48):P.charAt(B))}P=I.join("")}else P=P.substring(x[0]);W=P.match(new RegExp("^"+(O?"[+-]?":"")+"\\d+"));if(!W)return null;x[0]+=W[0].length;return parseInt(W[0],10)},uyb=function(){};
uyb.prototype.ambiguousYear=!1;_.p5c={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 jfc={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"},Qf3=jfc,CSZ=jfc;CSZ=Qf3=jfc;var zkz,rQ,RI,c$m,ie,Aq3;
_.$z=function(W,P,x,I){var O;if(O=P){a:if(P&&P.length===3){for(O=0;O<3;O++){var B=P[O];if(B<"A"||B>"Z"&&B<"a"||B>"z"){O=!1;break a}}O=!0}else O=!1;O=!O}if(O)throw new TypeError("ae");this.intlCurrencyCode_=P?P.toUpperCase():null;this.currencyStyle_=x||0;this.overrideNumberFormatSymbols_=I||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_=rQ(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof W==="number")switch(W){case 1:ie(this,rQ(this).DECIMAL_PATTERN);break;case 2:ie(this,rQ(this).SCIENTIFIC_PATTERN);break;case 3:ie(this,rQ(this).PERCENT_PATTERN);break;case 4:W=rQ(this).CURRENCY_PATTERN;P=["0"];if(x=
kB[RI(this)]){x=x[0]&7;if(x>0)for(P.push("."),I=0;I<x;I++)P.push("0");W=W.replace(/0.00/g,P.join(""))}ie(this,W);break;case 5:Aq3(this,1);break;case 6:Aq3(this,2);break;default:throw Error("de");}else ie(this,W)};
zkz=!1;rQ=function(W){return W.overrideNumberFormatSymbols_||(zkz?CSZ:Qf3)};
RI=function(W){return W.intlCurrencyCode_||rQ(W).DEF_CURRENCY_CODE};
c$m=function(W,P){if(P>308)throw Error("ce`"+P);W.maximumFractionDigits_=P;return W};
ie=function(W,P){var x=[0];W.positivePrefix_=G1P(W,P,x);for(var I=x[0],O=-1,B=0,Y=0,K=0,Z=-1,d=P.length,v=!0;x[0]<d&&v;x[0]++)switch(P.charAt(x[0])){case "#":Y>0?K++:B++;Z>=0&&O<0&&Z++;break;case "0":if(K>0)throw Error("je`"+P);Y++;Z>=0&&O<0&&Z++;break;case ",":Z>0&&W.groupingArray_.push(Z);Z=0;break;case ".":if(O>=0)throw Error("ke`"+P);O=B+Y+K;break;case "E":if(W.useExponentialNotation_)throw Error("le`"+P);W.useExponentialNotation_=!0;W.minExponentDigits_=0;x[0]+1<d&&P.charAt(x[0]+1)=="+"&&(x[0]++,
W.useSignForPositiveExponent_=!0);for(;x[0]+1<d&&P.charAt(x[0]+1)=="0";)x[0]++,W.minExponentDigits_++;if(B+Y<1||W.minExponentDigits_<1)throw Error("me`"+P);v=!1;break;default:x[0]--,v=!1}Y==0&&B>0&&O>=0&&(Y=O,Y==0&&Y++,K=B-Y,B=Y-1,Y=1);if(O<0&&K>0||O>=0&&(O<B||O>B+Y)||Z==0)throw Error("ne`"+P);K=B+Y+K;W.maximumFractionDigits_=O>=0?K-O:0;O>=0&&(W.minimumFractionDigits_=B+Y-O,W.minimumFractionDigits_<0&&(W.minimumFractionDigits_=0));W.minimumIntegerDigits_=(O>=0?O:K)-B;W.useExponentialNotation_&&(W.maximumIntegerDigits_=
B+W.minimumIntegerDigits_,W.maximumFractionDigits_==0&&W.minimumIntegerDigits_==0&&(W.minimumIntegerDigits_=1));W.groupingArray_.push(Math.max(0,Z));W.decimalSeparatorAlwaysShown_=O==0||O==K;I=x[0]-I;W.positiveSuffix_=G1P(W,P,x);x[0]<P.length&&P.charAt(x[0])==";"?(x[0]++,W.multiplier_!=1&&(W.negativePercentSignExpected_=!0),W.negativePrefix_=G1P(W,P,x),x[0]+=I,W.negativeSuffix_=G1P(W,P,x)):(W.negativePrefix_+=W.positivePrefix_,W.negativeSuffix_+=W.positiveSuffix_)};
Aq3=function(W,P){W.compactStyle_=P;ie(W,rQ(W).DECIMAL_PATTERN);W.minimumFractionDigits_=0;c$m(W,2);if(W.minimumFractionDigits_>0)throw Error("be");W.significantDigits_=2};
_.$z.prototype.parse=function(W,P){P=P||[0];if(this.compactStyle_!==0)throw Error("ee");W=W.replace(/ |\u202f/g,"\u00a0");var x=W.indexOf(this.positivePrefix_,P[0])==P[0],I=W.indexOf(this.negativePrefix_,P[0])==P[0];x&&I&&(this.positivePrefix_.length>this.negativePrefix_.length?I=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(x=!1));x?P[0]+=this.positivePrefix_.length:I&&(P[0]+=this.negativePrefix_.length);if(W.indexOf(rQ(this).INFINITY,P[0])==P[0]){P[0]+=rQ(this).INFINITY.length;var O=
Infinity}else{O=W;var B=!1,Y=!1,K=!1,Z=-1,d=1,v=rQ(this).DECIMAL_SEP,m=rQ(this).GROUP_SEP,t=rQ(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");m=m.replace(/\u202f/g,"\u00a0");for(var C="";P[0]<O.length;P[0]++){var z=O.charAt(P[0]),D=E3M(this,z);if(D>=0&&D<=9)C+=D,K=!0;else if(z==v.charAt(0)){if(B||Y)break;C+=".";B=!0}else if(z==m.charAt(0)&&("\u00a0"!=m.charAt(0)||P[0]+1<O.length&&E3M(this,O.charAt(P[0]+1))>=0)){if(B||Y)break}else if(z==t.charAt(0)){if(Y)break;C+="E";Y=!0;Z=P[0]}else if(z==
"+"||z=="-"){if(K&&Z!=P[0]-1)break;C+=z}else if(this.multiplier_==1&&z==rQ(this).PERCENT.charAt(0)){if(d!=1)break;d=100;if(K){P[0]++;break}}else if(this.multiplier_==1&&z==rQ(this).PERMILL.charAt(0)){if(d!=1)break;d=1E3;if(K){P[0]++;break}}else break}this.multiplier_!=1&&(d=this.multiplier_);O=parseFloat(C)/d}if(x){if(W.indexOf(this.positiveSuffix_,P[0])!=P[0])return NaN;P[0]+=this.positiveSuffix_.length}else if(I){if(W.indexOf(this.negativeSuffix_,P[0])!=P[0])return NaN;P[0]+=this.negativeSuffix_.length}return I?
-O:O};
_.$z.prototype.format=function(W){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(W))return rQ(this).NAN;var P=[];var x=W;if(this.compactStyle_==0)x=Fh;else{x=Math.abs(x);var I=g3z(this,x<=1?0:Dak(x)).divisorBase;x=g3z(this,I+Dak(M9A(this,qc(x,-I)).intValue))}W=qc(W,-x.divisorBase);(I=W<0||W==0&&1/W<0)?x.negative_prefix?P.push(x.negative_prefix):(P.push(x.prefix),P.push(this.negativePrefix_)):(P.push(x.prefix),P.push(this.positivePrefix_));if(isFinite(W))if(W*=
I?-1:1,W*=this.multiplier_,this.useExponentialNotation_){var O=W;if(O==0)$ak(this,O,this.minimumIntegerDigits_,P),w5P(this,0,P);else{var B=Math.floor(Math.log(O)/Math.log(10)+2E-15);O=qc(O,-B);var Y=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Y=B%this.maximumIntegerDigits_,Y<0&&(Y=this.maximumIntegerDigits_+Y),O=qc(O,Y),B-=Y,Y=1):this.minimumIntegerDigits_<1?(B++,O=qc(O,-1)):(B-=this.minimumIntegerDigits_-1,O=qc(O,this.minimumIntegerDigits_-
1));$ak(this,O,Y,P);w5P(this,B,P)}}else $ak(this,W,this.minimumIntegerDigits_,P);else P.push(rQ(this).INFINITY);I?x.negative_suffix?P.push(x.negative_suffix):(isFinite(W)&&P.push(x.suffix),P.push(this.negativeSuffix_)):(isFinite(W)&&P.push(x.suffix),P.push(this.positiveSuffix_));return P.join("")};
var M9A=function(W,P){var x=qc(P,W.maximumFractionDigits_);W.significantDigits_>0&&(x=hki(x,W.significantDigits_,W.maximumFractionDigits_));x=Math.round(x);if(isFinite(x)){var I=Math.floor(qc(x,-W.maximumFractionDigits_));x=Math.floor(x-qc(I,W.maximumFractionDigits_));if(x<0||x>=qc(1,W.maximumFractionDigits_))I=Math.round(P),x=0}else I=P,x=0;return{intValue:I,fracValue:x}},$ak=function(W,P,x,I){if(W.minimumFractionDigits_>W.maximumFractionDigits_)throw Error("ge");
I||(I=[]);P=M9A(W,P);var O=P.intValue,B=P.fracValue,Y=W.minimumFractionDigits_>0||B>0||!1;P=W.minimumFractionDigits_;Y&&(P=W.minimumFractionDigits_);for(var K="",Z=O;Z>1E20;)K="0"+K,Z=Math.round(qc(Z,-1));K=Z+K;var d=rQ(W).DECIMAL_SEP;Z=rQ(W).ZERO_DIGIT.codePointAt(0);var v=K.length,m=0;if(O>0||x>0){for(O=v;O<x;O++)I.push(String.fromCodePoint(Z));if(W.groupingArray_.length>=2)for(x=1;x<W.groupingArray_.length;x++)m+=W.groupingArray_[x];x=v-m;if(x>0){O=W.groupingArray_;m=v=0;for(var t,C=rQ(W).GROUP_SEP,
z=K.length,D=0;D<z;D++)if(I.push(String.fromCodePoint(Z+Number(K.charAt(D)))),z-D>1)if(t=O[m],D<x){var w=x-D;(t===1||t>0&&w%t===1)&&I.push(C)}else m<O.length&&(D===x?m+=1:t===D-x-v+1&&(I.push(C),v+=t,m+=1))}else{x=K;K=W.groupingArray_;O=rQ(W).GROUP_SEP;t=x.length;C=[];for(v=K.length-1;v>=0&&t>0;v--){m=K[v];for(z=0;z<m&&t-z-1>=0;z++)C.push(String.fromCodePoint(Z+Number(x.charAt(t-z-1))));t-=m;t>0&&C.push(O)}I.push.apply(I,C.reverse())}}else Y||I.push(String.fromCodePoint(Z));(W.decimalSeparatorAlwaysShown_||
Y)&&I.push(d);B=String(B);Y=B.split("e+");Y.length==2&&(B=String(hki(parseFloat(Y[0]),W.significantDigits_,1)),B=B.replace(".",""),B+=(0,_.gWM)("0",parseInt(Y[1],10)-B.length+1));W.maximumFractionDigits_+1>B.length&&(B="1"+(0,_.gWM)("0",W.maximumFractionDigits_-B.length)+B);for(W=B.length;B.charAt(W-1)=="0"&&W>P+1;)W--;for(P=1;P<W;P++)I.push(String.fromCodePoint(Z+Number(B.charAt(P))))},w5P=function(W,P,x){x.push(rQ(W).EXP_SYMBOL);
P<0?(P=-P,x.push(rQ(W).MINUS_SIGN)):W.useSignForPositiveExponent_&&x.push(rQ(W).PLUS_SIGN);P=""+P;for(var I=rQ(W).ZERO_DIGIT,O=P.length;O<W.minExponentDigits_;O++)x.push(I);W=I.codePointAt(0)-HLc;for(I=0;I<P.length;I++)x.push(String.fromCodePoint(W+P.codePointAt(I)))},E3M=function(W,P){P=P.codePointAt(0);
if(48<=P&&P<58)return P-48;W=rQ(W).ZERO_DIGIT.codePointAt(0);return W<=P&&P<W+10?P-W:-1},HLc="0".codePointAt(0),G1P=function(W,P,x){for(var I="",O=!1,B=P.length;x[0]<B;x[0]++){var Y=P.charAt(x[0]);
if(Y=="'")x[0]+1<B&&P.charAt(x[0]+1)=="'"?(x[0]++,I+="'"):O=!O;else if(O)I+=Y;else switch(Y){case "#":case "0":case ",":case ".":case ";":return I;case "\u00a4":if(x[0]+1<B&&P.charAt(x[0]+1)=="\u00a4")x[0]++,I+=RI(W);else switch(W.currencyStyle_){case 0:Y=RI(W);I+=Y in kB?kB[Y][1]:Y;break;case 2:Y=RI(W);var K=kB[Y];I+=K?Y==K[1]?Y:Y+" "+K[1]:Y;break;case 1:Y=RI(W),I+=Y in kB?kB[Y][2]:Y}break;case "%":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("he");if(W.negativePercentSignExpected_&&
W.multiplier_!=100)throw Error("ie");W.multiplier_=100;W.negativePercentSignExpected_=!1;I+=rQ(W).PERCENT;break;case "\u2030":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("he");if(W.negativePercentSignExpected_&&W.multiplier_!=1E3)throw Error("ie");W.multiplier_=1E3;W.negativePercentSignExpected_=!1;I+=rQ(W).PERMILL;break;default:I+=Y}}return I},Fh={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},g3z=function(W,P){W=W.compactStyle_==1?be.COMPACT_DECIMAL_SHORT_PATTERN:be.COMPACT_DECIMAL_LONG_PATTERN;W==null&&(W=be.COMPACT_DECIMAL_SHORT_PATTERN);if(P<3)return Fh;P=Math.min(14,P);var x=W[qc(1,P)];for(--P;!x&&P>=3;)x=W[qc(1,P)],P--;if(!x)return Fh;x=x.other;var I=W="",O=x.indexOf(";");O>=0&&(x=x.substring(0,O),O=x.substring(O+1))&&(I=/([^0]*)(0+)(.*)/.exec(O),W=I[1],I=I[3]);return x&&x!="0"?(x=/([^0]*)(0+)(.*)/.exec(x))?{divisorBase:P+
1-(x[2].length-1),negative_prefix:W,negative_suffix:I,prefix:x[1],suffix:x[3]}:Fh:Fh},Dak=function(W){if(!isFinite(W))return W>0?W:0;
for(var P=0;(W/=10)>=1;)P++;return P},qc=function(W,P){if(!W||!isFinite(W)||P==0)return W;
W=String(W).split("e");return parseFloat(W[0]+"e"+(parseInt(W[1]||0,10)+P))},ekM=function(W,P){return W&&isFinite(W)?qc(Math.round(qc(W,P)),-P):W},hki=function(W,P,x){if(!W)return W;
P=P-Dak(W)-1;return P<-x?ekM(W,-x):ekM(W,P)};var cqp=function(W){return W%10==1&&W%100!=11?"one":W%10==2&&W%100!=12?"two":W%10==3&&W%100!=13?"few":"other"},azW=cqp;
azW=cqp;var bLP;bLP=function(W,P){var x=W|0;if(void 0===P){P=Math;var I=P.min,O=W+"",B=O.indexOf(".");P=I.call(P,B===-1?0:O.length-B-1,3)}I=Math.pow(10,P);W={v:P,f:(W*I|0)%I};return x==1&&W.v==0?"one":"other"};
_.aY=bLP;_.aY=bLP;var k1w,Ual,X5l,NTM,lzA;_.fzW=function(W){this.JSC$9263_pattern_=W;this.parsedPattern_=this.literals_=this.initialLiterals_=null;W=Qf3;var P=be;if(k1w!==W||Ual!==P)k1w=W,Ual=P,X5l=new _.$z(1);this.numberFormatter_=X5l};
k1w=null;Ual=null;X5l=null;NTM=RegExp("'([{}#].*?)'","g");lzA=RegExp("''","g");
_.fzW.prototype.format=function(W){if(this.JSC$9263_pattern_){this.initialLiterals_=[];var P=TTk(this,this.JSC$9263_pattern_);this.parsedPattern_=rqm(this,P);this.JSC$9263_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Lm(this.initialLiterals_),P=[],iLp(this,this.parsedPattern_,W,!1,P),W=P.join("");this.literals_.length>0;)W=W.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else W="";return W};
var iLp=function(W,P,x,I,O){for(var B=0;B<P.length;B++)switch(P[B].type){case 4:O.push(P[B].value);break;case 3:var Y=P[B].value;var K=W,Z=O,d=x[Y];d===void 0?Z.push("Undefined parameter - "+Y):(K.literals_.push(d),Z.push(K.buildPlaceholder_(K.literals_)));break;case 2:Y=P[B].value;K=W;Z=x;d=I;var v=O,m=Y.argumentIndex;Z[m]===void 0?v.push("Undefined parameter - "+m):(m=Y[Z[m]],m===void 0&&(m=Y.other),iLp(K,m,Z,d,v));break;case 0:Y=P[B].value;Rkm(W,Y,x,_.aY,I,O);break;case 1:Y=P[B].value,Rkm(W,Y,
x,azW,I,O)}},Rkm=function(W,P,x,I,O,B){var Y=P.argumentIndex,K=P.argumentOffset,Z=+x[Y];
isNaN(Z)?B.push("Undefined or invalid parameter - "+Y):(K=Z-K,Y=P[x[Y]],Y===void 0&&(I=I(Math.abs(K)),Y=P[I],Y===void 0&&(Y=P.other)),P=[],iLp(W,Y,x,O,P),x=P.join(""),O?B.push(x):(W=W.numberFormatter_.format(K),B.push(x.replace(/#/g,W))))},TTk=function(W,P){var x=W.initialLiterals_,I=W.buildPlaceholder_.bind(W);
P=P.replace(lzA,function(){x.push("'");return I(x)});
return P=P.replace(NTM,function(O,B){x.push(B);return I(x)})},F7b=function(W){var P=0,x=[],I=[],O=/[{}]/g;
O.lastIndex=0;for(var B;B=O.exec(W);){var Y=B.index;B[0]=="}"?(x.pop(),x.length==0&&(B={type:1},B.value=W.substring(P,Y),I.push(B),P=Y+1)):(x.length==0&&(P=W.substring(P,Y),P!=""&&I.push({type:0,value:P}),P=Y+1),x.push("{"))}W=W.substring(P);W!=""&&I.push({type:0,value:W});return I},qoi=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,L7w=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Wrl=/^\s*(\w+)\s*,\s*select\s*,/,rqm=function(W,P){var x=[];
P=F7b(P);for(var I=0;I<P.length;I++){var O={};if(0==P[I].type)O.type=4,O.value=P[I].value;else if(1==P[I].type){var B=P[I].value;switch(qoi.test(B)?0:L7w.test(B)?1:Wrl.test(B)?2:/^\s*\w+\s*/.test(B)?3:5){case 2:O.type=2;O.value=Pwp(W,P[I].value);break;case 0:O.type=0;O.value=xnZ(W,P[I].value);break;case 1:O.type=1;O.value=Iec(W,P[I].value);break;case 3:O.type=3,O.value=P[I].value}}x.push(O)}return x},Pwp=function(W,P){var x="";
P=P.replace(Wrl,function(K,Z){x=Z;return""});
var I={};I.argumentIndex=x;P=F7b(P);for(var O=0;O<P.length;){var B=P[O].value;O++;var Y=void 0;1==P[O].type&&(Y=rqm(W,P[O].value));I[B.replace(/\s/g,"")]=Y;O++}return I},xnZ=function(W,P){var x="",I=0;
P=P.replace(qoi,function(Z,d,v){x=d;v&&(I=parseInt(v,10));return""});
var O={};O.argumentIndex=x;O.argumentOffset=I;P=F7b(P);for(var B=0;B<P.length;){var Y=P[B].value;B++;var K=void 0;1==P[B].type&&(K=rqm(W,P[B].value));O[Y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=K;B++}return O},Iec=function(W,P){var x="";
P=P.replace(L7w,function(K,Z){x=Z;return""});
var I={};I.argumentIndex=x;I.argumentOffset=0;P=F7b(P);for(var O=0;O<P.length;){var B=P[O].value;O++;var Y=void 0;1==P[O].type&&(Y=rqm(W,P[O].value));I[B.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Y;O++}return I};
_.fzW.prototype.buildPlaceholder_=function(W){return"\ufddf_"+(W.length-1).toString(10)+"_"};var O_k;
O_k={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 Zgx=function(){this.rdtfSymbols_=JEA||O_k;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Zgx.prototype.format=function(W,P){a:{P=BYb(this,P);switch(this.style_){case 2:if(P.NARROW!=void 0){P=P.NARROW;break a}case 1:if(P.SHORT!=void 0){P=P.SHORT;break a}default:P=P.LONG;break a}P=void 0}if(!this.alwaysNumeric_&&P&&P.R&&P.R[""+W])W=P.R[""+W];else if(P){var x=Math.abs(W);W=(new _.fzW("{N,plural,"+(W>0||W==0&&1/W==Infinity?P.F:P.P)+"}")).format({N:x})}else W="";return W};
var BYb=function(W,P){switch(P){default:case 0:return W.rdtfSymbols_.YEAR;case 1:return W.rdtfSymbols_.QUARTER;case 2:return W.rdtfSymbols_.MONTH;case 3:return W.rdtfSymbols_.WEEK;case 4:return W.rdtfSymbols_.DAY;case 5:return W.rdtfSymbols_.HOUR;case 6:return W.rdtfSymbols_.MINUTE;case 7:return W.rdtfSymbols_.SECOND}};var nl3=function(W,P,x,I,O,B,Y,K){this.x0=W;this.y0=P;this.x1=x;this.y1=I;this.x2=O;this.y2=B;this.x3=Y;this.y3=K};
nl3.prototype.clone=function(){return new nl3(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
nl3.prototype.equals=function(W){return this.x0==W.x0&&this.y0==W.y0&&this.x1==W.x1&&this.y1==W.y1&&this.x2==W.x2&&this.y2==W.y2&&this.x3==W.x3&&this.y3==W.y3};
var YZ3=function(W,P){if(P==0)return W.x0;if(P==1)return W.x3;var x=jA(W.x0,W.x1,P),I=jA(W.x1,W.x2,P);W=jA(W.x2,W.x3,P);x=jA(x,I,P);I=jA(I,W,P);return jA(x,I,P)},yEi=function(W,P){var x=(P-W.x0)/(W.x3-W.x0);
if(x<=0)return 0;if(x>=1)return 1;for(var I=0,O=1,B=0,Y=0;Y<8;Y++){B=YZ3(W,x);var K=(YZ3(W,x+1E-6)-B)/1E-6;if(Math.abs(B-P)<1E-6)return x;if(Math.abs(K)<1E-6)break;else B<P?I=x:O=x,x-=(B-P)/K}for(Y=0;Math.abs(B-P)>1E-6&&Y<8;Y++)B<P?(I=x,x=(x+O)/2):(O=x,x=(x+I)/2),B=YZ3(W,x);return x};var Lh=function(){_.tW.call(this);this.JSC$9284_name_="closure_frame"+KrA++;this.iframesForDisposal_=[];Z_W[this.JSC$9284_name_]=this},WT;
_.J8(Lh,_.tW);var Z_W={},KrA=0,olc=function(W,P){var x=oQ(W);_.gj3(P,function(I,O){Array.isArray(I)||(I=[I]);_.bP(I,function(B){B=x.JSC$7233_createDom("INPUT",{type:"hidden",name:O,value:B});W.appendChild(B)})})};
_.J=Lh.prototype;_.J.JSC$9286_form_=null;_.J.JSC$9286_iframe_=null;_.J.iframeName_=null;_.J.nextIframeId_=0;_.J.JSC$9286_active_=!1;_.J.complete_=!1;_.J.success_=!1;_.J.lastContent_=null;_.J.JSC$9286_lastErrorCode_=0;_.J.iframeDisposalTimer_=null;
_.J.send=function(W,P,x,I){if(this.JSC$9286_active_)throw Error("oe");W=new _.Xu(W);P=P?P.toUpperCase():"GET";x&&_.BL(W);WT||(WT=_.zT("FORM"),WT.acceptCharset="utf-8",x=WT.style,x.position="absolute",x.visibility="hidden",x.top=x.left="-10px",x.width=x.height="10px",x.overflow="hidden",document.body.appendChild(WT));this.JSC$9286_form_=WT;P=="GET"&&olc(this.JSC$9286_form_,W.JSC$7933_queryData_);I&&olc(this.JSC$9286_form_,I);x=W.toString();x=I$U(x);I=this.JSC$9286_form_;x=_.Q4(o$(x));x!==void 0&&(I.action=
x);this.JSC$9286_form_.method=P;SZc(this);u4A(this)};
_.J.abort=function(W){if(this.JSC$9286_active_){var P=PT(this);if(P)if(v1(P))P.removeAllListeners(void 0);else if(P=mz(P)){var x=0,I;for(I in P.listeners)for(var O=P.listeners[I].concat(),B=0;B<O.length;++B)Z1(O[B])&&++x}this.success_=this.JSC$9286_active_=this.complete_=!1;this.JSC$9286_lastErrorCode_=W||7;this.dispatchEvent("abort");dnP(this)}};
_.J.disposeInternal=function(){this.JSC$9286_active_&&this.abort();Lh.superClass_.disposeInternal.call(this);this.JSC$9286_iframe_&&s7k(this);u4A(this);this.JSC$9286_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9286_form_=null;this.JSC$9286_lastErrorCode_=0;delete Z_W[this.JSC$9284_name_]};
_.J.isComplete=function(){return this.complete_};
_.J.isSuccess=function(){return this.success_};
_.J.isActive=function(){return this.JSC$9286_active_};
_.J.getResponseText=function(){return this.lastContent_};
_.J.getLastError=function(){return _.nDZ(this.JSC$9286_lastErrorCode_)};
var SZc=function(W){W.JSC$9286_active_=!0;W.complete_=!1;W.JSC$9286_lastErrorCode_=0;W.iframeName_=W.JSC$9284_name_+"_"+(W.nextIframeId_++).toString(36);W.JSC$9286_iframe_=oQ(W.JSC$9286_form_).JSC$7233_createDom("IFRAME",{name:W.iframeName_,id:W.iframeName_});var P=W.JSC$9286_iframe_.style;P.visibility="hidden";P.width=P.height="10px";P.display="none";_.Z2?P.marginTop=P.marginLeft="-10px":(P.position="absolute",P.top=P.left="-10px");oQ(W.JSC$9286_form_).JSC$7231_document_.body.appendChild(W.JSC$9286_iframe_);
P=W.iframeName_+"_inner";var x=qcz(W.JSC$9286_iframe_);if(document.baseURI){var I=Oa(P);I='<head><base href="'+Oa(document.baseURI)+'"></head><body><iframe id="'+I+'" name="'+I+'"></iframe>';I=GI(I)}else I=Oa(P),I=GI('<body><iframe id="'+I+'" name="'+I+'"></iframe>');x.write(E0(I));_.uq(x.getElementById(P),"load",W.onIframeLoaded_,!1,W);I=Sa("TEXTAREA",W.JSC$9286_form_);for(var O=0,B=I.length;O<B;O++){var Y=I[O].value;O2M(I[O])!=Y&&(_.wN(I[O],Y),I[O].value=Y)}I=x.importNode(W.JSC$9286_form_,!0);I.target=
P;I.action=W.JSC$9286_form_.action;x.body.appendChild(I);O=Sa("SELECT",W.JSC$9286_form_);B=Sa("SELECT",I);Y=0;for(var K=O.length;Y<K;Y++)for(var Z=Sa("OPTION",O[Y]),d=Sa("OPTION",B[Y]),v=0,m=Z.length;v<m;v++)d[v].selected=Z[v].selected;O=Sa("INPUT",W.JSC$9286_form_);B=Sa("INPUT",I);Y=0;for(K=O.length;Y<K;Y++)if(O[Y].type=="file"&&O[Y].value!=B[Y].value){W.JSC$9286_form_.target=P;I=W.JSC$9286_form_;break}try{W.errorHandled_=!1,I.submit(),x.close(),_.KW&&setTimeout(W.testForFirefoxSilentError_.bind(W),
250)}catch(t){_.Vq(x.getElementById(P),"load",W.onIframeLoaded_,!1,W),x.close(),xu(W,2)}};
Lh.prototype.onIframeLoaded_=function(){_.Vq(PT(this),"load",this.onIframeLoaded_,!1,this);try{var W=this.JSC$9286_iframe_?qcz(PT(this)):null;this.complete_=!0;this.JSC$9286_active_=!1;try{var P=W.body;this.lastContent_=P.textContent||P.innerText}catch(O){var x=1}var I;x||typeof this.errorChecker_!="function"||(I=this.errorChecker_(W))&&(x=4);x?xu(this,x):(this.success_=!0,this.JSC$9286_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),dnP(this))}catch(O){xu(this,1)}};
var xu=function(W,P){W.errorHandled_||(W.success_=!1,W.JSC$9286_active_=!1,W.complete_=!0,W.JSC$9286_lastErrorCode_=P,W.dispatchEvent("complete"),W.dispatchEvent("error"),dnP(W),W.errorHandled_=!0)},dnP=function(W){s7k(W);
u4A(W);W.JSC$9286_form_=null;W.dispatchEvent("ready")},s7k=function(W){var P=W.JSC$9286_iframe_;
P&&(P.onreadystatechange=null,P.onload=null,P.onerror=null,W.iframesForDisposal_.push(P));W.iframeDisposalTimer_&&(clearTimeout(W.iframeDisposalTimer_),W.iframeDisposalTimer_=null);_.KW?W.iframeDisposalTimer_=setTimeout(W.disposeIframes_.bind(W),2E3):W.disposeIframes_();W.JSC$9286_iframe_=null;W.iframeName_=null};
Lh.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var W=this.iframesForDisposal_.pop();_.oE(W)}};
var u4A=function(W){W.JSC$9286_form_&&W.JSC$9286_form_==WT&&_.gN(W.JSC$9286_form_)},PT=function(W){return W.JSC$9286_iframe_?qcz(W.JSC$9286_iframe_).getElementById(W.iframeName_+"_inner"):null};
Lh.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9286_active_){var W=this.JSC$9286_iframe_?qcz(PT(this)):null;W&&!Eh(W,"documentUri")?(_.Vq(PT(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?xu(this,3):xu(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.In=function(W){return W=="\r"||W=="\n"||W==" "||W=="\t"};var vlk;_.Ok=function(W){this.errorMessage_=null;this.result_=[];this.JSC$9288_buffer_="";this.stack_=[];this.JSC$9288_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!W||!W.deliverMessageAsRawString)};
vlk={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 Ju=function(W,P,x){W.streamState_=3;W.errorMessage_="The stream is broken @"+W.JSC$9288_pos_+"/"+x+". With input:\n"+P;throw Error(W.errorMessage_);};
_.Ok.prototype.acceptsBinaryInput=function(){return!1};
_.Ok.prototype.parse=function(W){function P(){for(;t<W.length;)if(_.In(W[t]))t++,B.JSC$9288_pos_++;else break;return t<d}
function x(){for(var z;;){z=W[t++];if(!z)break;B.JSC$9288_pos_++;switch(B.state_){case Z.INIT:z==="{"?B.state_=Z.OBJECT_OPEN:z==="["?B.state_=Z.ARRAY_OPEN:_.In(z)||Ju(B,W,t);continue;case Z.KEY_START:case Z.OBJECT_OPEN:if(_.In(z))continue;if(B.state_===Z.KEY_START)Y.push(Z.KEY_END);else if(z==="}"){O("{}");B.state_=I();continue}else Y.push(Z.OBJECT_END);z==='"'?B.state_=Z.STRING:Ju(B,W,t);continue;case Z.KEY_END:case Z.OBJECT_END:if(_.In(z))continue;z===":"?(B.state_===Z.OBJECT_END&&(Y.push(Z.OBJECT_END),
B.depth_++),B.state_=Z.VALUE):z==="}"?(B.depth_--,O(),B.state_=I()):z===","?(B.state_===Z.OBJECT_END&&Y.push(Z.OBJECT_END),B.state_=Z.KEY_START):Ju(B,W,t);continue;case Z.ARRAY_OPEN:case Z.VALUE:if(_.In(z))continue;if(B.state_===Z.ARRAY_OPEN)if(B.depth_++,B.state_=Z.VALUE,z==="]"){B.depth_--;if(B.depth_===0){B.state_=Z.ARRAY_END;return}O("[]");B.state_=I();continue}else Y.push(Z.ARRAY_END);z==='"'?B.state_=Z.STRING:z==="{"?B.state_=Z.OBJECT_OPEN:z==="["?B.state_=Z.ARRAY_OPEN:z==="t"?B.state_=Z.TRUE1:
z==="f"?B.state_=Z.FALSE1:z==="n"?B.state_=Z.NULL1:z!=="-"&&("0123456789".indexOf(z)!==-1?B.state_=Z.NUM_DIGIT:Ju(B,W,t));continue;case Z.ARRAY_END:if(z===",")Y.push(Z.ARRAY_END),B.state_=Z.VALUE,B.depth_===1&&(m=t);else if(z==="]"){B.depth_--;if(B.depth_===0)return;O();B.state_=I()}else if(_.In(z))continue;else Ju(B,W,t);continue;case Z.STRING:var D=t;a:for(;;){for(;B.unicodeCount_>0;)if(z=W[t++],B.unicodeCount_===4?B.unicodeCount_=0:B.unicodeCount_++,!z)break a;if(z==='"'&&!B.slashed_){B.state_=
I();break}if(z==="\\"&&!B.slashed_&&(B.slashed_=!0,z=W[t++],!z))break;if(B.slashed_)if(B.slashed_=!1,z==="u"&&(B.unicodeCount_=1),z=W[t++])continue;else break;K.lastIndex=t;z=K.exec(W);if(!z){t=W.length+1;break}t=z.index+1;z=W[z.index];if(!z)break}B.JSC$9288_pos_+=t-D;continue;case Z.TRUE1:if(!z)continue;z==="r"?B.state_=Z.TRUE2:Ju(B,W,t);continue;case Z.TRUE2:if(!z)continue;z==="u"?B.state_=Z.TRUE3:Ju(B,W,t);continue;case Z.TRUE3:if(!z)continue;z==="e"?B.state_=I():Ju(B,W,t);continue;case Z.FALSE1:if(!z)continue;
z==="a"?B.state_=Z.FALSE2:Ju(B,W,t);continue;case Z.FALSE2:if(!z)continue;z==="l"?B.state_=Z.FALSE3:Ju(B,W,t);continue;case Z.FALSE3:if(!z)continue;z==="s"?B.state_=Z.FALSE4:Ju(B,W,t);continue;case Z.FALSE4:if(!z)continue;z==="e"?B.state_=I():Ju(B,W,t);continue;case Z.NULL1:if(!z)continue;z==="u"?B.state_=Z.NULL2:Ju(B,W,t);continue;case Z.NULL2:if(!z)continue;z==="l"?B.state_=Z.NULL3:Ju(B,W,t);continue;case Z.NULL3:if(!z)continue;z==="l"?B.state_=I():Ju(B,W,t);continue;case Z.NUM_DECIMAL_POINT:z===
"."?B.state_=Z.NUM_DIGIT:Ju(B,W,t);continue;case Z.NUM_DIGIT:if("0123456789.eE+-".indexOf(z)!==-1)continue;else t--,B.JSC$9288_pos_--,B.state_=I();continue;default:Ju(B,W,t)}}}
function I(){var z=Y.pop();return z!=null?z:Z.VALUE}
function O(z){B.depth_>1||(z||(z=m===-1?B.JSC$9288_buffer_+W.substring(v,t):W.substring(m,t)),B.deliverMessageAsRawString_?B.result_.push(z):B.result_.push(JSON.parse(z)),m=t)}
for(var B=this,Y=B.stack_,K=B.stringInputPattern_,Z=vlk,d=W.length,v=0,m=-1,t=0;t<d;)switch(B.streamState_){case 3:return Ju(B,W,t),null;case 2:return P()&&Ju(B,W,t),null;case 0:if(P()){var C=W[t++];B.JSC$9288_pos_++;if(C==="["){B.streamState_=1;v=t;B.state_=Z.ARRAY_OPEN;continue}else Ju(B,W,t)}return null;case 1:return x(),B.depth_===0&&B.state_==Z.ARRAY_END?(B.streamState_=2,B.JSC$9288_buffer_=W.substring(t)):B.JSC$9288_buffer_=m===-1?B.JSC$9288_buffer_+W.substring(v):W.substring(m),B.result_.length>
0?(C=B.result_,B.result_=[],C):null}return null};_.J8(_.WV,tY);PV.prototype.getValue=function(){return this.JSC$9296_value_};
PV.prototype.clone=function(){return new PV(this.JSC$9296_key_,this.JSC$9296_value_)};var BT=function(W){this.nodes_=[];if(W)a:{if(W instanceof BT){var P=W.getKeys();W=W.getValues();if(this.getCount()<=0){for(var x=this.nodes_,I=0;I<P.length;I++)x.push(new PV(P[I],W[I]));break a}}else P=_.jU.getKeys(W),W=_.jU.getValues(W);for(x=0;x<P.length;x++)this.insert(P[x],W[x])}};
_.J=BT.prototype;_.J.insert=function(W,P){var x=this.nodes_;x.push(new PV(W,P));W=x.length-1;P=this.nodes_;for(x=P[W];W>0;){var I=W-1>>1;if(P[I].JSC$9296_key_>x.JSC$9296_key_)P[W]=P[I],W=I;else break}P[W]=x};
_.J.remove=function(){var W=this.nodes_,P=W.length,x=W[0];if(!(P<=0)){if(P==1)W.length=0;else{W[0]=W.pop();W=0;P=this.nodes_;for(var I=P.length,O=P[W];W<I>>1;){var B=W*2+1,Y=W*2+2;B=Y<I&&P[Y].JSC$9296_key_<P[B].JSC$9296_key_?Y:B;if(P[B].JSC$9296_key_>O.JSC$9296_key_)break;P[W]=P[B];W=B}P[W]=O}return x.getValue()}};
_.J.peek=function(){var W=this.nodes_;if(W.length!=0)return W[0].getValue()};
_.J.getValues=function(){for(var W=this.nodes_,P=[],x=W.length,I=0;I<x;I++)P.push(W[I].getValue());return P};
_.J.getKeys=function(){for(var W=this.nodes_,P=[],x=W.length,I=0;I<x;I++)P.push(W[I].JSC$9296_key_);return P};
_.J.containsValue=function(W){return this.nodes_.some(function(P){return P.getValue()==W})};
_.J.containsKey=function(W){return this.nodes_.some(function(P){return P.JSC$9296_key_==W})};
_.J.clone=function(){return new BT(this)};
_.J.getCount=function(){return this.nodes_.length};
_.J.isEmpty=function(){return this.nodes_.length===0};
_.J.clear=function(){this.nodes_.length=0};_.nT=function(W,P){this.JSC$9302_map_={};this.JSC$9302_keys_=[];this.version_=this.size=0;var x=arguments.length;if(x>1){if(x%2)throw Error("oa");for(var I=0;I<x;I+=2)this.set(arguments[I],arguments[I+1])}else W&&this.addAll(W)};
_.J=_.nT.prototype;_.J.getCount=function(){return this.size};
_.J.getValues=function(){Yu(this);for(var W=[],P=0;P<this.JSC$9302_keys_.length;P++)W.push(this.JSC$9302_map_[this.JSC$9302_keys_[P]]);return W};
_.J.getKeys=function(){Yu(this);return this.JSC$9302_keys_.concat()};
_.J.containsKey=function(W){return this.has(W)};
_.J.has=function(W){return yM(this.JSC$9302_map_,W)};
_.J.containsValue=function(W){for(var P=0;P<this.JSC$9302_keys_.length;P++){var x=this.JSC$9302_keys_[P];if(yM(this.JSC$9302_map_,x)&&this.JSC$9302_map_[x]==W)return!0}return!1};
_.J.equals=function(W,P){if(this===W)return!0;if(this.size!=W.getCount())return!1;P=P||mnl;Yu(this);for(var x,I=0;x=this.JSC$9302_keys_[I];I++)if(!P(this.get(x),W.get(x)))return!1;return!0};
var mnl=function(W,P){return W===P};
_.nT.prototype.isEmpty=function(){return this.size==0};
_.nT.prototype.clear=function(){this.JSC$9302_map_={};this.version_=this.size=this.JSC$9302_keys_.length=0};
_.nT.prototype.remove=function(W){return this.delete(W)};
_.nT.prototype.delete=function(W){return yM(this.JSC$9302_map_,W)?(delete this.JSC$9302_map_[W],--this.size,this.version_++,this.JSC$9302_keys_.length>2*this.size&&Yu(this),!0):!1};
var Yu=function(W){if(W.size!=W.JSC$9302_keys_.length){for(var P=0,x=0;P<W.JSC$9302_keys_.length;){var I=W.JSC$9302_keys_[P];yM(W.JSC$9302_map_,I)&&(W.JSC$9302_keys_[x++]=I);P++}W.JSC$9302_keys_.length=x}if(W.size!=W.JSC$9302_keys_.length){P={};for(I=x=0;x<W.JSC$9302_keys_.length;){var O=W.JSC$9302_keys_[x];yM(P,O)||(W.JSC$9302_keys_[I++]=O,P[O]=1);x++}W.JSC$9302_keys_.length=I}};
_.J=_.nT.prototype;_.J.get=function(W,P){return yM(this.JSC$9302_map_,W)?this.JSC$9302_map_[W]:P};
_.J.set=function(W,P){yM(this.JSC$9302_map_,W)||(this.size+=1,this.JSC$9302_keys_.push(W),this.version_++);this.JSC$9302_map_[W]=P};
_.J.addAll=function(W){if(W instanceof _.nT)for(var P=W.getKeys(),x=0;x<P.length;x++)this.set(P[x],W.get(P[x]));else for(P in W)this.set(P,W[P])};
_.J.forEach=function(W,P){for(var x=this.getKeys(),I=0;I<x.length;I++){var O=x[I],B=this.get(O);W.call(P,B,O,this)}};
_.J.clone=function(){return new _.nT(this)};
_.J.transpose=function(){for(var W=new _.nT,P=0;P<this.JSC$9302_keys_.length;P++){var x=this.JSC$9302_keys_[P];W.set(this.JSC$9302_map_[x],x)}return W};
_.J.keys=function(){return lqM(this.__iterator__(!0)).toEs6()};
_.J.values=function(){return lqM(this.__iterator__(!1)).toEs6()};
_.J.entries=function(){var W=this;return Jbp(this.keys(),function(P){return[P,W.get(P)]})};
_.J.__iterator__=function(W){Yu(this);var P=0,x=this.version_,I=this,O=new JZ;O.next=function(){if(x!=I.version_)throw Error("pe");if(P>=I.JSC$9302_keys_.length)return Bp;var B=I.JSC$9302_keys_[P++];return n0(W?B:I.JSC$9302_map_[B])};
return O};
var yM=function(W,P){return Object.prototype.hasOwnProperty.call(W,P)};var tdZ=function(){this.JSC$9305_map_=new _.nT;this.JSC$9305_head_=new VdM("");this.JSC$9305_head_.next=this.JSC$9305_head_.prev=this.JSC$9305_head_},pMp=function(W,P){if(P=W.JSC$9305_map_.get(P))P.remove(),W.insert_(P);
return P};
_.J=tdZ.prototype;_.J.get=function(W,P){return(W=pMp(this,W))?W.value:P};
_.J.set=function(W,P){var x=pMp(this,W);x?x.value=P:(x=new VdM(W,P),this.JSC$9305_map_.set(W,x),this.insert_(x))};
_.J.peek=function(){return this.JSC$9305_head_.next.value};
_.J.shift=function(){return j7Z(this,this.JSC$9305_head_.next)};
_.J.pop=function(){return j7Z(this,this.JSC$9305_head_.prev)};
_.J.remove=function(W){return(W=this.JSC$9305_map_.get(W))?(this.removeNode(W),!0):!1};
_.J.removeNode=function(W){W.remove();this.JSC$9305_map_.remove(W.key)};
_.J.getCount=function(){return this.JSC$9305_map_.getCount()};
_.J.isEmpty=function(){return this.JSC$9305_map_.isEmpty()};
_.J.getKeys=function(){return this.map(function(W,P){return P})};
_.J.getValues=function(){return this.map(function(W){return W})};
_.J.contains=function(W){return this.some(function(P){return P==W})};
_.J.containsKey=function(W){return this.JSC$9305_map_.containsKey(W)};
_.J.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9305_head_.prev)};
_.J.forEach=function(W,P){for(var x=this.JSC$9305_head_.next;x!=this.JSC$9305_head_;x=x.next)W.call(P,x.value,x.key,this)};
_.J.map=function(W,P){for(var x=[],I=this.JSC$9305_head_.next;I!=this.JSC$9305_head_;I=I.next)x.push(W.call(P,I.value,I.key,this));return x};
_.J.some=function(W,P){for(var x=this.JSC$9305_head_.next;x!=this.JSC$9305_head_;x=x.next)if(W.call(P,x.value,x.key,this))return!0;return!1};
_.J.every=function(W,P){for(var x=this.JSC$9305_head_.next;x!=this.JSC$9305_head_;x=x.next)if(!W.call(P,x.value,x.key,this))return!1;return!0};
_.J.insert_=function(W){W.next=this.JSC$9305_head_.next;W.prev=this.JSC$9305_head_;this.JSC$9305_head_.next=W;for(W.next.prev=W;this.getCount()>40;)this.removeNode(this.JSC$9305_head_.prev)};
var j7Z=function(W,P){W.JSC$9305_head_!=P&&W.removeNode(P);return P.value},VdM=function(W,P){this.key=W;
this.value=P};
VdM.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Q7i=function(){BT.apply(this,arguments)};
_.A(Q7i,BT);Q7i.prototype.enqueue=function(W,P){this.insert(W,P)};var Cwz=function(){var W=Error();W.name="SecurityError";throw W;},pkt=function(){return{get opener(){return null},
get closed(){return!0},get location(){Cwz()},get document(){Cwz()},postMessage:function(){},
close:function(){},
focus:function(){}}};var bPR={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 XXt={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 AEb={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(XXt).join("|");var zoz=function(){function W(K){K.substr(-1)!==";"&&(K+=";");return Y(K)}
for(var P=Object.keys(AEb).sort(U$8),x=Object.keys(XXt).sort(U$8),I=0,O=0;I<x.length;I++)P[O]===x[I]?(x[I]+=";?",O++):x[I]+=";";var B=new RegExp("&(?:"+x.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Y=fsU();return function(K){return String(K).replace(B,W)}}();/*

 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 Gnc={};var Elw=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"),gll=/[\\&]/,Dnd=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),MdZ=RegExp('[&<>"]',"g"),$nA=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),wMP=function(W){return W.charCodeAt(0)===92?W.charAt(1):zoz(W)},hoA=function(W){return gll.test(W)?W.replace(Dnd,wMP):W},H_z=function(W){try{var P,x="";
if(typeof O!=="string"){var I=O;var O=";/?:@&=+$,-_.!~*'()#"}typeof I==="undefined"&&(I=!0);var B,Y=Gnc[O];if(Y)var K=Y;else{Y=Gnc[O]=[];for(B=0;B<128;B++){var Z=String.fromCharCode(B);/^[0-9a-z]$/i.test(Z)?Y.push(Z):Y.push("%"+("0"+B.toString(16).toUpperCase()).slice(-2))}for(B=0;B<O.length;B++)Y[O.charCodeAt(B)]=O[B];K=Y}var d=0;for(P=W.length;d<P;d++){var v=W.charCodeAt(d);if(I&&v===37&&d+2<P&&/^[0-9a-f]{2}$/i.test(W.slice(d+1,d+3)))x+=W.slice(d,d+3),d+=2;else if(v<128)x+=K[v];else if(v>=55296&&
v<=57343){if(v>=55296&&v<=56319&&d+1<P){var m=W.charCodeAt(d+1);if(m>=56320&&m<=57343){x+=encodeURIComponent(W[d]+W[d+1]);d++;continue}}x+="%EF%BF%BD"}else x+=encodeURIComponent(W[d])}return x}catch(t){return W}},eo3=function(W){switch(W){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return W}},KT=function(W,P){return MdZ.test(W)?P?W.replace($nA,eo3):W.replace(MdZ,eo3):W};/*

 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 Zb;if(String.fromCodePoint)Zb=function(W){try{return String.fromCodePoint(W)}catch(P){if(P instanceof RangeError)return String.fromCharCode(65533);throw P;}};
else{var cEk=String.fromCharCode,ael=Math.floor;Zb=function(){var W=[],P=-1,x=arguments.length;if(!x)return"";for(var I="";++P<x;){var O=Number(arguments[P]);if(!isFinite(O)||O<0||O>1114111||ael(O)!==O)return String.fromCharCode(65533);if(O<=65535)W.push(O);else{O-=65536;var B=(O>>10)+55296;O=O%1024+56320;W.push(B,O)}if(P+1===x||W.length>16384)I+=cEk.apply(null,W),W.length=0}return I}};var b_W=function(W){this.root=this.current=W;this.entering=!0};
b_W.prototype.next=function(){var W=this.current,P=this.entering;if(W===null)return null;a:switch(W._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var x=!0;break a;default:x=!1}P&&x?W._firstChild?(this.current=W._firstChild,this.entering=!0):this.entering=!1:W===this.root?this.current=null:W._next===null?(this.current=
W._parent,this.entering=!1):(this.current=W._next,this.entering=!0);return{entering:P,node:W}};
var J1=function(W,P){this._type=W;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=P;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};
J1.prototype.appendChild=function(W){on(W);W._parent=this;this._lastChild?(this._lastChild._next=W,W._prev=this._lastChild):this._firstChild=W;this._lastChild=W};
var on=function(W){W._prev?W._prev._next=W._next:W._parent&&(W._parent._firstChild=W._next);W._next?W._next._prev=W._prev:W._parent&&(W._parent._lastChild=W._prev);W._parent=null;W._next=null;W._prev=null},knk=function(W,P){on(P);
P._next=W._next;P._next&&(P._next._prev=P);P._prev=W;W._next=P;P._parent=W._parent;P._next||(P._parent._lastChild=P)};
J1.prototype.insertBefore=function(W){on(W);W._prev=this._prev;W._prev&&(W._prev._next=W);W._next=this;this._prev=W;W._parent=this._parent;W._prev||(W._parent._firstChild=W)};
_.N1.Object.defineProperties(J1.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(W){this._literal=W}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(W){this._destination=W}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(W){this._title=W}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(W){this._info=W}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(W){this._level=W}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(W){this._listData.type=W}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(W){this._listData.tight=W}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(W){this._listData.start=W}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(W){this._onEnter=W}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(W){this._onExit=W}}});var NhA=/[ \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,
lsm={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 Unl=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]/),
XMw=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),feA=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),NYi=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),leP=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),TYw=/`+/,rEP=/^`+/,i_A=/\.\.\./g,RoP=/--+/g,Frd=/^<([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])?)*)>/,
qZM=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Lr3=/^ *(?:\n *)?/,WTl=/^[ \t\n\x0b\x0c\x0d]/,Pql=/[ \t\n\x0b\x0c\x0d]+/g,xgm=/^\s/,I1w=/ *$/,Otb=/^ */,JFm=/^ *(?:\n|$)/,Bc3=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),nYW=/^[^\n`\[\]\\!<&*_'"]+/m,SJ=function(W){var P=new J1("text");P._literal=W;return P},u7=function(W){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=W||{}};
u7.prototype.match=function(W){W=W.exec(this.subject.slice(this.pos));if(W===null)return null;this.pos+=W.index+W[0].length;return W[0]};
u7.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var dK=function(W){W.match(Lr3);return!0},Y2P=function(W,P,x){var I=0;
var O=W.pos;if(P===39||P===34)I++,W.pos++;else for(;W.peek()===P;)I++,W.pos++;if(I===0)I=null;else{var B=O===0?"\n":W.subject.charAt(O-1);var Y=W.peek();Y=Y===-1?"\n":Zb(Y);var K=xgm.test(Y);Y=Unl.test(Y);var Z=xgm.test(B);var d=Unl.test(B);B=!K&&!(Y&&!Z&&!d);K=!Z&&!(d&&!K&&!Y);P===95?(Z=B&&(!K||d),Y=K&&(!B||Y)):(Z=P===39||P===34?B&&!K:B,Y=K);W.pos=O;I={numdelims:I,can_open:Z,can_close:Y}}if(!I)return!1;O=I.numdelims;Y=W.pos;W.pos+=O;Y=P===39?"\u2019":P===34?"\u201c":W.subject.slice(Y,W.pos);Y=SJ(Y);
x.appendChild(Y);W.delimiters={cc:P,numdelims:O,origdelims:O,node:Y,previous:W.delimiters,next:null,can_open:I.can_open,can_close:I.can_close};W.delimiters.previous!==null&&(W.delimiters.previous.next=W.delimiters);return!0},yFm=function(W,P){P.previous!==null&&(P.previous.next=P.next);
P.next===null?W.delimiters=P.previous:P.next.previous=P.previous},KTb=function(W,P){var x,I,O=[],B=!1;
O[95]=P;O[42]=P;O[39]=P;O[34]=P;for(x=W.delimiters;x!==null&&x.previous!==P;)x=x.previous;for(;x!==null;){var Y=x.cc;if(x.can_close){var K=x.previous;for(I=!1;K!==null&&K!==P&&K!==O[Y];){B=(x.can_open||K.can_close)&&(K.origdelims+x.origdelims)%3===0;if(K.cc===x.cc&&K.can_open&&!B){I=!0;break}K=K.previous}var Z=x;if(Y===42||Y===95)if(I){var d=x.numdelims>=2&&K.numdelims>=2?2:1;var v=K.node;var m=x.node;K.numdelims-=d;x.numdelims-=d;v._literal=v._literal.slice(0,v._literal.length-d);m._literal=m._literal.slice(0,
m._literal.length-d);var t=new J1(d===1?"emph":"strong");for(d=v._next;d&&d!==m;){var C=d._next;on(d);t.appendChild(d);d=C}knk(v,t);d=K;C=x;d.next!==C&&(d.next=C,C.previous=d);K.numdelims===0&&(on(v),yFm(W,K));x.numdelims===0&&(on(m),K=x.next,yFm(W,x),x=K)}else x=x.next;else Y===39?(x.node._literal="\u2019",I&&(K.node._literal="\u2018"),x=x.next):Y===34&&(x.node._literal="\u201d",I&&(K.node.literal="\u201c"),x=x.next);I||B||(O[Y]=Z.previous,Z.can_open||yFm(W,Z))}else x=x.next}for(;W.delimiters!==
null&&W.delimiters!==P;)yFm(W,W.delimiters)},Ztm=function(W){W=W.match(XMw);
return W===null?null:hoA(W.substr(1,W.length-2))},oYd=function(W){var P=W.match(feA);
if(P===null){P=W.pos;for(var x=0,I;(I=W.peek())!==-1;)if(I===92)W.pos+=1,W.peek()!==-1&&(W.pos+=1);else if(I===40)W.pos+=1,x+=1;else if(I===41)if(x<1)break;else W.pos+=1,--x;else if(WTl.exec(Zb(I))!==null)break;else W.pos+=1;P=W.subject.substr(P,W.pos-P);return H_z(hoA(P))}return H_z(hoA(P.substr(1,P.length-2)))},S2A=function(W){W=W.match(Bc3);
return W===null||W.length>1001?0:W.length},uom=function(W,P,x,I){W.brackets!==null&&(W.brackets.bracketAfter=!0);
W.brackets={node:P,previous:W.brackets,previousDelimiter:W.delimiters,index:x,image:I,active:!0}},dgc=function(W,P){var x;
return(x=W.match(nYW))?(W.options.smart?P.appendChild(SJ(x.replace(i_A,"\u2026").replace(RoP,function(I){var O=0,B=0;I.length%3===0?B=I.length/3:I.length%2===0?O=I.length/2:I.length%3===2?(O=1,B=(I.length-2)/3):(O=2,B=(I.length-4)/3);I="";var Y;for(Y=0;Y<B;Y++)I+="\u2014";for(Y=0;Y<O;Y++)I+="\u2013";return I}))):P.appendChild(SJ(x)),!0):!1},sxk=function(W,P,x){W.subject=P;
W.pos=0;P=W.pos;var I=S2A(W);if(I===0)return 0;var O=W.subject.substr(0,I);if(W.peek()===58)W.pos++;else return W.pos=P,0;dK(W);I=oYd(W);if(I===null||I.length===0)return W.pos=P,0;var B=W.pos;dK(W);var Y=Ztm(W);Y===null&&(Y="",W.pos=B);var K=!0;W.match(JFm)===null&&(Y===""?K=!1:(Y="",W.pos=B,K=W.match(JFm)!==null));if(!K)return W.pos=P,0;O=Thm(O);if(O==="")return W.pos=P,0;x[O]||(x[O]={destination:I,title:Y});return W.pos-P},vYZ=function(W,P){var x,I=W.peek();
if(I===-1)return!1;switch(I){case 10:W.pos+=1;if((x=P._lastChild)&&x.type==="text"&&x._literal[x._literal.length-1]===" "){var O=x._literal[x._literal.length-2]===" ";x._literal=x._literal.replace(I1w,"");P.appendChild(new J1(O?"linebreak":"softbreak"))}else P.appendChild(new J1("softbreak"));W.match(Otb);x=!0;break;case 92:x=W.subject;W.pos+=1;W.peek()===10?(W.pos+=1,x=new J1("linebreak"),P.appendChild(x)):NYi.test(x.charAt(W.pos))?(P.appendChild(SJ(x.charAt(W.pos))),W.pos+=1):P.appendChild(SJ("\\"));
x=!0;break;case 96:a:if(x=W.match(rEP),x===null)x=!1;else{O=W.pos;for(var B;(B=W.match(TYw))!==null;)if(B===x){B=new J1("code");B._literal=W.subject.slice(O,W.pos-x.length).trim().replace(Pql," ");P.appendChild(B);x=!0;break a}W.pos=O;P.appendChild(SJ(x));x=!0}break;case 42:case 95:x=Y2P(W,I,P);break;case 39:case 34:x=W.options.smart&&Y2P(W,I,P);break;case 91:x=W.pos;W.pos+=1;O=SJ("[");P.appendChild(O);uom(W,O,x,!1);x=!0;break;case 33:x=W.pos;W.pos+=1;W.peek()===91?(W.pos+=1,O=SJ("!["),P.appendChild(O),
uom(W,O,x+1,!0)):P.appendChild(SJ("!"));x=!0;break;case 93:var Y,K=!1,Z;W.pos+=1;var d=W.pos;O=W.brackets;if(O===null)P.appendChild(SJ("]"));else if(O.active){x=O.image;var v=W.pos;W.peek()===40&&(W.pos++,dK(W)&&(B=oYd(W))!==null&&dK(W)&&(WTl.test(W.subject.charAt(W.pos-1))&&(Y=Ztm(W)),1)&&dK(W)&&W.peek()===41?(W.pos+=1,K=!0):W.pos=v);if(!K){var m=W.pos,t=S2A(W);t>2?Z=W.subject.slice(m,m+t):O.bracketAfter||(Z=W.subject.slice(O.index,d));t===0&&(W.pos=v);Z&&(Z=W.refmap[Thm(Z)])&&(B=Z.destination,Y=
Z.title,K=!0)}if(K){d=new J1(x?"image":"link");d._destination=B;d._title=Y||"";for(B=O.node._next;B;)Y=B._next,on(B),d.appendChild(B),B=Y;P.appendChild(d);KTb(W,O.previousDelimiter);W.brackets=W.brackets.previous;on(O.node);if(!x)for(O=W.brackets;O!==null;)O.image||(O.active=!1),O=O.previous}else W.brackets=W.brackets.previous,W.pos=d,P.appendChild(SJ("]"))}else P.appendChild(SJ("]")),W.brackets=W.brackets.previous;x=!0;break;case 60:(x=W.match(Frd))?(x=x.slice(1,x.length-1),O=new J1("link"),O._destination=
H_z("mailto:"+x),O._title="",O.appendChild(SJ(x)),P.appendChild(O),x=!0):(x=W.match(qZM))?(x=x.slice(1,x.length-1),O=new J1("link"),O._destination=H_z(x),O._title="",O.appendChild(SJ(x)),P.appendChild(O),x=!0):x=!1;x||(x=W.match(Elw),x===null?x=!1:(O=new J1("html_inline"),O._literal=x,P.appendChild(O),x=!0));break;case 38:(x=W.match(leP))?(P.appendChild(SJ(zoz(x))),x=!0):x=!1;break;default:x=dgc(W,P)}x||(W.pos+=1,P.appendChild(SJ(Zb(I))));return!0};
u7.prototype.parseInlines=function(W){this.subject=W._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;vYZ(this,W););W._string_content=null;KTb(this,null)};
u7.prototype.parse=u7.prototype.parseInlines;var mgl=[/./,/^<(?: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")],VSl=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],tSi=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,pWd=/^[#`~*+_=<>0-9-\|]|\|/,jxP=/[^ \t\f\v\r\n]/,Qxd=/^[*+-]/,Cql=/^(\d{1,9})([.)])/,AFm=/^#{1,6}(?:[ \t]+|$)/,zVb=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,GmZ=/^(?:`{3,}|~{3,})(?= *$)/,EY3=/^(?:=+|-+)[ \t]*$/,gYm=/\r\n|\n|\r/,iPR=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Rum=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,DgW={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(W,P){for(W=P._firstChild;W;){if(rMA(W)&&W._next){P._listData.tight=!1;break}for(var x=W._firstChild;x;){if(rMA(x)&&(W._next||x._next)){P._listData.tight=!1;break}x=x._next}W=W._next}},
canContain:function(W){return W==="item"},
acceptsLines:!1},block_quote:{continue:function(W){var P=W.currentLine;if(W.indented||Ii(P,W.nextNonspace)!==62)return 1;sk(W);vT(W,1,!1);xa(Ii(P,W.offset))&&vT(W,1,!0);return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},item:{continue:function(W,P){if(W.blank){if(P._firstChild==null)return 1;sk(W)}else if(W.indent>=P._listData.markerOffset+P._listData.padding)vT(W,P._listData.markerOffset+P._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(W){return W!=="item"&&!Ffo(W)},
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(W,P){var x=W.currentLine,I=W.indent;if(P._isFenced){if((I=I<=3&&x.charAt(W.nextNonspace)===P._fenceChar&&x.slice(W.nextNonspace).match(GmZ))&&I[0].length>=P._fenceLength)return W.finalize(P,W.lineNumber),2;for(P=P._fenceOffset;P>0&&xa(Ii(x,W.offset));)vT(W,1,!0),P--}else if(I>=4)vT(W,4,!0);else if(W.blank)sk(W);else return 1;return 0},
finalize:function(W,P){if(P._isFenced){var x=P._string_content,I=x.indexOf("\n");W=x.slice(0,I);x=x.slice(I+1);P.info=hoA(W.trim());P._literal=x}else P._literal=P._string_content.replace(/(\n *)+$/,"\n");P._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(W,P){return!W.blank||P._htmlBlockType!==6&&P._htmlBlockType!==7?0:1},
finalize:function(W,P){P._literal=P._string_content.replace(/(\n *)+$/,"");P._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(W){return W.blank?1:0},
finalize:function(W,P){for(var x,I=!1;Ii(P._string_content,0)===91&&(x=sxk(W.inlineParser,P._string_content,W.refmap));)P._string_content=P._string_content.slice(x),I=!0;I&&!jxP.test(P._string_content)&&on(P)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(W){return O_(W.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(W){return W=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(W,P){if(!P._rowIsDelimiter){W=P._isHeader?"th":"td";for(var x=P._parent._tableColumns,I=P._string_content,O=0,B="",Y,K=P._sourcepos[0][0];O<I.length;){switch(I[O]){case "|":Y&&(Y._string_content=B.trim(),B="",Y=null,x--,x<=0&&(O=I.length));break;default:if(!Y){Y=new J1(W,[[K,O],[K,O]]);var Z=P._parent._columnAlignment,d=P._parent._tableColumns-x;Z&&d<=Z.length&&d>=0&&(Y._alignment=Z[d]);P.appendChild(Y)}B+=I[O];Y._sourcepos[1][1]=O}O++}Y&&(Y._string_content=B.trim());P._string_content=
""}},
canContain:function(W){return W!=="row"},
acceptsLines:!1}},MSd=[function(W){if(W.indented||Ii(W.currentLine,W.nextNonspace)!==62)return 0;sk(W);vT(W,1,!1);xa(Ii(W.currentLine,W.offset))&&vT(W,1,!0);mw(W);W.addChild("block_quote",W.nextNonspace);return 1},
function(W){var P;if(!W.indented&&(P=W.currentLine.slice(W.nextNonspace).match(AFm))){sk(W);vT(W,P[0].length,!1);mw(W);var x=W.addChild("heading",W.nextNonspace);x.level=P[0].trim().length;x._string_content=W.currentLine.slice(W.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");vT(W,W.currentLine.length-W.offset);return 2}return 0},
function(W){var P;if(!W.indented&&(P=W.currentLine.slice(W.nextNonspace).match(zVb))){var x=P[0].length;mw(W);var I=W.addChild("code_block",W.nextNonspace);I._isFenced=!0;I._fenceLength=x;I._fenceChar=P[0][0];I._fenceOffset=W.indent;sk(W);vT(W,x,!1);return 2}return 0},
function(W,P){if(!W.indented&&Ii(W.currentLine,W.nextNonspace)===60){var x=W.currentLine.slice(W.nextNonspace),I;for(I=1;I<=7;I++)if(mgl[I].test(x)&&(I<7||P.type!=="paragraph"))return mw(W),W.addChild("html_block",W.offset)._htmlBlockType=I,2}return 0},
function(W,P){var x;if(!W.indented&&P.type==="paragraph"&&(x=W.currentLine.slice(W.nextNonspace).match(EY3))){mw(W);var I=new J1("heading",P.sourcepos);I.level=x[0][0]==="="?1:2;I._string_content=P._string_content;knk(P,I);on(P);W.tip=I;vT(W,W.currentLine.length-W.offset,!1);return 2}return 0},
function(W){return!W.indented&&tSi.test(W.currentLine.slice(W.nextNonspace))?(mw(W),W.addChild("thematic_break",W.nextNonspace),vT(W,W.currentLine.length-W.offset,!1),2):0},
function(W,P){var x,I;if(!(I=W.indented&&P.type!=="list")){a:{var O=P,B=W.currentLine.slice(W.nextNonspace);I={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:W.indent};if(x=B.match(Qxd))I.type="bullet",I.bulletChar=x[0][0];else{if(!(x=B.match(Cql))||O.type==="paragraph"&&x[1]!=="1"){x=null;break a}I.type="ordered";I.start=parseInt(x[1],10);I.delimiter=x[2]}var Y=Ii(W.currentLine,W.nextNonspace+x[0].length);if(Y!==-1&&Y!==9&&Y!==32||O.type==="paragraph"&&!W.currentLine.slice(W.nextNonspace+
x[0].length).match(jxP))x=null;else{sk(W);vT(W,x[0].length,!0);O=W.column;B=W.offset;do vT(W,1,!0),Y=Ii(W.currentLine,W.offset);while(W.column-O<5&&xa(Y));Y=Ii(W.currentLine,W.offset)===-1;var K=W.column-O;K>=5||K<1||Y?(I.padding=x[0].length+1,W.column=O,W.offset=B,xa(Ii(W.currentLine,W.offset))&&vT(W,1,!0)):I.padding=x[0].length+K;x=I}}I=!x}if(I)return 0;mw(W);(I=W.tip.type!=="list")||(P=P._listData,I=!(P.type===x.type&&P.delimiter===x.delimiter&&P.bulletChar===x.bulletChar));I&&(P=W.addChild("list",
W.nextNonspace),P._listData=x);P=W.addChild("item",W.nextNonspace);P._listData=x;return 1},
function(W){var P;return((P=W.options.shouldParseIndentAsCodeBlock)!=null?P:1)&&W.indented&&W.tip.type!=="paragraph"&&!W.blank?(vT(W,4,!0),mw(W),W.addChild("code_block",W.offset),2):0},
function(W,P){var x=O_(W.currentLine),I=O_(W.lookahead);if(x!==0&&I<0&&Math.abs(x)==Math.abs(I)&&!Ffo(P.type)){mw(W);P=W.addChild("table",W.nextNonspace);P._tableRows=1;P._tableColumns=Math.abs(x);x=W.lookahead;if(Rum.test(x)){I=[];for(var O=0,B=!1,Y=0,K=void 0;O<x.length;){var Z=Y>=3;switch(x[O]){case "-":Y++;break;case "|":B&&(I.push(K),K=void 0,Y=0);B=!0;break;case ":":K||Z||(K="left"),!K&&Z&&(K="right"),K==="left"&&Z&&(K="center")}O++}x=I}else x=void 0;P._columnAlignment=x;P=W.addChild("row",
W.nextNonspace);P._isHeader=!0;vT(W,W.currentLine.length-W.offset,!1);P._string_content=W.currentLine;return 1}return 0},
function(W,P){if(P.type=="table"&&O_(W.currentLine)!==0){mw(W);var x=P;P=W.addChild("row",W.nextNonspace);O_(W.currentLine)<0?P._rowIsDelimiter=!0:x._tableRows+=1;vT(W,W.currentLine.length-W.offset,!1);P._string_content=W.currentLine;return 2}return 0}],qO7=function(){var W={shouldParseIndentAsCodeBlock:!1};
W=W===void 0?{}:W;this.lastMatchedContainer=this.doc=qe7();this.refmap={};this.lastLineLength=0;this.inlineParser=new u7(W);this.options=W;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=DgW;this.blockStarts=MSd},$gW=function(W){W.partiallyConsumedTab&&(W.offset+=1,W.tip._string_content+=" ".repeat(4-W.column%
4));
W.tip._string_content+=W.currentLine.slice(W.offset)+"\n"};
qO7.prototype.addChild=function(W,P){for(;!this.blocks[this.tip.type].canContain(W);)this.finalize(this.tip,this.lineNumber-1);W=new J1(W,[[this.lineNumber,P+1],[0,0]]);W._string_content="";this.tip.appendChild(W);return this.tip=W};
var mw=function(W){if(!W.allClosed){for(;W.oldtip!==W.lastMatchedContainer;){var P=W.oldtip._parent;W.finalize(W.oldtip,W.lineNumber-1);W.oldtip=P}W.allClosed=!0}},vT=function(W,P,x){for(var I=W.currentLine,O,B;P>0&&(B=I[W.offset]);)B==="\t"?(O=4-W.column%4,x?(W.partiallyConsumedTab=O>P,O=O>P?P:O,W.column+=O,W.offset+=W.partiallyConsumedTab?0:1,P-=O):(W.partiallyConsumedTab=!1,W.column+=O,W.offset+=1,--P)):(W.partiallyConsumedTab=!1,W.offset+=1,W.column+=1,--P)},sk=function(W){W.offset=W.nextNonspace;
W.column=W.nextNonspaceColumn;W.partiallyConsumedTab=!1},wWZ=function(W){for(var P=W.currentLine,x=W.offset,I=W.column,O;(O=P.charAt(x))!=="";)if(O===" ")x++,I++;
else if(O==="\t")x++,I+=4-I%4;else break;W.blank=O==="\n"||O==="\r"||O==="";W.nextNonspace=x;W.nextNonspaceColumn=I;W.indent=W.nextNonspaceColumn-W.column;W.indented=W.indent>=4};
qO7.prototype.finalize=function(W,P){var x=W._parent;W._open=!1;W.sourcepos[1]=[P,this.lastLineLength];this.blocks[W.type].finalize(this,W);this.tip=x};
qO7.prototype.parse=function(W){this.tip=this.doc=qe7();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!W)return this.doc;this.options.time&&console.time("preparing input");var P=W.split(gYm),x=P.length;W.charCodeAt(W.length-1)===10&&--x;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(W=0;W<x;W++)a:{var I=void 0,O=P[W],B=P[W+1],Y=!0,K=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;O.indexOf("\x00")!==-1&&(O=O.replace(/\0/g,"\ufffd"));this.currentLine=O;for(this.lookahead=B;(I=K._lastChild)&&I._open;){K=I;wWZ(this);switch(this.blocks[K.type].continue(this,K)){case 0:break;case 1:Y=!1;break;case 2:this.lastLineLength=O.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Y){K=K._parent;break}}this.allClosed=K===this.oldtip;this.lastMatchedContainer=
K;I=K.type!=="paragraph"&&DgW[K.type].acceptsLines;B=this.blockStarts;for(Y=B.length;!I;){wWZ(this);if(!this.indented&&!pWd.test(O.slice(this.nextNonspace))){sk(this);break}for(var Z=0;Z<Y;){var d=B[Z](this,K);if(d===1){K=this.tip;break}else if(d===2){K=this.tip;I=!0;break}else Z++}if(Z===Y){sk(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){mw(this);this.blank&&K.lastChild&&(K.lastChild._lastLineBlank=!0);I=K.type;B=this.blank&&!(I==="block_quote"||I==="code_block"&&K._isFenced||
I==="item"&&!K._firstChild&&K.sourcepos[0][0]===this.lineNumber);for(Y=K;Y;)Y._lastLineBlank=B,Y=Y._parent;this.blocks[I].acceptsLines?($gW(this),I==="html_block"&&K._htmlBlockType>=1&&K._htmlBlockType<=5&&VSl[K._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(K,this.lineNumber)):this.offset<O.length&&!this.blank&&(this.addChild("paragraph",this.offset),sk(this),$gW(this))}else $gW(this);this.lastLineLength=O.length}for(;this.tip;)this.finalize(this.tip,x);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");O=new b_W(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;x=O.next();)P=x.node,W=P.type,x.entering||W!=="paragraph"&&W!=="heading"&&W!=="th"&&W!="td"||this.inlineParser.parse(P);this.options.time&&console.timeEnd("inline parsing");return this.doc};LfC.prototype.render=function(W){W=new b_W(W);var P;this.buffer="";for(this.lastOut="\n";P=W.next();){var x=P.node.type;if(this[x])this[x](P.node,P.entering)}return this.buffer};
LfC.prototype.out=function(W){VM(this,W)};
var VM=function(W,P){W.buffer+=P;W.lastOut=P};
LfC.prototype.cr=function(){this.lastOut!=="\n"&&VM(this,"\n")};var hVW=/^javascript:|vbscript:|file:|data:/i,Htz=/^data:image\/(?:png|gif|jpeg|webp)/i,eVz=function(W){return hVW.test(W)&&!Htz.test(W)};
BV.prototype=Object.create(LfC.prototype);_.J=BV.prototype;_.J.text=function(W){this.out(W.literal)};
_.J.html_inline=function(W){this.options.safe?VM(this,"\x3c!-- raw HTML omitted --\x3e"):VM(this,W.literal)};
_.J.html_block=function(W){this.cr();this.options.safe?VM(this,"\x3c!-- raw HTML omitted --\x3e"):VM(this,W.literal);this.cr()};
_.J.softbreak=function(){VM(this,this.options.softbreak)};
_.J.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.J.link=function(W,P){var x=this.attrs(W);P?(this.options.safe&&eVz(W.destination)||x.push(["href",KT(W.destination,!0)]),W.title&&x.push(["title",KT(W.title,!0)]),this.tag("a",x)):this.tag("/a")};
_.J.image=function(W,P){P?(this.disableTags===0&&(this.options.safe&&eVz(W.destination)?VM(this,'<img src="" alt="'):VM(this,'<img src="'+KT(W.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(W.title&&VM(this,'" title="'+KT(W.title,!0)),VM(this,'" />')))};
_.J.emph=function(W,P){this.tag(P?"em":"/em")};
_.J.strong=function(W,P){this.tag(P?"strong":"/strong")};
_.J.paragraph=function(W,P){var x=W.parent.parent;W=this.attrs(W);x!==null&&x.type==="list"&&x.listTight||(P?(this.cr(),this.tag("p",W)):(this.tag("/p"),this.cr()))};
_.J.heading=function(W,P){var x="h"+W.level;W=this.attrs(W);P?(this.cr(),this.tag(x,W)):(this.tag("/"+x),this.cr())};
_.J.code=function(W){this.tag("code");this.out(W.literal);this.tag("/code")};
_.J.code_block=function(W){var P=W.info?W.info.split(/\s+/):[],x=this.attrs(W);P.length>0&&P[0].length>0&&x.push(["class","language-"+KT(P[0],!0)]);this.cr();this.tag("pre");this.tag("code",x);this.out(W.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.J.thematic_break=function(W){W=this.attrs(W);this.cr();this.tag("hr",W,!0);this.cr()};
_.J.block_quote=function(W,P){W=this.attrs(W);P?(this.cr(),this.tag("blockquote",W)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.J.list=function(W,P){var x=W.listType==="bullet"?"ul":"ol",I=this.attrs(W);P?(W=W.listStart,W!==null&&W!==1&&I.push(["start",W.toString()]),this.cr(),this.tag(x,I)):(this.cr(),this.tag("/"+x));this.cr()};
_.J.item=function(W,P){W=this.attrs(W);P?this.tag("li",W):(this.tag("/li"),this.cr())};
_.J.custom_inline=function(W,P){P&&W.onEnter?VM(this,W.onEnter):!P&&W.onExit&&VM(this,W.onExit)};
_.J.custom_block=function(W,P){this.cr();P&&W.onEnter?VM(this,W.onEnter):!P&&W.onExit&&VM(this,W.onExit);this.cr()};
_.J.table=function(W,P){W=this.attrs(W);P?(this.cr(),this.tag("table",W)):(this.tag("/table"),this.cr())};
_.J.row=function(W,P){W._rowIsDelimiter||(W=this.attrs(W),P?this.tag("tr",W):this.tag("/tr"))};
_.J.td=function(W,P){var x=this.attrs(W);W._alignment&&x.push(["align",W._alignment]);P?this.tag("td",x):this.tag("/td")};
_.J.th=function(W,P){var x=this.attrs(W);W._alignment&&x.push(["align",W._alignment]);P?this.tag("th",x):this.tag("/th")};
_.J.out=function(W){VM(this,KT(W,!1))};
_.J.tag=function(W,P,x){if(!(this.disableTags>0)){this.buffer+="<"+W;if(P&&P.length>0){W=0;for(var I;(I=P[W])!==void 0;)this.buffer+=" "+I[0]+'="'+I[1]+'"',W++}x&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.J.attrs=function(W){var P=[];this.options.sourcepos&&(W=W.sourcepos)&&P.push(["data-sourcepos",String(W[0][0])+":"+String(W[0][1])+"-"+String(W[1][0])+":"+String(W[1][1])]);return P};
BV.prototype.text=BV.prototype.text;BV.prototype.html_inline=BV.prototype.html_inline;BV.prototype.html_block=BV.prototype.html_block;BV.prototype.softbreak=BV.prototype.softbreak;BV.prototype.linebreak=BV.prototype.linebreak;BV.prototype.link=BV.prototype.link;BV.prototype.image=BV.prototype.image;BV.prototype.emph=BV.prototype.emph;BV.prototype.strong=BV.prototype.strong;BV.prototype.paragraph=BV.prototype.paragraph;BV.prototype.heading=BV.prototype.heading;BV.prototype.code=BV.prototype.code;
BV.prototype.code_block=BV.prototype.code_block;BV.prototype.thematic_break=BV.prototype.thematic_break;BV.prototype.block_quote=BV.prototype.block_quote;BV.prototype.list=BV.prototype.list;BV.prototype.item=BV.prototype.item;BV.prototype.custom_inline=BV.prototype.custom_inline;BV.prototype.custom_block=BV.prototype.custom_block;BV.prototype.table=BV.prototype.table;BV.prototype.row=BV.prototype.row;BV.prototype.td=BV.prototype.td;BV.prototype.th=BV.prototype.th;BV.prototype.out=BV.prototype.out;
BV.prototype.tag=BV.prototype.tag;BV.prototype.attrs=BV.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 cFm,a1z,pcS;(function(){function W(M,E){return M<E?-1:M>E?1:M>=E?0:NaN}
function P(M){return function(E,e){return W(M(E),e)}}
function x(){for(var M=0,E=arguments.length,e={},r;M<E;++M){if(!(r=arguments[M]+"")||r in e)throw Error("re`"+r);e[r]=[]}return new I(e)}
function I(M){this._=M}
function O(M,E){return M.trim().split(/^|\s+/).map(function(e){var r="",Jm=e.indexOf(".");Jm>=0&&(r=e.slice(Jm+1),e=e.slice(0,Jm));if(e&&!E.hasOwnProperty(e))throw Error("se`"+e);return{type:e,name:r}})}
function B(M,E,e){for(var r=0,Jm=M.length;r<Jm;++r)if(M[r].name===E){M[r]=r82;M=M.slice(0,r).concat(M.slice(r+1));break}e!=null&&M.push({name:E,value:e});return M}
function Y(M){var E=M,e=E.indexOf(":");e>=0&&(E=M.slice(0,e))!=="xmlns"&&(M=M.slice(e+1));return l6.hasOwnProperty(E)?{space:l6[E],local:M}:M}
function K(M){return function(){var E=this.ownerDocument,e=this.namespaceURI;return e==="http://www.w3.org/1999/xhtml"&&E.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?E.createElement(M):E.createElementNS(e,M)}}
function Z(M){return function(){return this.ownerDocument.createElementNS(M.space,M.local)}}
function d(M){M=Y(M);return(M.local?Z:K)(M)}
function v(){}
function m(M){return M==null?v:function(){return this.querySelector(M)}}
function t(M){return Array(M.length)}
function C(M,E){this.ownerDocument=M.ownerDocument;this.namespaceURI=M.namespaceURI;this._next=null;this._parent=M;this.__data__=E}
function z(M){return function(){return M}}
function D(M,E,e,r,Jm,oo){for(var mR=0,GR,Wm=E.length,Ro=oo.length;mR<Ro;++mR)(GR=E[mR])?(GR.__data__=oo[mR],r[mR]=GR):e[mR]=new C(M,oo[mR]);for(;mR<Wm;++mR)if(GR=E[mR])Jm[mR]=GR}
function w(M,E,e,r,Jm,oo,mR){var GR,Wm,Ro={},Pm=E.length,Sz=oo.length,rk=Array(Pm),Sm;for(GR=0;GR<Pm;++GR)if(Wm=E[GR])rk[GR]=Sm="$"+mR.call(Wm,Wm.__data__,GR,E),Sm in Ro?Jm[GR]=Wm:Ro[Sm]=Wm;for(GR=0;GR<Sz;++GR)Sm="$"+mR.call(M,oo[GR],GR,oo),(Wm=Ro[Sm])?(r[GR]=Wm,Wm.__data__=oo[GR],Ro[Sm]=null):e[GR]=new C(M,oo[GR]);for(GR=0;GR<Pm;++GR)(Wm=E[GR])&&Ro[rk[GR]]===Wm&&(Jm[GR]=Wm)}
function a(M,E){return M<E?-1:M>E?1:M>=E?0:NaN}
function k(M){return function(){this.removeAttribute(M)}}
function T(M){return function(){this.removeAttributeNS(M.space,M.local)}}
function N(M,E){return function(){this.setAttribute(M,E)}}
function Io(M,E){return function(){this.setAttributeNS(M.space,M.local,E)}}
function F(M,E){return function(){var e=E.apply(this,arguments);e==null?this.removeAttribute(M):this.setAttribute(M,e)}}
function nm(M,E){return function(){var e=E.apply(this,arguments);e==null?this.removeAttributeNS(M.space,M.local):this.setAttributeNS(M.space,M.local,e)}}
function pm(M){return function(){this.style.removeProperty(M)}}
function zR(M,E,e){return function(){this.style.setProperty(M,E,e)}}
function Am(M,E,e){return function(){var r=E.apply(this,arguments);r==null?this.style.removeProperty(M):this.style.setProperty(M,r,e)}}
function kW(M,E){return M.style.getPropertyValue(E)||(M.ownerDocument&&M.ownerDocument.defaultView||M.document&&M||M.defaultView).getComputedStyle(M,null).getPropertyValue(E)}
function $W(M){return function(){delete this[M]}}
function ao(M,E){return function(){this[M]=E}}
function e8(M,E){return function(){var e=E.apply(this,arguments);e==null?delete this[M]:this[M]=e}}
function iC(){this.textContent=""}
function hw(M){return function(){this.textContent=M}}
function dk(M){return function(){var E=M.apply(this,arguments);this.textContent=E==null?"":E}}
function Oc(){this.innerHTML=""}
function Bm(M){return function(){this.innerHTML=M}}
function GA(M){return function(){var E=M.apply(this,arguments);this.innerHTML=E==null?"":E}}
function KM(){return null}
function PZ(){var M=this.parentNode;M&&M.removeChild(this)}
function j$(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function YW(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function QZ(M,E,e){M=ez(M,E,e);return function(r){var Jm=r.relatedTarget;Jm&&(Jm===this||Jm.compareDocumentPosition(this)&8)||M.call(this,r)}}
function ez(M,E,e){return function(){M.call(this,this.__data__,E,e)}}
function b3(M){return M.trim().split(/^|\s+/).map(function(E){var e="",r=E.indexOf(".");r>=0&&(e=E.slice(r+1),E=E.slice(0,r));return{type:E,name:e}})}
function D3(M){return function(){var E=this.__on;if(E){for(var e=0,r=-1,Jm=E.length,oo;e<Jm;++e)(oo=E[e],M.type&&oo.type!==M.type||oo.name!==M.name)?E[++r]=oo:this.removeEventListener(oo.type,oo.listener,oo.capture);++r?E.length=r:delete this.__on}}}
function lp(M,E,e){var r=Ww3.hasOwnProperty(M.type)?QZ:ez;return function(Jm,oo,mR){Jm=this.__on;var GR;oo=r(E,oo,mR);if(Jm){mR=0;for(var Wm=Jm.length;mR<Wm;++mR)if((GR=Jm[mR]).type===M.type&&GR.name===M.name){this.removeEventListener(GR.type,GR.listener,GR.capture);this.addEventListener(GR.type,GR.listener=oo,GR.capture=e);GR.value=E;return}}this.addEventListener(M.type,oo,e);GR={type:M.type,name:M.name,value:E,listener:oo,capture:e};Jm?Jm.push(GR):this.__on=[GR]}}
function TE(M,E,e){var r=M.ownerDocument&&M.ownerDocument.defaultView||M.document&&M||M.defaultView,Jm=r.CustomEvent;typeof Jm==="function"?Jm=new Jm(E,e):(Jm=r.document.createEvent("Event"),e?(Jm.initEvent(E,e.bubbles,e.cancelable),Jm.detail=e.detail):Jm.initEvent(E,!1,!1));M.dispatchEvent(Jm)}
function sc(M,E){return function(){return TE(this,M,E)}}
function rS(M,E){return function(){return TE(this,M,E.apply(this,arguments))}}
function jz(M,E){this._groups=M;this._parents=E}
function yf(){return new jz([[document.documentElement]],iWO)}
function CM(){this._="@"+(++RwL).toString(36)}
function Vf(M,E,e){M.prototype=E.prototype=e;e.constructor=M}
function Kx(M,E){M=Object.create(M.prototype);for(var e in E)M[e]=E[e];return M}
function SV(){}
function k4(M){var E;M=(M+"").trim().toLowerCase();return(E=FS4.exec(M))?(E=parseInt(E[1],16),new RG(E>>8&15|E>>4&240,E>>4&15|E&240,(E&15)<<4|E&15,1)):(E=q1m.exec(M))?to(parseInt(E[1],16)):(E=LSB.exec(M))?new RG(E[1],E[2],E[3],1):(E=WeB.exec(M))?new RG(E[1]*255/100,E[2]*255/100,E[3]*255/100,1):(E=PYm.exec(M))?QE(E[1],E[2],E[3],E[4]):(E=xQv.exec(M))?QE(E[1]*255/100,E[2]*255/100,E[3]*255/100,E[4]):(E=I94.exec(M))?EW(E[1],E[2]/100,E[3]/100,1):(E=OdB.exec(M))?EW(E[1],E[2]/100,E[3]/100,E[4]):P7c.hasOwnProperty(M)?
to(P7c[M]):M==="transparent"?new RG(NaN,NaN,NaN,0):null}
function to(M){return new RG(M>>16&255,M>>8&255,M&255,1)}
function QE(M,E,e,r){r<=0&&(M=E=e=NaN);return new RG(M,E,e,r)}
function Xl(M){M instanceof SV||(M=k4(M));if(!M)return new RG;M=M.rgb();return new RG(M.r,M.g,M.b,M.opacity)}
function t9(M,E,e,r){return arguments.length===1?Xl(M):new RG(M,E,e,r==null?1:r)}
function RG(M,E,e,r){this.r=+M;this.g=+E;this.b=+e;this.opacity=+r}
function F6(M){M=Math.max(0,Math.min(255,Math.round(M)||0));return(M<16?"0":"")+M.toString(16)}
function EW(M,E,e,r){r<=0?M=E=e=NaN:e<=0||e>=1?M=E=NaN:E<=0&&(M=NaN);return new Bi(M,E,e,r)}
function pl(M){if(M instanceof Bi)return new Bi(M.h,M.s,M.l,M.opacity);M instanceof SV||(M=k4(M));if(!M)return new Bi;if(M instanceof Bi)return M;M=M.rgb();var E=M.r/255,e=M.g/255,r=M.b/255,Jm=Math.min(E,e,r),oo=Math.max(E,e,r),mR=NaN,GR=oo-Jm,Wm=(oo+Jm)/2;GR?(mR=E===oo?(e-r)/GR+(e<r)*6:e===oo?(r-E)/GR+2:(E-e)/GR+4,GR/=Wm<.5?oo+Jm:2-oo-Jm,mR*=60):GR=Wm>0&&Wm<1?0:mR;return new Bi(mR,GR,Wm,M.opacity)}
function uE(M,E,e,r){return arguments.length===1?pl(M):new Bi(M,E,e,r==null?1:r)}
function Bi(M,E,e,r){this.h=+M;this.s=+E;this.l=+e;this.opacity=+r}
function i5(M,E,e){return(M<60?E+(e-E)*M/60:M<180?e:M<240?E+(e-E)*(240-M)/60:E)*255}
function uO(M){if(M instanceof tm)return new tm(M.l,M.a,M.b,M.opacity);if(M instanceof tw){if(isNaN(M.h))return new tm(M.l,0,0,M.opacity);var E=M.h*xK3;return new tm(M.l,Math.cos(E)*M.c,Math.sin(E)*M.c,M.opacity)}M instanceof RG||(M=Xl(M));var e=Ov(M.r),r=Ov(M.g),Jm=Ov(M.b);E=wS(.2225045*e+.7168786*r+.0606169*Jm);if(e===r&&r===Jm)var oo=e=E;else oo=wS((.4360747*e+.3850649*r+.1430804*Jm)/.96422),e=wS((.0139322*e+.0971045*r+.7141733*Jm)/.82521);return new tm(116*E-16,500*(oo-E),200*(E-e),M.opacity)}
function tm(M,E,e,r){this.l=+M;this.a=+E;this.b=+e;this.opacity=+r}
function wS(M){return M>J6M?Math.pow(M,1/3):M/IbM+OTA}
function Xt(M){return M>YG?M*M*M:IbM*(M-OTA)}
function VZ(M){return 255*(M<=.0031308?12.92*M:1.055*Math.pow(M,1/2.4)-.055)}
function Ov(M){return(M/=255)<=.04045?M/12.92:Math.pow((M+.055)/1.055,2.4)}
function M5(M){if(M instanceof tw)return new tw(M.h,M.c,M.l,M.opacity);M instanceof tm||(M=uO(M));if(M.a===0&&M.b===0)return new tw(NaN,0,M.l,M.opacity);var E=Math.atan2(M.b,M.a)*Jup;return new tw(E<0?E+360:E,Math.sqrt(M.a*M.a+M.b*M.b),M.l,M.opacity)}
function ZB(M,E,e,r){return arguments.length===1?M5(M):new tw(M,E,e,r==null?1:r)}
function tw(M,E,e,r){this.h=+M;this.c=+E;this.l=+e;this.opacity=+r}
function vm(M,E,e,r){if(arguments.length===1){var Jm=M;if(Jm instanceof oG)Jm=new oG(Jm.h,Jm.s,Jm.l,Jm.opacity);else{Jm instanceof RG||(Jm=Xl(Jm));var oo=Jm.g/255,mR=Jm.b/255,GR=(BKW*mR+Jm.r/255*-1.7884503806-3.5172982438*oo)/(BKW+-1.7884503806-3.5172982438);mR-=GR;var Wm=(1.97294*(oo-GR)- -.29227*mR)/-.90649;mR=(oo=Math.sqrt(Wm*Wm+mR*mR)/(1.97294*GR*(1-GR)))?Math.atan2(Wm,mR)*Jup-120:NaN;Jm=new oG(mR<0?mR+360:mR,oo,GR,Jm.opacity)}}else Jm=new oG(M,E,e,r==null?1:r);return Jm}
function oG(M,E,e,r){this.h=+M;this.s=+E;this.l=+e;this.opacity=+r}
function zk(M,E,e,r,Jm){var oo=M*M,mR=oo*M;return((1-3*M+3*oo-mR)*E+(4-6*oo+3*mR)*e+(1+3*M+3*oo-3*mR)*r+mR*Jm)/6}
function Yi(M){return function(){return M}}
function j5(M,E){return function(e){return M+e*E}}
function m9(M,E,e){return M=Math.pow(M,e),E=Math.pow(E,e)-M,e=1/e,function(r){return Math.pow(M+r*E,e)}}
function cZ(M,E){var e=E-M;return e?j5(M,e>180||e<-180?e-360*Math.round(e/360):e):Yi(isNaN(M)?E:M)}
function RE(M){return(M=+M)===1?c9:function(E,e){return e-E?m9(E,e,M):Yi(isNaN(E)?e:E)}}
function c9(M,E){var e=E-M;return e?j5(M,e):Yi(isNaN(M)?E:M)}
function X_(M){return function(E){var e=E.length,r=Array(e),Jm=Array(e),oo=Array(e),mR;for(mR=0;mR<e;++mR){var GR=t9(E[mR]);r[mR]=GR.r||0;Jm[mR]=GR.g||0;oo[mR]=GR.b||0}r=M(r);Jm=M(Jm);oo=M(oo);GR.opacity=1;return function(Wm){GR.r=r(Wm);GR.g=Jm(Wm);GR.b=oo(Wm);return GR+""}}}
function FP(M,E){return M=+M,E-=M,function(e){return M+E*e}}
function q7(M){return function(){return M}}
function dM(M){return function(E){return M(E)+""}}
function $4(M,E){var e=KwU.lastIndex=ZT8.lastIndex=0,r,Jm,oo,mR=-1,GR=[],Wm=[];M+="";for(E+="";(r=KwU.exec(M))&&(Jm=ZT8.exec(E));)(oo=Jm.index)>e&&(oo=E.slice(e,oo),GR[mR]?GR[mR]+=oo:GR[++mR]=oo),(r=r[0])===(Jm=Jm[0])?GR[mR]?GR[mR]+=Jm:GR[++mR]=Jm:(GR[++mR]=null,Wm.push({i:mR,x:FP(r,Jm)})),e=ZT8.lastIndex;e<E.length&&(oo=E.slice(e),GR[mR]?GR[mR]+=oo:GR[++mR]=oo);return GR.length<2?Wm[0]?dM(Wm[0].x):q7(E):(E=Wm.length,function(Ro){for(var Pm=0,Sz;Pm<E;++Pm)GR[(Sz=Wm[Pm]).i]=Sz.x(Ro);return GR.join("")})}
function h2(M,E,e,r,Jm,oo){var mR,GR,Wm;if(mR=Math.sqrt(M*M+E*E))M/=mR,E/=mR;if(Wm=M*e+E*r)e-=M*Wm,r-=E*Wm;if(GR=Math.sqrt(e*e+r*r))e/=GR,r/=GR,Wm/=GR;M*r<E*e&&(M=-M,E=-E,Wm=-Wm,mR=-mR);return{translateX:Jm,translateY:oo,rotate:Math.atan2(E,M)*nu3,skewX:Math.atan(Wm)*nu3,scaleX:mR,scaleY:GR}}
function ut(M,E,e,r){function Jm(Ro){return Ro.length?Ro.pop()+" ":""}
function oo(Ro,Pm,Sz,rk,Sm,vZ){Ro!==Sz||Pm!==rk?(Sm=Sm.push("translate(",null,E,null,e),vZ.push({i:Sm-4,x:FP(Ro,Sz)},{i:Sm-2,x:FP(Pm,rk)})):(Sz||rk)&&Sm.push("translate("+Sz+E+rk+e)}
function mR(Ro,Pm,Sz,rk){Ro!==Pm?(Ro-Pm>180?Pm+=360:Pm-Ro>180&&(Ro+=360),rk.push({i:Sz.push(Jm(Sz)+"rotate(",null,r)-2,x:FP(Ro,Pm)})):Pm&&Sz.push(Jm(Sz)+"rotate("+Pm+r)}
function GR(Ro,Pm,Sz,rk){Ro!==Pm?rk.push({i:Sz.push(Jm(Sz)+"skewX(",null,r)-2,x:FP(Ro,Pm)}):Pm&&Sz.push(Jm(Sz)+"skewX("+Pm+r)}
function Wm(Ro,Pm,Sz,rk,Sm,vZ){Ro!==Sz||Pm!==rk?(Sm=Sm.push(Jm(Sm)+"scale(",null,",",null,")"),vZ.push({i:Sm-4,x:FP(Ro,Sz)},{i:Sm-2,x:FP(Pm,rk)})):Sz===1&&rk===1||Sm.push(Jm(Sm)+"scale("+Sz+","+rk+")")}
return function(Ro,Pm){var Sz=[],rk=[];Ro=M(Ro);Pm=M(Pm);oo(Ro.translateX,Ro.translateY,Pm.translateX,Pm.translateY,Sz,rk);mR(Ro.rotate,Pm.rotate,Sz,rk);GR(Ro.skewX,Pm.skewX,Sz,rk);Wm(Ro.scaleX,Ro.scaleY,Pm.scaleX,Pm.scaleY,Sz,rk);Ro=Pm=null;return function(Sm){for(var vZ=-1,fz=rk.length,Cz;++vZ<fz;)Sz[(Cz=rk[vZ]).i]=Cz.x(Sm);return Sz.join("")}}}
function J2(M){return function(E,e){var r=M((E=uE(E)).h,(e=uE(e)).h),Jm=c9(E.s,e.s),oo=c9(E.l,e.l),mR=c9(E.opacity,e.opacity);return function(GR){E.h=r(GR);E.s=Jm(GR);E.l=oo(GR);E.opacity=mR(GR);return E+""}}}
function Uw(M){return function(E,e){var r=M((E=ZB(E)).h,(e=ZB(e)).h),Jm=c9(E.c,e.c),oo=c9(E.l,e.l),mR=c9(E.opacity,e.opacity);return function(GR){E.h=r(GR);E.c=Jm(GR);E.l=oo(GR);E.opacity=mR(GR);return E+""}}}
function je(M){return function r(e){function Jm(oo,mR){var GR=M((oo=vm(oo)).h,(mR=vm(mR)).h),Wm=c9(oo.s,mR.s),Ro=c9(oo.l,mR.l),Pm=c9(oo.opacity,mR.opacity);return function(Sz){oo.h=GR(Sz);oo.s=Wm(Sz);oo.l=Ro(Math.pow(Sz,e));oo.opacity=Pm(Sz);return oo+""}}
e=+e;Jm.gamma=r;return Jm}(1)}
function fE(){return ca||(YkP(RQ8),ca=L1.now()+z_m)}
function RQ8(){ca=0}
function pO(){this._call=this._time=this._next=null}
function TG(M,E,e){var r=new pO;r.restart(M,E,e);return r}
function r2(){ca=(GBR=L1.now())+z_m;y_=Wj=0;try{fE();++y_;for(var M=EVR,E;M;)(E=ca-M._time)>=0&&M._call.call(null,E),M=M._next;--y_}finally{y_=0;M=EVR;for(var e=Infinity;M;)if(M._call){e>M._time&&(e=M._time);var r=M;M=M._next}else E=M._next,M._next=null,M=r?r._next=E:EVR=E;Pj=r;il(e);ca=0}}
function DIA(){var M=L1.now(),E=M-GBR;E>1E3&&(z_m-=E,GBR=M)}
function il(M){y_||(Wj&&(Wj=clearTimeout(Wj)),M-ca>24?(M<Infinity&&(Wj=setTimeout(r2,M-L1.now()-z_m)),xh&&(xh=clearInterval(xh))):(xh||(GBR=L1.now(),xh=setInterval(DIA,1E3)),y_=1,YkP(r2)))}
function yuw(M,E,e){var r=new pO;E=E==null?0:+E;r.restart(function(Jm){r.stop();M(Jm+E)},E,e);
return r}
function ouW(M,E,e,r,Jm,oo){var mR=M.__transition;if(!mR)M.__transition={};else if(e in mR)return;BNd(M,e,{name:E,index:r,group:Jm,on:n_f,tween:YFm,time:oo.time,delay:oo.delay,duration:oo.duration,ease:oo.ease,timer:null,state:0})}
function Skm(M,E){M=Kb(M,E);if(M.state>0)throw Error("te");return M}
function av(M,E){M=Kb(M,E);if(M.state>2)throw Error("ue");return M}
function Kb(M,E){M=M.__transition;if(!M||!(M=M[E]))throw Error("ve");return M}
function BNd(M,E,e){function r(Wm){var Ro,Pm;if(e.state!==1)return oo();for(rk in mR){var Sz=mR[rk];if(Sz.name===e.name){if(Sz.state===3)return yuw(r);Sz.state===4?(Sz.state=6,Sz.timer.stop(),Sz.on.call("interrupt",M,M.__data__,Sz.index,Sz.group),delete mR[rk]):+rk<E&&(Sz.state=6,Sz.timer.stop(),delete mR[rk])}}yuw(function(){e.state===3&&(e.state=4,e.timer.restart(Jm,e.delay,e.time),Jm(Wm))});
e.state=2;e.on.call("start",M,M.__data__,e.index,e.group);if(e.state===2){e.state=3;GR=Array(Pm=e.tween.length);var rk=0;for(Ro=-1;rk<Pm;++rk)if(Sz=e.tween[rk].value.call(M,M.__data__,e.index,e.group))GR[++Ro]=Sz;GR.length=Ro+1}}
function Jm(Wm){Wm=Wm<e.duration?e.ease.call(null,Wm/e.duration):(e.timer.restart(oo),e.state=5,1);for(var Ro=-1,Pm=GR.length;++Ro<Pm;)GR[Ro].call(null,Wm);e.state===5&&(e.on.call("end",M,M.__data__,e.index,e.group),oo())}
function oo(){e.state=6;e.timer.stop();delete mR[E];for(var Wm in mR)return;delete M.__transition}
var mR=M.__transition,GR;mR[E]=e;e.timer=TG(function(Wm){e.state=1;e.timer.restart(r,e.delay,e.time);e.delay<=Wm&&r(Wm-e.delay)},0,e.time)}
function y6y(M,E){var e,r;return function(){var Jm=av(this,M),oo=Jm.tween;if(oo!==e){r=e=oo;oo=0;for(var mR=r.length;oo<mR;++oo)if(r[oo].name===E){r=r.slice();r.splice(oo,1);break}}Jm.tween=r}}
function KeG(M,E,e){var r,Jm;if(typeof e!=="function")throw Error();return function(){var oo=av(this,M),mR=oo.tween;if(mR!==r){Jm=(r=mR).slice();mR={name:E,value:e};for(var GR=0,Wm=Jm.length;GR<Wm;++GR)if(Jm[GR].name===E){Jm[GR]=mR;break}GR===Wm&&Jm.push(mR)}oo.tween=Jm}}
function usR(M,E,e){var r=M._id;M.each(function(){var Jm=av(this,r);(Jm.value||(Jm.value={}))[E]=e.apply(this,arguments)});
return function(Jm){return Kb(Jm,r).value[E]}}
function Kwc(M,E){var e;return(typeof E==="number"?FP:E instanceof k4?ZTz:(e=k4(E))?(E=e,ZTz):$4)(M,E)}
function ZdM(M){return function(){this.removeAttribute(M)}}
function o_6(M){return function(){this.removeAttributeNS(M.space,M.local)}}
function SFB(M,E,e){var r,Jm;return function(){var oo=this.getAttribute(M);return oo===e?null:oo===r?Jm:Jm=E(r=oo,e)}}
function ufQ(M,E,e){var r,Jm;return function(){var oo=this.getAttributeNS(M.space,M.local);return oo===e?null:oo===r?Jm:Jm=E(r=oo,e)}}
function dQy(M,E,e){var r,Jm,oo;return function(){var mR=e(this);if(mR==null)return void this.removeAttribute(M);var GR=this.getAttribute(M);return GR===mR?null:GR===r&&mR===Jm?oo:oo=E(r=GR,Jm=mR)}}
function s_4(M,E,e){var r,Jm,oo;return function(){var mR=e(this);if(mR==null)return void this.removeAttributeNS(M.space,M.local);var GR=this.getAttributeNS(M.space,M.local);return GR===mR?null:GR===r&&mR===Jm?oo:oo=E(r=GR,Jm=mR)}}
function v_B(M,E){function e(){var r=this,Jm=E.apply(r,arguments);return Jm&&function(oo){r.setAttributeNS(M.space,M.local,Jm(oo))}}
e._value=E;return e}
function mQO(M,E){function e(){var r=this,Jm=E.apply(r,arguments);return Jm&&function(oo){r.setAttribute(M,Jm(oo))}}
e._value=E;return e}
function VAO(M,E){return function(){Skm(this,M).delay=+E.apply(this,arguments)}}
function tAG(M,E){return E=+E,function(){Skm(this,M).delay=E}}
function pxL(M,E){return function(){av(this,M).duration=+E.apply(this,arguments)}}
function j_m(M,E){return E=+E,function(){av(this,M).duration=E}}
function Q_B(M,E){if(typeof E!=="function")throw Error();return function(){av(this,M).ease=E}}
function CY9(M){return(M+"").trim().split(/^|\s+/).every(function(E){var e=E.indexOf(".");e>=0&&(E=E.slice(0,e));return!E||E==="start"})}
function A6f(M,E,e){var r,Jm,oo=CY9(E)?Skm:av;return function(){var mR=oo(this,M),GR=mR.on;if(GR!==r)(Jm=(r=GR).copy()).on(E,e);mR.on=Jm}}
function zR4(M){return function(){var E=this.parentNode,e;for(e in this.__transition)if(+e!==M)return;E&&E.removeChild(this)}}
function GTO(M,E){var e,r,Jm;return function(){var oo=kW(this,M),mR=(this.style.removeProperty(M),kW(this,M));return oo===mR?null:oo===e&&mR===r?Jm:Jm=E(e=oo,r=mR)}}
function E_m(M){return function(){this.style.removeProperty(M)}}
function g_6(M,E,e){var r,Jm;return function(){var oo=kW(this,M);return oo===e?null:oo===r?Jm:Jm=E(r=oo,e)}}
function DQQ(M,E,e){var r,Jm,oo;return function(){var mR=kW(this,M),GR=e(this);GR==null&&(GR=(this.style.removeProperty(M),kW(this,M)));return mR===GR?null:mR===r&&GR===Jm?oo:oo=E(r=mR,Jm=GR)}}
function MAQ(M,E,e){function r(){var Jm=this,oo=E.apply(Jm,arguments);return oo&&function(mR){Jm.style.setProperty(M,oo(mR),e)}}
r._value=E;return r}
function $Q3(M){return function(){this.textContent=M}}
function wxy(M){return function(){var E=M(this);this.textContent=E==null?"":E}}
function ub(M,E,e,r){this._groups=M;this._parents=E;this._name=e;this._id=r}
function dKR(M){return{type:M}}
function sno(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function gVt(){}
function oui(M,E){var e=new gVt;if(M instanceof gVt)M.each(function(mR,GR){e.set(GR,mR)});
else if(Array.isArray(M)){var r=-1,Jm=M.length,oo;if(E==null)for(;++r<Jm;)e.set(r,M[r]);else for(;++r<Jm;)e.set(E(oo=M[r],r,M),oo)}else if(M)for(r in M)e.set(r,M[r]);return e}
function DS7(){}
function SkM(M){return function(E){for(var e={},r=0;r<M.length;r++)e[M[r]]=E[r]||"";return e}}
function hRf(M,E){var e=SkM(M);return function(r,Jm){return E(e(r),Jm,M)}}
function Hd3(M){var E=Object.create(null),e=[];M.forEach(function(r){for(var Jm in r)Jm in E||e.push(E[Jm]=Jm)});
return e}
function usP(M){function E(mR,GR){function Wm(){if(vZ)return vux;if(fz)return fz=!1,dKA;var RD,PJ=Sz,GZ;if(mR.charCodeAt(PJ)===34){for(;Sz++<Pm&&mR.charCodeAt(Sz)!==34||mR.charCodeAt(++Sz)===34;);(RD=Sz)>=Pm?vZ=!0:(GZ=mR.charCodeAt(Sz++))===10?fz=!0:GZ===13&&(fz=!0,mR.charCodeAt(Sz)===10&&++Sz);return mR.slice(PJ+1,RD-1).replace(/""/g,'"')}for(;Sz<Pm;){if((GZ=mR.charCodeAt(RD=Sz++))===10)fz=!0;else if(GZ===13)fz=!0,mR.charCodeAt(Sz)===10&&++Sz;else if(GZ!==oo)continue;return mR.slice(PJ,RD)}return vZ=
!0,mR.slice(PJ,Pm)}
var Ro=[],Pm=mR.length,Sz=0,rk=0,Sm,vZ=Pm<=0,fz=!1;mR.charCodeAt(Pm-1)===10&&--Pm;for(mR.charCodeAt(Pm-1)===13&&--Pm;(Sm=Wm())!==vux;){for(var Cz=[];Sm!==dKA&&Sm!==vux;)Cz.push(Sm),Sm=Wm();GR&&(Cz=GR(Cz,rk++))==null||Ro.push(Cz)}return Ro}
function e(mR){return mR.map(r).join(M)}
function r(mR){return mR==null?"":Jm.test(mR)?'"'+mR.replace(/"/g,'""')+'"':mR}
var Jm=new RegExp('["'+M+"\n\r]"),oo=M.charCodeAt(0);return{parse:function(mR,GR){var Wm,Ro;mR=E(mR,function(Pm,Sz){if(Wm)return Wm(Pm,Sz-1);Ro=Pm;Wm=GR?hRf(Pm,GR):SkM(Pm)});
mR.columns=Ro||[];return mR},
parseRows:E,format:function(mR,GR){GR==null&&(GR=Hd3(mR));return[GR.map(r).join(M)].concat(mR.map(function(Wm){return GR.map(function(Ro){return r(Wm[Ro])}).join(M)})).join("\n")},
formatRows:function(mR){return mR.map(e).join("\n")}}}
function eRy(M){if(!M.ok)throw Error("we`"+M.status+"`"+M.statusText);return M.text()}
function snW(M){return function(E,e,r){arguments.length===2&&typeof e==="function"&&(r=e,e=void 0);return fetch(E,e).then(eRy).then(function(Jm){return M(Jm,r)})}}
function vud(M,E,e,r){if(isNaN(E)||isNaN(e))return M;var Jm,oo=M._root;r={data:r};var mR=M._x0,GR=M._y0,Wm=M._x1,Ro=M._y1,Pm,Sz,rk,Sm,vZ;if(!oo)return M._root=r,M;for(;oo.length;)if((rk=E>=(Pm=(mR+Wm)/2))?mR=Pm:Wm=Pm,(Sm=e>=(Sz=(GR+Ro)/2))?GR=Sz:Ro=Sz,Jm=oo,!(oo=oo[vZ=Sm<<1|rk]))return Jm[vZ]=r,M;var fz=+M._x.call(null,oo.data);var Cz=+M._y.call(null,oo.data);if(E===fz&&e===Cz)return r.next=oo,Jm?Jm[vZ]=r:M._root=r,M;do Jm=Jm?Jm[vZ]=Array(4):M._root=Array(4),(rk=E>=(Pm=(mR+Wm)/2))?mR=Pm:Wm=Pm,(Sm=
e>=(Sz=(GR+Ro)/2))?GR=Sz:Ro=Sz;while((vZ=Sm<<1|rk)===(rk=(Cz>=Sz)<<1|fz>=Pm));return Jm[rk]=oo,Jm[vZ]=r,M}
function PM(M,E,e,r,Jm){this.node=M;this.x0=E;this.y0=e;this.x1=r;this.y1=Jm}
function c6y(M){return M[0]}
function a9M(M){return M[1]}
function mKx(M,E,e,r,Jm,oo){this._x=M;this._y=E;this._x0=e;this._y0=r;this._x1=Jm;this._y1=oo;this._root=void 0}
function mKd(M){for(var E={data:M.data},e=E;M=M.next;)e=e.next={data:M.data};return E}
function Mjd(M,E){if((E=(M=E?M.toExponential(E-1):M.toExponential()).indexOf("e"))<0)return null;var e=M.slice(0,E);return[e.length>1?e[0]+e.slice(2):e,+M.slice(E+1)]}
function bdf(M){return M=Mjd(Math.abs(M)),M?M[1]:NaN}
function kTd(M,E){return function(e,r){for(var Jm=e.length,oo=[],mR=0,GR=M[0],Wm=0;Jm>0&&GR>0;){Wm+GR+1>r&&(GR=Math.max(1,r-Wm));oo.push(e.substring(Jm-=GR,Jm+GR));if((Wm+=GR+1)>r)break;GR=M[mR=(mR+1)%M.length]}return oo.reverse().join(E)}}
function UQL(M){return function(E){return E.replace(/[0-9]/g,function(e){return M[+e]})}}
function VJ7(M){return new tJR(M)}
function tJR(M){if(!(E=Xx2.exec(M)))throw Error("xe`"+M);var E;this.fill=E[1]||" ";this.align=E[2]||">";this.sign=E[3]||"-";this.symbol=E[4]||"";this.zero=!!E[5];this.width=E[6]&&+E[6];this.comma=!!E[7];this.precision=E[8]&&+E[8].slice(1);this.trim=!!E[9];this.type=E[10]||""}
function VJb(M,E){E=Mjd(M,E);if(!E)return M+"";M=E[0];E=E[1];return E<0?"0."+Array(-E).join("0")+M:M.length>E+1?M.slice(0,E+1)+"."+M.slice(E+1):M+Array(E-M.length+2).join("0")}
function tJP(M){return M}
function f99(M){function E(GR){function Wm(rD){var mp=GZ,Ev=oS,oK,xT;if(PJ==="c")Ev=xV(rD)+Ev,rD="";else{rD=+rD;var vy=rD<0;rD=xV(Math.abs(rD),Cz);if(RD){var r1=rD.length,Ml=1,FG=-1;a:for(;Ml<r1;++Ml)switch(rD[Ml]){case ".":FG=oK=Ml;break;case "0":FG===0&&(FG=Ml);oK=Ml;break;default:if(!+rD[Ml])break a;FG>0&&(FG=0)}rD=FG>0?rD.slice(0,FG)+rD.slice(oK+1):rD}vy&&+rD===0&&(vy=!1);mp=(vy?Sz==="("?Sz:"-":Sz==="-"||Sz==="("?"":Sz)+mp;Ev=(PJ==="s"?pTl[8+jnk/3]:"")+Ev+(vy&&Sz==="("?")":"");if(mY)for(vy=-1,
oK=rD.length;++vy<oK;)if(xT=rD.charCodeAt(vy),48>xT||xT>57){Ev=(xT===46?Jm+rD.slice(vy+1):rD.slice(vy))+Ev;rD=rD.slice(0,vy);break}}fz&&!Sm&&(rD=e(rD,Infinity));xT=mp.length+rD.length+Ev.length;vy=xT<vZ?Array(vZ-xT+1).join(Ro):"";fz&&Sm&&(rD=e(vy+rD,vy.length?vZ-Ev.length:Infinity),vy="");switch(Pm){case "<":rD=mp+rD+Ev+vy;break;case "=":rD=mp+vy+rD+Ev;break;case "^":rD=vy.slice(0,xT=vy.length>>1)+mp+rD+Ev+vy.slice(xT);break;default:rD=vy+mp+rD+Ev}return oo(rD)}
GR=VJ7(GR);var Ro=GR.fill,Pm=GR.align,Sz=GR.sign,rk=GR.symbol,Sm=GR.zero,vZ=GR.width,fz=GR.comma,Cz=GR.precision,RD=GR.trim,PJ=GR.type;PJ==="n"?(fz=!0,PJ="g"):Qnl[PJ]||(Cz==null&&(Cz=12),RD=!0,PJ="g");if(Sm||Ro==="0"&&Pm==="=")Sm=!0,Ro="0",Pm="=";var GZ=rk==="$"?r[0]:rk==="#"&&/[boxX]/.test(PJ)?"0"+PJ.toLowerCase():"",oS=rk==="$"?r[1]:/[%p]/.test(PJ)?mR:"",xV=Qnl[PJ],mY=/[defgprs%]/.test(PJ);Cz=Cz==null?6:/[gprs]/.test(PJ)?Math.max(1,Math.min(21,Cz)):Math.max(0,Math.min(20,Cz));Wm.toString=function(){return GR+
""};
return Wm}
var e=M.grouping&&M.thousands?kTd(M.grouping,M.thousands):tJP,r=M.currency,Jm=M.decimal,oo=M.numerals?UQL(M.numerals):tJP,mR=M.percent||"%";return{format:E,formatPrefix:function(GR,Wm){var Ro=E((GR=VJ7(GR),GR.type="f",GR));GR=Math.max(-8,Math.min(8,Math.floor(bdf(Wm)/3)))*3;var Pm=Math.pow(10,-GR),Sz=pTl[8+GR/3];return function(rk){return Ro(Pm*rk)+Sz}}}}
function U1(){this.reset()}
function C7d(M,E,e){var r=M.s=E+e,Jm=r-E;M.t=E-(r-Jm)+(e-Jm)}
function $So(M){return M>1?Ta:M<-1?-Ta:Math.asin(M)}
function NNv(){}
function AuP(M){var E=M[0];M=M[1];var e=rn(M);return[e*rn(E),e*hb(E),hb(M)]}
function zNA(M,E){return[M[1]*E[2]-M[2]*E[1],M[2]*E[0]-M[0]*E[2],M[0]*E[1]-M[1]*E[0]]}
function Gbw(M){var E=wJC(M[0]*M[0]+M[1]*M[1]+M[2]*M[2]);M[0]/=E;M[1]/=E;M[2]/=E}
function l9L(){var M=[],E;return{point:function(e,r){E.push([e,r])},
lineStart:function(){M.push(E=[])},
lineEnd:NNv,rejoin:function(){M.length>1&&M.push(M.pop().concat(M.shift()))},
result:function(){var e=M;M=[];E=null;return e}}}
function h_C(M,E,e,r){this.x=M;this.z=E;this.o=e;this.e=r;this.v=!1;this.n=this.p=null}
function TNG(M,E,e,r,Jm){var oo=[],mR=[];M.forEach(function(Sz){if(!((rk=Sz.length-1)<=0)){var rk,Sm=Sz[0],vZ=Sz[rk],fz=Sm;if(dy(fz[0]-vZ[0])<1E-6&&dy(fz[1]-vZ[1])<1E-6){Jm.lineStart();for(GR=0;GR<rk;++GR)Jm.point((Sm=Sz[GR])[0],Sm[1]);Jm.lineEnd()}else oo.push(rk=new h_C(Sm,Sz,null,!0)),mR.push(rk.o=new h_C(Sm,null,rk,!1)),oo.push(rk=new h_C(vZ,Sz,null,!1)),mR.push(rk.o=new h_C(vZ,null,rk,!0))}});
if(oo.length){mR.sort(E);EuM(oo);EuM(mR);var GR=0;for(M=mR.length;GR<M;++GR)mR[GR].e=e=!e;e=oo[0];for(var Wm;;){for(var Ro=e,Pm=!0;Ro.v;)if((Ro=Ro.n)===e)return;E=Ro.z;Jm.lineStart();do{Ro.v=Ro.o.v=!0;if(Ro.e){if(Pm)for(GR=0,M=E.length;GR<M;++GR)Jm.point((Wm=E[GR])[0],Wm[1]);else r(Ro.x,Ro.n.x,1,Jm);Ro=Ro.n}else{if(Pm)for(E=Ro.p.z,GR=E.length-1;GR>=0;--GR)Jm.point((Wm=E[GR])[0],Wm[1]);else r(Ro.x,Ro.p.x,-1,Jm);Ro=Ro.p}Ro=Ro.o;E=Ro.z;Pm=!Pm}while(!Ro.v);Jm.lineEnd()}}}
function EuM(M){if(E=M.length){for(var E,e=0,r=M[0],Jm;++e<E;)r.n=Jm=M[e],Jm.p=r,r=Jm;r.n=Jm=M[0];Jm.p=r}}
function r6v(M){return M.length>1}
function id2(M,E){return((M=M.x)[0]<0?M[1]-Ta-1E-6:Ta-M[1])-((E=E.x)[0]<0?E[1]-Ta-1E-6:Ta-E[1])}
function pTt(){}
function guW(M){return function(E,e){var r=rn(E),Jm=rn(e);r=M(r*Jm);return[r*Jm*hb(E),r*hb(e)]}}
function I4(M){return function(E,e){var r=wJC(E*E+e*e),Jm=M(r),oo=hb(Jm);Jm=rn(Jm);return[DKZ(E*oo,r*Jm),$So(r&&e*oo/r)]}}
function RRM(M){var E=0,e=M.children,r=e&&e.length;if(r)for(;--r>=0;)E+=e[r].value;else E=1;M.value=E}
function MJb(M,E){var e=new Op(M);M=+M.value&&(e.value=M.value);var r,Jm=[e],oo,mR,GR,Wm;for(E==null&&(E=Fe3);r=Jm.pop();)if(M&&(r.value=+r.data.value),(mR=E(r.data))&&(Wm=mR.length))for(r.children=Array(Wm),GR=Wm-1;GR>=0;--GR)Jm.push(oo=r.children[GR]=new Op(mR[GR])),oo.parent=r,oo.depth=r.depth+1;return e.eachBefore(qFL)}
function Fe3(M){return M.children}
function Lem(M){M.data=M.data.data}
function qFL(M){var E=0;do M.height=E;while((M=M.parent)&&M.height<++E)}
function Op(M){this.data=M;this.depth=this.height=0;this.parent=null}
function QS(M,E,e,r){function Jm(oo){return M(oo=new Date(+oo)),oo}
Jm.floor=Jm;Jm.ceil=function(oo){return M(oo=new Date(oo-1)),E(oo,1),M(oo),oo};
Jm.round=function(oo){var mR=Jm(oo),GR=Jm.ceil(oo);return oo-mR<GR-oo?mR:GR};
Jm.offset=function(oo,mR){return E(oo=new Date(+oo),mR==null?1:Math.floor(mR)),oo};
Jm.range=function(oo,mR,GR){var Wm=[],Ro;oo=Jm.ceil(oo);GR=GR==null?1:Math.floor(GR);if(!(oo<mR&&GR>0))return Wm;do Wm.push(Ro=new Date(+oo)),E(oo,GR),M(oo);while(Ro<oo&&oo<mR);return Wm};
Jm.filter=function(oo){return QS(function(mR){if(mR>=mR)for(;M(mR),!oo(mR);)mR.setTime(mR-1)},function(mR,GR){if(mR>=mR)if(GR<0)for(;++GR<=0;)for(;E(mR,-1),!oo(mR););
else for(;--GR>=0;)for(;E(mR,1),!oo(mR););})};
e&&(Jm.count=function(oo,mR){jnS.setTime(+oo);Qnt.setTime(+mR);M(jnS);M(Qnt);return Math.floor(e(jnS,Qnt))},Jm.every=function(oo){oo=Math.floor(oo);
return isFinite(oo)&&oo>0?oo>1?Jm.filter(r?function(mR){return r(mR)%oo===0}:function(mR){return Jm.count(0,mR)%oo===0}):Jm:null});
return Jm}
function bF(M){return QS(function(E){E.setDate(E.getDate()-(E.getDay()+7-M)%7);E.setHours(0,0,0,0)},function(E,e){E.setDate(E.getDate()+e*7)},function(E,e){return(e-E-(e.getTimezoneOffset()-E.getTimezoneOffset())*6E4)/6048E5})}
function kn(M){return QS(function(E){E.setUTCDate(E.getUTCDate()-(E.getUTCDay()+7-M)%7);E.setUTCHours(0,0,0,0)},function(E,e){E.setUTCDate(E.getUTCDate()+e*7)},function(E,e){return(e-E)/6048E5})}
function Wzd(M){if(0<=M.y&&M.y<100){var E=new Date(-1,M.m,M.d,M.H,M.M,M.S,M.L);E.setFullYear(M.y);return E}return new Date(M.y,M.m,M.d,M.H,M.M,M.S,M.L)}
function H4m(M){if(0<=M.y&&M.y<100){var E=new Date(Date.UTC(-1,M.m,M.d,M.H,M.M,M.S,M.L));E.setUTCFullYear(M.y);return E}return new Date(Date.UTC(M.y,M.m,M.d,M.H,M.M,M.S,M.L))}
function JP(M){return{y:M,m:0,d:1,H:0,M:0,S:0,L:0}}
function PkG(M){function E(Ev,oK){return function(xT){var vy=[],r1=-1,Ml=0,FG=Ev.length,vo,Ek;for(xT instanceof Date||(xT=new Date(+xT));++r1<FG;)if(Ev.charCodeAt(r1)===37){vy.push(Ev.slice(Ml,r1));(Ml=$Ki[vo=Ev.charAt(++r1)])!=null?vo=Ev.charAt(++r1):Ml=vo==="e"?" ":"0";if(Ek=oK[vo])vo=Ek(xT,Ml);vy.push(vo);Ml=r1+1}vy.push(Ev.slice(Ml,r1));return vy.join("")}}
function e(Ev,oK){return function(xT){var vy=JP(1900);if(r(vy,Ev,xT,0)!=xT.length)return null;if("Q"in vy)return new Date(vy.Q);"p"in vy&&(vy.H=vy.H%12+vy.p*12);if("V"in vy){if(vy.V<1||vy.V>53)return null;"w"in vy||(vy.w=1);if("Z"in vy){xT=H4m(JP(vy.y));var r1=xT.getUTCDay();xT=r1>4||r1===0?C7x.ceil(xT):C7x(xT);xT=wTp.offset(xT,(vy.V-1)*7);vy.y=xT.getUTCFullYear();vy.m=xT.getUTCMonth();vy.d=xT.getUTCDate()+(vy.w+6)%7}else xT=oK(JP(vy.y)),r1=xT.getDay(),xT=r1>4||r1===0?AuR.ceil(xT):AuR(xT),xT=hNM.offset(xT,
(vy.V-1)*7),vy.y=xT.getFullYear(),vy.m=xT.getMonth(),vy.d=xT.getDate()+(vy.w+6)%7}else if("W"in vy||"U"in vy)"w"in vy||(vy.w="u"in vy?vy.u%7:"W"in vy?1:0),r1="Z"in vy?H4m(JP(vy.y)).getUTCDay():oK(JP(vy.y)).getDay(),vy.m=0,vy.d="W"in vy?(vy.w+6)%7+vy.W*7-(r1+5)%7:vy.w+vy.U*7-(r1+6)%7;return"Z"in vy?(vy.H+=vy.Z/100|0,vy.M+=vy.Z%100,H4m(vy)):oK(vy)}}
function r(Ev,oK,xT,vy){for(var r1=0,Ml=oK.length,FG=xT.length,vo;r1<Ml;){if(vy>=FG)return-1;vo=oK.charCodeAt(r1++);if(vo===37){if(vo=oK.charAt(r1++),vo=mp[vo in $Ki?oK.charAt(r1++):vo],!vo||(vy=vo(Ev,xT,vy))<0)return-1}else if(vo!=xT.charCodeAt(vy++))return-1}return vy}
var Jm=M.dateTime,oo=M.date,mR=M.time,GR=M.periods,Wm=M.days,Ro=M.shortDays,Pm=M.months,Sz=M.shortMonths,rk=Bj(GR),Sm=nv(GR),vZ=Bj(Wm),fz=nv(Wm),Cz=Bj(Ro),RD=nv(Ro),PJ=Bj(Pm),GZ=nv(Pm),oS=Bj(Sz),xV=nv(Sz),mY={a:function(Ev){return Ro[Ev.getDay()]},
A:function(Ev){return Wm[Ev.getDay()]},
b:function(Ev){return Sz[Ev.getMonth()]},
B:function(Ev){return Pm[Ev.getMonth()]},
c:null,d:HTm,e:HTm,f:xm4,H:IGv,I:OAf,j:JWL,L:eNM,m:B0f,M:nf3,p:function(Ev){return GR[+(Ev.getHours()>=12)]},
Q:cup,s:abP,S:Y7L,u:yWQ,U:KzG,V:ZA6,w:ofO,W:S7f,x:null,X:null,y:uMy,Y:dm6,Z:s1M,"%":bTc},rD={a:function(Ev){return Ro[Ev.getUTCDay()]},
A:function(Ev){return Wm[Ev.getUTCDay()]},
b:function(Ev){return Sz[Ev.getUTCMonth()]},
B:function(Ev){return Pm[Ev.getUTCMonth()]},
c:null,d:kbM,e:kbM,f:vf2,H:mmm,I:V3f,j:t3G,L:UKp,m:p1L,M:j19,p:function(Ev){return GR[+(Ev.getUTCHours()>=12)]},
Q:cup,s:abP,S:Q1v,u:Ck3,U:AW6,V:z$O,w:GQd,W:Efv,x:null,X:null,y:gfy,Y:DmG,Z:M33,"%":bTc},mp={a:function(Ev,oK,xT){return(oK=Cz.exec(oK.slice(xT)))?(Ev.w=RD[oK[0].toLowerCase()],xT+oK[0].length):-1},
A:function(Ev,oK,xT){return(oK=vZ.exec(oK.slice(xT)))?(Ev.w=fz[oK[0].toLowerCase()],xT+oK[0].length):-1},
b:function(Ev,oK,xT){return(oK=oS.exec(oK.slice(xT)))?(Ev.m=xV[oK[0].toLowerCase()],xT+oK[0].length):-1},
B:function(Ev,oK,xT){return(oK=PJ.exec(oK.slice(xT)))?(Ev.m=GZ[oK[0].toLowerCase()],xT+oK[0].length):-1},
c:function(Ev,oK,xT){return r(Ev,Jm,oK,xT)},
d:XTi,e:XTi,f:$mB,H:fbc,I:fbc,j:w1O,L:h$O,m:HA2,M:e$3,p:function(Ev,oK,xT){return(oK=rk.exec(oK.slice(xT)))?(Ev.p=Sm[oK[0].toLowerCase()],xT+oK[0].length):-1},
Q:cWf,s:aGB,S:bAG,u:kQv,U:Um3,V:X1L,w:fGO,W:N0O,x:function(Ev,oK,xT){return r(Ev,oo,oK,xT)},
X:function(Ev,oK,xT){return r(Ev,mR,oK,xT)},
y:lGv,Y:T0m,Z:rWO,"%":iAv};mY.x=E(oo,mY);mY.X=E(mR,mY);mY.c=E(Jm,mY);rD.x=E(oo,rD);rD.X=E(mR,rD);rD.c=E(Jm,rD);return{format:function(Ev){var oK=E(Ev,mY);oK.toString=function(){return Ev};
return oK},
parse:function(Ev){var oK=e(Ev,Wzd);oK.toString=function(){return Ev};
return oK},
utcFormat:function(Ev){var oK=E(Ev,rD);oK.toString=function(){return Ev};
return oK},
utcParse:function(Ev){var oK=e(Ev,H4m);oK.toString=function(){return Ev};
return oK}}}
function QU(M,E,e){var r=M<0?"-":"";M=(r?-M:M)+"";var Jm=M.length;return r+(Jm<e?Array(e-Jm+1).join(E)+M:M)}
function R$G(M){return M.replace(FzM,"\\$&")}
function Bj(M){return new RegExp("^(?:"+M.map(R$G).join("|")+")","i")}
function nv(M){for(var E={},e=-1,r=M.length;++e<r;)E[M[e].toLowerCase()]=e;return E}
function fGO(M,E,e){return(E=EL.exec(E.slice(e,e+1)))?(M.w=+E[0],e+E[0].length):-1}
function kQv(M,E,e){return(E=EL.exec(E.slice(e,e+1)))?(M.u=+E[0],e+E[0].length):-1}
function Um3(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.U=+E[0],e+E[0].length):-1}
function X1L(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.V=+E[0],e+E[0].length):-1}
function N0O(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.W=+E[0],e+E[0].length):-1}
function T0m(M,E,e){return(E=EL.exec(E.slice(e,e+4)))?(M.y=+E[0],e+E[0].length):-1}
function lGv(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.y=+E[0]+(+E[0]>68?1900:2E3),e+E[0].length):-1}
function rWO(M,E,e){return(E=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(E.slice(e,e+6)))?(M.Z=E[1]?0:-(E[2]+(E[3]||"00")),e+E[0].length):-1}
function HA2(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.m=E[0]-1,e+E[0].length):-1}
function XTi(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.d=+E[0],e+E[0].length):-1}
function w1O(M,E,e){return(E=EL.exec(E.slice(e,e+3)))?(M.m=0,M.d=+E[0],e+E[0].length):-1}
function fbc(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.H=+E[0],e+E[0].length):-1}
function e$3(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.M=+E[0],e+E[0].length):-1}
function bAG(M,E,e){return(E=EL.exec(E.slice(e,e+2)))?(M.S=+E[0],e+E[0].length):-1}
function h$O(M,E,e){return(E=EL.exec(E.slice(e,e+3)))?(M.L=+E[0],e+E[0].length):-1}
function $mB(M,E,e){return(E=EL.exec(E.slice(e,e+6)))?(M.L=Math.floor(E[0]/1E3),e+E[0].length):-1}
function iAv(M,E,e){return(M=q7d.exec(E.slice(e,e+1)))?e+M[0].length:-1}
function cWf(M,E,e){return(E=EL.exec(E.slice(e)))?(M.Q=+E[0],e+E[0].length):-1}
function aGB(M,E,e){return(E=EL.exec(E.slice(e)))?(M.Q=+E[0]*1E3,e+E[0].length):-1}
function HTm(M,E){return QU(M.getDate(),E,2)}
function IGv(M,E){return QU(M.getHours(),E,2)}
function OAf(M,E){return QU(M.getHours()%12||12,E,2)}
function JWL(M,E){return QU(1+hNM.count(K3(M),M),E,3)}
function eNM(M,E){return QU(M.getMilliseconds(),E,3)}
function xm4(M,E){return eNM(M,E)+"000"}
function B0f(M,E){return QU(M.getMonth()+1,E,2)}
function nf3(M,E){return QU(M.getMinutes(),E,2)}
function Y7L(M,E){return QU(M.getSeconds(),E,2)}
function yWQ(M){M=M.getDay();return M===0?7:M}
function KzG(M,E){return QU(LzL.count(K3(M),M),E,2)}
function ZA6(M,E){var e=M.getDay();M=e>=4||e===0?zNR(M):zNR.ceil(M);return QU(zNR.count(K3(M),M)+(K3(M).getDay()===4),E,2)}
function ofO(M){return M.getDay()}
function S7f(M,E){return QU(AuR.count(K3(M),M),E,2)}
function uMy(M,E){return QU(M.getFullYear()%100,E,2)}
function dm6(M,E){return QU(M.getFullYear()%1E4,E,4)}
function s1M(M){M=M.getTimezoneOffset();return(M>0?"-":(M*=-1,"+"))+QU(M/60|0,"0",2)+QU(M%60,"0",2)}
function kbM(M,E){return QU(M.getUTCDate(),E,2)}
function mmm(M,E){return QU(M.getUTCHours(),E,2)}
function V3f(M,E){return QU(M.getUTCHours()%12||12,E,2)}
function t3G(M,E){return QU(1+wTp.count(Zj(M),M),E,3)}
function UKp(M,E){return QU(M.getUTCMilliseconds(),E,3)}
function vf2(M,E){return UKp(M,E)+"000"}
function p1L(M,E){return QU(M.getUTCMonth()+1,E,2)}
function j19(M,E){return QU(M.getUTCMinutes(),E,2)}
function Q1v(M,E){return QU(M.getUTCSeconds(),E,2)}
function Ck3(M){M=M.getUTCDay();return M===0?7:M}
function AW6(M,E){return QU(WmO.count(Zj(M),M),E,2)}
function z$O(M,E){var e=M.getUTCDay();M=e>=4||e===0?Gbm(M):Gbm.ceil(M);return QU(Gbm.count(Zj(M),M)+(Zj(M).getUTCDay()===4),E,2)}
function GQd(M){return M.getUTCDay()}
function Efv(M,E){return QU(C7x.count(Zj(M),M),E,2)}
function gfy(M,E){return QU(M.getUTCFullYear()%100,E,2)}
function DmG(M,E){return QU(M.getUTCFullYear()%1E4,E,4)}
function M33(){return"+0000"}
function bTc(){return"%"}
function cup(M){return+M}
function abP(M){return Math.floor(+M/1E3)}
function nl(M){for(var E=M.length/6|0,e=Array(E),r=0;r<E;)e[r]="#"+M.slice(r*6,++r*6);return e}
function i_(M){return Pmm(M[M.length-1])}
function e_U(M){var E=M.length;return function(e){return M[Math.max(0,Math.min(E-1,Math.floor(e*E)))]}}
function NKp(M){this._context=M}
function lbP(M){this._curve=M}
function TKc(M,E,e){var r=M._x1-M._x0;E-=M._x1;var Jm=(M._y1-M._y0)/(r||E<0&&-0);M=(e-M._y1)/(E||r<0&&-0);return((Jm<0?-1:1)+(M<0?-1:1))*Math.min(Math.abs(Jm),Math.abs(M),.5*Math.abs((Jm*E+M*r)/(r+E)))||0}
function rub(M,E){var e=M._x1-M._x0;return e?(3*(M._y1-M._y0)/e-E)/2:E}
function Eum(M,E,e){var r=M._x0,Jm=M._x1,oo=M._y1,mR=(Jm-r)/3;M._context.bezierCurveTo(r+mR,M._y0+mR*E,Jm-mR,oo-mR*e,Jm,oo)}
function guo(M){this._context=M}
function iTp(M){this._context=M}
function Yh(M,E,e){this.k=M;this.x=E;this.y=e}
(function(M){M.length===1&&(M=P(M));return{left:function(E,e,r,Jm){r==null&&(r=0);Jm==null&&(Jm=E.length);for(;r<Jm;){var oo=r+Jm>>>1;M(E[oo],e)<0?r=oo+1:Jm=oo}return r},
right:function(E,e,r,Jm){r==null&&(r=0);Jm==null&&(Jm=E.length);for(;r<Jm;){var oo=r+Jm>>>1;M(E[oo],e)>0?Jm=oo:r=oo+1}return r}}})(W);
var r82={value:function(){}};
I.prototype=x.prototype={constructor:I,on:function(M,E){var e=this._,r=O(M+"",e),Jm,oo=-1,mR=r.length;if(arguments.length<2)for(;++oo<mR;){var GR;if(GR=Jm=(M=r[oo]).type){a:{GR=e[Jm];for(var Wm=0,Ro=GR.length;Wm<Ro;++Wm)if((Jm=GR[Wm]).name===M.name){Jm=Jm.value;break a}Jm=void 0}GR=Jm}if(GR)return Jm}else{if(E!=null&&typeof E!=="function")throw Error("ye`"+E);for(;++oo<mR;)if(Jm=(M=r[oo]).type)e[Jm]=B(e[Jm],M.name,E);else if(E==null)for(Jm in e)e[Jm]=B(e[Jm],M.name,null);return this}},
copy:function(){var M={},E=this._,e;for(e in E)M[e]=E[e].slice();return new I(M)},
call:function(M,E){if((Jm=arguments.length-2)>0)for(var e=Array(Jm),r=0,Jm,oo;r<Jm;++r)e[r]=arguments[r+2];if(!this._.hasOwnProperty(M))throw Error("se`"+M);oo=this._[M];r=0;for(Jm=oo.length;r<Jm;++r)oo[r].value.apply(E,e)},
apply:function(M,E,e){if(!this._.hasOwnProperty(M))throw Error("se`"+M);M=this._[M];for(var r=0,Jm=M.length;r<Jm;++r)M[r].value.apply(E,e)}};
var l6={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/"},RNA=function(M){return function(){return this.matches(M)}};
if(typeof document!=="undefined"){var yx=document.documentElement;if(!yx.matches){var xC3=yx.webkitMatchesSelector||yx.msMatchesSelector||yx.mozMatchesSelector||yx.oMatchesSelector;RNA=function(M){return function(){return xC3.call(this,M)}}}}var Fwz=RNA;
C.prototype={constructor:C,appendChild:function(M){return this._parent.insertBefore(M,this._next)},
insertBefore:function(M,E){return this._parent.insertBefore(M,E)},
querySelector:function(M){return this._parent.querySelector(M)},
querySelectorAll:function(M){return this._parent.querySelectorAll(M)}};
var Ww3={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Ww3={mouseenter:"mouseover",mouseleave:"mouseout"}));var iWO=[null];jz.prototype=yf.prototype={constructor:jz,select:function(M){typeof M!=="function"&&(M=m(M));for(var E=this._groups,e=E.length,r=Array(e),Jm=0;Jm<e;++Jm)for(var oo=E[Jm],mR=oo.length,GR=r[Jm]=Array(mR),Wm,Ro,Pm=0;Pm<mR;++Pm)(Wm=oo[Pm])&&(Ro=M.call(Wm,Wm.__data__,Pm,oo))&&("__data__"in Wm&&(Ro.__data__=Wm.__data__),GR[Pm]=Ro);return new jz(r,this._parents)},
filter:function(M){typeof M!=="function"&&(M=Fwz(M));for(var E=this._groups,e=E.length,r=Array(e),Jm=0;Jm<e;++Jm)for(var oo=E[Jm],mR=oo.length,GR=r[Jm]=[],Wm,Ro=0;Ro<mR;++Ro)(Wm=oo[Ro])&&M.call(Wm,Wm.__data__,Ro,oo)&&GR.push(Wm);return new jz(r,this._parents)},
data:function(M,E){if(!M)return Sm=Array(this.size()),Ro=-1,this.each(function(PJ){Sm[++Ro]=PJ}),Sm;
var e=E?w:D,r=this._parents,Jm=this._groups;typeof M!=="function"&&(M=z(M));for(var oo=Jm.length,mR=Array(oo),GR=Array(oo),Wm=Array(oo),Ro=0;Ro<oo;++Ro){var Pm=r[Ro],Sz=Jm[Ro],rk=Sz.length,Sm=M.call(Pm,Pm&&Pm.__data__,Ro,r),vZ=Sm.length,fz=GR[Ro]=Array(vZ),Cz=mR[Ro]=Array(vZ);rk=Wm[Ro]=Array(rk);e(Pm,Sz,fz,Cz,rk,Sm,E);Sz=Pm=0;for(var RD;Pm<vZ;++Pm)if(rk=fz[Pm]){for(Pm>=Sz&&(Sz=Pm+1);!(RD=Cz[Sz])&&++Sz<vZ;);rk._next=RD||null}}mR=new jz(mR,r);mR._enter=GR;mR._exit=Wm;return mR},
exit:function(){return new jz(this._exit||this._groups.map(t),this._parents)},
merge:function(M){var E=this._groups;M=M._groups;for(var e=E.length,r=Math.min(e,M.length),Jm=Array(e),oo=0;oo<r;++oo)for(var mR=E[oo],GR=M[oo],Wm=mR.length,Ro=Jm[oo]=Array(Wm),Pm,Sz=0;Sz<Wm;++Sz)if(Pm=mR[Sz]||GR[Sz])Ro[Sz]=Pm;for(;oo<e;++oo)Jm[oo]=E[oo];return new jz(Jm,this._parents)},
order:function(){for(var M=this._groups,E=-1,e=M.length;++E<e;)for(var r=M[E],Jm=r.length-1,oo=r[Jm],mR;--Jm>=0;)if(mR=r[Jm])oo&&oo!==mR.nextSibling&&oo.parentNode.insertBefore(mR,oo),oo=mR;return this},
sort:function(M){function E(Sz,rk){return Sz&&rk?M(Sz.__data__,rk.__data__):!Sz-!rk}
M||(M=a);for(var e=this._groups,r=e.length,Jm=Array(r),oo=0;oo<r;++oo){for(var mR=e[oo],GR=mR.length,Wm=Jm[oo]=Array(GR),Ro,Pm=0;Pm<GR;++Pm)if(Ro=mR[Pm])Wm[Pm]=Ro;Wm.sort(E)}return(new jz(Jm,this._parents)).order()},
call:function(){var M=arguments[0];arguments[0]=this;M.apply(null,arguments);return this},
nodes:function(){var M=Array(this.size()),E=-1;this.each(function(){M[++E]=this});
return M},
node:function(){for(var M=this._groups,E=0,e=M.length;E<e;++E)for(var r=M[E],Jm=0,oo=r.length;Jm<oo;++Jm){var mR=r[Jm];if(mR)return mR}return null},
size:function(){var M=0;this.each(function(){++M});
return M},
empty:function(){return!this.node()},
each:function(M){for(var E=this._groups,e=0,r=E.length;e<r;++e)for(var Jm=E[e],oo=0,mR=Jm.length,GR;oo<mR;++oo)(GR=Jm[oo])&&M.call(GR,GR.__data__,oo,Jm);return this},
attr:function(M,E){var e=Y(M);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((E==null?e.local?T:k:typeof E==="function"?e.local?nm:F:e.local?Io:N)(e,E))},
style:function(M,E,e){return arguments.length>1?this.each((E==null?pm:typeof E==="function"?Am:zR)(M,E,e==null?"":e)):kW(this.node(),M)},
property:function(M,E){return arguments.length>1?this.each((E==null?$W:typeof E==="function"?e8:ao)(M,E)):this.node()[M]},
text:function(M){return arguments.length?this.each(M==null?iC:(typeof M==="function"?dk:hw)(M)):this.node().textContent},
html:function(M){return arguments.length?this.each(M==null?Oc:(typeof M==="function"?GA:Bm)(M)):this.node().innerHTML},
append:function(M){var E=typeof M==="function"?M:d(M);return this.select(function(){return this.appendChild(E.apply(this,arguments))})},
insert:function(M,E){var e=typeof M==="function"?M:d(M),r=E==null?KM:typeof E==="function"?E:m(E);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},
remove:function(){return this.each(PZ)},
clone:function(M){return this.select(M?YW:j$)},
datum:function(M){return arguments.length?this.property("__data__",M):this.node().__data__},
on:function(M,E,e){var r=b3(M+""),Jm=r.length,oo;if(arguments.length<2){var mR=this.node().__on;if(mR)for(var GR=0,Wm=mR.length,Ro;GR<Wm;++GR){var Pm=0;for(Ro=mR[GR];Pm<Jm;++Pm)if((oo=r[Pm]).type===Ro.type&&oo.name===Ro.name)return Ro.value}}else{mR=E?lp:D3;e==null&&(e=!1);for(Pm=0;Pm<Jm;++Pm)this.each(mR(r[Pm],E,e));return this}},
dispatch:function(M,E){return this.each((typeof E==="function"?rS:sc)(M,E))}};
var RwL=0;CM.prototype=function(){return new CM}.prototype={constructor:CM,
get:function(M){for(var E=this._;!(E in M);)if(!(M=M.parentNode))return;return M[E]},
set:function(M,E){return M[this._]=E},
remove:function(M){return this._ in M&&delete M[this._]},
toString:function(){return this._}};
var oc=1/.7,FS4=/^#([0-9a-f]{3})$/,q1m=/^#([0-9a-f]{6})$/,LSB=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),WeB=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),PYm=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),xQv=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*\\)$"),
I94=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),OdB=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*\\)$"),P7c={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};
Vf(SV,k4,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Vf(RG,t9,Kx(SV,{brighter:function(M){M=M==null?oc:Math.pow(oc,M);return new RG(this.r*M,this.g*M,this.b*M,this.opacity)},
darker:function(M){M=M==null?.7:Math.pow(.7,M);return new RG(this.r*M,this.g*M,this.b*M,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"#"+F6(this.r)+F6(this.g)+F6(this.b)},
toString:function(){var M=this.opacity;M=isNaN(M)?1:Math.max(0,Math.min(1,M));return(M===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))+(M===1?")":", "+M+")")}}));
Vf(Bi,uE,Kx(SV,{brighter:function(M){M=M==null?oc:Math.pow(oc,M);return new Bi(this.h,this.s,this.l*M,this.opacity)},
darker:function(M){M=M==null?.7:Math.pow(.7,M);return new Bi(this.h,this.s,this.l*M,this.opacity)},
rgb:function(){var M=this.h%360+(this.h<0)*360,E=this.l,e=E+(E<.5?E:1-E)*(isNaN(M)||isNaN(this.s)?0:this.s);E=2*E-e;return new RG(i5(M>=240?M-240:M+120,E,e),i5(M,E,e),i5(M<120?M+240:M-120,E,e),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 xK3=Math.PI/180,Jup=180/Math.PI,OTA=4/29,YG=6/29,IbM=3*YG*YG,J6M=YG*YG*YG;Vf(tm,function(M,E,e,r){return arguments.length===1?uO(M):new tm(M,E,e,r==null?1:r)},Kx(SV,{brighter:function(M){return new tm(this.l+18*(M==null?1:M),this.a,this.b,this.opacity)},
darker:function(M){return new tm(this.l-18*(M==null?1:M),this.a,this.b,this.opacity)},
rgb:function(){var M=(this.l+16)/116,E=isNaN(this.a)?M:M+this.a/500,e=isNaN(this.b)?M:M-this.b/200;E=.96422*Xt(E);M=1*Xt(M);e=.82521*Xt(e);return new RG(VZ(3.1338561*E-1.6168667*M-.4906146*e),VZ(-.9787684*E+1.9161415*M+.033454*e),VZ(.0719453*E-.2289914*M+1.4052427*e),this.opacity)}}));
Vf(tw,ZB,Kx(SV,{brighter:function(M){return new tw(this.h,this.c,this.l+18*(M==null?1:M),this.opacity)},
darker:function(M){return new tw(this.h,this.c,this.l-18*(M==null?1:M),this.opacity)},
rgb:function(){return uO(this).rgb()}}));
var BKW=1.78277*-.29227-.1347134789;Vf(oG,vm,Kx(SV,{brighter:function(M){M=M==null?oc:Math.pow(oc,M);return new oG(this.h,this.s,this.l*M,this.opacity)},
darker:function(M){M=M==null?.7:Math.pow(.7,M);return new oG(this.h,this.s,this.l*M,this.opacity)},
rgb:function(){var M=isNaN(this.h)?0:(this.h+120)*xK3,E=+this.l,e=isNaN(this.s)?0:this.s*E*(1-E),r=Math.cos(M);M=Math.sin(M);return new RG(255*(E+e*(-.14861*r+1.78277*M)),255*(E+e*(-.29227*r+-.90649*M)),255*(E+1.97294*r*e),this.opacity)}}));
var ZTz=function e(E){function r(oo,mR){var GR=Jm((oo=t9(oo)).r,(mR=t9(mR)).r),Wm=Jm(oo.g,mR.g),Ro=Jm(oo.b,mR.b),Pm=c9(oo.opacity,mR.opacity);return function(Sz){oo.r=GR(Sz);oo.g=Wm(Sz);oo.b=Ro(Sz);oo.opacity=Pm(Sz);return oo+""}}
var Jm=RE(E);r.gamma=e;return r}(1),Pmm=X_(function(E){var e=E.length-1;
return function(r){var Jm=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),oo=E[Jm],mR=E[Jm+1];return zk((r-Jm/e)*e,Jm>0?E[Jm-1]:2*oo-mR,oo,mR,Jm<e-1?E[Jm+2]:2*mR-oo)}});
X_(function(E){var e=E.length;return function(r){var Jm=Math.floor(((r%=1)<0?++r:r)*e);return zk((r-Jm/e)*e,E[(Jm+e-1)%e],E[Jm%e],E[(Jm+1)%e],E[(Jm+2)%e])}});
var KwU=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ZT8=new RegExp(KwU.source,"g"),nu3=180/Math.PI,DKG={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Kv,MJ7,qkk,cgt,InG=ut(function(E){if(E==="none")return DKG;Kv||(Kv=document.createElement("DIV"),MJ7=document.documentElement,qkk=document.defaultView);Kv.style.transform=E;E=qkk.getComputedStyle(MJ7.appendChild(Kv),null).getPropertyValue("transform");MJ7.removeChild(Kv);E=E.slice(7,-1).split(",");return h2(+E[0],+E[1],+E[2],+E[3],
+E[4],+E[5])},"px, ","px)","deg)"),ObB=ut(function(E){if(E==null)return DKG;
cgt||(cgt=document.createElementNS("http://www.w3.org/2000/svg","g"));cgt.setAttribute("transform",E);if(!(E=cgt.transform.baseVal.consolidate()))return DKG;E=E.matrix;return h2(E.a,E.b,E.c,E.d,E.e,E.f)},", ",")",")");
J2(cZ);J2(c9);Uw(cZ);Uw(c9);je(cZ);var $KW=je(c9),y_=0,Wj=0,xh=0,EVR,Pj,GBR=0,ca=0,z_m=0,L1=typeof performance==="object"&&performance.now?performance:Date,YkP=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(E){setTimeout(E,17)};
pO.prototype=TG.prototype={constructor:pO,restart:function(E,e,r){if(typeof E!=="function")throw new TypeError("ze");r=(r==null?fE():+r)+(e==null?0:+e);this._next||Pj===this||(Pj?Pj._next=this:EVR=this,Pj=this);this._call=E;this._time=r;il()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,il())}};
var n_f=x("start","end","interrupt"),YFm=[],JVv=yf.prototype.constructor,Lwm=0,SG=yf.prototype;ub.prototype=function(E){return yf().transition(E)}.prototype={constructor:ub,
select:function(E){var e=this._name,r=this._id;typeof E!=="function"&&(E=m(E));for(var Jm=this._groups,oo=Jm.length,mR=Array(oo),GR=0;GR<oo;++GR)for(var Wm=Jm[GR],Ro=Wm.length,Pm=mR[GR]=Array(Ro),Sz,rk,Sm=0;Sm<Ro;++Sm)(Sz=Wm[Sm])&&(rk=E.call(Sz,Sz.__data__,Sm,Wm))&&("__data__"in Sz&&(rk.__data__=Sz.__data__),Pm[Sm]=rk,ouW(Pm[Sm],e,r,Sm,Pm,Kb(Sz,r)));return new ub(mR,this._parents,e,r)},
filter:function(E){typeof E!=="function"&&(E=Fwz(E));for(var e=this._groups,r=e.length,Jm=Array(r),oo=0;oo<r;++oo)for(var mR=e[oo],GR=mR.length,Wm=Jm[oo]=[],Ro,Pm=0;Pm<GR;++Pm)(Ro=mR[Pm])&&E.call(Ro,Ro.__data__,Pm,mR)&&Wm.push(Ro);return new ub(Jm,this._parents,this._name,this._id)},
merge:function(E){if(E._id!==this._id)throw Error();var e=this._groups;E=E._groups;for(var r=e.length,Jm=Math.min(r,E.length),oo=Array(r),mR=0;mR<Jm;++mR)for(var GR=e[mR],Wm=E[mR],Ro=GR.length,Pm=oo[mR]=Array(Ro),Sz,rk=0;rk<Ro;++rk)if(Sz=GR[rk]||Wm[rk])Pm[rk]=Sz;for(;mR<r;++mR)oo[mR]=e[mR];return new ub(oo,this._parents,this._name,this._id)},
selection:function(){return new JVv(this._groups,this._parents)},
transition:function(){for(var E=this._name,e=this._id,r=++Lwm,Jm=this._groups,oo=Jm.length,mR=0;mR<oo;++mR)for(var GR=Jm[mR],Wm=GR.length,Ro,Pm=0;Pm<Wm;++Pm)if(Ro=GR[Pm]){var Sz=Kb(Ro,e);ouW(Ro,E,r,Pm,GR,{time:Sz.time+Sz.delay+Sz.duration,delay:0,duration:Sz.duration,ease:Sz.ease})}return new ub(Jm,this._parents,E,r)},
call:SG.call,nodes:SG.nodes,node:SG.node,size:SG.size,empty:SG.empty,each:SG.each,on:function(E,e){var r=this._id;return arguments.length<2?Kb(this.node(),r).on.on(E):this.each(A6f(r,E,e))},
attr:function(E,e){var r=Y(E),Jm=r==="transform"?ObB:Kwc;return this.attrTween(E,typeof e==="function"?(r.local?s_4:dQy)(r,Jm,usR(this,"attr."+E,e)):e==null?(r.local?o_6:ZdM)(r):(r.local?ufQ:SFB)(r,Jm,e+""))},
attrTween:function(E,e){var r="attr."+E;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!=="function")throw Error();var Jm=Y(E);return this.tween(r,(Jm.local?v_B:mQO)(Jm,e))},
style:function(E,e,r){var Jm=E==="transform"?InG:Kwc;return e==null?this.styleTween(E,GTO(E,Jm)).on("end.style."+E,E_m(E)):this.styleTween(E,typeof e==="function"?DQQ(E,Jm,usR(this,"style."+E,e)):g_6(E,Jm,e+""),r)},
styleTween:function(E,e,r){var Jm="style."+E;if(arguments.length<2)return(Jm=this.tween(Jm))&&Jm._value;if(e==null)return this.tween(Jm,null);if(typeof e!=="function")throw Error();return this.tween(Jm,MAQ(E,e,r==null?"":r))},
text:function(E){return this.tween("text",typeof E==="function"?wxy(usR(this,"text",E)):$Q3(E==null?"":E+""))},
remove:function(){return this.on("end.remove",zR4(this._id))},
tween:function(E,e){var r=this._id;if(arguments.length<2){r=Kb(this.node(),r).tween;for(var Jm=0,oo=r.length,mR;Jm<oo;++Jm)if((mR=r[Jm]).name===E)return mR.value;return null}return this.each((e==null?y6y:KeG)(r,E,e))},
delay:function(E){var e=this._id;return arguments.length?this.each((typeof E==="function"?VAO:tAG)(e,E)):Kb(this.node(),e).delay},
duration:function(E){var e=this._id;return arguments.length?this.each((typeof E==="function"?pxL:j_m)(e,E)):Kb(this.node(),e).duration},
ease:function(E){var e=this._id;return arguments.length?this.each(Q_B(e,E)):Kb(this.node(),e).ease}};
var wTC={time:null,delay:0,duration:250,ease:function(E){return((E*=2)<=1?E*E*E:(E-=2)*E*E+2)/2}};
yf.prototype.transition=function(E){var e;if(E instanceof ub){var r=E._id;E=E._name}else r=++Lwm,(e=wTC).time=fE(),E=E==null?null:E+"";for(var Jm=this._groups,oo=Jm.length,mR=0;mR<oo;++mR)for(var GR=Jm[mR],Wm=GR.length,Ro,Pm=0;Pm<Wm;++Pm)if(Ro=GR[Pm]){var Sz=Ro,rk=E,Sm=r,vZ=Pm,fz=GR,Cz;if(!(Cz=e))a:{Cz=void 0;for(var RD=r;!(Cz=Ro.__transition)||!(Cz=Cz[RD]);)if(!(Ro=Ro.parentNode)){Cz=(wTC.time=fE(),wTC);break a}}ouW(Sz,rk,Sm,vZ,fz,Cz)}return new ub(Jm,this._parents,E,r)};
["e","w"].map(dKR);["n","s"].map(dKR);"n e s w nw ne se sw".split(" ").map(dKR);sno.prototype=function(){return new sno}.prototype={constructor:sno,
moveTo:function(E,e){this._+="M"+(this._x0=this._x1=+E)+","+(this._y0=this._y1=+e)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(E,e){this._+="L"+(this._x1=+E)+","+(this._y1=+e)},
bezierCurveTo:function(E,e,r,Jm,oo,mR){this._+="C"+ +E+","+ +e+","+ +r+","+ +Jm+","+(this._x1=+oo)+","+(this._y1=+mR)},
rect:function(E,e,r,Jm){this._+="M"+(this._x0=this._x1=+E)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +Jm+"h"+-r+"Z"},
toString:function(){return this._}};
gVt.prototype=oui.prototype={constructor:gVt,has:function(E){return" "+E in this},
get:function(E){return this[" "+E]},
set:function(E,e){this[" "+E]=e;return this},
remove:function(E){E=" "+E;return E in this&&delete this[E]},
clear:function(){for(var E in this)E[0]===" "&&delete this[E]},
keys:function(){var E=[],e;for(e in this)e[0]===" "&&E.push(e.slice(1));return E},
values:function(){var E=[],e;for(e in this)e[0]===" "&&E.push(this[e]);return E},
entries:function(){var E=[],e;for(e in this)e[0]===" "&&E.push({key:e.slice(1),value:this[e]});return E},
size:function(){var E=0,e;for(e in this)e[0]===" "&&++E;return E},
empty:function(){for(var E in this)if(E[0]===" ")return!1;return!0},
each:function(E){for(var e in this)e[0]===" "&&E(this[e],e.slice(1),this)}};
var UJ=oui.prototype;DS7.prototype=function(E,e){var r=new DS7;if(E instanceof DS7)E.each(function(mR){r.add(mR)});
else if(E){var Jm=-1,oo=E.length;if(e==null)for(;++Jm<oo;)r.add(E[Jm]);else for(;++Jm<oo;)r.add(e(E[Jm],Jm,E))}return r}.prototype={constructor:DS7,
has:UJ.has,add:function(E){this[" "+E]=E;return this},
remove:UJ.remove,clear:UJ.clear,values:UJ.keys,size:UJ.size,empty:UJ.empty,each:UJ.each};var dKA={},vux={},BiM=usP(",").parse,n1y=usP("\t").parse;snW(BiM);snW(n1y);var xl=function(E,e,r){e=new mKx(e==null?c6y:e,r==null?a9M:r,NaN,NaN,NaN,NaN);return E==null?e:e.addAll(E)}.prototype=mKx.prototype;
xl.copy=function(){var E=new mKx(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,r,Jm;if(!e)return E;if(!e.length)return E._root=mKd(e),E;for(r=[{source:e,target:E._root=Array(4)}];e=r.pop();)for(var oo=0;oo<4;++oo)if(Jm=e.source[oo])Jm.length?r.push({source:Jm,target:e.target[oo]=Array(4)}):e.target[oo]=mKd(Jm);return E};
xl.add=function(E){var e=+this._x.call(null,E),r=+this._y.call(null,E);return vud(this.cover(e,r),e,r,E)};
xl.addAll=function(E){var e,r,Jm=E.length,oo,mR,GR=Array(Jm),Wm=Array(Jm),Ro=Infinity,Pm=Infinity,Sz=-Infinity,rk=-Infinity;for(r=0;r<Jm;++r)isNaN(oo=+this._x.call(null,e=E[r]))||isNaN(mR=+this._y.call(null,e))||(GR[r]=oo,Wm[r]=mR,oo<Ro&&(Ro=oo),oo>Sz&&(Sz=oo),mR<Pm&&(Pm=mR),mR>rk&&(rk=mR));Sz<Ro&&(Ro=this._x0,Sz=this._x1);rk<Pm&&(Pm=this._y0,rk=this._y1);this.cover(Ro,Pm).cover(Sz,rk);for(r=0;r<Jm;++r)vud(this,GR[r],Wm[r],E[r]);return this};
xl.cover=function(E,e){if(isNaN(E=+E)||isNaN(e=+e))return this;var r=this._x0,Jm=this._y0,oo=this._x1,mR=this._y1;if(isNaN(r))oo=(r=Math.floor(E))+1,mR=(Jm=Math.floor(e))+1;else if(r>E||E>oo||Jm>e||e>mR){var GR=oo-r,Wm=this._root,Ro;switch(Ro=(e<(Jm+mR)/2)<<1|E<(r+oo)/2){case 0:do{var Pm=Array(4);Pm[Ro]=Wm;Wm=Pm}while(GR*=2,oo=r+GR,mR=Jm+GR,E>oo||e>mR);break;case 1:do Pm=Array(4),Pm[Ro]=Wm,Wm=Pm;while(GR*=2,r=oo-GR,mR=Jm+GR,r>E||e>mR);break;case 2:do Pm=Array(4),Pm[Ro]=Wm,Wm=Pm;while(GR*=2,oo=r+GR,
Jm=mR-GR,E>oo||Jm>e);break;case 3:do Pm=Array(4),Pm[Ro]=Wm,Wm=Pm;while(GR*=2,r=oo-GR,Jm=mR-GR,r>E||Jm>e)}this._root&&this._root.length&&(this._root=Wm)}else return this;this._x0=r;this._y0=Jm;this._x1=oo;this._y1=mR;return this};
xl.data=function(){var E=[];this.visit(function(e){if(!e.length){do E.push(e.data);while(e=e.next)}});
return E};
xl.extent=function(E){return arguments.length?this.cover(+E[0][0],+E[0][1]).cover(+E[1][0],+E[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
xl.find=function(E,e,r){var Jm=this._x0,oo=this._y0,mR,GR,Wm,Ro,Pm=this._x1,Sz=this._y1,rk=[],Sm=this._root,vZ;Sm&&rk.push(new PM(Sm,Jm,oo,Pm,Sz));r==null?r=Infinity:(Jm=E-r,oo=e-r,Pm=E+r,Sz=e+r,r*=r);for(;vZ=rk.pop();)if(!(!(Sm=vZ.node)||(mR=vZ.x0)>Pm||(GR=vZ.y0)>Sz||(Wm=vZ.x1)<Jm||(Ro=vZ.y1)<oo))if(Sm.length){vZ=(mR+Wm)/2;var fz=(GR+Ro)/2;rk.push(new PM(Sm[3],vZ,fz,Wm,Ro),new PM(Sm[2],mR,fz,vZ,Ro),new PM(Sm[1],vZ,GR,Wm,fz),new PM(Sm[0],mR,GR,vZ,fz));if(Sm=(e>=fz)<<1|E>=vZ)vZ=rk[rk.length-1],rk[rk.length-
1]=rk[rk.length-1-Sm],rk[rk.length-1-Sm]=vZ}else if(vZ=E-+this._x.call(null,Sm.data),fz=e-+this._y.call(null,Sm.data),vZ=vZ*vZ+fz*fz,vZ<r){var Cz=Math.sqrt(r=vZ);Jm=E-Cz;oo=e-Cz;Pm=E+Cz;Sz=e+Cz;Cz=Sm.data}return Cz};
xl.remove=function(E){if(isNaN(Ro=+this._x.call(null,E))||isNaN(Pm=+this._y.call(null,E)))return this;var e,r=this._root,Jm,oo=this._x0,mR=this._y0,GR=this._x1,Wm=this._y1,Ro,Pm,Sz,rk,Sm,vZ,fz;if(!r)return this;if(r.length)for(;;){(Sm=Ro>=(Sz=(oo+GR)/2))?oo=Sz:GR=Sz;(vZ=Pm>=(rk=(mR+Wm)/2))?mR=rk:Wm=rk;if(!(e=r,r=r[fz=vZ<<1|Sm]))return this;if(!r.length)break;if(e[fz+1&3]||e[fz+2&3]||e[fz+3&3]){var Cz=e;var RD=fz}}for(;r.data!==E;)if(!(Jm=r,r=r.next))return this;(E=r.next)&&delete r.next;if(Jm)return E?
Jm.next=E:delete Jm.next,this;if(!e)return this._root=E,this;E?e[fz]=E:delete e[fz];(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(Cz?Cz[RD]=r:this._root=r);return this};
xl.removeAll=function(E){for(var e=0,r=E.length;e<r;++e)this.remove(E[e]);return this};
xl.root=function(){return this._root};
xl.size=function(){var E=0;this.visit(function(e){if(!e.length){do++E;while(e=e.next)}});
return E};
xl.visit=function(E){var e=[],r,Jm=this._root,oo,mR,GR,Wm,Ro;for(Jm&&e.push(new PM(Jm,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!E(Jm=r.node,mR=r.x0,GR=r.y0,Wm=r.x1,Ro=r.y1)&&Jm.length){r=(mR+Wm)/2;var Pm=(GR+Ro)/2;(oo=Jm[3])&&e.push(new PM(oo,r,Pm,Wm,Ro));(oo=Jm[2])&&e.push(new PM(oo,mR,Pm,r,Ro));(oo=Jm[1])&&e.push(new PM(oo,r,GR,Wm,Pm));(oo=Jm[0])&&e.push(new PM(oo,mR,GR,r,Pm))}};
xl.visitAfter=function(E){var e=[],r=[],Jm;for(this._root&&e.push(new PM(this._root,this._x0,this._y0,this._x1,this._y1));Jm=e.pop();){var oo=Jm.node;if(oo.length){var mR,GR=Jm.x0,Wm=Jm.y0,Ro=Jm.x1,Pm=Jm.y1,Sz=(GR+Ro)/2,rk=(Wm+Pm)/2;(mR=oo[0])&&e.push(new PM(mR,GR,Wm,Sz,rk));(mR=oo[1])&&e.push(new PM(mR,Sz,Wm,Ro,rk));(mR=oo[2])&&e.push(new PM(mR,GR,rk,Sz,Pm));(mR=oo[3])&&e.push(new PM(mR,Sz,rk,Ro,Pm))}r.push(Jm)}for(;Jm=r.pop();)E(Jm.node,Jm.x0,Jm.y0,Jm.x1,Jm.y1);return this};
xl.x=function(E){return arguments.length?(this._x=E,this):this._x};
xl.y=function(E){return arguments.length?(this._y=E,this):this._y};
var Xx2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;VJ7.prototype=tJR.prototype;tJR.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 jnk,Qnl={"%":function(E,e){return(E*100).toFixed(e)},
b:function(E){return Math.round(E).toString(2)},
c:function(E){return E+""},
d:function(E){return Math.round(E).toString(10)},
e:function(E,e){return E.toExponential(e)},
f:function(E,e){return E.toFixed(e)},
g:function(E,e){return E.toPrecision(e)},
o:function(E){return Math.round(E).toString(8)},
p:function(E,e){return VJb(E*100,e)},
r:VJb,s:function(E,e){var r=Mjd(E,e);if(!r)return E+"";var Jm=r[0];r=r[1];r=r-(jnk=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1;var oo=Jm.length;return r===oo?Jm:r>oo?Jm+Array(r-oo+1).join("0"):r>0?Jm.slice(0,r)+"."+Jm.slice(r):"0."+Array(1-r).join("0")+Mjd(E,Math.max(0,e+r-1))[0]},
X:function(E){return Math.round(E).toString(16).toUpperCase()},
x:function(E){return Math.round(E).toString(16)}},pTl="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),YPQ;
(function(E){return YPQ=f99(E)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});U1.prototype={constructor:U1,reset:function(){this.s=this.t=0},
add:function(E){C7d(alC,E,this.t);C7d(this,alC.s,this.s);this.s?this.t+=alC.t:this.s=alC.t},
valueOf:function(){return this.s}};
var alC=new U1,$M=Math.PI,Ta=$M/2,W4z=$M/4,yV2=$M*2,hNm=$M/180,dy=Math.abs,HTd=Math.atan,DKZ=Math.atan2,rn=Math.cos,hb=Math.sin,wJC=Math.sqrt;new U1;new U1;new U1;var eNm=new U1;(function(E,e,r,Jm){return function(oo){function mR(xV,mY){E(xV,mY)&&oo.point(xV,mY)}
function GR(xV,mY){Sm.point(xV,mY)}
function Wm(){oS.point=GR;Sm.lineStart()}
function Ro(){oS.point=mR;Sm.lineEnd()}
function Pm(xV,mY){GZ.push([xV,mY]);fz.point(xV,mY)}
function Sz(){fz.lineStart();GZ=[]}
function rk(){Pm(GZ[0][0],GZ[0][1]);fz.lineEnd();var xV=fz.clean(),mY=vZ.result(),rD=mY.length,mp;GZ.pop();RD.push(GZ);GZ=null;if(rD)if(xV&1){if(rD=mY[0],(mY=rD.length-1)>0){Cz||(oo.polygonStart(),Cz=!0);oo.lineStart();for(xV=0;xV<mY;++xV)oo.point((mp=rD[xV])[0],mp[1]);oo.lineEnd()}}else rD>1&&xV&2&&mY.push(mY.pop().concat(mY.shift())),PJ.push(mY.filter(r6v))}
var Sm=e(oo),vZ=l9L(),fz=e(vZ),Cz=!1,RD,PJ,GZ,oS={point:mR,lineStart:Wm,lineEnd:Ro,polygonStart:function(){oS.point=Pm;oS.lineStart=Sz;oS.lineEnd=rk;PJ=[];RD=[]},
polygonEnd:function(){oS.point=mR;oS.lineStart=Wm;oS.lineEnd=Ro;var xV=PJ,mY=xV.length;var rD=-1;for(var mp=0,Ev,oK;++rD<mY;)mp+=xV[rD].length;for(Ev=Array(mp);--mY>=0;)for(oK=xV[mY],rD=oK.length;--rD>=0;)Ev[--mp]=oK[rD];PJ=Ev;xV=RD;mY=Jm[0];mp=Jm[1];var xT=hb(mp);rD=[hb(mY),-rn(mY),0];oK=Ev=0;eNm.reset();xT===1?mp=Ta+1E-6:xT===-1&&(mp=-Ta-1E-6);xT=0;for(var vy=xV.length;xT<vy;++xT)if(Ml=(r1=xV[xT]).length){var r1,Ml,FG=r1[Ml-1],vo=FG[0],Ek=FG[1]/2+W4z,b4m=hb(Ek),PGp=rn(Ek);for(Ek=0;Ek<Ml;++Ek,vo=
cuC,b4m=x3A,PGp=Zr,FG=kBt){var kBt=r1[Ek],cuC=kBt[0];Zr=kBt[1]/2+W4z;var x3A=hb(Zr),Zr=rn(Zr),uu=cuC-vo,abR=uu>=0?1:-1,bTU=abR*uu,USt=bTU>$M;b4m*=x3A;eNm.add(DKZ(b4m*abR*hb(bTU),PGp*Zr+b4m*rn(bTU)));Ev+=USt?uu+abR*yV2:uu;USt^vo>=mY^cuC>=mY&&(FG=zNA(AuP(FG),AuP(kBt)),Gbw(FG),vo=zNA(rD,FG),Gbw(vo),vo=(USt^uu>=0?-1:1)*$So(vo[2]),mp>vo||mp===vo&&(FG[0]||FG[1]))&&(oK+=USt^uu>=0?1:-1)}}xV=(Ev<-1E-6||Ev<1E-6&&eNm<-1E-6)^oK&1;PJ.length?(Cz||(oo.polygonStart(),Cz=!0),TNG(PJ,id2,xV,r,oo)):xV&&(Cz||(oo.polygonStart(),
Cz=!0),oo.lineStart(),r(null,null,1,oo),oo.lineEnd());Cz&&(oo.polygonEnd(),Cz=!1);PJ=RD=null},
sphere:function(){oo.polygonStart();oo.lineStart();r(null,null,1,oo);oo.lineEnd();oo.polygonEnd()}};
return oS}})(function(){return!0},function(E){var e=NaN,r=NaN,Jm=NaN,oo;
return{lineStart:function(){E.lineStart();oo=1},
point:function(mR,GR){var Wm=mR>0?$M:-$M,Ro=dy(mR-e);if(dy(Ro-$M)<1E-6)E.point(e,r=(r+GR)/2>0?Ta:-Ta),E.point(Jm,r),E.lineEnd(),E.lineStart(),E.point(Wm,r),E.point(mR,r),oo=0;else if(Jm!==Wm&&Ro>=$M){dy(e-Jm)<1E-6&&(e-=Jm*1E-6);dy(mR-Wm)<1E-6&&(mR-=Wm*1E-6);Ro=e;var Pm=r,Sz=mR,rk,Sm,vZ=hb(Ro-Sz);r=dy(vZ)>1E-6?HTd((hb(Pm)*(Sm=rn(GR))*hb(Sz)-hb(GR)*(rk=rn(Pm))*hb(Ro))/(rk*Sm*vZ)):(Pm+GR)/2;E.point(Jm,r);E.lineEnd();E.lineStart();E.point(Wm,r);oo=0}E.point(e=mR,r=GR);Jm=Wm},
lineEnd:function(){E.lineEnd();e=r=NaN},
clean:function(){return 2-oo}}},function(E,e,r,Jm){E==null?(r*=Ta,Jm.point(-$M,r),Jm.point(0,r),Jm.point($M,r),Jm.point($M,0),Jm.point($M,-r),Jm.point(0,-r),Jm.point(-$M,-r),Jm.point(-$M,0),Jm.point(-$M,r)):dy(E[0]-e[0])>1E-6?(E=E[0]<e[0]?$M:-$M,r=r*E/2,Jm.point(-E,r),Jm.point(0,r),Jm.point(E,r)):Jm.point(e[0],e[1])},[-$M,
-Ta]);new U1;new U1;new U1;new U1;pTt.prototype={constructor:pTt,point:function(E,e){this.stream.point(E,e)},
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()}};
rn(30*hNm);(function(E){return function(e){var r=new pTt,Jm;for(Jm in E)r[Jm]=E[Jm];r.stream=e;return r}})({point:function(E,e){this.stream.point(E*hNm,e*hNm)}});
guW(function(E){return wJC(2/(1+E))}).invert=I4(function(E){return 2*$So(E/2)});
guW(function(E){return(E=E>1?0:E<-1?$M:Math.acos(E))&&E/hb(E)}).invert=I4(function(E){return E});
wJC(3);I4(HTd);I4($So);I4(function(E){return 2*HTd(E)});
Op.prototype=MJb.prototype={constructor:Op,count:function(){return this.eachAfter(RRM)},
each:function(E){var e,r=[this],Jm;do{var oo=r.reverse();for(r=[];e=oo.pop();)if(E(e),e=e.children){var mR=0;for(Jm=e.length;mR<Jm;++mR)r.push(e[mR])}}while(r.length);return this},
eachAfter:function(E){for(var e,r=[this],Jm=[],oo,mR;e=r.pop();)if(Jm.push(e),e=e.children)for(oo=0,mR=e.length;oo<mR;++oo)r.push(e[oo]);for(;e=Jm.pop();)E(e);return this},
eachBefore:function(E){for(var e,r=[this],Jm;e=r.pop();)if(E(e),e=e.children)for(Jm=e.length-1;Jm>=0;--Jm)r.push(e[Jm]);return this},
sum:function(E){return this.eachAfter(function(e){for(var r=+E(e.data)||0,Jm=e.children,oo=Jm&&Jm.length;--oo>=0;)r+=Jm[oo].value;e.value=r})},
sort:function(E){return this.eachBefore(function(e){e.children&&e.children.sort(E)})},
path:function(E){var e=this;var r=e;var Jm=E;if(r!==Jm){var oo=r.ancestors(),mR=Jm.ancestors(),GR=null;r=oo.pop();for(Jm=mR.pop();r===Jm;)GR=r,r=oo.pop(),Jm=mR.pop();r=GR}for(Jm=[e];e!==r;)e=e.parent,Jm.push(e);for(e=Jm.length;E!==r;)Jm.splice(e,0,E),E=E.parent;return Jm},
ancestors:function(){for(var E=this,e=[E];E=E.parent;)e.push(E);return e},
links:function(){var E=this,e=[];E.each(function(r){r!==E&&e.push({source:r.parent,target:r})});
return e},
copy:function(){return MJb(this).eachBefore(Lem)}};
(function(E,e){this._=E;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=e}).prototype=Object.create(Op.prototype);
var jnS=new Date,Qnt=new Date,Iyc=QS(function(){},function(E,e){E.setTime(+E+e)},function(E,e){return e-E});
Iyc.every=function(E){E=Math.floor(E);return isFinite(E)&&E>0?E>1?QS(function(e){e.setTime(Math.floor(e/E)*E)},function(e,r){e.setTime(+e+r*E)},function(e,r){return(r-e)/E}):Iyc:null};
QS(function(E){E.setTime(Math.floor(E/1E3)*1E3)},function(E,e){E.setTime(+E+e*1E3)},function(E,e){return(e-E)/1E3},function(E){return E.getUTCSeconds()});
QS(function(E){E.setTime(Math.floor(E/6E4)*6E4)},function(E,e){E.setTime(+E+e*6E4)},function(E,e){return(e-E)/6E4},function(E){return E.getMinutes()});
QS(function(E){var e=E.getTimezoneOffset()*6E4%36E5;e<0&&(e+=36E5);E.setTime(Math.floor((+E-e)/36E5)*36E5+e)},function(E,e){E.setTime(+E+e*36E5)},function(E,e){return(e-E)/36E5},function(E){return E.getHours()});
var hNM=QS(function(E){E.setHours(0,0,0,0)},function(E,e){E.setDate(E.getDate()+e)},function(E,e){return(e-E-(e.getTimezoneOffset()-E.getTimezoneOffset())*6E4)/864E5},function(E){return E.getDate()-1}),LzL=bF(0),AuR=bF(1);
bF(2);bF(3);var zNR=bF(4);bF(5);bF(6);QS(function(E){E.setDate(1);E.setHours(0,0,0,0)},function(E,e){E.setMonth(E.getMonth()+e)},function(E,e){return e.getMonth()-E.getMonth()+(e.getFullYear()-E.getFullYear())*12},function(E){return E.getMonth()});
var K3=QS(function(E){E.setMonth(0,1);E.setHours(0,0,0,0)},function(E,e){E.setFullYear(E.getFullYear()+e)},function(E,e){return e.getFullYear()-E.getFullYear()},function(E){return E.getFullYear()});
K3.every=function(E){return isFinite(E=Math.floor(E))&&E>0?QS(function(e){e.setFullYear(Math.floor(e.getFullYear()/E)*E);e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*E)}):null};
QS(function(E){E.setUTCSeconds(0,0)},function(E,e){E.setTime(+E+e*6E4)},function(E,e){return(e-E)/6E4},function(E){return E.getUTCMinutes()});
QS(function(E){E.setUTCMinutes(0,0,0)},function(E,e){E.setTime(+E+e*36E5)},function(E,e){return(e-E)/36E5},function(E){return E.getUTCHours()});
var wTp=QS(function(E){E.setUTCHours(0,0,0,0)},function(E,e){E.setUTCDate(E.getUTCDate()+e)},function(E,e){return(e-E)/864E5},function(E){return E.getUTCDate()-1}),WmO=kn(0),C7x=kn(1);
kn(2);kn(3);var Gbm=kn(4);kn(5);kn(6);QS(function(E){E.setUTCDate(1);E.setUTCHours(0,0,0,0)},function(E,e){E.setUTCMonth(E.getUTCMonth()+e)},function(E,e){return e.getUTCMonth()-E.getUTCMonth()+(e.getUTCFullYear()-E.getUTCFullYear())*12},function(E){return E.getUTCMonth()});
var Zj=QS(function(E){E.setUTCMonth(0,1);E.setUTCHours(0,0,0,0)},function(E,e){E.setUTCFullYear(E.getUTCFullYear()+e)},function(E,e){return e.getUTCFullYear()-E.getUTCFullYear()},function(E){return E.getUTCFullYear()});
Zj.every=function(E){return isFinite(E=Math.floor(E))&&E>0?QS(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/E)*E);e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*E)}):null};
var $Ki={"-":"",_:" ",0:"0"},EL=/^\s*\d+/,q7d=/^%/,FzM=/[\\^$*+?|[\]().{}]/g,XJm;(function(E){XJm=PkG(E);cFm=XJm.utcFormat;a1z=XJm.utcParse;return XJm})({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||cFm("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||a1z("%Y-%m-%dT%H:%M:%S.%LZ");nl("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
nl("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");nl("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");nl("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");nl("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");nl("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");nl("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
nl("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");nl("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");nl("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");nl("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");nl("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var KmB=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(nl);i_(KmB);var Zb6=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(nl);i_(Zb6);var o1f=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(nl);i_(o1f);var SPQ=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(nl);
i_(SPQ);var uq2=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(nl);i_(uq2);var dCG=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(nl);i_(dCG);var spm=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(nl);i_(spm);var v1O=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(nl);i_(v1O);var mCL=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(nl);i_(mCL);var VtL=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(nl);i_(VtL);var ttv=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(nl);i_(ttv);var pLf=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(nl);i_(pLf);var jp9=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(nl);i_(jp9);var Qpm=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(nl);i_(Qpm);var CmL=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(nl);i_(CmL);var AVd=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(nl);i_(AVd);var zsB=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(nl);i_(zsB);var Guy=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(nl);i_(Guy);var E1f=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(nl);i_(E1f);var g1B=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(nl);i_(g1B);var DC6=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(nl);i_(DC6);var MtB=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(nl);i_(MtB);var $C9=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(nl);i_($C9);var wLm=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(nl);i_(wLm);var hsv=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(nl);i_(hsv);var HbO=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(nl);i_(HbO);var esf=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(nl);i_(esf);$KW(vm(300,.5,0),vm(-240,.5,1));$KW(vm(-100,.75,.35),vm(80,1.5,.8));$KW(vm(260,.75,.35),vm(80,1.5,.8));vm();t9();e_U(nl("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
e_U(nl("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
e_U(nl("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
e_U(nl("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
NKp.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(E,e){E=+E;e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(E,e):this._context.moveTo(E,e);break;case 1:this._point=2;default:this._context.lineTo(E,e)}}};
(function(E){function e(r){return new lbP(E(r))}
e._curve=E;return e})(function(E){return new NKp(E)});
lbP.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(E,e){this._curve.point(e*Math.sin(E),e*-Math.cos(E))}};
guo.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:Eum(this,this._t0,rub(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(E,e){var r=NaN;E=+E;e=+e;if(E!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(E,e):this._context.moveTo(E,e);break;case 1:this._point=2;break;case 2:this._point=3;Eum(this,rub(this,r=TKc(this,E,e)),r);break;default:Eum(this,this._t0,r=TKc(this,E,e))}this._x0=this._x1;this._x1=E;this._y0=this._y1;this._y1=e;this._t0=r}}};
(function(E){this._context=new iTp(E)}.prototype=Object.create(guo.prototype)).point=function(E,e){guo.prototype.point.call(this,e,E)};
iTp.prototype={moveTo:function(E,e){this._context.moveTo(e,E)},
closePath:function(){this._context.closePath()},
lineTo:function(E,e){this._context.lineTo(e,E)},
bezierCurveTo:function(E,e,r,Jm,oo,mR){this._context.bezierCurveTo(e,E,Jm,r,mR,oo)}};
Yh.prototype={constructor:Yh,scale:function(E){return E===1?this:new Yh(this.k*E,this.x,this.y)},
translate:function(E,e){return E===0&e===0?this:new Yh(this.k,this.x+this.k*E,this.y+this.k*e)},
apply:function(E){return[E[0]*this.k+this.x,E[1]*this.k+this.y]},
invert:function(E){return[(E[0]-this.x)/this.k,(E[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Yh(1,0,0);pcS=k4;l6.svg=l6.svg;l6.xhtml=l6.xhtml;l6.xlink=l6.xlink;l6.xml=l6.xml;l6.xmlns=l6.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 btP="hammer_"+(Math.random()*1E6|0),kmZ=function(){var W=document||document;if(!W[btP]){var P=function(){(function(x,I,O,B){function Y(tm,wS,Xt){return setTimeout(t(tm,Xt),wS)}
function K(tm,wS,Xt){return Array.isArray(tm)?(Z(tm,Xt[wS],Xt),!0):!1}
function Z(tm,wS,Xt){var VZ;if(tm)if(tm.forEach)tm.forEach(wS,Xt);else if(tm.length!==B){var Ov=0;for(VZ=tm.length;Ov<VZ;Ov++)wS.call(Xt,tm[Ov],Ov,tm)}else for(Ov in tm)tm.hasOwnProperty(Ov)&&wS.call(Xt,tm[Ov],Ov,tm)}
function d(tm,wS,Xt){for(var VZ=Object.keys(wS),Ov=0,M5=VZ.length;Ov<M5;Ov++)if(!Xt||Xt&&tm[VZ[Ov]]===B)tm[VZ[Ov]]=wS[VZ[Ov]];return tm}
function v(tm,wS){return d(tm,wS,!0)}
function m(tm,wS,Xt){wS=wS.prototype;var VZ=tm.prototype=Object.create(wS);VZ.constructor=tm;VZ._super=wS;Xt&&d(VZ,Xt)}
function t(tm,wS){return function(){return tm.apply(wS,arguments)}}
function C(tm,wS){return typeof tm=="function"?tm.apply(wS?wS[0]||B:B,wS):tm}
function z(tm,wS,Xt){Z(w(wS),function(VZ){tm.addEventListener(VZ,Xt,!1)})}
function D(tm,wS,Xt){Z(w(wS),function(VZ){tm.removeEventListener(VZ,Xt,!1)})}
function w(tm){return tm.trim().split(/\s+/g)}
function a(tm,wS,Xt){if(tm.indexOf&&!Xt)return tm.indexOf(wS);for(var VZ=0,Ov=tm.length;VZ<Ov;VZ++)if(Xt&&tm[VZ][Xt]==wS||!Xt&&tm[VZ]===wS)return VZ;return-1}
function k(tm,wS,Xt){for(var VZ=[],Ov=[],M5=0,ZB=tm.length;M5<ZB;M5++){var tw=wS?tm[M5][wS]:tm[M5];a(Ov,tw)<0&&VZ.push(tm[M5]);Ov[M5]=tw}Xt&&(VZ=wS?VZ.sort(function(vm,oG){return vm[wS]>oG[wS]}):VZ.sort());
return VZ}
function T(tm,wS){for(var Xt,VZ=wS[0].toUpperCase()+wS.slice(1),Ov=0,M5=rS.length;Ov<M5;Ov++)if(Xt=(Xt=rS[Ov])?Xt+VZ:wS,Xt in tm)return Xt;return B}
function N(tm,wS){var Xt=this;this.manager=tm;this.callback=wS;this.element=tm.element;this.target=tm.options.inputTarget;this.domHandler=function(VZ){C(tm.options.enable,[tm])&&Xt.handler(VZ)};
this.evEl&&z(this.element,this.evEl,this.domHandler);this.evTarget&&z(this.target,this.evTarget,this.domHandler);this.evWin&&z(x,this.evWin,this.domHandler)}
function Io(tm){var wS;to?wS=ao:QE?wS=e8:k4?wS=iC:wS=$W;return new wS(tm,F)}
function F(tm,wS,Xt){var VZ=Xt.pointers.length,Ov=Xt.changedPointers.length,M5=wS&1&&VZ-Ov===0;Xt.isFirst=!!M5;Xt.isFinal=!!(wS&12&&VZ-Ov===0);M5&&(tm.session={});Xt.eventType=wS;wS=tm.session;VZ=Xt.pointers;Ov=VZ.length;wS.firstInput||(wS.firstInput=nm(Xt));Ov>1&&!wS.firstMultiple?wS.firstMultiple=nm(Xt):Ov===1&&(wS.firstMultiple=!1);M5=wS.firstInput;var ZB=(Ov=wS.firstMultiple)?Ov.center:M5.center,tw=Xt.center=pm(VZ);Xt.timeStamp=Vf();Xt.deltaTime=Xt.timeStamp-M5.timeStamp;Xt.angle=kW(ZB,tw);Xt.distance=
Am(ZB,tw);M5=Xt.center;ZB=wS.offsetDelta||{};tw=wS.prevDelta||{};var vm=wS.prevInput||{};if(Xt.eventType===1||vm.eventType===4)tw=wS.prevDelta={x:vm.deltaX||0,y:vm.deltaY||0},ZB=wS.offsetDelta={x:M5.x,y:M5.y};Xt.deltaX=tw.x+(M5.x-ZB.x);Xt.deltaY=tw.y+(M5.y-ZB.y);Xt.offsetDirection=zR(Xt.deltaX,Xt.deltaY);Ov?(M5=Ov.pointers,M5=Am(VZ[0],VZ[1],t9)/Am(M5[0],M5[1],t9)):M5=1;Xt.scale=M5;Ov?(Ov=Ov.pointers,VZ=kW(VZ[1],VZ[0],t9)-kW(Ov[1],Ov[0],t9)):VZ=0;Xt.rotation=VZ;ZB=wS.lastInterval||Xt;VZ=Xt.timeStamp-
ZB.timeStamp;Xt.eventType!=8&&(VZ>25||ZB.velocity===B)?(M5=ZB.deltaX-Xt.deltaX,ZB=ZB.deltaY-Xt.deltaY,tw=M5/VZ||0,vm=ZB/VZ||0,VZ=tw,Ov=vm,tw=CM(tw)>CM(vm)?tw:vm,M5=zR(M5,ZB),wS.lastInterval=Xt):(tw=ZB.velocity,VZ=ZB.velocityX,Ov=ZB.velocityY,M5=ZB.direction);Xt.velocity=tw;Xt.velocityX=VZ;Xt.velocityY=Ov;Xt.direction=M5;wS=tm.element;a:{for(VZ=Xt.srcEvent.target;VZ;){if(VZ==wS){VZ=!0;break a}VZ=VZ.parentNode}VZ=!1}VZ&&(wS=Xt.srcEvent.target);Xt.target=wS;tm.emit("hammer.input",Xt);tm.recognize(Xt);
tm.session.prevInput=Xt}
function nm(tm){for(var wS=[],Xt=0;Xt<tm.pointers.length;Xt++)wS[Xt]={clientX:yf(tm.pointers[Xt].clientX),clientY:yf(tm.pointers[Xt].clientY)};return{timeStamp:Vf(),pointers:wS,center:pm(wS),deltaX:tm.deltaX,deltaY:tm.deltaY}}
function pm(tm){var wS=tm.length;if(wS===1)return{x:yf(tm[0].clientX),y:yf(tm[0].clientY)};for(var Xt=0,VZ=0,Ov=0;Ov<wS;Ov++)Xt+=tm[Ov].clientX,VZ+=tm[Ov].clientY;return{x:yf(Xt/wS),y:yf(VZ/wS)}}
function zR(tm,wS){return tm===wS?1:CM(tm)>=CM(wS)?tm>0?2:4:wS>0?8:16}
function Am(tm,wS,Xt){Xt||(Xt=Xl);var VZ=wS[Xt[0]]-tm[Xt[0]];tm=wS[Xt[1]]-tm[Xt[1]];return Math.sqrt(VZ*VZ+tm*tm)}
function kW(tm,wS,Xt){Xt||(Xt=Xl);return Math.atan2(wS[Xt[1]]-tm[Xt[1]],wS[Xt[0]]-tm[Xt[0]])*180/Math.PI}
function $W(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;N.apply(this,arguments)}
function ao(){this.evEl=pl;this.evWin=uE;N.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function e8(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};N.apply(this,arguments)}
function iC(){N.apply(this,arguments);var tm=t(this.handler,this);this.touch=new e8(this.manager,tm);this.mouse=new $W(this.manager,tm)}
function hw(tm,wS){this.manager=tm;this.set(wS)}
function dk(tm){if(tm.indexOf("none")>-1)return"none";var wS=tm.indexOf("pan-x")>-1,Xt=tm.indexOf("pan-y")>-1;return wS&&Xt?"pan-x pan-y":wS||Xt?wS?"pan-x":"pan-y":tm.indexOf("manipulation")>-1?"manipulation":"auto"}
function Oc(tm){this.id=Kx++;this.manager=null;this.options=v(tm||{},this.defaults);tm=this.options.enable;this.options.enable=tm===B?!0:tm;this.state=1;this.simultaneous={};this.requireFail=[]}
function Bm(tm){return tm==16?"down":tm==8?"up":tm==2?"left":tm==4?"right":""}
function GA(tm,wS){return(wS=wS.manager)?wS.get(tm):tm}
function KM(){Oc.apply(this,arguments)}
function PZ(){KM.apply(this,arguments);this.pY=this.pX=null}
function j$(){KM.apply(this,arguments)}
function YW(){Oc.apply(this,arguments);this._input=this._timer=null}
function QZ(){KM.apply(this,arguments)}
function ez(){KM.apply(this,arguments)}
function b3(){Oc.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function D3(tm,wS){wS=wS||{};var Xt=wS.recognizers;wS.recognizers=Xt===B?D3.defaults.preset:Xt;return new lp(tm,wS)}
function lp(tm,wS){wS=wS||{};this.options=v(wS,D3.defaults);this.options.inputTarget=this.options.inputTarget||tm;this.handlers={};this.session={};this.recognizers=[];this.element=tm;this.input=Io(this);this.touchAction=new hw(this,this.options.touchAction);TE(this,!0);Z(wS.recognizers,function(Xt){var VZ=this.add(new Xt[0](Xt[1]));Xt[2]&&VZ.recognizeWith(Xt[2]);Xt[3]&&VZ.requireFailure(Xt[2])},this)}
function TE(tm,wS){var Xt=tm.element;Z(tm.options.cssProps,function(VZ,Ov){Xt.style[T(Xt.style,Ov)]=wS?VZ:""})}
function sc(tm,wS){var Xt=I.createEvent("Event");Xt.initEvent(tm,!0,!0);Xt.gesture=wS;wS.target.dispatchEvent(Xt)}
var rS=" webkit moz MS ms o".split(" "),jz=I.createElement("div"),yf=Math.round,CM=Math.abs,Vf=Date.now,Kx=1,SV=/mobile|tablet|ip(ad|hone|od)|android/i,k4="ontouchstart"in x,to=T(x,"PointerEvent")!==B,QE=k4&&SV.test(navigator.userAgent),Xl=["x","y"],t9=["clientX","clientY"];N.prototype={handler:function(){},
destroy:function(){this.evEl&&D(this.element,this.evEl,this.domHandler);this.evTarget&&D(this.target,this.evTarget,this.domHandler);this.evWin&&D(x,this.evWin,this.domHandler)}};
var RG={mousedown:1,mousemove:2,mouseup:4};m($W,N,{handler:function(tm){var wS=RG[tm.type];wS&1&&tm.button===0&&(this.pressed=!0);wS&2&&tm.which!==1&&(wS=4);this.pressed&&this.allow&&(wS&4&&(this.pressed=!1),this.callback(this.manager,wS,{pointers:[tm],changedPointers:[tm],pointerType:"mouse",srcEvent:tm}))}});
var F6={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},EW={2:"touch",3:"pen",4:"mouse",5:"kinect"},pl="pointerdown",uE="pointermove pointerup pointercancel";x.MSPointerEvent&&(pl="MSPointerDown",uE="MSPointerMove MSPointerUp MSPointerCancel");m(ao,N,{handler:function(tm){var wS=this.store,Xt=!1,VZ=tm.type.toLowerCase().replace("ms","");VZ=F6[VZ];var Ov=EW[tm.pointerType]||tm.pointerType;VZ&1&&(tm.button===0||Ov=="touch")?wS.push(tm):VZ&12&&(Xt=!0);var M5=a(wS,tm.pointerId,"pointerId");
M5<0||(wS[M5]=tm,this.callback(this.manager,VZ,{pointers:wS,changedPointers:[tm],pointerType:Ov,srcEvent:tm}),Xt&&wS.splice(M5,1))}});
var Bi={touchstart:1,touchmove:2,touchend:4,touchcancel:8};m(e8,N,{handler:function(tm){var wS=Bi[tm.type];var Xt=Array.prototype.slice.call(tm.touches,0);var VZ=this.targetIds;if(wS&3&&Xt.length===1)VZ[Xt[0].identifier]=!0,VZ=[Xt,Xt];else{var Ov,M5=Array.prototype.slice.call(tm.targetTouches,0),ZB=Array.prototype.slice.call(tm.changedTouches,0),tw=[];if(wS===1)for(Xt=0,Ov=M5.length;Xt<Ov;Xt++)VZ[M5[Xt].identifier]=!0;Xt=0;for(Ov=ZB.length;Xt<Ov;Xt++)VZ[ZB[Xt].identifier]&&tw.push(ZB[Xt]),wS&12&&
delete VZ[ZB[Xt].identifier];VZ=tw.length?[k(M5.concat(tw),"identifier",!0),tw]:void 0}VZ&&this.callback(this.manager,wS,{pointers:VZ[0],changedPointers:VZ[1],pointerType:"touch",srcEvent:tm})}});
m(iC,N,{handler:function(tm,wS,Xt){var VZ=Xt.pointerType=="mouse";if(Xt.pointerType=="touch")this.mouse.allow=!1;else if(VZ&&!this.mouse.allow)return;wS&12&&(this.mouse.allow=!0);this.callback(tm,wS,Xt)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var i5=T(jz.style,"touchAction"),uO=i5!==B;hw.prototype={set:function(tm){tm=="compute"&&(tm=this.compute());uO&&(this.manager.element.style[i5]=tm);this.actions=tm.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var tm=[];Z(this.manager.recognizers,function(wS){C(wS.options.enable,[wS])&&(tm=tm.concat(wS.getTouchAction()))});
return dk(tm.join(" "))},
preventDefaults:function(tm){if(!uO){var wS=tm.srcEvent;tm=tm.offsetDirection;if(this.manager.session.prevented)wS.preventDefault();else{var Xt=this.actions,VZ=Xt.indexOf("none")>-1,Ov=Xt.indexOf("pan-y")>-1;Xt=Xt.indexOf("pan-x")>-1;if(VZ||Ov&&Xt||Ov&&tm&6||Xt&&tm&24)return this.preventSrc(wS)}}},
preventSrc:function(tm){this.manager.session.prevented=!0;tm.preventDefault()}};
Oc.prototype={defaults:{},set:function(tm){d(this.options,tm);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(tm){if(K(tm,"recognizeWith",this))return this;var wS=this.simultaneous;tm=GA(tm,this);wS[tm.id]||(wS[tm.id]=tm,tm.recognizeWith(this));return this},
dropRecognizeWith:function(tm){if(K(tm,"dropRecognizeWith",this))return this;tm=GA(tm,this);delete this.simultaneous[tm.id];return this},
requireFailure:function(tm){if(K(tm,"requireFailure",this))return this;var wS=this.requireFail;tm=GA(tm,this);a(wS,tm)===-1&&(wS.push(tm),tm.requireFailure(this));return this},
dropRequireFailure:function(tm){if(K(tm,"dropRequireFailure",this))return this;tm=GA(tm,this);tm=a(this.requireFail,tm);tm>-1&&this.requireFail.splice(tm,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(tm){return!!this.simultaneous[tm.id]},
emit:function(tm){function wS(Ov){Xt.manager.emit(Xt.options.event+(Ov?VZ&16?"cancel":VZ&8?"end":VZ&4?"move":VZ&2?"start":"":""),tm)}
var Xt=this,VZ=this.state;VZ<8&&wS(!0);wS();VZ>=8&&wS(!0)},
tryEmit:function(tm){if(this.canEmit())return this.emit(tm);this.state=32},
canEmit:function(){for(var tm=0;tm<this.requireFail.length;tm++)if(!(this.requireFail[tm].state&33))return!1;return!0},
recognize:function(tm){tm=d({},tm);C(this.options.enable,[this,tm])?(this.state&56&&(this.state=1),this.state=this.process(tm),this.state&30&&this.tryEmit(tm)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
m(KM,Oc,{defaults:{pointers:1},attrTest:function(tm){var wS=this.options.pointers;return wS===0||tm.pointers.length===wS},
process:function(tm){var wS=this.state,Xt=tm.eventType,VZ=wS&6;tm=this.attrTest(tm);return VZ&&(Xt&8||!tm)?wS|16:VZ||tm?Xt&4?wS|8:wS&2?wS|4:2:32}});
m(PZ,KM,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var tm=this.options.direction;if(tm===30)return["none"];var wS=[];tm&6&&wS.push("pan-y");tm&24&&wS.push("pan-x");return wS},
directionTest:function(tm){var wS=this.options,Xt=!0,VZ=tm.distance,Ov=tm.direction,M5=tm.deltaX,ZB=tm.deltaY;Ov&wS.direction||(wS.direction&6?(Ov=M5===0?1:M5<0?2:4,Xt=M5!=this.pX,VZ=Math.abs(tm.deltaX)):(Ov=ZB===0?1:ZB<0?8:16,Xt=ZB!=this.pY,VZ=Math.abs(tm.deltaY)));tm.direction=Ov;return Xt&&VZ>wS.threshold&&Ov&wS.direction},
attrTest:function(tm){return KM.prototype.attrTest.call(this,tm)&&(this.state&2||!(this.state&2)&&this.directionTest(tm))},
emit:function(tm){this.pX=tm.deltaX;this.pY=tm.deltaY;var wS=Bm(tm.direction);wS&&this.manager.emit(this.options.event+wS,tm);this._super.emit.call(this,tm)}});
m(j$,KM,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(tm){return this._super.attrTest.call(this,tm)&&(Math.abs(tm.scale-1)>this.options.threshold||this.state&2)},
emit:function(tm){this._super.emit.call(this,tm);tm.scale!==1&&this.manager.emit(this.options.event+(tm.scale<1?"in":"out"),tm)}});
m(YW,Oc,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(tm){var wS=this.options,Xt=tm.pointers.length===wS.pointers,VZ=tm.distance<wS.threshold,Ov=tm.deltaTime>wS.time;this._input=tm;if(!VZ||!Xt||tm.eventType&12&&!Ov)this.reset();else if(tm.eventType&1)this.reset(),this._timer=Y(function(){this.state=8;this.tryEmit()},wS.time,this);
else if(tm.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(tm){this.state===8&&(tm&&tm.eventType&4?this.manager.emit(this.options.event+"up",tm):(this._input.timeStamp=Vf(),this.manager.emit(this.options.event,this._input)))}});
m(QZ,KM,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(tm){return this._super.attrTest.call(this,tm)&&(Math.abs(tm.rotation)>this.options.threshold||this.state&2)}});
m(ez,KM,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return PZ.prototype.getTouchAction.call(this)},
attrTest:function(tm){var wS=this.options.direction;if(wS&30)var Xt=tm.velocity;else wS&6?Xt=tm.velocityX:wS&24&&(Xt=tm.velocityY);return this._super.attrTest.call(this,tm)&&wS&tm.direction&&CM(Xt)>this.options.velocity&&tm.eventType&4},
emit:function(tm){var wS=Bm(tm.direction);wS&&this.manager.emit(this.options.event+wS,tm);this.manager.emit(this.options.event,tm)}});
m(b3,Oc,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(tm){var wS=this.options,Xt=tm.pointers.length===wS.pointers,VZ=tm.distance<wS.threshold,Ov=tm.deltaTime<wS.time;this.reset();if(tm.eventType&1&&this.count===0)return this.failTimeout();if(VZ&&Ov&&Xt){if(tm.eventType!=4)return this.failTimeout();Xt=this.pTime?tm.timeStamp-this.pTime<wS.interval:!0;VZ=!this.pCenter||Am(this.pCenter,tm.center)<wS.posThreshold;this.pTime=tm.timeStamp;this.pCenter=tm.center;VZ&&Xt?this.count+=1:this.count=1;this._input=tm;if(this.count%wS.taps===0)return this.hasRequireFailures()?
(this._timer=Y(function(){this.state=8;this.tryEmit()},wS.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Y(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))}});
D3.VERSION="2.0.2";D3.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[QZ,{enable:!1}],[j$,{enable:!1},["rotate"]],[ez,{direction:6}],[PZ,{direction:6},["swipe"]],[b3],[b3,{event:"doubletap",taps:2},["tap"]],[YW]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};lp.prototype={set:function(tm){d(this.options,tm);return this},
stop:function(tm){this.session.stopped=tm?2:1},
recognize:function(tm){var wS=this.session;if(!wS.stopped){this.touchAction.preventDefaults(tm);var Xt=this.recognizers,VZ=wS.curRecognizer;if(!VZ||VZ&&VZ.state&8)VZ=wS.curRecognizer=null;for(var Ov=0,M5=Xt.length;Ov<M5;Ov++){var ZB=Xt[Ov];wS.stopped===2||VZ&&ZB!=VZ&&!ZB.canRecognizeWith(VZ)?ZB.reset():ZB.recognize(tm);!VZ&&ZB.state&14&&(VZ=wS.curRecognizer=ZB)}}},
get:function(tm){if(tm instanceof Oc)return tm;for(var wS=this.recognizers,Xt=0;Xt<wS.length;Xt++)if(wS[Xt].options.event==tm)return wS[Xt];return null},
add:function(tm){if(K(tm,"add",this))return this;var wS=this.get(tm.options.event);wS&&this.remove(wS);this.recognizers.push(tm);tm.manager=this;this.touchAction.update();return tm},
remove:function(tm){if(K(tm,"remove",this))return this;var wS=this.recognizers;tm=this.get(tm);wS.splice(a(wS,tm),1);this.touchAction.update();return this},
on:function(tm,wS){var Xt=this.handlers;Z(w(tm),function(VZ){Xt[VZ]=Xt[VZ]||[];Xt[VZ].push(wS)});
return this},
off:function(tm,wS){var Xt=this.handlers;Z(w(tm),function(VZ){wS?Xt[VZ].splice(a(Xt[VZ],wS),1):delete Xt[VZ]});
return this},
emit:function(tm,wS){this.options.domEvents&&sc(tm,wS);var Xt=this.handlers[tm]&&this.handlers[tm].slice();if(Xt&&Xt.length){wS.type=tm;wS.preventDefault=function(){wS.srcEvent.preventDefault()};
tm=0;for(var VZ=Xt.length;tm<VZ;tm++)Xt[tm](wS)}},
destroy:function(){this.element&&TE(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
d(D3,{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:lp,Input:N,TouchAction:hw,Recognizer:Oc,AttrRecognizer:KM,Tap:b3,Pan:PZ,Swipe:ez,Pinch:j$,Rotate:QZ,Press:YW,on:z,off:D,each:Z,merge:v,extend:d,inherit:m,bindFn:t,prefixed:T});
x[O]=D3})(window,document,"Hammer");
return window.Hammer}.call({});
P.DOCUMENT=W;W[btP]=P}return W[btP]};/*

 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 Ugi=function(W,P){if(W.length!==P.length)return!1;for(var x=0;x<W.length;++x)if(W[x]!==P[x])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var XWZ=_.n(["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"]),f1P=XWZ.next();!f1P.done;f1P=XWZ.next()){var Ncd=f1P.value,l1i=document.createElement("link");l1i.rel="stylesheet";l1i.href=Ncd;document.head.appendChild(l1i)};var J8G,n5G,y8U,xYR,BgS,I2d,WSo,P98;J8G={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};n5G={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:"*"};y8U={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};xYR=/[a-z0-9*]/;BgS=/U\+/;I2d=/^arrow/;WSo=/^space(bar)?/;P98=/^escape$/;_.tu={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(W,P){this._imperativeKeyBindings[W]=P;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(W,P){P=ZWR(P);for(var x=0;x<P.length;++x)if(Y18(P[x],W))return!0;return!1},
_collectKeyBindings:function(){var W=this.behaviors.map(function(P){return P.keyBindings});
W.indexOf(this.keyBindings)===-1&&W.push(this.keyBindings);return W},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(x){for(var I in x)this._addKeyBinding(I,x[I])},this);
for(var W in this._imperativeKeyBindings)this._addKeyBinding(W,this._imperativeKeyBindings[W]);for(var P in this._keyBindings)this._keyBindings[P].sort(function(x,I){x=x[0].hasModifiers;return x===I[0].hasModifiers?0:x?-1:1})},
_addKeyBinding:function(W,P){ZWR(W).forEach(function(x){this._keyBindings[x.event]=this._keyBindings[x.event]||[];this._keyBindings[x.event].push([x,P])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(W){var P=this._onKeyBindingEvent.bind(this,this._keyBindings[W]);this._boundKeyHandlers.push([this.keyEventTarget,W,P]);this.keyEventTarget.addEventListener(W,P)},this)},
_unlistenKeyEventListeners:function(){for(var W,P,x;this._boundKeyHandlers.length;)W=this._boundKeyHandlers.pop(),P=W[0],x=W[1],W=W[2],P.removeEventListener(x,W)},
_onKeyBindingEvent:function(W,P){this.stopKeyboardEventPropagation&&P.stopPropagation();if(!P.defaultPrevented)for(var x=0;x<W.length;x++){var I=W[x][0],O=W[x][1];if(Y18(I,P)&&(this._triggerKeyHandler(I,O,P),P.defaultPrevented))break}},
_triggerKeyHandler:function(W,P,x){var I=Object.create(W);I.keyboardEvent=x;W=new CustomEvent(W.event,{detail:I,cancelable:!0});this[P].call(this,W);W.defaultPrevented&&x.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.vM({is:"iron-a11y-keys",_template:null,behaviors:[_.tu],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(W){this.keyEventTarget=W},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(W){this.fire("keys-pressed",W.detail,{})}});_.pT={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(W){this._setFocused(W.type==="focus")},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false");this.style.pointerEvents=W?"none":"";W?(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 jJ={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(W){this._detectKeyboardFocus(W);W||this._setPressed(!1)},
_detectKeyboardFocus:function(W){this._setReceivedFocusFromKeyboard(!this.pointerDown&&W)},
_userActivate:function(W){this.active!==W&&(this.active=W,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(W){W=W.detail.keyboardEvent;var P=_.VS(W).localTarget;this.isLightDescendant(P)||(W.preventDefault(),W.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(W){W=_.VS(W.detail.keyboardEvent).localTarget;this.isLightDescendant(W)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(W,P){P&&P!=W&&this.hasAttribute(P)&&this.removeAttribute(P)},
_activeChanged:function(W){this.toggles?this.setAttribute(this.ariaActiveAttribute,W?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},Tcw=[_.tu,
jJ];_.QM={IronButtonState:Tcw,IronButtonStateImpl:jJ};_.CT={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Au=function(W){_.Au[" "](W);this.type=W&&W.type||"default";this.key=W&&W.key;W&&"value"in W&&(this.value=W.value)};
_.Au.prototype.byKey=function(W){this.key=W;return this.value};
_.N1.Object.defineProperties(_.Au.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W=this.type,P=this.key;if(W&&P)return zb[W]&&zb[W][P]},
set:function(W){var P=this.type,x=this.key;P&&x&&(P=zb[P]=zb[P]||{},W==null?delete P[x]:P[x]=W)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var W=zb[this.type];return W?Object.keys(W).map(function(P){return zb[this.type][P]},this):[]}}});
_.Au[" "]=function(){};
var zb={};_.vM({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(W,P,x){W=new _.Au({type:W,key:P});x!==void 0&&x!==W.value?W.value=x:this.value!==W.value&&(this.value=W.value);return W},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(W){W&&(this.value=this)},
byKey:function(W){return(new _.Au({type:this.type,key:W})).value}});var rFM;rFM=null;_.Gb={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){rFM=new _.Au({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return rFM&&rFM.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(W){this.invalid=W===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(W);return!this.invalid},
_getValidity:function(W){return this.hasValidator()?this._validator.validate(W):!0}};var itp={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"}},RVP=[_.CT,
_.Gb,itp];_.vM({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 _.Au({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(W){return this.name+":"+W},this)},
applyIcon:function(W,P){this.removeIcon(W);if(P=this._cloneIcon(P,this.rtlMirroring&&this._targetIsRTL(W))){var x=_.VS(W.root||W);x.insertBefore(P,x.childNodes[0]);return W._svgIcon=P}return null},
removeIcon:function(W){W._svgIcon&&(_.VS(W.root||W).removeChild(W._svgIcon),W._svgIcon=null)},
_targetIsRTL:function(W){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(W&&W.nodeType!==Node.ELEMENT_NODE&&(W=W.host),this.__targetIsRTL=W&&window.getComputedStyle(W).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 W=Object.create(null);_.VS(this).querySelectorAll("[id]").forEach(function(P){W[P.id]=P});
return W},
_cloneIcon:function(W,P){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[W],this.size,P)},
_prepareSvgClone:function(W,P,x){if(W){W=W.cloneNode(!0);var I=document.createElementNS("http://www.w3.org/2000/svg","svg");P=W.getAttribute("viewBox")||"0 0 "+P+" "+P;var O="pointer-events: none; display: block; width: 100%; height: 100%;";x&&W.hasAttribute("mirror-in-rtl")&&(O+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");I.setAttribute("viewBox",P);I.setAttribute("preserveAspectRatio","xMidYMid meet");I.setAttribute("focusable","false");I.style&&(I.style.cssText=
O);I.appendChild(W).removeAttribute("id");return I}return null}});var FTM=function(W){this.multi=!1;this.selection=[];this.selectCallback=W};
_.J=FTM.prototype;_.J.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.J.clear=function(W){this.selection.slice().forEach(function(P){(!W||W.indexOf(P)<0)&&this.setItemSelected(P,!1)},this)};
_.J.isSelected=function(W){return this.selection.indexOf(W)>=0};
_.J.setItemSelected=function(W,P){if(W!=null&&P!==this.isSelected(W)){if(P)this.selection.push(W);else{var x=this.selection.indexOf(W);x>=0&&this.selection.splice(x,1)}this.selectCallback&&this.selectCallback(W,P)}};
_.J.select=function(W){this.multi?this.toggle(W):this.get()!==W&&(this.setItemSelected(this.get(),!1),this.setItemSelected(W,!0))};
_.J.toggle=function(W){this.setItemSelected(W,!this.isSelected(W))};_.$l={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 FTM(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.VS(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(W){return this.items?this.items.indexOf(W):-1},
select:function(W){this.selected=W},
selectPrevious:function(){var W=this.items.length,P=W-1;this.selected!==void 0&&(P=(Number(this._valueToIndex(this.selected))-1+W)%W);this.selected=this._indexToValue(P)},
selectNext:function(){var W=0;this.selected!==void 0&&(W=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(W)},
selectIndex:function(W){this.select(this._indexToValue(W))},
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(W){this.listen(this,W,"_activateHandler")},
_removeListener:function(W){this.unlisten(this,W,"_activateHandler")},
_activateEventChanged:function(W,P){this._removeListener(P);this._addListener(W)},
_updateItems:function(){var W=_.VS(this).queryDistributedElements(this.selectable||"*");W=Array.prototype.filter.call(W,this._bindFilterItem);this._setItems(W)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var W=this._valueToItem(this.selected);W?this._selection.select(W):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(W){return!this._excludedLocalNames[W.localName]},
_valueToItem:function(W){return W==null?null:this.items[this._valueToIndex(W)]},
_valueToIndex:function(W){if(this.attrForSelected)for(var P=0,x;x=this.items[P];P++){if(this._valueForItem(x)==W)return P}else return Number(W)},
_indexToValue:function(W){if(this.attrForSelected){if(W=this.items[W])return this._valueForItem(W)}else return W},
_valueForItem:function(W){if(!W)return null;if(!this.attrForSelected)return W=this.indexOf(W),W===-1?null:W;var P=W[Ih(this.attrForSelected)];return P!=void 0?P:W.getAttribute(this.attrForSelected)},
_applySelection:function(W,P){this.selectedClass&&this.toggleClass(this.selectedClass,P,W);this.selectedAttribute&&this.toggleAttribute.call(W,this.selectedAttribute,P);this._selectionChange();this.fire("iron-"+(P?"select":"deselect"),{item:W})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(W){return _.VS(W).observeNodes(function(P){this._updateItems();this._updateSelected();this.fire("iron-items-changed",P,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(W){W=W.target;for(var P=this.items;W&&W!=this;){var x=P.indexOf(W);if(x>=0){P=this._indexToValue(x);this._itemActivate(P,W);break}W=W.parentNode}},
_itemActivate:function(W,P){this.fire("iron-activate",{selected:W,item:P},{cancelable:!0}).defaultPrevented||this.select(W)}};var q2W={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(W){this.multi?this._toggleSelected(W):this.selected=W},
multiChanged:function(W){this._selection.multi=W;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(W){return this._indexToValue(this.indexOf(W))},this).filter(function(W){return W!=null},this)):_.$l._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(W){W=W||[];W=(this._valuesToItems(W)||[]).filter(function(x){return x!==null&&x!==void 0});
this._selection.clear(W);for(var P=0;P<W.length;P++)this._selection.setItemSelected(W[P],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var W=this._selection.get();this.multi?(this._setSelectedItems(W),this._setSelectedItem(W.length?W[0]:null)):W!==null&&W!==void 0?(this._setSelectedItems([W]),this._setSelectedItem(W)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(W){var P=this.selectedValues.indexOf(W);P<0?this.push("selectedValues",W):this.splice("selectedValues",P,1)},
_valuesToItems:function(W){return W==null?null:W.map(function(P){return this._valueToItem(P)},this)}},LTA=[_.$l,
q2W];var WQ3;
_.gK={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(W){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var P=this._valueToItem(W);P&&P.hasAttribute("disabled")||(this._setFocusedItem(P),q2W.select.apply(this,arguments))},
_resetTabindices:function(){var W=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(P){P.setAttribute("tabindex",P===W?"0":"-1");P.setAttribute("aria-selected",this._selection.isSelected(P))},this)},
_updateMultiselectable:function(W){W?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(W){if(this._MODIFIER_KEYS.indexOf(W.key)===-1){this.cancelDebouncer("_clearSearchText");var P=this._searchText||"";P+=(W.key&&W.key.length==1?W.key:String.fromCharCode(W.keyCode)).toLocaleLowerCase();W=P.length;for(var x=0,I;I=this.items[x];x++)if(!I.hasAttribute("disabled")){var O=this.attrForItemTitle||"textContent";O=(I[O]||I.getAttribute(O)||"").trim();if(!(O.length<W)&&O.slice(0,W).toLocaleLowerCase()==P){this._setFocusedItem(I);break}}this._searchText=P;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var W=this.items.length,P=Number(this.indexOf(this.focusedItem)),x=1;x<W+1;x++){var I=this.items[(P-x+W)%W];if(!I.hasAttribute("disabled")){var O=_.VS(I).getOwnerRoot()||document;this._setFocusedItem(I);if(_.VS(O).activeElement==I)break}}},
_focusNext:function(){for(var W=this.items.length,P=Number(this.indexOf(this.focusedItem)),x=1;x<W+1;x++){var I=this.items[(P+x)%W];if(!I.hasAttribute("disabled")){var O=_.VS(I).getOwnerRoot()||document;this._setFocusedItem(I);if(_.VS(O).activeElement==I)break}}},
_applySelection:function(W,P){P?W.setAttribute("aria-selected","true"):W.setAttribute("aria-selected","false");_.$l._applySelection.apply(this,arguments)},
_focusedItemChanged:function(W,P){P&&P.setAttribute("tabindex","-1");!W||W.hasAttribute("disabled")||this.disabled||(W.setAttribute("tabindex","0"),W.focus())},
_onIronItemsChanged:function(W){W.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");_.gK._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);_.gK._shiftTabPressed=!1},1)},
_onFocus:function(W){!_.gK._shiftTabPressed&&(W=_.VS(W).rootTarget,W===this||typeof W.tabIndex==="undefined"||this.isLightDescendant(W))&&(this._defaultFocusAsync=this.async(function(){var P=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);P?this._setFocusedItem(P):this.items[0]&&this._focusNext()}))},
_onUpKey:function(W){this._focusPrevious();W.detail.keyboardEvent.preventDefault()},
_onDownKey:function(W){this._focusNext();W.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var W=this.focusedItem;W&&W.blur()},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down esc")||this._focusWithKeyboardEvent(W);W.stopPropagation()},
_activateHandler:function(W){_.$l._activateHandler.call(this,W);W.stopPropagation()},
_disabledChanged:function(W){W?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};WQ3=[LTA,_.tu,_.gK];_.PhZ={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
_onDownKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(W){return W.ctrlKey||W.shiftKey||W.altKey||W.metaKey},
_onLeftKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),W.detail.keyboardEvent.preventDefault())},
_onRightKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),W.detail.keyboardEvent.preventDefault())},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down left right esc")||this._focusWithKeyboardEvent(W)}};
_.xxZ=[WQ3,_.PhZ];var IhP;IhP=new Set;_.Db={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):(IhP.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},this),this._fireResize())},
assignParentResizable:function(W){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=W)&&W._interestedResizables.indexOf(this)===-1&&(W._interestedResizables.push(this),W._subscribeIronResize(this))},
stopResizeNotificationsFor:function(W){var P=this._interestedResizables.indexOf(W);P>-1&&(this._interestedResizables.splice(P,1),this._unsubscribeIronResize(W))},
_subscribeIronResize:function(W){W.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(W){W.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(W){this._notifyingDescendant?W.stopPropagation():M1||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(W){var P=_.VS(W).rootTarget;P!==this&&(P.assignParentResizable(this),this._notifyDescendant(P),W.stopPropagation())},
_parentResizableChanged:function(W){W&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(W){this.isAttached&&(this._notifyingDescendant=!0,W.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var W=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function x(){document.removeEventListener("readystatechange",x);W()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(P){P!==this&&P._findParent()},this):(IhP.forEach(function(P){P!==this&&P._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?IhP.delete(this):IhP.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
*/
_.OEk={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(W,P){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);P&&(W==="document"?this.scrollTarget=this._doc:typeof W==="string"?this.scrollTarget=(P=this.domHost)&&P.$?P.$[W]:_.VS(this.ownerDocument).querySelector("#"+W):this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W)))},
_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(W){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,W):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
W)},set _scrollLeft(W){this.scrollTarget===this._doc?window.scrollTo(W,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=W)},scroll:function(W,P){if(typeof W==="object"){var x=W.left;P=W.top}else x=W;x=x||0;P=P||0;this.scrollTarget===this._doc?window.scrollTo(x,P):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=x,this.scrollTarget.scrollTop=P)},
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(W,P){P=P===this._doc?window:P;W?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),P.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(P.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(W){this._shouldHaveListener=W;this._toggleScrollListener(W,this.scrollTarget)}};_.vM({is:"iron-selector",_template:null,behaviors:[LTA]});var MK={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(W){if(W.timing)for(var P in W.timing)this.animationTiming[P]=W.timing[P];return this.animationTiming},
setPrefixedProperty:function(W,P,x){for(var I={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[P],O,B=0;O=I[B];B++)W.style[O]=x;W.style[P]=x},
complete:function(){}};_.vM({is:"fade-in-animation",_template:null,behaviors:[MK],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(W))}});_.vM({is:"fade-out-animation",_template:null,behaviors:[MK],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(W))}});var JdA=[{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(W,P){for(var x in P)W[x]=P[x]},
_cloneConfig:function(W){var P={isClone:!0};this._copyProperties(P,W);return P},
_getAnimationConfigRecursive:function(W,P,x){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var I=W?this.animationConfig[W]:this.animationConfig;Array.isArray(I)||(I=[I]);if(I)for(var O,B=0;O=I[B];B++)if(O.animatable)O.animatable._getAnimationConfigRecursive(O.type||W,P,x);else if(O.id){var Y=P[O.id];
Y?(Y.isClone||(P[O.id]=this._cloneConfig(Y),Y=P[O.id]),this._copyProperties(Y,O)):P[O.id]=O}else x.push(O)}},
getAnimationConfig:function(W){var P={},x=[];this._getAnimationConfigRecursive(W,P,x);for(var I in P)x.push(P[I]);return x}},
{_configureAnimations:function(W){var P=[],x=[];if(W.length>0)for(var I,O=0;I=W[O];O++){var B=document.createElement(I.name);if(B.isNeonAnimation){var Y=null;B.configure||(B.configure=function(){return null});
Y=B.configure(I);x.push({result:Y,config:I})}else console.warn(this.is+":",I.name,"not found!")}for(W=0;W<x.length;W++){Y=x[W].result;I=x[W].config;try{typeof Y.cancel!="function"&&(Y=document.timeline.play(Y))}catch(K){Y=null,console.warn("Couldnt play","(",I.name,").",K)}Y&&P.push({neonAnimation:B,config:I,animation:Y})}return P},
_shouldComplete:function(W){for(var P=!0,x=0;x<W.length;x++)if(W[x].animation.playState!="finished"){P=!1;break}return P},
_complete:function(W){for(var P=0;P<W.length;P++)W[P].neonAnimation.complete(W[P].config);for(P=0;P<W.length;P++)W[P].animation.cancel()},
playAnimation:function(W,P){var x=this.getAnimationConfig(W);if(x){this._active=this._active||{};this._active[W]&&(this._complete(this._active[W]),delete this._active[W]);var I=this._configureAnimations(x);if(I.length==0)this.fire("neon-animation-finish",P,{bubbles:!1});else for(this._active[W]=I,x=0;x<I.length;x++)I[x].animation.onfinish=function(){this._shouldComplete(I)&&(this._complete(I),delete this._active[W],this.fire("neon-animation-finish",P,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var W in this._active){var P=this._active[W],x;for(x in P)P[x].animation&&P[x].animation.cancel&&P[x].animation.cancel()}this._active={}}}];var nf=function(W,P){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.arg=P;this.name=this.constructor.name;this.constructor=nf;this.__proto__=nf.prototype};
_.A(nf,Error);var BLm=id(function(W){var P=function(){return W.apply(this,arguments)||this};
_.A(P,W);P.prototype._marshalArgs=function(x,I,O){I=W.prototype._marshalArgs.call(this,x,I,O);if(this._legacyUndefinedCheck&&I.length>1)for(O=0;O<I.length;O++)if(I[O]===void 0||x[O].wildcard&&I[O].base===void 0)throw x=x[O].name,new nf("Argument '"+x+"' is undefined.",x);return I};
P.prototype._addPropertyEffect=function(x,I,O){return W.prototype._addPropertyEffect.call(this,x,I,o5U(O,O&&O.info&&O.info.methodName))};
P._addTemplatePropertyEffect=function(x,I,O){return W._addTemplatePropertyEffect.call(this,x,I,o5U(O))};
return P}),nCc=_.vM.Class;
_.vM.Class=function(W,P){return nCc(W,function(x){return P?P(BLm(x)):BLm(x)})};
var Y4W=id(function(W){var P=BLm(W);W=function(){return P.apply(this,arguments)||this};
_.A(W,P);_.N1.Object.defineProperties(W.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return W}),ydA=w7.mixin;
w7.mixin=ydA?function(W){return Y4W(ydA(W))}:Y4W;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.$u=_.QM.IronButtonState;var IWA=DN;/*

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

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

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 ku,vsZ,mIA;ku=Element.prototype;vsZ=ku.matches||ku.matchesSelector||ku.mozMatchesSelector||ku.msMatchesSelector||ku.oMatchesSelector||ku.webkitMatchesSelector;mIA=function(){};
_.tKd=function(W){var P=VKk,x=[];return P._collectTabbableNodes(W,x)?P._sortByTabIndex(x):x};
_.J=mIA.prototype;_.J._normalizedTabIndex=function(W){return(vsZ.call(W,"input, select, textarea, button, object")?vsZ.call(W,":not([disabled])"):vsZ.call(W,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(W=W.getAttribute("tabindex")||0,Number(W)):-1};
_.J._collectTabbableNodes=function(W,P){if(W.nodeType!==Node.ELEMENT_NODE||!this._isVisible(W))return!1;var x=this._normalizedTabIndex(W),I=x>0;x>=0&&P.push(W);if(W.localName==="content"||W.localName==="slot")x=_.VS(W).getDistributedNodes();else{var O;x=((O=_.VS(W).shadowRoot)!=null?O:_.VS(W.root||W)).children}for(W=0;W<x.length;W++)I=this._collectTabbableNodes(x[W],P)||I;return I};
_.J._isVisible=function(W){var P=W.style;return P.visibility!=="hidden"&&P.display!=="none"?(P=window.getComputedStyle(W),P.visibility!=="hidden"&&P.display!=="none"):!1};
_.J._sortByTabIndex=function(W){var P=W.length;if(P<2)return W;var x=Math.ceil(P/2);P=this._sortByTabIndex(W.slice(0,x));W=this._sortByTabIndex(W.slice(x));return this._mergeSortByTabIndex(P,W)};
_.J._mergeSortByTabIndex=function(W,P){for(var x=[];W.length>0&&P.length>0;)this._hasLowerTabOrder(W[0],P[0])?x.push(P.shift()):x.push(W.shift());return x.concat(W,P)};
_.J._hasLowerTabOrder=function(W,P){W=Math.max(W.tabIndex,0);P=Math.max(P.tabIndex,0);return W===0||P===0?P>W:W>P};
var VKk=new mIA;var pqM;var jSm;_.vM({_template:function(){if(jSm!==void 0)return jSm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;pqM===void 0&&(pqM=document.createElement("template"));var I=pqM;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return jSm=W},
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&&_.VS(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.VS(this.parentNode).removeChild(this)},
_onTransitionend:function(W){W&&W.target===this&&this.complete()},
_openedChanged:function(W){W?this.prepare():(W=window.getComputedStyle(this),W.transitionDuration!=="0s"&&W.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 Uk=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;AC(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)};
Uk.prototype._bringOverlayAtIndexToFront=function(W){var P=this._overlays[W];if(P){var x=this._overlays.length-1,I=this._overlays[x];I&&this._shouldBeBehindOverlay(P,I)&&x--;if(!(W>=x)){I=Math.max(this._getZ(_.QSp(this)),this._minimumZ);for(this._getZ(P)<=I&&this._applyOverlayZ(P,I);W<x;)this._overlays[W]=this._overlays[W+1],W++;this._overlays[x]=P}}};
Uk.prototype.addOverlay=function(W){var P=this._overlays.indexOf(W);if(P>=0)this._bringOverlayAtIndexToFront(P);else{P=this._overlays.length;var x=this._overlays[P-1],I=Math.max(this._getZ(x),this._minimumZ),O=this._getZ(W);x&&this._shouldBeBehindOverlay(W,x)&&(this._applyOverlayZ(x,I),P--,I=Math.max(this._getZ(this._overlays[P-1]),this._minimumZ));O<=I&&this._applyOverlayZ(W,I);this._overlays.splice(P,0,W)}this.trackBackdrop()};
Uk.prototype.removeOverlay=function(W){W=this._overlays.indexOf(W);W!==-1&&(this._overlays.splice(W,1),this.trackBackdrop())};
_.QSp=function(W){return W._overlays[W._overlays.length-1]};
_.J=Uk.prototype;_.J.trackBackdrop=function(){var W=this._overlayWithBackdrop();if(W||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(W)-1,this.backdropElement.opened=!!W,this.backdropElement.prepare()};
_.J._overlayWithBackdrop=function(){for(var W=this._overlays.length-1;W>=0;W--)if(this._overlays[W].withBackdrop)return this._overlays[W]};
_.J._getZ=function(W){var P=this._minimumZ;if(W){var x,I,O=Number(((x=W.hostElement)!=null?x:W).style.zIndex||window.getComputedStyle((I=W.hostElement)!=null?I:W).zIndex);O===O&&(P=O)}return P};
_.J._setZ=function(W,P){var x;((x=W.hostElement)!=null?x:W).style.zIndex=P};
_.J._applyOverlayZ=function(W,P){this._setZ(W,P+2)};
_.J._overlayInPath=function(W){W=W||[];for(var P=0;P<W.length;P++){var x=void 0;if(((x=W[P].polymerController)!=null?x:W[P])._manager===this)return W[P]}};
_.J._onCaptureClick=function(W){var P=this._overlays.length-1;if(P!==-1)for(var x=_.VS(W).path,I,O;(I=this._overlays[P])&&this._overlayInPath(x)!==((O=I.hostElement)!=null?O:I);)if(I._onCaptureClick(W),I.allowClickThrough)P--;else break};
_.J._onCaptureFocus=function(W){var P=_.QSp(this);P&&P._onCaptureFocus(W)};
_.J._onCaptureKeyDown=function(W){var P=_.QSp(this);P&&(_.tu.keyboardEventMatchesKeys(W,"esc")?P._onCaptureEsc(W):_.tu.keyboardEventMatchesKeys(W,"tab")&&P._onCaptureTab(W))};
_.J._shouldBeBehindOverlay=function(W,P){return!W.alwaysOnTop&&P.alwaysOnTop&&!P.contains(W)};
_.N1.Object.defineProperties(Uk.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 W=document.activeElement;W&&W instanceof Element!==!1||(W=document.body);for(;W.root&&_.VS(W.root).activeElement;)W=_.VS(W.root).activeElement;return W}}});
_.Xs=new Uk;var eRd=0,c6d=0,a9S=null,bdG=[],t1=["wheel","mousewheel","DOMMouseScroll"],kTR;_.p("web_no_lock_on_touchstart_killswitch")&&(t1.push("touchstart"),t1.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;_.fT={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:_.Xs},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var W;return this._focusedChild||_.VS((W=this.hostElement)!=null?W:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var W;return _.tKd((W=this.hostElement)!=null?W: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 W;this._observer=_.VS((W=this.hostElement)!=null?W:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var W;_.VS((W=this.hostElement)!=null?W:this).unobserveNodes(this._observer)}this._observer=null;for(var P in this.__rafs)this.__rafs[P]!==null&&cancelAnimationFrame(this.__rafs[P]);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(W){this.fire("iron-overlay-canceled",W,{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 W;((W=this.hostElement)!=null?W:this).style.outline="none";var P;((P=this.hostElement)!=null?P:this).style.display="none"}},
_openedChanged:function(W){if(W){var P;((P=this.hostElement)!=null?P:this).removeAttribute("aria-hidden")}else{var x;((x=this.hostElement)!=null?x:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var W;if(this.withBackdrop&&!((W=this.hostElement)!=null?W:this).hasAttribute("tabindex")){var P;((P=this.hostElement)!=null?P:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var x;((x=this.hostElement)!=null?x:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var W;((W=this.hostElement)!=null?W:this).style.display="none";var P;((P=this.hostElement)!=null?P:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var W,P;((W=this.hostElement)!=null?W:this).style.transition=((P=this.hostElement)!=null?P:this).style.webkitTransition="none";var x,I;((x=this.hostElement)!=null?x:this).style.transform=((I=this.hostElement)!=null?I:this).style.webkitTransform="none";var O;((O=this.hostElement)!=null?O:this).style.display=""},
_finishPositioning:function(){var W;((W=this.hostElement)!=null?W:this).style.display="none";this.scrollTop=this.scrollTop;var P,x;((P=this.hostElement)!=null?P:this).style.transition=((x=this.hostElement)!=null?x:this).style.webkitTransition="";var I,O;((I=this.hostElement)!=null?I:this).style.transform=((O=this.hostElement)!=null?O:this).style.webkitTransform="";var B;((B=this.hostElement)!=null?B:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var W=this._manager.deepActiveElement,P;if(!(P=W===document.body))a:{for(;W;W=W.assignedSlot||W.parentNode||W.host)if(W===this){P=!0;break a}P=!1}P&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(W){this.noCancelOnOutsideClick||this.cancel(W)},
_onCaptureFocus:function(W){if(this.withBackdrop){var P=_.VS(W).path;P.indexOf(this)===-1?(W.stopPropagation(),this._applyFocus()):this._focusedChild=P[0]}},
_onCaptureEsc:function(W){this.noCancelOnEscKey||this.cancel(W)},
_onCaptureTab:function(W){if(this.withBackdrop){this.__ensureFirstLastFocusables();var P=W.shiftKey,x=P?this.__firstFocusableNode:this.__lastFocusableNode;P=P?this.__lastFocusableNode:this.__firstFocusableNode;if(x===P)x=!0;else{var I=this._manager.deepActiveElement;x=I===x||I===this}x&&(W.preventDefault(),this._focusedChild=P,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 W=this._focusableNodes;this.__firstFocusableNode=W[0];this.__lastFocusableNode=W[W.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(W,P){var x=this.__rafs;x[W]!==null&&cancelAnimationFrame(x[W]);x[W]=requestAnimationFrame(function(){x[W]=null;P.call(this)}.bind(this))},
__updateScrollObservers:function(W,P,x){W&&P&&this.__isValidScrollAction(x)?(x==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),kTR=_._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()):(W=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),W!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(W,1),kTR=_._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(M1)for(var W=this;W;)W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&W.host&&this.__rootNodes.push(W),W=W.host||W.assignedSlot||W.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(P){P.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(W){W.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(W){return W==="lock"||W==="refit"||W==="cancel"},
__onCaptureScroll:function(W){if(!(this.__isAnimating||_.VS(W).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(W)}},
__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)}};
_.NK=[sSc,_.Db,_.fT];_.vM({_template:function(){if(udm!==void 0)return udm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Sad===void 0&&(Sad=document.createElement("template"));var I=Sad;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return udm=W},
is:"tp-yt-iron-dropdown",behaviors:[_.pT,_.tu,_.NK,JdA],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 W=_.VS(this.$.content).getDistributedNodes(),P=0,x=W.length;P<x;P++)if(W[P].nodeType===Node.ELEMENT_NODE)return W[P]},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(),_.fT._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.fT._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.fT._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var W=this.containedElement,P=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),x=0;x<P.length;x++)P[x].node=W;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(W){this._readied&&(W?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var W=this.focusTarget||this.containedElement;W&&this.opened&&!this.noAutoFocus?W.focus():_.fT._applyFocus.apply(this,arguments)}});var CrA;var ApZ;/*

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 z0b=new _.Au({type:"iconset"});
_.vM({_template:function(){if(ApZ!==void 0)return ApZ;var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;CrA===void 0&&(CrA=document.createElement("template"));
var I=CrA;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return ApZ=W},
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(W){W=(W||"").split(":");this._iconName=W.pop();this._iconsetName=W.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&&_.VS(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=z0b.byKey(this._iconsetName)){var W=this._iconset.applyIcon(this,this._iconName,this.theme);W&&W.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,_.VS(this.root).appendChild(this._img)}});var GSc;var Esm;_.vM({_template:function(){if(Esm!==void 0)return Esm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
var P=W.content,x=P.insertBefore;GSc===void 0&&(GSc=document.createElement("template"));var I=GSc;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Esm=W},
is:"tp-yt-iron-input",behaviors:[_.Gb],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(){_.b7.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.VS(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.VS(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 W=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":W=/[0-9.,e-]/}return W},_bindValueChanged:function(W,P){P&&(W===void 0?P.value=null:W!==P.value&&(this.inputElement.value=W),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:W}))},
_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(W){var P=W.keyCode==19||W.keyCode==20||W.keyCode==45||W.keyCode==46||W.keyCode==144||W.keyCode==145||W.keyCode>32&&W.keyCode<41||W.keyCode>111&&W.keyCode<124;return!(W.keyCode==8||W.keyCode==9||W.keyCode==13||W.keyCode==27)&&!(W.charCode==0&&P)},
_onKeypress:function(W){if(this.allowedPattern||this.inputElement.type==="number"){var P=this._patternRegExp;if(P&&!(W.metaKey||W.ctrlKey||W.altKey)){this._patternAlreadyChecked=!0;var x=String.fromCharCode(W.charCode);this._isPrintable(W)&&!P.test(x)&&(W.preventDefault(),this._announceInvalidCharacter("Invalid character "+x+" not entered."))}}},
_checkPatternValidity:function(){var W=this._patternRegExp;if(!W)return!0;for(var P=0;P<this.inputElement.value.length;P++)if(!W.test(this.inputElement.value[P]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var W=this.inputElement.checkValidity();W&&(this.required&&this.bindValue===""?W=!1:this.hasValidator()&&(W=_.Gb.validate.call(this,this.bindValue)));this.invalid=!W;this.fire("iron-input-validate");return W},
_announceInvalidCharacter:function(W){this.fire("iron-announce",{text:W})},
_computeValue:function(W){return W}});var gsP;var DI3;var MKZ=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),$Id=MKZ&&MKZ[1]>=8;
_.vM({_template:function(){if(DI3!==void 0)return DI3;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;gsP===void 0&&(gsP=document.createElement("template"));var I=gsP;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return DI3=W},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[OrC,_.Db,_.OEk,Twb],_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 _.VS(_.VS(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var W=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,W-this._physicalCount)},set _virtualStart(W){W=this._clamp(W,0,this._maxVirtualStart);this.grid&&(W-=W%this._itemsPerRow);this._virtualStartVal=W},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(W){W%=this._physicalCount;W<0&&(W=this._physicalCount+W);this.grid&&(W-=W%this._itemsPerRow);this._physicalStartVal=W},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(W){this._physicalCountVal=W},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 W=this._firstVisibleIndexVal;if(W==null){var P=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
W=this._iterateItems(function(x,I){P+=this._getPhysicalSizeIncrement(x);if(P>this._scrollPosition)return this.grid?I-I%this._itemsPerRow:I;if(this.grid&&this._virtualCount-1===I)return I-I%this._itemsPerRow})||0}return W},
get lastVisibleIndex(){var W=this._lastVisibleIndexVal;if(W==null){if(this.grid)W=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var P=this._physicalTop+this._scrollOffset;this._iterateItems(function(x,I){P<this._scrollBottom&&(W=I);P+=this._getPhysicalSizeIncrement(x)})}this._lastVisibleIndexVal=W}return W},
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,_.dc);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(W){this.style.webkitOverflowScrolling=W===this?"touch":"";this.style.overflowY=W===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.dc)},
updateViewportBoundaries:function(){var W=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(W["padding-top"],10);this._isRTL=W.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var W=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),P=W-this._scrollPosition,x=P>=0;this._scrollPosition=W;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(P)>this._physicalSize&&this._physicalSize>0?(P-=this._scrollOffset,x=Math.round(P/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=x,this._physicalStart+=x,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(W=this._getReusables(x),x?(this._physicalTop=W.physicalTop,this._virtualStart+=W.indexes.length,this._physicalStart+=W.indexes.length):(this._virtualStart=this._virtualStart-W.indexes.length,this._physicalStart=this._physicalStart-W.indexes.length),this._update(W.indexes,x?null:W.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ES))},
_getReusables:function(W){var P=[],x=this._hiddenContentSize*this._ratio,I=this._virtualStart,O=this._virtualEnd,B=this._physicalCount,Y=this._physicalTop+this._scrollOffset;var K=this._physicalBottom+this._scrollOffset;var Z=this._scrollPosition,d=this._scrollBottom;if(W){var v=this._physicalStart;K=Z-Y}else v=this._physicalEnd,K-=d;for(;;){var m=this._getPhysicalSizeIncrement(v);K-=m;if(P.length>=B||K<=x)break;if(W){if(O+P.length+1>=this._virtualCount)break;if(Y+m>=Z-this._scrollOffset)break;P.push(v);
Y+=m;v=(v+1)%B}else{if(I-P.length<=0)break;if(Y+this._physicalSize-m<=d)break;P.push(v);Y-=m;v=v===0?B-1:v-1}}return{indexes:P,physicalTop:Y-this._scrollOffset}},
_update:function(W,P){if(!(W&&W.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(W);this._updateMetrics(W);if(P)for(;P.length;)W=P.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(W);this._positionItems();this._updateScrollerSize()}},
_createPool:function(W){this._ensureTemplatized();var P,x=Array(W);for(P=0;P<W;P++){var I=this.stamp(null);x[P]=I.root.querySelector("*");this._itemsParent.appendChild(I.root)}return x},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(W){W=this._clamp(this._physicalCount+W,3,this._virtualCount-this._virtualStart);W=this._convertIndexToCompleteRow(W);if(this.grid){var P=W%this._itemsPerRow;P&&W-P<=this._physicalCount&&(W+=this._itemsPerRow);W-=P}W-=this._physicalCount;P=Math.round(this._physicalCount*.5);if(!(W<0)){if(W>0){P=window.performance.now();[].push.apply(this._physicalItems,this._createPool(W));for(var x=0;x<W;x++)this._physicalSizes.push(0);this._physicalCount+=W;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=W);this._update();this._templateCost=(window.performance.now()-P)/W;P=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||P===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,P)),EaM):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,P),ES))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var W=this._getReusables(!0);this._physicalTop=W.physicalTop;this._virtualStart+=W.indexes.length;this._physicalStart+=W.indexes.length;this._update(W.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 W={__key__:!0};W[this.as]=!0;W[this.indexAs]=!0;W[this.selectedAs]=!0;W.tabIndex=!0;this._instanceProps=W;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(W,P){typeof P!=="undefined"&&(this.notifyResize(),_.ZR(),W&&this._updateGridMetrics())},
_itemsChanged:function(W){if(W.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,
_.dc);else if(W.path==="items.splices"){this._adjustVirtualIndex(W.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(W.value.indexSplices.some(function(x){return x.addedCount>0||x.removed.length>0})){var P=this._getActiveElement();
this.contains(P)&&P.blur()}W=W.value.indexSplices.some(function(x){return x.index+x.addedCount>=this._virtualStart&&x.index<=this._virtualEnd},this);
this._isClientFull()&&!W||this._debounce("_render",this._render,_.dc)}else W.path!=="items.length"&&this._forwardItemPath(W.path,W.value)},
_forwardItemPath:function(W,P){W=W.slice(6);var x=W.indexOf(".");x===-1&&(x=W.length);var I,O=this.modelForElement(this._offscreenFocusedItem),B=parseInt(W.substring(0,x),10);if(I=this._isIndexRendered(B)){var Y=this._getPhysicalIndex(B);var K=this.modelForElement(this._physicalItems[Y])}else O&&(K=O);K&&K[this.indexAs]===B&&(W=W.substring(x+1),W=this.as+(W?"."+W:""),K._setPendingPropertyOrPath(W,P,!1,!0),K._flushProperties&&K._flushProperties(),I&&(this._updateMetrics([Y]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(W){W.forEach(function(P){P.removed.forEach(this._removeItem,this);P.index<this._virtualStart&&(P=Math.max(P.addedCount-P.removed.length,P.index-this._virtualStart),this._virtualStart+=P,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=P))},this)},
_removeItem:function(W){this.$.selector.deselect(W);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===W&&this._removeFocusedItem()},
_iterateItems:function(W,P){var x,I;if(arguments.length===2&&P)for(I=0;I<P.length;I++){var O=P[I];var B=this._computeVidx(O);if((x=W.call(this,O,B))!=null)return x}else{O=this._physicalStart;for(B=this._virtualStart;O<this._physicalCount;O++,B++)if((x=W.call(this,O,B))!=null)return x;for(O=0;O<this._physicalStart;O++,B++)if((x=W.call(this,O,B))!=null)return x}},
_computeVidx:function(W){return W>=this._physicalStart?this._virtualStart+(W-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+W},
_assignModels:function(W){this._iterateItems(function(P,x){var I=this._physicalItems[P],O=this.items&&this.items[x];if(O!=null){var B=this.modelForElement(I);B.__key__=null;this._forwardProperty(B,this.as,O);this._forwardProperty(B,this.selectedAs,this.$.selector.isSelected(O));this._forwardProperty(B,this.indexAs,x);this._forwardProperty(B,"tabIndex",this._focusedVirtualIndex===x?0:-1);this._physicalIndexForKey[B.__key__]=P;B._flushProperties&&B._flushProperties(!0);I.removeAttribute("hidden")}else I.setAttribute("hidden",
"")},W)},
_updateMetrics:function(W){_.ZR();var P=0,x=0,I=this._physicalAverageCount,O=this._physicalAverage;this._iterateItems(function(B){x+=this._physicalSizes[B];this._physicalSizes[B]=this._physicalItems[B].offsetHeight;P+=this._physicalSizes[B];this._physicalAverageCount+=this._physicalSizes[B]?1:0},W);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(x=this._itemsPerRow===1?x:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+P-x,this._itemsPerRow=1);this._physicalAverageCount!==I&&(this._physicalAverage=Math.round((O*I+P)/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 W=this._physicalTop;if(this.grid){var P=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(x,I){var O=Math.floor(I%this._itemsPerRow*this._itemWidth+P);this._isRTL&&(O*=-1);this.translate3d(O+"px",W+"px",0,this._physicalItems[x]);this._shouldRenderNextRow(I)&&(W+=this._rowHeight)})}else this._iterateItems(function(x){this.translate3d(0,W+"px",0,this._physicalItems[x]);
W+=this._physicalSizes[x]})},
_getPhysicalSizeIncrement:function(W){return this.grid?this._computeVidx(W)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[W]},
_shouldRenderNextRow:function(W){return W%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var W=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(W!==0){this._physicalTop=this._physicalTop-W;var P=this._scrollPosition;!$Id&&P>0&&this._resetScrollPosition(P-W)}},
_resetScrollPosition:function(W){this.scrollTarget&&W>=0&&(this._scrollPosition=this._scrollTop=W)},
_updateScrollerSize:function(W){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((W=(W=(W=W||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(W){return this.scrollToIndex(this.items.indexOf(W))},
scrollToIndex:function(W){if(!(typeof W!=="number"||W<0||W>this.items.length-1)&&(_.ZR(),this._physicalCount!==0)){W=this._clamp(W,0,this._virtualCount-1);if(!this._isIndexRendered(W)||W>=this._maxVirtualStart)this._virtualStart=this.grid?W-this._itemsPerRow*2:W-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var P=this._physicalStart,x=this._virtualStart,I=0,O=this._hiddenContentSize;x<W&&
I<=O;)I+=this._getPhysicalSizeIncrement(P),P=(P+1)%this._physicalCount,x++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+I);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)},_.dc)},
selectItem:function(W){return this.selectIndex(this.items.indexOf(W))},
selectIndex:function(W){if(!(W<0||W>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(W)){var P=this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)]);P&&(P[this.selectedAs]=!0);this.updateSizeForIndex(W)}this.$.selector.selectIndex(W)}},
deselectItem:function(W){return this.deselectIndex(this.items.indexOf(W))},
deselectIndex:function(W){W<0||W>=this._virtualCount||(this._isIndexRendered(W)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)])[this.selectedAs]=!1,this.updateSizeForIndex(W)),this.$.selector.deselectIndex(W))},
toggleSelectionForItem:function(W){return this.toggleSelectionForIndex(this.items.indexOf(W))},
toggleSelectionForIndex:function(W){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(W):this.$.selector.isSelected(this.items[W]))?this.deselectIndex(W):this.selectIndex(W)},
clearSelection:function(){this._iterateItems(function(W){this.modelForElement(this._physicalItems[W])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(W){(W?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(W){var P=this.modelForElement(W.target);if(P){var x=_.VS(W).path[0];W=this._getActiveElement();var I=this._physicalItems[this._getPhysicalIndex(P[this.indexAs])];if(x.localName!=="input"&&x.localName!=="button"&&x.localName!=="select"){x=P.tabIndex;P.tabIndex=-100;var O=W?W.tabIndex:-1;P.tabIndex=x;W&&I!==W&&I.contains(W)&&O!==-100||this.toggleSelectionForItem(P[this.as])}}},
_multiSelectionChanged:function(W){this.clearSelection();this.$.selector.multi=W},
updateSizeForItem:function(W){return this.updateSizeForIndex(this.items.indexOf(W))},
updateSizeForIndex:function(W){if(!this._isIndexRendered(W))return null;this._updateMetrics([this._getPhysicalIndex(W)]);this._positionItems();return null},
_manageFocus:function(){var W=this._focusedVirtualIndex;W>=0&&W<this._virtualCount?this._isIndexRendered(W)?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(W){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(W/this._itemsPerRow)*this._itemsPerRow:W},
_isIndexRendered:function(W){return W>=this._virtualStart&&W<=this._virtualEnd},
_isIndexVisible:function(W){return W>=this.firstVisibleIndex&&W<=this.lastVisibleIndex},
_getPhysicalIndex:function(W){return(this._physicalStart+(W-this._virtualStart))%this._physicalCount},
focusItem:function(W){this._focusPhysicalItem(W)},
_focusPhysicalItem:function(W){if(!(W<0||W>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(W)||this.scrollToIndex(W);var P=this._physicalItems[this._getPhysicalIndex(W)],x=this.modelForElement(P),I;x.tabIndex=-100;P.tabIndex===-100&&(I=P);I||(I=_.VS(P).querySelector('[tabindex="-100"]'));x.tabIndex=0;this._focusedVirtualIndex=W;I&&I.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 W=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var P=this.stamp(null);this._focusBackfillItem=P.root.querySelector("*");this._itemsParent.appendChild(P.root)}this._offscreenFocusedItem=this._physicalItems[W];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[W]=this._focusBackfillItem;this._focusedPhysicalIndex=W;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var W=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),P=this._physicalItems[W];if(P){var x=this.modelForElement(P),I=this.modelForElement(this._offscreenFocusedItem);x[this.as]===I[this.as]?(this._focusBackfillItem=P,x.tabIndex=-1,this._physicalItems[W]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(W){W=this.modelForElement(W.target);var P=this.modelForElement(this._focusedItem),x=this._offscreenFocusedItem!==null,I=this._focusedVirtualIndex;W&&(P===W?this._isIndexVisible(I)||this.scrollToIndex(I):(this._restoreFocusedItem(),P&&(P.tabIndex=-1),W.tabIndex=0,this._focusedVirtualIndex=I=W[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(I),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],x&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(W){switch(W.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&W.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&&W.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(W)}},
_clamp:function(W,P,x){return Math.min(x,Math.max(P,W))},
_debounce:function(W,P,x){this._debouncers=this._debouncers||{};this._debouncers[W]=_.Bz(this._debouncers[W],x,P.bind(this));_.nh(this._debouncers[W])},
_forwardProperty:function(W,P,x){W._setPendingProperty(P,x)},
_forwardHostPropV2:function(W,P){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(x){x&&this.modelForElement(x).forwardHostProp(W,P)},this)},
_notifyInstancePropV2:function(W,P,x){rdS(this.as,P)&&(W=W[this.indexAs],P==this.as&&(this.items[W]=x),this.notifyPath(YQ(this.as,"items."+W,P),x))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(W,P,x){P.indexOf(this.as+".")===0&&this.notifyPath("items."+W.__key__+"."+P.slice(this.as.length+1),x)},
_forwardParentPath:function(W,P){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(x){x&&this.modelForElement(x).notifyPath(W,P)},this)},
_forwardParentProp:function(W,P){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(x){x&&(this.modelForElement(x)[W]=P)},this)},
_getActiveElement:function(){var W=this._itemsParent.node.domHost;return _.VS(W?W.root:document).activeElement},
_scrollTargetChanged:function(W,P){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(P)if(W==="document")this.scrollTarget=this._doc;else if(typeof W==="string"){var x,I;this.scrollTarget=(P=(I=(x=this.domHost)==null?void 0:x.polymerController)!=null?I:this.domHost)&&P.$?P.$[W]:_.VS(this.ownerDocument).querySelector("#"+W)}else this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W))}});var wqp;var h0m;var HCi=function(W,P,x,I){W-=x;P-=I;return Math.sqrt(W*W+P*P)},e0W=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
UQ7.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Xxm=function(W){W.maxRadius=0;W.mouseDownStart=0;W.mouseUpStart=0;W.xStart=0;W.yStart=0;W.xEnd=0;W.yEnd=0;W.containerMetrics=new UQ7(W.element)};
f9m.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var W=e0W()-this.mouseDownStart;this.mouseUpStart&&(W-=this.mouseUpElapsed);return W},get mouseUpElapsed(){return this.mouseUpStart?e0W()-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 W=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(W*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-W/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var W=this.radius/(this.containerMetrics.size/2);var P=this.xNow-this.containerMetrics.width/2;var x=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+P+"px, "+x+"px)";this.waveContainer.style.transform="translate3d("+P+"px, "+x+"px, 0)";this.wave.style.webkitTransform="scale("+W+","+W+")";this.wave.style.transform="scale3d("+W+","+W+",1)"},
downAction:function(W){var P=this.containerMetrics.width/2,x=this.containerMetrics.height/2;Xxm(this);this.mouseDownStart=e0W();this.center?(this.xStart=P,this.yStart=x):(this.xStart=W?W.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=W?W.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=P,this.yEnd=x);W=this.containerMetrics;P=this.xStart;x=this.yStart;this.maxRadius=Math.max(HCi(P,x,0,0),HCi(P,x,
W.width,0),HCi(P,x,0,W.height),HCi(P,x,W.width,W.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=e0W())},
remove:function(){_.VS(_.VS(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.vM({_template:function(){if(h0m!==void 0)return h0m;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;wqp===void 0&&(wqp=document.createElement("template"));var I=wqp;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return h0m=W},
is:"tp-yt-paper-ripple",behaviors:[_.tu],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(){_.VS(this).parentNode.nodeType==11?this.keyEventTarget=_.VS(this).getOwnerRoot().host:this.keyEventTarget=_.VS(this).parentNode;var W=this.keyEventTarget;this.listen(W,"up","uiUpAction");this.listen(W,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(W){W.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var W=0;W<this.ripples.length;++W)if(!this.ripples[W].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(W){this.noink||this.downAction(W)},
downAction:function(W){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(W),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(W){this.noink||this.upAction(W)},
upAction:function(W){this.holdDown||(this.ripples.forEach(function(P){P.upAction(W)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var W=0;W<this.ripples.length;++W){var P=this.ripples[W];P.isOpacityFullyDecayed&&!P.isRestingAtMaxRadius&&this.removeRipple(P)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var W=new f9m(this);_.VS(this.$.waves).appendChild(W.waveContainer);this.$.background.style.backgroundColor=W.color;this.ripples.push(W);this._setAnimating(!0);return W},
removeRipple:function(W){var P=this.ripples.indexOf(W);P<0||(this.ripples.splice(P,1),W.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var W;for(W=0;W<this.ripples.length;++W){var P=this.ripples[W];P.draw();this.$.background.style.opacity=P.outerOpacity;P.isOpacityFullyDecayed&&!P.isRestingAtMaxRadius&&this.removeRipple(P)}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(W,P){P!==void 0&&(W?this.downAction():this.upAction())}});var l7={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(W){jJ._downHandler.call(this,W);this.pressed&&this.ensureRipple(W)},
ensureRipple:function(W){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var P=this._rippleContainer||this.root;P&&_.VS(P).appendChild(this._ripple);if(W){P=_.VS(this._rippleContainer||this);var x=_.VS(W).rootTarget;P.deepContains(x)&&this._ripple.uiDownAction(W)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(W){this.hasRipple()&&(this._ripple.noink=W)}};var cpM={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 W=1;this.disabled?W=0:this.active||this.pressed?W=4:this.receivedFocusFromKeyboard&&(W=3);this._setElevation(W)},
_computeKeyboardClass:function(W){this.toggleClass("keyboard-focus",W)},
_spaceKeyDownHandler:function(W){jJ._spaceKeyDownHandler.call(this,W);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(W){jJ._spaceKeyUpHandler.call(this,W);this.hasRipple()&&this._ripple.uiUpAction()}},aZp=[Tcw,
_.pT,l7,cpM];_.bCb={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=W)},
_createRipple:function(){var W=l7._createRipple();W.id="ink";W.setAttribute("center","");W.classList.add("circle");return W}};
_.kSZ=[Tcw,_.pT,l7,_.bCb];_.UIm=[_.kSZ,RVP,{_checkedChanged:function(){itp._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){l7._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Xqi;var fZA;var NpZ=function(){};
_.J=NpZ.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._createRipple=function(){};
_.J._noinkChanged=function(){};
_.J._computeKeyboardClass=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setElevation=function(){};
NpZ=_.vM({_template:function(){if(fZA!==void 0)return fZA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
var P=W.content,x=P.insertBefore;Xqi===void 0&&(Xqi=document.createElement("template"));var I=Xqi;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return fZA=W},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[aZp],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?cpM._calculateElevation.apply(this):this._setElevation(0)}});var lZw;var TpA;var rpM={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(W){_.p("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(W)},
_onDialogClickWrapped:function(W){_.p("dialog_behavior_no_tap_killswitch")||this._onDialogClick(W)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(W,P){P&&(W?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(W){this.closingReason=this.closingReason||{};this.closingReason.confirmed=W},
_onDialogClick:function(W){for(var P=_.VS(W).path,x=0,I,O=P.indexOf((I=this.hostElement)!=null?I:this);x<O;x++)if(I=P[x],I.hasAttribute&&(I.hasAttribute("dialog-dismiss")||I.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(I.hasAttribute("dialog-confirm"));this.close();W.stopPropagation();break}}},iCk=[_.NK,
rpM];var R0b=document.createElement("template");_.G(R0b,'<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(R0b.content);var FGp=document.createElement("template");_.G(FGp,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(FGp.content);_.vM({_template:function(){if(TpA!==void 0)return TpA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
var P=W.content,x=P.insertBefore;lZw===void 0&&(lZw=document.createElement("template"));var I=lZw;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return TpA=W},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[iCk,JdA],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 qaz;var LG3;_.vM({_template:function(){if(LG3!==void 0)return LG3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;qaz===void 0&&(qaz=document.createElement("template"));var I=qaz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return LG3=W},
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 W,P,x;if(((W=window.ShadyDOM)==null?void 0:W.noPatch)!==!0&&((P=window.ShadyDOM)==null?void 0:P.noPatch)!=="on-demand"||((x=this.__shady_parentNode)==null?void 0:x.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(rpM)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var W03=_.i4(['<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>']),P6P=_.q_i(W03);P6P.setAttribute("style","display: none;");document.head.appendChild(P6P.content);var xzk;var IIA;var OoW;var J3w;_.vM({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[MK],configure:function(W){var P=W.node,x=P.getBoundingClientRect().height;return this._effect=new KeyframeEffect(P,[{height:x/2+"px"},{height:x+"px"}],this.timingFromConfig(W))}});
_.vM({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[MK],configure:function(W){var P=W.node,x=P.getBoundingClientRect().width;return this._effect=new KeyframeEffect(P,[{width:x/2+"px"},{width:x+"px"}],this.timingFromConfig(W))}});
_.vM({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[MK],configure:function(W){var P=W.node,x=P.getBoundingClientRect().width;return this._effect=new KeyframeEffect(P,[{width:x+"px"},{width:x-x/20+"px"}],this.timingFromConfig(W))}});
_.vM({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[MK],configure:function(W){var P=W.node,x=P.getBoundingClientRect().height;this.setPrefixedProperty(P,"transformOrigin","0 0");return this._effect=new KeyframeEffect(P,[{height:x+"px",transform:"translateY(0)"},{height:x/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(W))}});var Tb={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Bni=function(){};
_.J=Bni.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._focusBlurHandler=function(){};
_.J._changedControlState=function(){};
_.J._setFocused=function(){};
Bni=_.vM({_template:function(){if(J3w!==void 0)return J3w;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;OoW===void 0&&(OoW=document.createElement("template"));var I=OoW;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return J3w=W},
is:"tp-yt-paper-menu-button",behaviors:[_.tu,_.pT],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:Tb.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Tb.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:Tb.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 W=_.VS(this.$.content).getDistributedNodes(),P=0,x=W.length;P<x;P++)if(W[P].nodeType===Node.ELEMENT_NODE)return W[P]},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(W,P){W?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):P!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(W){_.pT._disabledChanged.apply(this,arguments);W&&this.opened&&this.close()},
__onIronOverlayCanceled:function(W){var P=this.$.trigger;_.VS(W.detail).path.indexOf(P)>-1&&W.preventDefault()}});
Object.keys(Tb).forEach(function(W){Bni[W]=Tb[W]});var nAp=_.QM.IronButtonState,Yrk=(0,_.th)(HTMLElement);
_.vM({_template:function(){if(IIA!==void 0)return IIA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;xzk===void 0&&(xzk=document.createElement("template"));var I=xzk;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return IIA=W},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[nAp,_.pT,l7,_.CT,_.Gb],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(W){var P=(0,_.Sk)(this);P.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:W});P.shadowRoot.appendChild(W);return Yrk.prototype._attachDom.call(this,W)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.VS(this.$.content).getDistributedNodes(),P=0,x=W.length;P<x;P++)if(W[P].nodeType===Node.ELEMENT_NODE)return W[P]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var P="";W?P=W.label||W.getAttribute("label")||W.textContent.trim():P="";this.value=P;this._setSelectedItemLabel(P)},
_computeMenuVerticalOffset:function(W,P){return P?P:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",P=this.contentElement;P&&P.setAttribute("aria-expanded",W)},
_computeLabelClass:function(W,P,x){var I="label";if(W)x&&(I+=" label-is-hidden");else if(x||P)I+=" label-is-floating";return I},
_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 y3k;var K0k;_.vM({is:"tp-yt-paper-icon-button",_template:function(){if(K0k!==void 0)return K0k;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;y3k===void 0&&(y3k=document.createElement("template"));var I=y3k;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return K0k=W},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.kSZ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(W,P){var x=this.getAttribute("aria-label");x&&P!=x||this.setAttribute("aria-label",W)}});var Zol;var oAM;_.rK=[Tcw,_.pT,{hostAttributes:{role:"option",tabindex:"0"}}];_.vM({_template:function(){if(oAM!==void 0)return oAM;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Zol===void 0&&(Zol=document.createElement("template"));var I=Zol;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return oAM=W},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.rK]});var SrP;var ujp;var dzw={attached:function(){this.fire("addon-attached")},
update:function(){}};var sqz=1,vAZ=1,mzA=1,VQm=[_.pT,_.tu,{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();!L0&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(W,P){W?W=W+" "+P:W=P;return W},
_onAddonAttached:function(W){W=_.VS(W).rootTarget;if(W.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W.id);else{var P="paper-input-add-on-"+vAZ++;W.id=P;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,P)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(W){_.pT._focusBlurHandler.call(this,W);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(W){try{var P=this.inputElement.selectionStart;this.value=W;this.inputElement.selectionStart=P;this.inputElement.selectionEnd=P}catch(x){this.value=W}},
_computeAlwaysFloatLabel:function(W,P){return P||W},
_updateAriaLabelledBy:function(){var W=_.VS(this.root).querySelector("label");if(W){if(W.id)var P=W.id;else P="paper-input-label-"+sqz++,W.id=P;this._ariaLabelledBy=P}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+mzA++)},
_onChange:function(W){this.shadowRoot&&this.fire(W.type,{sourceEvent:W},{node:this,bubbles:W.bubbles,cancelable:W.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var W=document.activeElement;W instanceof HTMLElement&&W!==document.body&&W!==document.documentElement||this._focusableElement.focus()}}}];var tQw;var pOb;_.vM({_template:function(){if(pOb!==void 0)return pOb;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;tQw===void 0&&(tQw=document.createElement("template"));var I=tQw;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return pOb=W},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[dzw],properties:{_charCounterStr:{type:String,value:"0"}},update:function(W){if(W.inputElement){W.value=W.value||"";var P=W.value.toString().length.toString();W.inputElement.hasAttribute("maxlength")&&(P+="/"+W.inputElement.getAttribute("maxlength"));this._charCounterStr=P}}});var jqm;var Qqd;_.vM({_template:function(){if(Qqd!==void 0)return Qqd;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;jqm===void 0&&(jqm=document.createElement("template"));var I=jqm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Qqd=W},
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 Ih(this.attrForValue)},get _inputElement(){return _.VS(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(W){this._addons||(this._addons=[]);W=W.target;this._addons.indexOf(W)===-1&&(this._addons.push(W),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(W){this._handleValueAndAutoValidate(W.target)},
_onValueChanged:function(W){var P=W.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,P.value===void 0||P.value===""))return;this._handleValueAndAutoValidate(W.target)},
_handleValue:function(W){var P=this._inputElementValue;P||P===0||W.type==="number"&&!W.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:W,value:P,invalid:this.invalid})},
_handleValueAndAutoValidate:function(W){this.autoValidate&&W&&(this.invalid=!(W.validate?W.validate(this._inputElementValue):W.checkValidity()));this._handleValue(W)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(W){if(this._addons)for(var P,x=0;P=this._addons[x];x++)P.update(W)},
_computeInputContentClass:function(W,P,x,I,O){var B="input-content";W?(O&&(B+=" label-is-hidden"),I&&!this.noUnfloatedLabelError&&(B+=" is-invalid")):(W=this.querySelector("label"),P||O?(B+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",I?B+=" is-invalid":x&&(B+=" label-is-highlighted")):(W&&(this.$.labelAndInputContainer.style.position="relative"),I&&!this.noUnfloatedLabelError&&(B+=" is-invalid")));x&&(B+=" focused");return B},
_computeUnderlineClass:function(W,P){var x="underline";P?x+=" is-invalid":W&&(x+=" is-highlighted");return x},
_computeAddOnContentClass:function(W,P){var x="add-on-content";P?x+=" is-invalid":W&&(x+=" is-highlighted");return x}});var C6z;var A3Z;_.vM({_template:function(){if(A3Z!==void 0)return A3Z;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;C6z===void 0&&(C6z=document.createElement("template"));var I=C6z;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return A3Z=W},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[dzw],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(W){this._setInvalid(W.invalid)}});_.vM({is:"tp-yt-paper-input",_template:function(){if(ujp!==void 0)return ujp;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;SrP===void 0&&(SrP=document.createElement("template"));var I=SrP;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return ujp=W},
behaviors:[VQm,_.CT],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 zJA;var Gaz;_.vM({_template:function(){if(Gaz!==void 0)return Gaz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=
W.content,x=P.insertBefore;zJA===void 0&&(zJA=document.createElement("template"));var I=zJA;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Gaz=W},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.rK]});var EAW;var gAb;_.vM({_template:function(){if(gAb!==void 0)return gAb;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
var P=W.content,x=P.insertBefore;EAW===void 0&&(EAW=document.createElement("template"));var I=EAW;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return gAb=W},
is:"tp-yt-paper-item-body"});var Dz3;var MQc;var $zi=function(){};
_.J=$zi.prototype;_.J.indexOf=function(){};
_.J.selectPrevious=function(){};
_.J.selectNext=function(){};
_.J.selectIndex=function(){};
_.J.forceSynchronousItemUpdate=function(){};
_.J._checkFallback=function(){};
_.J._addListener=function(){};
_.J._removeListener=function(){};
_.J._activateEventChanged=function(){};
_.J._updateItems=function(){};
_.J._selectSelected=function(){};
_.J._filterItem=function(){};
_.J._valueToItem=function(){};
_.J._valueToIndex=function(){};
_.J._indexToValue=function(){};
_.J._valueForItem=function(){};
_.J._observeItems=function(){};
_.J._itemActivate=function(){};
_.J.multiChanged=function(){};
_.J._updateAttrForSelected=function(){};
_.J._updateSelected=function(){};
_.J._selectMulti=function(){};
_.J._selectionChange=function(){};
_.J._toggleSelected=function(){};
_.J._valuesToItems=function(){};
_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J.select=function(){};
_.J._resetTabindices=function(){};
_.J._updateMultiselectable=function(){};
_.J._focusWithKeyboardEvent=function(){};
_.J._clearSearchText=function(){};
_.J._focusPrevious=function(){};
_.J._focusNext=function(){};
_.J._applySelection=function(){};
_.J._focusedItemChanged=function(){};
_.J._onIronItemsChanged=function(){};
_.J._onShiftTabDown=function(){};
_.J._onFocus=function(){};
_.J._onUpKey=function(){};
_.J._onDownKey=function(){};
_.J._onEscKey=function(){};
_.J._onKeydown=function(){};
_.J._activateHandler=function(){};
_.J._disabledChanged=function(){};
_.J._setSelectedItem=function(){};
_.J._setItems=function(){};
_.J._setSelectedItems=function(){};
_.J._setFocusedItem=function(){};
$zi=_.vM({_template:function(){if(MQc!==void 0)return MQc;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
var P=W.content,x=P.insertBefore;Dz3===void 0&&(Dz3=document.createElement("template"));var I=Dz3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return MQc=W},
is:"tp-yt-paper-listbox",behaviors:[WQ3],hostAttributes:{role:"listbox"}});var wOm;var hJM;var HoP={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(W,P){return[W||P?"active":"",P?"cooldown":""].join(" ")},
__activeChanged:function(W,P){this.__setAriaHidden(!W);this.__coolingDown=!W&&P},
__altChanged:function(W){this.setAttribute("aria-label",W||"loading")},
__setAriaHidden:function(W){W?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.vM({_template:function(){if(hJM!==void 0)return hJM;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;wOm===void 0&&(wOm=document.createElement("template"));var I=wOm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return hJM=W},
is:"tp-yt-paper-spinner",behaviors:[HoP]});var eJl;var c3l;_.vM({_template:function(){if(c3l!==void 0)return c3l;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;eJl===void 0&&(eJl=document.createElement("template"));var I=eJl;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return c3l=W},
is:"tp-yt-paper-spinner-lite",behaviors:[HoP]});var aIm;var bol;_.vM({_template:function(){if(bol!==void 0)return bol;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;aIm===void 0&&(aIm=document.createElement("template"));var I=aIm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return bol=W},
is:"tp-yt-paper-tab",behaviors:[_.pT,_.QM.IronButtonState,l7],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var W=_.VS(this).parentNode;return!!W&&!!W.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(W){if(this.link){var P=this.queryEffectiveChildren("a");P&&W.target!==P&&P.click()}}});var kaw;var Uzp;var XOA=_.i4(['<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>']),fIM=_.q_i(XOA);document.head.appendChild(fIM.content);_.vM({_template:function(){if(Uzp!==void 0)return Uzp;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;kaw===void 0&&(kaw=document.createElement("template"));var I=kaw;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Uzp=W},
is:"tp-yt-paper-tabs",behaviors:[_.Db,_.xxZ],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(W){_.VS(this).querySelectorAll("tp-yt-paper-tab").forEach(W?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(W){W.setAttribute("noink","")},
_removeNoinkAttribute:function(W){W.removeAttribute("noink")},
_computeScrollButtonClass:function(W,P,x,I){return!P||x?"hidden":W?I?"hidden":"not-visible":""},
_computeTabsContentClass:function(W,P){var x="tabs-content";W&&(x+=" scrollable");if(!W||P)x+=" fit-container";return x},
_computeSelectionBarClass:function(W,P){var x="selection-bar";W?x+=" hidden":P&&(x+=" align-bottom");return x},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(W){return""+W},
_onIronSelect:function(W){this._tabChanged(W.detail.item,this._previousTab);this._previousTab=W.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();_.gK._activateHandler.apply(this,arguments)},
_scheduleActivation:function(W,P){this._pendingActivationItem=W;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,P)},
_delayedActivationHandler:function(){var W=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;W.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(W){W.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(W,P){this.scrollable&&this._affectScroll(P&&-P.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(W){this.$.tabsContainer.scrollLeft+=W;W=this.$.tabsContainer.scrollLeft;this._leftHidden=W===0||this.hideScrollButtons;this._rightHidden=W===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(W,P){if(W){var x=this.$.tabsContent.getBoundingClientRect(),I=x.width,O=W.getBoundingClientRect();x=O.left-x.left;this._pos={width:this._calcPercent(O.width,I),left:this._calcPercent(x,I)};if(this.noSlide||P==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var B=P.getBoundingClientRect();P=this.items.indexOf(P);W=this.items.indexOf(W);this.$.selectionBar.classList.add("expand");
W=P<W;this._isRTL&&(W=!W);W?this._positionBar(this._calcPercent(O.left+O.width-B.left,I)-5,this._left):this._positionBar(this._calcPercent(B.left+B.width-O.left,I)-5,this._calcPercent(x,I)+5);this.scrollable&&this._scrollToSelectedIfNeeded(O.width,x)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(W,P){P-=this.$.tabsContainer.scrollLeft;P<0?this.$.tabsContainer.scrollLeft+=P:(P+=W-this.$.tabsContainer.offsetWidth,P>0&&(this.$.tabsContainer.scrollLeft+=P))},
_calcPercent:function(W,P){return 100*W/P},
_positionBar:function(W,P){W=W||0;P=P||0;this._width=W;this._left=P;this.transform("translateX("+P+"%) scaleX("+W/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var W=this.$.selectionBar.classList;W.contains("expand")?(W.remove("expand"),W.add("contract"),this._positionBar(this._pos.width,this._pos.left)):W.contains("contract")&&W.remove("contract")}});var Nnw;var lIA;_.vM({_template:function(){if(lIA!==void 0)return lIA;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Nnw===void 0&&(Nnw=document.createElement("template"));var I=Nnw;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return lIA=W},
is:"tp-yt-paper-textarea",behaviors:[VQm,_.CT],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(W){this.$.input.textarea.selectionStart=W},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(W){this.$.input.textarea.selectionEnd=W},_ariaLabelledByChanged:function(W){this._focusableElement.setAttribute("aria-labelledby",W)},
_ariaDescribedByChanged:function(W){this._focusableElement.setAttribute("aria-describedby",W)},
get _focusableElement(){return this.inputElement.textarea}});var Tnb;var r3m;/*

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 iod=function(){};
_.J=iod.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
iod=_.vM({is:"tp-yt-paper-toggle-button",_template:function(){if(r3m!==void 0)return r3m;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Tnb===void 0&&(Tnb=document.createElement("template"));var I=Tnb;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return r3m=W},
behaviors:[_.UIm],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");_.Xm(this,function(){_.GY(this,"pan-y")})},
_ontrack:function(W){W=W.detail;W.state==="start"?this._trackStart(W):W.state==="track"?this._trackMove(W):W.state==="end"&&this._trackEnd(W)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(W){W=W.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+W:W)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+W:W));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 W=l7._createRipple();W.id="ink";W.setAttribute("recenters","");W.classList.add("circle","toggle-ink");return W}});var RJW;var F0d;_.vM({_template:function(){if(F0d!==void 0)return F0d;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;RJW===void 0&&(RJW=document.createElement("template"));var I=RJW;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return F0d=W},
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 W=_.VS(this).parentNode,P=_.VS(this).getOwnerRoot(),x;this.for?x=_.VS(P).querySelector("#"+this.for):x=W.nodeType==Node.DOCUMENT_FRAGMENT_NODE?P.host:W;return x},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(W){W==="entry"?this.show():W==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.VS(this).textContent.trim()===""){for(var W=!0,P=_.VS(this).getEffectiveChildNodes(),x=0;x<P.length;x++)if(P[x].textContent.trim()!==""){W=!1;break}if(W)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 W=this.offset;this.marginTop!=14&&this.offset==14&&(W=this.marginTop);var P=this.offsetParent.getBoundingClientRect(),x=this._target.getBoundingClientRect(),I=this.getBoundingClientRect(),O=(x.width-I.width)/2,B=(x.height-I.height)/2,Y=x.left-P.left,K=x.top-P.top;switch(this.position){case "top":var Z=Y+O;var d=K-I.height-W;break;case "bottom":Z=Y+O;d=K+x.height+W;break;case "left":Z=Y-I.width-W;d=K+B;break;case "right":Z=Y+x.width+
W,d=K+B}this.fitToVisibleBounds?(P.left+Z+I.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,Z)+"px",this.style.right="auto"),P.top+d+I.height>window.innerHeight?(this.style.bottom=P.height+"px",this.style.top="auto"):(this.style.top=Math.max(-P.top,d)+"px",this.style.bottom="auto")):(this.style.left=Z+"px",this.style.top=d+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(W){W!==500&&this.updateStyles({"--paper-tooltip-delay-in":W+"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(W){if(W==="entry"&&this.animationEntry!=="")return this.animationEntry;if(W==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[W]&&typeof this.animationConfig[W][0].name==="string"){if(this.animationConfig[W][0].timing&&this.animationConfig[W][0].timing.delay&&this.animationConfig[W][0].timing.delay!==0){var P=this.animationConfig[W][0].timing.delay;W==="entry"?this.updateStyles({"--paper-tooltip-delay-in":P+"ms"}):W==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":P+
"ms"})}return this.animationConfig[W][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 qrc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(qrc,_.aK);var L0w=_.Lx(qrc,[0,_.F0]);var i7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(i7,_.aK);var WfP=[3,4],P4d=[5,6];var x$m=[0,WfP,P4d,_.x5k,-1,_.Rd,_.ISi,-1,xJR,I7W];var Isk=_.Lx(i7,x$m),OPi=_.W6(x$m);var JMi=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(JMi,_.aK);var Bhl=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Bhl,_.aK);var ncZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(ncZ,_.aK);var Yew=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Yew,_.aK);var yMP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(yMP,_.aK);var Rn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Rn,_.aK);Rn.prototype.getSource=function(){return _.$5(this,1)};
Rn.prototype.getMessage=function(){return _.MY(this,4)};
Rn.prototype.getData=function(){return _.qM(this,yMP,8)};var Kfd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Kfd,_.aK);var Fs=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Fs,_.aK);var qK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(qK,_.aK);var LT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(LT,_.aK);LT.prototype.getUrl=function(){return _.MY(this,1)};
LT.prototype.setUrl=function(W){return _.SU(this,1,W)};
LT.prototype.hasUrl=function(){return _.aG(_.mS(this,1))!=null};var ZPZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(ZPZ,_.aK);var ocz=[3];var Se3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Se3,_.aK);var WA=function(W){var P=new Se3;return _.Lj(P,2,W)};
Se3.prototype.getLanguage=function(){return h8(this,4,PA)};
var u3p=function(W){var P=WA(1);return _.O0(P,6,PA,W)},PA=[3,
4,5,6];var d$P=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(d$P,_.aK);var xZ=function(W){var P=new d$P;return _.Lj(P,1,W)},I9=function(W,P){return _.O0(W,2,szP,P)},szP=[2,
3,4,5];var vcP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(vcP,_.aK);var Ot=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Ot,_.aK);var m$P=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(m$P,_.aK);var V_i=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(V_i,_.aK);var t_l=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(t_l,_.aK);var pXk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(pXk,_.aK);var jzm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(jzm,_.aK);var Jc=function(W){return _.qM(W,qK,5)};var Qz3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Qz3,_.aK);Qz3.prototype.getValue=function(){return gg(this,1)};var C4c=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(C4c,_.aK);var BA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(BA,_.aK);BA.prototype.getMetadata=function(){return _.HI(this,t_l,7,nw)};
BA.prototype.hasMetadata=function(){return _.t8(this,t_l,7,nw)};
var AMp=_.x5S(BA),nw=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var YZ=function(W){this.JSC$9828_name_=W;this.files_=[];this.directories_=[];this.directoryMap_={}};
YZ.prototype.getName=function(){return this.JSC$9828_name_};var Kw=function(W,P){this.callback_=P;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new YZ("");zup(this,W,this.rootDirectory_);y$(this)},zup=function(W,P,x){for(var I=0;I<P.length;I++){var O=P[I];
O.isFile?(W.fileOps_++,O.file((0,_.mx)(W.handleFileSuccess_,W,x),(0,_.mx)(W.handleFileError_,W))):W.unscannedDirectories_.push(new GcW(O,x))}},y$=function(W){if(W.unscannedDirectories_.length>0&&W.directoryOps_<5&&!W.hasError_){W.directoryOps_++;
var P=W.unscannedDirectories_.shift(),x=P.entry,I=new YZ(x.name);P=P.parent;P.directoryMap_[I.getName()]=I;P.directories_.push(I);x=x.createReader();x.readEntries((0,_.mx)(W.handleDirectorySuccess_,W,x,I),(0,_.mx)(W.handleDirectoryError_,W))}W.directoryOps_!=0||W.fileOps_!=0||W.unscannedDirectories_.length!=0&&!W.hasError_||W.callback_(W.rootDirectory_.files_,W.rootDirectory_.directories_,W.hasError_)};
Kw.prototype.handleDirectorySuccess_=function(W,P,x){zup(this,x,P);x.length==0?(this.directoryOps_--,y$(this)):W.readEntries((0,_.mx)(this.handleDirectorySuccess_,this,W,P),(0,_.mx)(this.handleDirectoryError_,this))};
Kw.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;y$(this)};
Kw.prototype.handleFileSuccess_=function(W,P){W.files_.push(P);this.fileOps_--;y$(this)};
Kw.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;y$(this)};
var GcW=function(W,P){this.entry=W;this.parent=P};var Zy=function(W){_.tW.call(this);_.uq(W,"drop",this.onObjectsDropped_,!1,this);_.uq(W,"dragenter",this.onFilesDragged_,!1,this);_.uq(W,"dragover",this.onFilesDragged_,!1,this);_.uq(W,"dragleave",this.onDragLeave_,!1,this);_.uq(W,"dragend",this.onDragLeave_,!1,this)};
_.J8(Zy,_.tW);var Ecd=function(W,P){_.d0.call(this,"f");this.files=W;this.directories=P};
_.J8(Ecd,_.d0);var gcM=function(){_.d0.call(this,"h")};
_.J8(gcM,_.d0);var D$k=function(){_.d0.call(this,"i")};
_.J8(D$k,_.d0);var M_c=function(){_.d0.call(this,"g")};
_.J8(M_c,_.d0);Zy.prototype.onObjectsDropped_=function(W){var P=this;W.preventDefault();var x=W.event_.dataTransfer;if((W=x&&x.items)&&W.length>0&&W[0].webkitGetAsEntry){x=[];for(var I=[],O=0;O<W.length;O++){var B=W[O].webkitGetAsEntry();B?x.push(B):I.push(W[O])}new Kw(x,function(Y,K,Z){Z?P.dispatchEvent(new M_c("Error occurred while reading from the file system.")):P.dispatchEvent(new Ecd(Y,K,I))})}else(W=x&&x.files)&&this.dispatchEvent(new Ecd(Array.from(W),[]))};
Zy.prototype.onFilesDragged_=function(W){W.type==="dragenter"&&this.dispatchEvent(new gcM);W.preventDefault()};
Zy.prototype.onDragLeave_=function(){this.dispatchEvent(new D$k)};var $$i=function(W,P){this.JSC$9851_name_=W;this.inputElement_=P};
$$i.prototype.getName=function(){return this.JSC$9851_name_};
$$i.prototype.getInputElement=function(){return this.inputElement_};var o9=function(W,P,x){P=P===void 0?"single_file":P;x=x===void 0?[]:x;_.tW.call(this);this.overlayTarget_=W;this.parentOverlay_=W!=null?W.parentNode:_.ZV("scotty-overlay-parent");this.selectorType_=P;this.acceptTypes_=x;this.overlay_=wXd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.A(o9,_.tW);
var wXd=function(W,P,x,I){var O=document.createElement("input");O.setAttribute("type","file");O.setAttribute("name","Filedata");_.uq(O,"change",W.onFilesSelected_,!1,W);x==="multiple_file"&&(O.multiple="true");x==="single_directory"&&(O.webkitdirectory="true");I.length>0&&O.setAttribute("accept",I.join(","));O.style.position="absolute";O.style.overflow="hidden";O.style.height="0px";O.style.width="0px";O.style.opacity="0";O.setAttribute("aria-hidden","true");O.setAttribute("tabIndex",-1);if(W.overlayTarget_!=
null)return O.style.height=P.offsetHeight+"px",O.style.width=P.offsetWidth+"px",W.parentOverlay_&&(W.parentOverlay_.style.position="relative"),_.MQ(O,P),cx(O,new _.Al(P.offsetLeft,P.offsetTop)),O;W.parentOverlay_.appendChild(O);return O};
o9.prototype.click=function(){this.overlay_.click()};
o9.prototype.onFilesSelected_=function(W){a:{try{var P=(new XMLHttpRequest).upload!==void 0;break a}catch(d){}P=!1}if(P){var x;W=Array.from((x=W.target.files)!=null?x:[]);x=[];if(this.selectorType_==="single_directory"&&(_.Z2||fj||_.KW)){x=new YZ("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(P=0;P<W.length;P++)for(var I=W[P],O=I.webkitRelativePath.split("/"),B=x,Y=0;Y<O.length;Y++){var K=O[Y];if(Y==O.length-1){K!="."&&B.files_.push(I);break}var Z=B.directoryMap_[K];Z==void 0&&(K=
Z=new YZ(K),B.directoryMap_[K.getName()]=K,B.directories_.push(K));B=Z}x=x.directories_}this.dispatchEvent(new huc(W,x,null))}else W=W.target.value,W.match(/^c:\\fakepath\\/i)&&(W=W.substring(12)),this.dispatchEvent(new huc([],[],new $$i(W,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=wXd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var huc=function(W,P){_.d0.call(this,"j");this.files=W;this.directories=P};
_.A(huc,_.d0);var HPA=function(W){this.uploadUrl_=W};var eui=function(){_.tW.call(this)};
_.J8(eui,_.tW);var SO=function(W){_.d0.call(this,W)};
_.J8(SO,_.d0);var uG=function(W){_.d0.call(this,W)};
_.J8(uG,_.d0);var cM3=function(W,P,x,I,O){_.tW.call(this);x=document.createElement("form");x.setAttribute("method",P);x.setAttribute("enctype","multipart/form-data");x.setAttribute("encoding","multipart/form-data");P=document.createElement("input");P.setAttribute("type","hidden");P.setAttribute("name","metadata");P.setAttribute("value",O);x.appendChild(P);x.appendChild(I);this.JSC$9868_form_=x;W=new _.Xu(W);_.aE(W,"upload_protocol","multipart");this.JSC$9868_url_=W.toString();this.JSC$9868_request_=new Lh;this.state_=
"Ready";this.JSC$9868_errorDescription_=null;this.JSC$9868_eventHandler_=new _.q1(this);_.nU(this,this.JSC$9868_eventHandler_);this.JSC$9868_eventHandler_.listen(this.JSC$9868_request_,"success",this.onTransferSuccess_);this.JSC$9868_eventHandler_.listen(this.JSC$9868_request_,"error",this.onTransferError_)};
_.A(cM3,eui);_.J=cM3.prototype;_.J.run=function(){this.state_="Transferring";var W=this.JSC$9868_request_,P=this.JSC$9868_form_;if(W.JSC$9286_active_)throw Error("oe");var x=new _.Xu(this.JSC$9868_url_||P.action);W.JSC$9286_form_=P;P=W.JSC$9286_form_;x=_.Q4(x.toString());x!==void 0&&(P.action=x);SZc(W)};
_.J.getResponseCode=function(){return null};
_.J.getResponseText=function(){return this.JSC$9868_request_&&this.JSC$9868_request_.getResponseText()||null};
_.J.JSC$25720_getErrorDescription=function(){return this.JSC$9868_errorDescription_};
_.J.cancel=function(){this.JSC$9868_request_&&this.JSC$9868_request_.abort();this.state_="Cancelled";this.dispatchEvent(new SO("o"))};
_.J.pause=function(){};
_.J.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new SO("l"))};
_.J.onTransferError_=function(){this.JSC$9868_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new SO("n"))};var d6=function(){_.E7.call(this)};
_.A(d6,_.E7);d6.prototype.createXhr=function(){var W=_.E7.prototype.createXhr.call(this);W.upload&&(W.upload.onprogress=(0,_.mx)(this.onProgress_,this));return W};
d6.prototype.onProgress_=function(W){this.dispatchEvent(W)};var asm=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},kcl=function(W,P){var x=W.attempt_+1;
if(W.maxAttempts_>0&&x>W.maxAttempts_)return!1;x==0?P():W.delayCallId_=AW(function(){W.delayCallId_=null;P()},bPP(W),W);
W.attempt_=x;return!0};
asm.prototype.reset=function(){this.delayCallId_&&_.xW.clearTimeout(this.delayCallId_);this.attempt_=-1};
var bPP=function(W){var P=250*Math.pow(2,W.attempt_);W.maxDelayMs_>=0&&(P=Math.min(P,W.maxDelayMs_));return P};var l97=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var st=function(){_.tW.call(this);this.JSC$9878_request_=this.state_=null;this.JSC$9878_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9878_bytesTransferred_=0;this.retryIterator_=new asm;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9878_errorDescription_=null;this.JSC$9878_eventHandler_=new _.q1(this);_.nU(this,this.JSC$9878_eventHandler_);this.JSC$9878_url_=this.blob_=null;this.JSC$9878_method_=void 0;this.chunkSize_=this.JSC$9878_metadata_=
this.JSC$9878_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9878_responseText_=this.JSC$9878_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.J8(st,eui);_.J=st.prototype;_.J.run=function(){vA(this)};
_.J.getResponseCode=function(){return this.JSC$9878_responseCode_};
_.J.getResponseText=function(){return this.JSC$9878_responseText_};
_.J.JSC$25720_getErrorDescription=function(){return this.JSC$9878_errorDescription_};
_.J.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9878_eventHandler_.removeAll();this.JSC$9878_request_&&this.JSC$9878_request_.abort();this.retryIterator_.reset();var W=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(W==="Upload"||W==="Query")W=new d6,W.JSC$7701_withCredentials_=this.JSC$9878_withCredentials_,W.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9878_bytesTransferred_=
0;this.dispatchEvent(new SO("o"))}};
_.J.pause=function(){this.pauseRequested_=!0};
var vA=function(W){var P=W.state_;W.pauseRequested_?(W.pauseRequested_=!1,W.stateAfterUnpausing_=P,W.state_="Paused"):kcl(W.retryIterator_,function(){switch(W.state_){case "Start":W.JSC$9878_request_=new d6;var x=_.jU.clone(W.JSC$9878_headers_);W.blob_.size!=null&&(x["Content-Length"]=W.blob_.size);x=TNo(x);x["X-Goog-Upload-Protocol"]="resumable";x["X-Goog-Upload-Command"]="start";W.JSC$9878_eventHandler_.removeAll();W.JSC$9878_eventHandler_.listen(W.JSC$9878_request_,"complete",W.onStartComplete_);
W.JSC$9878_request_.JSC$7701_withCredentials_=W.JSC$9878_withCredentials_;W.JSC$9878_request_.send(W.JSC$9878_url_,W.JSC$9878_method_,W.JSC$9878_metadata_,x);W.lastCommandResponseCode_=null;W.dispatchEvent(new uG("q"));break;case "Upload":x=W.transferHandle_.uploadUrl_;var I=W.blob_.size;if(LWi()){var O=W.chunkSize_;var B=W.offset_+O>=I;I=qyZ(W.blob_,W.offset_,B?I:W.offset_+O)}else W.offset_=0,I=W.blob_,B=!0;W.JSC$9878_request_=new d6;W.JSC$9878_request_.JSC$7701_withCredentials_=W.JSC$9878_withCredentials_;
W.JSC$9878_eventHandler_.removeAll();W.JSC$9878_eventHandler_.listen(W.JSC$9878_request_,"progress",W.onUploadProgress_);O=(0,_.mx)(W.JSC$9880_onUploadComplete_,W,W.offset_+I.size,B);W.JSC$9878_eventHandler_.listen(W.JSC$9878_request_,"complete",O);W.lastCommandResponseCode_=null;W.dispatchEvent(new uG("q"));B=Object.assign({},W.JSC$9878_headers_||{},{"X-Goog-Upload-Command":"upload"+(B?", finalize":""),"X-Goog-Upload-Offset":W.offset_});W.JSC$9878_request_.send(x,"POST",I,B);break;case "Query":W.JSC$9878_request_=
new d6;W.JSC$9878_eventHandler_.removeAll();W.JSC$9878_eventHandler_.listen(W.JSC$9878_request_,"complete",W.onQueryComplete_);x=Object.assign({},W.JSC$9878_headers_||{},{"X-Goog-Upload-Command":"query"});W.JSC$9878_request_.send(W.transferHandle_.uploadUrl_,"POST","",x);W.lastCommandResponseCode_=null;W.dispatchEvent(new uG("q"));break;default:throw Error("df");}})||m4(W,"Transfer encountered too many consecutive failures.")},m4=function(W,P){W.state_="Error";
W.JSC$9878_errorDescription_=P;W.dispatchEvent(new SO("n"))};
st.prototype.onStartComplete_=function(W){var P=W.target;this.lastCommandResponseCode_=P.getStatus();this.dispatchEvent(new uG("r"));if(U$z(P))XXl(this,P);else if(fsc(P)){W=XJ(W.target.getAllResponseHeaders());for(var x in W)_.Bd(x.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new SO("m"));x=pf(W,"X-Goog-Upload-URL");W=(W=pf(W,"X-Goog-Upload-Chunk-Granularity"))?parseInt(W,10):1;x===void 0||isNaN(W)||W<=0?m4(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
W)*W,this.transferHandle_=new HPA(x),this.dispatchEvent(new SO("p")),this.state_="Upload",this.retryIterator_.reset(),vA(this))}else vA(this)};
st.prototype.onUploadProgress_=function(W){this.JSC$9878_bytesTransferred_=this.offset_+W.loaded;this.dispatchEvent(new SO("k"))};
st.prototype.JSC$9880_onUploadComplete_=function(W,P,x){var I=this,O,B;return _.y(function(Y){switch(Y.nextAddress){case 1:O=x.target;I.lastCommandResponseCode_=O.getStatus();I.dispatchEvent(new uG("r"));if(Nh3(O)||O.getStatus()==404)return I.JSC$9878_bytesTransferred_=W,XXl(I,O),Y.return();if(fsc(O)){Y.jumpTo(2);break}if(!(B=I.detectCorruptedBlobEnabled_)){Y.jumpTo(3);break}return _.S(Y,lsM(I),4);case 4:B=Y.yieldResult;case 3:if(B)return m4(I,"Blob has been modified or corrupted."),Y.return();I.requireUploadRequestModification_=
O.getStatus()==400;I.state_="Query";vA(I);return Y.return();case 2:if(P)return m4(I,"Got a non-final success response after issuing a finalize command."),Y.return();I.JSC$9878_bytesTransferred_=W;I.offset_=W;I.retryIterator_.reset();vA(I);return Y.return()}})};
st.prototype.onQueryComplete_=function(W){var P=W.target;this.lastCommandResponseCode_=P.getStatus();this.dispatchEvent(new uG("r"));U$z(P)?(P.getStatus()===200&&(this.JSC$9878_bytesTransferred_=this.blob_.size),XXl(this,P)):fsc(P)?(W=XJ(W.target.getAllResponseHeaders()),W=parseInt(pf(W,"X-Goog-Upload-Size-Received"),10),isNaN(W)?m4(this,"Server did not respond with current offset."):W<this.offset_?m4(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
W+"."):this.requireUploadRequestModification_&&this.offset_===W?m4(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<W&&this.retryIterator_.reset(),this.offset_=this.JSC$9878_bytesTransferred_=W,this.state_="Upload",vA(this))):vA(this)};
var XXl=function(W,P){W.JSC$9878_responseCode_=P.getStatus();var x=XJ(P.getAllResponseHeaders());r6U(x);W.JSC$9878_responseText_=P.getResponseText();W.state_="Response received";W.dispatchEvent(new SO("l"))},fsc=function(W){var P=W.getStatus();
W=XJ(W.getAllResponseHeaders());W=pf(W,"X-Goog-Upload-Status");return P===200&&W==="active"},Nh3=function(W){W=XJ(W.getAllResponseHeaders());
return pf(W,"X-Goog-Upload-Status")==="final"},U$z=function(W){if(Nh3(W))return!0;
W=W.getStatus();return W>=400&&W<500},lsM=function(W){var P;
return _.y(function(x){if(x.nextAddress==1){if(!W.blob_||W.originalBlobSize_<=0)return x.return(!1);if(W.blob_.size!==W.originalBlobSize_)return x.return(!0);_.OT(x,2);if(P=qyZ(W.blob_,0,1)){var I=new eY,O=gzd(I);I.reader_.readAsBinaryString(P);x=_.S(x,O,4)}else x=x.return(!0);return x}if(x.nextAddress!=2)return x.return(W.blob_.size!==W.originalBlobSize_);_.yn(x);return x.return(!0)})};var Thw=function(W,P,x,I,O,B){_.tW.call(this);this.payload_=I;this.JSC$9881_url_=W;this.JSC$9881_method_=P;this.JSC$9881_headers_=x;this.JSC$9881_metadata_=O;this.encoding_=B||"binary";W=new _.jY;this.boundary_="uploader-"+Hn()+"-"+W.JSC$9135_toIsoString();this.JSC$9881_responseText_=this.JSC$9881_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9881_errorDescription_=null;this.JSC$9881_eventHandler_=new _.q1(this);_.nU(this,this.JSC$9881_eventHandler_)};
_.A(Thw,eui);_.J=Thw.prototype;
_.J.run=function(){var W=_.jU.clone(this.JSC$9881_headers_);this.payload_.length!=null&&(W["Content-Length"]=this.payload_.length);W=TNo(W);W["X-Goog-Upload-Protocol"]="multipart";W["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new d6;this.JSC$9881_eventHandler_.removeAll();this.JSC$9881_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9881_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9881_url_,this.JSC$9881_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9881_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",W)};
_.J.getResponseCode=function(){return this.JSC$9881_responseCode_};
_.J.getResponseText=function(){return this.JSC$9881_responseText_};
_.J.JSC$25720_getErrorDescription=function(){return this.JSC$9881_errorDescription_};
_.J.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9881_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new SO("o")))};
_.J.pause=function(){};
_.J.onTransferProgress_=function(){this.dispatchEvent(new SO("k"))};
_.J.onTransferComplete_=function(W){var P=W.target.getStatus();P===void 0||P===-1?(this.JSC$9881_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new SO("n"))):(this.JSC$9881_responseCode_=P,W=W.target,P=XJ(W.getAllResponseHeaders()),r6U(P),this.JSC$9881_responseText_=W.getResponseText(),this.state_="Complete",this.dispatchEvent(new SO("l")))};_.rM3=function(W,P,x,I){I=I===void 0?!1:I;if(x instanceof $$i)return new cM3(W,"POST",P,x.getInputElement(),"");if(typeof x==="string"||x instanceof String)return new Thw(W,"POST",P,x,"");var O=new st(void 0);O.JSC$9878_url_=W;O.JSC$9878_method_="POST";O.JSC$9878_headers_=P;O.blob_=x;O.originalBlobSize_=x.size;O.JSC$9878_metadata_="";I&&(O.JSC$9878_withCredentials_=I);O.state_="Start";return O};var V$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(V$,_.aK);_.J=V$.prototype;_.J.getEnableSsEngine=function(){return _.E1(this,2)};
_.J.getEnableAwr=function(){return _.E1(this,3)};
_.J.getAlohaAutoGaRollout=function(){return _.E1(this,5)};
_.J.getEnableConfigurator=function(){return _.E1(this,6)};
_.J.getEnableMweb=function(){return _.E1(this,7)};
var RuM=function(){var W=iPP();return _.Cf(W,7,!0)};
V$.prototype.getEnableCtlConsentCheckbox=function(){return _.E1(this,8)};
V$.prototype.getEnableIframe=function(){return _.E1(this,9)};
var iPP=function(){var W=new V$;W=_.Cf(W,5,!0);W=_.Cf(W,2,!0);W=_.Cf(W,4,!1);W=_.Cf(W,8,!0);return _.Cf(W,9,!0)};
V$.prototype.getEnableScreenshotNudge=function(){return _.E1(this,10)};
var FfW=function(){var W=RuM();return _.Cf(W,10,!0)};
V$.prototype.getEnableWebStartupConfigEndpoint=function(){return _.E1(this,11)};
V$.prototype.getEnableJunkNudge=function(){return _.E1(this,12)};
var ZAt=function(){var W=FfW();return _.Cf(W,12,!0)};
_.J=V$.prototype;_.J.getEnableConfiguratorLocale=function(){return _.E1(this,13)};
_.J.getEnableTinyNoPointer=function(){return _.E1(this,14)};
_.J.getEnableSupportSessionLogging=function(){return _.E1(this,15)};
_.J.getEnableFileUploadForScreenshot=function(){return _.E1(this,16)};
_.J.getEnableDirectDeflectionForSingleCategory=function(){return _.E1(this,17)};
_.J.getEnableImageSanitization=function(){return _.E1(this,18)};
_.J.getEnableAlohaBinarySplit=function(){return _.E1(this,19)};
_.J.getEnableDbFeedbackIntents=function(){return _.E1(this,20)};
_.J.getEnableMarkMandatoryFieldsWithRequired=function(){return _.E1(this,21)};
_.J.getEnableFeedbackCategoryCustomUi=function(){return _.E1(this,22)};
_.J.getEnableRealtimeCtl=function(){return _.E1(this,23)};var Kzo=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Kzo,_.aK);var idm=[/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 FeC="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 qF7=_.i4(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Le8=_.i4(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Pko,IGU;var qeb,Lfp;
qeb=function(W,P,x){W.timeOfStartCall=(new Date).getTime();var I=x||_.xW,O=I.document,B=W.nonce||_.$H(I.document);B&&!W.nonce&&(W.nonce=B);if(W.flow=="help"){var Y=_.eL("document.location.href",I);!W.helpCenterContext&&Y&&(W.helpCenterContext=Y.substring(0,1200));Y=!0;if(P&&JSON&&JSON.stringify){var K=JSON.stringify(P);(Y=K.length<=1200)&&(W.psdJson=K)}Y||(P={invalidPsd:!0})}P=[W,P,x];I.GOOGLE_FEEDBACK_START_ARGUMENTS=P;x=W.feedbackServerUri||"//www.google.com/tools/feedback";if(Y=I.GOOGLE_FEEDBACK_START)Y.apply(I,P);
else{I=x+"/load.js?";for(var Z in W)P=W[Z],P==null||_.Jw(P)||(I+=encodeURIComponent(Z)+"="+encodeURIComponent(P)+"&");W=oQ(O).createElement("SCRIPT");B&&W.setAttribute("nonce",B);_.c6(W,_.YH(I));O.body.appendChild(W)}};
Lfp=function(W,P,x,I){var O,B;_.y(function(Y){O=x||_.xW;var K=W.serverEnvironment==="DEV",Z=x||_.xW;Z=W.nonce||_.$H(Z.document);K={integrationKeys:{productId:W.productId,feedbackBucket:W.bucket,triggerId:W.triggerId},callbacks:{onClose:W.callback,onLoad:W.onLoadCallback},formContent:{locale:W.locale,disableScreenshot:W.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:W.abuseLink,additionalDataConsent:W.additionalDataConsent},initializationData:{isLocalServer:K,nonce:Z,useNightlyRelease:K,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:W.feedbackServerUri,colorScheme:W.colorScheme},extraData:{productVersion:W.productVersion,authUser:W.authuser,configuratorId:W.configuratorId,customZIndex:W.customZIndex,tinyNoPointer:W.tinyNoPointer,
allowNonLoggedInFeedback:W.allowNonLoggedInFeedback,enableAnonymousFeedback:W.enableAnonymousFeedback}};P&&(Z=new Map(Object.entries(P)),K.extraData.productSpecificData=Z);B=K;return _.S(Y,nfC(B,I,O),0)})};
_.WSW=function(W,P,x){try{if(W.flow==="help"){var I=W.helpCenterPath.replace(/^\//,"");_.ME(x||window,"https://support.google.com/"+I)}else W.flow==="submit"?qeb(W,P,x):ofR(W.productId,W.feedbackServerUri).then(function(O){O=_.qM(O,V$,1);var B=!j57||(O==null?void 0:O.getEnableMweb()),Y=!W.tinyNoPointer||(O==null?void 0:O.getEnableTinyNoPointer());!O||O.getAlohaAutoGaRollout()&&B&&Y?Lfp(W,P,x,O):qeb(W,P,x)},function(O){O&&O.name!=="DuplicateFormError"&&qeb(W,P,x)})}catch(O){Lfp(W,P,x,null)}};
_.lA("userfeedback.api.startFeedback",_.WSW);var S7G=/https?:\/\/\S+\.\S+/,uMd=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],dmt=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var uAm=function(W){var P=W.split(""),x=[-263237435,15,P,function(I,O,B){var Y=O.length;B.forEach(function(K,Z,d){this.push(d[Z]=O[(O.indexOf(K)-O.indexOf(this[Z])+Z+Y--)%O.length])},I.split(""))},
function(I,O){I=(I%O.length+O.length)%O.length;O.splice(-I).reverse().forEach(function(B){O.unshift(B)})},
"response",function(){for(var I=64,O=[];++I-O.length-32;){switch(I){case 58:I-=14;case 91:case 92:case 93:continue;case 123:I=47;case 94:case 95:case 96:continue;case 46:I=95}O.push(String.fromCharCode(I))}return O},
null,12,1540023973,65941107,null,P,function(I,O){for(I=(I%O.length+O.length)%O.length;I--;)O.unshift(O.pop())},
695603893,function(I){for(var O=I.length;O;)I.push(I.splice(--O,1)[0])},
"'[;'[(",function(I,O){I.push(O)},
null,function(I,O,B,Y,K){return O(B,Y,K)},
"continuation",P,function(I,O){if(I.length!=0){O=(O%I.length+I.length)%I.length;var B=I[0];I[0]=I[O];I[O]=B}},
function(){for(var I=64,O=[];++I-O.length-32;){switch(I){case 91:I=44;continue;case 123:I=65;break;case 65:I-=18;continue;case 58:I=96;continue;case 46:I=95}O.push(String.fromCharCode(I))}return O},
'"),/]];'];x[7]=x;x[11]=x;x[18]=x;try{(((0,x[15])(x[21]),x[22])(x[11],x[9]),x[22])(x[new Date("1970-01-01T04:30:12.000+04:30")/1E3],x[1]),((0,x[22])(x[11],x[23]),x[4])(x[10],x[18]),(0,x[20])(x[21],x[14])<<(0,x[17])(x[18],x[1]),(0,x[4])(x[8],x[21]),(0,x[19])((0,x[19])((0,x[17])(x[7],x[9]),x[3],x[20],(0,x[6])(),x[2]),x[3],x[5],(0,x[15])(),x[2])}catch(I){return"aTlOUOubTO4AP____8P_"+W}return P.join("")};_.P9z=new _.R("runAttestationCommand");var xYA=new _.R("verifyCommand");_.TS=new _.R("accessibilityContext");var I2m=new _.R("accessibilityData");var OWM=new _.R("profileCardCommand");var AXC=new _.R("signInEndpoint");var CuU=new _.R("signOutEndpoint");var Bgk;_.J8Z=new _.R("accountItemSectionRenderer");Bgk=new _.R("accountItemRenderer");_.n5Z=new _.R("saveCommandToSessionStorageAction");var Y1z=new _.R("crossAccountChannelTransferEndpoint");var jJd=new _.R("getAccountMenuEndpoint");_.QJU=new _.R("getAccountSwitcherEndpoint");var pl7=new _.R("getAccountsListEndpoint");var y8c=new _.R("getAccountsListInnertubeEndpoint");_.KS3=new _.R("addToToastAction");var ZWP=new _.R("hideEnclosingAction");_.tc=new _.R("replaceEnclosingAction");var o5c=new _.R("buttonRefreshAction");var S1d=new _.R("adsControlFlowOpportunityReceivedCommand");var u0M=new _.R("openAdAllowlistInstructionCommand");var dYd=new _.R("videoMastheadAdPrimaryVideoRenderer");var sdw=new _.R("displayAdRenderer");var Pb8=new _.R("instreamVideoAdRenderer");_.v5b=new _.R("inFeedAdLayoutRenderer");var mYc=new _.R("sequenceItemInPlayerAdLayoutRenderer");_.Vec=new _.R("adSlotRenderer");var tem=new _.R("adAvatarViewModel");var pIi=new _.R("adBadgeViewModel");var jdp=new _.R("adButtonViewModel");var pw=new _.R("adImageViewModel");var Dqo=new _.R("reelsAdCardButtonedViewModel");var QdP=new _.R("reelsPlayerOverlayLayoutViewModel");var C9p=new _.R("showSchedulingPanelCommand");var A8z=new _.R("backstageCommentsRenderer");var zwd=new _.R("backstageImageRenderer");var Gei=new _.R("backstagePostRenderer");var E5z=new _.R("postRenderer");var g5l=new _.R("sharedPostRenderer");var DYk=new _.R("createBackstagePostEndpoint");var Mez=new _.R("getPostVideoPreviewEndpoint");var $YZ=new _.R("updateBackstagePostEndpoint");var wI3=new _.R("filterChipTransformCommand");var hwc=new _.R("insertRichSectionCommand");var WKU=new _.R("talkToRecsDeselectCommand");var HWM=new _.R("talkToRecsNextCommand");var LF7=new _.R("talkToRecsSelectCommand");var ewM=new _.R("talkToRecsUpdateTextCommand");_.KL=new _.R("browseEndpoint");_.c8P=new _.R("confirmDialogEndpoint");var a2i=new _.R("expandOnHoverCardRenderer");var bWm=new _.R("lumiereShelfDetailsRenderer");var kep=new _.R("revealBusinessEmailCommand");var UYl=new _.R("validateChannelHandleCommand");var XIm=new _.R("channelCreationFormEndpoint");var f2Z=new _.R("aboutChannelViewModel");var Ngc=new _.R("channelThumbnailWithLinkRenderer");var l2Z=new _.R("channelCreationServiceEndpoint");var Tgw=new _.R("updateChannelPageSettingsEndpoint");var jO=function(W){this.delegate=W},Q$=function(){jO.apply(this,arguments)};
_.A(Q$,jO);_.N1.Object.defineProperties(Q$.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(W){this.delegate.entityMetadata=W}}});var r8M=function(){Q$.apply(this,arguments)};
_.A(r8M,Q$);r8M.prototype.getAssociations=function(){return[]};var cGx=new _.R("webThumbnailDetailsExtensionData");var lr=new _.R("commandContext");var iWP=new _.R("addVideoLinkAction");var Rwb=new _.R("createPollAction");var FSi=new _.R("hideIdentityChipAction");var q1z=new _.R("openUpdateCommentDialogAction");var Cw=new _.R("updateBackstagePollAction");var LS3=new _.R("updateCommentVoteAction");var We3=new _.R("commentThreadRenderer");var PYz=function(){Q$.apply(this,arguments)};
_.A(PYz,Q$);PYz.prototype.getAssociations=function(){return[]};_.xQc=new _.R("commentDialogRenderer");var I9i=new _.R("updateCommentsSettingsEndpoint");var Od3=new _.R("commentViewModel");var J6k=new _.R("triStateButtonViewModel");var BNA=new _.R("voiceReplyContainerViewModel");_.B7=new _.R("commandExecutorCommand");var jS=new _.R("emoji");var n_Z=new _.R("updateCreatorChannelInnertubeCommand");_.YFz=new _.R("appendContinuationItemsAction");_.y6m=new _.R("changeEngagementPanelVisibilityAction");_.gL=new _.R("continuationCommand");var KeW=new _.R("listMutationCommand");_.Ac=new _.R("openPopupAction");var Zdk=new _.R("persistSubscriptionsDisplayPreferencesCommand");var VAP;_.o_l=new _.R("playlistRemoveVideosAction");_.SF3=new _.R("updatePlaylistAction");_.ufd=new _.R("addToPlaylistCommand");_.dQm=new _.R("endPlaylistCommand");_.s_i=new _.R("recoverPlaylistCommand");_.v_3=new _.R("refreshPlaylistCommand");_.mQP=new _.R("refreshFormCommand");VAP=new _.R("openOnePickAddVideoModalCommand");_.gIW=new _.R("reloadContinuationItemsCommand");_.tAW=new _.R("scrollToEngagementPanelCommand");var pxb=new _.R("selectCountryCommand");var j_z=new _.R("showReloadUiCommand");var Q_3=new _.R("undoFeedbackAction");var CYw=new _.R("updateButtonAction");var FMU=new _.R("updateSubscribeButtonAction");var A6Z=new _.R("updateToggleAction");var zRi=new _.R("webNativeShareCommand");_.rU=new _.R("webCommandMetadata");_.zN=new _.R("webHandleServiceEndpointExtension");var DXW=new _.R("webNavigationEndpointData");var GTP=new _.R("copyLinkCommand");var E_z=new _.R("playlistVotingRefreshPopupCommand");var g_l=new _.R("selectChipCommand");var DQd=new _.R("setCookieCommand");var MAd=new _.R("setLocalStorageCommand");var $Qp=new _.R("setPrefStorageEntryCommand");var eRm;_.wxm=new _.R("settingsUpdateCheckboxCommand");_.hRZ=new _.R("settingsUpdateTextCommand");_.Hdp=new _.R("settingsUpdateOptionsCommand");eRm=new _.R("settingsUpdateSwitchCommand");_.c6m=new _.R("settingsUpdateConnectedAppRendererCommand");var a9k=new _.R("updateTextInputFormFieldRendererCommand");var bdZ=new _.R("updateToggleButtonStateCommand");var kTA=new _.R("updateUrlParamCommand");var UQb=new _.R("webSubmitFormCommand");var XxM=new _.R("channelSwitcherPageRenderer"),f9w=new _.R("updateChannelSwitcherPageAction");_.Yc=new _.R("continuationItemRenderer");_.GN=new _.R("richItemRenderer");var NNc=new _.R("richSectionRenderer");_.l9b=new _.R("richShelfRenderer");_.TNW=new _.R("metadataBadgeRenderer");_.r6c=new _.R("multiPageMenuNotificationSectionRenderer");_.idM=new _.R("playlistLoopButtonStateRenderer");var RRk=new _.R("claimLegacyYoutubeChannelEndpoint");var Fep=new _.R("getNotificationMenuEndpoint");var qFb=new _.R("getSearchInVideoCommand");_.Lez=new _.R("getTranscriptEndpoint");_.Y6=new _.R("signalServiceEndpoint");var WzA=new _.R("verifyAgeEndpoint");var vxC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(vxC,_.aK);vxC.prototype.getPath=function(){return _.MY(this,1)};
vxC.prototype.getValue=function(){return _.MY(this,2)};var PkW=[0,_.rg,-1];var xmi=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(xmi,_.aK);var syS=_.Lx(xmi,[0,_.i9,PkW]);var IGc=new _.R("dismissalEndpoint");var OAZ=new _.R("elementsCommand");_.Ct=new _.R("innertubeCommand");var JWb=new _.R("multipleInlinePlaybackCommand");var uHx=new _.R("loggingDirectives");var B0Z=new _.R("acknowledgeChannelTouStrikeCommand");var nfp=function(){Q$.apply(this,arguments)};
_.A(nfp,Q$);nfp.prototype.getAssociations=function(){return[]};var Y7b=function(){Q$.apply(this,arguments)};
_.A(Y7b,Q$);Y7b.prototype.getAssociations=function(){return[]};var kC=new _.R("entityBatchUpdate");_.yWd=new _.R("entityUpdateCommand");var KzW=function(){Q$.apply(this,arguments)};
_.A(KzW,Q$);KzW.prototype.getAssociations=function(){var W=[];this.delegate.alternateChannel&&W.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&W.push.apply(W,_.ju(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&W.push(this.delegate.oneofChannelEntity);return[].concat(_.ju(new Set(W)))};var ZAl=function(){Q$.apply(this,arguments)};
_.A(ZAl,Q$);ZAl.prototype.getAssociations=function(){var W=[];this.delegate.entryCollection&&W.push(this.delegate.entryCollection);return[].concat(_.ju(new Set(W)))};
var ofP=function(){Q$.apply(this,arguments)};
_.A(ofP,Q$);ofP.prototype.getAssociations=function(){var W=[];this.delegate.parentPlaylist&&W.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var P=_.n(this.delegate.entries),x=P.next();!x.done;x=P.next())W.push.apply(W,_.ju((new S7Z(x.value)).getAssociations()));return[].concat(_.ju(new Set(W)))};
var S7Z=function(){jO.apply(this,arguments)};
_.A(S7Z,jO);S7Z.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);return[].concat(_.ju(new Set(W)))};var uMm=function(){Q$.apply(this,arguments)};
_.A(uMm,Q$);uMm.prototype.getAssociations=function(){var W=[];this.delegate.descriptionEntity&&W.push(this.delegate.descriptionEntity);this.delegate.creators&&W.push.apply(W,_.ju(this.delegate.creators));this.delegate.theBiggestFan&&W.push(this.delegate.theBiggestFan);return[].concat(_.ju(new Set(W)))};
var dml=function(){Q$.apply(this,arguments)};
_.A(dml,Q$);dml.prototype.getAssociations=function(){return[]};var s1k=new _.R("fantasyRosterViewModel");var vfM=new _.R("addFollowUpSurveyCommand");var mmz=new _.R("getSurveyCommand");var V3Z=new _.R("ratingSurveyOptionRenderer");_.hM=new _.R("feedbackEndpoint");var t3W=new _.R("reportHistoryTableCellRenderer"),p1b=new _.R("reportHistoryTableTextCellRenderer"),j1w=new _.R("reportHistoryTableReasonCellRenderer");_.Q1c=new _.R("flagEndpoint");var Ckp=new _.R("getFlowCommand");var AWl=new _.R("submitFormWithValidationFlowCommand");var z$P=function(){Q$.apply(this,arguments)};
_.A(z$P,Q$);z$P.prototype.getAssociations=function(){return[]};var GQA=new _.R("flowFormState");var Efc=new _.R("gameCardRenderer");var gfm=new _.R("accountLinkingStateChangedCommand");var DmW=function(){Q$.apply(this,arguments)};
_.A(DmW,Q$);DmW.prototype.getAssociations=function(){return[]};var M3p=new _.R("changeMiniAppPlayStateCommand");var $m3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A($m3,_.aK);var Et=[1,2,3];var w1P=[0,Et,FvC,_.qXR,f_C];var h$P=_.Lx($m3,w1P),HAM=_.W6(w1P);var e$p=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(e$p,_.aK);var cWZ=[0,_.NY,_.rg];var aG3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(aG3,_.aK);var bAW=[0,_.rg];var kQc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(kQc,_.aK);var Ump=function(W,P){return _.Lj(W,3,P)};var X1b=_.W6([0,1,cWZ,_.F0,bAW]);var fGP=new _.R("miniAppScoreChallengeViewModel");var N0P=new _.R("miniGameCardViewModel");var lGc=new _.R("teaserCardViewModel");var T0z=function(){Q$.apply(this,arguments)};
_.A(T0z,Q$);T0z.prototype.getAssociations=function(){return[]};_.rWP=new _.R("feedbackItemRenderer");var iAc=function(){Q$.apply(this,arguments)};
_.A(iAc,Q$);iAc.prototype.getAssociations=function(){return[]};_.R$W=new _.R("playerInterstitialRenderer");var Fzk=new _.R("getKidsBlocklistPickerCommand");_.q7A=new _.R("updateKidsBlacklistEndpoint");_.i6=new _.R("likeEndpoint");var Lzb,WmP,Pmz;Lzb=new _.R("addChatItemAction");WmP=new _.R("removeChatItemAction");Pmz=new _.R("markChatItemAsDeletedAction");_.xCp=new _.R("setLiveChatCollapsedStateAction");var InW=function(){Q$.apply(this,arguments)};
_.A(InW,Q$);InW.prototype.getAssociations=function(){return[]};var Ob3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Ob3,_.aK);var JVc=_.Lx(Ob3,[0,1,_.NY]);var Bik=new _.R("liveChatEndpoint");var n1m=new _.R("liveChatItemContextMenuEndpoint");var YPd=new _.R("liveChatReplayEndpoint");_.yVM=new _.R("emojiPickerRenderer");var Km3=new _.R("liveChatAuthorBadgeViewModel");var Zbl=new _.R("deleteLiveChatMessageCommand");var o1Z=new _.R("liveChatActionEndpoint");var SPd=new _.R("createLiveChatPollEndpoint");var uqM=new _.R("manageLiveChatUserEndpoint");var dCW=new _.R("moderateLiveChatEndpoint");_.spz=new _.R("sendLiveChatMessageEndpoint");var v1P=new _.R("sendLiveChatVoteEndpoint");var mCb=new _.R("clearLocationCommand");var Vtb=new _.R("resolveLocationCommand");var ttc=new _.R("interactionLoggingCommandMetadata");var B48=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(B48,_.aK);var JtG=function(W,P){return _.IE(W,1,P)};var pLZ=[0,_.Te];var OYG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(OYG,_.aK);var IXA=function(W,P){return So(W,1,B48,P)};OYG.prototype.JSC$9973_serializeBinary=PIo([0,_.i9,pLZ]);var e$C={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 jpw={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"},
Qpz={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 cmR={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"};_.P0m=new _.R("logFlowLoggingEventCommand");_.Xcx=new _.R("loggingContext");var Cmb=new _.R("captionLanguageSelectActionCommand");var AVA=new _.R("showCaptionLanguageSelectActionCommand");var zs3=new _.R("dismissDialogEndpoint");var Gum=new _.R("hideItemSectionVideosByIdCommand");var E1Z=new _.R("showMiniplayerCommand");var g13=function(){Q$.apply(this,arguments)};
_.A(g13,Q$);g13.prototype.getAssociations=function(){return[]};var DCl=function(){Q$.apply(this,arguments)};
_.A(DCl,Q$);DCl.prototype.getAssociations=function(){return[]};var Mt3=function(){Q$.apply(this,arguments)};
_.A(Mt3,Q$);Mt3.prototype.getAssociations=function(){return[]};var $Cw=function(){Q$.apply(this,arguments)};
_.A($Cw,Q$);$Cw.prototype.getAssociations=function(){var W=[];this.delegate.downloadsList&&W.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&W.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&W.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.ju(new Set(W)))};var wLz=function(){Q$.apply(this,arguments)};
_.A(wLz,Q$);wLz.prototype.getAssociations=function(){var W=[];this.delegate.refresh&&W.push(this.delegate.refresh);if(this.delegate.downloads)for(var P=_.n(this.delegate.downloads),x=P.next();!x.done;x=P.next())W.push.apply(W,_.ju((new hsc(x.value)).getAssociations()));return[].concat(_.ju(new Set(W)))};
var hsc=function(){jO.apply(this,arguments)};
_.A(hsc,jO);hsc.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playlist&&W.push(this.delegate.playlist);this.delegate.videoItem&&W.push(this.delegate.videoItem);this.delegate.playlistItem&&W.push(this.delegate.playlistItem);return[].concat(_.ju(new Set(W)))};var HbP=function(){Q$.apply(this,arguments)};
_.A(HbP,Q$);HbP.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.ju(this.delegate.localImageEntities));return[].concat(_.ju(new Set(W)))};var esZ=function(){Q$.apply(this,arguments)};
_.A(esZ,Q$);esZ.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.ju(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ju(new Set(W)))};var cVk=function(){Q$.apply(this,arguments)};
_.A(cVk,Q$);cVk.prototype.getAssociations=function(){return[]};var anb=function(){Q$.apply(this,arguments)};
_.A(anb,Q$);anb.prototype.getAssociations=function(){var W=[];this.delegate.fakeChildren&&W.push.apply(W,_.ju(this.delegate.fakeChildren));return[].concat(_.ju(new Set(W)))};var bbm=function(){Q$.apply(this,arguments)};
_.A(bbm,Q$);bbm.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);return[].concat(_.ju(new Set(W)))};var kup=function(){Q$.apply(this,arguments)};
_.A(kup,Q$);kup.prototype.getAssociations=function(){return[]};var UCM=function(){Q$.apply(this,arguments)};
_.A(UCM,Q$);UCM.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.videos&&W.push.apply(W,_.ju(this.delegate.videos));this.delegate.collaboratorChannels&&W.push.apply(W,_.ju(this.delegate.collaboratorChannels));this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.ju(new Set(W)))};var XLP=function(){Q$.apply(this,arguments)};
_.A(XLP,Q$);XLP.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.channelContributor&&W.push(this.delegate.channelContributor);return[].concat(_.ju(new Set(W)))};var fnZ=function(){jO.apply(this,arguments)};
_.A(fnZ,jO);fnZ.prototype.getAssociations=function(){var W=[];this.delegate.recommendedVideoMetadata&&W.push.apply(W,_.ju((new NiP(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.ju(new Set(W)))};
var NiP=function(){jO.apply(this,arguments)};
_.A(NiP,jO);NiP.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.ju(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ju(new Set(W)))};var lnM=function(){jO.apply(this,arguments)};
_.A(lnM,jO);lnM.prototype.getAssociations=function(){var W=[];this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);return[].concat(_.ju(new Set(W)))};var Tii=function(){Q$.apply(this,arguments)};
_.A(Tii,Q$);Tii.prototype.getAssociations=function(){var W=[];this.delegate.owner&&W.push(this.delegate.owner);this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.userState&&W.push.apply(W,_.ju((new lnM(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&W.push.apply(W,_.ju((new fnZ(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.ju(new Set(W)))};var rVc=function(){Q$.apply(this,arguments)};
_.A(rVc,Q$);rVc.prototype.getAssociations=function(){var W=[];this.delegate.userChannelDetails&&W.push(this.delegate.userChannelDetails);return[].concat(_.ju(new Set(W)))};var ibz=function(){Q$.apply(this,arguments)};
_.A(ibz,Q$);ibz.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&W.push.apply(W,_.ju(this.delegate.localImageEntities));this.delegate.downloadStatus&&W.push(this.delegate.downloadStatus);return[].concat(_.ju(new Set(W)))};var oZt=new _.R("downloadsPageSmartDownloadsOptInBannerParams");var Rsp=function(){Q$.apply(this,arguments)};
_.A(Rsp,Q$);Rsp.prototype.getAssociations=function(){return[]};var FmP=function(){Q$.apply(this,arguments)};
_.A(FmP,Q$);FmP.prototype.getAssociations=function(){return[]};var qPb=function(){Q$.apply(this,arguments)};
_.A(qPb,Q$);qPb.prototype.getAssociations=function(){return[]};var Lmd=function(){Q$.apply(this,arguments)};
_.A(Lmd,Q$);Lmd.prototype.getAssociations=function(){return[]};var Wac=function(){Q$.apply(this,arguments)};
_.A(Wac,Q$);Wac.prototype.getAssociations=function(){return[]};var Pdm=function(){Q$.apply(this,arguments)};
_.A(Pdm,Q$);Pdm.prototype.getAssociations=function(){return[]};var x_W=function(){Q$.apply(this,arguments)};
_.A(x_W,Q$);x_W.prototype.getAssociations=function(){return[]};var Ig3=function(){Q$.apply(this,arguments)};
_.A(Ig3,Q$);Ig3.prototype.getAssociations=function(){return[]};var O0w=function(){Q$.apply(this,arguments)};
_.A(O0w,Q$);O0w.prototype.getAssociations=function(){return[]};_.hp=new _.R("dislikeButtonViewModel");_.wp=new _.R("likeButtonViewModel");var JZk=new _.R("videoSummaryContentViewModel");var lTG=new _.R("videoSummaryParagraphViewModel");var Bl3=new _.R("changeTimelyActionVisibilityCommand");var nUc=new _.R("hideEngagementPanelEndpoint");var Yjm=new _.R("refreshPanelEndpoint");var yZl=new _.R("scrollToSectionEndpoint");var Kai=new _.R("seekToVideoTimestampCommand");_.wh=new _.R("showEngagementPanelEndpoint");var Z0c=new _.R("showTransientPlayerScrimOverlayCommand");var oUZ=new _.R("toggleEngagementPanelCommand");_.Sjz=new _.R("createBroadcastCommand");var ucW=new _.R("metadataUpdateCommand");var d_d=function(){Q$.apply(this,arguments)};
_.A(d_d,Q$);d_d.prototype.getAssociations=function(){return[]};var se3=function(){Q$.apply(this,arguments)};
_.A(se3,Q$);se3.prototype.getAssociations=function(){return[]};var vU3=function(){Q$.apply(this,arguments)};
_.A(vU3,Q$);vU3.prototype.getAssociations=function(){return[]};_.m_w=new _.R("merchandiseShelfRenderer");var V2p=new _.R("gridMovieRenderer");_.t2l=new _.R("movieRenderer");var ppP=function(){Q$.apply(this,arguments)};
_.A(ppP,Q$);ppP.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.ju(this.delegate.trackDownloadMetadatas));return[].concat(_.ju(new Set(W)))};var jep=function(){Q$.apply(this,arguments)};
_.A(jep,Q$);
jep.prototype.getAssociations=function(){var W=[];this.delegate.downloadedTracks&&W.push.apply(W,_.ju(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&W.push.apply(W,_.ju(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&W.push.apply(W,_.ju(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&W.push.apply(W,_.ju(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&W.push.apply(W,_.ju(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
W.push.apply(W,_.ju(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&W.push.apply(W,_.ju(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&W.push.apply(W,_.ju(this.delegate.metadataOnlyTracks));return[].concat(_.ju(new Set(W)))};var Qeb=function(){Q$.apply(this,arguments)};
_.A(Qeb,Q$);Qeb.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.ju(this.delegate.trackDownloadMetadatas));return[].concat(_.ju(new Set(W)))};var CdZ=function(){Q$.apply(this,arguments)};
_.A(CdZ,Q$);CdZ.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.ju(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ju(new Set(W)))};var AZm=function(){Q$.apply(this,arguments)};
_.A(AZm,Q$);
AZm.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&W.push.apply(W,_.ju(this.delegate.primaryArtists));this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.tracks&&W.push.apply(W,_.ju(this.delegate.tracks));this.delegate.share&&W.push(this.delegate.share);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.refresh&&
W.push(this.delegate.refresh);return[].concat(_.ju(new Set(W)))};
var z2d=function(){Q$.apply(this,arguments)};
_.A(z2d,Q$);z2d.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.tracks&&W.push.apply(W,_.ju(this.delegate.tracks));return[].concat(_.ju(new Set(W)))};
var GXz=function(){Q$.apply(this,arguments)};
_.A(GXz,Q$);GXz.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);return[].concat(_.ju(new Set(W)))};var EUP=function(){Q$.apply(this,arguments)};
_.A(EUP,Q$);EUP.prototype.getAssociations=function(){var W=[];this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);return[].concat(_.ju(new Set(W)))};
var gUk=function(){Q$.apply(this,arguments)};
_.A(gUk,Q$);gUk.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.ju(new Set(W)))};
var D_c=function(){Q$.apply(this,arguments)};
_.A(D_c,Q$);D_c.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.ju(new Set(W)))};var M2P=function(){Q$.apply(this,arguments)};
_.A(M2P,Q$);M2P.prototype.getAssociations=function(){return[]};var $_d=function(){Q$.apply(this,arguments)};
_.A($_d,Q$);$_d.prototype.getAssociations=function(){return[]};var wp3=function(){Q$.apply(this,arguments)};
_.A(wp3,Q$);
wp3.prototype.getAssociations=function(){var W=[];this.delegate.tracks&&W.push.apply(W,_.ju(this.delegate.tracks));this.delegate.refresh&&W.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&W.push(this.delegate.details);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&W.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.entryCollection&&
W.push(this.delegate.entryCollection);this.delegate.share&&W.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&W.push.apply(W,_.ju((new h2P(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.ju(new Set(W)))};
var h2P=function(){jO.apply(this,arguments)};
_.A(h2P,jO);h2P.prototype.getAssociations=function(){var W=[];this.delegate.creatorEntity&&W.push(this.delegate.creatorEntity);return[].concat(_.ju(new Set(W)))};var H0w=function(){Q$.apply(this,arguments)};
_.A(H0w,Q$);H0w.prototype.getAssociations=function(){return[]};var e2p=function(){Q$.apply(this,arguments)};
_.A(e2p,Q$);
e2p.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&W.push.apply(W,_.ju(this.delegate.artists));this.delegate.audioModeVersion&&W.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&W.push(this.delegate.videoModeVersion);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.details&&W.push(this.delegate.details);this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.share&&
W.push(this.delegate.share);this.delegate.libraryEdit&&W.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.lyrics&&W.push(this.delegate.lyrics);return[].concat(_.ju(new Set(W)))};
var cZP=function(){Q$.apply(this,arguments)};
_.A(cZP,Q$);cZP.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.ju(new Set(W)))};
var agi=function(){Q$.apply(this,arguments)};
_.A(agi,Q$);agi.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.ju(new Set(W)))};var JM=new _.R("musicResponsiveListItemRenderer");var wlx=new _.R("addToPlaylistEndpoint");var b0p=new _.R("captionPickerEndpoint");var kXm=new _.R("suggestStats");var U_p=new _.R("backstageImageUploadEndpoint");var Xpl=new _.R("createBackstagePostDialogEndpoint");_.fgm=new _.R("createCommentReplyDialogEndpoint");_.Nll=new _.R("updateCommentDialogEndpoint");_.lgA=new _.R("updateCommentReplyDialogEndpoint");var Tlw=new _.R("menuEndpoint");var Gv8=new _.R("modalEndpoint");var rZl=new _.R("playlistEditorEndpoint");var i0A=new _.R("copyTextEndpoint");var R2c,Fad;R2c=new _.R("shareEndpoint");Fad=new _.R("shareEntityEndpoint");_.qjl=new _.R("shareEntityServiceEndpoint");_.lkW=new _.R("userFeedbackEndpoint");_.U_=new _.R("watchEndpoint");var oXt=new _.R("watchPlaylistEndpoint");var Lap=new _.R("addUpcomingEventReminderEndpoint");_.g6=new _.R("getCommentsFromInboxCommand");var WsP=new _.R("notificationOptOutEndpoint");var Ped=new _.R("recordNotificationInteractionsEndpoint");var xcA=new _.R("removeUpcomingEventReminderEndpoint");var Mco=new _.R("getDownloadActionCommand");_.IR3=new _.R("offlineOrchestrationActionCommand");var Ohk=function(){Q$.apply(this,arguments)};
_.A(Ohk,Q$);Ohk.prototype.getAssociations=function(){return[]};var Jhk=function(){Q$.apply(this,arguments)};
_.A(Jhk,Q$);Jhk.prototype.getAssociations=function(){return[]};var BQc=function(){Q$.apply(this,arguments)};
_.A(BQc,Q$);BQc.prototype.getAssociations=function(){return[]};var nBW=function(){Q$.apply(this,arguments)};
_.A(nBW,Q$);nBW.prototype.getAssociations=function(){return[]};var Y8i=function(){Q$.apply(this,arguments)};
_.A(Y8i,Q$);Y8i.prototype.getAssociations=function(){var W=[];this.delegate.transfer&&W.push(this.delegate.transfer);this.delegate.adsPlaybackData&&W.push.apply(W,_.ju(this.delegate.adsPlaybackData));this.delegate.drmLicense&&W.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ju(new Set(W)))};var yhw=function(){Q$.apply(this,arguments)};
_.A(yhw,Q$);yhw.prototype.getAssociations=function(){return[]};var KsA=function(){Q$.apply(this,arguments)};
_.A(KsA,Q$);KsA.prototype.getAssociations=function(){var W=[];this.delegate.offlineVideoStreams&&W.push.apply(W,_.ju(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&W.push.apply(W,_.ju(this.delegate.captionTrack));return[].concat(_.ju(new Set(W)))};var ZhM=function(){Q$.apply(this,arguments)};
_.A(ZhM,Q$);ZhM.prototype.getAssociations=function(){return[]};var oBk=new _.R("showMoreDrawerCommand");var S8b=new _.R("updateEngagementPanelContentCommand");var uhl=new _.R("getPdgBuyFlowCommand");var dcM=new _.R("liveChatPurchaseMessageEndpoint");var sId=new _.R("openSuperStickerBuyFlowCommand");var vBi=new _.R("updatePdgFeatureEnablementCommand");var mck=function(){Q$.apply(this,arguments)};
_.A(mck,Q$);mck.prototype.getAssociations=function(){return[]};var VYp=function(){Q$.apply(this,arguments)};
_.A(VYp,Q$);VYp.prototype.getAssociations=function(){return[]};_.tYw=new _.R("pdgCommentChipRenderer");_.pzl=new _.R("permissionRoleBottomBarRenderer");_.jIZ=new _.R("updatePermissionRoleCommand");var QIP=new _.R("prefetchWatchCommand");var Cez=new _.R("updatePlayerErrorMessageCommand");var CHt=new _.R("toggleCaptionsVisibilityCommand");_.AhZ=new _.R("quickActionsViewModel");var zKA=new _.R("playerResponse");var GPd=new _.R("playlistRenderer");_.EBW=new _.R("playlistVideoListRenderer");_.Dy=new _.R("playlistEditEndpoint");var gBk=new _.R("createImagePollCommand");var Dc3=new _.R("createQuizCommand");var MYd=new _.R("quizRenderer");var $cp=new _.R("uploadedVideoRenderer");var wzk=new _.R("decorateMessageEndpoint");var hKk=new _.R("lpOfferCardOptionViewModel");var Hhc=new _.R("sfvAudioItemPlaybackCommand");var eKd=function(){Q$.apply(this,arguments)};
_.A(eKd,Q$);eKd.prototype.getAssociations=function(){return[]};_.M3=new _.R("reelNonVideoContentEndpoint");_.uS=new _.R("reelWatchEndpoint");_.$Z=new _.R("reelItemRenderer");_.chw=new _.R("reelMetapanelViewModel");_.aRP=new _.R("reelNonVideoContentRenderer");_.bh3=new _.R("reelPlayerOverlayRenderer");var kPk=new _.R("shortsLockupViewModel");var Ucw=new _.R("sponsorButtonViewModel");var Xzl=new _.R("reelItemWatchResponse");var fRi=new _.R("textBadgeRenderer");_.w6=new _.R("buttonRenderer");_.hc=new _.R("toggleButtonRenderer");var g0t=new _.R("switchButtonViewModel");_.NQw=new _.R("confirmDialogRenderer");var lRW;lRW=new _.R("menuRenderer");_.TQd=new _.R("menuFlexibleItemRenderer");var rhd=new _.R("pollRenderer");_.ihW=new _.R("backgroundPromoRenderer");var Fsl;_.RKc=new _.R("chipCloudRenderer");Fsl=new _.R("chipCloudChipRenderer");var q8W=new _.R("dropdownRenderer");var Lsl=new _.R("gridVideoRenderer");_.Owk=new _.R("itemSectionRenderer");_.JcA=new _.R("messageRenderer");var B6l=new _.R("sortFilterHeaderRenderer");_.HA=new _.R("videoRenderer");var nZl=new _.R("resolveUrlCommandMetadata");var Ytk=function(){Q$.apply(this,arguments)};
_.A(Ytk,Q$);Ytk.prototype.getAssociations=function(){return[]};_.yci=new _.R("getAnswerCommand");_.Zz=new _.R("searchEndpoint");var K4w=new _.R("genAiRichTextViewModel");var D6C=new _.R("overviewAnswerViewModel");var ZwA=new _.R("addToPlaylistServiceEndpoint");var oZl=new _.R("clearSearchHistoryEndpoint");var Std=new _.R("clearWatchHistoryEndpoint");var upi=new _.R("webSerializedServiceEndpointExtension");_.d3Z=new _.R("createCommentEndpoint");var s9W=new _.R("createCommentReplyEndpoint");var vZd=new _.R("performCommentActionEndpoint");var m3c=new _.R("updateCommentEndpoint");var VOk=new _.R("updateCommentReplyEndpoint");_.eO=new _.R("createPlaylistServiceEndpoint");var tOm=new _.R("deletePlaylistEndpoint");var pAM=new _.R("deleteVideoEndpoint");var $6t=new _.R("getReportFormEndpoint");var j9W=new _.R("modifyChannelNotificationPreferenceEndpoint");var L5R;_.SK=new _.R("offlinePlaylistEndpoint");L5R={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 WMd;_.ZZ=new _.R("offlineVideoEndpoint");WMd={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 Q9A=new _.R("pingingEndpoint");_.CGA=new _.R("selectActiveIdentityEndpoint");var Acm=new _.R("setSettingEndpoint");var P2m=new _.R("undoFeedbackEndpoint");var zEA=new _.R("unsubscribeEndpoint");_.GNl=new _.R("updatedMetadataEndpoint");var EZZ=function(){Q$.apply(this,arguments)};
_.A(EZZ,Q$);EZZ.prototype.getAssociations=function(){return[]};_.gZk=new _.R("updateLocalAppSettingCommand");var D33=new _.R("saveImageToDeviceEndpoint");var MOb=new _.R("shareImageCommand");var $3p=new _.R("sharingProviderDataCommand");var wAb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(wAb,_.aK);var hEP=[0,_.rg,-1];wAb.prototype.JSC$10174_serializeBinary=PIo(hEP);var HwA=_.W6(hEP);var eEb=new _.R("userMentionSuggestionRenderer");var ccm=new _.R("liveChatTunnelCommand");var aym=new _.R("showSponsorshipsGiftOfferDialogCommand");var bwW=new _.R("sponsorshipsScrollableShelfViewModel");var kNZ=new _.R("updateUpcomingEventReminderButtonStateCommand");var U3M=new _.R("upcomingEventReminderButtonStateRenderer");var XAd=new _.R("subscribeEndpoint");var fyz=new _.R("registerTasksCommand");var N6c=new _.R("showDialogCommand");_.V2=new _.R("showSheetCommand");var lyi=new _.R("showSnackbarCommand");var T63=function(){Q$.apply(this,arguments)};
_.A(T63,Q$);T63.prototype.getAssociations=function(){return[]};var rci=function(){Q$.apply(this,arguments)};
_.A(rci,Q$);rci.prototype.getAssociations=function(){return[]};_.rp=new _.R("avatarViewModel");var FDR=new _.R("badgeViewModel");_.gp=new _.R("buttonViewModel");_.cA=new _.R("chipViewModel");var iwP=new _.R("contentPreviewImageViewModel");var REw=new _.R("decoratedAvatarViewModel");var G6W=new _.R("downloadButtonViewModel");_.MRm=new _.R("engagementBarViewModel");_.F4A=new _.R("imageBannerViewModel");var oEm=new _.R("lockupContentMetadataRowExtension");var qtA=new _.R("lockupMetadataViewModel");_.L4m=new _.R("lockupViewModel");var W8k=new _.R("avatarStackViewModel");var Pgp=function(){Q$.apply(this,arguments)};
_.A(Pgp,Q$);Pgp.prototype.getAssociations=function(){return[]};_.xGZ=new _.R("pageHeaderViewModel");var Ifz=new _.R("snackbarViewModel");var VrR=new _.R("thumbnailHoverOverlayToggleActionsViewModel");_.DZ=new _.R("toggleButtonViewModel");var Ogi=function(){Q$.apply(this,arguments)};
_.A(Ogi,Q$);Ogi.prototype.getAssociations=function(){return[]};_.$9G=new _.R("votingViewModel");var JNp=new _.R("sectionHeaderViewModel");var Bxz=new _.R("notifyDropdownOptionSelectedCommand");var Njm=new _.R("listViewModel");_.tp=new _.R("listItemViewModel");var nPz=new _.R("dialogHeaderViewModel");var Yxk=function(){Q$.apply(this,arguments)};
_.A(Yxk,Q$);Yxk.prototype.getAssociations=function(){return[]};var yNz=function(){Q$.apply(this,arguments)};
_.A(yNz,Q$);yNz.prototype.getAssociations=function(){return[]};var K8c=function(){Q$.apply(this,arguments)};
_.A(K8c,Q$);K8c.prototype.getAssociations=function(){return[]};_.Zgd=new _.R("transcriptSubmitCaptionCorrectionCommand");var oPZ=function(){Q$.apply(this,arguments)};
_.A(oPZ,Q$);oPZ.prototype.getAssociations=function(){return[]};var dXx=new _.R("unpluggedStringRunImage");var Sxb=new _.R("tabViewModel");var uzp=new _.R("tabbedViewModel");var dGM=function(){Q$.apply(this,arguments)};
_.A(dGM,Q$);dGM.prototype.getAssociations=function(){return[]};_.smp=new _.R("updateDescriptionAction");var vPZ=new _.R("updateToggleButtonTextAction");_.mGm=new _.R("autoplaySwitchButtonRenderer");var cX;_.VvM=new _.R("multiMarkersPlayerBarRenderer");cX=new _.R("chapterRenderer");var tvw=new _.R("heatMarkerRenderer");var SgW=new _.R("heatmapRenderer");var pKk=new _.R("smartSkipPlayerScrimOverlayRenderer");var jml=new _.R("timedMarkerDecorationRenderer");var mFS=new _.R("postWebToNativeMessageCommand");var Qmd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Qmd,_.aK);var CgM=_.Lx(Qmd,[0,_.rg,-2]);var ANW=new _.R("whitelistEditEndpoint");var zlk=new _.R("clearUrlParamCommand");var Gsz=new _.R("commerceActionCommand");_.EPW=new _.R("getPaymentInstrumentsParamsCommand");var gPp=new _.R("getPaymentsClientTokenCommand");var DGP=new _.R("googlePaymentBillingCommand");var MvP=new _.R("googlePaymentPurchaseManagerCommand");_.$G3=new _.R("logGtmCommand");var wKZ=new _.R("updateCardItemOnClickCommand");_.hlw=new _.R("ypcPauseSubscriptionCommand");_.Hgm=new _.R("ypcResumeSubscriptionCommand");var elZ=function(){Q$.apply(this,arguments)};
_.A(elZ,Q$);elZ.prototype.getAssociations=function(){return[]};var cNA=function(){Q$.apply(this,arguments)};
_.A(cNA,Q$);cNA.prototype.getAssociations=function(){return[]};var afM=function(){Q$.apply(this,arguments)};
_.A(afM,Q$);afM.prototype.getAssociations=function(){return[]};var bgb=function(){Q$.apply(this,arguments)};
_.A(bgb,Q$);bgb.prototype.getAssociations=function(){return[]};var ksb=function(){Q$.apply(this,arguments)};
_.A(ksb,Q$);ksb.prototype.getAssociations=function(){return[]};var W2U=new _.R("ypcOffersEndpoint");var UGW=new _.R("cardItemRenderer"),XKi=new _.R("cardItemTextRenderer");var ffz=new _.R("commerceCartItemQuantityPickerRenderer");var Nxp=new _.R("linkCardRenderer");var ZSR=new _.R("quantityIncrementerButtonViewModel");var lfi=new _.R("quantityIncrementerViewModel");var TxM=new _.R("themedImageViewModel");_.rNp=new _.R("ypcCancelRecurrenceEndpoint");var igM=new _.R("ypcCompleteTransactionEndpoint");_.Rlw=new _.R("ypcGetCartEndpoint");_.BO=new _.R("ypcGetOffersEndpoint");_.a9=new _.R("ypcHandleTransactionEndpoint");var F8z=new _.R("ypcLogWalletAnalyticDataEndpoint");_.qxl=new _.R("ypcRedeemCodeEndpoint");var L8i=new _.R("ypcUpdateFopEndpoint");I9(xZ(1),WA(4));MDG((new MessageChannel).port2);var WXl=function(){this.register=new Map},aGA=function(W,P,x){W=W+"_"+P;
bG.register.has(W)?x=bG.register.get(W):(x=x(),bG.register.set(W,x));return x},Pck=function(W){W=_.n(W.register.values());
for(var P=W.next();!P.done;P=W.next())_.vX(P.value,"ABORTED")};
WXl.prototype.clear=function(){Pck(this);this.register.clear()};
var bG=new WXl;var mm8=Date.now().toString();var t3o,xHd=_.xW.ytLoggingDocDocumentNonce_;xHd||(xHd=A1(16),_.lA("ytLoggingDocDocumentNonce_",xHd));t3o=xHd;var EfU={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 IiA;IiA=1;_.z7=function(W){this.veData=W};
_.ox=function(W){return new _.z7({trackingParams:W})};
_.td=function(W,P,x,I,O,B){var Y=IiA++;return new _.z7({veType:W,veCounter:Y,elementIndex:x,dataElement:P,youtubeData:I,jspbYoutubeData:O,loggingDirectives:B})};
_.J=_.z7.prototype;
_.J.getAsJson=function(){var W={};this.veData.trackingParams!==void 0?W.trackingParams=this.veData.trackingParams:(W.veType=this.veData.veType,this.veData.veCounter!==void 0&&(W.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(W.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(W.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(W.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(W.isCounterfactual=!0);
return W};
_.J.getAsJspb=function(){var W=new HDl;this.veData.trackingParams!==void 0?W.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.ee(W,2,this.veData.veType),this.veData.veCounter!==void 0&&_.ee(W,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.ee(W,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.IE(W,5,!0));if(this.veData.dataElement!==void 0){var P=this.veData.dataElement.getAsJspb();_.I$(W,7,P)}this.veData.youtubeData!==void 0&&_.I$(W,8,this.veData.jspbYoutubeData);
return W};
_.J.toString=function(){return JSON.stringify(this.getAsJson())};
_.J.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.J.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.lA("yt_logging_screen.getRootVeType",AWt);_.lA("yt_logging_screen.getCurrentCsn",_.E_);_.lA("yt_logging_screen.getCttAuthInfo",gU);_.lA("yt_logging_screen.setCurrentScreen",_.Dt);var O6p=function(){this.events=new Map},Je3=function(W){var P=[];
W=_.n(W.events.values());for(var x=W.next();!x.done;x=W.next())P.push(x.value);return P};
O6p.prototype.clear=function(){this.events.clear()};var n9c=function(){this.logTransport=new Bbl;this.loggedEventRegister=new O6p;this.unloggedEventRegister=new O6p;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10231_flushTimer=new _.Fm(this.flushInterval);this.JSC$10231_flushTimer.listen("tick",this.flush,!1,this)};
n9c.prototype.flush=function(){if(this.eventsCount){var W={loggedEvents:Je3(this.loggedEventRegister),unloggedEvents:Je3(this.unloggedEventRegister)};if(_.p("export_player_version_to_ytconfig")){var P;(P=_.$$("PLAYER_CLIENT_VERSION"))?(P=P.split("-")[0].replace(/\./g,""),P=isNaN(Number(P))?"0":P):P="";var x=_.$$("PLAYER_CLIENT_VERSION");if(x){x=x.split("-");var I="";x.length>1&&(I=x[x.length-1]);x=vfm(I.startsWith("canary_experiment")?"canary":I.startsWith("canary_control")?"control":"none")}else x=
"CLIENT_CANARY_STATE_UNKNOWN";W.dimensions={playerClientVersion:P,playerCanaryState:x}}this.logTransport.flush(W);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10231_flushTimer.enabled&&this.JSC$10231_flushTimer.stop()}};
var Y3W=function(W){kZ==null&&(kZ=new n9c);var P=kZ;var x=P.loggedEventRegister;W.dimensions=W.dimensions||{};W.dimensions.csn=_.E_()||"";var I=M3C(W.dimensions).join(";");if(W.records!=null)if(x.events.has(I)){var O;(O=x.events.get(I).records)==null||O.push.apply(O,_.ju(W.records))}else x.events.set(I,W);P.JSC$10231_flushTimer.enabled||P.JSC$10231_flushTimer.start();P.eventsCount++;P.eventsCount>=100&&P.flush()};var Bbl=function(){};
Bbl.prototype.flush=function(W,P){_.p("enable_client_sli_logging")&&_.Ay("sliEventBatch",W,{sendIsolatedPayload:!!P})};var kZ;var KXm;KXm=function(W){var P=yew;W=W===void 0?{}:W;P=P.name;var x=cWG("SUCCESS");Y3W({dimensions:W,records:[{name:P,state:"SLI_STATE_END",status:x}]})};
_.bAo=function(W,P,x,I){this.name=W;this.sliId=P;this.timeoutMs=x;this.statusOnTimeout=I;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.bAo.prototype.getId=function(){return this.sliId};
_.se=function(W,P){P=P===void 0?{}:P;W.ongoing||(W.ongoing=!0,W.dimensions=P,W.logSliId=ZE3(),Y3W({dimensions:W.dimensions,records:[{name:W.name,state:"SLI_STATE_START",sliId:W.logSliId}]}),W.timeoutMs>0&&(W.timeoutHandle=setTimeout(function(){_.vX(W,W.statusOnTimeout)},W.timeoutMs)))};
_.vX=function(W,P){W.ongoing&&(W.timeoutMs>0&&clearTimeout(W.timeoutHandle),W.ongoing=!1,P={dimensions:W.dimensions,records:[{name:W.name,status:cWG(P),state:"SLI_STATE_END",sliId:W.logSliId}]},bG.register.delete(W.name+"_"+W.sliId),Y3W(P))};var yew=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Z6Z=function(){Q$.apply(this,arguments)};
_.A(Z6Z,Q$);Z6Z.prototype.getAssociations=function(){return[]};var xst=new _.R("highlightTextDecoratorColorMapExtension");var WqC=new _.R("styleRunColorMapExtension");var T08=_.i4(["data-"]),R$o={};var q7R={};var Ut=function(W){this.wrappedPromise_=W===void 0?null:W;this.state_=0;this.JSC$10263_value_=null};
Ut.prototype.then=function(W,P,x){return this.wrappedPromise_?this.wrappedPromise_.then(W,P,x):this.state_===1&&W?(W=W.call(x,this.JSC$10263_value_))&&typeof W.then==="function"?W:_.Xp(W):this.state_===2&&P?(W=P.call(x,this.JSC$10263_value_))&&typeof W.then==="function"?W:_.o9Z(W):this};
Ut.prototype.getValue=function(){return this.JSC$10263_value_};
Ut.prototype.isRejected=function(){return this.state_==2};
Hzw(Ut);_.o9Z=function(W){var P=new Ut;W=W===void 0?null:W;P.state_=2;P.JSC$10263_value_=W===void 0?null:W;return P};
_.Xp=function(W){var P=new Ut;W=W===void 0?null:W;P.state_=1;P.JSC$10263_value_=W===void 0?null:W;return P};var SPx="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var S33=["load","abort","error"],fw=function(W,P,x){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10283_maxAspectRatio_=W;this.disableAnimation_=P===void 0?!1:P;this.disableExifRotation_=x===void 0?!1:x;this.JSC$10283_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10283_reject_=this.resolve_=null};
fw.prototype.transform=function(W){var P=this;this.mime_=W.type;lk(Mll(W),this.dataUrlRead_,this.readError_,this);lk(DBb(W.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(x,I){P.resolve_=x;P.JSC$10283_reject_=I})};
fw.prototype.dataUrlRead_=function(W){this.dataUrl_=W;this.angle_!=null&&uUb(this)};
fw.prototype.exifRead_=function(W){if(this.disableExifRotation_)this.angle_=0;else{a:if(W=new DataView(W),W.byteLength<2||W.getUint16(0)!==65496)W=-2;else{for(var P=2,x=W.byteLength;P<x;){var I=W.getUint16(P),O=W.getUint16(P+2);if(I===65505){P+=4;I=W.getUint32(P);O=W.getUint16(P+4);if(I!==1165519206||O!==0)break;P+=6;I=W.getUint16(P)===18761;P+=W.getUint32(P+4,I);O=W.getUint16(P,I);P+=2;for(var B=0;B<O;B++){if(W.getUint16(P,I)===274){P+=8;W=W.getUint16(P,I);break a}P+=12}}else if(I>>8!==255)break;
else P+=O+2}W=-1}switch(W){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&&uUb(this)};
fw.prototype.readError_=function(){this.JSC$10283_reject_()};
var uUb=function(W){Kt(W.JSC$10283_image_,S33,W.completeTransform_,!1,W);W.JSC$10283_image_.src=_.my(W.dataUrl_).toString();W.JSC$10283_image_.src!=v6.toString()&&W.JSC$10283_image_.src.substr(0,11)==="data:image/"||W.JSC$10283_reject_()};
fw.prototype.completeTransform_=function(){if(this.JSC$10283_image_.src!=v6.toString()){var W=_.my(this.dataUrl_),P=this.JSC$10283_image_.naturalHeight?this.JSC$10283_image_.naturalWidth/this.JSC$10283_image_.naturalHeight:null;this.invalidAspectRatio=P>this.JSC$10283_maxAspectRatio_||P<1/this.JSC$10283_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var x=this.JSC$10283_image_.naturalWidth,I=this.JSC$10283_image_.naturalHeight,O=P=0,B=this.JSC$10283_image_.naturalHeight?this.JSC$10283_image_.naturalWidth/
this.JSC$10283_image_.naturalHeight:null;B>this.JSC$10283_maxAspectRatio_?(x=this.JSC$10283_maxAspectRatio_*I,P=(x-this.JSC$10283_image_.naturalWidth)/2,this.cropped=!0):B<1/this.JSC$10283_maxAspectRatio_?(I=this.JSC$10283_maxAspectRatio_*x,O=(I-this.JSC$10283_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)B=x,x=I,I=B,B=P,P=O,O=B;switch(this.angle_){case 90:O-=x;break;case 180:P-=x;O-=I;break;case 270:P-=
I}this.cropped||this.angle_%360!==0?(W=document.createElement("canvas"),W.width=x||1,W.height=I||1,this.JSC$10283_image_.naturalWidth&&this.JSC$10283_image_.naturalHeight&&(x=W.getContext("2d"),x.rotate(Math.PI/180*this.angle_),x.drawImage(this.JSC$10283_image_,P,O,this.JSC$10283_image_.naturalWidth,this.JSC$10283_image_.naturalHeight)),this.transformedData=_.my(W.toDataURL(this.mime_))):this.transformedData=W}else this.transformedData=W;this.resolve_(this)}};var N3=function(W,P){_.d0.call(this,W);this.value=P};
_.A(N3,_.d0);
var lG=function(W,P,x,I,O,B,Y){Y=Y===void 0?!1:Y;_.tW.call(this);var K=this;this.JSC$10288_url_=W;this.channelId_=P;this.maxFileSizeMb_=x;this.JSC$10288_maxAspectRatio_=I;this.dropZoneEl_=O;this.rejectInvalidAspectRatio_=Y;this.selectButtonEl_=B;this.JSC$10288_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Zy(this.dropZoneEl_);this.selectOverlay_=new o9(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10288_image_=this.transfer_=null;this.handler_=new _.q1(this);_.nU(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(B,"click",function(){K.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.A(lG,_.tW);lG.prototype.disposeInternal=function(){for(var W=this.selectButtonEl_.nextSibling;W&&W.parentNode&&W.tagName=="INPUT";)W.parentNode.removeChild(W),W=this.selectButtonEl_.nextSibling;this.cancel();_.tW.prototype.disposeInternal.call(this)};
lG.prototype.uploadPromise=function(){if(this.JSC$10288_image_==null)return null;this.uploadPromise_||dHZ(this);return this.uploadPromise_};
lG.prototype.cancel=function(){ssW(this);this.JSC$10288_image_=null};
var ssW=function(W){W.transfer_&&W.transfer_.cancel();W.transfer_=null;W.uploadPromise_=null;W.resolve_=null;W.JSC$10288_reject_=null},dHZ=function(W){ssW(W);
W.transfer_=_.rM3(W.JSC$10288_url_,{"X-YouTube-ChannelId":W.channelId_},W.JSC$10288_image_);W.handler_.listenOnce(W.transfer_,"l",W.JSC$10290_onUploadComplete_);W.handler_.listenOnce(W.transfer_,"n",W.onUploadError_);W.transfer_.run();W.uploadPromise_=new Promise(function(P,x){W.resolve_=P;W.JSC$10288_reject_=x})};
_.J=lG.prototype;_.J.onChange_=function(W){W.files.length&&(this.JSC$10288_image_=W.files[0],this.JSC$10288_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10288_image_=null,this.dispatchEvent(new N3("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(dHZ(this),(new fw(this.JSC$10288_maxAspectRatio_)).transform(this.JSC$10288_image_).then((0,_.mx)(this.onPreview_,this),(0,_.mx)(this.onPreviewError_,this))))};
_.J.onPreview_=function(W){if(W.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10288_image_=null),this.dispatchEvent(new N3("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;W.cropped&&this.dispatchEvent(new N3("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new N3("yt.comments.ImageUploadOverlay.CHANGE_EVENT",W.transformedData))};
_.J.onPreviewError_=function(){this.JSC$10288_image_=null;this.dispatchEvent(new N3("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.J.onHover_=function(W){W.stopPropagation();W.preventDefault();if(W.type==="dragover")W=!0;else if(W.type==="dragleave")W=!1;else return;this.dispatchEvent(new N3("yt.comments.ImageUploadOverlay.HOVER_EVENT",W))};
_.J.JSC$10290_onUploadComplete_=function(){var W=(0,_.B_W)(this.transfer_.getResponseText());this.resolve_(W.encryptedBlobId)};
_.J.onUploadError_=function(){this.JSC$10288_reject_();ssW(this)};var v9i=function(W){W=W||{};var P={},x={};this.url=W.url||"";this.args=W.args||_.jU.clone(P);this.assets=W.assets||{};this.attrs=W.attrs||_.jU.clone(x);this.fallback=W.fallback||null;this.fallbackMessage=W.fallbackMessage||null;this.html5=!!W.html5;this.disable=W.disable||{};this.loaded=!!W.loaded;this.messages=W.messages||{}};
v9i.prototype.clone=function(){var W=new v9i,P;for(P in this)if(this.hasOwnProperty(P)){var x=this[P];W[P]=_.u3(x)=="object"?_.jU.clone(x):x}return W};var mH3,VxA,txZ,Oe,jsm,QsP,Ccl,AeM,zTZ,GCi,E9A,g9w,DHM,MxP,$HM,wvl,hTP,H6M,eTl,ceA,aid,b6m,kCp,UHd,Xvd,fip,NbA,lim,Tbb,G9U,reP,i6l,RTl,FXi,q3m,LXk,WAA,Pbz,xoP,IFc,Okz,JJ3,Byw,nXW,YNm,yJP,KAb,ZkA,oXl,SNp,uOi,doA,sMi,vXZ,moW,Vfw,TN,tfb,pUZ,jMl,QMz,CbM,AJw,zfw,Ghb,EXl,gXz,Doi,Mfb,$oM,wUd,hfW,HkW,efw,cJm,AUW,aFA,bkw,khP,Uob,XUP,fFb,Ny3,lFZ,Tyc,rJA,ikm,RfW,FAc,qNm,LAm,WId,PLk,xWb,Ixi,OBd,JxA,BWZ,nyc,YmW,yxl;mH3=["account/accounts_list"];VxA=["acknowledge_channel_tou_strike"];txZ=["notification/add_upcoming_event_reminder"];
_.pvb=["att/get"];Oe=["browse","music/browse","unplugged/browse"];jsm=["channel/claim_legacy_youtube_channel"];QsP=["history/clear_search_history"];Ccl=["history/clear_watch_history"];AeM=["comment/perform_comment_action"];zTZ=["comment/get_comment_replies"];GCi=["ypc/commerce_action"];E9A=["backstage/create_post"];g9w=["live/create_broadcast"];DHM=["channel/create_channel"];MxP=["comment/create_comment_reply"];$HM=["comment/create_comment"];wvl=["live_chat/create_poll"];hTP=["playlist/create"];
H6M=["decorate_message"];eTl=["live_chat/delete_message"];ceA=["playlist/delete"];aid=["video/delete"];b6m=["like/dislike"];kCp=["dismissal/dismiss"];UHd=["flag/flag"];Xvd=["flow"];fip=["account/account_menu"];NbA=["playlist/get_add_to_playlist"];lim=["get_answer"];Tbb=["channel/get_channel_creation_form"];G9U=["offline/get_download_action"];reP=["kids/get_kids_blocklist_picker"];i6l=["live_chat/get_item_context_menu"];RTl=["live_chat/get_live_chat_message_buy_flow"];FXi=["live_chat/get_live_chat_replay"];
q3m=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];LXk=["live_chat/get_live_chat_super_sticker_buy_flow"];WAA=["notification/get_notification_menu"];Pbz=["playlist/get_settings_editor"];xoP=["backstage/get_post_video_preview"];IFc=["account/get_profile_card"];Okz=["share/get_share_panel"];JJ3=["share/get_sharing_provider_data"];Byw=["get_survey"];nXW=["notification/get_unseen_count"];YNm=["get_user_mention_suggestions"];yJP=["get_watch"];KAb=["guide"];
ZkA=["feedback"];oXl=["kids/update_blacklist"];SNp=["like/like"];uOi=["live_chat/live_chat_action"];doA=["live_chat/manage_user"];sMi=["video_manager/metadata_update"];vXZ=["live_chat/moderate"];moW=["notification/modify_channel_preference"];Vfw=["notification/opt_out"];TN=["get_panel","get_posts_by_host_panel"];tfb=["player"];pUZ=["browse/edit_playlist"];jMl=["notification/record_interactions"];QMz=["reel/reel_item_watch"];CbM=["reel/reel_watch_sequence"];AJw=["like/removelike"];zfw=["notification/remove_upcoming_event_reminder"];
Ghb=["flag/get_form"];EXl=["miniapp/report_value"];gXz=["navigation/resolve_url"];Doi=["channel/reveal_business_email"];Mfb=["in_video/search"];$oM=["search","sfv/search","unplugged/search"];wUd=["live_chat/send_message"];hfW=["live_chat/send_live_chat_vote"];HkW=["account/set_setting"];efw=["submit_caption_correction"];cJm=["subscription/subscribe"];AUW=["get_transcript"];aFA=["resolve_location","unplugged/resolve_location"];bkw=["subscription/unsubscribe"];khP=["backstage/update_post"];Uob=["channel_edit/update_channel_page_settings"];
XUP=["comment/update_comment_reply"];fFb=["comment/update_comment"];Ny3=["comment/update_comments_settings"];lFZ=["creator/update_creator_channel"];Tyc=["pdg/update_enablement"];rJA=["updated_metadata"];ikm=["channel_edit/validate_channel_handle"];RfW=["verify_age"];FAc=["next","unplugged/watch_next"];qNm=["whitelist/edit"];LAm=["ypc/cancel_recurrence"];WId=["ypc/complete_transaction"];PLk=["ypc/get_cart"];xWb=["ypc/get_fix_instrument_params"];Ixi=["ypc/get_offers"];OBd=["ypc/get_payment_instruments_params"];
JxA=["ypc/handle_transaction"];BWZ=["ypc/log_payment_server_analytics"];nyc=["ypc/pause_subscription"];YmW=["ypc/redeem_code"];yxl=["ypc/resume_subscription"];var KI3=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,
220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,
234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,
253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,
47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,
156512,161613,156509,208274,161612,161614,262801,262800,262799,262802,262798,82039];var yY=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.lA("yt.msgs_",yY);var r6=new _.Lb("ACTION_ROUTER_TOKEN");_.iG=function(){this.autonavState_=_.p("kevlar_is_pupi_enabled")?2:AVR()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.iG.prototype.getState=function(){return this.autonavState_};
_.iG.prototype.pause=function(W){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=W):this.autonavState_==1&&(this.disabledAutonavPauseReason_=W)};
_.iG.prototype.setState=function(W,P,x){P&&(this.autoplayChangedByUser=!0);P=this.autonavState_===3||W===3;this.autonavState_!=W&&(this.autonavState_=W,W!=3&&_.zsA(W==2),W=_.p("kevlar_is_pupi_enabled")?x||P:!0,_.bs.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,W,x))};
_.iG.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Id(_.iG);var R9=function(){this.hasRun=!1};var Fp={},bbd=(Fp.auto_search="LATENCY_ACTION_AUTO_SEARCH",Fp.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Fp.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Fp.app_startup="LATENCY_ACTION_APP_STARTUP",Fp.browse="LATENCY_ACTION_BROWSE",Fp.cast_splash="LATENCY_ACTION_CAST_SPLASH",Fp.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Fp.channels="LATENCY_ACTION_CHANNELS",Fp.chips="LATENCY_ACTION_CHIPS",Fp.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Fp.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Fp.editor="LATENCY_ACTION_EDITOR",Fp.embed="LATENCY_ACTION_EMBED",Fp.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Fp.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Fp.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Fp.explore="LATENCY_ACTION_EXPLORE",Fp.favorites="LATENCY_ACTION_FAVORITES",Fp.home="LATENCY_ACTION_HOME",Fp.inboarding="LATENCY_ACTION_INBOARDING",Fp.landing="LATENCY_ACTION_LANDING",Fp.library="LATENCY_ACTION_LIBRARY",Fp.live=
"LATENCY_ACTION_LIVE",Fp.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Fp.management="LATENCY_ACTION_MANAGEMENT",Fp.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Fp.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Fp.onboarding="LATENCY_ACTION_ONBOARDING",Fp.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Fp.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Fp.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Fp.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
Fp.prebuffer="LATENCY_ACTION_PREBUFFER",Fp.prefetch="LATENCY_ACTION_PREFETCH",Fp.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Fp.profile_switcher="LATENCY_ACTION_LOGIN",Fp.projects="LATENCY_ACTION_PROJECTS",Fp.reel_watch="LATENCY_ACTION_REEL_WATCH",Fp.results="LATENCY_ACTION_RESULTS",Fp.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Fp.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Fp.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Fp.review="LATENCY_ACTION_REVIEW",Fp.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Fp.search_ui="LATENCY_ACTION_SEARCH_UI",Fp.search_suggest="LATENCY_ACTION_SUGGEST",Fp.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Fp.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Fp.seek="LATENCY_ACTION_PLAYER_SEEK",Fp.settings="LATENCY_ACTION_SETTINGS",Fp.store="LATENCY_ACTION_STORE",Fp.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Fp.tenx="LATENCY_ACTION_TENX",Fp.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Fp.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
Fp.watch="LATENCY_ACTION_WATCH",Fp.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Fp["watch,watch7"]="LATENCY_ACTION_WATCH",Fp["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Fp["watch,watch7ad"]="LATENCY_ACTION_WATCH",Fp["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Fp.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Fp.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Fp.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Fp.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Fp.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Fp.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Fp.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Fp.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Fp);var JZS=function(W,P){Qw.call(this,1,arguments);this.timer=P};
_.A(JZS,Qw);var O0m=new sY8("aft-recorded",JZS);var fnG=_.xW.ytLoggingGelSequenceIdObj_||{};_.lA("ytLoggingGelSequenceIdObj_",fnG);var q3=_.xW.ytLoggingLatencyUsageStats_||{};_.lA("ytLoggingLatencyUsageStats_",q3);var Lw=function(){this.cleanupJob=0},TiW=function(){Lw.instance||(Lw.instance=new Lw);
return Lw.instance};
_.J=Lw.prototype;_.J.baseline=function(W,P,x){WK(this,"baseline_"+W)||_.Ay("latencyActionBaselined",{clientActionNonce:W},{timestamp:P,cttAuthInfo:x})};
_.J.tick=function(W,P,x,I){WK(this,"tick_"+W+"_"+P)||_.Ay("latencyActionTicked",{tickName:W,clientActionNonce:P},{timestamp:x,cttAuthInfo:I})};
_.J.info=function(W,P,x){var I=Object.keys(W).join("");WK(this,"info_"+I+"_"+P)||(W=Object.assign({},W),W.clientActionNonce=P,_.Ay("latencyActionInfo",W,{cttAuthInfo:x}))};
_.J.jspbInfo=function(W,P,x){for(var I="",O=0;O<IK(W).length;O++)IK(W)[O]!==void 0&&(I=O===0?I.concat(""+O):I.concat("_"+O));WK(this,"info_"+I+"_"+P)||(_.SU(W,2,P),P={cttAuthInfo:x},x=_.p("jspb_sparse_encoded_pivot")?new mn([{}]):new mn,_.O0(x,7,Fnm,W),NiR("latencyActionInfo",x,P))};
_.J.span=function(W,P,x){var I=Object.keys(W).join("");WK(this,"span_"+I+"_"+P)||(W.clientActionNonce=P,_.Ay("latencyActionSpan",W,{cttAuthInfo:x}))};
var WK=function(W,P){q3[P]=q3[P]||{count:0};var x=q3[P];x.count++;x.time=(0,_.iA)();W.cleanupJob||(W.cleanupJob=_.VE(_.Gr,function(){var I=(0,_.iA)(),O;for(O in q3)q3[O]&&I-q3[O].time>6E4&&delete q3[O];W&&(W.cleanupJob=0)},5E3));
return x.count>5?(x.count===6&&Math.random()*1E5<1&&(x=new _.mW("CSI data exceeded logging limit with key",P.split("_")),P.indexOf("plev")>=0||_.ge(x)),!0):!1};var ZBZ,oyl;ZBZ=window;oyl=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.sL=ZBZ.performance||ZBZ.mozPerformance||ZBZ.msPerformance||ZBZ.webkitPerformance||new oyl;var IgA=!1,ib8=!1,BlA=(0,_.mx)(_.sL.clearResourceTimings||_.sL.webkitClearResourceTimings||_.sL.mozClearResourceTimings||_.sL.msClearResourceTimings||_.sL.oClearResourceTimings||_.me,_.sL);var Smd=window;Smd.ytcsi&&(Smd.ytcsi.infoGel=_.jI,Smd.ytcsi.tick=_.CK);var m_m=function(W){Qw.call(this,1,arguments);this.csn=W};
_.A(m_m,Qw);var puG=new sY8("screen-created",m_m),h2R=[],vUA=wpA,H0m=0,MU=new Map,V2C=new Map,t2t=new Map;var eK=Symbol("vf"),XB=new WeakMap;var PK=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},yH=function(){PK.instance||(PK.instance=new PK);
return PK.instance};
_.J=PK.prototype;_.J.setClient=function(W){this.client=W};
_.J.JSC$10369_newScreen=function(){this.clear();this.csn=_.E_()};
_.J.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.J.reportShown=function(W,P,x){var I=this.JSC$10369_getTrackingParams(W),O=W.visualElement?W.visualElement:I;P=this.shownElements.has(O);var B=this.visibleState.get(O);this.shownElements.add(O);this.visibleState.set(O,!0);W.impressionLog&&!P&&W.impressionLog();if(I||W.visualElement)if(x=uNA(this,W,x))if(O=dWd(this,W),xP(this,W)||O){I=W.visualElement?W.visualElement:_.ox(I);var Y=W.interactionLoggingClientData;O||P?xP(this,W)&4?B||EUR(this.client,x,I,Y):xP(this,W)&1&&!P&&AZd(this.client,x,I,Y):AZd(this.client,
x,I,Y)}};
_.J.reportHidden=function(W,P,x){var I=this.JSC$10369_getTrackingParams(W),O=W.visualElement?W.visualElement:I;P=this.hiddenElements.has(O);var B=this.visibleState.get(O);this.hiddenElements.add(O);this.visibleState.set(O,!1);if(B===!1)return!0;if(!I&&!W.visualElement)return!1;x=uNA(this,W,x);if(!x||!xP(this,W)&&dWd(this,W))return!1;I=W.visualElement?W.visualElement:_.ox(I);xP(this,W)&8?gUS(this.client,x,I):xP(this,W)&2&&!P&&(W=this.client,P=DE({cttAuthInfo:gU(x)||void 0},x),I={csn:x,ve:I.getAsJson(),
eventType:2},x==="UNDEFINED_CSN"?ww("visualElementHidden",P,I):W?jo("visualElementHidden",I,W,P):_.Ay("visualElementHidden",I,P));return!0};
_.J.JSC$10369_getTrackingParams=function(W){var P=this.getData(W),x,I;if(_.p("il_use_view_model_logging_context")&&(P==null?0:(x=P.context)==null?0:(I=x.loggingContext)==null?0:I.loggingDirectives))return P.context.loggingContext.loggingDirectives.trackingParams||"";var O,B;if(P==null?0:(O=P.rendererContext)==null?0:(B=O.loggingContext)==null?0:B.loggingDirectives)return P.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(P==null?0:P.loggingDirectives)return P.loggingDirectives.trackingParams||
"";var Y;return((Y=W.veContainer)==null?0:Y.trackingParams)?W.veContainer.trackingParams:(P==null?void 0:P.trackingParams)||""};
_.J.JSC$10369_elementShouldLogGesture=function(W,P){W=this.getData(W);return!!((Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.gestures&&W.loggingDirectives.gestures.types||""))||0)&P)};
_.J.JSC$10369_getNearestParentVe=function(W){var P=this.JSC$10369_getTrackingParams(W);return W.visualElement?W.visualElement:P?_.ox(P):W.parentElement?this.JSC$10369_getNearestParentVe(W.parentElement):null};
var uNA=function(W,P,x){var I=_.E_(x);return W.csn===null||I===W.csn||x?I:(W=new _.mW("VisibilityLogger called before newScreen",{caller:P.tagName,previous_csn:W.csn,current_csn:I}),_.ge(W),null)};
PK.prototype.getData=function(W){var P,x=W.data||((P=W.props)==null?void 0:P.data);if(!x&&_.p("enable_wiz_always_try_logging_info_map")){var I;x=(I=fK(W))==null?void 0:I[eK]}else if(W.isWebComponentWrapper){var O;x=(O=fK(W))==null?void 0:O[eK]}return x};
var dWd=function(W,P){var x;return!((x=W.getData(P))==null||!x.loggingDirectives)},xP=function(W,P){W=W.getData(P);
return Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.visibility&&W.loggingDirectives.visibility.types||""))||1};var Im;Im=function(){};
_.BW=function(){Im.instance||(Im.instance=new Im);return Im.instance};
Im.prototype.setClient=function(W){_.Ho(yH().setClient).bind(yH())(W)};
_.sOd=function(){_.BW();_.Ho(yH().JSC$10369_newScreen).bind(yH())()};
Im.prototype.clear=function(){_.Ho(yH().clear).bind(yH())()};
Im.prototype.reportShown=function(W,P,x){_.Ho(yH().reportShown).bind(yH())(W,P,x)};
Im.prototype.reportHidden=function(W,P,x){return _.Ho(yH().reportHidden).bind(yH())(W,P,x)};
var FC7=function(W,P){return _.Ho(yH().JSC$10369_getTrackingParams).bind(yH())(P)},iQW=function(W,P){return _.Ho(yH().JSC$10369_getNearestParentVe).bind(yH())(P)};var Ox,vyd;Ox=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};
_.YY=function(){Ox.instance||(Ox.instance=new Ox);return Ox.instance};
Ox.prototype.setClient=function(W){this.client=W};
vyd=function(W,P,x){x=x===void 0?{}:x;_.Ho(function(){var I,O,B,Y=((I=_.Q(P==null?void 0:P.commandMetadata,_.rU))==null?void 0:I.rootVe)||((O=_.Q(P==null?void 0:P.commandMetadata,ttc))==null?void 0:(B=O.screenVisualElement)==null?void 0:B.uiType);if(Y){I=_.Q(P==null?void 0:P.commandMetadata,nZl);if(I==null?0:I.parentTrackingParams){var K=_.ox(I.parentTrackingParams);if(I.parentCsn)var Z=I.parentCsn}else x.clickedVisualElement?K=x.clickedVisualElement:P.clickTrackingParams&&(K=_.ox(P.clickTrackingParams));
a:{I=_.Q(P,_.U_);O=_.Q(P,oXt);if(I){if(O=Gud(I,"VIDEO")){I={token:O,videoId:I.videoId};break a}}else if(O&&(I=Gud(O,"PLAYLIST"))){I={token:I,playlistId:O.playlistId};break a}I=void 0}x=Object.assign({},{cttAuthInfo:I,parentCsn:Z},x);if(_.p("expectation_logging")){var d;x.loggingExpectations=((d=_.Q(P==null?void 0:P.commandMetadata,ttc))==null?void 0:d.loggingExpectations)||void 0}_.JN(W,Y,K,x)}else _.ge(new _.mW("Error: Trying to create a new screen without a rootVeType",P))})()};
_.JN=function(W,P,x,I){I=I===void 0?{}:I;_.Ho(function(){KI3.includes(P)||(_.ge(new _.mW("createClientScreen() called with a non-page VE",P)),P=83769);I.isHistoryNavigation||(W.forwardHistoryStack=[],W.backHistoryStack.push({rootVe:P,key:I.key||""}));W.graftQueue=[];W.stateChangedQueue=[];I.dataPromises?mWZ(W,P,x,I):VZw(W,P,x,I)})()};
_.tZd=function(W,P,x){x=x===void 0?0:x;_.Ho(function(){P.then(function(I){W.pendingScreenCreation.has(x)&&W.pendingScreenFn&&W.pendingScreenFn();var O=_.E_(x),B=_.G7(x);if(O&&B){var Y;(I==null?0:(Y=I.response)==null?0:Y.trackingParams)&&$6(W.client,O,B,_.ox(I.response.trackingParams));var K;(I==null?0:(K=I.playerResponse)==null?0:K.trackingParams)&&$6(W.client,O,B,_.ox(I.playerResponse.trackingParams))}})})()};
Ox.prototype.graftServerVe=function(W,P,x){var I=this;return _.Ho(function(){var O=_.ox(W);_.BK(I,O,P,x);return O})()};
_.Rcm=function(W,P,x,I){return _.p("enable_client_ve_spec")&&P.clientVeSpec?(P=_.td(P.clientVeSpec.uiType,void 0,P.clientVeSpec.elementIndex,P.clientVeSpec.clientYoutubeData,void 0,P),_.BK(W,P,x,I)?P:null):P.trackingParams?W.graftServerVe(P.trackingParams,x,I):null};
_.nt=function(W,P,x,I){return _.Ho(function(){if(!P.veType)return _.EA(new _.mW("Error: Trying to graft a client VE without a veType.")),null;if(P.visibilityTypes){var O=P.visibilityTypes.reduce(function(B,Y){return B|Y});
O={visibility:{types:String(O)}}}O=_.td(P.veType,P.visualElement,P.elementIndex,P.clientYouTubeData,void 0,O);return _.BK(W,O,x,I)?O:null})()};
_.BK=function(W,P,x,I){I=I===void 0?0:I;return _.Ho(function(){if(W.pendingScreenCreation.has(I))return W.graftQueue.push([P,x]),!0;var O=_.E_(I),B=x||_.G7(I);if(O&&B){if(_.p("combine_ve_grafts")){var Y=W.cachedVisualElements.get(B.toString());Y?Y.push(P):(W.cachedRootVisualElements.set(B.toString(),B),W.cachedVisualElements.set(B.toString(),[P]));W.attachTimeout||(W.attachTimeout=_.VE(_.Gr,function(){pbd(W,O)},1200))}else $6(W.client,O,B,P);
return!0}return!1})()};
_.YP=function(W,P,x){x=x===void 0?0:x;var I=W.recurringGrafts.get(x)||new Map;if(_.p("smarter_ve_dedupping"))for(var O=Array.from(I.keys()),B=0;B<O.length;B++){var Y=void 0,K=void 0;var Z=P;var d=O[B];d.isClientVe()&&Z.isClientVe()?(Y=Z.getAsJson(),K=d.getAsJson(),Z=Y.veType!==K.veType||Y.elementIndex!==K.elementIndex||Y.dataElement!==K.dataElement||Z.getLoggingDirectives()!==d.getLoggingDirectives()?!1:!0):Z=d.veData.trackingParams!==void 0&&Z.veData.trackingParams!==void 0?((K=Z.veData)==null?void 0:
K.trackingParams)===((Y=d.veData)==null?void 0:Y.trackingParams):!1;if(Z)return}else if(I.has(P))return;I.set(P,void 0);W.recurringGrafts.set(x,I);_.E_(x)==="UNDEFINED_CSN"||W.pendingScreenCreation.has(x)||_.BK(W,P,void 0,x)};
_.yI=function(W,P,x,I){I=_.E_(I===void 0?0:I);if(!I)return!1;M2R(W.client,I,P,x);return!0};
_.Kg=function(W,P,x,I){if(!P)return!1;I=_.E_(I===void 0?0:I);if(!I)return!1;M2R(W.client,I,_.ox(P),x);return!0};
_.hd=function(W,P){var x=P.getScreenLayer&&P.getScreenLayer();if(P.visualElement)return _.yI(W,P.visualElement,void 0,x);P=FC7(_.BW(),P);return _.Kg(W,P,void 0,x)};
Ox.prototype.clickCommand=function(W,P,x){return _.Kg(this,W.clickTrackingParams,P,x===void 0?0:x)};
Ox.prototype.stateChanged=function(W,P,x){this.visualElementStateChanged(_.ox(W),P,x===void 0?0:x)};
Ox.prototype.visualElementStateChanged=function(W,P,x){x=x===void 0?0:x;x===0&&this.pendingScreenCreation.has(x)?this.stateChangedQueue.push([W,P]):this.logStateChanged(W,P,x)};
Ox.prototype.logStateChanged=function(W,P,x){x=x===void 0?0:x;var I=_.E_(x);W=W||_.G7(x);return I&&W?($_x(this.client,I,W,P),!0):!1};
var mWZ=function(W,P,x,I){I=I===void 0?{}:I;W.pendingScreenCreation.add(I.layer||0);W.pendingScreenFn=function(){VZw(W,P,x,I);var Y=_.G7(I.layer);if(Y){for(var K=_.n(W.graftQueue),Z=K.next();!Z.done;Z=K.next())Z=Z.value,_.BK(W,Z[0],Z[1]||Y,I.layer);Y=_.n(W.stateChangedQueue);for(K=Y.next();!K.done;K=Y.next())K=K.value,W.logStateChanged(K[0],K[1])}};
x||_.E_(I.layer)||W.pendingScreenFn();if(I.dataPromises)for(var O=_.n(I.dataPromises),B=O.next();!B.done;B=O.next())_.tZd(W,B.value,I.layer);else _.G$(Error("wf"))},VZw=function(W,P,x,I){I=I===void 0?{}:I;
var O=void 0;I.layer||(I.layer=0);O=I.parentLayer!==void 0?I.parentLayer:I.layer;var B=_.E_(O);O=_.G7(O);var Y=x||O,K;Y&&(I.parentCsn!==void 0?K={clientScreenNonce:I.parentCsn,visualElement:Y}:B&&B!=="UNDEFINED_CSN"&&(K={clientScreenNonce:B,visualElement:Y}));var Z,d=_.$$("EVENT_ID");B==="UNDEFINED_CSN"&&d&&(Z={servletData:{serializedServletEventId:d}});_.p("combine_ve_grafts")&&B&&pbd(W,B);_.p("no_client_ve_attach_unless_shown")&&Y&&B&&CdG(Y,B);try{var v=_.ppR(W.client,P,K,I.csnToClone,I.cttAuthInfo,
Z,I.implicitGestureType,void 0,I.loggingExpectations)}catch(C){_.Dw(C,{rootVeType:P,rootVe:O,parentVisualElement:x,currentCsn:B,parentEl:K,csnToClone:I.csnToClone});_.G$(C);return}_.Dt(v,P,I.layer,I.cttAuthInfo);B&&B!=="UNDEFINED_CSN"&&O&&!gfd(B)&&gUS(W.client,B,O,!0);W.backHistoryStack[W.backHistoryStack.length-1]&&!W.backHistoryStack[W.backHistoryStack.length-1].csn&&(W.backHistoryStack[W.backHistoryStack.length-1].csn=v||"");_.jI({clientScreenNonce:v});_.sOd();var m=_.G7(I.layer);B&&B!=="UNDEFINED_CSN"&&
m&&(_.p("web_mark_root_visible")||_.p("music_web_mark_root_visible"))&&_.eI(v,m);W.pendingScreenCreation.delete(I.layer||0);W.pendingScreenFn=void 0;var t;(t=W.recurringGrafts.get(I.layer))==null||t.forEach(function(C,z){C?_.BK(W,z,C,I.layer):m&&_.BK(W,z,m,I.layer)});
jOw(W)},jOw=function(W){for(var P=0;P<W.afterNewScreenOneOffJobs.length;P++){var x=W.afterNewScreenOneOffJobs[P];
try{x()}catch(I){_.G$(I)}}for(P=W.afterNewScreenOneOffJobs.length=0;P<W.afterNewScreenRecurringJobs.length;P++){x=W.afterNewScreenRecurringJobs[P];try{x()}catch(I){_.G$(I)}}},pbd=function(W,P){if(P===void 0)for(var x=GQR(),I=0;I<x.length;I++)x[I]!==void 0&&pbd(W,x[I]);
else W.cachedVisualElements.forEach(function(O,B){(B=W.cachedRootVisualElements.get(B))&&jeC(W.client,P,B,O)}),W.cachedVisualElements.clear(),W.cachedRootVisualElements.clear(),W.attachTimeout=void 0};var Zf=function(W){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;W={};this.ixQ=(W.response=!1,W.playerResponse=!1,W)};
_.A(Zf,R9);Zf.prototype.validate=function(W){return!(!W.data||!W.data.response&&!W.data.playerResponse)};
Zf.prototype.handle=function(W){var P=_.YY(),x=this.createScreenConfig.layer;W.data.response&&W.data.response.trackingParams&&!this.ixQ.response&&(P.graftServerVe(W.data.response.trackingParams,void 0,x),this.ixQ.response=!0);W.data.playerResponse&&W.data.playerResponse.trackingParams&&!this.ixQ.playerResponse&&(P.graftServerVe(W.data.playerResponse.trackingParams,void 0,x),this.ixQ.playerResponse=!0)};var om=function(){this.eE=_.aP();this.xA=[];this.iic=0};
om.prototype.processChunk=function(W){if(W){for(var P=_.n(this.xA),x=P.next();!x.done;x=P.next())x=x.value,x.validate(W)&&(x.handle(W),x.hasRun=!0);_.CK("np"+this.iic);this.iic++}};var kXd,NU,lB,agW=0,b0C=function(W,P,x,I,O,B){var Y=lB;this.name=W;this.attributes=P;this.startTime=x;this.id=I;this.sessionId=O;this.traceId=B;this.parent=Y};
b0C.prototype.attr=function(W,P){this.attributes[W]=P};
b0C.prototype.close=function(W){if(this!==lB)throw Error("xf");var P=lB;W&&(P.status=W);P.endTime=performance.now();W=_.n(NU.spanProcessors);for(var x=W.next();!x.done;x=W.next()){var I=void 0,O=void 0;(O=(I=x.value).onSpanEnd)==null||O.call(I,P)}lB=P==null?void 0:P.parent};
b0C.prototype[Symbol.dispose]=function(){this.close()};var xAm,Axz;_.Ix=function(W,P,x,I,O,B,Y){Y=Y===void 0?[]:Y;this.buildCommandPayload=W;this.navigate=P;this.handleServiceRequest=x;this.sendAction=I;this.JSC$10410_screenManager=O;this.commandResolverMap=B;this.autoLogResolverAllowlist=Y;this.pendingCommands=new Set;if(Xpt("command")){var K=this.resolveCommand;this.resolveCommand=function(Z,d){var v=U_C("command",{command:Z});return Nlt(v,K.bind(this,Z,d),null)}}};
xAm=function(W,P,x){var I=UjU,O=X3R,B=_.YY(),Y=QOp;x=x===void 0?[]:x;_.Ix.instance=new _.Ix(W,P,I,O,B,Y,x)};
Axz=function(W,P,x){if(!W.commandResolverMap)return!1;var I=i0R(P,W.commandResolverMap);return I?((W.autoLogResolverAllowlist.some(function(O){return!!_.Q(P,O)})||(x==null?0:x.forceClickLogging))&&CLb(W,P,x),I instanceof Promise?I.then(function(O){O.resolve(P,x)}):I.resolve(P,x),!0):!1};
_.Ix.prototype.resolveCommand=function(W,P){var x=this,I=zHw(W);if(Axz(this,W,P))return!0;if(I)return GpA(this,W,P);if(!this.buildCommandPayload)return lgR(W,"Unhandled command by buildCommandPayload"),!1;var O=this.buildCommandPayload(W,P);if(P==null?0:P.commandController)O.commandController=P.commandController;if(O.type===0){if(!this.navigate)return Tlm(W,"navigate"),!1;if(!Eyi(O.command))return lgR(W,"Page requests need to specify a url"),!1;_.p("logging_avoid_blocking_during_navigation")&&_.Ot7().transition("application_navigating");
W=this.navigate(O)||[];X6d(W).then(function(){x.pendingCommands.delete(O.command)});
return!0}if(O.type===1){if(!this.handleServiceRequest)return Tlm(W,"handleServiceRequest"),!1;(P==null?0:P.forceClickLogging)&&CLb(this,O.command,P);W=this.handleServiceRequest(O);X6d(W).then(function(){x.pendingCommands.delete(O.command)});
return!0}if(O.type===2){if(!this.sendAction)return Tlm(W,"sendAction"),!1;CLb(this,O.command,P);this.sendAction(O);return!0}return!1};
var CLb=function(W,P,x){if((x==null||!x.disableClickTracking)&&W.JSC$10410_screenManager)if(P.clickTrackingParams&&_.p("log_click_with_layer_from_element_in_command_handler")){var I;x=x==null?void 0:(I=x.form)==null?void 0:I.element;W.JSC$10410_screenManager.clickCommand(P,null,x&&x.getScreenLayer&&x.getScreenLayer())}else P.clickTrackingParams?W.JSC$10410_screenManager.clickCommand(P):!_.p("disable_clicked_visual_element_in_command_handler")&&(x==null?0:x.clickedVisualElement)&&_.yI(W.JSC$10410_screenManager,
x.clickedVisualElement)},zHw=function(W){var P=!!_.Q(W,_.B7),x;
W=((x=_.Q(W,_.Y6))==null?void 0:x.signal)==="CLIENT_SIGNAL";return P||W},GpA=function(W,P,x){var I=_.Q(P,_.B7);
if(I)var O=(I==null?void 0:I.commands)||[];else{var B;if(((B=_.Q(P,_.Y6))==null?void 0:B.signal)==="CLIENT_SIGNAL"){var Y;O=((Y=_.Q(P,_.Y6))==null?void 0:Y.actions)||[]}}if(O){P=_.n(O);for(O=P.next();!O.done;O=P.next()){O=O.value;try{W.resolveCommand(O,x)}catch(K){K instanceof Error&&_.G$(K)}}return!0}lgR(P,"Could not handle the meta command");return!1},Eyi=function(W){var P;
return!((P=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null||!P.url)};var Sv=function(){R9.apply(this,arguments)};
_.A(Sv,R9);Sv.prototype.validate=function(W){var P,x;return!this.hasRun&&!!((P=W.data.response)==null?0:(x=P.onResponseReceivedEndpoints)==null?0:x.length)};
Sv.prototype.handle=function(W){var P=_.Ix.instance;W=_.n(W.data.response.onResponseReceivedEndpoints);for(var x=W.next();!x.done;x=W.next())P.resolveCommand(x.value)};var gy3,DWA,MZ3;
gy3=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Jn();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.ug=function(){DWA||(DWA=new gy3);return DWA};
MZ3=function(){var W=_.ug();W.miniplayerButtonActivation=!1;W.userActivation=!1;W.playlistWatchPageActivation=!1;W.productDetailsPageActivation=!1;W.miniAppPageActivation=!1;W.playablesDestPageActivation=!1;W.lockupActivation=!1;W.showMiniplayerCommandActivation=!1;W.playlistSuggestionsShelfActivation=!1;W.mediaSessionPipActivation=!1;W.watchPipActivation=!1;W.watchWhileActivation=!1;W.shortsPipActivation=!1};
_.$W3=function(){var W=_.ug(),P=W.mediaSessionPipActivation,x=W.watchPipActivation,I=W.watchWhileActivation,O=W.playlistWatchPageActivation,B=W.lockupActivation,Y=W.showMiniplayerCommandActivation,K=W.navigatingAwayFromWatchDeletedVideo,Z=W.shortsPipActivation,d=W.playlistSuggestionsShelfActivation,v=W.productDetailsPageActivation,m=W.miniAppPageActivation,t=W.playablesDestPageActivation;return!W.miniplayerButtonActivation&&!O&&!d&&!v&&!m&&!t&&!B&&!Y&&!P&&!x&&!I&&!Z||K};var zbS;_.dx=rw("FEwhat_to_watch","/",3854);_.GGC=rw("FEdownloads","/feed/downloads",42352);zbS=rw("FEmusic_offline","browse/FEmusic_offline",42352);var Un=function(W,P){P=P===void 0?[]:P;var x=x===void 0?[]:x;P=S1x.apply(null,[u0m.apply(null,_.ju(P))].concat(_.ju(x)));this.store=mYU(W,void 0,P)};
Un.prototype.getState=function(){return this.store.getState()};
Un.prototype.dispatch=function(W){return this.store.dispatch(W)};
Un.prototype.subscribe=function(W){return this.store.subscribe(W)};
Un.prototype.replaceReducer=function(W){return this.store.replaceReducer(W)};
Un.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.sx=function(W,P,x){var I=P(W.getState());return W.subscribe(function(){var O=P(W.getState());if(O!==I){var B=I;I=O;x(O,B)}})};var bhA;_.mG=function(W,P,x){return _.LK({type:"REPLACE_ENTITY",payload:{entityPayload:x,entityType:W,key:P}})};
bhA=function(W){return _.LK({type:"REPLACE_ENTITIES",payload:W})};
_.$s=function(W,P,x,I){return _.LK({type:"UPDATE_ENTITY",payload:{entityPayload:x,entityType:W,key:P,mergeOption:I}})};var Y8W=function(W){var P=this;W=W===void 0?[]:W;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;W.forEach(function(x){P.append(x)})};
_.J=Y8W.prototype;_.J.getLength=function(){return this.totalLength};
_.J.append=function(W){var P=this.arrays.length===0?!1:(P=this.arrays[this.arrays.length-1])&&P.buffer===W.buffer&&P.byteOffset+P.length===W.byteOffset;P?(P=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(P.buffer,P.byteOffset,P.length+W.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(W);this.totalLength+=W.length};
_.J.split=function(W){for(var P=new Y8W,x=new Y8W,I=_.n(this.arrays),O=I.next();!O.done;O=I.next())O=O.value,W>=O.length?(P.append(O),W-=O.length):W?(P.append(new Uint8Array(O.buffer,O.byteOffset,W)),x.append(new Uint8Array(O.buffer,O.byteOffset+W,O.length-W)),W=0):x.append(O);return{headView:P,tailView:x}};
_.J.extract=function(W,P){return this.split(W).tailView.split(P).headView};
_.J.isFocused=function(W){return W>=this.arrayPos&&W<this.arrayPos+this.arrays[this.arrayIdx].length};
_.J.focus=function(W){if(!this.isFocused(W))for(W<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=W&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var wbP=function(W,P){W.focus(P);return W.arrays[W.arrayIdx][P-W.arrayPos]};(function(){var W=function(I){return new Uint8Array(I)},P=function(I){for(var O=new Uint8Array(I.length),B=0;B<I.length;B++)O[B]=I[B];
return O},x=new Uint8Array([1]);
return x.length===1&&x[0]===1?W:P})();
var xcR=Array(1024),Pex=window.TextDecoder?new TextDecoder:void 0,OhS=window.TextEncoder?new TextEncoder:void 0;var nBo=function(W){this.arrayView=W;this.pos=0;this.pendingTagAndType=-1},Wu=function(W){var P=wbP(W.arrayView,W.pos);
++W.pos;if(P<128)return P;for(var x=P&127,I=1;P>=128;)P=wbP(W.arrayView,W.pos),++W.pos,I*=128,x+=(P&127)*I;return x},yhm=function(W,P){var x=W.pendingTagAndType;
for(W.pendingTagAndType=-1;W.pos+1<=W.arrayView.totalLength;){x<0&&(x=Wu(W));var I=x>>3,O=x&7;if(I===P)return!0;if(I>P){W.pendingTagAndType=x;break}x=-1;switch(O){case 0:Wu(W);break;case 1:W.pos+=8;break;case 2:I=Wu(W);W.pos+=I;break;case 5:W.pos+=4}}return!1};var Zhm=function(){this.pos=0;this.submessagePosStack=[];this.buf=BQU(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},IY=function(W,P){P=W.pos+P;
if(!(W.buf.length>=P)){for(var x=W.buf.length*2;x<P;)x*=2;W.buf=BQU(x,W.buf.subarray(0,W.pos));W.view=new DataView(W.buf.buffer,W.buf.byteOffset,W.buf.byteLength)}},xz=function(W,P){if(P>268435455){IY(W,4);
for(var x=P&1073741823,I=0;I<4;I++)W.view.setUint8(W.pos,x&127|128),x>>=7,W.pos+=1;P=Math.floor(P/268435456)}for(IY(W,4);P>127;)W.view.setUint8(W.pos,P&127|128),P>>=7,W.pos+=1;W.view.setUint8(W.pos,P);W.pos+=1};for(var oBS={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},KsR={},hHP=_.n(Object.entries(oBS)),HBc=hHP.next();!HBc.done;HBc=hHP.next()){var eHl=_.n(HBc.value),cxd=eHl.next().value,axZ=eHl.next().value,bBp=cxd,kpb=axZ;kpb&&(KsR[kpb]=bBp)};var uht=function(W,P){W=W===void 0?{}:W;switch(P.type){case "ENTITY_LOADED":return P.payload.reduce(function(I,O){var B,Y=(B=O.options)==null?void 0:B.persistenceOption;if(Y&&Y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return I;if(!O.entityKey)return _.G$(Error("zf")),I;if(O.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!O.payload)return O=new _.mW("REPLACE entity mutation is missing a payload",{entityKey:O.entityKey}),_.G$(O),I;var K=(0,_.jU.getAnyKey)(O.payload);
return sIx(I,K,O.entityKey,O.payload[K])}if(O.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{O=O.entityKey;try{var Z=_.Pu(O).entityType;K=sIx(I,Z,O);break a}catch(m){if(m instanceof Error){O=new _.mW("Failed to deserialize entity key",{entityKey:O,originalMessage:m.message});_.G$(O);K=I;break a}throw m;}K=void 0}return K}if(O.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!O.payload)return O=new _.mW("UPDATE entity mutation is missing a payload",{entityKey:O.entityKey}),_.G$(O),I;K=(0,_.jU.getAnyKey)(O.payload);
var d,v;return vBW(I,K,O.entityKey,O.payload[K],(d=O.fieldMask)==null?void 0:(v=d.mergeOptions)==null?void 0:v.repeatedFieldsMergeOption)}return I},W);
case "REPLACE_ENTITY":var x=P.payload;return sIx(W,x.entityType,x.key,x.entityPayload);case "REPLACE_ENTITIES":return Object.keys(P.payload).reduce(function(I,O){var B=P.payload[O];return Object.keys(B).reduce(function(Y,K){return sIx(Y,O,K,B[K])},I)},W);
case "UPDATE_ENTITY":return x=P.payload,vBW(W,x.entityType,x.key,x.entityPayload,x.mergeOption);default:return W}};var mcS;var UWl=!1,vK,m8,VI,tN,pg,Xbl=function(W){_.vn.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!UWl){var P,x=new Uint8Array(256),I=new Uint8Array(256);var O=1;for(P=0;P<256;P++)x[O]=P,I[P]=O,O^=O<<1^(O>>7&&283);vK=new Uint8Array(256);m8=Bu(256);VI=Bu(256);tN=Bu(256);pg=Bu(256);for(var B=0;B<256;B++){O=B?I[255^x[B]]:0;O^=O<<1^O<<2^O<<3^O<<4;O=O&255^O>>>8^99;vK[B]=O;P=O<<1^(O>>7&&283);var Y=P^O;m8[B]=P<<24|O<<16|O<<8|Y;VI[B]=Y<<24|m8[B]>>>8;tN[B]=O<<24|VI[B]>>>
8;pg[B]=O<<24|tN[B]>>>8}UWl=!0}O=Bu(44);for(x=0;x<4;x++)O[x]=W[4*x]<<24|W[4*x+1]<<16|W[4*x+2]<<8|W[4*x+3];for(I=1;x<44;x++)W=O[x-1],x%4||(W=(vK[W>>16&255]^I)<<24|vK[W>>8&255]<<16|vK[W&255]<<8|vK[W>>>24],I=I<<1^(I>>7&&283)),O[x]=O[x-4]^W;this.key=O};
_.A(Xbl,_.vn);
Xbl.prototype.encrypt=function(W){var P=W.length;W=new Uint8Array(W.buffer.slice(W.byteOffset,W.byteOffset+P));for(var x=this.cipherBlock,I=0;I<P&&this.blockOffset<16;)W[I++]^=x[this.blockOffset++];for(var O=P-(P-I)%16;I<O;)fxl(this),W[I++]^=x[0],W[I++]^=x[1],W[I++]^=x[2],W[I++]^=x[3],W[I++]^=x[4],W[I++]^=x[5],W[I++]^=x[6],W[I++]^=x[7],W[I++]^=x[8],W[I++]^=x[9],W[I++]^=x[10],W[I++]^=x[11],W[I++]^=x[12],W[I++]^=x[13],W[I++]^=x[14],W[I++]^=x[15];if(I<P)for(fxl(this),this.blockOffset=0;I<P;)W[I++]^=
x[this.blockOffset++];return W};
var NWl=function(W,P){for(var x=0;x<4;x++)W.counter[x]=P[x*4]<<24|P[x*4+1]<<16|P[x*4+2]<<8|P[x*4+3];W.blockOffset=16},fxl=function(W){for(var P=W.key,x=W.counter[0]^P[0],I=W.counter[1]^P[1],O=W.counter[2]^P[2],B=W.counter[3]^P[3],Y=3;Y>=0&&!(W.counter[Y]=-~W.counter[Y]);Y--);
for(var K,Z,d=4;d<40;)Y=m8[x>>>24]^VI[I>>16&255]^tN[O>>8&255]^pg[B&255]^P[d++],K=m8[I>>>24]^VI[O>>16&255]^tN[B>>8&255]^pg[x&255]^P[d++],Z=m8[O>>>24]^VI[B>>16&255]^tN[x>>8&255]^pg[I&255]^P[d++],B=m8[B>>>24]^VI[x>>16&255]^tN[I>>8&255]^pg[O&255]^P[d++],x=Y,I=K,O=Z;W=W.cipherBlock;Y=P[40];W[0]=vK[x>>>24]^Y>>>24;W[1]=vK[I>>16&255]^Y>>16&255;W[2]=vK[O>>8&255]^Y>>8&255;W[3]=vK[B&255]^Y&255;Y=P[41];W[4]=vK[I>>>24]^Y>>>24;W[5]=vK[O>>16&255]^Y>>16&255;W[6]=vK[B>>8&255]^Y>>8&255;W[7]=vK[x&255]^Y&255;Y=P[42];
W[8]=vK[O>>>24]^Y>>>24;W[9]=vK[B>>16&255]^Y>>16&255;W[10]=vK[x>>8&255]^Y>>8&255;W[11]=vK[I&255]^Y&255;Y=P[43];W[12]=vK[B>>>24]^Y>>>24;W[13]=vK[x>>16&255]^Y>>16&255;W[14]=vK[I>>8&255]^Y>>8&255;W[15]=vK[O&255]^Y&255};var lxZ=!1;(function(){var W=function(I){return new Uint8Array(I)},P=function(I){for(var O=new Uint8Array(I.length),B=0;B<I.length;B++)O[B]=I[B];
return O},x=new Uint8Array([1]);
return x.length===1&&x[0]===1?W:P})();
var jv;var TWi=function(W){this.JSC$10477_aesKey=W};
TWi.prototype.encrypt=function(W,P){var x=this,I,O;return _.y(function(B){if(B.nextAddress==1){a:{if(!lxZ&&!fj){if(jv){var Y=jv;break a}jv=(Y=window.crypto)==null?void 0:Y.subtle;var K,Z,d;if(((K=jv)==null?0:K.importKey)&&((Z=jv)==null?0:Z.sign)&&((d=jv)==null?0:d.encrypt)){Y=jv;break a}jv=void 0}Y=void 0}I=Y;if(!I)return B.return(rxi(x,W,P));_.OT(B,3);return _.S(B,iBP(x,W,P,I),5)}if(B.nextAddress!=3)return B.return(B.yieldResult);O=_.yn(B);_.ge(O);lxZ=!0;return B.return(rxi(x,W,P))})};
var iBP=function(W,P,x,I){var O,B;return _.y(function(Y){switch(Y.nextAddress){case 1:if(W.cryptoKey){Y.jumpTo(2);break}return _.S(Y,I.importKey("raw",W.JSC$10477_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:W.cryptoKey=Y.yieldResult;case 2:return O={name:"AES-CTR",counter:x,length:128},_.S(Y,I.encrypt(O,W.cryptoKey,P),4);case 4:return B=Y.yieldResult,Y.return(new Uint8Array(B))}})},rxi=function(W,P,x){W.encryptorPolyfill||(W.encryptorPolyfill=new Xbl(W.JSC$10477_aesKey));
NWl(W.encryptorPolyfill,x);return W.encryptorPolyfill.encrypt(P)},RHw=function(W){this.JSC$10481_aesKey=W};
RHw.prototype.encrypt=function(W,P){this.encryptor||(this.encryptor=new Xbl(this.JSC$10481_aesKey));NWl(this.encryptor,P);return this.encryptor.encrypt(W)};var FI3={},pzt=rO("yt-idb-pref-storage",{objectStores:(FI3.prefs={addedAtVersion:1},FI3),shared:!1,upgrade:function(W,P){P(1)&&HP(h0(W,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.QI=function(W){this.token=W};
_.QI.getInstance=function(){return _.y(function(W){return W.return(new Promise(function(P){_.TM().then(function(x){x?(_.QI.instance||(_.QI.instance=new _.QI(x)),P(_.QI.instance)):P(void 0)})}))})};
_.QI.prototype.get=function(W){var P=this,x,I,O;return _.y(function(B){if(B.nextAddress==1)return _.S(B,jIG(P.token),2);if(B.nextAddress!=3)return x=B.yieldResult,_.S(B,x.get("prefs",W),3);I=B.yieldResult;if(!I)return B.return();O=(0,_.iA)();return I.expirationTimestampMs<=O?B.return():B.return(I.value)})};
_.QI.prototype.set=function(W,P,x){x=x===void 0?31536E3:x;var I=this,O,B,Y;return _.y(function(K){if(K.nextAddress==1)return O=(0,_.iA)(),B={key:W,value:P,expirationTimestampMs:O+x*1E3},_.S(K,jIG(I.token),2);Y=K.yieldResult;return _.S(K,Y.put("prefs",B),0)})};
_.QI.prototype.remove=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,jIG(P.token),2);x=I.yieldResult;return _.S(I,x.delete("prefs",W),0)})};var Cg={},qmZ=(Cg.INVALID_ENCODER_VERSION="Invalid encoder version",Cg.KEY_CREATION_FAILED="Failed to create encoder key",Cg.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Cg.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Cg.WRONG_DATA_TYPE="Encoder cannot process the data type",Cg),nR=function(W,P){P=P===void 0?{}:P;_.mW.call(this,qmZ[W],Object.assign({},{name:"PESEncoderError",type:W},P));this.type=W;this.level="WARNING";Object.setPrototypeOf(this,nR.prototype)};
_.A(nR,_.mW);var LIW=function(){},W3m=function(W,P,x){try{return W.encodeImpl(P,x)}catch(I){zKR(I,Ce8)}},PRA=function(W,P,x){var I;
return _.y(function(O){if(O.nextAddress==1)return _.OT(O,2),_.S(O,W.decodeAsyncImpl(P,x),4);if(O.nextAddress!=2)return O.return(O.yieldResult);I=_.yn(O);zKR(I,AhG);_.Kl(O)})};
LIW.prototype.decodeAsyncImpl=function(W,P){return Promise.resolve(this.decodeImpl(W,P))};var AN=function(W,P){this.aesEncryptor=W;this.aesEncryptorAsync=P};
_.A(AN,LIW);AN.prototype.encodeImpl=function(W,P){P=GPx(P);W=(new TextEncoder).encode(JSON.stringify(W));return this.aesEncryptor.encrypt(W,P)};
AN.prototype.decodeImpl=function(W,P){if(!(W instanceof Uint8Array))throw QIR(1);var x=new TextDecoder;P=GPx(P);W=this.aesEncryptor.encrypt(W,P);return JSON.parse(x.decode(W))};
AN.prototype.decodeAsyncImpl=function(W,P){var x=this,I,O,B;return _.y(function(Y){if(Y.nextAddress==1){if(!(W instanceof Uint8Array))throw QIR(1);I=new TextDecoder;O=GPx(P);return _.S(Y,x.aesEncryptorAsync.encrypt(W,O),2)}B=Y.yieldResult;return Y.return(JSON.parse(I.decode(B)))})};var EBo={accountLinkStatusEntity:DmW,booleanEntity:nfp,buttonEntity:oPZ,captionTrack:Ohk,channelHandle:r8M,chipEntity:T63,commerceAcquisitionClientPayloadEntity:elZ,commerceCartListEntity:cNA,contextNoteFeedEntityPayload:PYz,continuationTokenEntity:kup,downloadQualityPickerEntity:g13,downloadsPageRefreshTokenEntity:Mt3,downloadsPageViewConfigurationEntity:Rsp,downloadStatusEntity:DCl,dismissState:rci,sfvAudioItemCurrentlyPlayingEntity:eKd,emojiFountainDataEntity:yNz,emojiCustomizationSetEntity:Yxk,
fakeChannel:KzW,fakePlaylist:ZAl,fakePlaylistEntryCollection:ofP,fakeVideo:uMm,fakeVideoDescription:dml,featuredProductsEntity:d_d,flowStateEntity:z$P,iconBadgeEntity:afM,interstitialInteractionStateEntity:iAc,likeButtonAnimationEntity:FmP,liveChatPollStateEntity:InW,liveViewerLeaderboardChatEntryPointStateEntity:mck,liveViewerLeaderboardPointsEntity:VYp,liveReactionsDataEntity:K8c,logoEntity:T0z,macroMarkerEntity:qPb,mainDownloadsLibraryEntity:$Cw,mainDownloadsListEntity:wLz,mainPlaylistDownloadStateEntity:HbP,
mainPlaylistEntity:UCM,mainPlaylistVideoEntity:XLP,mainVideoDownloadStateEntity:esZ,mainVideoEntity:Tii,markersEngagementPanelSyncEntity:Lmd,markersVisibilityOverrideEntity:Wac,musicAlbumReleaseDetail:z2d,musicAlbumReleaseDownloadMetadataEntity:ppP,musicAlbumRelease:AZm,musicAlbumReleaseUserDetail:GXz,musicArtistDetail:gUk,musicArtist:EUP,musicArtistUserDetail:D_c,musicDownloadsLibraryEntity:jep,musicLibraryEdit:M2P,musicLibraryStatusEntity:$_d,musicPlaylist:wp3,musicPlaylistDownloadMetadataEntity:Qeb,
musicShare:H0w,musicTrackDetail:cZP,musicTrackDownloadMetadataEntity:CdZ,musicTrack:e2p,musicTrackUserDetail:agi,offlineOrchestrationActionWrapperEntity:Jhk,offlineVideoPolicy:BQc,offlineVideoStreams:nBW,offlineabilityEntity:cVk,orchestrationWebSamplingEntity:anb,pageHeaderEntity:Pgp,pdpStateEntity:bgb,pinnedProductEntity:se3,playbackData:Y8i,playerStateEntity:Pdm,quantityIncrementerEntity:ksb,refresh:yhw,saveToPlaylistListEntity:Ytk,selectedChipIndexEntityPayload:x_W,settingEntity:EZZ,stringEntity:Y7b,
suggestedFeedbackChipStateEntity:Ig3,transfer:KsA,trendingOfferEntity:vU3,videoDownloadContextEntity:ZhM,videoOverviewAsyncDataEntity:Z6Z,videoPlaybackPositionEntity:dGM,votingEntity:Ogi,ytMainChannelEntity:rVc,youchatPendingResponseEntity:O0w,ytMainDownloadedVideoEntity:bbm,ytMainVideoEntity:ibz};var xfP,O73,oY,eKx,chm,nwk,yfM,Yfw,Bqk;xfP=function(W,P){this.JSC$10500_wrapped=W;this.JSC$10500_encoderRegistry=P;this.changedKeys={}};
O73=function(W,P){a:{W=Idi(W.JSC$10500_encoderRegistry,P.version);try{var x=W.decodeImpl(P.data,P.key);break a}catch(I){zKR(I,AhG)}x=void 0}return x};
_.JfA=function(W,P,x){return W.JSC$10500_wrapped.objectStore("EntityStore").get(P).then(function(I){if(I){if(x&&I.entityType!==x)throw Error("Af");return O73(W,I)}})};
oY=function(W,P,x){return x?(x=x.map(function(I){return _.JfA(W,I,P)}),wO.all(x)):W.JSC$10500_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(P)).then(function(I){return I.map(function(O){return O73(W,O)})})};
_.HhU=function(W,P,x){var I=S87(P),O=Idi(W.JSC$10500_encoderRegistry,1),B=Object.assign({},P);return W.JSC$10500_wrapped.objectStore("EntityStore").get(I).then(function(Y){if(Y){if(Y.entityType!==x)throw Error("Af");B.entityMetadata||(Y=O73(W,Y),B.entityMetadata=Y.entityMetadata)}}).then(function(){var Y={key:I,
entityType:x,data:W3m(O,B,I),version:1};return wO.all([W.JSC$10500_wrapped.objectStore("EntityStore").put(Y),Bqk(W,B,x)])}).then(function(){nwk(W,I,x);
return I})};
eKx=function(W,P){var x=_.Pu(P).entityType;return wO.all([W.JSC$10500_wrapped.objectStore("EntityStore").delete(P),Yfw(W,P)]).then(function(){nwk(W,P,x)})};
chm=function(W,P,x,I){var O=Idi(W.JSC$10500_encoderRegistry,1);return _.JfA(W,P,I).then(function(B){if(B){B=WsR(B,x);var Y={key:P,entityType:I,data:W3m(O,B,P),version:1};return wO.all([W.JSC$10500_wrapped.objectStore("EntityStore").put(Y),Bqk(W,B,I)])}}).then(function(){nwk(W,P,I);
return P})};
nwk=function(W,P,x){var I=W.changedKeys[x];I||(I=new Set,W.changedKeys[x]=I);I.add(P)};
yfM=function(W,P,x){var I=S87(P);x=gBS(x);if(!x)return wO.resolve([]);x=new x(P);W=W.JSC$10500_wrapped.objectStore("EntityAssociationStore");P=[];x=_.n(x.getAssociations());for(var O=x.next();!O.done;O=x.next())P.push(W.put({parentEntityKey:I,childEntityKey:O.value}));return wO.all(P).then(function(B){return B.map(function(Y){return Y[1]})})};
Yfw=function(W,P){return W.JSC$10500_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(P))};
Bqk=function(W,P,x){var I=S87(P);return Yfw(W,I).then(function(){return yfM(W,P,x)})};var K3z=function(){};
_.A(K3z,LIW);K3z.prototype.encodeImpl=function(W){return W};
K3z.prototype.decodeImpl=function(W){if(W instanceof Uint8Array)throw QIR(0);return W};var $cC=function(){this.cacheMap={};this.cacheMap[0]=new K3z;if(!_.p("aes_pes_encoder_killswitch")){var W=this.cacheMap;try{var P=_.sy();var x=GPx(P);var I=new AN(new RHw(x),new TWi(x))}catch(O){throw W=O instanceof Error?new nR("KEY_CREATION_FAILED",{originalMessage:O.message}):new nR("KEY_CREATION_FAILED"),_.G$(W),W;}W[1]=I}},Idi=function(W,P){P=P===void 0?0:P;
W=W.cacheMap[P];if(!W)throw P=new nR("INVALID_ENCODER_VERSION",{encoderVersion:P}),_.G$(P),P;return W};var yT=function(W,P){_.vn.call(this);this.token=W;this.JSC$10514_encoderRegistry=P;this.observers=[];W=new _.xW.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.sy());W.onmessage=this.handleMessage.bind(this);this.channel=W};
_.A(yT,_.vn);_.Z5=function(W,P,x){var I,O,B,Y;return _.y(function(K){if(K.nextAddress==1)return _.S(K,tYm(W.token),2);if(K.nextAddress!=3)return I=K.yieldResult,_.S(K,_.kO(I,["EntityStore","EntityAssociationStore"],P,function(Z){O=new xfP(Z,W.JSC$10514_encoderRegistry);return x(O)}),3);
B=K.yieldResult;O&&(Y=O.changedKeys,Object.keys(Y).length>0&&(W.channel.postMessage(Y),Z7z(W,Y)));return K.return(B)})};
yT.prototype.observe=function(W){var P=this;this.observers.push(W);return function(){var x=P.observers.indexOf(W);x>=0&&P.observers.splice(x,1)}};
var e8U=function(W){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,_.Z5(W,{mode:"readonly",enableRetries:!0},function(I){return I.JSC$10500_wrapped.objectStore("EntityStore").getAll()}),2);
P=x.yieldResult;return x.return(Promise.all(P.filter(function(I){return!!I}).map(function(I){var O,B;
return _.y(function(Y){if(Y.nextAddress==1){O=I.key;B=I.entityType;var K=PRA(Idi(W.JSC$10514_encoderRegistry,I.version),I.data,I.key);return _.S(Y,K,2)}return Y.return({key:O,entityType:B,data:Y.yieldResult})})})))})};
yT.prototype.handleMessage=function(W){Z7z(this,W.data)};
var Z7z=function(W,P){W=_.n(W.observers);for(var x=W.next();!x.done;x=W.next())x=x.value,x(P)};
yT.prototype.disposeInternal=function(){this.channel.close()};
var DcA;var zs,SfZ,ZwR,Ibm;zs={};_.owZ=(zs.mainVideoEntity="mainVideoEntityActionMetadata",zs.mainPlaylistEntity="mainPlaylistEntityActionMetadata",zs.musicTrack="musicTrackEntityActionMetadata",zs.musicPlaylist="musicPlaylistEntityActionMetadata",zs);SfZ=new _.Lb("DOWNLOADS_ENTITY_TYPE_MAP");ZwR=_.On("","downloadsPageViewConfigurationEntity");Ibm=_.On("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.upW=_.On("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.On("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.On("SMART_DOWNLOADS_ENABLED","settingEntity");_.On("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Xzt=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var RKU=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var PGC={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Gs,L4d,JEA,a4G;Gs=window;_.MB=Gs.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.K8U=Gs.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.aY;L4d=Gs.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Ga;JEA=Gs.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||O_k;_.uKw=Gs.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.p5c;a4G=Gs.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||CSZ;el({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 Sx7=W8S(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(W){return W}}}),s2U=W8S(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(W){return W}}}),OgW=new Map;var dGm=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],yN8;var dfi=function(W){return _.LK({type:"SET_EPHEMERAL_ACTION",payload:W})};var sVm={ephemeralAction:null};var vwd={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var cNR={sharedUi:function(W,P){W=W===void 0?vwd:W;switch(P.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},W,{animatedThumbnailEnabled:P.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},W,{inlinePreviewEnabled:P.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:P.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},W,{currentPageSubType:P.payload});default:return W}},
a11y:Ya({ephemeralAction:function(W,P){W=W===void 0?sVm.ephemeralAction:W;switch(P.type){case "SET_EPHEMERAL_ACTION":return P.payload;default:return W}}})};var DGR=Ya({isLeaderTab:function(W,P){W=W===void 0?!0:W;switch(P.type){case "SET_IS_LEADER_TAB":var x,I;return(I=P==null?void 0:(x=P.payload)==null?void 0:x.isLeaderTab)!=null?I:W;default:return W}}});var mfP=function(W){return _.LK({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:W}})};var elG=Ya({isDesktopSmallWidth:function(W,P){switch(P.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return P.payload.isDesktopSmallWidth;default:return W===void 0?!1:W}},
isShortsActive:function(W,P){switch(P.type){case "SET_IS_SHORTS_ACTIVE":return P.payload.isShortsActive;default:return W===void 0?!1:W}},
isWatchWhileMode:function(W,P){switch(P.type){case "SET_IS_WATCH_WHILE_MODE":return P.payload.isWatchWhileMode;default:return W===void 0?!1:W}},
playerState:function(W,P){switch(P.type){case "SET_PLAYER_STATE":return P.payload.playerState;default:return W===void 0?-1:W}},
isFullscreen:function(W,P){switch(P.type){case "SET_IS_FULLSCREEN":return P.payload.isFullscreen;default:return W===void 0?!1:W}},
isSmallScreenSqueezeback:function(W,P){switch(P.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return P.payload.isSmallScreenSqueezeback;default:return W===void 0?!1:W}},
isShortsPipActive:function(W,P){switch(P.type){case "SET_IS_SHORTS_PIP_ACTIVE":return P.payload.isShortsPipActive;default:return W===void 0?!1:W}},
isPlaybackStarted:function(W,P){switch(P.type){case "SET_IS_PLAYBACK_STARTED":return P.payload.isPlaybackStarted;default:return W===void 0?!1:W}}});var pKS={playlistId:"",inviteLinkURL:""};var Vgb={};var gPC=Ya({continuationCommand:function(W,P){W=W===void 0?Vgb:W;switch(P.type){case "SET_CONTINUATION_COMMAND":return P.payload.continuationCommand;default:return W}}});var bg7=function(){return function(W){return function(P){var x=W(P);_.W7(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[P],!0);return x}}};var tgl,ajx;tgl=new _.If;_.Pq=new _.Lb("WATCH_PLAYER_PROMISE_TOKEN");_.pwW=new _.If;_.jV3=new _.Lb("SHORTS_PLAYER_PROMISE_TOKEN");ajx=new _.Lb("");var ks7=function(){return function(W){return function(P){P.type==="ENTITY_LOADED"&&_.FY().resolve(_.Pq).then(function(x){var I;(I=x.dispatchReduxAction)==null||I.call(x,P)});
return W(P)}}};var Qmx={currentFormId:"",commandsMap:{}};var QVl={};var MvR=Ya({additionalContext:function(W,P){switch(P.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var x;return(x=P.payload)!=null?x:"";default:return W===void 0?"":W}},
impersonatedChannelUrl:function(W,P){switch(P.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var x;return(x=P.payload)!=null?x:"";default:return W===void 0?"":W}},
selectedVideoIds:function(W,P){W=W===void 0?QVl:W;switch(P.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var x={};return Object.assign({},W,(x[P.payload]=!0,x));case "VIDEO_UNSELECTED":return P=P.payload,W=Object.assign({},W),delete W[P],W;default:return W}}});var $GA=Ya({parentClickTrackingParams:function(W,P){switch(P.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return P.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return W===void 0?"":W}}});var CRw=function(W){return _.LK({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:W})};var AfP={};var wKG=Ya({stepStates:function(W,P){W=W===void 0?AfP:W;switch(P.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var x=W,I=P.payload,O,B,Y;W={};P={selectionStates:Object.assign({},(Y=(O=x[I.stepId])==null?void 0:O.selectionStates)!=null?Y:{},(W[I.token]={isSelected:I.isSelected},W)),userQuery:(B=x[I.stepId])==null?void 0:B.userQuery};O={};return Object.assign({},x,(O[I.stepId]=P,O));case "TALK_TO_RECS_UPDATE_USER_QUERY":return O=W,B=P.payload,Y={selectionStates:Object.assign({},
(I=(x=O[B.stepId])==null?void 0:x.selectionStates)!=null?I:{}),userQuery:{userQuery:B.userQuery,token:B.userQueryToken}},x={},Object.assign({},O,(x[B.stepId]=Y,x));default:return W}}});var z9l,Gqd;z9l=function(W){return _.LK({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:W})};
Gqd=function(W){return _.LK({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:W})};
_.M$=function(W){return _.LK({type:"SET_CURRENT_PAGE_TYPE",payload:W})};
_.EwA=function(W){return _.LK({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:W})};var ANo={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"};_.gwz=function(W){return _.LK({type:"SET_PLAYER_STATE",payload:{playerState:W}})};var DfP=[],Mgd={width:0,height:0};var hlm=Ya({isTheaterMode:function(W,P){W=W===void 0?_.p("kevlar_disable_theater_mode_persistence")?!1:_.wo("START_IN_THEATER_MODE"):W;switch(P.type){case "SET_IS_THEATER_MODE":return P.payload.isTheaterMode;default:return W}},
isWatchActive:function(W,P){switch(P.type){case "SET_IS_WATCH_ACTIVE":return P.payload.isWatchActive;default:return W===void 0?!1:W}},
isLearningJourneyActive:function(W,P){switch(P.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return P.payload.isLearningJourneyActive;default:return W===void 0?!1:W}},
isWatchFullscreen:function(W,P){switch(P.type){case "SET_IS_WATCH_FULLSCREEN":return P.payload.isWatchFullscreen;default:return W===void 0?!1:W}},
isWatchNarrowWidth:function(W,P){switch(P.type){case "SET_IS_WATCH_NARROW_WIDTH":return P.payload.isWatchNarrowWidth;default:return W===void 0?!1:W}},
isWatchRetroMode:function(W,P){switch(P.type){case "SET_IS_WATCH_RETRO_MODE":return P.payload.isWatchRetroMode;default:return W===void 0?!1:W}},
isLiveChatCollapsed:function(W,P){switch(P.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return P.payload.isLiveChatCollapsed;default:return W===void 0?!1:W}},
openEngagementPanels:function(W,P){W=W===void 0?DfP:W;var x=[].concat(_.ju(W));switch(P.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return x.push(P.payload.panelToAdd),x;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return x.splice(x.indexOf(P.payload.panelToRemove),1),x;default:return W}},
playerState:function(W,P){switch(P.type){case "SET_PLAYER_STATE":return P.payload.playerState;default:return W===void 0?-1:W}},
watchScrollTop:function(W,P){switch(P.type){case "SET_WATCH_SCROLL_TOP":return P.payload.watchScrollTop;default:return W===void 0?0:W}},
watchWindowSize:function(W,P){W=W===void 0?Mgd:W;switch(P.type){case "SET_WATCH_WINDOW_SIZE":return P.payload.watchWindowSize;default:return W}}});var $fw={feedbackTokens:[]};var Hgd=Ya({surveyFeedbackData:function(W,P){W=W===void 0?$fw:W;switch(P.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return P.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},W,P.payload);default:return W}}});var Gs8={};var XKW=void 0;_.p("web_enable_redux_store_on_demand")||(XKW=UGo());var wwP=function(W,P,x){var I=this;this.listId=W;this.JSC$10648_updateCallback=P;this.isOfflineVideoCallback=x;_.Xe().subscribe(function(){I.handleUpdate()})};
wwP.prototype.getPlaylistData=function(){var W=_.Xe().getState().entities;if(this.listId&&this.listId!=="PPSV"){var P=fbU(W,this.listId,!0),x=_.On(this.listId,"mainPlaylistEntity"),I,O;W=W==null?void 0:(I=W.mainPlaylistEntity)==null?void 0:(O=I[x])==null?void 0:O.title;return ff8(P,W,this.listId)}P=_.Fst(m3U(W));W=_.Fst(_.tb(W));return ff8(P.concat(W))};
wwP.prototype.getPlaylistId=function(){return this.listId};
wwP.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10648_updateCallback(this.listId,this.getPlaylistData(),{})};var Ex=function(W,P,x,I){I=I===void 0?[]:I;this.JSC$10651_playlistNetworkManager=W;this.listId=P;this.JSC$10651_updateCallback=x;this.videoIds=I;this.pendingUpdates=[];this.currentIndex=0};
Ex.prototype.JSC$10651_setCurrentIndex=function(W){this.currentIndex=W};
Ex.prototype.setListId=function(W){this.listId=W};
var h9i=function(W,P){W.currentCreateRequest&&W.currentCreateRequest.cancel(P);W.currentUpdateRequest&&W.currentUpdateRequest.cancel(P);W.currentRefreshRequest&&W.currentRefreshRequest.cancel(P)};
Ex.prototype.delete=function(){h9i(this,"PROXY DELETED")};
Ex.prototype.addVideos=function(W,P,x){var I=this;x!==void 0?this.videoIds.splice.apply(this.videoIds,[x,0].concat(_.ju(W))):this.videoIds.push.apply(this.videoIds,_.ju(W));this.listId||this.currentCreateRequest?(W.forEach(function(O,B){O={addedVideoId:O,action:"ACTION_ADD_VIDEO"};x&&(O.addedVideoPosition=x+B);I.pendingUpdates.push(O)}),gx(this)):H7Z(this,P.onCreateListCommand)};
var e9M=function(W,P,x,I,O){Qox(W.videoIds,P,x);P>W.currentIndex&&x<=W.currentIndex?W.JSC$10651_setCurrentIndex(W.currentIndex+1):P===W.currentIndex?W.JSC$10651_setCurrentIndex(x):P<W.currentIndex&&x>=W.currentIndex&&W.JSC$10651_setCurrentIndex(W.currentIndex-1);W.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:I,movedSetVideoIdPredecessor:O});gx(W)},H7Z=function(W,P){h9i(W,"OBSOLETE");
W.currentCreateRequest=cfW(W.JSC$10651_playlistNetworkManager,P,W.videoIds);_.CA(W.currentCreateRequest,function(){W.currentCreateRequest=void 0}).then(function(x){W.setListId(x.playlistId);
W.pendingUpdates.length>0?gx(W):ad3(W)})},gx=function(W){if(W.pendingUpdates.length!==0&&(W.currentRefreshRequest&&W.currentRefreshRequest.cancel("OBSOLETE"),!W.currentUpdateRequest&&!W.currentCreateRequest)){var P=W.pendingUpdates.splice(0,W.pendingUpdates.length);
W.currentUpdateRequest=W.JSC$10651_playlistNetworkManager.updatePlaylist(W.listId,P);_.CA(W.currentUpdateRequest,function(){W.currentUpdateRequest=void 0}).then(function(){W.pendingUpdates.length>0?gx(W):ad3(W)}).thenCatch(function(){W.pendingUpdates.unshift.apply(W.pendingUpdates,_.ju(P))})}},ad3=function(W){W.currentRefreshRequest=_.b7b(W.JSC$10651_playlistNetworkManager,W.listId,W.currentIndex,W.videoIds[W.currentIndex]);
_.CA(W.currentRefreshRequest,function(){W.currentRefreshRequest=void 0}).then(function(P){W.JSC$10651_updateCallback(P.playlistId,P.playlistPanelRenderer,P.autoplayRenderer)})};
Ex.prototype.size=function(){return this.videoIds.length};var kqd=function(W,P,x,I){I=I===void 0?[]:I;Ex.call(this,W,P,x,I);this.JSC$10651_playlistNetworkManager=W;this.listId=P;this.JSC$10651_updateCallback=x;this.videoIds=I};
_.A(kqd,Ex);_.Df=function(W,P,x,I,O,B,Y){O=O===void 0?[]:O;Y=Y===void 0?JW:Y;Ex.call(this,W,P,x,O);this.JSC$10651_playlistNetworkManager=W;this.listId=P;this.JSC$10651_updateCallback=x;this.onAuthChange=I;this.videoIds=O;this.storage=B;this.cookieReader=Y;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Fo(_.Gr,this.checkLoggedInStatusChange.bind(this),1E3)};
_.A(_.Df,Ex);_.J=_.Df.prototype;_.J.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Fo(_.Gr,this.checkLoggedInStatusChange.bind(this),1E3)};
_.J.JSC$10651_setCurrentIndex=function(W){Ex.prototype.JSC$10651_setCurrentIndex.call(this,W);this.store()};
_.J.delete=function(){_.Gr.cancelJob(this.queueSapisIdJob);Ex.prototype.delete.call(this)};
_.J.setListId=function(W){Ex.prototype.setListId.call(this,W);this.store()};
_.J.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Ufm=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Xwz=["playerResponse","videoDetails"],fdA=["response","currentVideoEndpoint","watchEndpoint","videoId"],NqW=["response","currentVideoEndpoint","watchEndpoint","playlistId"],ldA=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Tqm=["response","contents","twoColumnWatchNextResults","playlist","playlist"],rfp=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
i7W=["response","contents","twoColumnWatchNextResults"];var MG={},igm=(MG.WEB_UNPLUGGED="^unplugged/",MG.WEB_UNPLUGGED_ONBOARDING="^unplugged/",MG.WEB_UNPLUGGED_OPS="^unplugged/",MG.WEB_UNPLUGGED_PUBLIC="^unplugged/",MG.WEB_CREATOR="^creator/",MG.WEB_KIDS="^kids/",MG.WEB_EXPERIMENTS="^experiments/",MG.WEB_MUSIC="^music/",MG.WEB_REMIX="^music/",MG.WEB_MUSIC_EMBEDDED_PLAYER="^music/",MG.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",MG);var QM8,cfW;QM8=function(W,P){this.networkManager=W;this.innertubeTransportService=P};
cfW=function(W,P,x){if(!_.Q(P,_.eO))return _.s2(Error("Ef"));_.Q(P,_.eO).videoIds=x;x={create_playlist_title:_.KK("QUEUE",void 0,"Queue")};return Txm(_.cF(W.innertubeTransportService,P,x),NxC)};
_.b7b=function(W,P,x,I){P={videoId:I,playlistId:P,playlistIndex:x};x=_.fR(FAc);return Txm(_.$P(W.innertubeTransportService,P,x),rNC)};
QM8.prototype.updatePlaylist=function(W,P){return Txm(_.cF(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:W,actions:P}}),lfW)};var R9M=function(W){this.storage=W},F3A;
R9M.prototype.store=function(W,P){P=P===void 0?0:P;if(this.storage&&W.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",W),this.storage.set("TLPQindex",String(P)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(x){}};
R9M.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
R9M.prototype.getPlaylistId=function(){if(!this.storage)return null;var W=null;try{W=this.storage.get("TLPQplaylist")}catch(P){}return W};var L8W=["navigationEndpoint","watchEndpoint","videoId"],qxt=["nextButtonVideo","watchEndpoint","videoId"];_.v5=new _.Lb("NETWORK_TOKEN");_.rL=new _.Lb("PAGE_TOKEN");_.wx=new _.Lb("PLAYLIST_TOKEN");var qfP;qfP=new _.Lb("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.m7=new _.Lb("INNERTUBE_TRANSPORT_TOKEN");var L3p,hN,PW3,x0W,Orp,JTp;L3p=new Set(["ci","cr","carml"]);hN=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10698_parkedJobs=new Map;this.parkedProcessors=new Map};
_.HK=function(){hN.instance||(hN.instance=new hN);return hN.instance};
hN.prototype.onAny=function(W){return _.WlM(this,W,2)};
hN.prototype.parkOrScheduleJob=function(W,P,x,I,O){_.ev(this,x)?_.Ds().addJob(W,P,I):(O&&(W=PW3(W),x0W(this,W,P,x,O)),O=this.JSC$10698_parkedJobs.get(x),O||(this.JSC$10698_parkedJobs.set(x,[]),O=this.JSC$10698_parkedJobs.get(x)),O.push({job:W,priority:P,delay:I}))};
hN.prototype.addListener=function(W,P,x){x&&(P=PW3(P),x0W(this,P,0,W,x));x=this.parkedProcessors.get(W);x||(this.parkedProcessors.set(W,[]),x=this.parkedProcessors.get(W));x.push(P)};
hN.prototype.processSignal=function(W){if(!_.ev(this,W)){this.inProgressSignals.add(W);var P=this.JSC$10698_parkedJobs.get(W);if(P){P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=x.value,_.Ds().addJob(x.job,x.priority,x.delay);this.JSC$10698_parkedJobs.delete(W)}if(P=this.parkedProcessors.get(W)){P=_.n(P);for(x=P.next();!x.done;x=P.next())x=x.value,x();this.parkedProcessors.delete(W)}this.signals.push(W);this.inProgressSignals.delete(W)}};
_.ev=function(W,P){return L3p.has(P)||_.wo("IS_HOMEPAGE_COLD")||_.wo("IS_RESULTS_PAGE_COLD")||_.wo("IS_WATCH_PAGE_COLD")?W.signals.indexOf(P)>=0:!0};
PW3=function(W){var P=!1;return function(){P||(P=!0,W())}};
x0W=function(W,P,x,I,O){if(IW3.has(I))_.Ds().addJob(P,x,O);else{var B=W.compoundSignals.get(I);B&&_.Ds().addJob(function(){_.ev(W,I)||(B.isTimeoutConditionSatisfied?_.Ds().addJob(P,x):B.timeoutConditionObservers.push(function(){_.Ds().addJob(P,x)}))},x,O)}};
_.WlM=function(W,P,x){if(P.length>1){var I=[],O=Object.create(null);P=_.n(P);for(var B=P.next();!B.done;B=P.next())B=B.value,O[B]||(I.push(B),O[B]=!0);P=I}if(P.length===1)return P[0];B=P;I="";O=x===2?"|":"&";B.sort();B=_.n(B);for(var Y=B.next();!Y.done;Y=B.next())I+=Y.value+O;if(!W.compoundSignals.get(I)){O=0;B=[];Y=_.n(P);for(var K=Y.next();!K.done;K=Y.next())K=K.value,O++,_.ev(W,K)||B.push(K);(x=x===2)&&O>B.length||!x&&!B.length?W.signals.push(I):Orp(W,I,x,P,B)}return I};
Orp=function(W,P,x,I,O){var B=O.length,Y=function(){x||--B===0?W.processSignal(P):JTp(W,P)};
O=_.n(O);for(var K=O.next();!K.done;K=O.next())W.addListener(K.value,Y);W.compoundSignals.set(P,{signals:I,isOnAny:x,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});JTp(W,P)};
JTp=function(W,P){if(!_.ev(W,P)){var x=W.compoundSignals.get(P);if(x&&!x.isTimeoutConditionSatisfied){for(var I=!1,O=0,B=0,Y=_.n(x.signals),K=Y.next();!K.done;K=Y.next()){var Z=K.value;K=!_.ev(W,Z);IW3.has(Z)?I=!0:(Z=W.compoundSignals.get(Z))?K&&!Z.isTimeoutConditionSatisfied&&(B++,x.isInitialized||Z.timeoutConditionObservers.push(function(){JTp(W,P)})):K&&O++}x.isInitialized=!0;
x.isOnAny?I&&(x.isTimeoutConditionSatisfied=!0):O===0&&B===0&&(x.isTimeoutConditionSatisfied=!0);if(x.isTimeoutConditionSatisfied)for(x=_.n(x.timeoutConditionObservers),I=x.next();!I.done;I=x.next())I=I.value,I()}}};
hN.prototype.processSignal=hN.prototype.processSignal;hN.prototype.parkOrScheduleJob=hN.prototype.parkOrScheduleJob;hN.prototype.onAny=hN.prototype.onAny;_.lA("ytsignals.getInstance",_.HK);hN.prototype.onAny=hN.prototype.onAny;hN.prototype.parkOrScheduleJob=hN.prototype.parkOrScheduleJob;hN.prototype.processSignal=hN.prototype.processSignal;var IW3=new Set(["eop","eocs","dl","pcl"]);_.kc=new _.Lb("MINIPLAYER_SERVICE");var cK,BZl,nti;cK=function(W,P,x){var I=_.bs.getInstance();if(!F3A){var O=new tnS;var B=void 0,Y=_.$$("ID_TOKEN");Y&&O.isAvailable()&&(B=new jB(O,"yt-queue"+Y));F3A=new R9M(B)}O=F3A;B=_.HK();this.JSC$10705_actionRouter=I;this.pageManager=W;this.playlistManager=P;this.JSC$10705_playlistNetworkManager=x;this.storage=O;this.signals=B;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.am=function(){if(!BZl){var W=_.FY(),P=W.resolve(_.Rl(_.rL)),x=W.resolve(_.Rl(_.v5)),I=W.resolve(_.Rl(_.wx));W=W.resolve(_.m7);BZl=new cK(P,I,new QM8(x,W))}return BZl};
nti=function(W,P,x){if(x){var I;if(((I=W.responsePlaylistData)==null?void 0:I.playlistId)!==x)return}W.responsePlaylistData&&(x=JeA(P,W.responsePlaylistData),W.responsePlaylistData=(0,_.jU.unsafeClone)(W.responsePlaylistData),n9U(W.responsePlaylistData,x));x=W.temporaryItems.findIndex(function(O){return O.videoId===P});
x>-1&&W.temporaryItems.splice(x,1);_.bg(W,_.kP(W,W.response?W.response.autoplayRenderer:void 0))};
_.Y$W=function(W,P){if(W.responsePlaylistData){var x=Bbt(P,W.responsePlaylistData);n9U(W.responsePlaylistData,x);if(W.queueProxy){var I=W.queueProxy;x<0||(I.videoIds.splice(x,1),x<I.currentIndex&&I.JSC$10651_setCurrentIndex(I.currentIndex-1),I.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:P}),gx(I))}}_.bg(W,_.kP(W,W.response?W.response.autoplayRenderer:void 0))};
cK.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.bg(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
cK.prototype.setPlaylistData=function(W,P,x){this.temporaryItems=[];this.listId=W;this.responsePlaylistData=P;_.bg(this,_.kP(this,x))};
var yTi=function(W){return(W==null?0:W.playlistId)?W.playlistId:"PPSV"},Klw=function(W){return W&&W.playlistId?W.playlistId==="PPSV"?!0:UKC(_.Xe().getState().entities,W.playlistId):!1};
cK.prototype.isPlayingOfflineVideo=function(){return this.response?Klw(this.response):!1};
cK.prototype.closeMiniplayer=function(W){var P=this.queueProxy&&this.queueProxy.size()<=1,x=_.FY().resolve(_.kc);if(!this.queueProxy||P)this.queueProxy&&this.clearQueue(),x.close(!0);else{x.pipController.getWindow()&&window.focus();P=this.responsePlaylistData;var I=this.temporaryItems.length+(P&&P.contents?P.contents.length:0);P=_.KK("QUEUE_CLEARED_UNPLURALIZED")||_.ZE("QUEUE_CLEARED",I);P=_.lx(P);x=_.KK("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");I=_.KK("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.ZE("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",I);var O=_.KK("MINIPLAYER_CLOSE",void 0,"Close"),B=_.KK("CANCEL",void 0,"Cancel");_.wl(this.JSC$10705_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.bx(x),dialogMessages:[_.bx(I)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bx(O),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
P]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.bx(B)}}}}}}],W)}};
_.kP=function(W,P){var x={},I=W.response;x.autoplayRenderer=P;if(!W.responsePlaylistData&&!W.temporaryItems.length)return!I||!I.hasRelatedVideoData&&_.p("kevlar_prefetch_data_augments_network_data")||(x.playerData={rvs:I.relatedVideoArgs,endScreenRenderer:I.endScreenRenderer}),x;x.playerData={};if(W.index===void 0)return _.G$(Error("Gf")),x;x.panel=W.responsePlaylistData?(0,_.jU.unsafeClone)(W.responsePlaylistData):{titleText:_.bx(_.KK("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
P=x.panel;if(P.contents)for(var O=_.n(W.temporaryItems),B=O.next();!B.done;B=O.next())P.contents.push({playlistPanelVideoRenderer:B.value});W.queueProxy&&I&&I.playingVideo&&I.playingVideoId&&!O6C(I.playingVideoId,x.panel)&&(P=I.playingVideo,O=x.panel,B=W.index,O.contents&&O.contents.splice(B===void 0?0:B,0,{playlistPanelVideoRenderer:P}));I&&I.playingVideoId&&(P=W.index,O=x.panel,P=!O.contents||P>=O.contents.length?void 0:O.contents[P].playlistPanelVideoRenderer,P&&P.videoId===I.playingVideoId||(P=
JeA(I.playingVideoId,x.panel),W.index=P!==-1?P:W.index?W.index-1:0));P=IiR(W.index+1,x.panel);O=void 0;W.index>0&&(O=IiR(W.index-1,x.panel));if(O||P)x.autoplayRenderer=WXt(P,O,x.autoplayRenderer);!P&&(I==null?0:I.relatedVideoArgs)&&(x.playerData.rvs=I.relatedVideoArgs);I=I?I.playlistIndexOffset:0;W.queueProxy?KXd(x.panel,W.index,I,xHx,!0,!0,!0):KXd(x.panel,W.index,I);x.playerData.playlistPanelRenderer=x.panel;return x};
cK.prototype.openToast=function(W){_.FY().resolve(_.kc).openToast(W,_.KK("ADDED_TO_QUEUE",void 0,"Added to queue"))};
cK.prototype.isMiniplayerActive=function(){return _.FY().resolve(_.kc).isMiniplayerActive()};
_.bg=function(W,P){W.playlistManager.setAutoplayRenderer(P.autoplayRenderer||null);W.playlistManager.setPlaylistData(P.panel||null);P.playerData&&W.playlistManager.setPlayerPlaybackControlData(P.playerData)};var o9G="#";var ZrP={},otM={},S$l={},u7M={},d0A={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:(ZrP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",ZrP),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:(otM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",otM),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:(S$l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",S$l),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:(u7M.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",u7M),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 reR=[{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:d0A},{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:d0A}}];_.x3=[[["ZGtpbmQjMjhhOTJpdjllbHE=","dWUjc2s5cDNpb3hrNzQxdmFs"],"UExBQ0VNRU5UX0tJTkRfU1RBUlQjdnNyMHRsaWtnOWpoQURf"]];_.P5=["I3hqMGxocTN4cTlpeWdsb2JhbENhbGxiYWNrcw==","cm9uQWJub3JtYWxpdHlEZXRlY3RlZCN2bzVrNnptZHhsZg==","NHdjdm5rb25BZFNraXAjY3N2bDJq","c2RxbDlyYXdfcGxheWVyX3Jlc3BvbnNlI25mMDJwMXI=","NmI3cmJmemFiYWRTbG90cyN3Zno="];_.Ux="I3hqMGxocTN4cTlpeWdsb2JhbENhbGxiYWNrcw== cm9uQWJub3JtYWxpdHlEZXRlY3RlZCN2bzVrNnptZHhsZg== NHdjdm5rb25BZFNraXAjY3N2bDJq c2RxbDlyYXdfcGxheWVyX3Jlc3BvbnNlI25mMDJwMXI= a2lwc19rcyM5Mmpya2o3cDd0aTh3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfcw== c3ZrMjl0YWJfc2FfZWYjeWZ6MG4w NmI3cmJmemFiYWRTbG90cyN3Zno=".split(" ");var ceR=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var Xz;Xz=function(W,P,x){this.omP=W;this.isAsync=P;this.gCg=x};
_.JJA=[new Xz("b.f_",!1,0),new Xz("j.s_",!1,2),new Xz("r.s_",!1,4),new Xz("e.h_",!1,6),new Xz("i.s_",!0,8),new Xz("s.t_",!1,10),new Xz("p.h_",!1,12),new Xz("s.i_",!1,14),new Xz("f.i_",!1,16),new Xz("a.b_",!1,18),new Xz("a.o_",!1),new Xz("g.o_",!1,22),new Xz("p.i_",!1,24),new Xz("p.m_",!1),new Xz("n.k_",!0,20),new Xz("i.f_",!1),new Xz("a.s_",!0),new Xz("m.c_",!1),new Xz("n.h_",!1,26),new Xz("o.p_",!1),new Xz("m.p_",!0,28),new Xz("o.a_",!1),new Xz("d.p_",!1),new Xz("e.i_",!1)].reduce(function(W,P){W[P.omP]=
P;return W},{});var s8k=function(){};
s8k.prototype.flush=function(W,P){W=W===void 0?[]:W;P=P===void 0?!1:P;if(_.p("enable_client_streamz_web")){W=_.n(W);for(var x=W.next();!x.done;x=W.next())x=M$m(x.value),this.rootSpec&&_.I$(x,2,this.rootSpec),x={serializedIncrementBatch:_.L2(x.JSC$7512_serializeBinary())},_.Ay("streamzIncremented",x,{sendIsolatedPayload:P})}};
var sso=function(){};
_.A(sso,s8k);var vtW=function(W){var P=new CIm;var x=new pZc;x=_.SU(x,1,"botguard");W=_.SU(x,2,W);this.rootSpec=_.O0(P,1,A2k,W)};
_.A(vtW,s8k);var qB,m0d=new Map;var UHx,mHA,GCW,pv7,Cct,H6m,fiC,wvt;UHx=2;mHA=2;GCW=2;pv7=2;Cct=2;H6m=2;fiC=2;wvt=new GDA;var tpA,pgW,j8i;tpA=function(){this.ongoingFlowNonces=new Map};
_.B5=function(){pgW||(pgW=new tpA);return pgW};
_.Oo=function(W,P,x){return{eventType:{flowEventNamespace:W,flowEventType:P},metadata:x,statusCode:void 0,csn:void 0,can:void 0}};
_.nXo=function(W,P){var x=_.B5(),I=j8i(x,P,!0);_.Jq(x,W,P,I)};
_.Jq=function(W,P,x,I){W={flowNonce:I||j8i(W,x),flowType:x,flowEventType:P.eventType};P.metadata&&(W.flowMetadata=P.metadata);P.statusCode!==void 0&&(W.flowEventStatus=P.statusCode);P.csn&&(W.csn=P.csn);P.can&&(W.can=P.can);_.Ay("flowEvent",W,void 0)};
j8i=function(W,P,x){x=x===void 0?!1:x;var I=W.ongoingFlowNonces.get(P);if(!I||x)I=A1(16),W.ongoingFlowNonces.set(P,I);return I};_.Q8p=new z6c;var ZkR={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_JOURNEY_WATCH:"learning_journey_watch"};var fg=function(W,P,x,I,O,B,Y){x=x===void 0?!1:x;I=I===void 0?!1:I;B=B===void 0?_.am():B;this.hasRun=!1;this.ilg=W;this.oBF=P;this.gAG=x;this.fromHistory=I;this.previousVideoId=O;this.xFM=B;this.tempData=Y;this.eQA=new _.EKW};
_.A(fg,R9);fg.prototype.validate=function(W){return!(!W.data.playerResponse||W.data.page!=="watch"&&W.data.page!=="learning_journey_watch"&&W.data.page!=="shorts"||this.hasRun)};
fg.prototype.handle=function(W){var P=this,x=_.Q(W.endpoint,_.U_),I=_.Q(W.endpoint,_.uS);if(_.p("kevlar_continue_playback_without_player_response")&&(x==null?0:x.videoId)&&this.previousVideoId&&(x==null?void 0:x.videoId)===this.previousVideoId&&(x==null?0:x.continuePlayback)&&!this.fromHistory)this.ilg.resolve();else{var O={};x?O.watch_endpoint=x:I&&(O.watch_endpoint=I,I.endTimeSeconds&&(O.end=I.endTimeSeconds));W.data.page==="watch"?(W.data.filler||this.gAG||(_.An("cfg"),_.bs.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(O,CWw(this,W.endpoint)),_.p("enable_masthead_quartile_ping_fix")&&Object.assign(O,ATm(this)),x=!_.p("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(O,x),W.data.forceExternalPlaylist&&(O.external_list=!0)):W.data.page==="shorts"?_.bs.getInstance().triggerAction("yt-start-loading-shorts"):W.data.page==="learning_journey_watch"&&_.bs.getInstance().triggerAction("yt-start-loading-learning-journey");if(x=this.oBF()){try{x.loadVideoWithPlayerResponse(W.data.playerResponse,
O),x.getPlayerPromise().then(this.ilg.resolve)}catch(B){_.G$(B),this.ilg.resolve()}this.hasRun=!0;x.getPlayerPromise().then(function(B){B.addEventListener("onAbnormalityDetected",function(){var Y=W.data.playerResponse,K=B.getVideoData().cpn;fiC=0;_.VpW=K;if(K=Ok8(Y))P.eQA.increment("IN_PLAYER"),_.nL(5),_.p("ab_st_vid_ks")?B.pauseVideo(!0):B.stopVideo(),Y.playabilityStatus=Object.assign({},Y.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:K}}),Y.videoDetails=void 0,_.bs.getInstance().triggerOptionalAction("yt-updated-playability-status",
Y.playabilityStatus)})})}else _.ge(Error("Jf"))}};
var CWw=function(W,P){var x=_.Q(P,_.U_);if(P&&x&&x.playlistId&&x.videoId&&(W=W.xFM,W.queueProxy?(W=W.queueProxy,x=W.listId===x.playlistId?W.attributionData.get(x.videoId):void 0):x=void 0,x))return{queue_info:x}},ATm=function(W){var P;
if((P=W.tempData)==null?0:P.adpings)return{adpings:W.tempData.adpings}};var NG=function(W,P,x){this.hasRun=!1;this.pBM=W;this.qsw=P;this.oAO=x};
_.A(NG,R9);NG.prototype.validate=function(W){return!!_.jU.getValueByKeys.apply(null,[W.data].concat(_.ju(i7W)))};
NG.prototype.handle=function(W){var P=this;this.pBM.promise.then(function(){var x=W.data;var I=_.jU.getValueByKeys.apply(null,[x].concat(_.ju(Ufm))),O=_.jU.getValueByKeys.apply(null,[x].concat(_.ju(Tqm))),B=_.jU.getValueByKeys.apply(null,[x].concat(_.ju(fdA)));var Y=(Y=_.jU.getValueByKeys.apply(null,[x].concat(_.ju(Xwz))))?{videoId:Y.videoId,thumbnail:Y.thumbnail,title:Y.title?_.bx(Y.title):void 0,shortBylineText:Y.author?_.bx(Y.author):void 0}:void 0;var K=void 0;_.p("web_get_playlist_id_from_current_endpoint_ks")||
(K=_.jU.getValueByKeys.apply(null,[x].concat(_.ju(NqW))));var Z=_.jU.getValueByKeys.apply(null,[x].concat(_.ju(rfp))),d=_.jU.getValueByKeys.apply(null,[x].concat(_.ju(ldA))),v=!!Z||!!d&&!!d.results&&d.results.length>0,m=0;O&&O.currentIndex&&O.localCurrentIndex&&(m=O.currentIndex-O.localCurrentIndex);O&&O.playlistId&&(K=O.playlistId);x={rawResponse:x,autoplayRenderer:I,hasRelatedVideoData:v,playingVideo:Y,playingVideoId:B,playlistPanelRenderer:O,playlistId:K,playlistIndex:O&&O.currentIndex,relatedVideoArgs:Z,
endScreenRenderer:d,playlistIndexOffset:m};a:{I=P.oAO;O=P.qsw;I.response=x;if(Klw(x))I.downloadPlaylistProxy&&I.downloadPlaylistProxy.getPlaylistId()===yTi(x)||(I.downloadPlaylistProxy=new wwP(yTi(x),I.setPlaylistData.bind(I),I.isPlayingOfflineVideo.bind(I))),I.responsePlaylistData=I.downloadPlaylistProxy.getPlaylistData(),I.listId=yTi(x),I.index=0;else if(x.playlistPanelRenderer&&x.playlistId&&x.autoplayRenderer)x.playlistId.startsWith("TLPQ")?I.queueProxy?I.listId===x.playlistId?(I.index=x.playlistIndex,
I.responsePlaylistData=x.playlistPanelRenderer,I.queueProxy.JSC$10651_setCurrentIndex(I.index)):x.playingVideoId&&I.index!==void 0&&O.clientParams.autoSaveToQueue&&(I.index+=1,I.queueProxy.JSC$10651_setCurrentIndex(I.index),I.queueProxy.addVideos([x.playingVideoId],{},I.index)):(I.queueProxy=new _.Df(I.JSC$10705_playlistNetworkManager,x.playlistId,I.setPlaylistData.bind(I),I.clearQueue.bind(I),_.Y3o(x.playlistPanelRenderer),I.storage),I.responsePlaylistData=x.playlistPanelRenderer,I.listId=x.playlistId,
I.index=x.playlistIndex):(I.index=x.playlistIndex,I.listId!==x.playlistId&&I.clearQueue(),I.responsePlaylistData=x.playlistPanelRenderer,I.listId=x.playlistId,I.playlistProxy=new kqd(I.JSC$10705_playlistNetworkManager,x.playlistId,I.setPlaylistData.bind(I),_.Y3o(x.playlistPanelRenderer)));else if(!I.queueProxy)I.responsePlaylistData=void 0;else if(x.playingVideoId&&O.clientParams.autoSaveToQueue){if(I.index===void 0){_.G$(Error("Ff"));I.clearQueue();break a}I.queueProxy.videoIds.includes(x.playingVideoId)||
(I.index+=1,I.queueProxy.JSC$10651_setCurrentIndex(I.index),I.queueProxy.addVideos([x.playingVideoId],{},I.index))}_.bg(I,_.kP(I,I.response.autoplayRenderer))}})};var zLm=function(W,P){P=P===void 0?_.am():P;om.call(this);this.xA.push(new NG(this.eE,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},P));this.xA.push(new fg(this.eE,W,!1,!1));_.p("web_response_commands_chunk_processor")&&this.xA.push(new Sv)};
_.A(zLm,om);zLm.prototype.processChunk=function(W){W&&W.data.player===void 0&&this.eE.resolve();om.prototype.processChunk.call(this,W)};var lg=function(W,P){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;this.xNd=P};
_.A(lg,R9);lg.prototype.validate=function(W){return!(this.hasRun||!W.endpoint)};
lg.prototype.handle=function(W){var P=_.YY(),x,I,O=(I=_.Q((x=W.endpoint)==null?void 0:x.commandMetadata,_.rU))==null?void 0:I.rootVe;this.xNd&&O?_.JN(P,O,this.xNd,this.createScreenConfig):vyd(P,W.endpoint,this.createScreenConfig);this.hasRun=!0};var Ts=function(W,P){this.hasRun=!1;this.cdM=W;this.previousVideoId=P};
_.A(Ts,R9);Ts.prototype.validate=function(W){return _.p("kevlar_continue_playback_without_player_response")&&(W=_.Q(W.endpoint,_.U_),(W==null?0:W.videoId)&&this.previousVideoId&&(W==null?void 0:W.videoId)===this.previousVideoId&&(W==null?0:W.continuePlayback))?!1:this.cdM.iic===0};
Ts.prototype.handle=function(W){_.bs.getInstance().triggerAction("yt-stop-old-player",W.data,!0)};var G5l=function(W){W=W===void 0?{layer:0}:W;om.call(this);this.xA.push(new Ts(this));this.xA.push(new lg(W));this.xA.push(new Zf(W))};
_.A(G5l,om);var EtZ=function(){this.hasRun=this.hasRun=!1};
_.A(EtZ,R9);EtZ.prototype.validate=function(W){return!this.hasRun&&!(!W.data.csn||!W.data.rootVe)};
EtZ.prototype.handle=function(W){this.hasRun=!0;_.Dt(W.data.csn,W.data.rootVe,3)};var gtZ=function(){R9.apply(this,arguments)};
_.A(gtZ,R9);gtZ.prototype.validate=function(W){return!!W.data.preconnect};
gtZ.prototype.handle=function(W){_.CK("bc");W=_.n(W.data.preconnect);for(var P=W.next();!P.done;P=W.next())P=P.value,(new Image).src=P};var D0k=function(W,P,x){x=x===void 0?{layer:0}:x;om.call(this);this.xA.push(new fg(this.eE,W));this.xA.push(new lg(x));this.xA.push(new Zf(x))};
_.A(D0k,om);var MpW=function(W,P,x,I,O){x=x===void 0?{layer:0}:x;I=I===void 0?_.am():I;om.call(this);var B=!!P&&!!P.clientParams&&!!P.clientParams.miniplayer;B&&this.xA.push(new EtZ);this.xA.push(new NG(this.eE,P,I));this.xA.push(new gtZ);var Y,K;this.xA.push(new fg(this.eE,W,B,!((Y=P.clientParams)==null||!Y.fromHistory),(K=P.clientParams)==null?void 0:K.previousVideoId,I,P.tempData));var Z;this.xA.push(new Ts(this,(Z=P.clientParams)==null?void 0:Z.previousVideoId));var d;(d=P.clientParams)!=null&&d.fromHistory||
(x.layer||(x=Object.assign({},x,{layer:B?3:0})),this.xA.push(new lg(x,O)),this.xA.push(new Zf(x)));_.p("web_response_commands_chunk_processor")&&this.xA.push(new Sv)};
_.A(MpW,om);var rx,hLm;rx={};
_.$0A=(rx["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rx["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rx["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},rx["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rx["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rx["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},rx["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},rx);_.ig=new _.$N("yt-edu");_.wgd=function(){this.JSC$10807_eduDisplayedThisLoad_={}};
hLm=function(W){var P=_.wgd.getInstance();var x=_.Wi("kevlar_tooltip_impression_cap");P=x&&parseInt(_.ig.get(W+"-impression")||0,10)>=x||_.ig.get(W+"-dismissed")?!1:(x=_.$0A[W])&&!P.JSC$10807_eduDisplayedThisLoad_[x.setKey||W]&&(x.titleText&&_.KK(x.titleText)||x.bodyText&&_.KK(x.bodyText))?!0:!1;if(!P)return null;P=_.$0A[W];if(!P)return null;x=P.bodyText?_.KK(P.bodyText):void 0;var I=P.titleText?_.KK(P.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:P.position,popup:{bubbleHintRenderer:{text:I?
_.bx(I):void 0,detailsText:x?_.bx(x):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bx(_.KK("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:W}}]}}}}}}}},{eduImpressionAction:{key:W}}]};
_.Id(_.wgd);var YNd=!1;for(var HrZ="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),eLl=[],Rm=6;Rm>=1;Rm--)eLl.push({columnCount:Rm,query:Rm==1?0:Rm*2*107-4+32,className:"grid-"+Rm+"-columns",width:Rm*2*107+"px"});_.aWk=function(W){this.actionRouter_=W=W===void 0?_.bs.getInstance():W;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.cTi(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.cTi=function(W){var P=W.miniGuideVisible_?72:0,x=W.documentWidth_-(W.guidePersistentAndVisible_?240:P);return eLl.find(function(I){return x>I.query})};
_.Id(_.aWk);var brd=function(){var W=this;this.JSC$10819_keyboardInUse=!1;document.addEventListener("keydown",function(){W.onKeydown()});
document.addEventListener("mousedown",function(){W.JSC$10819_keyboardInUse=!1})},k5m;
brd.prototype.isKeyBoardInUse=function(){return this.JSC$10819_keyboardInUse};
brd.prototype.onKeydown=function(){this.JSC$10819_keyboardInUse=!0};var U0m,Lg;_.Fz=new _.$N("yt-mentions");_.qG=function(){};
U0m=function(W,P){return Lg(P,"drag-to-reorder-edu-displayed")};
Lg=function(W,P,x,I,O,B){x=x===void 0?"OPEN_POPUP_POSITION_TOP":x;if(P){if(_.Fz.get(P))return;_.Fz.set(P,!0,I)}if(O&&B!==void 0){P=Number(_.Fz.get(O)||0);if(P>=B)return;_.Fz.set(O,P+1)}return[{openPopupAction:{popupType:"HINT",position:x,popup:{bubbleHintRenderer:{detailsText:W,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Id(_.qG);var Xgl,fWd,NZw;Xgl=function(W,P,x,I){this.JSC$10829_taskManager_=W;this.onFulfilled_=typeof P==="function"?P:null;this.onRejected_=typeof x==="function"?x:null;this.JSC$10829_context_=I};
fWd=function(W,P){W.onFulfilled_&&_.pC(W.JSC$10829_taskManager_,function(){W.onFulfilled_.call(W.JSC$10829_context_,P)})};
NZw=function(W,P){W.onRejected_&&_.pC(W.JSC$10829_taskManager_,function(){W.onRejected_.call(W.JSC$10829_context_,P)})};
_.Wv=function(W){this.JSC$10832_taskManager_=W;this.callbacks_=[]};
_.Wv.prototype.then=function(W,P,x){this.callbacks_.push(new Xgl(this.JSC$10832_taskManager_,W,P,x));return this};
_.Wv.prototype.onSuccess=function(W){this.callbacks_.forEach(function(P){fWd(P,W)})};
_.Wv.prototype.onFailure=function(W){this.callbacks_.forEach(function(P){NZw(P,W)})};
_.Wv.prototype.cancel=function(){this.callbacks_.length=0};
Hzw(_.Wv);_.SNC=null;_.jy=new _.Lb("ACTIVITY_TOKEN");var moo=/^[a-zA-Z0-9_\-]{11}$/;var Vfm=_.Vi(function(){var W,P;return(P=(W=window).matchMedia)==null?void 0:P.call(W,"(prefers-reduced-motion: reduce)").matches});var lWM=_.Vi(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 W=_.eL("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");W||(W=_.ZV("VIDEO"),_.lA("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
W));return!!(W&&W.canPlayType&&W.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var TZZ;_.Pv=new _.Lb("SHORTS_CONTROLLER_TOKEN");TZZ=new _.Lb("SHORTS_STATE_STORE_TOKEN");var x9=function(W,P){var x=_.tH.apply(2,arguments);W=W===void 0?0:W;_.mW.call(this,P,x);this.errorType=W;Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(x9,_.mW);var rTZ,irz,Flp,lM8,fP,dZA,P8c,Wck,nJw,OOM,Ivl;rTZ=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(W){return W+"="}).join("|"));
irz=RegExp(".*\\?.*playnext=1.*");_.Is=function(W,P,x,I){this.watchEndpointMap=W;this.reelWatchEndpointMap=P;this.innerTubeTransportService=x;this.fetchPbj=I};
Flp=function(W,P,x){var I=_.FY().resolve(_.Rl(RLM));_.Is.instance=new _.Is(W,P,x,I)};
_.q$i=function(W,P){var x=_.Wi("web_pbj_log_warning_rate",0);x=x>0&&Math.random()<x;var I;if((I=_.Q(P.commandMetadata,_.rU))==null||!I.rootVe)return x&&_.ge(Error("Pf")),!1;var O;I=(O=_.Q(P.commandMetadata,_.rU))==null?void 0:O.url;if(!I)return x&&_.ge(Error("Qf")),!1;if(irz.test(I))return!0;if(rTZ.test(I))return x&&_.ge(Error("Rf`"+I)),!1;if(_.Q(P,_.U_)){if(!(W.watchEndpointMap.watchNext&&W.watchEndpointMap.player||_.p("kevlar_fetch_initial_data_op_watch_client")))return x&&_.ge(Error("Lf")),!1;
W=_.Wi("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;_.Q(P,_.U_)?sMW(P)?P=!0:(W&&_.ge(Error("Mf")),P=!1):(W&&_.ge(Error("Lf")),P=!1);return P}if(_.Q(P,_.uS))return vXG(P);if(_.Q(P,_.M3))return!0;W=_.ey(W.innerTubeTransportService,P);!W&&x&&_.G$(Error("Sf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(P)});return W};
lM8=function(W,P,x,I,O,B){P={url:P};if(x==null?0:x.itct)P.parentTrackingParams=x.itct;var Y=_.fR(gXz);return _.$P(W.innerTubeTransportService,P,Y).then(function(K){(K=K.endpoint)||(K=_.dx);(x==null?0:x.itct)&&K&&!K.trackingParams&&(K.trackingParams=x.itct);var Z=of(K);return fP(W,K,x,I,Z,O,B)})};
fP=function(W,P,x,I,O,B,Y,K){K=K===void 0?{}:K;if(W.fetchPbj&&!_.q$i(W,P)&&!_.p("force_one_platform")){K=W.fetchPbj(P);var Z=_.Jn(K.then(function(N){if(!N)throw Error("Tf");Y(Z)||B(P,N);return N}));
return Z}var d,v,m={rootVe:(d=_.Q(P.commandMetadata,_.rU))==null?void 0:d.rootVe,url:(v=_.Q(P.commandMetadata,_.rU))==null?void 0:v.url,endpoint:P,page:O};if(_.Q(P,_.U_)){var t,C={contentPlaybackContext:_.dT(x,(t=_.Q(P.commandMetadata,_.rU))==null?void 0:t.url,I)},z=_.aP();_.p("web_streaming_watch")&&window.TextDecoderStream?(K=Lli(W.innerTubeTransportService,P,C,function(N){!m.response&&N.content&&(m.response=N.content);!m.playerResponse&&N.player&&(m.playerResponse=N.player);B(P,m)}),d=ObA(P),d.length&&
(m.preconnect=d,B(P,m)),Wck(K,z,m).catch(function(N){N instanceof x9&&N.errorType===2&&P8c(W,P,C,m,B,Y,z)})):P8c(W,P,C,m,B,Y,z);
return z.promise}if(_.Q(P,_.uS)){var D;if(((D=_.Q(P,_.uS))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var w=_.aP();_.x2c(_.FY().resolve(_.Pv),P).then(function(N){Ivl(W,x,I,O,B,w,N)});
return w.promise}K=_.Jn();var a;d={contentPlaybackContext:_.dT(x,(a=_.Q(P.commandMetadata,_.rU))==null?void 0:a.url,I)};(a=W.reelWatchEndpointMap.player)&&(a=a().JSC$11808_getRequest(P,d))&&(K=_.$P(W.innerTubeTransportService,a.innerTubeRequest,a.input,P.clickTrackingParams,a.config));a=_.Jn();(v=W.reelWatchEndpointMap.reelItemWatch)&&(v=v().JSC$11808_getRequest(P))&&(a=_.$P(W.innerTubeTransportService,v.innerTubeRequest,v.input,P.clickTrackingParams,v.config));v=_.Jn();(t=W.reelWatchEndpointMap.reelWatchSequence)&&
_.Q(P,_.uS).sequenceParams&&(d=t().JSC$11808_getRequest(P,d))&&(v=_.$P(W.innerTubeTransportService,d.innerTubeRequest,d.input,P.clickTrackingParams,d.config));d=_.Jn(m);t=_.aP();OOM(P,d,K,a,v,B,Y,t);return t.promise}var k;if(_.Q(P,oXt)&&((k=_.Q(P.commandMetadata,_.rU))==null?0:k.url))return K=CL7(_.ea(zD().location.href),_.ea(_.Q(P.commandMetadata,_.rU).url)).toString(),lM8(W,K,x,I,B,function(){return!1});
if(_.Q(P,_.M3))return B(P,m),_.Jn(m);if(_.ey(W.innerTubeTransportService,P)){K=Object.assign({},{tempData:x,disableCache:x.disableCache},K);var T=_.cF(W.innerTubeTransportService,P,K).then(function(N){m.response=N;Y(T)||B(P,m);return m});
return T}return _.Jn(m)};
_.BC3=function(W,P,x,I){if(_.Q(P,_.U_)||_.Q(P,_.uS)&&(_.p("mweb_enable_shorts_innertube_player_prefetch")||_.p("kevlar_enable_shorts_prefetch_in_sequence"))||_.Q(P,QIP)&&_.p("web_enable_prefetching_videos_on_home")){var O,B={contentPlaybackContext:_.dT(x,(O=_.Q(P.commandMetadata,_.rU))==null?void 0:O.url,I),prefetchPlaybackContext:pUG(x)},Y,K,Z;if(((Y=_.Q(P,_.U_))==null?void 0:(K=Y.watchEndpointSupportedPrefetchConfig)==null?void 0:(Z=K.prefetchHintConfig)==null?void 0:Z.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(x=
W.watchEndpointMap.watchNext)if(B=x().JSC$11808_getRequest(P,B))return Promise.resolve(_.$P(W.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(m){return m}))}else if(_.Q(P,_.uS)&&_.p("web_prefetch_riw_for_next_video")){if(x=W.reelWatchEndpointMap.reelItemWatch)if((x=x().JSC$11808_getRequest(P,B))&&_.$P(W.innerTubeTransportService,x.innerTubeRequest,x.input,void 0,x.config).then(function(m){return m}),x=W.reelWatchEndpointMap.player)if(B=x().JSC$11808_getRequest(P,
B))return Promise.resolve(_.$P(W.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(m){return m}))}else if(x=W.watchEndpointMap.player)if(B=x().JSC$11808_getRequest(P,B))return Promise.resolve(_.$P(W.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(m){return m}))}else if(_.ey(W.innerTubeTransportService,P)){var d={tempData:x},v=JLc(W.innerTubeTransportService,P);
return v?new Promise(function(m,t){var C,z;return _.y(function(D){if(D.nextAddress==1)return _.S(D,v,2);if(D.nextAddress!=4)return C=D.yieldResult,C.JSC$11815_getStoreKey(P,d)?_.S(D,_.cF(W.innerTubeTransportService,P,d),4):(t(new _.mW("Prefetching request builder with no store key.",P)),D.jumpTo(0));z=D.yieldResult;m(z);_.Kl(D)})}):Promise.reject(new _.mW("Prefetching unregistered request builder.",P))}return Promise.reject(new _.mW("No request builder available to prefetch endpoint.",P))};
dZA=function(W,P){var x,I,O;if(_.Q(P,_.U_)){var B=W.watchEndpointMap.watchNext;B&&(x=B());(W=W.watchEndpointMap.player)&&(I=W())}else if(_.Q(P,_.uS))(B=W.reelWatchEndpointMap.reelItemWatch)&&(x=B()),(B=W.reelWatchEndpointMap.player)&&(I=B()),(W=W.reelWatchEndpointMap.reelWatchSequence)&&(O=W());else{a:{W=KgC(P,W.innerTubeTransportService.endpointMap);if(W!==void 0)if(typeof W.then==="function")_.G$(new _.mW("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",P));else break a;
W=void 0}W&&(x=W)}var Y,K,Z;return{content:(Y=x)==null?void 0:Y.JSC$11815_getStoreKey(P),player:(K=I)==null?void 0:K.JSC$11815_getStoreKey(P),reelSequence:(Z=O)==null?void 0:Z.JSC$11815_getStoreKey(P)}};
P8c=function(W,P,x,I,O,B,Y){var K=_.Jn(),Z=W.watchEndpointMap.player;Z&&(Z=Z().JSC$11808_getRequest(P,x))&&(K=_.$P(W.innerTubeTransportService,Z.innerTubeRequest,Z.input,P.clickTrackingParams,Z.config));Z=_.Jn();var d=W.watchEndpointMap.watchNext;d&&(x=d().JSC$11808_getRequest(P,x))&&(Z=_.$P(W.innerTubeTransportService,x.innerTubeRequest,x.input,P.clickTrackingParams,x.config));W=_.Jn(I);nJw(P,W,K,Z,O,B,Y)};
Wck=function(W,P,x){return _.y(function(I){if(I.nextAddress==1)return _.S(I,W,2);P.resolve(x);_.Kl(I)})};
nJw=function(W,P,x,I,O,B,Y){var K,Z,d,v,m;_.y(function(t){switch(t.nextAddress){case 1:return _.S(t,P,2);case 2:K=t.yieldResult;if(B(Y.promise))return Y.resolve(K),t.return();O(W,K);Z=ObA(W);if(!Z.length){t.jumpTo(3);break}return _.S(t,P,4);case 4:K.preconnect=Z,O(W,K);case 3:return _.OT(t,5),_.S(t,x,7);case 7:d=t.yieldResult;_.ci(t,6);break;case 5:return v=_.yn(t),Y.reject(v),t.return();case 6:if(d===void 0)return K.reload=!0,O(W,K),Y.resolve(K),t.return();if(B(Y.promise))return Y.resolve(K),t.return();
K.playerResponse=d;O(W,K);_.OT(t,8);return _.S(t,I,10);case 10:m=t.yieldResult;_.ci(t,9);break;case 8:_.yn(t);case 9:if(m===void 0)return K.response={responseContext:{}},Y.resolve(K),t.return();if(B(Y.promise))return Y.resolve(K),t.return();K.response=m;O(W,K);Y.resolve(K);_.Kl(t)}})};
OOM=function(W,P,x,I,O,B,Y,K){var Z,d,v,m,t,C;_.y(function(z){switch(z.nextAddress){case 1:return _.S(z,P,2);case 2:Z=z.yieldResult;if(Y(K.promise))return K.resolve(Z),z.return();B(W,Z);d=ObA(W);if(!d.length){z.jumpTo(3);break}return _.S(z,P,4);case 4:Z.preconnect=d,B(W,Z);case 3:return _.OT(z,5),_.S(z,x,7);case 7:v=z.yieldResult;_.ci(z,6);break;case 5:return m=_.yn(z),K.reject(m),z.return();case 6:if(v===void 0)return Z.reload=!0,B(W,Z),K.resolve(Z),z.return();if(Y(K.promise))return K.resolve(Z),
z.return();Z.playerResponse=v;B(W,Z);_.OT(z,8);return _.S(z,I,10);case 10:t=z.yieldResult;_.ci(z,9);break;case 8:_.yn(z);case 9:if(t===void 0)return Z.response={responseContext:{}},K.resolve(Z),z.return();if(Y(K.promise))return K.resolve(Z),z.return();Z.response=t;B(W,Z);_.OT(z,11);return _.S(z,O,13);case 13:C=z.yieldResult;_.ci(z,12);break;case 11:_.yn(z);case 12:if(Y(K.promise))return K.resolve(Z),z.return();Z.reelWatchSequenceResponse=C;B(W,Z);K.resolve(Z);_.Kl(z)}})};
Ivl=function(W,P,x,I,O,B,Y){var K,Z,d,v,m,t;_.y(function(C){if((K=Y)==null||!K.replacementEndpoint)return B.reject(),C.return();Z=Y.replacementEndpoint;(d=_.Q(Z,_.uS))?(Y.sequenceContinuation&&(d.sequenceParams=Y.sequenceContinuation),v=_.FY().resolve(_.Pv),m=d.sequenceParams,YBb(v,Z)&&delete d.sequenceParams,t=fP(W,Z,P,x,I,O,function(){return!1}),t.then(function(z){return _.y(function(D){if(D.nextAddress==1)return yL3(v,{reelWatchEndpoint:{sequenceParams:m}},z),_.S(D,0,2);
B.resolve(z);_.Kl(D)})})):B.reject();
_.Kl(C)})};_.Kcl=function(W){if(W.validatedFragments_.length==0)return null;if(!W.mergedPrefetchedData_){for(var P=[],x=_.n(W.validatedFragments_),I=x.next();!I.done;I=x.next()){I=_.n(W.fragmentConfiguration_[I.value].graftedKeys);for(var O=I.next();!O.done;O=I.next())(O=W.prefetchedData_[O.value].trackingParams)&&P.push(O)}W.mergedPrefetchedData_={};Object.assign(W.mergedPrefetchedData_,W.prefetchedData_,{clientSideGrafts:P})}return W.mergedPrefetchedData_};var ZO3;_.O3=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
ZO3=function(W,P,x){if(_.uOW(P))return W.prefetchCache_.get(_.doR(P,x))};_.Je=new _.Lb("NAVIGATION_TOKEN");var oJz=function(W){var P=this;var x=x===void 0?Cbm():x;var I=I===void 0?_.FY().resolve(_.Je):I;this.onePickCommand=W;this.JSC$10933_playlistNetworkManager=x;this.navigationManager=I;this.videoPickerBuilder=_.jMt("yt-addtoplaylist");_.WkM(l8M(TOc(NOi(this.videoPickerBuilder.setTitle(W.modalTitle).setSize(1E3).addView(R_d()).addView(i4z())).addView("youtube"),W.selectButtonLabel)),function(O){P.handleAction(O)})};
oJz.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
oJz.prototype.handleAction=function(W){var P=this;if(W&&this.onePickCommand.listId&&W.action==="picked"&&W.docs){var x=[];W.docs.forEach(function(I){x.push({addedVideoId:I.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10933_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,x).then(function(){_.p("playlist_add_video_hard_reload_killswitch")?P.navigationManager.reload():SBi(P.navigationManager)})}};var uxW=function(){if(this.constructor===uxW)throw new TypeError("Uf");};
_.J=uxW.prototype;_.J.dispose=function(){};
_.J.disconnect=function(){};
_.J.reconnect=function(){};
_.J.observe=function(W,P,x){return{element:W,option:x}};
_.J.unobserveByKey=function(){};var AJm=function(W,P){P=P===void 0?0:P;uxW.call(this);this.viewroot=W;this.defaultPrescanHeight=P;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),W?{root:W,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.A(AJm,uxW);_.J=AJm.prototype;_.J.dispose=function(){this.disconnect();this.handlers.clear()};
_.J.disconnect=function(W){this.isConnected=!1;this.pauseObservingUntilReconnect=W===void 0?!1:W;this.observer.disconnect();W=_.n(this.prescanObservers.values());for(var P=W.next();!P.done;P=W.next())P.value.disconnect()};
_.J.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var W=_.n(this.handlers),P=W.next();!P.done;P=W.next()){var x=_.n(P.value);P=x.next().value;var I=x.next().value;x=!1;I=_.n(I.keys());for(var O=I.next();!O.done;O=I.next())if((O=O.value)&&O.state==="prescan"){x=!0;break}x&&d2l(this,P).observe(P);this.observer.observe(P)}}};
_.J.handleObserveEvent=function(W){W=_.n(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;var x=this.handlers.get(P.target);if(x){var I=P.isIntersecting;x=_.n(x);for(var O=x.next();!O.done;O=x.next()){var B=_.n(O.value);O=B.next().value;B=B.next().value;O&&(O.state==="visible"&&I||O.state==="hidden"&&!I)&&(B(P.target,O.state),O.calledOnce&&this.unobserveByKey({element:P.target,option:O}))}}}};
_.J.handlePrescanEvent=function(W){W=_.n(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;var x=this.handlers.get(P.target);if(x&&P.isIntersecting){x=_.n(x);for(var I=x.next();!I.done;I=x.next()){var O=_.n(I.value);I=O.next().value;O=O.next().value;I&&I.state==="prescan"&&(O(P.target,I.state),I.calledOnce&&this.unobserveByKey({element:P.target,option:I}))}}}};
_.J.observe=function(W,P,x){var I=(I=this.handlers.get(W))&&I.has(x)?{element:W,option:x}:void 0;if(I)return I;I={element:W,option:x};this.handlers.has(W)||this.handlers.set(W,new Map);var O=this.handlers.get(W);O&&!O.has(x)&&O.set(x,P);this.pauseObservingUntilReconnect||(x.state==="prescan"&&d2l(this,W).observe(W),this.observer.observe(W));return I};
_.J.unobserveByKey=function(W){var P=this.handlers.get(W.element);if(P&&P.has(W.option)){P.delete(W.option);if(W&&W.option.state==="prescan")for(var x=_.n(this.prescanObservers.values()),I=x.next();!I.done;I=x.next())I.value.unobserve(W.element);P.size===0&&(this.handlers.delete(W.element),this.observer.unobserve(W.element))}};
var d2l=function(W,P){var x=W.defaultPrescanHeight;P.hasAttribute("prescan-height")&&(P=Number(P.getAttribute("prescan-height")),isNaN(P)||(x=P));if(W.prescanObservers.has(x))return W.prescanObservers.get(x);P="-0.1px -0.1px "+x+"px -0.1px";P=new IntersectionObserver(W.handlePrescanEvent.bind(W),W.viewroot?{root:W.viewroot,rootMargin:P}:{rootMargin:P});W.prescanObservers.set(x,P);return P};var sri=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],vJW=function(){var W,P=this;this.JSC$10950_actionRouter=W=W===void 0?_.bs.getInstance():W;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return P.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return P.visibilityObservedElementHandlerKeys}}},m2b,tMl,Qrl;
vJW.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.p("kevlar_use_vimio_behavior")&&_.$$("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=zfm())};
vJW.prototype.dispose=function(){this.visibilityMonitor&&_.Vq(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
vJW.prototype.handleVisibilityRefreshed=function(){for(var W=_.n(this.targetMap.entries()),P=W.next();!P.done;P=W.next()){var x=_.n(P.value);P=x.next().value;x=x.next().value;_.VMp(this,P,x)}};
_.jri=function(W,P,x){tMl(W,x);var I=_.pez(W,P);I.element=x;W.targetedElements.set(x,P);_.VMp(W,P,I)};
tMl=function(W,P){var x=W.targetedElements.get(P);if(x){var I=W.targetMap.get(x);I&&(delete I.element,W.targetMap.set(x,I));W.targetedElements.delete(P);W.visibilityObserver&&W.visibilityObservedElementHandlerKeys&&(x=W.visibilityObservedElementHandlerKeys.get(P))&&(W.visibilityObserver.unobserveByKey(x),W.visibilityObservedElementHandlerKeys.delete(P))}};
_.VMp=function(W,P,x){var I=x.action,O=x.element;O&&I&&(sri.includes(P)||_.$$("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||W.visibilityMonitor&&W.visibilityMonitor.isNodeVisible(O)?Qrl(W,P,x):W.visibilityObserver&&(W.visibilityObservedElementHandlerKeys||(W.visibilityObservedElementHandlerKeys=new WeakMap),I=W.visibilityObserver.observe(O,function(){Qrl(W,P,x);W.visibilityObservedElementHandlerKeys.delete(O)},{calledOnce:!0,
state:"visible"}),W.visibilityObservedElementHandlerKeys.set(O,I)))};
Qrl=function(W,P,x){var I=x.action;(x=x.element)&&I&&(_.wl(W.JSC$10950_actionRouter,[I],x),W.targetMap.delete(P),W.targetedElements.delete(x),W.triggeredTargets.add(P))};
_.pez=function(W,P){var x=W.targetMap.get(P);x||(x={},W.targetMap.set(P,x));return x};
_.Bv=function(){m2b||(m2b=new vJW);return m2b};var C8A=document.createElement("div");C8A.style.touchAction="pan-down";var Gh7=C8A.style.touchAction==="pan-down";var ALW,zZZ;ALW=function(){this.hammerFn=kmZ();this.JSC$10958_screenManager=_.YY();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.td(83615);_.YP(this.JSC$10958_screenManager,this.ve);EXt()};
_.n6=function(){zZZ||(zZZ=new ALW);return zZZ};
ALW.prototype.registerTouchEvents=function(W,P,x){var I=_.tH.apply(3,arguments),O=this.hammerFn(W,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});x&&O.set({touchAction:x});this.nodeManagerMapping.set(W,O);var B=
gX8(P);I=_.n(I);for(var Y=I.next();!Y.done;Y=I.next()){Y=Y.value;if(Y.includes("swipe")||Y.includes("pinch")||Y.includes("pan"))Y.includes("swipe")?O.get("swipe").set({enable:!0,direction:B,velocity:.2}):Y.includes("pinch")?O.get("pinch").set({enable:!0}):Y.includes("pan")&&(O.get("pan").set({enable:!0,direction:B}),O.get("swipe").set({enable:!0,direction:B,velocity:.2}),O.get("swipe").recognizeWith("pan"));Gid(this,W,O,Y)}};
var Gid=function(W,P,x,I){x.on(I,function(O){if(I.includes("pinch"))W.lastPinchTime=Date.now();else if(I.includes("swipe")&&Date.now()-W.lastPinchTime<400)return;O.pointerType!=="mouse"&&(O=I==="doubletap"?{coordinates:O.center}:I.includes("pan")?O:I.includes("swipe")?{target:O.target}:{},P.dispatchEvent(new CustomEvent(I,{bubbles:!0,composed:!0,detail:O})))})};
ALW.prototype.unregisterTouchEvents=function(W){var P=_.tH.apply(1,arguments),x=this.nodeManagerMapping.get(W);if(x){P=_.n(P);for(var I=P.next();!I.done;I=P.next())x.off(I.value);this.nodeManagerMapping.delete(W);W.style.touchAction="unset"}};var EJd=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var DoW=null;var D2m;_.Y9=function(W,P,x){var I=x&&x>0?x:0;x=I?Date.now()+I*1E3:0;if((I=I?(0,_.gJ3)():D2m())&&window.JSON){typeof P!=="string"&&(P=JSON.stringify(P,void 0));try{I.set(W,P,x)}catch(O){I.remove(W)}}};
_.ye=function(W){var P=D2m(),x=(0,_.gJ3)();if(!P&&!x||!window.JSON)return null;try{var I=P.get(W)}catch(O){}if(typeof I!=="string")try{I=x.get(W)}catch(O){}if(typeof I!=="string")return null;try{I=JSON.parse(I,void 0)}catch(O){}return I};
_.K6=function(W){try{var P=D2m(),x=(0,_.gJ3)();P&&P.remove(W);x&&x.remove(W)}catch(I){}};
_.gJ3=_.Vi(function(){try{var W=new Vn7;var P=W.isAvailable()?W:null}catch(x){return null}return P?new _.WV(P):null});
D2m=_.Vi(function(){var W=new tnS;return W.isAvailable()?new _.WV(W):null});var MMk=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},ikd=function(){MMk.instance||(MMk.instance=new MMk);
return MMk.instance},Rfo=function(W){var P=W.networkEvents;
W.networkEvents=[];return _.p("enable_network_monitoring")?P:[]};var $2w;$2w={};_.wez=rO("yt-serviceworker-metadata",{objectStores:($2w.auth={addedAtVersion:1},$2w["resource-manifest-assets"]={addedAtVersion:2},$2w),shared:!0,upgrade:function(W,P){P(1)&&h0(W,"resource-manifest-assets");P(2)&&h0(W,"auth")},
version:2});var efm=self.location.origin+"/";cJd([/\.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\//]);cJd([/purge_shell=1/]);var hZk=void 0;hZk=hZk===void 0?[]:hZk;for(var HOk=[],eZM=_.n(gNk),cLb=eZM.next();!cLb.done;cLb=eZM.next())HOk.push({key:cLb.value});for(var avm=_.n(hZk),bOW=avm.next();!bOW.done;bOW=avm.next())HOk.push(bOW.value);var kic,Vy=_.xW==null?void 0:(kic=_.xW.performance)==null?void 0:kic.memory,khR=!1,FAU={},fF7={},tq={},pL=navigator;var Zi=function(W){this.JSC$11002_expiringStorage=new tY(W)};
Zi.prototype.set=function(W,P,x){x=x!==void 0?Date.now()+x:void 0;this.JSC$11002_expiringStorage.set(W,P,x)};
Zi.prototype.get=function(W){return this.JSC$11002_expiringStorage.get(W)};
Zi.prototype.remove=function(W){this.JSC$11002_expiringStorage.remove(W)};var JxR=_.i4(["https://www.youtube.com/",""]),BWG=_.i4(["https://studio.youtube.com/",""]),ZBG="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Ymo=null,sOx;var U2b=_.i4(["https://www.youtube.com/iframe_api"]),os=function(){this.playerResolver_=_.aP();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.me;this.playbackDurationSeconds_=0},XeZ=function(W){var P=function(){return window.YT&&typeof window.YT.ready==="function"};
if(P())return _.Jn(window.YT);var x=_.aP(),I=_.ZV("SCRIPT");I.onload=I.onreadystatechange=function(){I.readyState&&I.readyState!="loaded"&&I.readyState!="complete"||(I.onload=_.me,I.onreadystatechange=_.me,I.onerror=_.me,P()?x.resolve(window.YT):x.reject(new _.mW("Failed to load the iframe player library","script.onload",I.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
I.onerror=function(O){I.onload=_.me;I.onreadystatechange=_.me;I.onerror=_.me;x.reject(new _.mW("Failed to load the iframe player library","script.onerror",O&&O.target&&O.target.src))};
_.c6(I,_.W9(U2b));W.insertBefore(I,W.firstChild);return x.promise},fvw=function(W,P,x){var I,O;
_.y(function(B){switch(B.nextAddress){case 1:return W.playbackEndedCallback_=x,_.OT(B,2),_.S(B,XeZ(P.parentElement||null),4);case 4:I=B.yieldResult;_.ci(B,3);break;case 2:return O=_.yn(B),O instanceof _.mW&&O.args&&O.args[0]=="script.onerror"?_.ge(O):_.G$(O),B.return();case 3:I.ready(function(){return new I.Player(P,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:W.onPlayerReady_.bind(W),onStateChange:W.onPlayerStateChange_.bind(W),
onCueRangeExit:W.onCueRangeExit_.bind(W)}})}),_.Kl(B)}})};
_.J=os.prototype;_.J.getPlayerPromise=function(){return this.playerPromise_};
_.J.onPlayerReady_=function(W){this.playerResolver_.resolve(W.target)};
_.J.onPlayerStateChange_=function(W){if(W.data==YT.PlayerState.PLAYING){W=W.target;var P=W.getCurrentTime();W.addCueRange("playback",P,P+this.playbackDurationSeconds_)}};
_.J.onCueRangeExit_=function(W){W.data=="playback"&&(W.target.stopVideo(),this.playbackEndedCallback_())};
_.J.stopVideo=function(){this.playerPromise_.then(function(W){W.stopVideo()})};
var NCM=function(W){W.playerVars_&&W.playerPromise_.then(function(P){typeof P.cueVideoByPlayerVars!="function"?_.ge(new _.mW("vmh: player API not ready","cueVideoByPlayerVars",typeof P.cueVideoByPlayerVars)):P.cueVideoByPlayerVars(W.playerVars_)})};
os.prototype.playVideo=function(){var W=this;this.playerVars_&&this.playerPromise_.then(function(P){typeof P.loadVideoByPlayerVars!="function"?(P=new _.mW("vmh: player API not ready","loadVideoByPlayerVars",typeof P.loadVideoByPlayerVars),_.G$(P)):P.loadVideoByPlayerVars(W.playerVars_)})};
var lvc=function(W,P,x,I,O){P&&(x===void 0&&(x=0),I===void 0&&(I=0),W.playbackDurationSeconds_=I/1E3,W.playerVars_={adformat:"17_8",videoId:P,suggestedQuality:"hd720",startSeconds:x/1E3,player_params:O})};
os.prototype.mute=function(){this.playerPromise_.then(function(W){W.mute()})};
os.prototype.unMute=function(){this.playerPromise_.then(function(W){W.unMute()})};var QOC=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Sx;Sx=function(){this.tokenJars={};if(this.cookiesEnabled=_.dO()){var W=_.SB.get("CONSISTENCY",void 0);W&&TCk(this,{encryptedTokenJarContents:W})}};
_.Ax8=function(){Sx.instance||(Sx.instance=new Sx);return Sx.instance};
Sx.prototype.handleResponse=function(W,P){if(!P)throw Error("Zf");var x,I;P=((x=P.innerTubeRequest.context)==null?void 0:(I=x.request)==null?void 0:I.consistencyTokenJars)||[];var O;(W=(O=W.responseContext)==null?void 0:O.consistencyTokenJar)&&this.replace(P,W)};
Sx.prototype.replace=function(W,P){W=_.n(W);for(var x=W.next();!x.done;x=W.next())delete this.tokenJars[x.value.encryptedTokenJarContents];TCk(this,P)};
var TCk=function(W,P){if(P.encryptedTokenJarContents&&(W.tokenJars[P.encryptedTokenJarContents]=P,typeof P.expirationSeconds==="string")){var x=Number(P.expirationSeconds);setTimeout(function(){delete W.tokenJars[P.encryptedTokenJarContents]},x*1E3);
W.cookiesEnabled&&_.uA("CONSISTENCY",P.encryptedTokenJarContents,x,void 0,!0)}};var rLc,uc;rLc=window.location.hostname.split(".").slice(-2).join(".");_.$3=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var W=_.$$("LOCATION_PLAYABILITY_TOKEN");_.$$("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=iO3(this))&&(W=this.localStorage.get("yt-location-playability-token"));W&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0)};
_.$3.getInstance=function(){uc=_.eL("yt.clientLocationService.instance");uc||(uc=new _.$3,_.lA("yt.clientLocationService.instance",uc));return uc};
_.$3.prototype.setLocationOnInnerTubeContext=function(W){W.client||(W.client={});if(this.mostRecentPosition)W.client.locationInfo||(W.client.locationInfo={}),W.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),W.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),W.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),W.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)W.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.$3.prototype.handleResponse=function(W){var P;W=(P=W.responseContext)==null?void 0:P.locationPlayabilityToken;W!==void 0&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0,_.$$("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=iO3(this))&&this.localStorage.set("yt-location-playability-token",W,15552E3):_.uA("YT_CL",JSON.stringify({loctok:W}),15552E3,rLc,!0))};
var iO3=function(W){return W.localStorage===void 0?new _.$N("yt-client-location"):W.localStorage};
_.$3.prototype.clearLocationPlayabilityToken=function(W){W==="TVHTML5"?(this.localStorage=iO3(this))&&this.localStorage.remove("yt-location-playability-token"):_.oam("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.$3.prototype.getCurrentPositionFromGeolocation=function(){var W=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var P=!1,x=1E4;_.$$("INNERTUBE_CLIENT_NAME")==="MWEB"&&(P=!0,x=15E3);return new Promise(function(I,O){navigator.geolocation.getCurrentPosition(function(B){W.mostRecentPosition=B;I(B)},function(B){O(B)},{enableHighAccuracy:P,
maximumAge:0,timeout:x})})};
_.$3.prototype.createUnpluggedLocationInfo=function(W){var P={};W=W.coords;if(W==null?0:W.latitude)P.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)P.longitudeE7=Math.floor(W.longitude*1E7);if(W==null?0:W.accuracy)P.locationRadiusMeters=Math.round(W.accuracy);return P};
_.$3.prototype.createLocationInfo=function(W){var P={};W=W.coords;if(W==null?0:W.latitude)P.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)P.longitudeE7=Math.floor(W.longitude*1E7);return P};var RZl=function(W,P){var x=wU();W||(W="unknown");P||(P="unknown");W="MAIN_APP_WEB_PAGE_TYPE_"+W.toUpperCase();W in jpw||(W="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");P="MAIN_APP_WEB_REQUEST_TYPE_"+P.toUpperCase();P in Qpz||(P="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.se(x,{mainAppWeb:{pageType:W,requestType:P,isShellLoad:_.wo("IS_SHELL_LOAD",!1)}})},FcA={start:function(){_.se(UmC(),{mainAppWeb:_.wT()})},
success:function(){_.vX(UmC(),"SUCCESS")},
failure:function(){_.vX(UmC(),"FAILURE")},
cancelled:function(){_.vX(UmC(),"CANCELLED")}};var qBw,LcM,DWR;qBw=_.i4(["/sw.js"]);LcM=_.i4(["/sw.js?0"]);_.WUm=_.W9(qBw);DWR=_.W9(LcM);var PFl=function(){var W=Error.apply(this,arguments);this.message=W.message;"stack"in W&&(this.stack=W.stack)};
_.A(PFl,Error);_.e9.prototype.load=function(W){this.megabloxUrl_=_.$$("YPC_MB_URL");_.h1(this.megabloxUrl_,(0,_.mx)(function(){W&&W()},this))};
_.KbU=function(W,P,x,I,O,B,Y,K,Z,d,v){_.$WA(Z);W.load((0,_.mx)(function(){try{var m=B?B:_.$$("HL"),t=_.$$("SESSION_INDEX");_.ttU("client",function(){kDb("59",{helpCenterPath:"/youtube",locale:m,window:window}).JSC$7877_loadChatSupport({authuser:String(t)})})}catch(C){throw hq(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),O&&O(C),_.G$(C),C;
}xvz(this,P,x,I,O,B,Y,K,Z,d,v)},W))};
_.e9.prototype.openFixFlowDialog=function(W,P,x,I){this.load((0,_.mx)(function(){try{ILb(this,_.eL("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(W).withIntegratorCallback(P).load(x,I)}catch(O){throw _.G$(O),O;}},this))};
var ILb=function(W,P,x,I){var O=P.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.p("enable_window_constrained_buy_flow_dialog")&&(O=O.usingPopupStyle(_.eL("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));I&&(O=O.usingCloseCallback(I));P.bootstrap.fromPaymentsUrl(W.megabloxUrl_);W=P.bootstrap.asMashupMode(O);x=x?x:_.$$("HL");W.usingGaiaIndex(_.$$("SESSION_INDEX")).usingLocale(x).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.p("enable_google_payments_buyflow_material2_style_web")?
W.usingStyle(":m2;pc=#444;ac=#065fd4"):W.usingStyle(":md;pc=#444;ac=#065fd4");return W},xvz=function(W,P,x,I,O,B,Y,K,Z,d,v){try{var m=_.eL("payments.business.integration");
if(!m)throw new PFl("payments.business.integration is undefined");var t=m.standaloneContextAuthId.forUserId(),C=ILb(W,m,B,K);Y&&C.usingServerAnalyticsEventHandler(Y);var z=C.inStandaloneContext(t).buyFlow(function(D){if(D&&(!D.integratorData||D.integratorData===""||D.error))if(D.error!=null)if(String(D.error)==="-1")_.wbR(Z);else{var w=String(D.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";hq(10,v,w,D.debugCode);
_.H5(w,Z,D.debugCode);w=new _.mW("PAYMENT_ERROR_MESSAGE::"+D.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+D.internalErrorDetails);_.G$(w)}else hq(10,v,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.H5("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",Z,"EMPTY_INTEGRATOR_DATA"),_.G$(Error("bg"));x&&x(D)}).withEncryptedParameters(P);
d&&z.withClientParameters(I08(_.d9m(d)));z.load(function(){hq(24,v);_.zZ("ttc",void 0,"commerce_transaction");yZt("commerce_transaction");I&&I()},function(D){if(D==null?0:D.debugCode)var w=D==null?void 0:D.debugCode;
else if(!D||(D==null?0:D.debugCode))w="EMPTY_LOAD_FAILURE_ERROR",_.G$(Error(w));else{w="EMPTY_LOAD_FAILURE_DEBUG_CODE";var a=new _.mW("LOAD_FAILURE:"+D.message," DEBUG_CODE:"+w);_.G$(a)}hq(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",w);_.H5("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Z,w);_.G$(D);O&&O(D)})}catch(D){throw D instanceof PFl&&(hq(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),O&&O(D)),_.G$(D),D;
}};var Osw;Osw=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.nh8=function(W,P){P=P===void 0?!1:P;W=Osw.test(W)?_.YH(W):null;!P&&window.payments||!W?(W=_.aP(),P=W.promise,W.resolve()):P=_.Dn(W,{attributes:{"data-payments-main":"",id:"payment-lib"}});return P};var J7b;J7b=_.i4(["//www.googletagmanager.com/gtm.js?id=",""]);_.db=function(W,P){_.qx(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:P}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.$$("GL")}),P=_.ZV("SCRIPT"),P.async=!0,_.c6(P,_.W9(J7b,W)),P.id="gtm",W=document.getElementsByTagName("script"),W.length==0?document.head.appendChild(P):(W=W[0],W.parentNode.insertBefore(P,W)))};
_.s3=function(W){if(W=JSON.parse(W))window.dataLayer=window.dataLayer||[],window.dataLayer.push(W)};var BBM,nn3;BBM=_.i4(["https://clients2.google.com/gr/gr_sync.js"]);_.JPx=function(){};
_.JPx.prototype.init=function(){if(nn3()){var W=_.aP();W.resolve();return W.promise}return _.Dn(_.W9(BBM)).then(function(){if(!nn3())throw Error("cg");},function(){throw Error("dg");
})};
_.BR7=function(){if(!nn3())return"";var W=window.google.gr;W.init({async:{schedule:"sync"},merchantId:"youtube"});W.start();W=W.finish();return W==null?"":W};
nn3=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.b=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.A(_.b,PolymerFakeBaseClassWithoutHtml);_.Yl=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.A(_.Yl,PolymerFakeBaseClassWithoutHtml);var hHR=window.ShadyDOM;var dfW,SfG,vwx,mfR,tgt,pwo,vv,T1;dfW=_.p("enable_shadydom_free_scoped_query_methods");SfG=_.p("enable_shadydom_free_scoped_node_methods");vwx=_.p("enable_shadydom_free_scoped_readonly_properties_batch_one");mfR=_.p("enable_shadydom_free_parent_node");tgt=_.p("enable_shadydom_free_children");pwo=_.p("enable_shadydom_free_last_child");vv=window.ShadyDOM;_.Fy=vv&&vv.noPatch&&vv.wrap?vv.wrap:vv?function(W){return vv.patch(W)}:function(W){return W};
T1=function(W){if(W instanceof ShadowRoot)this.host=(0,_.Fy)(W.host),this.root=W;else if(W.$$){this.host=(0,_.Fy)(W);var P;this.root=(P=W.root)!=null?P:this.host}else if(W.polymerController){this.host=(0,_.Fy)(W);var x;this.root=(x=this.host.shadowRoot)!=null?x:this.host}else this.root=this.host=(0,_.Fy)(W)};
uKm();sVd();jVA();QVt();Vg7();var YJA={querySelector:function(W,P){P=eHt(P,k3(W));W=_.Uo(W);return Xy(W).prototype.querySelector.call(W,P)},
querySelectorAll:function(W,P){P=eHt(P,k3(W));W=_.Uo(W);return Xy(W).prototype.querySelectorAll.call(W,P)}},y7w={appendChild:function(W,P){var x=k3(W),I=_.bS(P);
return _.Z78(_.Uo(W),x?_.Na(P,x,I):P)},
cloneNode:function(W,P){var x=_.bS(W);W=_.Uo(W);P=Xy(W).prototype.cloneNode.call(W,P);return x?lS(P,x):P},
contains:function(W,P){var x=k3(W),I=_.bS(P);return x!==I?!1:owG(W,P)},
insertBefore:function(W,P,x){var I=k3(W),O=_.bS(P);W=_.Uo(W);P=I?_.Na(P,I,O):P;return Xy(W).prototype.insertBefore.call(W,P,x)},
removeChild:function(W,P){var x=k3(W);W=_.Uo(W);P=x?lS(P,x):P;return Xy(W).prototype.removeChild.call(W,P)},
replaceChild:function(W,P,x){var I=k3(W),O=_.bS(P);P=I?_.Na(P,I,O):O?lS(P,O):P;x=I?lS(x,I):x;W=_.Uo(W);return Xy(W).prototype.replaceChild.call(W,P,x)},
getRootNode:function(W,P){P=P===void 0?{composed:!0}:P;var x;if(((x=P)!=null?x:{}).composed)W=rxW(W);else{P=W;for(W=axG(W);W;)P=W,W=kp7(W);W=P}return W}},AfR=vwx?{firstChild:JfR,
nextSibling:xfR,previousSibling:O7A,firstElementChild:BqS,lastElementChild:Yfm,nextElementSibling:PRR,previousElementSibling:IdW,childNodes:yfm}:{};mfR&&(AfR.parentNode=W3d);tgt&&(AfR.children=K38);pwo&&(AfR.lastChild=nwS);dfW&&CRm(YJA);SfG&&CRm(y7w);z9t();var Gqx=function(W){this.node=W instanceof ShadowRoot?W.host:W};
EwR();gw8();var $fm=new WeakMap;var h9W=Symbol("wd");var b77=new Set(["tap","track","down","up"]),kqx=_.p("pbcm_fi_query_decorators");var mX=function(){return _.Yl.apply(this,arguments)||this};
_.A(mX,_.Yl);_.J=mX.prototype;_.J.getState=function(){return this.store.getState()};
_.J.dispatch=function(W){this.store.dispatch(W)};
_.J.beforeRegister=function(){if(this&&typeof this==="object"){var W;var P=!!this.useSignals||!((W=this.polymerController)==null||!W.useSignals)}else P=!1;if(!P&&this.properties)for(P=_.n(Object.keys(this.properties)),W=P.next();!W.done;W=P.next()){var x=W.value;W=this.properties[x];if(W.selector){if(W.computed)throw Error("jg");x=["reduxPropertiesRecomputeTrigger",'"'+x+'"'].concat(_.ju(W.selectorArgs||[])).join(",");W.computed="recomputeReduxSelector("+x+")"}}};
_.J.attached=function(){var W=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){W.reduxPropertiesRecomputeTrigger++}));
_.p("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.J.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.J.recomputeReduxSelector=function(W,P){var x=_.tH.apply(2,arguments),I=this.properties[P].selector;if(!I)throw Error("hg`"+P);return I.apply(null,[this.store.getState()].concat(_.ju(x)))};
_.J.select=function(W){var P=_.tH.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return W.apply(null,[this.store.getState()].concat(_.ju(P)))};
_.N1.Object.defineProperties(mX.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
mX.prototype.recomputeReduxSelector=mX.prototype.recomputeReduxSelector;_.f([_.c(),_.l("design:type",Number)],mX.prototype,"reduxPropertiesRecomputeTrigger",void 0);mX=_.f([_.yL()],mX);var Ve=[],Nqo={},p_=function(){return TY.apply(this,arguments)||this};
_.A(p_,TY);p_.prototype._addPropertyEffect=function(W,P,x){if(P==="__observeEffects"&&x){var I,O=(I=x.info.method)!=null?I:x.info.methodName;if(O){var B=this[O];this[O]=function(){Ve.push(O);try{B==null||B.apply(this,arguments)}finally{Ve.pop()}}}}_.ph._addPropertyEffect.apply(this,[W,
P,x])};
p_.prototype._setPendingProperty=function(W,P,x){if(Ve.length){var I=Ve[Ve.length-1],O;(O=Nqo[this.is])!=null&&O.has(I)||(ldR(this.is,I),_.Ay("polymerPropertyChangedInObserver",{componentName:this.is,observerName:I}))}return _.ph._setPendingProperty.apply(this,[W,P,x])};
p_=_.f([zuC()],p_);var Tqd=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),i7o,o7={};_.p("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=o7);var dY=function(){return _.Yl.apply(this,arguments)||this};
_.A(dY,_.Yl);dY.prototype._setUnmanagedPropertyToNode=function(W,P,x){W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0);if(x!==W[P]||typeof x==="object")W[P]=x;W.is&&W.polymerController&&W.polymerController!==W&&Sd(W.is,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)};
dY=_.f([_.yL()],dY);rfC()&&($Q.prototype._setUnmanagedPropertyToNode=(new dY)._setUnmanagedPropertyToNode);_.yTW={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(W){},set polymerController(W){}}]};var tE=function(){var W=TY.apply(this,arguments)||this;W.json=function(){};
return W};
_.A(tE,TY);tE.prototype.equals=function(W,P){return W===P};
tE.prototype.isEmpty=function(W){return!W||_.xi(W)&&W.length===0};
tE=_.f([zuC()],tE);var KUW=function(W){W=j_8(W);cT.call(this,W)};
_.A(KUW,cT);KUW.prototype.addProvider=function(W){W=W.key?W:j_8([W])[0];var P=this.keyIdToIndex.get(W.key.id);if(P){if(Wlm(W,this.providers[P]))throw Error("kg`"+W.key.displayName);}else cT.prototype.addProvider.call(this,W)};
var Zsk=new KUW([]);var onk=!1;var BZt={};onk||(JTC(),onk=!0);
BZt.InjectBehavior={initializeInjection:function(){var W=this.provide;try{if((W=W!=null?W:[])&&W.length>0)for(var P=j_8(W),x=_.n(P),I=x.next();!I.done;I=x.next())Zsk.addProvider(I.value);var O=new Set;PWA(this.behaviors||[],O);P={};for(var B=_.n(O),Y=B.next();!Y.done;Y=B.next()){var K=Y.value;K.inject&&Object.assign(P,K.inject)}this.inject&&Object.assign(P,this.inject);for(var Z=_.n(Object.keys(P)),d=Z.next();!d.done;d=Z.next()){var v=d.value,m=P[v];try{this[v]=Zsk.resolve(m)}catch(t){throw t;}}}catch(t){throw Error(t.message);
}}};var Y$o;var Klm=/\bclass\b/.test(function(){}.toString()),S$t=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var SJm=function(W){this.wasDefined=!0;Array.isArray(W)||W instanceof Array?(this.JSC$11161_getImpl=W[0],this.JSC$11161_setImpl=W[1]):this.JSC$11161_getImpl=W};
_.J=SJm.prototype;_.J.getWithPath=function(W){return s8S(this.JSC$11161_getImpl(),W)};
_.J.setWithPath=function(W,P){var x=this;if(W.length)throw Error("lg");if(!this.JSC$11161_setImpl)throw Error("mg");u_(function(){x.JSC$11161_setImpl(P)})};
_.J.notifyPath=function(){throw Error("ng");};
_.J.notifySplices=function(){throw Error("og");};
_.J.getChangeRecordSignal=function(W,P){var x=this;if(W.length)throw Error("pg");return function(){var I=x.getWithPath(W);return{path:P!=null?P:"",base:I,value:I}}};
_.J.getSplicesSignal=function(){throw Error("qg");};
_.J.getPathMutationSignal=function(){throw Error("rg");};
_.J.pop=function(){throw Error("sg");};
_.J.push=function(){throw Error("tg");};
_.J.splice=function(){throw Error("ug");};
_.J.unshift=function(){throw Error("vg");};var te=function(W){var P=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(W)||W instanceof Array?(this.JSC$11166_getImpl=W[0],this.JSC$11166_setImpl=W[1]):this.JSC$11166_getImpl=W;this.wasDefined=!1;n4(function(){P.wasDefined=P.JSC$11166_getImpl()!==void 0})};
te.prototype.getWithPath=function(W){return s8S(this.JSC$11166_getImpl(),W)};
te.prototype.setWithPath=function(W,P){var x=this;if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){if(W.length===0){if(!this.JSC$11166_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=P!==void 0);u_(function(){x.JSC$11166_setImpl(P)})}else{for(var I=n4(function(){return x.getWithPath([])}),O=0;O<W.length-1;O++){if(!I)return;
I=I[W[O]]}O=W[W.length-1];I&&(I[O]=P);this.wasDefined||(this.wasDefined=W.length>1||P!==void 0)}uvd(this,W,{pathComponents:W,value:P})}};
te.prototype.notifyPath=function(W,P){W.length===0?P&&this.setWithPath(W,P.value):uvd(this,W,{pathComponents:W,value:P==null?void 0:P.value,fallbackWhenUndefined:P==null?void 0:P.value})};
var uvd=function(W,P,x,I){if(W.setMutationSignal){var O=++W.mutationIndex,B=[W.observedPath],Y=W.observedPath,K;P.length===0&&(K=Y);for(var Z=0;Z<P.length;Z++){var d=Y.subPaths[P[Z]];if(!d)break;B.push(d);Y=d;Z===P.length-1&&(K=d)}for(P=!1;B.length;)Y=B.shift(),Y.data={index:O,mutation:x,spliceMutationIndex:I},P||(P=Y===K),P&&B.push.apply(B,_.ju(Object.values(Y.subPaths)));u_(function(){W.setMutationSignal(O)})}};
te.prototype.notifySplices=function(W,P){var x=this,I=n4(function(){return x.getWithPath(W)}),O=[].concat(_.ju(W),["splices"]);
uvd(this,O,{pathComponents:O,value:{indexSplices:P}});if(I==null?0:I.length)P=this.mutationIndex,O=[].concat(_.ju(W),["length"]),uvd(this,O,{pathComponents:O,value:I.length},P)};
var dvb=function(W,P,x,I,O,B){W.notifySplices(x,[{index:I,addedCount:O,removed:B,object:P,type:"splice"}])},svi=function(W,P){W=W.observedPath;
for(var x=0;x<P.length;x++){var I=P[x],O=W.subPaths[I];O||(O={pathComponents:P.slice(0,x+1),subPaths:{}},W.subPaths[I]=O);W=O}},mvZ=function(W,P,x){svi(W,P);
if(!W.getMutationSignal){var I=_.n(_.YV(W.mutationIndex,void 0,"HavCgf"));W.getMutationSignal=I.next().value;W.setMutationSignal=I.next().value}var O=W.getMutationSignal;return _.Sj(function(){O();return x(vnd(W,P))},void 0,"BYaPo")};
te.prototype.getChangeRecordSignal=function(W,P){var x=this,I=this.mutationIndex,O;return mvZ(this,W,function(B){if(B&&B.index>I){var Y=B.mutation;I=B.index;O=void 0}B=n4(function(){return x.getWithPath(W)});
if(Y){var K=Y.pathComponents[Y.pathComponents.length-1],Z=[].concat(_.ju(Y.pathComponents));if(K==="splices"||K==="length")return{base:B,path:(P?[P].concat(_.ju(Z)):Z).join("."),value:Y.value};var d=W.length>Z.length?W:Z,v;return{base:B!=null?B:Y.fallbackWhenUndefined,path:(P?[P].concat(_.ju(d)):d).join("."),value:(v=n4(function(){return x.getWithPath(d)}))!=null?v:Y.fallbackWhenUndefined}}O||(O={base:B,
path:(P?[P].concat(_.ju(W)):W).join("."),value:B});return O})};
te.prototype.getSplicesSignal=function(W){var P=this.mutationIndex,x;return mvZ(this,W,function(I){if(I&&I.index>P&&I.spliceMutationIndex!==P){var O=I.mutation;P=I.index;x=void 0}return O&&O.pathComponents[O.pathComponents.length-1]==="splices"?x=I=O.value:x})};
te.prototype.getPathMutationSignal=function(W){var P=this;svi(this,W);if(!this.getMutationSignal){var x=_.n(_.YV(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=x.next().value;this.setMutationSignal=x.next().value}var I=this.getMutationSignal,O=this.mutationIndex,B;return _.Sj(function(){I();var Y=vnd(P,W);if(Y&&Y.index>O&&Y.mutation&&vto(Y.mutation.pathComponents,W)){var K=Y.mutation;O=Y.index}if(!B||O!==B.index){var Z,d;Y=(d=n4(function(){return P.getWithPath(W)}))!=null?d:(Z=K)==null?
void 0:Z.fallbackWhenUndefined;
B={index:O,value:Y}}return B},void 0,"Aumsyf")};
var vnd=function(W,P){W=W.observedPath;P=_.n(P);for(var x=P.next();!x.done;x=P.next())W=W.subPaths[x.value];return W.data};
te.prototype.pop=function(W){var P=this,x=n4(function(){return P.getWithPath(W)});
if(!(x instanceof Array))throw Error("xg");var I=x.length>0,O=x.pop();I&&dvb(this,x,W,x.length,0,[O]);return O};
te.prototype.push=function(W){var P=_.tH.apply(1,arguments),x=this,I=n4(function(){return x.getWithPath(W)});
if(!(I instanceof Array))throw Error("yg");var O=I.length,B=I.push.apply(I,_.ju(P));P.length&&dvb(this,I,W,O,P.length,[]);return B};
te.prototype.splice=function(W,P,x){var I=_.tH.apply(3,arguments),O=this,B=n4(function(){return O.getWithPath(W)});
if(!(B instanceof Array))throw Error("zg");P<0?P=B.length-Math.floor(-P):P&&(P=Math.floor(P));var Y=B.splice.apply(B,[P,x].concat(_.ju(I)));(I.length||Y.length)&&dvb(this,B,W,P,I.length,Y);return Y};
te.prototype.unshift=function(W){var P=_.tH.apply(1,arguments),x=this,I=n4(function(){return x.getWithPath(W)});
if(!(I instanceof Array))throw Error("Ag");var O=I.unshift.apply(I,_.ju(P));P.length&&dvb(this,I,W,0,P.length,[]);return O};var VXi=!0,tXz=!1,Lcm=!1,pad=!1,p6=!1,jvd=0;pad=!1;jvd=0;VXi=!0;p6=tXz=Lcm=!1;var jx=function(W,P,x){this.model=W;this.unknownSignalResolver=P;this.options=x;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];P=_.n(zLd());W=P.next().value;P=P.next().value;this.owner=W;this.disposeImpl=P};
jx.prototype.dispose=function(){if(!this.isDisposed){for(var W=_.n(this.childSignalProxies),P=W.next();!P.done;P=W.next())P.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Qvw=function(W,P){W=lZ(W.owner);try{P()}finally{lZ(W)}};
jx.prototype.effect=function(W){Qvw(this,function(){_.GB(W)})};
var CFm=function(W,P){W.options!=null||(W.options={});var x;(x=W.options).immutableProps!=null||(x.immutableProps=new Set);W.options.immutableProps.add(P)},q$W=function(W,P){P=""+P;
A7p(W,P);var x;if((x=W.model.__signalCache)==null?0:x.has(P))x=W.model.__signalCache.get(P),Array.isArray(x)&&CFm(W,P);var I,O,B;return(B=(I=W.options)==null?void 0:(O=I.immutableProps)==null?void 0:O.has(P))!=null?B:!1},zOc=function(W,P){var x;
W.unknownSignalResolver&&(x=W.unknownSignalResolver(P));var I,O;((I=W.options)==null?0:(O=I.immutableProps)==null?0:O.has(P))?x!=null||(x=new SJm(_.YV(W.model[P],void 0,"Xu3svb"))):x!=null||(x=new te(_.YV(W.model[P],void 0,"NgC9n")));var B=W.model.hostElement;Object.defineProperty(W.model,P,{get:function(){F3R(B,P);return x.getWithPath([])},
set:function(Y){uw(B,P);W.setWithPath([P],Y)},
configurable:!0});return x},A7p=function(W,P){var x,I,O;
((x=W.model.__signalCache)==null||!x.has(P))&&((I=W.options)==null?0:(O=I.externalSignalProps)==null?0:O.has(P))&&W.model[P]},AE=function(W,P){P=""+P;
var x=W.signalCache[P];if(x!==void 0)return x;x=!1;A7p(W,P);var I;if((I=W.model.__signalCache)==null?0:I.has(P))if(x=W.model.__signalCache.get(P),Array.isArray(x))x=!0,CFm(W,P);else return W.signalCache[P]=W.model.__signalCache.get(P).signal,W.signalCache[P];var O,B;I=(B=(O=W.options)==null?void 0:O.reactivityMode)!=null?B:0;var Y,K;if(!((Y=W.options)==null?0:(K=Y.reactiveProps)==null?0:K.has(P))&&!x&&I===1)throw Error("Bg`"+P);O=x?GWA(W,P):zOc(W,P);return W.signalCache[P]=O},GWA=function(W,P){var x=
Object.getOwnPropertyDescriptor(W.model.constructor.prototype,P),I=function(){return W.model[P]};
return new SJm(x&&x.get&&!x.set?I:[I,function(O){W.model[P]=O}])};
jx.prototype.getWithPath=function(W){var P=_.n(W);W=P.next().value;P=UW(P);F3R(this.model.hostElement,""+W);return AE(this,W).getWithPath(P)};
jx.prototype.setWithPath=function(W,P){if(W.length){uw(this.model.hostElement,W.join("."));var x=_.n(W);W=x.next().value;x=UW(x);AE(this,W).setWithPath(x,P)}};
jx.prototype.getPathMutationSignal=function(W){var P=_.n(W);W=P.next().value;P=UW(P);return AE(this,W).getPathMutationSignal(P)};
jx.prototype.notifyPath=function(W,P){var x=_.n(W);W=x.next().value;x=UW(x);AE(this,W).notifyPath(x,P)};
var Eni=function(W,P){if(P.type==="literal")return function(){return{rootWasDefined:!0,value:P.value}};
var x=QL(P.path),I=_.n(x),O=I.next().value;I=UW(I);var B,Y;if(P.type==="path"&&(x.length===1||((B=W.options)==null?0:(Y=B.immutableProps)==null?0:Y.has(O))))return function(){var m=W.getWithPath(x.slice(0,1)),t=s8S(m,x.slice(1));m=m!==void 0;p6&&(m=AE(W,x[0]).wasDefined);return{rootWasDefined:m,value:t}};
var K=AE(W,O);if(P.type==="path"){var Z=K.getPathMutationSignal(I);return function(){var m=p6?K.wasDefined:Ew(W.owner,function(){return K.getWithPath([])})!==void 0;
var t,C=(t=Z())==null?void 0:t.value;return{rootWasDefined:m,value:C}}}if(P.type==="splices"){var d=K.getSplicesSignal(I);
return function(){var m=d();return{rootWasDefined:p6?K.wasDefined:m!==void 0,value:m}}}var v=K.getChangeRecordSignal(I,""+O);
return function(){var m=v();return{rootWasDefined:p6?K.wasDefined:m!==void 0,value:m}}},Q8C=function(W,P,x){var I=x.map(function(K){return Eni(W,K)}),O=x.length===0,B=[],Y=x.length!==1||x[0].type!=="path"?!1:!0;
W.effect(function(){for(var K=I.length,Z=[],d=!!B.length,v=0;v<K;v++){var m=I[v](),t=m.rootWasDefined;m=m.value;O||(O=t);Z[v]=m;Y&&(Z[v+K]=d?B[v]:Z[v],B[v]=m)}O&&Ew(W.owner,function(){return void P.apply(null,_.ju(Z))})})},m0x=function(W,P,x,I,O){var B=AE(W,P);
O!==void 0&&B.setWithPath([],O);Q8C(W,function(){var Y=_.tH.apply(0,arguments);uw(W.model.hostElement,P,!0);B.setWithPath([],x.apply(null,_.ju(Y)))},I)};
jx.prototype.arrayPush=function(W){var P=_.tH.apply(1,arguments),x=_.n(W),I=x.next().value;x=UW(x);I=AE(this,I);return I.push.apply(I,[x].concat(_.ju(P)))};
jx.prototype.arraySplice=function(W,P,x){var I=_.tH.apply(3,arguments),O=_.n(W),B=O.next().value;O=UW(O);B=AE(this,B);return B.splice.apply(B,[O,P,x].concat(_.ju(I)))};
jx.prototype.arrayUnshift=function(W){var P=_.tH.apply(1,arguments),x=_.n(W),I=x.next().value;x=UW(x);I=AE(this,I);return I.unshift.apply(I,[x].concat(_.ju(P)))};
jx.prototype.notifySplices=function(W,P){var x=_.n(W);W=x.next().value;x=UW(x);AE(this,W).notifySplices(x,P)};var $0R=/([^\s]+?)\(([\s\S]*)\)/,gtG=/\.([^.]+)$/,hLd=/\\,/g,G5t=/&comma;/g,EtG=/\\(.)/g,wgx=[],D0S={"*":"wildcard",splices:"splices"};var NZm=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"),k5d=/[A-Z]/,gnm=["class","hidden","id","on-dom-change"],TZG=new Set([].concat(_.ju(gnm),
["if","notify-dom-change","restamp"])),rTG=new Set([].concat(_.ju(gnm),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),ir8=new Set(["restamp"]);var TBC=new Set(["className","id"]);var WcS=Symbol(),nJm=window;var d2t=window;var jrW=0,m27=0,zn=[],pe8=0,vJo=!1,tMt=document.createTextNode("");(new window.MutationObserver(VMC)).observe(tMt,{characterData:!0});var EZ=new Map,Gn=0,Dvw=function(W){this.mappedHandleId=W},C8R=function(W,P,x,I){this.mappedHandleId=W;
var O=this;this.mappedHandleId=W;this.callback=P;this.waitTime=x;this.schedulerPriority=I;this.handleId=_.Gr.addJob(function(){O.callback();EZ.delete(O.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.A(C8R,Dvw);C8R.prototype.cancel=function(){_.Gr.cancelJob(this.handleId);EZ.delete(this.mappedHandleId)};
var ALo=function(W,P){this.mappedHandleId=W;var x=this;this.mappedHandleId=W;this.callback=P;this.handleId=Qrt(function(){x.callback();EZ.delete(x.mappedHandleId)})};
_.A(ALo,Dvw);ALo.prototype.cancel=function(){var W=this.handleId-m27;W<0||zn.length<=W||(zn[W]=null);EZ.delete(this.mappedHandleId)};var gJA=function(){};
gJA.prototype.cancel=function(){this.jobHandle!==void 0&&(zZG(this.jobHandle),this.jobHandle=void 0)};
gJA.prototype.run=function(W,P,x){var I=this;this.cancel();this.callback=W;this.jobHandle=_.gY(function(){W();I.callback=void 0},P,x)};
gJA.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Gix=new WeakMap;var MXP=id(function(W){for(var P=W,x=0;x<3;x++)P=Object.getPrototypeOf(P);delete P.prototype.connectedCallback;var I=function(){return W.apply(this,arguments)||this};
_.A(I,W);I.prototype._attachDom=function(O){if(!O)return null;var B=(0,_.Fy)(this.hostElement);B.attachShadow({mode:"open",shadyUpgradeFragment:O});B.shadowRoot.appendChild(O);return B.shadowRoot};
I.prototype._takeAttributes=function(){for(var O=this.hostElement.attributes,B=0;B<O.length;B++){var Y=O[B],K=void 0,Z=void 0;(Z=(K=this).__attributeReaction)==null||Z.call(K,Y.name,null,Y.value)}};
I.prototype._readyClients=function(){W.prototype._readyClients.call(this);this.root=this};
I.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);W.prototype.connectedCallback.call(this)};
_.N1.Object.defineProperties(I,{template:{configurable:!0,enumerable:!0,get:function(){return I.prototype._template}}});
return I}),$v3=id(function(W){var P=function(){return W.apply(this,arguments)||this};
_.A(P,W);P.prototype.created=function(){if(this.__notifyEffects)for(var x=_.n(Object.values(this.__notifyEffects)),I=x.next();!I.done;I=x.next()){I=_.n(I.value);for(var O=I.next();!O.done;O=I.next())O.value.fn=we8}if(this.__reflectEffects)for(x=_.n(Object.values(this.__reflectEffects)),I=x.next();!I.done;I=x.next())for(I=_.n(I.value),O=I.next();!O.done;O=I.next())O.value.fn=hZS};
P.prototype._addEventListenerToNode=function(x,I,O){x=Mn(x);AC(x,I,O)||W.prototype._addEventListenerToNode.call(this,x,I,O)};
P.prototype._removeEventListenerFromNode=function(x,I,O){x=Mn(x);zY(x,I,O)||W.prototype._removeEventListenerFromNode.call(this,x,I,O)};
P.prototype._propertiesChanged=function(x,I,O){if(this.__dataToNotify&&this.__notifyEffects)for(var B=_.n(Object.keys(this.__dataToNotify)),Y=B.next();!Y.done;Y=B.next()){Y=Y.value;var K=$2m(Y);this.__notifyEffects[K]||delete this.__dataToNotify[Y]}else this.__dataToNotify=null;W.prototype._propertiesChanged.call(this,x,I,O)};
P.prototype.fire=function(x,I,O){I=I===void 0?{}:I;var B;return _.Lf(Mn((B=O==null?void 0:O.node)!=null?B:this),x,I,O)};
P.prototype._ensureAttribute=function(x,I){var O=Mn(this);O.hasAttribute(x)||C_(O,I,x)};
P.prototype.isLightDescendant=function(x){var I=Mn(this);return Mn(I)!==x&&_.g(I).contains(x)&&_.g(I).getRootNode()===_.g(x).getRootNode()};
return P});
_.pT.ready=function(){var W;((W=this.hostElement)!=null?W:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var P;((P=this.hostElement)!=null?P:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Db._subscribeIronResize=function(W){var P;((P=W.hostElement)!=null?P:W).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Db._unsubscribeIronResize=function(W){var P;((P=W.hostElement)!=null?P:W).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var cL7=[Array,Boolean,Date,Number,Object,String],wY=function(W,P,x,I){this.polySiInfo=W;this.polySiParams=P;this.polySiContext=x;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;I||this instanceof HTMLElement&&(I=this);if(!I)throw Error("Ig");this.allowedProps=P.allowedProps;this.hostElement=I;this.is=W.is;this.upgradeDisabled=!!P.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");W=new Set(P.reactiveSchemas.filter(function(O){return O.type!==
"observe"}).map(function(O){return O.propertyKey}));
this.signalProxy=new jx(this,void 0,{reactiveProps:W,reactivityMode:P.reactivityMode});this.__dataHasAccessor={};P=_.n(P.reactiveSchemas);for(W=P.next();!W.done;W=P.next())W=W.value,W.type==="signal"&&(this.__dataHasAccessor[W.propertyKey]=!0);this.upgradeDisabled||waP(this)};
wY.prototype.getExtraMethodsToForward=function(){return[]};
var waP=function(W){W.polySiContext.didRegister||(W.registered(),W.polySiContext.didRegister=!0);W.polySiContext.finalizedTemplate||(W.polySiContext.finalizedTemplate={},W.polySiParams.templateGetter&&(W.polySiContext.finalizedTemplate.processedTemplate=srW(W.polySiParams.templateGetter,W.polySiParams.is)));hOM(W);var P=W.hostElement;P.loggingStatus!=null||(P.loggingStatus={});P.loggingStatus.isInitializing=!0;n4(function(){return void W.created()});
P.loggingStatus.isInitializing=!1;W.isPolySiElementConnected&&Hsl(W)},Hsl=function(W){W.didCallReady||(n4(function(){return void W.ready()}),W.didCallReady=!0);
W.isAttached=!0;W.attached()};
_.J=wY.prototype;_.J.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Hsl(this)};
_.J.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.J.attributeChangedCallback=function(W,P,x){if(this.upgradeDisabled)W==="disable-upgrade"&&x===null&&(this.upgradeDisabled=!1,waP(this));else if(P!==x){var I=_.Zt(W),O=this.polySiContext.typesForSignals[I];if(O&&(!this.reflecting||_.p("polysi_attribute_changed_serializing_killswitch"))){switch(O){case Object:try{var B=JSON.parse(x)}catch(K){B=x}break;case Array:try{B=JSON.parse(x)}catch(K){B=null}break;case Date:B=isNaN(x)?String(x):Number(x);B=new Date(B);break;case Boolean:B=x!==null;break;case Number:B=
Number(x);break;default:B=x}this[I]=B}I=_.n(this.polySiParams.behaviors);for(O=I.next();!O.done;O=I.next())B=void 0,(B=O.value.attributeChanged)==null||B.call(this,W,P,x);var Y;(Y=this.attributeChanged)==null||Y.call(this,W,P,x)}};
_.J.attributeChangedCallbackWrapper=function(W,P,x){this.attributeChangedCallback(W,P,x)};
_.J.setPropertiesFromInitialAttributeValues=function(){for(var W=0;W<this.hostElement.attributes.length;W++){var P=this.hostElement.attributes[W];(P.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(P.name))&&this.attributeChangedCallback(P.name,null,P.value)}};
_.J.created=function(){this.provide=this.polySiParams.provide;var W;(W=this.initializeInjection)==null||W.call(this);W=_.n(this.polySiParams.reactiveSchemas);for(var P=W.next();!P.done;P=W.next())P=P.value,P.type==="signal"&&(this.mutablePropNames.add(P.propertyKey),AE(this.signalProxy,P.propertyKey));eZm(this,this.polySiInfo,this.polySiParams.behaviors);W=_.n(this.polySiParams.reactiveSchemas);for(P=W.next();!P.done;P=W.next())P=P.value,P.type==="signal"&&P.value!==void 0&&(this.signalProxy.model[P.propertyKey]=
typeof P.value==="function"?P.value.call(this):P.value);if(this.polySiParams.signalProperties)for(W=_.n(this.polySiParams.signalProperties),P=W.next();!P.done;P=W.next()){P=P.value;var x=void 0;((x=this.__signalCache)==null?0:x.has(P))||(this.signalProxy.model[P]=void 0)}pad||eOk(this);HOS(this);W=_.n(this.polySiParams.behaviors);for(P=W.next();!P.done;P=W.next())x=void 0,(x=P.value.created)==null||x.call(this);var I;(I=this.polySiInfo.created)==null||I.call(this)};
_.J.registered=function(){var W=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var P=Object.getPrototypeOf(this);P.addReactiveSchema=function(K){W.polySiParams.reactiveSchemas.push(K)};
for(var x=_.n(this.polySiParams.behaviors),I=x.next();!I.done;I=x.next()){var O=void 0;(O=I.value.beforeRegister)==null||O.call(P)}var B;(B=this.polySiInfo.beforeRegister)==null||B.call(P);P.addReactiveSchema=bOo;x=_.n(this.polySiParams.behaviors);for(I=x.next();!I.done;I=x.next())O=void 0,(O=I.value.registered)==null||O.call(P);var Y;(Y=this.polySiInfo.registered)==null||Y.call(P)};
_.J.ready=function(){var W;(W=this.beforeReady)==null||W.call(this);pad&&eOk(this);var P;if(W=(P=this.polySiContext.finalizedTemplate)==null?void 0:P.processedTemplate){W=uxo(W.template,W.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:W.hasInsertionPoint,thisCtx:this});P=W.nodesById;W=W.root;var x=this.hostElement;var I=I===void 0?!1:I;x=(0,_.Fy)(x);if(!x.attachShadow)throw Error("Cd");if(!x.shadowRoot||I)x.attachShadow({mode:"open",shadyUpgradeFragment:W}),x.shadowRoot.appendChild(W);
this.root=x.shadowRoot;this.$=P}c7k(this);I=_.n(this.polySiParams.behaviors);for(P=I.next();!P.done;P=I.next())W=void 0,(W=P.value.ready)==null||W.call(this);var O;(O=this.polySiInfo.ready)==null||O.call(this)};
_.J.attached=function(){for(var W=_.n(this.polySiParams.behaviors),P=W.next();!P.done;P=W.next()){var x=void 0;(x=P.value.attached)==null||x.call(this)}var I;(I=this.polySiInfo.attached)==null||I.call(this)};
_.J.detached=function(){for(var W=_.n(this.polySiParams.behaviors),P=W.next();!P.done;P=W.next()){var x=void 0;(x=P.value.detached)==null||x.call(this)}var I;(I=this.polySiInfo.detached)==null||I.call(this)};
var hOM=function(W){for(var P=_.n(W.polySiParams.behaviors),x=P.next();!x.done;x=P.next())if(x=x.value,x.listeners)for(var I in x.listeners)SBW(W,W.hostElement,I,x.listeners[I]);if(W.polySiInfo.listeners)for(var O in W.polySiInfo.listeners)SBW(W,W.hostElement,O,W.polySiInfo.listeners[O])},SBW=function(W,P,x,I,O){W=d0R(W,I,O);
AC(P,x,W)||P.addEventListener(x,W);return W},eOk=function(W){for(var P=_.n(W.polySiParams.reactiveSchemas),x=P.next();!x.done;x=P.next())x=x.value,x.type==="compute"||x.type==="computeWithMethod"?Vpo(W.signalProxy,x,W):x.type==="redux"?j8W(W.signalProxy,x,W.store):x.type==="signal"&&x.readOnly&&pgo(W.signalProxy,x)},c7k=function(W){for(var P=_.n(W.polySiParams.reactiveSchemas),x=P.next(),I={};!x.done;I={schema$jscomp$12:void 0},x=P.next())I.schema$jscomp$12=x.value,I.schema$jscomp$12.type==="notify"?
CWm(W.signalProxy,I.schema$jscomp$12,W.hostElement):I.schema$jscomp$12.type==="observe"?ATd(W.signalProxy,I.schema$jscomp$12,W):I.schema$jscomp$12.type==="reflect"&&W.signalProxy.effect(function(B){return function(){var Y=W.signalProxy.getWithPath([B.schema$jscomp$12.propertyKey]);
W.reflecting=!0;eLt(W.hostElement,B.schema$jscomp$12.propertyKey,Y,!0);W.reflecting=!1}}(I));
if(W.reflectedAttributes)for(P=_.n(Object.entries(W.reflectedAttributes)),I=P.next(),x={};!I.done;x={key$jscomp$873:void 0,value$jscomp$8764:void 0},I=P.next()){var O=_.n(I.value);I=O.next().value;O=O.next().value;x.key$jscomp$873=I;x.value$jscomp$8764=O;W.signalProxy.effect(function(B){return function(){W.reflecting=!0;eLt(W.hostElement,B.key$jscomp$873,(0,B.value$jscomp$8764)(),!0);W.reflecting=!1}}(x))}};
_.J=wY.prototype;_.J._setPendingProperty=function(W,P){this.set(W,P);return!1};
_.J._enableProperties=function(){};
_.J._setPendingPropertyOrPath=function(W,P){this.notifyPath(W,P);return!1};
_.J._addPropertyEffect=function(){};
_.J._stampTemplate=function(){throw Error("Jg");};
_.J.fire=function(W,P,x){P=P===void 0?{}:P;x=x===void 0?{}:x;var I,O,B={bubbles:(I=x.bubbles)!=null?I:!0,cancelable:!!x.cancelable,composed:(O=x.composed)!=null?O:!0},Y;return _.Lf(kiU((Y=x.node)!=null?Y:this.hostElement),W,P,B)};
_.J.get=function(W,P){var x=QL(W);return P?s8S(P,x):W==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(x)};
_.J.linkPaths=function(){};
_.J.listen=function(W,P,x){W=kiU(W);this.boundListeners!=null||(this.boundListeners=new WeakMap);var I=this.boundListeners.get(W);I||(I={},this.boundListeners.set(W,I));var O=P+x;I[O]||(I[O]=SBW(this,W,P,x))};
_.J.notifyPath=function(W,P){this.signalProxy.notifyPath(QL(W),arguments.length===2?{value:P}:void 0)};
_.J.canNotifyPath=function(W){var P,x;return this.mutablePropNames.has(W)&&!((P=this.signalProxy.options)==null?0:(x=P.immutableProps)==null?0:x.has(W))};
_.J.notifySplices=function(W,P){this.signalProxy.notifySplices(QL(W),P)};
_.J.pop=function(W){var P=this.signalProxy;W=QL(W);var x=_.n(W);W=x.next().value;x=UW(x);return AE(P,W).pop(x)};
_.J.push=function(W){var P=_.tH.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[QL(W)].concat(_.ju(P)))};
_.J.set=function(W,P,x){if(x)throw Error("Kg");W==="hidden"?this.hostElement.hidden=!!P:this.signalProxy.setWithPath(QL(W),P)};
_.J.setProperties=function(W){W=_.n(Object.entries(W));for(var P=W.next();!P.done;P=W.next()){var x=_.n(P.value);P=x.next().value;x=x.next().value;this[P]=x}};
_.J.splice=function(W,P,x){var I=_.tH.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[QL(W),P,x].concat(_.ju(I)))};
_.J.unlinkPaths=function(){};
_.J.unlisten=function(W,P,x){W=kiU(W);if(this.boundListeners){var I=this.boundListeners.get(W);if(I){x=P+x;var O=I[x];O&&(zY(W,P,O)||W.removeEventListener(P,O),delete I[x])}}};
_.J.unshift=function(W){var P=_.tH.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[QL(W)].concat(_.ju(P)))};
_.N1.Object.defineProperties(wY.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 qBm=[Array,Boolean,Date,Number,Object,String];var PFt=!1;var Qe=function(){var W=HTMLElement.apply(this,arguments)||this;W.restamp=!1;W.notifyDomChange=!1;W.JSC$11274_didCallConnected=!1;W.JSC$11274_renderDebouncer=null;W.disableTemplateUpdateSignalImpl=hE()?void 0:_.YV(!1,void 0,"zLXz1e");var P;W.getDisableTemplateUpdate=(P=W.disableTemplateUpdateSignalImpl)==null?void 0:P[0];var x;W.setDisableTemplateUpdate=(x=W.disableTemplateUpdateSignalImpl)==null?void 0:x[1];return W};
_.A(Qe,HTMLElement);var aLP=function(W){W.conditionSignalImpl!=null||(W.conditionSignalImpl=new te(_.YV(!1,void 0,"wcuOQ")));return W.conditionSignalImpl};
_.J=Qe.prototype;_.J.showHideChildren=function(W){bsM(this,W,this.if)};
_.J.attributeChangedCallback=function(W,P,x){if(this.JSC$11274_didCallConnected)throw Error("Og`"+W);W==="notify-dom-change"?this.notifyDomChange=x!==null:W==="restamp"&&(this.restamp=x!==null)};
_.J.debounceRender=function(){this.JSC$11274_renderDebouncer=_.Bz(this.JSC$11274_renderDebouncer,ES,this.JSC$11274_renderImpl.bind(this));_.nh(this.JSC$11274_renderDebouncer)};
_.J.disconnectedCallback=function(){var W=(0,_.Fy)(this).parentNode;(!W||W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in W&&!W.host)&&kW3(this)};
_.J.connectedCallback=function(){var W=this;this.JSC$11274_didCallConnected=!0;VXi?xv8():this.style.display="none";this.parentSignalProxy.effect(function(){aLP(W).getWithPath([]);W.debounceRender()})};
_.J.render=function(){_.ZR()};
_.J.JSC$11274_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var W=this.if;if(W){a:{var P=(0,_.Fy)(this).parentNode;if(this.hasInstance()){var x=this.instance.children;if((x==null?0:x.length)&&(0,_.Fy)(this).previousSibling!==x[x.length-1])for(var I=0;I<x.length;I++)(0,_.Fy)(P).insertBefore(x[I],this)}else{if(!P){P=!1;break a}Uvi(this,P)}P=!0}if(!P)return}else this.restamp&&kW3(this);bsM(this,!1,W);W&&XaP(this);tXz&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.J.hasInstance=function(){return!!this.instance};
var Uvi=function(W,P){var x=W.parentSignalProxy;if(hE()){var I=_.n(_.YV(!0,void 0,"wXzgnc"));var O=I.next().value;I=I.next().value;x=W.parentSignalProxy}else{var B;var Y=new jx((B=fLd(W))!=null?B:{},function(Z){var d=AE(W.parentSignalProxy,Z).getChangeRecordSignal([]);Z=_.YV(void 0,void 0,"mryEkc");var v=new te(Z);Y.effect(function(){if(W.getDisableTemplateUpdate&&!W.getDisableTemplateUpdate()){var m=d();v.notifyPath(QL(m.path),{value:m.value})}});
return v});
W.parentSignalProxy.childSignalProxies.push(Y);var K=x=Y}x=uxo(W.templateInfo,W.templateInfo.nodeInfoList,x,{eventListenerHost:W.eventListenerHost,hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,enabledSignal:hE()?O:void 0,getModel:function(){return fLd(W)}}).root;
W.instance={root:x,children:[],hidden:!1,signalProxy:K,getTemplateUpdatesEnabled:O,setTemplateUpdatesEnabled:I};K=_.n(x.childNodes);for(O=K.next();!O.done;O=K.next())W.instance.children.push(O.value);(0,_.Fy)(P).insertBefore(W.instance.root,W)},fLd=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var P={},x;
for(x in W)W.hasOwnProperty(x)&&(P[x]=W[x]);return P}},kW3=function(W){if(W.instance){var P=W.instance.children;
if(P.length){var x=(0,_.Fy)(P[0]).parentNode;if(x){x=(0,_.Fy)(x);for(var I=0;I<P.length;I++)x.removeChild(P[I])}}hE()?W.instance.setTemplateUpdatesEnabled(!1):W.instance.signalProxy.dispose();W.instance=void 0}},bsM=function(W,P,x){P=P||!x;
W.instance&&W.instance.hidden!==P&&(W.instance.hidden=P,WUd(P,W.instance.children))},XaP=function(W){if(hE()){var P=W.instance;
P&&Ew(W.parentSignalProxy.owner,function(){return!P.getTemplateUpdatesEnabled()})&&P.setTemplateUpdatesEnabled(!0)}else W.setDisableTemplateUpdate(!1)};
_.N1.Object.defineProperties(Qe.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var W=this;return Ew(this.parentSignalProxy.owner,function(){return aLP(W).getWithPath([])})},
set:function(W){W||(hE()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));aLP(this).setWithPath([],!!W)}}});
_.N1.Object.defineProperties(Qe,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Qe);var NBl=[],C6=function(){var W=HTMLElement.apply(this,arguments)||this;W.as="item";W.indexAs="index";W.itemsIndexAs="itemsIndex";W.targetFramerate=20;W.notifyDomChange=!1;W.isDetached=!1;W.JSC$11281_renderDebouncer=null;W.instances=[];W.chunkingId=null;W.chunkCount=null;W.shouldMeasureChunk=!1;W.shouldContinueChunking=!1;W.renderStartTime=null;W.JSC$11281_didCallConnected=!1;return W};
_.A(C6,HTMLElement);var lLl=function(W){W.itemSignalImpl!=null||(W.itemSignalImpl=new te(_.YV(NBl,void 0,"YBrqgf")));return W.itemSignalImpl},TBp=function(W,P){Array.isArray(P)||(P=NBl);
lLl(W).setWithPath([],P)};
_.J=C6.prototype;_.J.showHideChildren=function(W){for(var P=_.n(this.instances),x=P.next();!x.done;x=P.next())WUd(W,x.value.children)};
_.J.notifyPath=function(W,P){W=QL(W);W[0]==="items"&&(W.length===1?TBp(this,P):lLl(this).setWithPath(W.slice(1),P))};
_.J.canNotifyPath=function(W){return W==="items"};
_.J.attributeChangedCallback=function(W,P,x){if(this.JSC$11281_didCallConnected)throw Error("Pg`"+W);W==="as"?this.as=x:W==="index-as"?this.indexAs=x:W==="items-index-as"?this.itemsIndexAs=x:W==="initial-count"?this.initialCount=Number(x):W==="notify-dom-change"?this.notifyDomChange=x!==null:W==="target-framerate"&&(this.targetFramerate=Number(x))};
_.J.disconnectedCallback=function(){this.isDetached=!0;for(var W=0;W<this.instances.length;W++)r7l(this,W);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.J.connectedCallback=function(){var W=this,P=lLl(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var O=P(),B=QL(O.path);if(B[0]===void 0||B[0]==="splices"||B[0]==="length")W.debounceRender();else{var Y=B[0];if(Y=W.instances[typeof Y==="string"?Math.floor(Number(Y)):Y])B=[W.as].concat(_.ju(B.slice(1))),Y.signalProxy.notifyPath(B,O)}});
this.JSC$11281_didCallConnected=!0;VXi?xv8():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var x=(0,_.Fy)((0,_.Fy)(this).parentNode),I=0;I<this.instances.length;I++)x.insertBefore(this.instances[I].root,this);this.chunkingId&&this.render()}};
_.J.debounceRender=function(){this.JSC$11281_renderDebouncer=_.Bz(this.JSC$11281_renderDebouncer,ES,this.JSC$11281_renderImpl.bind(this));_.nh(this.JSC$11281_renderDebouncer)};
_.J.render=function(){this.debounceRender();_.ZR()};
_.J.JSC$11281_renderImpl=function(){var W=this,P=this.items,x=ism(this,P.length);RO3(this,P,x);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){W.chunkingId=null;if(W.shouldMeasureChunk){var I=performance.now()-W.renderStartTime;W.chunkCount=Math.round(Math.ceil(1E3/W.targetFramerate)/I*W.chunkCount)||1}W.shouldContinueChunking&&W.debounceRender()}));
tXz&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var ism=function(W,P){var x=P,I=W.instances.length;if(W.initialCount){if(W.chunkCount){var O=Math.min(Math.max(P-I,0),W.chunkCount);x=Math.min(I+O,P)}else x=Math.min(P,W.initialCount),O=Math.max(x-I,0),W.chunkCount=O||1;W.shouldMeasureChunk=O===W.chunkCount;W.shouldContinueChunking=x<P;W.renderStartTime=performance.now()}return x},RO3=function(W,P,x){for(var I=0;I<x;I++){var O=W.instances[I],B=P[I];
O?(O.signalProxy.setWithPath([W.as],B),O.signalProxy.setWithPath([W.indexAs],I)):FUZ(W,B,I)}for(P=W.instances.length-1;P>=I;P--)x=W,O=P,r7l(x,O),_.n(x.instances.splice(O,1)).next().value.signalProxy.dispose()},r7l=function(W,P){W=W.instances[P];
P=(0,_.Fy)(W.root);for(var x=0;x<W.children.length;x++)P.appendChild(W.children[x])},FUZ=function(W,P,x){var I={};
P=Object.assign({},qJi(W),(I[W.as]=P,I[W.indexAs]=x,I[W.itemsIndexAs]=x,I));var O=new jx(P,function(Y){if(Y!==W.as&&Y!==W.indexAs){if(Y===W.itemsIndexAs)return AE(O,W.indexAs);var K=AE(W.parentSignalProxy,Y).getChangeRecordSignal([]);Y=_.YV(void 0,void 0,"Mu2Bwb");var Z=new te(Y);O.effect(function(){var d=K();Z.notifyPath(QL(d.path),{value:d.value})});
return Z}});
W.parentSignalProxy.childSignalProxies.push(O);I=uxo(W.templateInfo,W.templateInfo.nodeInfoList,O,{eventListenerHost:W.eventListenerHost,getModel:function(){var Y={};return Object.assign({},qJi(W),(Y[W.as]=O.model[W.as],Y[W.indexAs]=O.model[W.indexAs],Y[W.itemsIndexAs]=O.model[W.indexAs],Y))},
hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,methodInvocationRequirement:jvd,enabledSignal:W.stampingEnabled}).root;P={root:I,children:[],signalProxy:O};I=_.n(I.childNodes);for(var B=I.next();!B.done;B=I.next())P.children.push(B.value);I=(I=W.instances[x+1])?I.children[0]:W;(0,_.Fy)((0,_.Fy)(W).parentNode).insertBefore(P.root,I);W.instances[x]=P},qJi=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var P={},x;
for(x in W)W.hasOwnProperty(x)&&(P[x]=W[x]);return P}};
C6.prototype.itemForElement=function(W){var P=this,x=this.instances.find(function(I){return I.children.includes(W)});
if(x)return Ew(this.parentSignalProxy.owner,function(){return x.signalProxy.getWithPath([P.as])})};
C6.prototype.indexForElement=function(W){var P=this.instances.findIndex(function(x){return x.children.includes(W)});
return P>=0?P:void 0};
_.N1.Object.defineProperties(C6.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var W=this;return Ew(this.parentSignalProxy.owner,function(){return lLl(W).getWithPath([])})},
set:function(W){TBp(this,W)}},
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}}});
_.N1.Object.defineProperties(C6,{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",C6);var LUk,WC3;_.Ae=new _.Lb("STATE_STORE_TOKEN");LUk=new _.Lb("SELECT_TOKEN");WC3=new _.Lb("DISPATCH_TOKEN");var YJR={getSelectFn:function(){var W;return(W=_.FY().resolve(_.Rl(LUk)))!=null?W:IL7},
getDispatchFn:function(){var W;return(W=_.FY().resolve(_.Rl(WC3)))!=null?W:_.HM().dispatch.bind(_.HM())},
getAppStore:function(){return _.FY().resolve(_.Ae)}},Osm,nnA=!1;var ZsS=void 0;var Pjz=function(){};
Pjz.prototype.hasAttribute=function(W){if(W==="dir")return!1;if(W==="disable-upgrade"){var P,x;return(x=(P=this.hostElement)==null?void 0:P.hasAttribute("disable-upgrade"))!=null?x:!1}throw Error("Qg`"+W);};
Pjz.prototype.attributeChangedCallbackWrapper=function(W,P,x){if(W==="disable-upgrade"&&this.__isUpgradeDisabled&&x===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var I;((I=this.hostElement)!=null?I:this).isConnected&&this.connectedCallback()}else P===x||this.__isReflecting||this.attributeChangedCallback(W,P,x)};
Pjz.prototype.getExtraMethodsToForward=function(){for(var W=this,P=[],x=_.n(xOw),I=x.next(),O={};!I.done;O={tagName$jscomp$51:void 0,name$jscomp$533:void 0},I=x.next())O.name$jscomp$533=I.value,I=void 0,O.name$jscomp$533==="_setPendingProperty"?(O.tagName$jscomp$51=this.hostElement.tagName.toLowerCase(),I=function(B){return function(Y,K,Z){Sd(B.tagName$jscomp$51,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return W._setPendingProperty(Y,K,Z)}}(O)):I=function(B){return function(){return W[B.name$jscomp$533].apply(W,
_.ju(_.tH.apply(0,arguments)))}}(O),P.push([O.name$jscomp$533,
I]);return P};
for(var mvG=$v3(MXP((0,_.th)(Pjz))),jvx=["disabled","disable-upgrade"],Icw=(0,_.th)(function(){}),Oqp=new Set(Object.getOwnPropertyNames(Icw.prototype)),GWR=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.ju(Oqp))),CFd=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),xOw=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),JsZ=new Set([].concat(_.ju(CFd),_.ju(xOw),_.ju(Oqp))),BdM=_.n(JsZ),nLw=BdM.next();!nLw.done;nLw=BdM.next())Tqd.add(nLw.value);var zOU={created:function(){HOS(this);this.initializeInjection()}};var eOS=!1,Nn=window.ShadyDOM,NBt=["appendChild","insertBefore","removeChild","replaceChild"],fLx=[Node];Nn&&fLx.push(Nn.Wrapper);var FUG,qJW,Pj8={};var rY=new Set,lw="",xOm="";var Tn,iw=new Set;var ZqR=new Set("context didCallReady is info params signalProxy".split(" ")),SdS="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),u$S="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Ydc=Ya({entities:dcm}),ysp=new Un(Ydc);var zC=function(){return _.Yl.apply(this,arguments)||this};
_.A(zC,_.Yl);_.N1.Object.defineProperties(zC.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return ysp}}});
zC=_.f([_.yL()],zC);_.GC=[mX.prototype,zC.prototype];_.E3={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var W=this,P={};setTimeout(function(){var x;return _.Lf((x=W.hostElement)!=null?x:W,"yt-live-chat-add-tooltip-target",P)},0);
this.handler_=P.handler},
detached:function(){if(this.handler_){var W;this.handler_.removeElementFromSupportingTooltips((W=this.hostElement)!=null?W:this)}this.handler_=null}}};_.xY=new _.Lb("ICON_MANAGER_TOKEN");var KC3=[48,20,18,16,15,13,12],eF8=new Map,DO7=new Set,Gw8=new Set,gLd=new Set,zFm=new Set,ELt=new Set,$Od=new Promise(function(W){var P=!1,x=!1,I=!1,O=[],B=function(Y){if("detail"in Y)if(Y=Y.detail,Y.name==="yt-icons")Mb8(Y),P=!0;else if(Y.name==="yt-sys-icons")Mb8(Y),x=!0;else{var K;((K=Y.name)==null?0:K.includes("yt-sys-icons"))&&Y.size!==24&&(Mb8(Y,!0),O.push(Y.size),O.length===KC3.length&&(I=!0))}P&&x&&I&&(window.removeEventListener("iron-iconset-added",B),W())};
window.addEventListener("iron-iconset-added",B)}),hFG=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"]]);_.gb={};_.gb.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.kz,computeHref_:function(W,P){P=P===void 0?!1:P;if(!W||W.commandExecutorCommand)return null;var x=l1W(W,P);return P||x!==null?x?_.p("enable_polymer_resin")?_.my(x).toString():x:null:(_.ge(new _.mW("computeHref was null",this.is,W)),null)},
computeOptionalHref_:function(W){return this.computeHref_(W,!0)},
computeNofollow_:function(W){return W?eV8(W)?"nofollow":null:null},
computeIcon_:function(W){return W&&W.iconType?_.PW(W.iconType):""},
resolveCommand:function(W,P,x){P=P===void 0?{}:P;return _.O2(W,this.hostElement,P,x===void 0?!1:x)}};var oLW,Di;_.ZqP={};oLW=null;
Di={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_=zfm(this.viewroot));_.gY(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var W=this;this.unobserve_();if(_.p("kevlar_vimio_use_shared_monitor"))UOm(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 P=[];this.visibilityOptionVisible_&&P.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&P.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&P.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=P}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){csS(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 W=_.MT(this.parentNode,function(x){var I,O=(I=x.polymerController)!=null?I:x;return!!O.getVisibilityObserverForChild&&O.getVisibilityObserverForChild()},!0);
if(W){var P;this.localVisibilityObserver_=((P=W.polymerController)!=null?P:W).getVisibilityObserverForChild()}else oLW||(oLW=zfm()),this.localVisibilityObserver_=oLW;return this.localVisibilityObserver_},visibilityCallback:function(W){W?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.p("kevlar_use_vimio_behavior")||(Di={});Di&&!_.p("kevlar_use_vimio_behavior")&&(delete Di.attached,delete Di.detached);_.ZqP.YtVisibilityObserverBehavior=[Di];var Sdk={};Sdk.YtVisualElementBehavior=[_.ZqP.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.p("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.p("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var W=this.getScreenLayer&&this.getScreenLayer(),P=this.getVisibilityLogger();P&&P.reportShown(this,void 0,W)}},
onHidden:function(){if(_.p("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.p("kevlar_vimio_use_shared_monitor")){var W=this.getScreenLayer&&this.getScreenLayer(),P=this.getVisibilityLogger();P&&P.reportHidden(this,void 0,W)}},
getVisibilityLogger:function(){return _.p("kevlar_use_vimio_behavior")?_.BW():null},
shouldSkipLogging:function(){if(_.$$("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var W=this.getParentRenderer&&this.getParentRenderer();if(!W)return!1;var P,x=(P=W.polymerController)!=null?P:W;if(!x.data)return!1;W=this.data.trackingParams;W=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:W;var I;P=(I=x.data)==null?void 0:I.trackingParams;var O,B;P=((O=x.data)==null?0:O.loggingDirectives)?(B=x.data)==null?void 0:B.loggingDirectives.trackingParams:P;return W&&P&&W===
P}}];var lcS=new Map,SS;var rRm=function(W){this.layer=W},Hq=function(W){return W.layer!==void 0?W.layer:W.parent?Hq(W.parent):W.layer=0};var qdo;_.L={};qdo=0;_.L.YtRendererBehavior=[_.gb.YtComponentBehavior,Sdk.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_:_.p("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var W,P;(P=(W=this.monitorScrollElement)!=null?W:this.hostElement)==null||P.removeEventListener("scroll",_.WM(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();fcm(this.hostElement);tMl(_.Bv(),this.hostElement);XB.delete(this.hostElement)},
registerRenderer:function(W){var P;((P=W.polymerController)!=null?P:W).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(W),this.markDirty())},
unregisterRenderer_:function(W){this.useVimio_||(this.childCache_.delete(W),this.markDirty())},
attached:function(){var W=this,P=this.getParentRenderer();if(P){var x,I,O;(I=(x=(O=P.polymerController)!=null?O:P).registerRenderer)==null||I.call(x,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var B,Y;(Y=(B=this.monitorScrollElement)!=null?B:this.hostElement)==null||Y.addEventListener("scroll",_.WM(this,this.onScroll))}_.Gr.addJob(function(){TdG(W.hostElement)},8);
x=new rRm(this.screenLayer||void 0);(P=fK(P))&&P.layerNode&&(x.parent=P.layerNode);P={};e2C(this.hostElement,(P.isRenderer=!0,P.layerNode=x,P[eK]=this.data,P))},
getParentRenderer:function(){for(var W=this.hostElement.parentNode,P,x;W&&((P=fK(W))==null||!P.isRenderer)&&!((x=W.polymerController)!=null?x:W).isRenderer_;)W=W.parentNode||W.host;return W},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.p("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.wo("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.p("debug_web_ve_data")&&this.data.trackingParams){var W="";try{W=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(x){_.G$(x)}if(W){var P=Y_S(W,1);P!==void 0&&(this.hostElement.dataset.veIndex=String(P));W=Y_S(W,2);
W!==void 0&&(this.hostElement.dataset.ve=String(W))}}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,_.p("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.ox(this.data.loggingDirectives.trackingParams)),this.visualElement=_.nt(_.YY(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var W=this.data.targetId;_.jri(_.Bv(),W,this.hostElement)}else tMl(_.Bv(),this.hostElement)},
onScroll:function(){var W=Date.now();W-this.lastHandledScroll_<50||(this.lastHandledScroll_=W,this.markDirty())},
markDirty:function(){_.p("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():LCU(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var W=this.getParentRenderer();if(W&&(W=fK(W))&&W.layerNode)return Hq(W.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.ju(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++)this.sendImpression(this.data.impressionEndpoints[W]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(W){W.clickTrackingParams&&delete W.clickTrackingParams;var P,x;(W==null?0:(P=W.commandMetadata)==null?0:(x=P.webCommandMetadata)==null?0:x.sendPost)?_.Iu(this.hostElement,[W,{impression:!0}]):_.OL(this.hostElement,[W],this.hostElement)},
logExplicitClick:function(W){var P=_.E_(this.getScreenLayer());if(P){var x,I=(x=W.polymerController)!=null?x:W;W=I.visualElement;I=I.trackingParams||I.clickTrackingParams;!W&&I&&(W=_.ox(I));W&&_.bB(P,W)}}}];var u$k={},MH=function(){return _.Yl.apply(this,arguments)||this};
_.A(MH,_.Yl);MH.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
MH.prototype.onPdgItemBehaviorClick=MH.prototype.onPdgItemBehaviorClick;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],MH.prototype,"data",void 0);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],MH.prototype,"onPdgItemBehaviorClick",null);MH=_.f([_.yL()],MH);u$k.YtPdgLiveChatItemBehavior=[MH.prototype,_.L.YtRendererBehavior];var dOZ;var sXc;_.$9={};_.$9.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var wb=function(){var W=TY.apply(this,arguments)||this;W.switchTemplateAtRegistration=!1;return W};
_.A(wb,TY);wb.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||IKW(this),_.D2d(this,"doRender"),this.doRender())};
wb.prototype.debounceRender=function(){this.templatingFn&&_.De(this,"doRender",this.doRender)};
wb.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.G$(Error("$g"))};
wb.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
wb=_.f([zuC()],wb);var vLP=wb;var mOM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,he={},nmt=(he[1]={filterString:null,isUnwrappable:null,unwrap:null},he[2]={filterString:function(W,P,x){return Oa(x)},
isUnwrappable:function(W){return W instanceof zI},
unwrap:function(W){return E0(W)}},he[3]={filterString:function(W,P,x){return mOM.test(x)?x:v6.toString()},
isUnwrappable:function(W){return S5(W)},
unwrap:function(W){return _.u5(W)}},he[4]={filterString:function(){return v6.toString()},
isUnwrappable:function(W){return W instanceof nz},
unwrap:function(W){return _.y4(W).toString()}},he[5]={filterString:function(W,P,x){return x},
isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W.toString()}},he[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(W){return W instanceof _.w9},
unwrap:function(W){return H6(W)}},he[8]={filterString:function(W,P,x){x=String(x).toLowerCase();
return tVx(W,P,x)?x:"zClosurez"},
isUnwrappable:null,unwrap:null},he[10]={filterString:null,isUnwrappable:null,unwrap:null},he);re[MS["default"]]=yaG;var Ko8=[];var twx=omx("A"),psS=omx("BUTTON"),dL=omx("DIV"),j0C=omx("LABEL");(function(){var W=f4;f4=function(P){W==null||W(P);vW(function(){for(var x=0;x<P.length;x++)ZcS(P[x])})}})();var Hv=function(){var W=_.Yl.apply(this,arguments)||this;W.hasUnmounted=!1;return W};
_.A(Hv,_.Yl);_.J=Hv.prototype;_.J.beforeRegister=function(){var W=this.doIdomRender;this.templatingFn?_.G$(Error("Zg")):(this.templatingFn=W,this.switchTemplateAtRegistration=!0,BGx(this))};
_.J.attached=function(){};
_.J.detached=function(){ZcS(this.hostElement)};
_.J.renderIdom=function(){throw Error("bh");};
_.J.doIdomRender=function(){var W=this;BLd(this.hostElement,function(){W.renderIdom()})};
Hv=_.f([_.yL()],Hv);var Vbl=[vLP.prototype,Hv.prototype];var tbm,pck=function(){return tbm!==void 0?tbm:tbm=document.createElement("template")};
document.head.appendChild(pck().content);var jXW;var QXP,Cji=function(){return QXP!==void 0?QXP:QXP=document.createElement("template")};
document.head.appendChild(Cji().content);var Asz;var zFw=document.head,Gwz=zFw.appendChild,ELl;if(Asz===void 0){var gLm=document.createElement("template");_.G(gLm,"\x3c!--css-build:shady--\x3e");gLm.content.insertBefore(Cji().content.cloneNode(!0),gLm.content.firstChild);Asz=gLm}ELl=Asz;Gwz.call(zFw,ELl.content);var DOb,Mbz=function(){return DOb!==void 0?DOb:DOb=document.createElement("template")};
document.head.appendChild(Mbz().content);var $Om;var wcW=document.head,hFZ=wcW.appendChild,Hql;if($Om===void 0){var eFz=document.createElement("template");_.G(eFz,"\x3c!--css-build:shady--\x3e");eFz.content.insertBefore(Mbz().content.cloneNode(!0),eFz.content.firstChild);$Om=eFz}Hql=$Om;hFZ.call(wcW,Hql.content);var csk=document.head,acW=csk.appendChild,bqz;if(jXW===void 0){var kwc=document.createElement("template");_.G(kwc,"\x3c!--css-build:shady--\x3e");kwc.content.insertBefore(pck().content.cloneNode(!0),kwc.content.firstChild);jXW=kwc}bqz=jXW;acW.call(csk,bqz.content);var UOw,Xcd=function(){return UOw!==void 0?UOw:UOw=document.createElement("template")};
document.head.appendChild(Xcd().content);var fcM;_.hF=new _.Lb("DARK_THEME_TOKEN");var OIG=new _.R("accessibilityProperties");var IOU=new _.R("layoutProperties");var JGC=new _.R("imageType");var NdP={};if("ytAttributedStringLinkHoverColor"in NdP)throw Error("eh`ytAttributedStringLinkHoverColor");(function(W,P){NdP[W]="value"in P&&"unit"in P?vmm(W,P):function(x){try{return P(x)}catch(I){throw Error("ch`"+W+"`"+I.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var lck=function(W){var P=this;this.holdTime=W===void 0?500:W;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(x){var I=new CustomEvent("LONG_PRESS"),O;(O=x.changedTouches[0].target)==null||O.dispatchEvent(I)};
this.ontouchstart=function(x){P.longPressTimeout=_.GS(_.Gr,function(){P.onlongpress(x);P.longPressOccurred=!0},P.holdTime)};
this.ontouchmove=function(){_.Gr.cancelJob(P.longPressTimeout);P.longPressTimeout=NaN;P.longPressOccurred=!1;P.moveOccurred=!0};
this.ontouchend=function(x){if(P.longPressTimeout&&!P.longPressOccurred&&!P.moveOccurred){var I;(I=x.changedTouches[0].target)==null||I.dispatchEvent(new Event("click"))}_.Gr.cancelJob(P.longPressTimeout);P.longPressTimeout=NaN;P.longPressOccurred=!1;P.moveOccurred=!1}};var aK8=function(W,P){lck.call(this,P);var x=this;this.callback=W;this.onlongpress=function(I){var O;(O=x.callback)==null||O.call(x,I)}};
_.A(aK8,lck);var bcR=function(W,P){var x=Object.assign({},P);W=_.n(new Map([["ontouchstart",W.ontouchstart],["ontouchend",W.ontouchend],["ontouchmove",W.ontouchmove]]));for(var I=W.next(),O={};!I.done;O={eventName$jscomp$87:void 0,eventHandler$jscomp$3:void 0},I=W.next()){var B=_.n(I.value);I=B.next().value;B=B.next().value;O.eventName$jscomp$87=I;O.eventHandler$jscomp$3=B;P[O.eventName$jscomp$87]=function(Y){return function(K){var Z;(Z=x[Y.eventName$jscomp$87])==null||Z.call(x,K);(0,Y.eventHandler$jscomp$3)(K)}}(O)}};_.qR=new _.Lb("COMMAND_HANDLER_TOKEN");var Vqx=new _.R("parallelCommand");var jjC=new _.R("performOnceCommand");var pRm=new _.R("serialCommand");var Qjd=void 0;var TdZ=function(){this.data=[]};
TdZ.prototype.push=function(W){this.data.push(W)};var J3={};_.YV(J3,void 0,"sgPmTd");_.YV(null,void 0,"jypsq");var dFG=new TdZ;var Mqx=[uti,d7p,soA,m7W,vW3,SUW,V8P,t8l];var PUm=new _.R("bracketTextDecorator");var wc=new _.R("highlightTextDecorator");_.eS=new _.Lb("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Rtt=function(){},rsc;
(rsc=window.requestIdleCallback)==null||rsc.bind(window);var qHA={calledOnce:!1,state:"visible"},FoC={calledOnce:!1,state:"hidden"};var Rnm=new _.Lb("ICON_RENDERER_TOKEN"),iqM=new _.Lb("ICON_WIZ_COMPONENT_TOKEN");_.Sy=_.kl(function(W){var P=W.icon;var x=W.active;var I=W.className;var O=W.style;var B=W.dataSelected;var Y=W.dataDisabled;var K=W.role;var Z=W.animateIcon;var d=W.themeOverride;var v=W.ariaHidden;var m=W.ariaExpanded;var t=W.ariaLabel;var C=W.id;var z=W.size;var D=W.iconFilter;return _.u(_.V,{cond:P,then:function(){var w=_.FY().resolve(iqM);return _.u(w,{icon:P,dataSelected:B,dataDisabled:Y,animateIcon:Z,themeOverride:d,ariaExpanded:m,id:C,active:x,size:z,role:K,className:I,ariaHidden:v,ariaLabel:t,
style:function(){return O!=null&&O()||z==null||!z()?O==null?void 0:O():"width: "+(z==null?void 0:z())+"px;height: "+((z==null?void 0:z())+"px;")},
iconFilter:D})}})},"b");
_.Sy.idomCompat=!0;var pQG=window.devicePixelRatio||1;var AGt=new Map([["yt_outline_bag_black_24","bag"]]);var ex=function(W){var P=this;this.margin=.1;this.whenInViewportWithMargin=W;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){P.requestScan()});
window.addEventListener("touchend",function(){P.requestScan()});
window.addEventListener("updateui",function(){P.requestScan()});
var x=new _.WO((0,_.mx)(this.requestScan,this),100);window.addEventListener("scroll",function(){x.fire()},!0);
window.addEventListener("resize",(0,_.mx)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){P.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.mx)(this.requestScan,this))};
ex.prototype.observe=function(W){this.observationTargets.includes(W)||this.observationTargets.push(W)};
ex.prototype.unobserve=function(W){this.observationTargets=this.observationTargets.filter(function(P){return P!==W})};
ex.prototype.requestScan=function(){var W=this;this.scanRequested||(vW(function(){RFd(W)}),this.scanRequested=!0)};
var RFd=function(W){var P=(1+W.margin)*(document.documentElement.clientHeight||window.innerHeight);W.observationTargets=W.observationTargets.filter(function(x){var I=x.getBoundingClientRect();(I=P>I.top&&!!I.height)&&W.whenInViewportWithMargin(x);return!I&&x.parentNode});
W.scanRequested=!1};
ex.prototype.disconnect=function(){this.observationTargets=[]};var FCb,LCc;FCb=_.n(_.YV(gqd(),void 0,"O3X2wd"));_.qdW=FCb.next().value;LCc=FCb.next().value;window.addEventListener("resize",function(){LCc(gqd())});var Wol={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},P0M=void 0,xXW=window.innerWidth,IKi=window.innerHeight;window.addEventListener("resize",function(){P0M=void 0});var OcA;if("IntersectionObserver"in window)OcA=$so();else{if(P0M===void 0){var Jaw;Jaw="matchMedia"in window?window.matchMedia(Wol.landscape+","+Wol.portrait).matches:void 0;P0M=Jaw!==void 0?Jaw:xXW>=930&&IKi>=550||xXW>=550&&IKi>=930}OcA=P0M?{observe:function(W){vW(function(){var P;(P=W.onViewportEntered)==null||P.call(W)})},
unobserve:function(){}}:new ex(function(W){vW(function(){var P;
(P=W.onViewportEntered)==null||P.call(W)})})}var DsG=OcA;var BGd=_.kl(function(W){var P=!1,x=_.fa(function(I){_.C4(function(){P=!0;I.onload=null})});
_.jj(function(){var I,O=(I=W.data)==null?void 0:I.call(W),B,Y=(B=W.getSrc)==null?void 0:B.call(W).cb,K;I=(K=W.config)==null?void 0:K.call(W);if(K=x.value)if(B=function(d,v){if(!P)return Y?Y(d,v):d},HIR(K,I),_.p("web_image_dont_reload_same_src")&&hCC(K,O,B))_.p("web_image_dont_reload_same_src_simulate_load")&&K.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var Z;wQS(K,O||null,B,I,(Z=W.lazy)==null?void 0:Z.call(W))}});
return _.u("img",{el:x})},"c");
BGd.idomCompat=!0;_.bq=_.kl(function(W){var P=function(){var x,I=W.data(),O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F,nm,pm,zR,Am,kW,$W,ao,e8;var iC={contentMode:(O=W.contentMode)==null?void 0:O.call(W),loadedClass:(B=W.loadedClass)==null?void 0:B.call(W),isPreloaded:(Y=W.isPreloaded)==null?void 0:Y.call(W),notifyOnLoaded:(K=W.notifyOnLoaded)==null?void 0:K.call(W),notifyOnUnloaded:(Z=W.notifyOnUnloaded)==null?void 0:Z.call(W),preferredThumbnail:(d=W.preferredThumbnail)==null?void 0:d.call(W),preserveHeight:(v=W.preserveHeight)==
null?void 0:v.call(W),preserveWidth:(m=W.preserveWidth)==null?void 0:m.call(W),objectPosition:(t=W.objectPosition)==null?void 0:t.call(W),targetWidth:(C=W.targetWidth)==null?void 0:C.call(W),targetHeight:(z=W.targetHeight)==null?void 0:z.call(W),shouldShowPlaceholder:(D=W.shouldShowPlaceholder)==null?void 0:D.call(W),useWidth:(w=W.useWidth)==null?void 0:w.call(W),alt:(a=W.alt)==null?void 0:a.call(W),className:(k=W.className)==null?void 0:k.call(W),onerror:W.onerror,onload:W.onload,style$:((T=W.style$)==
null?void 0:T.call(W))||((N=W.style)==null?void 0:N.call(W)),color:(Io=W.color)==null?void 0:Io.call(W),width:(F=W.width)==null?void 0:F.call(W),height:(nm=W.height)==null?void 0:nm.call(W),"aria-hidden$":(ao=(pm=W["aria-hidden$"])==null?void 0:pm.call(W))!=null?ao:(zR=W.ariaHidden)==null?void 0:zR.call(W),draggable:(Am=W.draggable)==null?void 0:Am.call(W),"data-disabled$":(e8=(kW=W["data-disabled$"])==null?void 0:kW.call(W))!=null?e8:($W=W.dataDisabled)==null?void 0:$W.call(W)};return aOA(I,iC,(x=
W.hideOn404)==null?void 0:x.call(W))};
return _.u(_.tQ,null,_.u(_.mk,{when:function(){var x;return((x=P())==null?void 0:x.type)==="image"}},function(){return _.u(BGd,{data:function(){return P().image},
getSrc:{cb:function(x,I){var O=P().image.sources,B=P().config.isPreloaded,Y=P().config.useWidth,K=P().config.targetWidth,Z=P().config.targetHeight,d=P().config.preferredThumbnail;return _.jAR(I,O,B,Y,K,Z,d)||""}},
config:function(){var x=P().config,I;for(I in x)x[I]===void 0&&delete x[I];return x},
lazy:W.renderLazy})}),_.u(_.mk,{when:function(){var x;
return((x=P())==null?void 0:x.type)==="icon"}},function(){return _.u(_.Sy,{icon:function(){return P().iconName},
role:function(){return P().config.role},
className:function(){return P().config.className},
style:function(){return P().config.style$+";width: "+(P().config.width+"px;height: ")+(P().config.height+"px;color: ")+(P().config.color+";")},
ariaLabel:function(){return P().config["aria-label$"]},
ariaHidden:function(){return P().config["aria-hidden$"]},
dataDisabled:function(){return P().config["data-disabled$"]}})}))},"d");
_.bq.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var nml=function(W){return function(P){return _.u(QPR,null,function(){var x=P.data(),I=_.zB(P.config);return _.u(ls,null,function(){return void W(x,I)})})}}(XQC),ky8=_.kl(function(W){var P=function(I){var O,B=_.U2(function(t){O=Ag(function(){for(var C=_.n(v()),z=C.next();!z.done;z=C.next()){z=fOW(z.value);
z=typeof z==="string"?document.createTextNode(z):z;if(!(z instanceof Node)){C=new _.mW("Part is not a node",z,typeof z);_.G$(C);break}t.appendChild(z)}})}),Y=Xo(function(){return nqx(I())},{isEqual:bI8}),K=_.a7(W.config),Z=function(){var t,C=Y();
return!((t=K())==null||!t.ariaLabel)||!(C.commandRuns&&C.commandRuns.length!==0||C.paragraphStyleRuns&&C.paragraphStyleRuns.length!==0)},d=Xo(K,{isEqual:lOx}),v=function(){var t=Ba7(Y(),d());
yGo(t,d());return Y().content?dsG(Y().content,t).parts:[]},m=!0;
_.jj(function(){Y();d();if(m)m=!1;else{var t=v();Promise.resolve().then(function(){var C=B.value;if(C){C.innerText="";var z;(z=O)==null||z();O=_.jL(C,function(){return _.u(NaR,{parts:t})})}})}});
return _.u("span",{el:B,class:function(){return Y()&&NGU(Y(),K())},
dir:function(){var t;return((t=K())==null?0:t.userInput)?"auto":void 0},
"aria-label":function(){var t;return Z()?(t=K())==null?void 0:t.ariaLabel:void 0},
role:function(){return Z()?"text":void 0}})},x;
return((x=W.config)==null?0:x.renderedFromFormattedString)?P(W.text):_.u(_.V,{cond:W.text,then:P})},"e");
ky8.idomCompat=!0;_.mQ=_.kl(function(W){var P=_.a7(W.text),x=TaC(W);W.renderedFromFormattedString!==void 0&&(x.renderedFromFormattedString=!0);return _.p("attr_string_reactive")?_.u(ky8,{text:P,config:x}):_.u(_.V,{cond:function(){var I;return P()&&((I=nqx(P()))==null?void 0:I.content)},
then:function(){return _.u(nml,{data:W.text,config:x})},
debugInstance:"Apcuac"})},"f");
_.mQ.idomCompat=!0;var iIm=function(W,P,x){P=P===void 0?"unknown":P;x=x===void 0?{}:x;_.mW.call(this,W+" ("+P+")",Object.assign({},{name:"YtWcwError",tagName:P},x));Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(iIm,_.mW);_.PnA=new WeakMap;_.WtS=!1;var Lqo,xNm,qIU;_.cv=Symbol("gh");_.Ng=Symbol("hh");Lqo=Symbol("ih");xNm=new Set(Object.getOwnPropertyNames(Element.prototype));qIU=Symbol("jh");var YHb=_.kl(function(W){return _.u("yt-attributed-string",{"aria-label":W.ariaLabel,hidden:W.hidden,id:W.id,class:W.className,"force-default-style":W.forceDefaultStyle},_.u(_.mQ,{text:W.data,ariaLabel:W.ariaLabel,ellipsisTruncate:W.ellipsisTruncate,isOverlay:W.isOverlay,linkInheritColor:W.linkInheritColor,noPreWrap:W.noPreWrap,noWrap:W.noWrap,userInput:W.userInput,noEndpoints:W.noEndpoints,headerRuns:W.headerRuns}))},"g");
_.p("web_wiz_attributed_string")&&_.lq(YHb,"yt-attributed-string",{props:{ariaHidden:_.cv,ariaLabel:_.cv,className:_.cv,ellipsisTruncate:_.cv,isOverlay:_.cv,linkInheritColor:_.cv,noEndpoints:_.cv,noStyleRuns:_.cv,noLinkColor:_.cv,noPreWrap:_.cv,noWrap:_.cv,skipOnClick:_.cv,userInput:_.cv,headerRuns:_.cv,id:_.cv,data:_.cv,hidden:_.cv,forceDefaultStyle:_.cv,text:_.Ng,stopPropagation:_.Ng,disableUpgrade:_.Ng,disable:_.Ng,slot:_.Ng}});var as=function(){return _.b.apply(this,arguments)||this};
_.A(as,_.b);as.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},XQC(this.data,this.config))};
_.f([_.h(Vbl),_.l("design:type",Object)],as.prototype,"ytIdomTemplatingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],as.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],as.prototype,"ariaLabel",void 0);_.f([_.c(),_.l("design:type",Boolean)],as.prototype,"disable",void 0);_.f([_.c(),_.l("design:type",Boolean)],as.prototype,"ellipsisTruncate",void 0);_.f([_.c(),_.l("design:type",Boolean)],as.prototype,"isOverlay",void 0);
_.f([_.c(),_.l("design:type",Boolean)],as.prototype,"linkInheritColor",void 0);_.f([_.c(),_.l("design:type",Boolean)],as.prototype,"noPreWrap",void 0);_.f([_.c(),_.l("design:type",Boolean)],as.prototype,"noWrap",void 0);_.f([_.c(),_.l("design:type",Boolean)],as.prototype,"userInput",void 0);_.f([_.c(),_.l("design:type",Boolean)],as.prototype,"noEndpoints",void 0);_.f([_.c(),_.l("design:type",Array)],as.prototype,"headerRuns",void 0);
as=_.f([_.jd({is:"yt-attributed-string",disableElementRegistration:!0})],as);
_.p("web_wiz_attributed_string")||_.X(as,"yt-attributed-string",function(){if(fcM===void 0){var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
W.content.insertBefore(Xcd().content.cloneNode(!0),W.content.firstChild);fcM=W}W=fcM;return W},{mode:2});var yaZ,Koz,ySt;yaZ=function(){this.firstThumbnailLoaded=!1};
_.Zck=function(){Koz||(Koz=new yaZ);return Koz};
ySt=function(W){var P=_.Zck();P.firstThumbnailLoaded||(P.firstThumbnailLoaded=!0,_.CK("ftl",W))};
yaZ.prototype.reset=function(){this.firstThumbnailLoaded=!1};var OZG=0,YYS=new WeakMap,Bt7=0,iq=new Set;var omd,SHb=function(){return omd!==void 0?omd:omd=document.createElement("template")};
document.head.appendChild(SHb().content);var uHd;var SYU,dNt,bc;_.qg=_.xW.caches;bc=function(){};
bc.prototype.open=function(W){return _.qg.open(dXd(W))};
bc.prototype.has=function(W){return _.qg.has(dXd(W))};
bc.prototype.delete=function(W){return _.qg.delete(dXd(W))};
bc.prototype.match=function(W,P){var x=this,I,O,B,Y,K,Z;return _.y(function(d){switch(d.nextAddress){case 1:return _.S(d,x.keys(),2);case 2:I=d.yieldResult,O=_.n(I),B=O.next();case 3:if(B.done){d.jumpTo(5);break}Y=B.value;return _.S(d,x.open(Y),6);case 6:return K=d.yieldResult,_.S(d,K.match(W,P),7);case 7:if(Z=d.yieldResult)return d.return(Z);B=O.next();d.jumpTo(3);break;case 5:return d.return()}})};
var skU=function(){};
_.A(skU,bc);var dXd=function(W){if(W.includes(":"))throw Error("mh`"+W);return W+":"+_.sy("CacheStorage get")};
skU.prototype.keys=function(){var W,P,x,I,O,B,Y,K,Z;return _.y(function(d){if(d.nextAddress==1)return W=[],P=_.sy("CacheStorage keys"),_.S(d,_.qg.keys(),2);x=d.yieldResult;I=_.n(x);for(O=I.next();!O.done;O=I.next())B=O.value,Y=_.o8C(B),K=Y.originalName,Z=Y.datasyncId,Z===P&&W.push(K);return d.return(W)})};var k9=function(){var W=_.b.apply(this,arguments)||this;W.objectURL=null;W.loadTime=Infinity;return W};
_.A(k9,_.b);_.J=k9.prototype;_.J.renderIdom=function(){ZZS(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&eC8(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.J.objectFitToContentMode=function(W){switch(W){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.J.logThumbnailFailureVe=function(){var W=_.td(197497);_.BK(_.YY(),W);var P=_.E_();P&&W&&P&&_.c7(P,[W])};
_.J.loadImageFromCacheIfExists=function(W){var P=this,x=W.target;(x==null?0:x.src)&&mNS(x.src).then(function(I){P.objectURL=_.V4(I).toString();P.setSrc(x,P.objectURL)}).catch(function(){})};
_.J.onError=function(W){var P=this;if(_.p("web_use_cache_for_image_fallback")){var x=W.target;x&&mNS(x.src).then(function(I){P.objectURL=_.V4(I).toString();P.setSrc(x,P.objectURL)}).catch(function(){_.p("kevlar_woffle_log_thumbnail_failure_ve")&&P.logThumbnailFailureVe();
_.p("kevlar_woffle_fallback_image")&&P.setSrc(x,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.J.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.J.setConfig=function(){var W=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(P){W.loadImageFromCacheIfExists(P);W.revokeObjectURL();KtC(W.hostElement)},
onerror:function(P){W.onError(P)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.p("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.J.setSrc=function(W,P){P&&(W.src=P)};
_.f([_.h(Vbl),_.l("design:type",Object)],k9.prototype,"ytIdomTemplatingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],k9.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],k9.prototype,"alt",void 0);_.f([_.c(),_.l("design:type",Boolean)],k9.prototype,"ftlEligible",void 0);_.f([_.c(),_.l("design:type",Number)],k9.prototype,"height",void 0);_.f([_.c(),_.l("design:type",Boolean)],k9.prototype,"notifyOnLoaded",void 0);
_.f([_.c(),_.l("design:type",Boolean)],k9.prototype,"notifyOnUnloaded",void 0);_.f([_.c(),_.l("design:type",String)],k9.prototype,"objectFit",void 0);_.f([_.c(),_.l("design:type",String)],k9.prototype,"objectPosition",void 0);_.f([_.c(),_.l("design:type",String)],k9.prototype,"preferredThumbnail",void 0);_.f([_.c(),_.l("design:type",Boolean)],k9.prototype,"preserveHeight",void 0);_.f([_.c(),_.l("design:type",Boolean)],k9.prototype,"preserveWidth",void 0);
_.f([_.c({value:!0}),_.l("design:type",Boolean)],k9.prototype,"useWidth",void 0);_.f([_.c({value:function(){return!_.wo("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.l("design:type",Boolean)],k9.prototype,"shouldRenderLazy",void 0);_.f([_.c(),_.l("design:type",Number)],k9.prototype,"width",void 0);k9=_.f([_.jd({is:"yt-image",disableElementRegistration:!0})],k9);
_.X(k9,"yt-image",function(){if(uHd===void 0){var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(SHb().content.cloneNode(!0),W.content.firstChild);
uHd=W}W=uHd;return W},{mode:2});var U3=function(){return _.b.apply(this,arguments)||this};
_.A(U3,_.b);U3.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var W=_.AF(this.data.onVisibleCommand);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],U3.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.$9.YtVisibilityBehavior),_.l("design:type",Object)],U3.prototype,"ytVisibilityBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],U3.prototype,"data",void 0);U3=_.f([_.jd({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],U3);
_.X(U3,"yt-bumper-user-edu-content-view-model",function(){if(sXc===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;dOZ===void 0&&(dOZ=document.createElement("template"));var I=dOZ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);sXc=W}W=sXc;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var sjP;var vmw,mXA=function(){if(vmw!==void 0)return vmw;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;sjP===void 0&&(sjP=document.createElement("template"));var I=sjP;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return vmw=W};var Vqd;_.XU={};Vqd=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"]);_.XU.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var W=this.getContext_();return W?W.getTaskManager():_.Gr},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var W=_.Lf(this.hostElement,"yt-get-context-provider",{});W.detail&&W.detail.contextProvider?this.cachedProviderNode_=W.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Vqd.has(this.hostElement.localName)},
getNetworkManager:function(){var W=this.getContext_();if(W)return W.getNetworkManager()}};var Cn7,tqM,jjp,pRM;_.f6=function(W){var P=tqM.get(W);if(P&&(P=P.pop()))return pRM++,P;jjp++;try{var x=document.createElement(W)}catch(I){throw new _.mW("ElementPool failed to create element",W,I.message);}return x};
Cn7=function(W){var P=W.is;if(P){var x=tqM.get(P);x||(x=[],tqM.set(P,x));var I=_.$$("ELEMENT_POOL_CONFIG")||{};x.length>=(I[P]!==void 0?I[P]:_.$$("ELEMENT_POOL_DEFAULT_CAP",0))||x.push(W)}else _.ge(new _.mW("Element pool should only handle custom elements:",W.nodeName))};
tqM=new Map;jjp=0;pRM=0;var Lt=new WeakMap,QkR=new WeakMap;var C0p;_.NH=function(W,P,x){x=x===void 0?_.Ds():x;this.JSC$11544_defaultPriority=W;this.signal=P;this.scheduler=x;this.nextJobDescriptor=0;this.JSC$11544_parkedJobs=[];this.scheduledJobs=new Map};
_.lc=function(W,P){if(P){var x=_.HK();W.signal&&!_.ev(x,W.signal)?(x.addListener(W.signal,function(){W.processSignal()}),W.JSC$11544_parkedJobs.push({job:P,
priority:void 0})):Qjm(W,P)}};
C0p=function(W,P){if(P!==W.JSC$11544_defaultPriority){W.JSC$11544_defaultPriority=P;for(var x=_.n(W.scheduledJobs.values()),I=x.next();!I.done;I=x.next())I=I.value,W.scheduler.cancelJob(I.jobId),I.jobId=W.scheduler.addJob(I.jobWrapper,P)}};
_.NH.prototype.flushJobs=function(){C0p(this,10);this.processSignal()};
_.NH.prototype.cancel=function(){for(var W=_.n(this.scheduledJobs),P=W.next();!P.done;P=W.next()){var x=_.n(P.value);P=x.next().value;x=x.next().value;this.scheduler.cancelJob(x.jobId);this.scheduledJobs.delete(P)}this.JSC$11544_parkedJobs=[]};
_.NH.prototype.processSignal=function(){for(var W=_.n(this.JSC$11544_parkedJobs),P=W.next();!P.done;P=W.next())P=P.value,Qjm(this,P.job,P.priority);this.JSC$11544_parkedJobs=[]};
var Qjm=function(W,P,x){x=x||W.JSC$11544_defaultPriority;if(x===10)Rx(P);else{var I=W.nextJobDescriptor++,O=function(){P();W.scheduledJobs.delete(I)},B=W.scheduler.addJob(O,x);
W.scheduledJobs.set(I,{jobWrapper:O,jobId:B,priority:x})}};_.ql(E8R);var g88={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};Cso({beforeVisit:function(W){if(rY.has(W.type)){var P;(P=W.props).idomKey!=null||(P.idomKey=W.type)}else W.type.TAG_NAME&&(lw=W.type.TAG_NAME)},
afterRender:function(W,P){var x;lw=(x=P==null?void 0:P.type)!=null?x:""},
didPatch:function(){lw=""}});var Aai;_.TC={};Aai={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.TC.YtRendererstamperBehavior=[_.XU.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 W in this.stampDom){var P=this.stampDom[W];P&&P.id&&this.addReactiveSchema({type:"observe",method:{methodName:thx(P.id),args:[{type:"wildcard",path:W}]}})}else{(W=(this.constructor.generatedFrom||this).observers)||(W=[]);for(P in this.stampDom){var x=this.stampDom[P];x&&x.id&&W.push(thx(x.id)+"("+P+".*)")}this.constructor.generatedFrom.observers=W}},
addStampDomObserverFns_:function(){for(var W in this.stampDom){var P=this.stampDom[W];P.id?(this[thx(P.id)]=this.rendererStamperObserver_.bind(this,W,P.id),this.hasDataPath_[W]=!1):(P=new _.mW("Bad rendererstamper config",this.is+":"+W),_.G$(P))}},
rendererStamperObserver_:function(W,P,x){if(x.path==W){if(x.value===void 0&&!this.hasDataPath_[W])return;this.hasDataPath_[W]=x.value!==void 0}this.rendererStamperApplyChangeRecord_(W,P,x)},
rendererStamperApplyChangeRecord_:function(W,P,x){var I=this.renderJobsMap_[P],O=null;W==x.path?(x=x.value,_.xi(x)||(x=x===void 0||x===null?[]:[x]),W=this.stampDom[W],W.mapping&&(O=this.stampDomArray_.bind(this,x,P,W.mapping,W.reuseComponents,W.events,W.stamperStableList)),I&&I.cancel(),x=W.usePageScheduler?this.getTaskManager():void 0,I||W.initialRenderPriority==void 0)?W.renderPriority==void 0||I||(I=new _.NH(W.renderPriority,W.waitForSignal,x),this.renderJobsMap_[P]=I):(I=new _.NH(W.initialRenderPriority,
W.waitForSignal,x),this.renderJobsMap_[P]=I,O=function(B,Y){B();C0p(Y,10)}.bind(this,O,I)):O=W+".splices"==x.path?this.stampDomArraySplices_.bind(this,W,P,x.value):this.forwardRendererStamperChanges_.bind(this,W,P,x);
I?_.lc(I,O):O()},
forwardRendererStamperChanges_:function(W,P,x){var I=x.path.slice(W.length+1),O=this.getStampContainer_(P),B=I.indexOf("."),Y=I.substring(0,B),K=!1,Z=0,d=parseInt(Y,0);if(Y[0]=="#"){K=parseInt(Y.substring(1),0);d=this.get(W);var v=this.get([W,Y]);d[K]==v?Z=K:Z=d.indexOf(v);K=!0}else isNaN(d)||(Z=d,K=!0);K&&(I=I.substring(Y.length+1),B=I.indexOf("."));Y=_.VS(O).children[Z];var m;if(O=(m=Y==null?void 0:Y.polymerController)!=null?m:Y)I="data"+I.slice(B),typeof O.notifyPath!=="function"?_.ge(new _.mW("notifyPath missing",
this.is+": "+W+", "+P)):x.value?O.notifyPath(I,x.value):O.notifyPath(I)},
stampDomArraySplices_:function(W,P,x){if(x&&x.indexSplices){var I=this.getStampContainer_(P);if(I){for(var O=_.VS(I),B=jkt(this.stampDom[W].reuseComponents),Y=x.indexSplices.length,K=0;K<Y;K++){for(var Z=x.indexSplices[K],d=O.children[Z.index],v=Z.removed.length;v>0;v--)d&&d.parentElement&&(_.VS(d.parentElement).removeChild(d),B&&Cn7(d),d=O.children[Z.index]);v=this.stampDom[W].mapping;for(var m=Z.index+Z.addedCount,t=document.createDocumentFragment(),C=B,z=Z.index;z<m;z++){var D=Z.object[z],w=Vh8(v,
D);if(w){var a=v[w];D=D[w];w=this.getComponentName_(a,D);var k=d?Lt.has(d):!1;C&&d&&d.is==w&&k?(w=d,this.telemetry_.reuse++,d=d.nextElementSibling):C&&d&&k?(w=this.createComponent_(a,D,B),k=_.VS(d).nextElementSibling,O.insertBefore(w,k),z4U(this.is,O,d,B),d=k):(C=!1,w=this.createComponent_(a,D,B),t.appendChild(w));this.deferRenderStamperBinding_(w,a,D)}else a=new _.mW("Unimplemented type",W,P,I.tagName,Object.keys(D)[0]),_.G$(a)}O.insertBefore(t,d)}this.flushRenderStamperComponentBindings_();this.stampDom[W].events&&
_.Lf(this.hostElement,"yt-rendererstamper-finished",{container:I})}else W=new _.mW("Container object not found",P,this.hostElement?this.hostElement.is:""),_.G$(W)}},
stampDomArray_:function(W,P,x,I,O,B){var Y=this.getStampContainer_(P);if(Y)if(P=_.VS(Y),I=jkt(I),W){var K=0,Z=0,d;if(B=B===void 0?_.wo("STAMPER_STABLE_LIST",!1):B||!1)for(d=P.firstElementChild;d&&!Lt.has(d)&&W.length>Z;){B=W[Z];var v=Vh8(x,B);if(v){if(this.getComponentName_(x[v],B[v])!=d.is){var m=this.createComponent_(x[v],B[v],I),t=_.VS(d).nextElementSibling;t?P.insertBefore(m,t):P.appendChild(m);z4U(this.is,P,d,I);d=m}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(d,x[v],B[v]);K++;
Z++;d=_.VS(d).nextElementSibling}else Z++}Gf8(this.is,P,K,I);K=d;if(W.length>Z){B=document.createDocumentFragment();for(v=W.length;Z<v;Z++)if(m=W[Z],t=Vh8(x,m))d=this.createComponent_(x[t],m[t],I),this.deferRenderStamperBinding_(d,x[t],m[t]),B.appendChild(d);K&&_.VS(K).parentNode&&d&&!Lt.has(d)?P.insertBefore(B,K):P.appendChild(B)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();O&&_.Lf(this.hostElement,"yt-rendererstamper-finished",{container:Y})}else Gf8(this.is,P,0,
I);else W=new _.mW("Container object not found",P,this.hostElement?this.hostElement.is:""),_.G$(W)},
getStampContainer_:function(W){return this.$&&this.$[W]||_.g(this.hostElement).querySelector("#"+W)},
getComponentName_:function(W,P){return typeof W==="string"?W:W.matcher?W.matcher.call(this,P):W.component},
createComponent_:function(W,P,x){W=this.getComponentName_(W,P);try{var I=iw.has(W)||rY.has(W);if(x&&!I){var O=_.f6(W);try{_.qa(O)}catch(B){x="Failed to clear styles for "+W+".",B.message&&(x+=" Original error: "+B.message),_.ge(new _.mW(x))}}else O=document.createElement(W)}catch(B){return O="YtRendererStamperBehavior failed to create "+W+".",B.message&&(O+=" Original description: "+B.message),B.message="YtRendererStamperBehavior failed to create element",_.Dw(B,O),Aai.hasOwnProperty(W)?_.ge(B):_.G$(B),
document.createElement("SPAN")}this.telemetry_.create++;return O},
deferRenderStamperBinding_:function(W,P,x){this.deferredBindingTasks_.push({component:W,typeOrConfig:P,data:x})},
flushRenderStamperComponentBindings_:function(){for(var W=0,P=this.deferredBindingTasks_.length;W<P;W++){var x=this.deferredBindingTasks_[W];if(!x)break;var I=void 0,O=void 0,B=void 0,Y=void 0,K=x.component,Z=x.typeOrConfig;x=x.data;var d=(Y=K.polymerController)!=null?Y:K;Y=K.loggingStatus;try{Y&&(Y.isRendererStamper=!0);if(typeof Z!=="string"){for(B in Z.attributes)Z.attributes[B]===!0?K.setAttribute(B,""):Z.attributes[B]===!1?K.removeAttribute(B):K.setAttribute(B,Z.attributes[B]);for(O in Z.params)d[O]=
Z.params[O],K!==d&&Sd(K.localName,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(I in Z.properties){var v=Z.properties[I];if(v){var m=p_S(v);d[I]=this.get(m);K!==d&&Sd(K.localName,I,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(I==="on-tap"||I==="on-click"){var t=this.get(m);K.addEventListener("click",t);QkR.set(K,{property:I,listener:{type:"element",eventName:"click",handler:t}})}}else{var C=new _.mW("Undefined property binding",I);_.G$(C)}}}if(Z.classListBinding){var z=p_S(Z.classListBinding),
D=z?this[z]:null;if(D)for(I=0;I<D.length;I++)_.iS(K,D[I],!0)}d.data=x}finally{Y&&(Y.isRendererStamper=!1)}if(I=Lt.get(K))K.hidden=!1,Lt.delete(K),_.Gr.cancelJob(I)}this.deferredBindingTasks_.length=0}}];_.rb={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(W){for(var P=_.bs.getInstance(),x=_.n(Object.keys(W)),I=x.next();!I.done;I=x.next()){var O=I.value;I=W[O];if(this&&this[I]){var B=P.actionRoutingMap.get(O);B||(B=new Map,P.actionRoutingMap.set(O,B));P.registerActionHandler(this,O,this[I].bind(this),B)}else O=Error("id"),O.params=I,_.hQ(O)}},
unregisterActionMap:function(W){_.UA(_.bs.getInstance(),W,this)}}]};var xC=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var PF;var IP=new Map;var X_R=window.matchMedia("(forced-colors: active)").matches;var ztp;var Gvz;var Ttm=new _.Lb("LOTTIE_LOADER_TOKEN");_.ql(rSt);_.lq(_.kl(function(W){return _.u("ytd-lottie-player",{id:W.id,hidden:W.hidden,class:W.className,"aria-label":W.ariaLabel,style:"display: block;"},_.u(_.Jd,{data:W.data,animationName:function(){var P;return((P=W.data().animationConfig)==null?void 0:P.name)||""},
animationRef:function(){return W.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.cv,
id:_.cv,hidden:_.cv,className:_.cv,ariaLabel:_.cv}});var ic=function(){var W=_.b.apply(this,arguments)||this;W.animationRef={};return W};
_.A(ic,_.b);_.J=ic.prototype;
_.J.handlePropertyChange=function(){var W=this.animatedIcon,P=this.active,x=this.isDarkTheme;if(W){var I=this.previousActive!==P;this.previousActive=P;this.animationRef.lottieEl?I&&this.toggleAnimation(P,W.totalFrames):P?this.initializeAnimationAsToggled(W.lottiePlayerProps,W.totalFrames):this.initializeAnimationAsUntoggled(W.lottiePlayerProps);W.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=W.type;this.lottiePlayerProps=this.computeLottiePlayerProps(W,x)}};
_.J.computeLottiePlayerProps=function(W,P){var x=this.deepCloneLottiePlayerProps(W);P?(P=W.nameDarkTheme,W=W.pathDarkTheme):(P=W.name,W=W.path);x.animationConfig.name=P;(P=IP.get(W))?x.animationConfig.animationData=P:x.animationConfig.path=W;return x};
_.J.initializeAnimationAsToggled=function(W,P){W.animationConfig.initialSegment=[P-1,P]};
_.J.initializeAnimationAsUntoggled=function(W){W.animationConfig.initialSegment=void 0};
_.J.toggleAnimation=function(W,P){if(W){var x;(x=this.animationRef.lottieEl)==null||x.playSegments([0,P],!0)}else{var I;(I=this.animationRef.lottieEl)==null||I.playSegments([0,1],!0)}};
_.J.deepCloneLottiePlayerProps=function(W){var P=Object.assign({},W.lottiePlayerProps.animationConfig);W=Object.assign({},W.lottiePlayerProps);W.animationConfig=P;return W};
ic.prototype.handlePropertyChange=ic.prototype.handlePropertyChange;_.f([_.c(),_.l("design:type",Object)],ic.prototype,"animatedIcon",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],ic.prototype,"active",void 0);_.f([_.c(),_.l("design:type",Boolean)],ic.prototype,"isDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],ic.prototype,"animatedIconType",void 0);_.f([_.c(),_.l("design:type",Boolean)],ic.prototype,"previousActive",void 0);
_.f([_.c(),_.l("design:type",Object)],ic.prototype,"lottiePlayerProps",void 0);_.f([_.c(),_.l("design:type",Object)],ic.prototype,"animationRef",void 0);_.f([_.OZ("animatedIcon","active","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ic.prototype,"handlePropertyChange",null);ic=_.f([_.jd({is:"yt-animated-icon",disableElementRegistration:!0})],ic);
_.X(ic,"yt-animated-icon",function(){if(Gvz===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;ztp===void 0&&(ztp=document.createElement("template"));var I=ztp;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Gvz=W}W=Gvz;return W},{mode:2});var Emp;var gmi;var Ftt=_.kl(function(W){var P=_.Nl(),x=GO(function(){return{value:null}});
_.C4(function(){var O;(O=x.value)==null||O.cancel()});
var I=_.Sj(W.data,{equals:function(O,B){return O.iconName===B.iconName&&O.iconStyle===B.iconStyle&&O.iconSize===B.iconSize&&O.iconSetName===B.iconSetName&&O.iconSelected===B.iconSelected}},"aoiXAb");
_.jj(function(){var O,B=(O=W.options)==null?void 0:O.call(W);R47(P,x,I(),B)});
return _.u("span",{class:"yt-icon-shape",el:P})},"i");
Ftt.idomCompat=!0;var H1o=["youtube_fill","youtube_outline"];var DXi=new _.Au({type:"iconset",value:void 0}),Rs=function(){var W=_.b.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.iconName="";W.iconsetName="yt-icons";W.iconset=null;W.missingIconSet=!1;W.iconType=null;W.iconShapeDataSignal=_.YV(void 0,void 0,"RQ9kUb");W.renderingOptionsSignal=_.YV({iconWidth:"100%",iconHeight:"100%",iconFilter:W.iconFilter},void 0,"qtx8Ef");W.wizHasRendered=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(Rs,_.b);_.J=Rs.prototype;_.J.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.J.handlePropertyChange=function(){var W=this,P,x,I,O,B,Y,K,Z,d,v;return _.y(function(m){switch(m.nextAddress){case 1:if(P=!W.icon&&!W.iconName||!W.isAttached)return m.return();x=W;I=x.icon;O=x.size;B=x.defaultToFilled;Y=x.active;K=x.targetContainer;W.toggleContainerClass(K);_.p("kevlar_use_wil_icons")&&I&&(Z=As8(I),W.iconType=Z.length?Z[1]:null);if(I){m.jumpTo(2);break}W.iconsetName="";W.iconName="";return _.S(m,W.renderIcon(K,I),3);case 3:return m.return();case 2:d=W.computeIcon(I);v=As8(d);v.length&&
(W.iconsetName=v[0],W.iconName=v[1]);if(!_.p("kevlar_use_wil_icons")){m.jumpTo(4);break}return _.S(m,W.getIconShapeData(),5);case 5:W.iconShapeData=m.yieldResult;case 4:if(W.shouldRenderIconShape(K)){m.jumpTo(6);break}return _.S(m,W.determineIconSet(d,Y,B,O,K),6);case 6:return _.S(m,W.renderIcon(K,I),0)}})};
_.J.toggleContainerClass=function(W){W?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.J.computeIcon=function(W){return!_.p("default_to_innertube_icon")||W.indexOf(":")>0?W:_.PW(W)};
_.J.determineIconSet=function(W,P,x,I){var O=this;return _.y(function(B){return B.nextAddress==1?_.p("kevlar_system_icons")||_.$$("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.$$("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.S(B,O.switchToYtSysIconset(W,P,x,I),3):B.jumpTo(2):B.nextAddress!=2?B.return():_.S(B,O.useYtSysIconsetForMissingIcons(W,P,x,I),0)})};
_.J.switchToYtSysIconset=function(W,P,x,I){var O=this,B,Y,K,Z,d,v,m;return _.y(function(t){switch(t.nextAddress){case 1:if(!W||O.iconsetName!=="yt-icons"&&O.iconsetName!=="yt-sys-icons"){t.jumpTo(0);break}B=As8(W);Y=B[1];Y=_.Hqt(Y);_.p("enable_polymer_icons_replace_underscores_dash")&&Y.includes("_filled")&&(Y=Y.replace(/_filled/g,"-filled"));return _.S(t,WW(Y,!0),3);case 3:return K=t.yieldResult,_.S(t,WW(Y,!1),4);case 4:if((Z=t.yieldResult)||P&&K)O.iconsetName="yt-sys-icons";O.iconName=O.getIconName(Y,
P,x,Z,K);if(I===24){t.jumpTo(0);break}d="yt-sys-icons"+I+":"+O.iconName;return _.S(t,WW(d,!1,!0),6);case 6:return v=t.yieldResult,_.S(t,WW(d,!0,!0),7);case 7:m=t.yieldResult;O.iconName=O.getIconName(Y,P,x,v,m);if(!P&&v||P&&m)O.iconsetName="yt-sys-icons"+I;_.Kl(t)}})};
_.J.getIconName=function(W,P,x,I,O){W.includes("-filled")&&(W=W.replace("-filled",""));return O&&(P||x)?W+"-filled":W};
_.J.useYtSysIconsetForMissingIcons=function(W,P,x,I){var O=this,B,Y;return _.y(function(K){if(K.nextAddress==1)return O.iconsetName!=="yt-icons"?K.jumpTo(0):_.S(K,WW(O.iconName,!1,!1,!0),3);if(K.nextAddress!=4)return B=K.yieldResult,_.S(K,WW(O.iconName,!1),4);Y=K.yieldResult;if(B||!Y)return K.jumpTo(0);O.iconsetName="yt-sys-icons";return _.S(K,O.switchToYtSysIconset(W,P,x,I),0)})};
_.J.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.J.getIconManager=function(){return _.y(function(W){try{return W.return(_.FY().resolve(_.xY))}catch(P){return W.return(new Promise(function(x){_.HK().parkOrScheduleJob(function(){x(_.FY().resolve(_.xY))},2,"ci")}))}})};
_.J.getIconShapeData=function(){var W=this,P,x,I,O,B,Y;return _.y(function(K){if(K.nextAddress==1){if(!W.iconType)return K.return(void 0);P=W.iconType.toLowerCase();x=P.endsWith("_filled")||P.endsWith("-filled");return _.S(K,W.getIconManager(),2)}I=K.yieldResult;O=W.active||W.defaultToFilled||x?"youtube_fill":"youtube_outline";B={iconName:P,iconStyle:O,iconSize:W.size,iconSetName:W.iconsetName};Y=!!I.resolveIcon(B);Y||(B.iconSize=void 0,Y=!!I.resolveIcon(B));!Y&&x&&(B.iconName=P.substring(0,P.length-
7),B.iconSize=W.size,Y=!!I.resolveIcon(B),Y||(B.iconSize=void 0,Y=!!I.resolveIcon(B)));Y||(B.iconStyle=void 0,Y=!!I.resolveIcon(B));Y||_.ge(new _.mW("Icon not supported",{iconName:B.iconName,iconStyle:B.iconStyle,iconSize:B.iconSize,iconType:P}));return K.return(Y?B:void 0)})};
_.J.shouldRenderIconShape=function(W){if(!_.p("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;W=this.getContainer(W);return!fPx(W,this.icon)};
_.J.renderIcon=function(W,P){var x=this,I,O,B,Y,K,Z,d,v;return _.y(function(m){switch(m.nextAddress){case 1:if(P&&x.icon!==P)return m.return();I=x.getContainer(W);O=fPx(I,x.icon);if(x.shouldRenderIconShape(W)&&x.iconType)return x.applyIconShape(O,I),m.return();x.removeIconShape();if(!I)return m.return();x.iconName===""&&x.iconset&&I&&(x.removeStaticIcon(x.iconset,I),O&&x.removeAnimatedIcon(I));if(x.iconName===""&&x.iconset||!x.iconsetName||!DXi)return m.return();x.iconset=DXi.byKey(x.iconsetName);
if(!x.iconset)return x.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.WM(x,x.onIconsetAdded)),m.return();x.missingIconSet&&(x.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.WM(x,x.onIconsetAdded)));Y=(B=O||x.isAnimatedIcon?UNt(x.icon):void 0)&&!B.lazyLoad;Z=B&&((K=B)==null?void 0:K.lazyLoad)&&(B.lottiePlayerProps.animationConfig.animationData?!0:IP.get(x.isDarkTheme?B.pathDarkTheme:B.path)?!0:!1);if(Y||Z)return x.applyAnimatedIcon(I,B,x.iconset),m.return();if(Z||
(d=B)==null||!d.lazyLoad){m.jumpTo(2);break}v=lPo(B,x.isDarkTheme);x.applyStaticIcon(x.iconset,I,x.iconName,W,O);return _.S(m,v,3);case 3:return _.S(m,x.renderIcon(x.targetContainer,x.icon),4);case 4:return m.return();case 2:x.applyStaticIcon(x.iconset,I,x.iconName,W,O),_.Kl(m)}})};
_.J.getContainer=function(W){var P,x=(P=rxW(this.hostElement))==null?void 0:P.host;P=!!x&&!!x.polymerController;if(!W||P)return W?this.getTargetContainer(W,x):this.hostElement};
_.J.getTargetContainer=function(W,P){var x=_.g(P).querySelector("#"+W);x||(W=new _.mW("yt-icon container missing",P.is,W),_.G$(W));return x};
_.J.applyStaticIcon=function(W,P,x,I,O){O&&this.removeAnimatedIcon(P);this.removeIconShape();O=O&&!!this.iconType&&!!this.iconShapeData&&_.p("kevlar_use_wil_icons");try{O?this.applyIconShape(!1,P):W.applyIcon(P,x)}catch(B){this.handleError(B,I,P)}};
_.J.applyIconShape=function(W,P){this.iconset&&P&&(this.removeStaticIcon(this.iconset,P),W&&this.removeAnimatedIcon(P));W={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var x=_.n(this.iconShapeDataSignal);P=x.next().value;x=x.next().value;var I=_.n(this.renderingOptionsSignal),O=I.next().value;I=I.next().value;x(this.iconShapeData);I(W);if(!this.wizHasRendered)for(this.wizHasRendered=!0,W=_.n(qYR(P,O)).next().value;W.firstChild;)_.g(this.hostElement).appendChild(W.firstChild)};
_.J.removeIconShape=function(){if(_.p("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.J.removeStaticIcon=function(W,P){W.removeIcon(P)};
_.J.applyAnimatedIcon=function(W,P,x){this.removeStaticIcon(x,W);this.removeIconShape();var I;x=this.animatedIconElement&&((I=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:I.type)===P.type;if(this.animatedIconElement&&x){this.animatedIconElement.polymerController.animatedIcon=P;var O;((O=this.animatedIconElement)==null?void 0:O.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(W),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=P,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.p("kevlar_use_wil_icons")?W.insertBefore(this.animatedIconElement,W.childNodes[0]):(W=_.g(W),W.insertBefore(this.animatedIconElement,W.childNodes[0]))};
_.J.removeAnimatedIcon=function(W){_.p("kevlar_use_wil_icons")?this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement):(W=_.g(W),this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.J.handleError=function(W,P,x){_.Dw(W,this.iconName,P,x);P=fPx(x,this.icon);var I=!1;window.location.href.includes("JpymaW6Lh2w")?I=!0:x._svgIcon&&(x=(x=x._svgIcon.parentNode)?x.tagName:"unknown",_.Dw(W,x),x==="YT-ICON"&&W.name==="NotFoundError"?I=!0:W.name==="NotFoundError"&&P&&(I=!0));I?_.ge(W):_.G$(W)};
_.N1.Object.defineProperties(Rs,{template:{configurable:!0,enumerable:!0,get:function(){if(gmi===void 0){var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;
Emp===void 0&&(Emp=document.createElement("template"));var I=Emp;x.call(P,I.content.cloneNode(!0),W.content.firstChild);gmi=W}W=gmi;return W}}});
Rs.prototype.handlePropertyChange=Rs.prototype.handlePropertyChange;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Rs.prototype,"actionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",String)],Rs.prototype,"icon",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Rs.prototype,"active",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Rs.prototype,"defaultToFilled",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Rs.prototype,"isAnimatedIcon",void 0);
_.f([_.c({value:24}),_.l("design:type",Number)],Rs.prototype,"size",void 0);_.f([_.c({value:""}),_.l("design:type",String)],Rs.prototype,"targetContainer",void 0);_.f([_.c(),_.l("design:type",Object)],Rs.prototype,"animatedIconElement",void 0);_.f([_.c(),_.l("design:type",Object)],Rs.prototype,"isDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Rs.prototype,"ariaHidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Rs.prototype,"ariaLabel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Rs.prototype,"role",void 0);_.f([_.c(),_.l("design:type",String)],Rs.prototype,"style",void 0);_.f([_.c(),_.l("design:type",String)],Rs.prototype,"iconFilter",void 0);_.f([_.OZ("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],Rs.prototype,"handlePropertyChange",null);
Rs=_.f([_.jd({is:"yt-icon",noInjection:!0})],Rs);var Mqd;var $X3=function(){var W=document.body,P=W.appendChild;if(Mqd===void 0){var x=document.createElement("template");_.G(x,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
Mqd=x}x=Mqd;P.call(W,x.content)};
document.body?$X3():window.addEventListener("DOMContentLoaded",$X3);var wRd,htw=function(){return wRd!==void 0?wRd:wRd=document.createElement("template")};
document.head.appendChild(htw().content);var HcM,eti=function(){return HcM!==void 0?HcM:HcM=document.createElement("template")};
document.head.appendChild(eti().content);var caM;_.jK=new _.Lb("KEY_MANAGER_TOKEN");var IkW={duration:1E3,easing:"ease",fill:"forwards"};_.ql(xrm);var aKz=_.nE(_.YC);_.ql(_.YC);_.vF=_.kl(function(W){var P=_.fa(W.ref),x=W.aTagConfig?W.aTagConfig:_.Sj(function(){var B,Y,K,Z,d,v;var m=(v=_.AF((Z=W.command)==null?void 0:Z.call(W)))!=null?v:(d=W.command)==null?void 0:d.call(W);return _.Gm({innertubeCommand:m,skipOnClick:(B=W.skipOnClick)==null?void 0:B.call(W),stopPropagation:(Y=W.dangerousStopPropagation)==null?void 0:Y.call(W),defaultTarget:(K=W.target)==null?void 0:K.call(W)})||{}},void 0,"gnrRge");
_.jj(function(){P.value._data=x()._data;P.value.params=x().params});
var I=_.yB(function(B){var Y,K;return void((K=(Y=x()).onpointerdown)==null?void 0:K.call(Y,B))}),O=_.yB(function(B){var Y,K;
return void((K=(Y=x()).onclick)==null?void 0:K.call(Y,B))});
return _.u("a",{el:P,href:function(){return x().href$},
rel:function(){return x().rel$},
class:function(){var B,Y;return(Y=x().className)!=null?Y:(B=W.className)==null?void 0:B.call(W)},
style:function(){var B;if((B=W.style)==null?0:B.call(W))return W.style();var Y;return((Y=W.disabled)==null?0:Y.call(W))?"pointer-events:none":""},
"aria-haspopup":function(){return!!x()["aria-haspopup$"]},
"force-new-state":KE(function(){return x()["force-new-state$"]}),
title:KE(function(){var B,Y;return(Y=x().title$)!=null?Y:(B=W.title)==null?void 0:B.call(W)}),
role:KE(function(){return x().role$}),
target:KE(function(){return x().target$}),
dir:KE(function(){var B;return((B=W.dir)==null?0:B.call(W))?W.dir():x().dir}),
tabindex:function(){var B;return x().tabindex$?Number(x().tabindex$):(B=W.tabIndex)==null?void 0:B.call(W)},
"aria-hidden":function(){var B,Y;return(Y=x()["aria-hidden$"])!=null?Y:(B=W.ariaHidden)==null?void 0:B.call(W)},
"aria-label":function(){var B,Y;return(Y=x()["aria-label$"])!=null?Y:(B=W.ariaLabel)==null?void 0:B.call(W)},
"aria-current":W.ariaCurrent,"aria-labelledby":W.ariaLabelledby,"aria-describedby":W.ariaDescribedby,"aria-selected":W.ariaSelected,"tab-identifier":W.tabIdentifier,"on:pointerdown":I,"on:click":O},W.children)},"j");var bcP=function(W,P){this.fillAnimation=new Animation(B87(W),document.timeline);this.strokeAnimation=new Animation(n2U(P),document.timeline)};
bcP.prototype.play=function(){var W,P;(P=(W=this.fillAnimation).play)==null||P.call(W);var x,I;(I=(x=this.strokeAnimation).play)==null||I.call(x)};
bcP.prototype.cancel=function(){var W,P;(P=(W=this.fillAnimation).cancel)==null||P.call(W);var x,I;(I=(x=this.strokeAnimation).cancel)==null||I.call(x)};_.s4=_.kl(function(W){var P=W.model;var x=W.pointerDownEvent;var I=W.pointerUpEvent;var O=W.pointerLeaveEvent;W=_.fa();var B=_.oP({"border-radius":function(){return P().borderRadius}}),Y=_.fa(),K=_.fa(),Z=_.n(_.Zh(function(){return(I==null?0:I())||(O==null?0:O())?!1:!(x==null||!x())||!1})),d=Z.next().value,v=Z.next().value,m=void 0,t=function(){!m&&K.value&&Y.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(m=new bcP(K.value,Y.value));
var k;(k=m)==null||k.play()},C=function(){var k;
(k=m)==null||k.cancel()},z=function(){var k;
(k=m)==null||k.cancel()};
_.jj(function(){(I==null?0:I())&&t()});
_.jj(function(){(x==null?0:x())&&C()});
_.jj(function(){(O==null?0:O())&&z()});
Z=_.yB(function(){t();v(!1)});
var D=_.yB(function(){C();v(!0)}),w=_.yB(function(){z();
v(!1)});
_.C4(function(){if(m){var k;(k=m)==null||k.cancel();m=void 0}});
var a={};d=_.O4("yt-spec-touch-feedback-shape",function(){return ykS(P().color)},(a["yt-spec-touch-feedback-shape--focused"]=function(){return!!P().focused&&!P().disabled},a["yt-spec-touch-feedback-shape--circular"]=function(){return!!P().circular},a["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!P().isExtended},a["yt-spec-touch-feedback-shape--down"]=d,a["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!P().triggerEvents},a));
return _.u("yt-touch-feedback-shape",{style:_.oP({"border-radius":"inherit"})},_.u("div",{el:W,class:d,style:_.oP({"margin-top":function(){return P().customTopExtend?"-"+P().customTopExtend+"px":void 0}}),
"on:mousedown":D,"on:mouseup":Z,"on:pointerleave":w,"on:touchstart":D,"on:touchend":Z,"aria-hidden":!0},_.u("div",{class:"yt-spec-touch-feedback-shape__stroke",style:B,el:Y}),_.u("div",{class:"yt-spec-touch-feedback-shape__fill",style:B,el:K})))},"k");
_.s4.idomCompat=!0;var kvd={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 FU=_.sU();FU=FU.toLowerCase();if(_.ZA(FU,"android")){var UXm=FU.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);UXm&&parseFloat(UXm[1])<100||FU.match("("+Object.keys(kvd).join("|")+")")};var XRP=_.kl(function(W){return _.u(_.V,{cond:W.aTagConfig,then:function(P){return _.u(_.vF,{aTagConfig:P,disabled:W.disabled,className:W.className,style:W.style,title:W.title,ariaLabel:W.ariaLabel,ariaCurrent:function(){var x,I;return((x=W.toggleable)==null?void 0:x.call(W))&&((I=W.toggled)==null?void 0:I.call(W))}},W.children)},
else:function(){return _.u("button",{"on:click":_.yB(function(P){var x;return(x=W.onClick)==null?void 0:x.call(W,P)}),
class:W.className,title:W.title,style:W.style,disabled:W.disabled,"aria-pressed":function(){var P,x;return((P=W.toggleable)==null?0:P.call(W))?!((x=W.toggled)==null||!x.call(W)):void 0},
"aria-label":W.ariaLabel,"aria-disabled":W.visiblyDisabled,"aria-hidden":W.ariaHidden,tabindex:W.tabIndex},W.children)}})},"l"),NGc=_.kl(function(W){var P=W.data;
var x=W.hasIconLeading;var I=W.hasIconLeadingTrailing;var O=W.hasIconTrailing;var B=W.iconButton;var Y=W.iconClassName;var K=W.secondaryIconClassName;var Z=W.icon;var d=W.secondaryIcon;var v=W.textContentClassName;return _.u(qH,{className:"",style:"display: inherit; justify-content: center"},_.u(_.V,{cond:function(){return Z&&(x()||I()||(B==null?void 0:B()))},
then:function(){return _.u(qH,null,_.u("div",{class:Y,"aria-hidden":"true"},Z==null?void 0:Z()))}}),_.u(_.V,{cond:function(){return(P().buttonText||P().animatedTextProps||P().formattedButtonText)&&!(B==null?0:B())},
then:function(){return _.u(qH,null,_.u(fKb,{className:v,iconPosition:function(){return P().iconPosition},
text:function(){return P().buttonText},
oneOffCustomTextWrap:function(){return P().oneOffCustomTextWrap},
formattedButtonText:function(){return P().formattedButtonText},
animatedTextProps:function(){return P().animatedTextProps}}))}}),_.u(_.V,{cond:O,
then:function(){return _.u(qH,null,_.u("div",{class:Y},Z==null?void 0:Z()))}}),_.u(_.V,{cond:I,
then:function(){return _.u(qH,null,_.u("div",{class:K},d==null?void 0:d()))}}),_.u(_.V,{cond:function(){return!P().disabled&&!0},
then:function(){return _.u(_.s4,{model:function(){return{color:SuC(P())}}})}}))},"m"),fKb=_.kl(function(W){var P=function(){var x,I;
return((x=W.iconPosition)==null?void 0:x.call(W))==="icon-with-label"||((I=W.oneOffCustomTextWrap)==null?void 0:I.call(W))};
return _.u("div",{class:W.className,"aria-hidden":function(){var x,I,O;return((x=W.ariaHidden)==null?void 0:x.call(W))&&(!((I=W.animatedTextProps)==null||!I.call(W))||!((O=W.formattedButtonText)==null||!O.call(W)))}},_.u(_.tQ,null,_.u(_.mk,{when:function(){var x;
return(x=W.animatedTextProps)==null?void 0:x.call(W)}},function(){return _.u(aKz,{numberText:function(){return W.animatedTextProps().numberText},
numberValue:function(){return W.animatedTextProps().numberValue},
heightPx:function(){return W.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return W.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return W.animatedTextProps().shouldAnimate},
forceRollUp:function(){return W.animatedTextProps().forceRollUp}})}),_.u(_.mk,{when:function(){var x;
return(x=W.formattedButtonText)==null?void 0:x.call(W)}},function(){return _.u(_.mQ,{text:function(){return Object.assign({},W.formattedButtonText(),{lineBreakMode:P()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":W.formattedButtonText().lineBreakMode,
alignment:P()?"TEXT_ALIGNMENT_CENTER":W.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!P()}})}),_.u(_.mk,{when:function(){var x,I;
return((x=W.iconPosition)==null?void 0:x.call(W))==="icon-with-label"&&((I=W.text)==null?void 0:I.call(W))}},function(){return _.u(_.mQ,{text:function(){return{content:W.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.u(_.Va,null,function(){return W.text})))},"n"),lKk=_.kl(function(W){return _.u(_.V,{cond:W.hasLabel,
then:function(){var P;return _.u("label",{class:W.className},W.children,(P=W.textContent)==null?void 0:P.call(W))},
else:function(){return W.children}})},"o"),qH=_.kl(function(W){return W.children},"p");var mxG=TF("stamper-context");_.ql(E28);var PO=_.kl(function(W){var P=W.data;var x=W.icon;var I=W.iconName;var O=W.secondaryIcon;var B=W.secondaryIconName;var Y=W.focusedOverride;Akx();var K=KEt(P),Z=K.size,d=K.style;W=K.disabled;var v=K.onTap,m=K.alignByText,t=K.aTagConfig,C=K.customColors,z=K.segmentedPosition,D=K.toggled,w=K.toggleable,a=K.accessibilityLabel,k=K.onToggle,T=K.iconPosition,N=K.oneOffCustomTextWrap,Io=K.disableTextEllipsis,F=K.disableBackdropFilter,nm=K.tooltipText,pm=K.ariaHidden,zR=K.tabIndex,Am=K.buttonText,kW=K.formattedButtonText,
$W=K.animatedTextProps,ao=o2G(P,x,O,I,B,Y),e8=ao.type;x=ao.shouldFocus;I=ao.hasIconLeading;O=ao.hasIconTrailing;var iC=ao.hasIconLeadingTrailing,hw=ao.hasIconOnly;B=ao.hasIconOnly40;var dk=ao.hasIconWithLabel;Y=ao.iconButton;var Oc=ao.visiblyDisabled;K=ao.overrideSmallSizeIcon;var Bm=ao.iconToRender;ao=ao.secondaryIconToRender;var GA={},KM={};return _.u(lKk,{className:_.O4("yt-spec-button-shape-with-label",(GA["yt-spec-button-shape-with-label--is-overlay"]=function(){return d()==="overlay"||d()===
"overlay-dark"},GA)),
hasLabel:dk,textContent:function(){return _.u(fKb,{text:Am,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:N,iconPosition:T,formattedButtonText:kW,animatedTextProps:$W})}},_.u(XRP,{aTagConfig:t,
className:_.O4("yt-spec-button-shape-next",function(){return drx(e8())},function(){return Oc()?void 0:s0S(d())},function(){return v2o(Z())},(KM["yt-spec-button-shape-next--disabled"]=Oc,KM["yt-spec-button-shape-next--focused"]=x,KM["yt-spec-button-shape-next--icon-trailing"]=O,KM["yt-spec-button-shape-next--icon-leading"]=I,KM["yt-spec-button-shape-next--icon-leading-trailing"]=iC,KM["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return iC()&&!(Am()||kW())},KM["yt-spec-button-shape-next--icon-button"]=
function(){return hw()||dk()},KM["yt-spec-button-shape-next--icon-only-default"]=B,KM["yt-spec-button-shape-next--align-by-text"]=m,KM["yt-spec-button-shape-next--segmented-start"]=function(){return z()==="start"},KM["yt-spec-button-shape-next--segmented-end"]=function(){return z()==="end"},KM["yt-spec-button-shape-next--override-small-size-icon"]=K,KM["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=N,KM["yt-spec-button-shape-next--disable-text-ellipsis"]=Io,KM["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!F()&&uRS()},KM)),
style:function(){return Vwx(C()).style},
onClick:function(PZ){v==null||v(PZ);w()&&(k==null||k(PZ))},
disabled:W,ariaLabel:a,toggleable:w,toggled:D,title:function(){var PZ;return(PZ=nm())!=null?PZ:""},
visiblyDisabled:Oc,ariaHidden:pm,tabIndex:zR},_.u(NGc,{data:P,hasIconLeading:I,hasIconLeadingTrailing:iC,hasIconTrailing:O,iconButton:Y,icon:Bm,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:ao})))},"q");
PO.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var TGl=_.kl(function(W){var P=W.data;var x=W.id;var I=W.hidden;var O=W.className;var B=W.icon;var Y=W.secondaryIcon;var K=W.iconName;var Z=W.secondaryIconName;W=_.n(_.YV(!1,void 0,"ikxyhf"));var d=W.next().value,v=W.next().value,m=function(){var C=_.FY().resolve(_.Rl(_.jK));C&&v(C.isKeyBoardInUse())},t=function(){v(!1)};
W=_.fa(function(C){if(_.FY().resolve(_.Rl(_.jK)))return C.addEventListener("focusin",m),C.addEventListener("focusout",t),function(){C.removeEventListener("focusin",m);C.removeEventListener("focusout",t)}});
return _.u("yt-button-shape",{el:W,id:x,class:O,hidden:I},_.u(_.V,{cond:P,then:function(){return _.u(PO,{data:P,icon:B,secondaryIcon:Y,iconName:K,secondaryIconName:Z,focusedOverride:d})}}))},"r");
_.p("web_wiz_button_shape")&&_.lq(TGl,"yt-button-shape",{props:{data:_.cv,id:_.cv,hidden:_.cv,className:_.cv,icon:_.Ng,secondaryIcon:_.Ng,iconName:_.cv,secondaryIconName:_.cv},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var L6=function(){var W=_.b.apply(this,arguments)||this;W.keyboardFocused=!1;return W};
_.A(L6,_.b);L6.prototype.onFocus=function(){var W=_.FY().resolve(_.Rl(_.jK));W&&(this.keyboardFocused=W.isKeyBoardInUse())};
L6.prototype.onBlur=function(){this.keyboardFocused=!1};
L6.prototype.renderIdom=function(){var W=this;if(this.data){var P=uh(this.data,!!this.iconName),x=mrG(this.data);this.data.focused=this.keyboardFocused;Q0R(this.data,function(){var I;VH("yt-icon",{icon:W.iconName,active:(I=W.data)==null?void 0:I.toggled,size:P,style:"width: "+P+"px; height: "+P+"px;",iconFilter:x},b_)},function(){var I;
VH("yt-icon",{icon:W.secondaryIconName,active:(I=W.data)==null?void 0:I.toggled,size:P,style:"width: "+P+"px; height: "+P+"px;",iconFilter:x},b_)});
_.Lf(this.hostElement,"yt-renderidom-finished")}};
_.N1.Object.defineProperties(L6,{template:{configurable:!0,enumerable:!0,get:function(){if(caM===void 0){var W=document.createElement("template");_.G(W,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(eti().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(htw().content.cloneNode(!0),W.content.firstChild);caM=W}W=caM;return W}}});
L6.prototype.onBlur=L6.prototype.onBlur;L6.prototype.onFocus=L6.prototype.onFocus;_.f([_.h(Vbl),_.l("design:type",Object)],L6.prototype,"ytIdomTemplatingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],L6.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],L6.prototype,"iconName",void 0);_.f([_.c(),_.l("design:type",String)],L6.prototype,"secondaryIconName",void 0);_.f([_.c(),_.l("design:type",Object)],L6.prototype,"keyboardFocused",void 0);
_.f([_.I7("focusin"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L6.prototype,"onFocus",null);_.f([_.I7("focusout"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L6.prototype,"onBlur",null);L6=_.f([_.jd({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.p("web_wiz_button_shape")})],L6);_.lq(_.kl(function(W){function P(){x().seconds&&B(rcW({seconds:Number(x().seconds)-Date.now()/1E3}))}
var x=W.targetTimestamp;W=W.className;var I=_.n(_.YV("",void 0,"U1Q8Ae")),O=I.next().value,B=I.next().value;_.Qa(function(){P();var Y=setInterval(function(){P()},1E3);
_.C4(function(){clearInterval(Y)})});
return _.u("yt-countdown",{class:_.O4("ytCountDownHost",W)},_.u("div",null,O))},"s"),"yt-countdown",{props:{targetTimestamp:_.cv,
className:_.Ng}});_.cq=_.kl(function(W){var P=W.data;var x=W.className;var I=W.style;var O=W.useOutlinedIcon;var B=W.buttonOverrides;var Y=W.animatedTextProps;var K=W.onClick;var Z=_.fa(function(w){return function(){tMl(_.Bv(),w)}}),d=function(){return P().iconName},v,m=(v=_.FY().resolve(_.Rl(_.hF)))==null?void 0:v(),t=function(){var w=P();
var a=B==null?void 0:B(),k=Y==null?void 0:Y();if(w){var T=Mwt(w.type);var N=!!w.title||!!w.titleFormatted;var Io=!(!w.iconName&&!w.iconImage);N=Io&&!N?"icon-only":Io?w.iconTrailing||w.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;N==="icon-only-40"&&(T="text");var F,nm=(F=a==null?void 0:a.disabled)!=null?F:w.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||w.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";F=Object;Io=F.assign;var pm=w.title,zR=w.titleFormatted;k=k&&k.numberText&&
!isNaN(Number(k.numberValue))?k:void 0;var Am=w.accessibilityText,kW=Drd(w.style),$W=$rx(w.state),ao=wsm(w.buttonSize),e8=g2G(w,Z,nm,K);nm=nm&&!w.onDisabledTap;var iC=_.Gm({elementsCommand:w.onTap,forceNewState:!0});iC=E2(iC)?iC:void 0;var hw=w.customFontColor,dk=w.customBackgroundColor;var Oc=w.customBorderColor;var Bm=w.customDarkThemeFontColor,GA=w.customDarkThemeBackgroundColor,KM=w.customDarkThemeBorderColor;hw=m&&Bm?Bm:hw;dk=m&&GA?GA:dk;Oc=m&&KM?KM:Oc;Oc={color:hw?_.Qy(hw):void 0,backgroundColor:dk?
_.Qy(dk):void 0,borderColor:Oc?_.Qy(Oc):void 0};w=Io.call(F,{},{buttonText:pm,formattedButtonText:zR,animatedTextProps:k,accessibilityLabel:Am,style:kW,type:T,state:$W,size:ao,iconPosition:N,onTap:e8,disabled:nm,aTagConfig:iC,customColors:Oc,tooltipText:w.tooltip},a)}else w={style:"mono",type:"text",state:"active",size:"M"};w.focused=D();return w},C=function(){return uh(t(),!!P().iconName)};
W=_.n(_.YV(!1,void 0,"JjUrEe"));v=W.next().value;var z=W.next().value,D=v;W=_.yB(function(){var w=_.FY().resolve(_.Rl(_.jK));w&&z(w.isKeyBoardInUse());return!1});
v=_.yB(function(){z(!1);return!1});
_.jj(function(){var w,a=_.Q(P==null?void 0:(w=P())==null?void 0:w.onVisible,_.Ct);a&&_.zm(a,{disableClickTracking:!0})});
_.AQ(function(){Z.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var w=P().targetId;w&&_.jri(_.Bv(),w,Z.value)});
return _.u("button-view-model",{el:Z,class:_.O4("yt-spec-button-view-model",x),"on:focusin":W,"on:focusout":v},_.u(_.V,{cond:function(){return P().iconImage?{sources:[P().iconImage]}:void 0},
then:function(w){return _.u(PO,{data:t,icon:function(){return _.u(_.bq,{data:w,alt:"",targetWidth:C,targetHeight:C,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.u(PO,{data:t,icon:function(){return _.u(_.Sy,{icon:d,active:function(){return(O==null?0:O())?!1:t().toggled},
animateIcon:function(){var w;return!!(I==null?0:(w=I())==null?0:w.animateIcon)},
size:C})}})}}))},"t");
_.cq.idomCompat={callbacks:{onClick:!0}};_.lq(_.kl(function(W){return _.u("yt-button-view-model",{id:W.id,class:_.O4(W.scopingClassName,W.classes),icon:function(){var P;return(P=W.icon)==null?void 0:P.call(W)},
"dialog-dismiss":function(){var P;return((P=W.dialogDismiss)==null?0:P.call(W))?"":void 0}},_.u(_.cq,{data:function(){var P;
return(P=W.data)==null?void 0:P.call(W)},
className:function(){var P;return(P=W.className)==null?void 0:P.call(W)},
style:function(){var P;return(P=W.style)==null?void 0:P.call(W)},
useOutlinedIcon:function(){var P;return(P=W.useOutlinedIcon)==null?void 0:P.call(W)},
buttonOverrides:function(){var P;return(P=W.buttonOverrides)==null?void 0:P.call(W)},
animatedTextProps:function(){var P;return(P=W.animatedTextProps)==null?void 0:P.call(W)},
onClick:function(P){var x;return(x=W.onClick)==null?void 0:x.call(W,P)}}))},"u"),"yt-button-view-model",{props:{data:_.cv,
className:_.cv,style:_.cv,useOutlinedIcon:_.cv,buttonOverrides:_.cv,animatedTextProps:_.cv,onClick:_.Ng,scopingClassName:_.cv,id:_.cv,icon:_.cv,dialogDismiss:_.cv,classes:_.cv}});var WU=function(){var W=_.b.apply(this,arguments)||this;W.isGoalActive=!0;return W};
_.A(WU,_.b);WU.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
WU.prototype.progressBarChanged=function(){var W=_.g(this.hostElement).querySelector("#progress-bar-progress"),P,x,I,O=(I=Number((P=this.creatorGoalState)==null?void 0:P.currentGoalCount)/Number((x=this.creatorGoalState)==null?void 0:x.totalGoalCount)*100)!=null?I:0,B;W.style.width=((B=Math.min(O,100))!=null?B:0)+"%"};
WU.prototype.goalStateChanged=function(){var W;this.isGoalActive=((W=this.creatorGoalState)==null?void 0:W.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var P;W={"--yt-progress-bar-color":Wot((P=this.creatorGoalState)==null?void 0:P.progressBarColor)};_.qa(this.hostElement,W)};
WU.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.N1.Object.defineProperties(WU.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var W;return this.isGoalActive&&!((W=this.creatorGoalState)==null||!W.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.endTimestampMs){var P;W=Number((P=this.creatorGoalState)==null?void 0:P.endTimestampMs)/1E3;return{seconds:String(W)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.themedTargetImage){var P;W=_.Q((P=this.creatorGoalState)==null?void 0:P.themedTargetImage,TxM);return this.isAppDarkTheme()?W==null?void 0:W.imageDark:W==null?void 0:W.imageLight}}}});
_.N1.Object.defineProperties(WU,{template:{configurable:!0,enumerable:!0,get:function(){return mXA()}}});
WU.prototype.goalStateChanged=WU.prototype.goalStateChanged;WU.prototype.progressBarChanged=WU.prototype.progressBarChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],WU.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);
_.f([_.c({selectorArgs:["data.creatorGoalEntityKey"],selector:function(W,P){return _.Jb(W.entities,"creatorGoalEntity",P)}}),
_.l("design:type",Object)],WU.prototype,"creatorGoalState",void 0);_.f([_.c(),_.l("design:type",Object)],WU.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],WU.prototype,"isGoalActive",void 0);_.f([_.H("creatorGoalState","isGoalActive"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],WU.prototype,"shouldShowCountdown",null);_.f([_.H("creatorGoalState"),_.l("design:type",Object),_.l("design:paramtypes",[])],WU.prototype,"endTimestamp",null);
_.f([_.H("creatorGoalState"),_.l("design:type",Object),_.l("design:paramtypes",[])],WU.prototype,"targetIconThemedImage",null);_.f([_.OZ("creatorGoalState.currentGoalCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WU.prototype,"progressBarChanged",null);_.f([_.OZ("creatorGoalState.creatorGoalState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WU.prototype,"goalStateChanged",null);
WU=_.f([_.jd({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],WU);_.X(WU,"yt-creator-goal-progress-flow-view-model",function(){return mXA()},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var raz;var ick;var PU=function(){return _.b.apply(this,arguments)||this};
_.A(PU,_.b);PU.prototype.attached=function(){var W,P,x;if(this==null?0:(W=this.data)==null?0:(P=W.pdgPurchasedBumperLoggingDirectives)==null?0:(x=P.loggingDirectives)==null?0:x.trackingParams){var I,O,B;ejU(this==null?void 0:(I=this.data)==null?void 0:(O=I.pdgPurchasedBumperLoggingDirectives)==null?void 0:(B=O.loggingDirectives)==null?void 0:B.trackingParams)}};
PU.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],PU.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],PU.prototype,"data",void 0);PU=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],PU);
_.X(PU,"yt-live-chat-item-bumper-view-model",function(){if(ick===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;raz===void 0&&(raz=document.createElement("template"));var I=raz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ick=W}W=ick;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Rtl;var Fop;_.U4=function(W,P){this.data=W;this.actions=P;this.data=W;this.actions=P};
_.wL=function(){};_.xX={};_.xX.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(W,P){ckG(this.hostElement,W,P)},
getNavigationEndpointPopupAction:function(W){return akS(W,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(W,P){bnW(this.hostElement,W,P,this.openPopupConfig)}};var Rj8=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.IM={};
_.IM.YtEndpointBehavior=[_.xX.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.$$("openPopupConfig");(this.useClickHandler=_.wo("useClickHandler",!1))?this.hostElement.addEventListener("click",LL(this,this.onEndpointClick_)):(AC(this.hostElement,"tap",LL(this,this.onEndpointTap_)),AC(this.hostElement,"touchend",LL(this,this.onEndpointTouchEnd_)));AC(this.hostElement,"touchstart",LL(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
LL(this,this.onEndpointTapStart_))},
onEndpointClick_:function(W){Xs7(this.hostElement,W,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(W){var P=this.hostElement,x=this.openPopupConfig,I=this.disableCommandHandlerOverride;I=I===void 0?!1:I;var O=k2U(W);if(O){O.href&&z1(O.href);var B=W.detail;var Y=B.sourceEvent;B=B.preventer;Y=Y.button!==void 0?Y.button===0&&!pE(Y):B?!pE(B):!0;O.data&&Y&&UrU(P,O,W,x,I)}},
onEndpointTouchEnd_:function(W){pE(W)||k2U(W)&&W.preventDefault()},
onEndpointTapStart_:function(W){rkG(W)}}];var FEd="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),LES=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var qH3={};qH3.YtPlaintextBehavior=[_.tu,{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(W){W.preventDefault();W=W.clipboardData.getData("text/plain");document.execCommand("insertText",!1,W)},
preventRichTextFormatting_:function(W){_.u9&&(W=W.detail.keyboardEvent,W.stopImmediatePropagation(),W.preventDefault())}}];var LoP;var Wqp;var ON=function(){var W=_.b.apply(this,arguments)||this;W.ignoreShadyDom=!1;W.hasChange_=!1;W.hasSetTitle_=!1;W.useIOObserverForVisibilityLogging_=_.p("kevlar_use_vimio_behavior")&&_.$$("INNERTUBE_CLIENT_NAME")==="WEB";W.ytFormattedStringObserverHandlerKeys_=void 0;return W};
_.A(ON,_.b);_.J=ON.prototype;_.J.created=function(){this.useIOObserverForVisibilityLogging_=_.p("kevlar_use_vimio_behavior")&&_.$$("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.J.ready=function(){_.$$("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_()};
_.J.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.J.detached=function(){this.unobserveIOObservers_()};
_.J.clearContents_=function(){for(var W=this.getRoot(),P=W.lastChild;P&&P.tagName!=="STYLE";){try{W.removeChild(P)}catch(x){break}P=W.lastChild}};
_.J.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var W=_.n(this.ytFormattedStringObserverHandlerKeys_),P=W.next();!P.done;P=W.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(P.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.J.resetForAttributedString=function(){var W=this.getRoot();!W.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),W.appendChild(this.ytAttributedStringElementRef))};
_.J.resetForFormattedString=function(){var W=this.getRoot(),P=W.querySelector("yt-attributed-string");P&&(this.ytAttributedStringElementRef=W.removeChild(P))};
_.J.textChanged=function(){this.textChanged_(this.text)};
_.J.textChanged_=function(W){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!W||!W.runs&&!W.simpleText;if(_.p("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var P=this.hostElement.firstChild;P&&P.nodeName==="FONT";){var x=P;P=P.nextSibling;this.hostElement.removeChild(x)}P=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
x=W.simpleText;var I;!x&&((I=W.runs)==null?void 0:I.length)===1&&this.isSimpleString_(W.runs[0])&&(x=W.runs[0].text);x!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.$$("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(x!==void 0){try{P.textContent=x}catch(O){}P.textContent||(this.isEmpty=!0)}else W=W.runs,x!==void 0&&(W=[{text:x}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),W&&this.updateText_(W),
P.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.J.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)};
_.J.computeAriaLabel_=function(W){return W};
_.J.computeEllipsisTruncateStyling=function(W,P){return W&&!P};
_.J.computeUseAttributedString=function(W){return _.p("web_replace_formatted_with_attributed_string")&&sjR(W)&&!this.disableAttributedString&&!this.enableContentEditable};
_.J.setNodeStyle_=function(W,P){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.p("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?P.removeAttribute("dir"):P.setAttribute("dir","auto");P.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");P.style.color="";var x=null;this.noStyles||(W.bold&&(P.classList.add("bold"),x="bold"),W.deemphasize&&(P.classList.add("deemphasize"),x="deemphasize"),W.italics&&P.classList.add("italic"),
W.strikethrough&&P.classList.add("strikethrough"),W.errorUnderline&&(P.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),W.bracket&&P.classList.add("bracket"),W.textColor&&(P.style.color=_.j9(W.textColor)));x!==P.getAttribute("style-target")&&(x?P.setAttribute("style-target",x):P.removeAttribute("style-target"))};
_.J.setUpVisibilityLogging_=function(W,P){var x=this;this.setNodeTrackingParams_(W,P);var I;((I=P.data)==null?0:I.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(W=this.ytRendererBehavior.visibilityObserver.observe(P,function(O){var B=x.ytRendererBehavior.getVisibilityLogger();B&&B.reportShown(O)},this.ytRendererBehavior.visibilityOptionVisible_),P=this.ytRendererBehavior.visibilityObserver.observe(P,function(O){var B=x.ytRendererBehavior.getVisibilityLogger();
B&&B.reportHidden(O)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(W),this.ytFormattedStringObserverHandlerKeys_.push(P))};
_.J.setNodeTrackingParams_=function(W,P){P.data||(P.data={});if((W=W.loggingDirectives?W.loggingDirectives.trackingParams:null)||P.data.trackingParams)P.data.trackingParams=W};
_.J.computeHasLinkOnly_=function(W){return!(!W||W.length!==1||this.noEndpoints||!W[0].navigationEndpoint)};
_.J.getRoot=function(){var W=this.buildScopeDomOptions();return this.enableContentEditable?_.g(_.g(this.hostElement,W).querySelector("[contenteditable]")):_.g(this.hostElement,W)};
_.J.fixContenteditableScope=function(){var W=function(P){P&&(P.nodeType===1&&P.classList&&(P.classList.add("style-scope"),P.classList.add("yt-formatted-string")),P.childNodes&&P.childNodes.forEach(function(x){W(x)}))};
W(this.getRoot())};
_.J.updateText_=function(W){for(var P=W.length,x=this.getRoot(),I=x.firstChild;I&&I.nodeName==="STYLE";)I=I.nextSibling;for(var O=0;O<P&&I;){var B=W[O],Y=_.p("remove_cr_char")&&B.text?B.text.replace("\r",""):B.text;if(this.isSimpleString_(B)&&!this.useMixedDirectionFormattedStrings)if(I.nodeName==="#text"){I.textContent!=Y&&(I.textContent=Y);O++;I=I.nextSibling;continue}else break;if(_.Q(B,jS))break;else if(!this.noEndpoints&&B.navigationEndpoint){if(I.nodeName!=="A")break;this.setDataOnAnchor_(I,
B.navigationEndpoint)}else if(I.nodeName!=="SPAN")break;this.setNodeStyle_(B,I);this.setUpVisibilityLogging_(B,I);I.textContent!=Y&&(I.textContent=Y);O++;I=I.nextSibling}if(I)for(B=x.lastChild,I=O?I.previousSibling:null;B&&B!=I;){try{x.removeChild(B)}catch(K){break}B=x.lastChild}O!==P&&this.addTextNodes_(W,O)};
_.J.addTextNodes_=function(W,P){for(var x=document.createDocumentFragment(),I=W.length;P<I;P++){var O=W[P],B=_.p("remove_cr_char")&&O.text?O.text.replace("\r",""):O.text;if(this.isSimpleString_(O)&&!this.useMixedDirectionFormattedStrings)x.appendChild(document.createTextNode(B));else{var Y=_.Q(O,jS);if(Y){if(Y.image){var K=document.createElement("img");Y.isCustomEmoji||K.classList.add("small-emoji");K.classList.add("emoji");Y.isCustomEmoji&&(K.dataset.emojiId=Y.emojiId);K.src=_.Tm(Y.image.thumbnails,
this.emojiSize);(O=this.get("image.accessibility.accessibilityData.label",Y))?K.alt=O:Y.shortcuts&&Y.shortcuts.length>0?K.alt=Y.shortcuts[0]:Y.emojiId&&(K.alt=Y.emojiId);x.appendChild(K);this.hasEmoji=!0}}else!this.noEndpoints&&O.navigationEndpoint?(K=document.createElement("a"),K.classList.add("yt-simple-endpoint"),K.setAttribute("spellcheck","false"),this.setDataOnAnchor_(K,O.navigationEndpoint)):K=document.createElement("span"),this.setNodeStyle_(O,K),this.setUpVisibilityLogging_(O,K),K.appendChild(document.createTextNode(B)),
x.appendChild(K)}}this.getRoot().appendChild(x)};
_.J.isSimpleString_=function(W){return(this.noEndpoints||!W.navigationEndpoint)&&!_.Q(W,jS)&&(this.noStyles||!(W.bold||W.deemphasize||W.italics||W.strikethrough||W.errorUnderline||W.bracket||W.textColor))&&!W.loggingDirectives};
_.J.getRawText=function(){return _.kz(this.text)};
_.J.getFirstRunText=function(){var W;if(((W=this.text)==null?0:W.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.J.setFirstRunText=function(W){var P;((P=this.text)==null?0:P.runs)&&this.text.runs[0]&&(this.text.runs[0].text=W,this.textChanged_(this.text))};
_.J.setDataOnAnchor_=function(W,P){var x=this;!_.p("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(P)||this.isSignalServiceEndpoint_(P)?(W.onclick=this.serviceEndpointHandler_(P),AH(W,"#")):hVo({text:this.text,command:P},function(){Tcm(W,P,x.target)})};
_.J.isServiceEndpoint_=function(W){var P;return!((P=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null||!P.sendPost)};
_.J.isSignalServiceEndpoint_=function(W){return!!_.Q(W,_.Y6)};
_.J.serviceEndpointHandler_=function(W){var P=this;return function(x){_.Iu(P.hostElement,[W]);x.preventDefault()}};
_.J.overrideAriaLabelChanged_=function(){var W=this.getRoot();this.enableContentEditable&&W&&W.setAttribute("aria-label",this.overrideAriaLabel)};
_.J.enableContentEditableChanged_=function(){var W=this,P=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),P=_.g(this.hostElement,P),!P.lastChild||P.lastChild instanceof HTMLElement&&P.lastChild.id!=="contenteditable-root"){var x=document.createElement("div");x.id="contenteditable-root";x.setAttribute("contenteditable","true");x.setAttribute("dir","auto");x.onfocus=function(){W.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
P.appendChild(x);this.overrideAriaLabel&&x.setAttribute("aria-label",this.overrideAriaLabel)}}else x=_.rT(this.hostElement).firstChild,x instanceof HTMLElement&&x.id==="contenteditable-root"&&_.g(this.hostElement,P).removeChild(x)};
_.J.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.J.getNodesForVisibilityLogging_=function(){return _.nW(this.getRoot().childNodes,function(W){var P;return!((P=W.data)==null||!P.trackingParams)})};
_.J.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.J.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(P){W.reportShown(P)})}};
_.J.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(P){W.reportHidden(P)})}};
_.N1.Object.defineProperties(ON.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.p("enable_mixed_direction_formatted_strings")}}});
ON.prototype.enableContentEditableChanged_=ON.prototype.enableContentEditableChanged_;ON.prototype.overrideAriaLabelChanged_=ON.prototype.overrideAriaLabelChanged_;ON.prototype.ellipsisTruncateChanged_=ON.prototype.ellipsisTruncateChanged_;ON.prototype.textChanged=ON.prototype.textChanged;_.f([_.h(qH3.YtPlaintextBehavior),_.l("design:type",Object)],ON.prototype,"ytPlaintextBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ON.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ON.prototype,"text",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"noEndpoints",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"noStyles",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ON.prototype,"isDarkTheme",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ON.prototype,"splitLines",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ON.prototype,"forceDefaultStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ON.prototype,"ellipsisTruncate",void 0);_.f([_.c(),_.l("design:type",Object)],ON.prototype,"ignoreShadyDom",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.l("design:type",Boolean)],ON.prototype,"ellipsisTruncateStyling",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.l("design:type",String)],ON.prototype,"ariaLabel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ON.prototype,"isEmpty",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.l("design:type",Boolean)],ON.prototype,"hasLinkOnly_",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"hasEmoji",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"disableAttributedString",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"isOverlay",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"linkInheritColor",void 0);
_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"noPreWrap",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"userInput",void 0);_.f([_.c({value:16}),_.l("design:type",Number)],ON.prototype,"emojiSize",void 0);_.f([_.c(),_.l("design:type",String)],ON.prototype,"target",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"enableContentEditable",void 0);_.f([_.c(),_.l("design:type",String)],ON.prototype,"overrideAriaLabel",void 0);
_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"respectHtmlDir",void 0);_.f([_.c(),_.l("design:type",Boolean)],ON.prototype,"respectLangDir",void 0);_.f([_.H("plaintextOnly"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ON.prototype,"useMixedDirectionFormattedStrings",null);_.f([_.c({computed:"computeUseAttributedString(text)"}),_.l("design:type",Boolean)],ON.prototype,"useYtAttributedString",void 0);
_.f([_.OZ("text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ON.prototype,"textChanged",null);_.f([_.OZ("ellipsisTruncate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ON.prototype,"ellipsisTruncateChanged_",null);_.f([_.OZ("overrideAriaLabel"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ON.prototype,"overrideAriaLabelChanged_",null);
_.f([_.OZ("enableContentEditable"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ON.prototype,"enableContentEditableChanged_",null);ON=_.f([_.jd({is:"yt-formatted-string",disableElementRegistration:!0})],ON);
_.X(ON,"yt-formatted-string",function(){if(Wqp===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;LoP===void 0&&(LoP=document.createElement("template"));var I=LoP;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Wqp=W}W=Wqp;return W});var PUw;var xsl;var IOc;var OIZ;var JJ=function(){var W=_.b.apply(this,arguments)||this;W.focused=!1;W.disabled=!1;W.isOverlay=!1;return W};
_.A(JJ,_.b);JJ.prototype.triggerDown=function(){if(!this.disabled){_.iS(this.hostElement,"down",!0);var W;(W=this.currentAnimation)==null||W.cancel()}};
JJ.prototype.triggerUp=function(){if(!this.disabled){_.iS(this.hostElement,"down",!1);var W=this.fillElement;var P=this.strokeElement;typeof GroupEffect==="function"?(W=new GroupEffect([B87(W),n2U(P)]),W=new Animation(W,document.timeline)):W=new bcP(W,P);this.currentAnimation=W;var x;(x=this.currentAnimation)==null||x.play()}};
_.f([_.BM(".stroke"),_.l("design:type",HTMLElement)],JJ.prototype,"strokeElement",void 0);_.f([_.BM(".fill"),_.l("design:type",HTMLElement)],JJ.prototype,"fillElement",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],JJ.prototype,"focused",void 0);_.f([_.c(),_.l("design:type",Object)],JJ.prototype,"disabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],JJ.prototype,"isOverlay",void 0);JJ=_.f([_.jd({is:"yt-interaction",disableElementRegistration:!0})],JJ);
_.X(JJ,"yt-interaction",function(){if(OIZ===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;IOc===void 0&&(IOc=document.createElement("template"));var I=IOc;x.call(P,I.content.cloneNode(!0),W.content.firstChild);OIZ=W}W=OIZ;return W},{mode:2});var BU=function(){return _.b.apply(this,arguments)||this};
_.A(BU,_.b);_.J=BU.prototype;_.J.ready=function(){var W=this,P=_.g(this.hostElement).querySelector("#button");P.addEventListener("focus",function(){k5m||(k5m=new brd);W.keyboardFocused=k5m.isKeyBoardInUse()});
P.addEventListener("blur",function(){W.keyboardFocused=!1;W.rippleUp_()})};
_.J.computeTabIndex_=function(W){return W?-1:0};
_.J.computeButtonAriaPressed_=function(W){if(this.toggleable)return W?"true":"false"};
_.J.rippleDown_=function(){_.g(this.hostElement).querySelector("#interaction").triggerDown()};
_.J.rippleUp_=function(){_.g(this.hostElement).querySelector("#interaction").triggerUp()};
_.J.onPressedChanged_=function(){var W=_.rT(_.g(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.rT(_.g(this.hostElement).querySelector("#button")).children[0];W&&(W.active=this.pressed)};
BU.prototype.onPressedChanged_=BU.prototype.onPressedChanged_;BU.prototype.rippleUp_=BU.prototype.rippleUp_;BU.prototype.rippleDown_=BU.prototype.rippleDown_;_.f([_.c(),_.l("design:type",String)],BU.prototype,"label",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],BU.prototype,"disabled",void 0);_.f([_.c(),_.l("design:type",Boolean)],BU.prototype,"pressed",void 0);_.f([_.c(),_.l("design:type",Object)],BU.prototype,"toggleable",void 0);
_.f([_.c(),_.l("design:type",Boolean)],BU.prototype,"untabbable",void 0);_.f([_.c(),_.l("design:type",Boolean)],BU.prototype,"keyboardFocused",void 0);_.f([_.I7("down"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BU.prototype,"rippleDown_",null);_.f([_.I7("up"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BU.prototype,"rippleUp_",null);
_.f([_.OZ("pressed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BU.prototype,"onPressedChanged_",null);BU=_.f([_.jd({is:"yt-icon-button",disableElementRegistration:!0})],BU);
_.X(BU,"yt-icon-button",function(){if(xsl===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;PUw===void 0&&(PUw=document.createElement("template"));var I=PUw;x.call(P,I.content.cloneNode(!0),W.content.firstChild);xsl=W}W=xsl;return W},{mode:2});var JGp=_.i4(["aria-"]),nk={};nk.YtRenderButtonBehavior=[_.L.YtRendererBehavior,_.IM.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!!_.FY().resolve(_.Rl(_.jK))&&_.p("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 W=this.computeHref_(this.endpoint,!0);W?AH(this.elements_.endpoint,W):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){W=this.buttonClass.split(" ");W=_.n(W);for(var P=W.next();!P.done;P=W.next())P=P.value,_.iS(this.hostElement,P,!0),this.elements_.button&&_.iS(this.elements_.button,P,!0),this.elements_.text&&_.iS(this.elements_.text,P,!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&&(W=null,this.buttonAccessibility&&(W=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=W:W?_.b5([_.qi(JGp)],this.elements_.button,"aria-label",W):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var W=_.FY().resolve(_.Rl(_.jK));W&&(this.keyboardFocused=W.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.f6("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,_.VS(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.VS(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(W,P){if(P)for(W=P.split(" "),W=_.n(W),P=W.next();!P.done;P=W.next())P=P.value,_.iS(this.hostElement,P,!1),this.elements_.button&&_.iS(this.elements_.button,P,!1),this.elements_.text&&_.iS(this.elements_.text,P,!1)},
buttonIconChanged_:function(W){this.elements_.icon?W?(this.elements_.icon.icon=W,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.VS(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Rf(this.hostElement,"is-paper-button-with-icon",!1)):W&&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"&&_.VS(this.elements_.button).appendChild(this.elements_.icon):_.VS(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Rf(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(W){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,W){var P=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(W){case "yt_icon_button_with_label":P=!0;_.iS(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();W=_.VS(this.elements_.button).firstElementChild;
this.elements_.icon=W;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.VS(this.elements_.endpoint).appendChild(this.elements_.button);_.VS(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.f6("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;_.VS(this.elements_.button).appendChild(this.elements_.text);_.VS(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":P=!0,this.elements_.button=this.getYtIconButton_(),W=_.VS(this.elements_.button).firstElementChild,this.elements_.icon=W,this.setIconActive_(this.elements_.icon),
_.VS(this.elements_.endpoint).appendChild(this.elements_.button)}_.Rf(this.hostElement,"is-icon-button",P);_.Rf(this.hostElement,"is-paper-button",!P);_.Rf(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var x;_.g((x=this.container.hostElement)!=null?x:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.VS(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(W){if(W!=void 0||this.disabled)this.disabled=W,this.elements_.button&&(this.elements_.button.disabled=W)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(W){_.p("kevlar_system_icons")&&W&&this.data&&(this.data.isSelected!==void 0?W.active=this.data.isSelected:this.data.isToggled!==void 0&&(W.active=this.data.isToggled))},
observeBasicPalette_:function(W){_.QB(this.hostElement,W)},
disabledChanged_:function(W){this.data&&this.set("data.isDisabled",W)},
onYtButtonTap_:function(W){if(this.disabled)W.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Iu(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(W=this.disableCommandHandlerOverride,!this.data||!this.data.command||W||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.p("handle_service_request_actions")||_.Iu(this.hostElement,[this.serviceEndpoint]),
_.Lf(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.p("handle_service_request_actions")?(W=[],this.serviceEndpoint&&W.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&W.push(this.data.command),W.length&&_.OL(this.hostElement,W,this.hostElement)):this.data&&this.data.command&&(W=this.data.command,W.accountUnlinkCommand||W.accountLinkCommand||W.insertAdCommand||W.insertHighlightMarkerCommand||
W.createLivestreamHighlightClipCommand||W.getVideoUploadFeedbackCommand||W.musicDeletePrivatelyOwnedEntityCommand||W.ypcCancelRecurrenceEndpoint||W.getMultiSelectCommandEndpoint?_.Iu(this.hostElement,[W]):_.OL(this.hostElement,[W],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 W,P=_.g((W=this.container.hostElement)!=null?W:this.container);P.lastChild&&P.lastChild.tagName!="STYLE";)try{P.removeChild(P.lastChild)}catch(x){break}},
getYtIconButton_:function(){var W=this.reuseEnabled_()?_.f6("yt-icon-button"):document.createElement("yt-icon-button"),P=_.VS(W).firstElementChild;if(P&&P.is!="yt-icon"){for(P=_.VS(W);P.lastChild;)P.removeChild(P.lastChild);P=null}P||(P=this.getIcon_(),this.setIconActive_(P),_.VS(W).appendChild(P));return W},
reuseEnabled_:function(){return _.p("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.f6("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.f6("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Bab={};
_.Bab.YtButtonBehavior=[nk.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var W=this.data;W&&(this._setEndpoint(this.computeEndpoint_(W)),this._setServiceEndpoint(this.computeServiceEndpoint_(W)),this._setCommand(this.computeCommand_(W)),this._setButtonIcon(this.computeButtonIcon_(W)),this._setButtonText(this.computeButtonText_(W,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(W)),this._setButtonTooltip(this.computeTooltip_(W)),this._setButtonClass(this.computeButtonClass_(W)),this._setIconPositionType(this.computeIconPositionType_(W)),this.updateRenderedElements())},
setPressedState:function(W){var P;if((P=this.elements_)==null?0:P.button)this.elements_.button.pressed=!!W},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeEndpoint_:function(W){var P=W&&W.navigationEndpoint,x=this.get("data.command.commandMetadata.webCommandMetadata.url"),I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return P?P:W&&W.command&&W.command.modalEndpoint?W.command:x&&!I&&W.command?W.command:null},
computeServiceEndpoint_:function(W){var P=W&&W.serviceEndpoint,x=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return P?P:x&&W.command?W.command:null},
computeCommand_:function(W){return W&&W.command||null},
computeButtonIcon_:function(W){return W&&W.icon&&W.icon.iconType?_.PW(W.icon.iconType):null},
computeButtonText_:function(W,P){return!P&&W&&W.text||null},
computeAccessibility_:function(W){return this.get("accessibilityData.accessibilityData",W)||W&&W.accessibility||(W&&W.text?{label:this.getSimpleString(W.text)}:null)},
computeTooltip_:function(W){return W?W.isDisabled&&W.disabledTooltip||W.tooltip||null:null},
computeButtonClass_:function(W){var P=W&&W.style?W.style.toLowerCase().replace(/_/g,"-")+" ":"";P+=W&&W.size?W.size.toLowerCase().replace(/_/g,"-")+" ":"";W.colorData&&W.colorData.basicColorPaletteData&&W.colorData.basicColorPaletteData.borderColor&&(P+="palette-with-border");return P.trim()}}];var CE={};var nqd;var YI3;var yGW,Kqk=function(){return yGW!==void 0?yGW:yGW=document.createElement("template")};
document.head.appendChild(Kqk().content);var ZIm;var oq3,SIm=function(){return oq3!==void 0?oq3:oq3=document.createElement("template")};
document.head.appendChild(SIm().content);var uTw;var dsZ,sA3=function(){return dsZ!==void 0?dsZ:dsZ=document.createElement("template")};
document.head.appendChild(sA3().content);var vqM;var msm=document.head,VPz=msm.appendChild,tPz;if(vqM===void 0){var pQZ=document.createElement("template");_.G(pQZ,"\x3c!--css-build:shady--\x3e");pQZ.content.insertBefore(sA3().content.cloneNode(!0),pQZ.content.firstChild);vqM=pQZ}tPz=vqM;VPz.call(msm,tPz.content);var jAP=document.head,QAz=jAP.appendChild,CUi;if(uTw===void 0){var AGl=document.createElement("template");_.G(AGl,"\x3c!--css-build:shady--\x3e");AGl.content.insertBefore(SIm().content.cloneNode(!0),AGl.content.firstChild);uTw=AGl}CUi=uTw;QAz.call(jAP,CUi.content);var zCc=document.head,GyM=zCc.appendChild,Eql;if(ZIm===void 0){var gqm=document.createElement("template");_.G(gqm,"\x3c!--css-build:shady--\x3e");gqm.content.insertBefore(Kqk().content.cloneNode(!0),gqm.content.firstChild);ZIm=gqm}Eql=ZIm;GyM.call(zCc,Eql.content);var DsZ;_.Ad("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");DsZ=_.p("web_button_rework")&&_.wo("BUTTON_REWORK")||_.p("web_button_rework_with_live");_.YX=function(){return _.b.apply(this,arguments)||this};
_.A(_.YX,_.b);_.YX.prototype.created=function(){this.openPopupConfig=_.$$("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.YX.prototype.onYtNavigate_=function(W){var P=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);P&&(this.ytOpenPopupBehavior.openPopup(P),W.stopPropagation(),W.preventDefault())};
_.N1.Object.defineProperties(_.YX,{template:{configurable:!0,enumerable:!0,get:function(){if(YI3===void 0){var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
var P=W.content,x=P.insertBefore;nqd===void 0&&(nqd=document.createElement("template"));var I=nqd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);YI3=W}W=YI3;return W}}});
_.YX.prototype.onYtNavigate_=_.YX.prototype.onYtNavigate_;_.f([_.h(_.xX.YtOpenPopupBehavior),_.l("design:type",Object)],_.YX.prototype,"ytOpenPopupBehavior",void 0);_.f([_.h(_.Bab.YtButtonBehavior),_.l("design:type",Object)],_.YX.prototype,"ytButtonBehavior",void 0);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],_.YX.prototype,"onYtNavigate_",null);
_.YX=_.f([_.jd({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:DsZ})],_.YX);var MPc;var $sW=_.p("web_button_rework")&&_.wo("BUTTON_REWORK")||_.p("web_button_rework_with_live"),yR=function(){var W=_.b.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.skipCommandHandling=!1;W.alignByText=!1;W.fitToVisibleBounds=!0;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};W.onTap=function(P){_.Lf(W.hostElement,"yt-service-request-sent-button-renderer",P)};
return W};
_.A(yR,_.b);_.J=yR.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.J.onClick=function(W){var P,x=this.disabled||((P=this.data)==null?void 0:P.isDisabled);P=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");x&&P&&W.stopPropagation()};
_.J.computeIcon=function(){var W,P,x=(W=this.data)==null?void 0:(P=W.icon)==null?void 0:P.iconType;if(x)return _.PW(x)};
_.J.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.J.handleUpdateButtonAction=function(W){W=_.Q(W,CYw);var P=_.Q(W==null?void 0:W.updatedButton,_.w6);if(this.data&&W&&P){var x=this.data;x.targetId&&W.targetId&&x.targetId===W.targetId&&(this.data=P)}};
_.N1.Object.defineProperties(yR.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var W=this;if(this.data){var P=JIR({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Lf(W.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Lf(W.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});P.alignByText=this.alignByText;return P}}}});
_.N1.Object.defineProperties(yR,{template:{configurable:!0,enumerable:!0,get:function(){if(MPc===void 0){var W=document.createElement("template");_.G(W,'\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>');MPc=W}W=MPc;return W}}});
yR.prototype.onClick=yR.prototype.onClick;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],yR.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],yR.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yR.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],yR.prototype,"isPressed",void 0);
_.f([_.c(),_.l("design:type",Object)],yR.prototype,"forceIconButton",void 0);_.f([_.c(),_.l("design:type",Object)],yR.prototype,"forceIconOnly",void 0);_.f([_.c(),_.l("design:type",Object)],yR.prototype,"forceModernIconButton",void 0);_.f([_.c(),_.l("design:type",Object)],yR.prototype,"skipCommandHandling",void 0);_.f([_.c(),_.l("design:type",Object)],yR.prototype,"alignByText",void 0);_.f([_.c(),_.l("design:type",Object)],yR.prototype,"buttonTooltipPosition",void 0);
_.f([_.c(),_.l("design:type",Object)],yR.prototype,"fitToVisibleBounds",void 0);_.f([_.c({computed:"computeTooltip(data)"}),_.l("design:type",Object)],yR.prototype,"tooltip",void 0);_.f([_.c(),_.l("design:type",Object)],yR.prototype,"overrides",void 0);_.f([_.c(),_.l("design:type",Boolean)],yR.prototype,"disabled",void 0);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],yR.prototype,"onClick",null);
_.f([_.H("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.l("design:type",Object),_.l("design:paramtypes",[])],yR.prototype,"computedButtonShape",null);yR=_.f([_.jd({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!$sW,cssBuildOptOut:!0}),_.jd({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!$sW,cssBuildOptOut:!0})],yR);var wQk;var hCp;var Kk=function(){var W=_.b.apply(this,arguments)||this;W.empty_=!0;W.loadTime=Infinity;W.pendingPaint=!1;W.hasChange_=!1;W.oldThumbnail_=null;W.oldDelayedSrc_="";W.objectURL_=null;return W};
_.A(Kk,_.b);_.J=Kk.prototype;_.J.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.J.ready=function(){var W=this.shouldShowPlaceholder_();_.iS(this.hostElement,"no-transition",!0);W&&this.hostElement.classList.add("with-placeholder")};
_.J.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.J.isThumbPreloaded_=function(W){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",W)};
_.J.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||HIP};
_.J.computeThumbnailSrc_=function(W){return W&&W.thumbnails?_.Tm(W.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.J.computeAlt_=function(){var W=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&W||""};
_.J.thumbnailChanged_=function(){var W=_.n([this.thumbnail,this.oldThumbnail_]),P=W.next().value;W=W.next().value;this.oldThumbnail_=P;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(W=this.computeThumbnailSrc_(W),this.computeThumbnailSrc_(P)===W))return;_.p("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(P)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):P&&_.wo("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Xm(this,this.onReload_):_.Xm(this,this.onShow_):this.resetImage_();P&&(this.hostElement.style.opacity=""+P.opacity)}};
_.J.delayedSrcChanged_=function(){var W=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===W||this.resetImage_()};
_.J.setSrc_=function(W){W?(_.g(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.g(this.hostElement).querySelector("#img").src=W):(_.g(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.J.resetImage_=function(){ZZS(this.hostElement);this.empty_=!0;this.setSrc_(HIP);this.ytRendererBehavior.invalidate(!1)};
_.J.observePlaceholderColor_=function(){var W=this.thumbnail&&this.thumbnail.placeholderColor;W?this.hostElement.style.backgroundColor=_.j9(W):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.J.onLoad_=function(){_.g(this.hostElement).querySelector("#img").src&&_.g(this.hostElement).querySelector("#img").src!==HIP&&(KtC(this.hostElement),this.notifyOnLoaded&&_.Lf(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.J.onError_=function(){var W=this;if(_.p("web_use_cache_for_image_fallback"))mNS(_.g(this.hostElement).querySelector("#img").src).then(function(P){W.objectURL_=_.V4(P).toString();W.setSrc_(W.objectURL_)}).catch(function(){_.p("kevlar_woffle_fallback_image")&&W.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.J.onPrescanVisible=function(){this.onShow_()};
_.J.onVisible=function(){if(_.p("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.J.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var W=this.computeSrc_();W!==_.g(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))}};
_.J.onReload_=function(){this.empty_=!1;var W=this.computeSrc_();W!==_.g(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))};
_.J.shouldShowPlaceholder_=function(){return _.p("kevlar_thumbnail_bg")};
Kk.prototype.observePlaceholderColor_=Kk.prototype.observePlaceholderColor_;Kk.prototype.delayedSrcChanged_=Kk.prototype.delayedSrcChanged_;Kk.prototype.thumbnailChanged_=Kk.prototype.thumbnailChanged_;_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Kk.prototype,"alt",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Kk.prototype,"ariaHidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Kk.prototype,"ariaLabel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Kk.prototype,"hidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Kk.prototype,"id",void 0);_.f([_.h(_.$9.YtVisibilityBehavior),_.l("design:type",Object)],Kk.prototype,"ytVisibilityBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",String)],Kk.prototype,"delayedSrc",void 0);
_.f([_.c(),_.l("design:type",Object)],Kk.prototype,"thumbnail",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Kk.prototype,"loaded",void 0);_.f([_.c(),_.l("design:type",Boolean)],Kk.prototype,"notifyOnLoaded",void 0);_.f([_.c(),_.l("design:type",Number)],Kk.prototype,"height",void 0);_.f([_.c(),_.l("design:type",Number)],Kk.prototype,"width",void 0);_.f([_.c({value:function(){return"width"}}),
_.l("design:type",String)],Kk.prototype,"dimension",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Kk.prototype,"fit",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Kk.prototype,"fitHeight",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Kk.prototype,"fitWidth",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Kk.prototype,"objectFit",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Kk.prototype,"objectPosition",void 0);_.f([_.c(),_.l("design:type",String)],Kk.prototype,"preferredThumbnail",void 0);_.f([_.c({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.l("design:type",String)],Kk.prototype,"alt_",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Kk.prototype,"sharedTooltipText",void 0);
_.f([_.c(),_.l("design:type",Boolean)],Kk.prototype,"ftlEligible",void 0);_.f([_.c({value:void 0}),_.l("design:type",String)],Kk.prototype,"observeHiddenOption",void 0);_.f([_.c({value:"observe_once"}),_.l("design:type",String)],Kk.prototype,"observePrescanOption",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Kk.prototype,"roundedContainer",void 0);
_.f([_.K_("thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Kk.prototype,"thumbnailChanged_",null);_.f([_.K_("delayedSrc"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Kk.prototype,"delayedSrcChanged_",null);_.f([_.OZ("thumbnail.placeholderColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Kk.prototype,"observePlaceholderColor_",null);
Kk=_.f([_.jd({is:"yt-img-shadow",disableElementRegistration:!0})],Kk);var HIP=_.wo("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.R7()(Kk,"yt-img-shadow",function(){if(hCp===void 0){var W=document.createElement("template");_.G(W,'\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">');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;wQk===void 0&&(wQk=document.createElement("template"));var I=wQk;x.call(P,I.content.cloneNode(!0),W.content.firstChild);hCp=W}W=hCp;return W},{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 rvt;_.ZF=new _.Lb("SCREEN_MANAGER_TOKEN");rvt=new _.Lb("LOG_INITIAL_SCREEN_TOKEN");_.MI=_.kl(function(W){function P(nm){return _.Q(nm,_.gp)}
function x(){var nm=I().isTogglingDisabled||t()?D():!D();w(nm);k(!1);if(!I().isTogglingDisabled){var pm;(pm=Y)==null||pm(!!nm)}var zR;((zR=B)==null?0:zR())||_.Kg(_.FY().resolve(_.ZF),I().trackingParams);var Am;if(!nm||!P(I().defaultButtonViewModel)||(Am=B)!=null&&Am()){var kW;!P(I().toggledButtonViewModel)||((kW=B)==null?0:kW())||_.Kg(_.FY().resolve(_.ZF),P(I().toggledButtonViewModel).trackingParams)}else _.Kg(_.FY().resolve(_.ZF),P(I().defaultButtonViewModel).trackingParams)}
var I=W.data,O=W.buttonShapeOverrides,B=W.disableExplicitClickLogging,Y=W.onToggle,K=W.style,Z=W.useOutlinedIcon,d=W.className,v=function(){var nm,pm;return D()?(nm=W.animatedTextPropsToggled)==null?void 0:nm.call(W):(pm=W.animatedTextPropsDefault)==null?void 0:pm.call(W)},m=_.Sj(function(){return v()?Object.assign({},v(),{shouldAnimate:a()}):void 0},void 0,"ZKEa0b"),t=function(){var nm;
return((nm=Io())==null?void 0:nm.isToggled)!==void 0},C=_.n(_.Zh(function(){var nm,pm,zR;
return t()?(nm=Io())==null?void 0:nm.isToggled:(zR=O==null?void 0:(pm=O())==null?void 0:pm.toggled)!=null?zR:I().isToggled})),z=C.next().value;
C=C.next().value;var D=z,w=C;C=_.n(_.Zh(function(){var nm,pm;return(nm=W.animatedTextPropsToggled)==null?void 0:(pm=nm.call(W))==null?void 0:pm.shouldAnimate}));
z=C.next().value;C=C.next().value;var a=z,k=C;z=_.n(_.YV(!1,void 0,"S11hid"));var T=z.next().value,N=z.next().value,Io=_.G4(function(nm){var pm;a:{var zR=I().entityKey,Am=I().toggledStateEntitySelectorType;if(Am&&zR)switch(Am){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var kW;nm=(kW=_.Jb(nm.entities,"sfvAudioItemCurrentlyPlayingEntity",zR))!=null?kW:void 0;kW=(pm=nm==null?void 0:nm.sfvAudioItemPlaybackState)!=null?pm:void 0;if(kW==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){pm={isToggled:!0};
break a}if(kW){pm={isToggled:!1};break a}break;default:_.ge(new _.mW("Error: entitySelectorType defined but not matched in selector.",nm,Am))}pm=void 0}return pm});
z=_.yB(function(){var nm=_.FY().resolve(_.Rl(_.jK));nm&&N(nm.isKeyBoardInUse());return!1});
C=_.yB(function(){N(!1);return!1});
var F=function(){return Object.assign({},O==null?void 0:O(),{onToggle:x,toggleable:!0,toggled:D(),focused:T()})};
return _.u("toggle-button-view-model",{"on:focusin":z,"on:focusout":C,class:d},_.u(_.V,{cond:function(){return D()?P(I().toggledButtonViewModel):P(I().defaultButtonViewModel)},
then:function(nm){return _.u(_.cq,{data:nm,className:d,style:K,useOutlinedIcon:Z,buttonOverrides:F,animatedTextProps:m})}}))},"v");
_.MI.idomCompat={callbacks:{onToggle:!0}};_.lq(_.kl(function(W){return _.u("yt-toggle-button-view-model",{class:function(){var P;return(P=W.scopingClassName)==null?void 0:P.call(W)}},_.u(_.MI,{data:function(){var P;
return(P=W.data)==null?void 0:P.call(W)},
buttonShapeOverrides:function(){var P;return(P=W.overrides)==null?void 0:P.call(W)},
animatedTextPropsDefault:function(){var P;return(P=W.animatedTextPropsDefault)==null?void 0:P.call(W)},
animatedTextPropsToggled:function(){var P;return(P=W.animatedTextPropsToggled)==null?void 0:P.call(W)},
disableExplicitClickLogging:function(){var P;return(P=W.disableExplicitClickLogging)==null?void 0:P.call(W)},
onToggle:function(P){var x;return(x=W.onToggle)==null?void 0:x.call(W,P)},
style:function(){var P;return(P=W.style)==null?void 0:P.call(W)},
useOutlinedIcon:function(){var P;return(P=W.useOutlinedIcon)==null?void 0:P.call(W)},
className:function(){var P;return(P=W.className)==null?void 0:P.call(W)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.cv,
buttonShapeOverrides:_.cv,overrides:_.cv,animatedTextPropsDefault:_.cv,animatedTextPropsToggled:_.cv,disableExplicitClickLogging:_.cv,onToggle:_.Ng,style:_.cv,useOutlinedIcon:_.cv,className:_.cv,scopingClassName:_.cv}});var oM=function(){return _.b.apply(this,arguments)||this};
_.A(oM,_.b);oM.prototype.onTap=function(W){W.stopPropagation();W=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.$s("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W})):this.ytLiveChatReduxBehavior.dispatch(_.mG("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W}))};
_.N1.Object.defineProperties(oM.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.Q(this.data.toggleButton,_.DZ),P;if(Number(((P=this.likeCountState)==null?void 0:P.likeCountIfIndifferentNumber)||"0")===0){var x;P=((x=this.data.likeCountPlaceholder)==null?void 0:x.content)||""}else{var I,O,B;P=((I=this.likeCountState)==null?void 0:(O=I.likeCountIfIndifferent)==null?void 0:O.content)||((B=this.data.likeCountPlaceholder)==null?void 0:B.content)||""}var Y,K;x=((Y=this.likeCountState)==null?void 0:(K=
Y.likeCountIfLiked)==null?void 0:K.content)||"1";Y=_.Q(W.toggledButtonViewModel,_.gp);return Object.assign({},W,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.Q(W.defaultButtonViewModel,_.gp),{title:P})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Y,{title:x})}})}}}});
oM.prototype.onTap=oM.prototype.onTap;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],oM.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],oM.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],oM.prototype,"data",void 0);
_.f([_.c({selectorArgs:["data.likeCountEntityKey"],selector:BV8}),_.l("design:type",Object)],oM.prototype,"likeCountState",void 0);_.f([_.c({selectorArgs:["data.engagementStateKey"],selector:hjm}),_.l("design:type",Object)],oM.prototype,"engagementState",void 0);_.f([_.H("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oM.prototype,"isLiked",null);
_.f([_.H("data","likeCountState","isLiked"),_.l("design:type",Object),_.l("design:paramtypes",[])],oM.prototype,"toggleButton",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],oM.prototype,"onTap",null);oM=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],oM);
_.X(oM,"yt-live-chat-like-button-view-model",function(){if(Fop===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Rtl===void 0&&(Rtl=document.createElement("template"));var I=Rtl;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Fop=W}W=Fop;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var eCz;var cGd;var Sf=function(){return _.b.apply(this,arguments)||this};
_.A(Sf,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Sf.prototype,"data",void 0);Sf=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Sf);
_.X(Sf,"yt-live-chat-paid-message-footer-renderer",function(){if(cGd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;eCz===void 0&&(eCz=document.createElement("template"));var I=eCz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);cGd=W}W=cGd;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var aO3;var bIz;var kyz;var UsP,XQp=function(){if(UsP!==void 0)return UsP;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;kyz===void 0&&(kyz=document.createElement("template"));var I=kyz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return UsP=W};var sN=function(){return _.b.apply(this,arguments)||this};
_.A(sN,_.b);sN.prototype.onTap=function(W){W.stopPropagation()};
_.N1.Object.defineProperties(sN.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.Q(this.data.replyButton,_.gp),P,x,I,O,B,Y,K,Z=Number(((P=this.replyCountState)==null?void 0:P.replyCountNumber)||"0")===0?(x=this.data)==null?void 0:(I=x.replyCountPlaceholder)==null?void 0:I.content:((O=this.replyCountState)==null?void 0:(B=O.replyCount)==null?void 0:B.content)||((Y=this.data)==null?void 0:(K=Y.replyCountPlaceholder)==null?void 0:K.content)||"",d;return Object.assign({},
W,{title:Z,accessibilityText:(d=this.replyCountState)==null?void 0:d.replyButtonAccessibilityText})}}}});
_.N1.Object.defineProperties(sN,{template:{configurable:!0,enumerable:!0,get:function(){return XQp()}}});
sN.prototype.onTap=sN.prototype.onTap;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],sN.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],sN.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sN.prototype,"data",void 0);
_.f([_.c({selectorArgs:["data.replyCountEntityKey"],selector:function(W,P){return _.Jb(W.entities,"replyCountEntity",P)}}),
_.l("design:type",Object)],sN.prototype,"replyCountState",void 0);_.f([_.H("data","replyCountState"),_.l("design:type",Object),_.l("design:paramtypes",[])],sN.prototype,"buttonViewModel",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],sN.prototype,"onTap",null);sN=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],sN);
_.X(sN,"yt-live-chat-reply-button-view-model",function(){return XQp()},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var fOi;var NaA;var vU=function(){var W=_.b.apply(this,arguments)||this;W.ariaLabel="";return W};
_.A(vU,_.b);
vU.prototype.dataChanged=function(){for(var W=(0,_.Fy)(_.g(this.hostElement).querySelector("#image"));W.firstChild;)W.removeChild(W.firstChild);if(this.data)if(this.data.icon){var P=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(P.polymerController.icon="yt-sys-icons:shield-filled",P.polymerController.defaultToFilled=!0):P.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();W.appendChild(P)}else if(this.data.customThumbnail){P=document.createElement("img");
var x=_.IPW(this.data.customThumbnail.thumbnails,16);x?(P.src=x,W.appendChild(P),P.setAttribute("alt",this.hostElement.ariaLabel||"")):_.ge(new _.mW("Could not compute URL for thumbnail",this.data.customThumbnail))}};
vU.prototype.identity=function(W){return W};
vU.prototype.computeType=function(W){return qn(W||void 0)};
vU.prototype.dataChanged=vU.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],vU.prototype,"data",void 0);_.f([_.c({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.l("design:type",Object)],vU.prototype,"ariaLabel",void 0);_.f([_.c({computed:"computeType(data)",reflectToAttribute:!0}),_.l("design:type",String)],vU.prototype,"type",void 0);
_.f([_.c({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.l("design:type",String)],vU.prototype,"sharedTooltipText",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("live_chat_enable_new_moderator_badge")}}),
_.l("design:type",Boolean)],vU.prototype,"enableNewModeratorBadge",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vU.prototype,"dataChanged",null);vU=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],vU);
_.X(vU,"yt-live-chat-author-badge-renderer",function(){if(NaA===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;fOi===void 0&&(fOi=document.createElement("template"));var I=fOi;x.call(P,I.content.cloneNode(!0),W.content.firstChild);NaA=W}W=NaA;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var lOd;var Tap;var mA=function(){return _.b.apply(this,arguments)||this};
_.A(mA,_.b);_.J=mA.prototype;_.J.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"}}}}};
_.J.computeBadgesInsideChip=function(W){return W?W.filter(function(P){return qn(P.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.J.computeBadgesOutsideChip=function(W){return this.prependChatBadges||!W?[]:W.filter(function(P){P=qn(P.liveChatAuthorBadgeRenderer);return P!=="verified"&&P!=="owner"})};
_.J.computeBadgesBeforeChip=function(W){return this.prependChatBadges&&W?W.filter(function(P){P=qn(P.liveChatAuthorBadgeRenderer);return P!=="verified"&&P!=="owner"}):[]};
_.J.computeIsHighlighted=function(W,P){var x=!!vLR(W,"owner"),I=!!vLR(W,"verified");W=!!vLR(W,"moderator");return(x||I&&!W)&&!P};
_.J.computeAuthorType=function(W){return sXU(W)};
_.J.computeAuthorClass=function(W,P){return P?(W?W+" ":"")+"single-line":W};
_.J.onSeedColorChanged=function(){_.p("live_chat_author_name_color_usernames")||_.p("live_chat_seed_color_usernames")||_.p("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):_.p("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
mA.prototype.onSeedColorChanged=mA.prototype.onSeedColorChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mA.prototype,"authorName",void 0);_.f([_.c(),_.l("design:type",Array)],mA.prototype,"authorBadges",void 0);
_.f([_.c({computed:"computeAuthorType(authorBadges)"}),_.l("design:type",String)],mA.prototype,"authorType",void 0);_.f([_.c({computed:"computeAuthorClass(authorType, singleLine)"}),_.l("design:type",String)],mA.prototype,"authorClass",void 0);_.f([_.c({computed:"computeBadgesInsideChip(authorBadges)"}),_.l("design:type",Array)],mA.prototype,"badgesInsideChip",void 0);_.f([_.c({computed:"computeBadgesOutsideChip(authorBadges)"}),_.l("design:type",Array)],mA.prototype,"badgesOutsideChip",void 0);
_.f([_.c({computed:"computeBadgesBeforeChip(authorBadges)"}),_.l("design:type",Array)],mA.prototype,"badgesBeforeChip",void 0);_.f([_.c({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.l("design:type",Boolean)],mA.prototype,"isHighlighted",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],mA.prototype,"singleLine",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],mA.prototype,"disableHighlighting",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],mA.prototype,"dashboardMoneyFeed",void 0);_.f([_.c({value:_.p("live_chat_prepend_badges"),reflectToAttribute:!0}),_.l("design:type",Boolean)],mA.prototype,"prependChatBadges",void 0);_.f([_.c(),_.l("design:type",String)],mA.prototype,"authorNameColor",void 0);_.f([_.BM("#author-name"),_.l("design:type",HTMLDivElement)],mA.prototype,"username",void 0);
_.f([_.OZ("authorNameColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mA.prototype,"onSeedColorChanged",null);mA=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],mA);
_.X(mA,"yt-live-chat-author-chip",function(){if(Tap===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;lOd===void 0&&(lOd=document.createElement("template"));var I=lOd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Tap=W}W=Tap;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var rGi;var iIM;var VR=function(){var W=_.b.apply(this,arguments)||this;W.debounceCommand=_.t6(function(P){W.ytComponentBehavior.resolveCommand(P)},1500);
return W};
_.A(VR,_.b);VR.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var W=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",P,x,I=this.isHearted?(P=this.data)==null?void 0:P.unheartCommand:(x=this.data)==null?void 0:x.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.$s("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:W}));(W=_.AF(I))&&this.debounceCommand(W)}};
_.N1.Object.defineProperties(VR.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W,P;if(!((W=this.data)==null?0:(P=W.creatorThumbnail)==null?0:P.sources))return{};W={thumbnails:[]};P={};P.url=this.data.creatorThumbnail.sources[0].url;W.thumbnails.push(P);return W}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((P=this.engagementState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((P=this.engagementState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((P=this.engagementState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
VR.prototype.onTap=VR.prototype.onTap;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],VR.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],VR.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],VR.prototype,"data",void 0);
_.f([_.c({selectorArgs:["data.engagementStateKey"],selector:hjm}),_.l("design:type",Object)],VR.prototype,"engagementState",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],VR.prototype,"thumbnailDetails",null);_.f([_.H("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VR.prototype,"isHearted",null);_.f([_.H("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VR.prototype,"isEditable",null);
_.f([_.H("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VR.prototype,"showCreatorView",null);_.f([_.H("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VR.prototype,"showButton",null);_.f([_.H("data","isHearted"),_.l("design:type",String),_.l("design:paramtypes",[])],VR.prototype,"label",null);_.f([_.H("data","isHearted"),_.l("design:type",Object),_.l("design:paramtypes",[])],VR.prototype,"heartHoverText",null);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VR.prototype,"onTap",null);VR=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],VR);
_.X(VR,"yt-live-chat-creator-heart-view-model",function(){if(iIM===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;rGi===void 0&&(rGi=document.createElement("template"));var I=rGi;x.call(P,I.content.cloneNode(!0),W.content.firstChild);iIM=W}W=iIM;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var tJ=function(W,P){this.serviceId=new wJp(W,P)};
tJ.prototype.toString=function(){return this.serviceId.toString()};var RCz=function(){this.internalMap={}};
_.J=RCz.prototype;_.J.contains=function(W){return Object.prototype.hasOwnProperty.call(this.internalMap,W)};
_.J.get=function(W){if(this.contains(W))return this.internalMap[W]};
_.J.set=function(W,P){this.internalMap[W]=P};
_.J.getKeys=function(){return Object.keys(this.internalMap)};
_.J.remove=function(W){delete this.internalMap[W]};var pk=function(){this.mappings=new RCz;this.errorCallbacks=new Set};
pk.prototype.getModuleId=function(W){return W.serviceId.getModuleId()};
pk.prototype.get=function(W){var P=this.mappings.get(W.toString());return Fqd(this,P,W)};
pk.prototype.getMultipleAsync=function(){var W=_.tH.apply(0,arguments),P=this,x=W.map(function(Z){return P.getModuleId(Z)}),I=W.map(function(Z){return P.mappings.get(Z.toString())}).filter(function(Z){return Z});
if(I.length===W.length)return _.Jn(I.map(function(Z,d){return Fqd(P,Z,W[d])}));
var O=Qk().loadMultiple(x);I=_.Qq(x.map(function(Z){return O[Z]}));
var B=document.hidden,Y=-1,K=_.Wi("get_async_timeout_ms",-1);K>-1&&(Y=setTimeout(function(){_.ge(new _.mW("Module timeout.",x,B,document.hidden))},K));
return _.CA(I.then(function(){return W.map(function(Z){return Fqd(P,P.mappings.get(Z.toString()),Z)})}).thenCatch(function(Z){for(var d=_.n(P.errorCallbacks),v=d.next();!v.done;v=d.next())v=v.value,v(Z);
throw Z;}),function(){clearTimeout(Y)})};
pk.prototype.registerService=function(W,P){this.mappings.set(W.toString(),{type:"mapping",value:P});return W};
var Fqd=function(W,P,x){switch(P.type){case "mapping":return P.value;case "factory":return P=P.value(),W.mappings.set(x.toString(),{type:"mapping",value:P}),P;default:return _.n2(P)}};
pk.prototype.onLoadError=function(W){var P=this;this.errorCallbacks.add(W);return function(){P.errorCallbacks.delete(W)}};
_.jf=new pk;var qIc=function(){};
_.J=qIc.prototype;
_.J.JSC$11808_getRequest=function(W,P,x){P=P===void 0?{}:P;x=x===void 0?ehb:x;var I=P;if(this.isNavigationCommand()){var O,B=(O=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?void 0:O.url;I=_.zHm(W.clickTrackingParams,!0,!1,B,this.JSC$11808_getClientScreen(I))}else I=_.zHm(W.clickTrackingParams,!1,this.includeCsn);I={context:I};if(O=this.getExtension(W))return this.JSC$11808_buildRequest(I,O,P),O=this.getApiUrl(W),B=Object.assign({},{command:W},this.getRequestConfig(W,P)),I={input:O,requestShell:bO(O),
innerTubeRequest:I,config:B},I.config.authStrategy?I.config.authStrategy.identity=x:I.config.authStrategy={identity:x},(W=this.JSC$11808_getRequestKey(W,P))&&!I.config.requestKey&&(I.config.requestKey=W),I;W=new _.mW("Error: Failed to create Request from Command.",W);_.G$(W)};
_.J.getApiUrl=function(W){var P=_.fR(this.getApiPaths(W)),x;(W=(x=_.Q(W.commandMetadata,_.rU))==null?void 0:x.apiUrl)&&(P=W);return Ino(xCC(P))};
_.J.isNavigationCommand=function(){return!1};
_.J.JSC$11808_getClientScreen=function(){};
_.J.JSC$11808_getRequestKey=function(){};
_.J.getRequestConfig=function(){};
_.N1.Object.defineProperties(qIc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var QR=function(){};
_.A(QR,qIc);QR.prototype.JSC$11815_getStoreKey=function(){};
QR.prototype.JSC$11808_getRequestKey=function(W,P){P=P===void 0?{}:P;return this.JSC$11815_getStoreKey(W,P)};var Ck=function(){};
_.A(Ck,QR);Ck.prototype.JSC$11808_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:bO("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Ck.prototype.getApiPaths=function(){return[]};
Ck.prototype.getExtension=function(){};
Ck.prototype.JSC$11808_buildRequest=function(){};var LqW={},Wtk=(LqW.GET_DATASYNC_IDS=Dh(Ck),LqW);var Pn3,xNM,IPi,Lli,AJ,Btb,JLc,JSk,OZZ;Pn3="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");xNM=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.HF=function(W,P,x,I,O,B,Y,K,Z){this.endpointMap=W;this.networkManager=P;this.authService=x;this.responseProcessorMap=I;this.innertubeResponseStore=O;this.contextProcessors=B;this.asyncContextProcessors=Y;this.localInnertubeRouter=K;this.requestSequencer=Z;this.inflightRequests=new Map;W.signalEndpointMap||(W.signalEndpointMap={});W.signalEndpointMap=Object.assign({},Wtk,W.signalEndpointMap)};
IPi=function(W,P,x,I,O,B,Y,K,Z){if(_.HF.instance!==void 0){if(I=_.HF.instance,W=[W!==I.endpointMap,P!==I.networkManager,x!==I.authService,O!==I.innertubeResponseStore,B!==I.contextProcessors,Y!==I.asyncContextProcessors,K!==I.localInnertubeRouter],W.some(function(d){return d}))throw new _.mW("InnerTubeTransportService is already initialized",W);
}else _.HF.instance=new _.HF(W,P,x,I,O,B,Y,K,Z)};
_.cF=function(W,P,x){var I=I===void 0?ehb:I;var O=JLc(W,P);return O?new _.yE(function(B,Y){var K,Z,d,v,m;return _.y(function(t){switch(t.nextAddress){case 1:return _.S(t,O,2);case 2:K=t.yieldResult;Z=K.JSC$11808_getRequest(P,x,I);if(!Z){Y(new _.mW("Error: Failed to build request for command.",P));t.jumpTo(0);break}z1(Z.input);v=((d=Z.requestShell)==null?void 0:d.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){m=OZZ(Z.config,v);t.jumpTo(4);break}return _.S(t,JSk(Z.config,v),5);case 5:m=
t.yieldResult;case 4:B(Btb(W,Z,m)),_.Kl(t)}})}):_.s2(new _.mW("Error: No request builder found for command.",P))};
Lli=function(W,P,x,I){var O=O===void 0?ehb:O;var B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F;return _.y(function(nm){switch(nm.nextAddress){case 1:B=yIS(P,W.endpointMap);if(!B)throw new _.mW("Error: No streaming request builder found for command",P);Y=B.JSC$11808_getRequest(P,x,O);if(!Y)throw new _.mW("Failed to build YtRequest for streaming Command",P);if((K=W.localInnertubeRouter)==null||!K.shouldPreferLocalResponse(Y.input,Y.innerTubeRequest)){nm.jumpTo(2);break}return _.S(nm,W.localInnertubeRouter.localInnertubeResponse(Y.input,
Y.innerTubeRequest),3);case 3:return Z=nm.yieldResult,d={},Z.playerResponse&&(AJ(W,Z.playerResponse,Y),d.player=Z.playerResponse,(v=I)==null||v(d,Z)),Z.watchNextResponse&&(AJ(W,Z.watchNextResponse,Y),d.content=Z.watchNextResponse,(m=I)==null||m(d,Z)),nm.return(d);case 2:C=((t=Y.requestShell)==null?void 0:t.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){z=OZZ(Y.config,C);nm.jumpTo(4);break}return _.S(nm,JSk(Y.config,C),5);case 5:z=nm.yieldResult;case 4:return a=(w=(D=Y.requestShell)==null?
void 0:D.headers)!=null?w:{},Y.requestShell=Object.assign({},Y.requestShell,{headers:Object.assign({},a,z)}),k=Object.assign({},Y.requestShell),T=JSON.stringify(Y.innerTubeRequest),Y.requestShell.method==="POST"&&(k=Object.assign({},k,{body:T})),N=function(pm,zR){AJ(W,zR.playerResponse||zR.watchNextResponse||zR.reelItemWatchResponse||zR.reelWatchSequenceResponse,Y);I==null||I(pm,zR)},Io={},_.S(nm,n8i(W.networkManager,Y.input,k,N),6);
case 6:return Io=nm.yieldResult,((F=Y.config)==null?0:F.responseTick)&&_.CK(Y.config.responseTick),nm.return(Io)}})};
_.$P=function(W,P,x,I,O){O=O===void 0?{authStrategy:{identity:ehb}}:O;var B=B===void 0?!0:B;var Y=function(){};
Y=seA(uco(x));P.context||(P.context=_.zHm(I,B));return new _.yE(function(K){var Z,d,v,m,t;return _.y(function(C){if(C.nextAddress==1)return Z=xCC(x),d=_.ai(Z),W.authService.syncHeaders?(v=OZZ(O,d),C.jumpTo(2)):_.S(C,JSk(O,d),3);C.nextAddress!=2&&(v=C.yieldResult);m=Ino(xCC(x));t={input:m,requestShell:bO(m),innerTubeRequest:P,config:O};K(Btb(W,t,v,Y));_.Kl(C)})})};
AJ=function(W,P,x){var I;if(P&&!(P==null?0:(I=P.sequenceMetaData)==null?0:I.skipProcessing)&&W.responseProcessorMap){I=_.n(Pn3);for(var O=I.next();!O.done;O=I.next())O=O.value,W.responseProcessorMap[O]&&W.responseProcessorMap[O].handleResponse(P,x)}};
Btb=function(W,P,x,I){I=I===void 0?function(){}:I;
var O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F,nm,pm,zR,Am,kW,$W,ao,e8,iC,hw,dk,Oc,Bm,GA,KM,PZ,j$,YW,QZ,ez,b3;return _.y(function(D3){switch(D3.nextAddress){case 1:Y=(O=P.config)==null?void 0:(B=O.storeStrategy)==null?void 0:B.storeKey;if(!(Y&&W.innertubeResponseStore&&W.innertubeResponseStore.has(Y))||((K=P.config)==null?0:(Z=K.storeStrategy)==null?0:Z.disableCache)){D3.jumpTo(2);break}return _.S(D3,W.innertubeResponseStore.get(Y),3);case 3:if((d=D3.yieldResult)&&!d.isExpired())return D3.return(Promise.resolve(_.Zs(d)));
case 2:if(!((v=P)==null?0:(m=v.innerTubeRequest)==null?0:m.context)){D3.jumpTo(4);break}t=P.innerTubeRequest.context;if(!(W.asyncContextProcessors&&W.asyncContextProcessors.length>0)){D3.jumpTo(5);break}C=[];z=_.n(W.asyncContextProcessors);for(D=z.next();!D.done;D=z.next())w=D.value,a=w.processContext(P),a.wrappedPromise_&&C.push(a.wrappedPromise_);if(!(C.length>0)){D3.jumpTo(5);break}return _.S(D3,Promise.all(C),5);case 5:k=_.n(W.contextProcessors||[]),T=k.next();case 8:if(T.done){D3.jumpTo(4);break}N=
T.value;return _.S(D3,N.processContext(t),9);case 9:T=k.next();D3.jumpTo(8);break;case 4:if((Io=W.localInnertubeRouter)==null||!Io.shouldPreferLocalResponse(P.input,P.innerTubeRequest)){D3.jumpTo(12);break}return _.S(D3,W.localInnertubeRouter.localInnertubeResponse(P.input,P.innerTubeRequest),13);case 13:return F=D3.yieldResult,AJ(W,F,P),D3.return(F);case 12:return(zR=(pm=P.config)==null?void 0:pm.requestKey)&&W.inflightRequests.has(zR)?nm=W.inflightRequests.get(zR):(Am=JSON.stringify(P.innerTubeRequest),
ao=($W=(kW=P.requestShell)==null?void 0:kW.headers)!=null?$W:{},P.requestShell=Object.assign({},P.requestShell,{headers:Object.assign({},ao,x)}),e8=Object.assign({},P.requestShell),P.requestShell.method==="POST"&&(e8=Object.assign({},e8,{body:Am})),((iC=P.config)==null?0:iC.requestTick)&&_.CK(P.config.requestTick),hw=function(){return W.networkManager.fetch(P.input,e8,P.config)},nm=W.requestSequencer?YYk(W.requestSequencer,P,hw):hw(),zR&&W.inflightRequests.set(zR,nm)),_.S(D3,nm,14);
case 14:(dk=D3.yieldResult)&&_.p("web_streaming_player")&&Array.isArray(dk)&&(dk=dk[0].playerResponse);if(dk&&"error"in dk&&((Oc=dk)==null?0:(Bm=Oc.error)==null?0:Bm.details))for(GA=dk.error.details,KM=_.n(GA),PZ=KM.next();!PZ.done;PZ=KM.next())j$=PZ.value,(YW=j$["@type"])&&xNM.indexOf(YW)>-1&&(delete j$["@type"],dk=j$);zR&&W.inflightRequests.has(zR)&&W.inflightRequests.delete(zR);((QZ=P.config)==null?0:QZ.responseTick)&&_.CK(P.config.responseTick);if(dk||(ez=W.localInnertubeRouter)==null||!ez.canProvideFallbackResponse(P.input,
P.innerTubeRequest)){D3.jumpTo(15);break}return _.S(D3,W.localInnertubeRouter.localFallbackInnertubeResponse(P.input,P.innerTubeRequest),16);case 16:dk=D3.yieldResult;case 15:return AJ(W,dk,P),((b3=P.config)==null?0:b3.processorTick)&&_.CK(P.config.processorTick),I(),D3.return(dk||void 0)}})};
_.ey=function(W,P){return YCU(P,W.endpointMap)};
JLc=function(W,P){W=KgC(P,W.endpointMap);if(W!==void 0)return Promise.resolve(W)};
JSk=function(W,P){var x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1){O=(x=W)==null?void 0:(I=x.authStrategy)==null?void 0:I.sessionIndex;var K=_.Jn(GZC({sessionIndex:O}));return _.S(Y,K,2)}B=Y.yieldResult;return Y.return(Promise.resolve(Object.assign({},ZeU(P),B)))})};
OZZ=function(W,P){var x;W=W==null?void 0:(x=W.authStrategy)==null?void 0:x.sessionIndex;x=GZC({sessionIndex:W});return Object.assign({},ZeU(P),x)};var ySl,Ktp,ZZk,o8p,SYc,uCP,v8m,mNk,EN,Vhz,thd,skc,p_k;ySl=0;Ktp=/tone[1-5]/;ZZk=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");o8p="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
SYc=Number.MAX_SAFE_INTEGER;uCP=RegExp("\ufe0f","g");_.zh=function(W){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;W&&_.dNl(this,W)};
_.dNl=function(W,P){try{_.yO(P,{context:W,onSuccess:function(I,O){Array.isArray(O)?W.load(O):(I=new _.mW("Emoji manager JSON response was not an array!",{response:O}),_.G$(I))},
onError:function(I){I=new _.mW("Failed to retrieve emoji manager initial JSON data!",{url:P,statusCode:_.I6(I).toString()});_.ge(I)}})}catch(I){var x=new _.mW("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:P});
_.ge(x)}};
_.zh.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.zh.prototype.load=function(W,P){if(P)if(W.length)W=W.concat(P.emojis);else{this.emojis=P.emojis;this.emojiMap=P.emojiMap;this.emojiShortcutMap=P.emojiShortcutMap;this.emojiShortcutCharMap=skc(P);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=P.emojiRegex;return}this.emojis=[].concat(_.ju(new Set(this.emojis.concat(W))));this.hasInitializedShortcutCharMap=!1;W=Array(this.emojis.length);for(P=0;P<this.emojis.length;P++){var x=this.emojis[P];if(x.emojiId){this.emojiMap[x.emojiId]=x;this.emojiMap[x.emojiId].index=
P;for(var I=0;x.shortcuts&&I<x.shortcuts.length;I++)this.emojiShortcutMap[x.shortcuts[I].toLocaleLowerCase()]=x;W[P]=x.isCustomEmoji&&x.shortcuts?x.shortcuts[0]:x.emojiId}}W.sort(function(O,B){return B.length-O.length});
if(W.length)try{this.emojiRegex=new RegExp(W.join("|").replace("*","\\*"),"gi")}catch(O){this.emojiRegex=/$./}else this.emojiRegex=/$./};
v8m=function(W,P){P=_.n(P);for(var x=P.next();!x.done;x=P.next()){var I=x.value;if(I.emojiId&&W.emojiMap[I.emojiId]){x=Object.assign({},W.emojiMap[I.emojiId],I);W.emojiMap[I.emojiId]=x;var O=void 0;x.index&&((O=W.emojis[x.index])==null?void 0:O.emojiId)===I.emojiId&&(W.emojis[x.index]=x);I=void 0;if((I=x.shortcuts)==null?0:I.length)for(W.hasInitializedShortcutCharMap=!1,I=_.n(x.shortcuts),O=I.next();!O.done;O=I.next())W.emojiShortcutMap[O.value.toLocaleLowerCase()]=x}}};
mNk=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,_.QI.getInstance(),2);if(I.nextAddress!=3)return(P=I.yieldResult)?_.S(I,P.get("ytlc-emoji-pref"),3):I.return();(x=I.yieldResult)&&v8m(W,Object.keys(x).map(function(O){return{emojiId:O,stickyPrefId:x[O]}}).filter(function(O){return!!O.emojiId&&!!O.stickyPrefId}));
_.Kl(I)})};
_.Gh=function(W,P,x){return(W=W.emojiMap[P])&&(!W.isLocked||x!==void 0&&x)?W:void 0};
EN=function(W,P,x){x=_.Gh(W,P,x===void 0?!1:x);var I=P.match("\u200d");x&&W.skinTone!==0&&(W=(I==null?void 0:I.length)===1?_.Gh(W,P.replace("\u200d",ZZk[W.skinTone]+"\u200d")):_.Gh(W,P+ZZk[W.skinTone]))&&(x=W);return x};
Vhz=function(W,P){var x=W.emojiMap[P];return(x==null?0:x.stickyPrefId)?W.emojiMap[x.stickyPrefId]:EN(W,P)};
_.t3=function(W,P){W=W.emojiShortcutMap[P.toLocaleLowerCase()];return!W||W.isLocked?null:W};
thd=function(W,P,x){return skc(W,x===void 0?!1:x)[P]||{}};
skc=function(W,P){P=P===void 0?!1:P;if(!W.hasInitializedShortcutCharMap){W.hasInitializedShortcutCharMap=!0;for(var x=0;x<W.emojis.length;x++){var I=W.emojis[x];if(!(I.isLocked||P&&I.isCustomEmoji&&I.emojiId&&!W.pickerCustomEmojiIds.includes(I.emojiId)))for(var O=0;I.shortcuts&&O<I.shortcuts.length;O++){var B=I.shortcuts[O];B.startsWith(":_")&&I.isCustomEmoji&&(W.emojiShortcutCharMap[":_"]==null&&(W.emojiShortcutCharMap[":_"]=Object.create(null)),W.emojiShortcutCharMap[":_"][B]=I);if(!(B.length<3||
!I.isCustomEmoji&&Ktp.test(B))){var Y=B.substr(0,3).toLocaleLowerCase();W.emojiShortcutCharMap[Y]==null&&(W.emojiShortcutCharMap[Y]=Object.create(null));W.emojiShortcutCharMap[Y][B]=I}}}}return W.emojiShortcutCharMap};
_.zh.prototype.createEmoji=function(W,P){P=P===void 0?!0:P;var x=document.createElement("img");W.isCustomEmoji||x.classList.add("small-emoji");x.classList.add("emoji");x.classList.add("yt-formatted-string");x.src=W.image?_.Tm(W.image.thumbnails,this.emojiSize)||"":"";var I=void 0;W.image&&W.image.accessibility&&W.image.accessibility.accessibilityData&&(I=W.image.accessibility.accessibilityData.label);x.alt=I?I:(W.isCustomEmoji&&W.shortcuts?W.shortcuts[0]:W.emojiId)||"";W.isCustomEmoji&&(x.dataset.emojiId=
W.emojiId);_.yo&&(x.setAttribute("contenteditable","false"),x.setAttribute("unselectable","on"));P&&(W.shortcuts&&W.shortcuts.length&&x.setAttribute("shared-tooltip-text",W.shortcuts[0]),x.id="emoji-"+ySl++);return x};
_.zh.prototype.createDocumentFragment=function(W,P,x,I){P=P===void 0?!1:P;x=x===void 0?!0:x;I=I===void 0?!1:I;W=W.replace(uCP,"");for(var O=document.createDocumentFragment(),B=0,Y,K=0;(Y=this.emojiRegex.exec(W))!=null;){var Z=_.Gh(this,Y[0])||_.t3(this,Y[0]);!Z||Z.isCustomEmoji&&!P||(Z=this.createEmoji(Z,x),B!==Y.index&&O.appendChild(document.createTextNode(W.substring(B,Y.index))),O.appendChild(Z),B=Y.index+Y[0].length,K++)}if(!I||K)return O.appendChild(document.createTextNode(W.substr(B))),O};
p_k=function(W,P,x){var I,O,B,Y,K,Z,d,v,m;return _.y(function(t){if(t.nextAddress==1){if(!P.emojiId||!W.emojiMap[P.emojiId])return t.return();I=Object.assign({},W.emojiMap[P.emojiId],{stickyPrefId:x});W.emojiMap[P.emojiId]=I;P.index&&((O=W.emojis[P.index])==null?void 0:O.emojiId)===P.emojiId&&(W.emojis[P.index]=I);if((B=P.shortcuts)==null?0:B.length)for(W.hasInitializedShortcutCharMap=!1,Y=_.n(P.shortcuts),K=Y.next();!K.done;K=Y.next())Z=K.value,W.emojiShortcutMap[Z.toLocaleLowerCase()]=I;return _.S(t,
_.QI.getInstance(),2)}if(t.nextAddress!=4)return(d=t.yieldResult)?_.S(t,d.get("ytlc-emoji-pref"),4):t.jumpTo(0);m=(v=t.yieldResult)!=null?v:{};m[P.emojiId]=x;return _.S(t,d.set("ytlc-emoji-pref",m,SYc),0)})};
_.gy=new _.zh;var Cnb;_.DF={};
Cnb={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.p("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:_.p("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 cu(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 W=_.g(this.hostElement||this).querySelector("#inline-action-button-container");W&&W.setAttribute("aria-hidden","true");this.menuButton=_.g(this.hostElement).querySelector("#menu-button")},
attached:function(){var W=this.menuButton;W&&(W.addEventListener("focusin",_.WM(this,this.onMenuButtonFocus_)),W.addEventListener("focusout",_.WM(this,this.onMenuButtonBlur_)))},
detached:function(){var W=this.menuButton;W&&(W.removeEventListener("focusin",_.WM(this,this.onMenuButtonFocus_)),W.removeEventListener("focusout",_.WM(this,this.onMenuButtonBlur_)))},
identity:_.UU,truthy:function(W){return!!W},
computeTimestampString:function(W){return W?W.timestampText?this.getSimpleString(W.timestampText):this.TIME_FORMATTER.format(new Date(W.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(W){return _.p("live_chat_whole_message_clickable")&&W},
computeMenuVisible_:function(W,P){return W||P},
computeHasInlineActionButtons:function(W){if(!W)return!1;var P,x;return!((P=W.inlineActionButtons)==null||!P.length)||!((x=W.additionalInlineActionButtons)==null||!x.length)},
createDocumentFragmentFromString:function(W){var P=_.gy.createDocumentFragment.bind(_.gy),x;if((x=this.participantsManager)==null||!x.viewerRegex)return P(W);x=document.createDocumentFragment();for(var I=0,O;(O=this.participantsManager.viewerRegex.exec(W))!=null;){if(O.index>0){var B=":"+O[0]+":";if((_.Gh(_.gy,B)||_.t3(_.gy,B))&&W.indexOf(B)===O.index-1)continue}x.appendChild(P(W.substring(I,O.index)));I=document.createElement("span");I.appendChild(P(O[0]));I.classList.add("mention");x.appendChild(I);
I=O.index+O[0].length}x.appendChild(P(W.substring(I)));return x},
createDocumentFragment:function(W){var P=document.createDocumentFragment();if(W.simpleText)return P.appendChild(this.createDocumentFragmentFromString(W.simpleText)),P;if(!W.runs)return P;for(var x=0;x<W.runs.length;x++){var I=W.runs[x];if(I.emoji)P.appendChild(_.gy.createEmoji(I.emoji));else if(I.text)if(I.navigationEndpoint){var O=document.createElement("a");O.classList.add("yt-simple-endpoint");Tcm(O,I.navigationEndpoint);_.g(O).appendChild(this.createDocumentFragmentFromString(I.text));P.appendChild(O)}else P.appendChild(this.createDocumentFragmentFromString(I.text))}return P},
hasModerationOverlayVisible:function(){var W;return((W=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:W.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(W){W.composedPath().some(function(P){return(P=P instanceof Element?P:null)?P.tagName&&(P.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||P.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.p("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(W)},
colorFromDecimal:function(W){return Wot(W)},
markAsDeleted:function(W,P){this.set("data.deletedStateMessage",W);this.set("data.showOriginalContentMessage",P)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(W){if(this.data.contextMenuEndpoint){var P=_.FY().resolve(_.v5),x=this.data.contextMenuEndpoint,I;(I=_.HF.instance)&&_.ey(I,x)?(P=jkl(P,x),I=_.$P(I,{},P)):I=_.QkA(P,x);I.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);W&&W.stopPropagation()}},
handleGetContextMenuResponse_:function(W){var P=_.HF.instance;P&&_.ey(P,{liveChatEndpoint:{}})||(W=W.response);W.liveChatItemContextMenuSupportedRenderers&&W.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(W.liveChatItemContextMenuSupportedRenderers.menuRenderer);W.actions&&_.W7(this.hostElement,"yt-live-chat-actions",[W.actions])},
handleGetContextMenuError:function(W){if(W instanceof Error||W instanceof Object||W instanceof String)var P=W;_.G$(new _.mW("Error encountered calling GetLiveChatItemContextMenu",P))},
showContextMenu_:function(W){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:W}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Lf(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Lf(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.DF.YtLiveChatItemBehavior=[Cnb,_.gb.YtComponentBehavior,_.xX.YtOpenPopupBehavior];_.Mo=function(){};var ASp;var z4c;var Gfz;var E8A;var $X=function(){var W=_.b.apply(this,arguments)||this;W.active=!1;W.identity=_.UU;return W};
_.A($X,_.b);$X.prototype.dataChanged=function(){this.active=!1};
$X.prototype.onClick=function(){_.Lf(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
$X.prototype.dataChanged=$X.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],$X.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$X.prototype,"active",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$X.prototype,"dataChanged",null);$X=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],$X);
_.X($X,"yt-live-chat-text-input-field-suggestion",function(){if(E8A===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Gfz===void 0&&(Gfz=document.createElement("template"));var I=Gfz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);E8A=W}W=E8A;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});_.wy=function(W,P,x){return CustomEvent.call(this,W,{detail:{value:P,path:x}})||this};
_.A(_.wy,CustomEvent);_.hJ=function(){var W=_.b.apply(this,arguments)||this;W.viewerName=null;W.actionMap={"yt-live-chat-actions":"onChatMessage_"};W.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];W.PARTICIPANT_TIME_USEC_=3E8;return W};
_.A(_.hJ,_.b);_.J=_.hJ.prototype;_.J.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.J.addParticipant=function(W){var P=_.pdU(this.participants,W,function(I,O){I=I[Object.keys(I)[0]];O=O[Object.keys(O)[0]];I=String(_.kz(I.authorName)).toLowerCase();O=String(_.kz(O.authorName)).toLowerCase();return I<O?-1:I==O?0:1}.bind(this));
if(P>=0){var x=this.participants[P];x[Object.keys(x)[0]].timestampUsec&&this.splice("participants",P,1,W)}else this.splice("participants",-P-1,0,W);W=W[Object.keys(W)[0]];P=_.kz(W.authorName).toLocaleLowerCase();x=P.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(x)||(this.allParticipantsCharMap_[x]={});this.allParticipantsCharMap_[x][P]=W};
_.J.getAuthorsFromPrefix=function(W){return this.allParticipantsCharMap_.hasOwnProperty(W)?this.allParticipantsCharMap_[W]:null};
_.J.computeViewerRegex_=function(W){if(!W)return null;W=W.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.p("enable_web_yt_handles")||_.p("enable_live_chat_yt_handles")?new RegExp("([#]"+W.replace(/ /g,"\\s*")+"|^"+W.replace(/ /g,"\\s*")+"$|^"+W.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+W.replace(/ /g,"\\s*")+"$|(?<=\\s)"+W.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+W.replace(/ /g,"\\s*")+"|^"+W.replace(/ /g,"\\s*")+"$|^"+W.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+W.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+W.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.J.checkForStaleParticipants_=function(){var W=this;this.trimOldParticipants_();this.asyncHandle_&&zZG(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.gY(function(){W.checkForStaleParticipants_()},3E4))};
_.J.onChatMessage_=function(W){var P=this,x=Date.now()*1E3;W.forEach(function(I){if(I=_.Q(I,Lzb)){I=I.item;var O=Object.keys(I)[0];P.SUPPORTED_ITEM_TYPES_.indexOf(O)!=-1&&I[O].timestampUsec>=x-P.PARTICIPANT_TIME_USEC_&&P.addParticipant(I)}},this);
this.checkForStaleParticipants_()};
_.J.trimOldParticipants_=function(){for(var W=Date.now()*1E3,P=this.participants.length-1;P>=0;P--){var x=this.participants[P];x=x[Object.keys(x)[0]];x.timestampUsec&&x.timestampUsec<W-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",P,1)}};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],_.hJ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],_.hJ.prototype,"viewerName",void 0);_.f([_.c({computed:"computeViewerRegex_(viewerName)"}),_.l("design:type",Object)],_.hJ.prototype,"viewerRegex",void 0);_.f([_.c({value:function(){return[]},
notify:!0}),_.l("design:type",Array)],_.hJ.prototype,"participants",void 0);_.hJ=_.f([_.jd({is:"yt-live-chat-participants-manager",noInjection:!0})],_.hJ);var g8z=/.*([:@#].*?)$/,HU=/\u00a0/g,DN3=String.fromCharCode(160),MhW={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"},ef=function(){var W=_.b.apply(this,arguments)||this;W.disabled=!1;W.liveChatRichMessageInput=null;W.messageInput=null;W.isValidWithNoInputText=!1;W.suggestions=[];W.emojiManager=_.gy;W.inputMethodEditorActive=
!1;W.suggestionIndex=-1;W.JSC$11863_lastSuggestionRange=null;return W};
_.A(ef,_.b);_.J=ef.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.J.attached=function(){_.KW&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.J.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.J.dataChanged=function(){if(!this.ignoreColorMapping){var W=!1,P={},x;for(x in MhW)this.data&&this.data.hasOwnProperty(x)&&(P[MhW[x]]=this.colorFromDecimal(this.data[x]),W=!0);W&&_.qa(this.hostElement,P)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.J.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.J.colorFromDecimal=function(W){W=Math.floor(Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
_.J.preventDrag=function(W){W.dataTransfer&&(W.dataTransfer.dropEffect="none");W.preventDefault()};
_.J.preventResize=function(W){W.returnValue=!1};
_.J.onInputChange=function(){var W=this.characterCount,P=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&P&&P.remove();if(!P&&this.characterCount>this.maxCharacterLimit){var x=window.getSelection();if(x){var I=x.getRangeAt(0);x.removeAllRanges();x.addRange(I)}}if(x=this.getCurrentRange())I=this.calculateTextBeforeRange(x),this.completeEmojisInRange(x,I,!0)||this.updateSuggestions(x,I);I=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(I);
_.Lf(this.hostElement,"yt-live-chat-message-input-change",I);P&&this.characterCount===0&&P.remove();x&&x.commonAncestorContainer.parentElement.id==="input"&&x.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>W):x&&!x.collapsed&&x.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(W=this.input.childNodes.length-1;W>=0;W--)this.input.childNodes[W].nodeName==="BR"&&this.input.childNodes[W].remove()};
_.J.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.J.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var W=this.getCurrentRange();W&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.mergeOverflowText=function(W){if(W){var P=document.createRange();P.selectNodeContents(W);P=P.extractContents();this.input.insertBefore(P,W)}};
_.J.checkRangeAtEndOfInput=function(){var W=this.getCurrentRange();if(W){var P=_.g(this.hostElement).querySelector("#overflow-text"),x=document.createRange();P&&P.previousSibling?P.previousSibling instanceof HTMLImageElement?x.selectNode(P.previousSibling):x.selectNodeContents(P.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?x.selectNode(this.input.lastChild):x.selectNodeContents(this.input.lastChild));x.collapse(!1);return x.isPointInRange(W.startContainer,
W.startOffset)}return!1};
_.J.handleOverflowText=function(W){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var P=_.g(this.hostElement).querySelector("#overflow-text"),x=this.getCurrentRange();this.input.normalize();W=this.checkRangeAtEndOfInput()&&W;this.mergeOverflowText(P);for(var I,O=0,B=0,Y,K=this.input.childNodes,Z=0;Z<K.length;Z++){var d=K[Z];d instanceof Text?(B+=d.textContent.length,B>this.maxCharacterLimit&&(I=d,O=this.maxCharacterLimit+d.textContent.length-B)):d instanceof HTMLImageElement&&
(I=void 0,B=d.dataset.emojiId&&((I=this.data)==null?0:I.emojiCharacterCount)?B+this.data.emojiCharacterCount:B+d.alt.length,I=this.input,O=Z);if(B>this.maxCharacterLimit&&I){Y=document.createRange();Y.collapse(!1);P?(B=this.input.lastChild.previousSibling,B instanceof Text?Y.setEnd(this.input.lastChild.previousSibling,B.textContent.length):B instanceof HTMLImageElement&&Y.setEnd(this.input,this.input.childNodes.length-1)):Y.selectNodeContents(this.input);Y.setStart(I,O);break}}Y&&(I=!1,x&&(W=Y.isPointInRange(x.startContainer,
x.startOffset-1)),P||(P=document.createElement("span"),P.id="overflow-text",P.textContent="",P.setAttribute("contenteditable","true"),_.g(_.g(this.hostElement).querySelector("#input")).appendChild(P),I=!0),P&&(x=Y.extractContents(),P.insertBefore(x,P.firstChild),W&&P.firstChild&&(x=document.createRange(),I?x.setStartAfter(P.lastChild):x.setStartAfter(P.firstChild),x.collapse(!0),P=window.getSelection(),P.removeAllRanges(),P.addRange(x))))}};
_.J.checkForDuplicateSpans=function(){for(var W=0;W<this.input.childNodes.length;W++){var P=this.input.childNodes[W];if(P.nodeName==="SPAN"){var x=document.createRange();x.selectNodeContents(P);x=x.extractContents();this.input.insertBefore(x,P);P.remove()}}this.handleOverflowText(!0)};
_.J.getCurrentRange=function(){var W=window.getSelection();return W&&W.rangeCount?W.getRangeAt(0).cloneRange():null};
_.J.getInputRange=function(){var W=this.getCurrentRange();if(W){for(var P=W.commonAncestorContainer,x=!1,I=_.g(this.hostElement).querySelector("#input");P;){if(P===I){x=!0;break}P=P.parentNode}x||(W=null)}W||(W=this.getRangeAtEnd());return W};
_.J.getRangeAtEnd=function(){var W=document.createRange(),P=_.g(this.hostElement).querySelector("#input").lastChild;!P||P.nodeName!=="#text"&&P.nodeName!=="SPAN"?(W.selectNodeContents(_.g(this.hostElement).querySelector("#input")),W.collapse(!1)):P.nodeName==="#text"?W.setStart(P,P.textContent.length):W.setStart(P,P.childNodes.length);return W};
_.J.getSuggestions=function(W){var P=[],x=W.substring(0,3),I=thd(_.gy,x,!0);if(I)for(var O in I)if(O.toLocaleLowerCase().indexOf(W)===0){var B=I[O];if(B&&B.emojiId){if(B=Vhz(_.gy,B.emojiId)){var Y=void 0,K=void 0,Z=void 0,d=void 0,v=((Y=B.image)==null?0:(K=Y.accessibility)==null?0:(Z=K.accessibilityData)==null?0:Z.label)||B.isCustomEmoji?(d=B.shortcuts)==null?void 0:d[0]:B.emojiId;P.push({suggestion:{emoji:!0,image:B.image,alt:v,text:O,textToInsertWhenSelected:B.isCustomEmoji?O:v}})}if(P.length>=
64)break}}if(!this.participantsManager)return null;I=_.p("enable_web_yt_handles")||_.p("enable_live_chat_yt_handles");if(x.indexOf("@")===0||x.indexOf("#")===0)if(O=x.charAt(0),W=W.substring(1),x=I&&x.indexOf("@")===0?x.substring(0,2):x.substring(1),x=this.participantsManager.getAuthorsFromPrefix(x))for(var m in x)if(m.indexOf(W)===0||I&&m.indexOf(O+W)===0)if(B=x[m],Y=_.kz(B.authorName),P.push({suggestion:{author:!0,authorType:O,image:B.authorPhoto,alt:Y,text:Y}}),P.length>=64)break;return P?P.sort(function(t,
C){return C.suggestion.text<t.suggestion.text?-1:C.suggestion.text===t.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(W){var P=_.p("enable_web_yt_handles")||_.p("enable_live_chat_yt_handles")?W.text+DN3:W.authorType+W.text+DN3;W.emoji?this.insertTextAtRange(this.JSC$11863_lastSuggestionRange,W.textToInsertWhenSelected||""):W.author&&this.insertTextAtRange(this.JSC$11863_lastSuggestionRange,P)};
_.J.updateSuggestionsAtCaret=function(){var W=this.getCurrentRange();W&&this.updateSuggestions(W,this.calculateTextBeforeRange(W))};
_.J.offsetStartOfRangeBy=function(W,P){for(;P>0;)if(W.startOffset-P>=0){W.setStart(W.startContainer,W.startOffset-P);break}else{P=W.startContainer instanceof HTMLImageElement?P-W.startContainer.alt.length:P-W.startOffset;var x=W.startContainer.previousSibling;if(!x){W.setStart(W.startContainer,0);break}if(_.p("live_chat_require_space_for_autocomplete_emoji")){var I=void 0,O=void 0;W.setStart(x,((I=x)==null?void 0:(O=I.textContent)==null?void 0:O.length)||0)}else W.setStart(x,x.childNodes.length||
0)}};
_.J.updateSuggestions=function(W,P){var x=this;this.JSC$11863_lastSuggestionRange&&(this.JSC$11863_lastSuggestionRange.detach(),this.JSC$11863_lastSuggestionRange=null);if((P=g8z.exec(P))&&P.length&&(P=P[P.length-1].toLocaleLowerCase(),P.length>2&&(this.offsetStartOfRangeBy(W,P.length),this.JSC$11863_lastSuggestionRange=W,(W=this.getSuggestions(P))&&W.length))){this.suggestions=W;_.Xm(this,function(){_.g(x.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.J.completeEmojisInRange=function(W,P,x){var I=P.replace(/[\s\xa0]+$/,"");P=P.length-I.length;I=I.split(" ");I=I[I.length-1].trim().toLocaleLowerCase();var O=I.lastIndexOf(":");if(x&&!P&&O!==I.length-1)return!1;O!==-1&&(x=I.lastIndexOf(":",O-1),x!==-1&&(I=I.substring(x)));if((x=_.t3(_.gy,I))&&x.emojiId){x=Vhz(_.gy,x.emojiId)||null;this.offsetStartOfRangeBy(W,I.length+P);var B,Y,K,Z;I=(((B=x)==null?0:B.isCustomEmoji)?(Y=x)==null?void 0:(K=Y.shortcuts)==null?void 0:K[0]:(Z=x)==null?void 0:Z.emojiId)||
"";P&&(I+=DN3);this.insertTextAtRange(W,I);this.dropdown.opened=!1;return!0}return!1};
_.J.onSuggestion=function(W){this.insertSuggestion(W.detail);this.dropdown.opened=!1};
_.J.onKeyPress=function(W){W.keyCode===13&&(W.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Lf(this.hostElement,"yt-live-chat-send-message"))};
_.J.completeEmojis=function(){var W=document.createRange(),P=_.g(this.hostElement).querySelector("#input").lastChild;P?W.setStart(P,P.childNodes.length):(W.selectNodeContents(_.g(this.hostElement).querySelector("#input")),W.collapse(!1));this.completeEmojisInRange(W,this.calculateTextBeforeRange(W),_.p("live_chat_require_space_for_autocomplete_emoji"))};
_.J.maybePreventTextFormatting=function(W){!_.u9||!W.ctrlKey&&!W.metaKey||W.keyCode!==66&&W.keyCode!==73||(W.stopImmediatePropagation(),W.preventDefault())};
_.J.onKeyDown=function(W){this.maybePreventTextFormatting(W);if(this.dropdown.opened)switch(W.keyCode){case 27:this.dropdown.opened=!1;W.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;W.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.J.onKeyUp=function(W){switch(W.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.yo)this.onInputChange()};
_.J.changeSuggestionIndex=function(W){if(this.dropdown.opened){var P=_.g(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<P.children.length&&(P.children[this.suggestionIndex].active=!1);var x=this.suggestions.length;this.suggestionIndex=(W+x)%x;W=P.children[this.suggestionIndex];W.active=!0;P.scrollTop=W.offsetTop}};
_.J.onInputPaste=function(W){W.preventDefault();(W=W.clipboardData)&&W.types&&(W=W.getData("text/plain")||"",W=W.replace(/\n/g,""),this.insertText(W));(W=this.getCurrentRange())&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.onFocus=function(){this._setFocused(!0)};
_.J.onBlur=function(){this._setFocused(!1)};
_.J.insertText=function(W){this.insertTextAtRange(this.getInputRange(),W)};
_.J.insertTextAtRange=function(W,P){if(W&&(W.collapsed||W.deleteContents(),P=_.gy.createDocumentFragment(P,!0,!1))){for(var x=_.n((P==null?void 0:P.childNodes)||[]),I=x.next();!I.done;I=x.next()){I=I.value;var O=void 0,B=void 0,Y=void 0,K=void 0,Z=void 0;(Y=(O=window)==null?void 0:(B=O.ShadyCSS)==null?void 0:B.ScopingShim)==null||(Z=(K=Y).scopeNode)==null||Z.call(K,I,this.hostElement.localName)}x=P.lastChild;W.insertNode(P);this.focused||this.input.focus();if(this.focused){W=W.cloneRange();W.selectNodeContents(x);
W.collapse(!1);if(P=window.getSelection())P.removeAllRanges(),P.addRange(W);W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}W=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(W);_.Lf(this.hostElement,"yt-live-chat-message-input-change",W)}};
_.J.setLiveChatRichMessageInput=function(W){_.g(_.g(this.hostElement).querySelector("#input")).textContent="";if(W&&W.textSegments){for(var P=0;P<W.textSegments.length;P++){var x=W.textSegments[P];x.text?_.g(_.g(this.hostElement).querySelector("#input")).appendChild(_.gy.createDocumentFragment(x.text,!0,!1)):x.emojiId&&(x=_.Gh(_.gy,x.emojiId))&&_.g(_.g(this.hostElement).querySelector("#input")).appendChild(_.gy.createEmoji(x,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.J.setText=function(W){this.setLiveChatRichMessageInput(W?{textSegments:[{text:W}]}:null)};
_.J.calculateTextBeforeRange=function(W){var P="",x=W.startContainer;if(x&&x instanceof Text){var I;P=((I=x.textContent)==null?void 0:I.substring(0,W.startOffset))||"";x=x.previousSibling}for(;x&&x instanceof Text;)P=x.textContent+P,x=x.previousSibling;return P.replace(HU," ")};
_.J.calculateLiveChatRichMessageInput=function(){for(var W=[],P="",x=_.g(_.g(this.hostElement).querySelector("#input")).childNodes,I=0;I<x.length;I++){var O=x[I];O instanceof Text?P+=O.textContent:O instanceof HTMLImageElement&&(O.dataset.emojiId?(P&&(W.push({text:P.replace(HU," ")}),P=""),W.push({emojiId:O.dataset.emojiId})):P+=O.alt)}P&&W.push({text:P.replace(HU," ")});if(x=_.g(this.hostElement).querySelector("#overflow-text")){P="";x=x.childNodes;for(I=0;I<x.length;I++)O=x[I],O instanceof Text?
P+=O.textContent:O instanceof HTMLImageElement&&(O.dataset.emojiId?(P&&(W.push({text:P.replace(HU," ")}),P=""),W.push({emojiId:O.dataset.emojiId})):P+=O.alt);P&&W.push({text:P.replace(HU," ")})}return{textSegments:W}};
_.J.computeCharacterCount=function(W){if(!W||!W.textSegments)return 0;for(var P=0,x=0;x<W.textSegments.length;x++){var I=W.textSegments[x];if(I.text)P+=I.text.length;else if(I.emojiId){var O=void 0;if((O=this.data)==null?0:O.emojiCharacterCount)P+=this.data.emojiCharacterCount;else{var B=O=void 0,Y=void 0;P+=((B=_.Gh(_.gy,(O=I)==null?void 0:O.emojiId))==null?void 0:(Y=B.shortcuts)==null?void 0:Y[0].length)||0}}}return P};
_.J.characterCountChanged=function(){_.Lf(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.J.focusedChanged=function(){this.hostElement.dispatchEvent(new _.wy("focused-changed",this.focused))};
_.J.focus=function(){this.setFocus(!1)};
_.J.focusAtEnd=function(){this.setFocus(!0)};
_.J.setFocus=function(W){W=W?this.getRangeAtEnd():this.getInputRange();_.g(this.hostElement).querySelector("#input").focus();var P=window.getSelection();P&&(P.removeAllRanges(),P.addRange(W))};
_.J.insertEmoji=function(W){var P,x=((W==null?0:W.isCustomEmoji)?(P=W.shortcuts)==null?void 0:P[0]:W==null?void 0:W.emojiId)||"";this.insertText(x)};
_.J.computeText=function(W){if(!W||!W.textSegments)return"";for(var P="",x=0;x<W.textSegments.length;x++){var I=W.textSegments[x];if(I.text)P+=I.text;else if(I.emojiId){var O=void 0,B=void 0,Y=void 0;P+=((B=_.Gh(_.gy,(O=I)==null?void 0:O.emojiId))==null?void 0:(Y=B.shortcuts)==null?void 0:Y[0])||""}}return P};
_.J.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.N1.Object.defineProperties(ef.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
ef.prototype.focusedChanged=ef.prototype.focusedChanged;ef.prototype.characterCountChanged=ef.prototype.characterCountChanged;ef.prototype.onSuggestion=ef.prototype.onSuggestion;ef.prototype.onMessageSet=ef.prototype.onMessageSet;ef.prototype.dataChanged=ef.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],ef.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ef.prototype,"disabled",void 0);_.f([_.H("disabled"),_.l("design:type",Number),_.l("design:paramtypes",[])],ef.prototype,"inputTabIndex",null);_.f([_.H("data.maxCharacterLimit"),_.c({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],ef.prototype,"maxCharacterLimit",null);
_.f([_.H("liveChatRichMessageInput"),_.c({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],ef.prototype,"characterCount",null);_.f([_.H("maxCharacterLimit, characterCount"),_.c({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],ef.prototype,"remainingCharacterCount",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ef.prototype,"isChatMessageInput",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ef.prototype,"inputExpanded",void 0);_.f([_.c({readOnly:!0,notify:!0}),_.l("design:type",Object)],ef.prototype,"liveChatRichMessageInput",void 0);_.f([_.c(),_.l("design:type",Object)],ef.prototype,"messageInput",void 0);_.f([_.c(),_.l("design:type",Boolean)],ef.prototype,"ignoreColorMapping",void 0);_.f([_.H("characterCount"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ef.prototype,"hasText",null);
_.f([_.c(),_.l("design:type",Object)],ef.prototype,"isValidWithNoInputText",void 0);_.f([_.H("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.c(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ef.prototype,"isInputValid",null);_.f([_.c({readOnly:!0,value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],ef.prototype,"focused",void 0);_.f([_.c(),_.l("design:type",Array)],ef.prototype,"suggestions",void 0);
_.f([_.c(),_.l("design:type",_.zh)],ef.prototype,"emojiManager",void 0);_.f([_.c(),_.l("design:type",_.hJ)],ef.prototype,"participantsManager",void 0);_.f([_.c(),_.l("design:type",Boolean)],ef.prototype,"noUnderline",void 0);_.f([_.c(),_.l("design:type",Object)],ef.prototype,"inputMethodEditorActive",void 0);_.f([_.BM("#dropdown"),_.l("design:type",Object)],ef.prototype,"dropdown",void 0);_.f([_.BM("#input"),_.l("design:type",HTMLElement)],ef.prototype,"input",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ef.prototype,"dataChanged",null);_.f([_.OZ("messageInput"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ef.prototype,"onMessageSet",null);_.f([_.I7("yt-live-chat-select-suggestion"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ef.prototype,"onSuggestion",null);
_.f([_.OZ("characterCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ef.prototype,"characterCountChanged",null);_.f([_.OZ("focused"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ef.prototype,"focusedChanged",null);ef=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],ef);
_.$NZ=_.X(ef,"yt-live-chat-text-input-field-renderer",function(){if(z4c===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;ASp===void 0&&(ASp=document.createElement("template"));var I=ASp;x.call(P,I.content.cloneNode(!0),W.content.firstChild);z4c=W}W=z4c;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var cU=function(){var W=_.b.apply(this,arguments)||this;W.buttonOverrides={style:"overlay",type:"filled"};W.allowAnimations=!1;W.modern=_.p("web_button_rework_with_live");W.noPadding=!1;return W};
_.A(cU,_.b);_.J=cU.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.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"}}}}};
_.J.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.attached=function(){this.allowAnimations=!1};
_.J.dataChanged=function(){if(this.data){var W={"--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)};_.qa(this.hostElement,W);this.allowAnimations=!0}};
_.J.messageChanged=function(){var W,P=(W=this.data)==null?void 0:W.message;W=_.g(_.g(this.hostElement).querySelector("#message"));W.textContent="";P&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(P))};
_.J.computeShowOnlyHeader=function(W,P){return!W||W.pdgLikeButton||W.replyButton||W.buyFlowButton?!1:this.isEmpty(W,P)&&!W.footer};
_.J.computeShowFooterDivider=function(W,P,x){return W?!!W.footer&&!this.isEmpty(W,P)&&!x:!1};
_.J.computeIsUserEditable=function(W){return!!W.inputField};
_.J.computeHasHeartButton=function(W){return(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.J.computeNoveltyImage=function(W){if(W.headerOverlayImage&&W.headerOverlayImage.thumbnails.length){var P=W.headerOverlayImage.thumbnails[0],x,I;if((x=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(I=x.loggingDirectives)==null?0:I.trackingParams){var O,B;ejU((O=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(B=O.loggingDirectives)==null?void 0:B.trackingParams)}return P.width||0}return 0};
_.J.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.J.inputFocus=function(){var W=_.g(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.focus()};
_.J.inputInsertEmoji=function(W){var P=_.g(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");P&&P.insertEmoji(W)};
_.J.inputMessage=function(){var W=_.g(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),P;return W&&((P=this.data)==null?0:P.inputField)?(W.completeEmojis(),_.$C(W.liveChatRichMessageInput)):null};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.J.isEmpty=function(W,P){return W?W.empty||!(W.message||W.inputField||P):!0};
_.J.onLowerBuyButtonClick=function(){var W,P=_.Q((W=this.data)==null?void 0:W.buyButton,_.w6);P&&P.trackingParams&&!xXo(P.command)&&(W=_.ox(P.trackingParams))&&(P=_.E_())&&_.bB(P,W)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.N1.Object.defineProperties(cU.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
cU.prototype.isDeletedChanged=cU.prototype.isDeletedChanged;cU.prototype.messageChanged=cU.prototype.messageChanged;cU.prototype.dataChanged=cU.prototype.dataChanged;_.f([_.h(u$k.YtPdgLiveChatItemBehavior),_.l("design:type",Object)],cU.prototype,"ytPdgLiveChatItemBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],cU.prototype,"ytLiveChatReduxBehavior",void 0);
_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],cU.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cU.prototype,"data",void 0);_.f([_.c({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:hjm}),_.l("design:type",Object)],cU.prototype,"engagementState",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.l("design:type",Boolean)],cU.prototype,"isUserEditable",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.l("design:type",Boolean)],cU.prototype,"hasHeartButton",void 0);_.f([_.c({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.l("design:type",Boolean)],cU.prototype,"showOnlyHeader",void 0);
_.f([_.c({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.l("design:type",Boolean)],cU.prototype,"showFooterDivider",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],cU.prototype,"allowAnimations",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],cU.prototype,"dashboardMoneyFeed",void 0);_.f([_.c({computed:"computeNoveltyImage(data)"}),_.l("design:type",Number)],cU.prototype,"noveltyWidth",void 0);
_.f([_.c({computed:"computeAuthorPhotoSize(data)"}),_.l("design:type",Number)],cU.prototype,"authorPhotoSize",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],cU.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],cU.prototype,"noPadding",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cU.prototype,"dataChanged",null);
_.f([_.OZ("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cU.prototype,"messageChanged",null);_.f([_.H("data","dashboardMoneyFeed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],cU.prototype,"hideLowerBumper",null);_.f([_.OZ("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cU.prototype,"isDeletedChanged",null);
cU=_.f([_.U({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],cU);
_.X(cU,"yt-live-chat-paid-message-renderer",function(){if(bIz===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;aO3===void 0&&(aO3=document.createElement("template"));var I=aO3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);bIz=W}W=bIz;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var w_d;var h4Z;var aM=function(){var W=_.Yl.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.A(aM,_.Yl);aM.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.$$("openPopupConfig")};
_.f([_.h(_.xX.YtOpenPopupBehavior),_.l("design:type",Object)],aM.prototype,"ytOpenPopupBehavior",void 0);aM=_.f([_.yL()],aM);_.bb=[_.xX.YtOpenPopupBehavior,aM.prototype];var HZl;var bh=[_.KL,XIm,_.Dy,_.Zz,_.U_,_.Lez,_.uS,_.yci,_.hM,Mco];_.p("web_watch_get_updated_metadata_response_processing")&&bh.push(_.GNl);_.p("web_continuation_response_processing")&&bh.push(_.gL);var p8U=new _.Lb("RESPONSE_RECEIVED_COMMANDS"),GLm=new _.Lb("RESPONSE_RECEIVED_COMMANDS");var tcm="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),VcA=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],m6U=["GET_UNSEEN_NOTIFICATION_COUNT"];var kX=function(){var W=_.Yl.apply(this,arguments)||this;W._noAccessors=!0;W.serviceEndpointHandlers=[];return W};
_.A(kX,_.Yl);kX.prototype.created=function(){var W=this;this.endpointHandlerActionMap={"yt-service-request":function(P,x,I,O){var B;return vIR(W.hostElement,P,x,I,O,W.serviceEndpointHandlers,(B=W.onEntitiesUpdated)==null?void 0:B.bind(W))}}};
kX.prototype.attached=function(){_.kM(_.bs.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
kX.prototype.detached=function(){_.UA(_.bs.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
kX=_.f([_.yL()],kX);_.e4c=[kX.prototype];var cSi,aPw=function(){return cSi!==void 0?cSi:cSi=document.createElement("template")};
document.head.appendChild(aPw().content);var bZc;var kfc=document.head,UNl=kfc.appendChild,X_P;if(bZc===void 0){var fPd=document.createElement("template");_.G(fPd,"\x3c!--css-build:shady--\x3e");fPd.content.insertBefore(aPw().content.cloneNode(!0),fPd.content.firstChild);bZc=fPd}X_P=bZc;UNl.call(kfc,X_P.content);var Ntd,lPW=function(){return Ntd!==void 0?Ntd:Ntd=document.createElement("template")};
document.head.appendChild(lPW().content);var Ttw;var rSl=document.head,iZp=rSl.appendChild,R4b;if(Ttw===void 0){var Ftl=document.createElement("template");_.G(Ftl,"\x3c!--css-build:shady--\x3e");Ftl.content.insertBefore(lPW().content.cloneNode(!0),Ftl.content.firstChild);Ttw=Ftl}R4b=Ttw;iZp.call(rSl,R4b.content);var qYP;_.Ad("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Ad("sharingRendererButtons","buttonRenderer","ytd-button-renderer");qYP=_.p("web_button_rework")&&_.wo("BUTTON_REWORK")||_.p("web_button_rework_with_live");_.UN=function(){var W=_.b.apply(this,arguments)||this;W.isPressed=!1;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return W};
_.A(_.UN,_.b);_.J=_.UN.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.onHintIdChanged=function(){var W=this,P,x,I=(P=this.ytButtonBehavior.data)==null?void 0:(x=P.hint)==null?void 0:x.hintRenderer;if(I&&I.hintId){P=_.P7(this.hostElement,"yt-get-opened-popups-action");P=(P&&P.length===1?P[0]:[]).length>0;var O=null;I.hintId!=="sponsor-pre-purchase"||P?I.hintId.startsWith("sponsor-post-purchase")&&!P?O=hLm("membership-manage"):I.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!P&&(O=hLm("membership-freebie-join")):O=hLm("membership-join");O&&_.Gr.addLowPriorityJob(function(){for(var B=
_.n(O),Y=B.next();!Y.done;Y=B.next())W.ytComponentBehavior.resolveCommand(Y.value)})}};
_.J.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.J.onYtNavigate=function(W){var P=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);P&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(P))};
_.J.onYtServiceRequestSent=function(W,P){this.handleServiceRequestActions(P);_.Lf(this.hostElement,"yt-service-request-sent-button-renderer")};
_.J.onServiceRequestCompleted=function(W,P){this.handleServiceRequestActions(P);_.Lf(this.hostElement,"yt-service-request-completed-button-renderer")};
_.J.updateButton=function(W){var P;if(W=(P=_.Q(W,CYw))==null?void 0:P.updatedButton)this.ytButtonBehavior.data=_.Q(W,_.w6)};
_.J.handleUpdateButtonAction=function(W){var P=this.ytButtonBehavior.data;P.targetId&&W.updateButtonAction.targetId&&P.targetId===W.updateButtonAction.targetId&&this.updateButton(W)};
_.J.handleServiceRequestActions=function(W){if(W=W.actions)for(var P=0;P<W.length;P++)this.updateButton(W[P])};
_.N1.Object.defineProperties(_.UN,{template:{configurable:!0,enumerable:!0,get:function(){if(HZl===void 0){var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);HZl=W}W=HZl;return W}}});
_.UN.prototype.onServiceRequestCompleted=_.UN.prototype.onServiceRequestCompleted;_.UN.prototype.onYtServiceRequestSent=_.UN.prototype.onYtServiceRequestSent;_.UN.prototype.onYtNavigate=_.UN.prototype.onYtNavigate;_.UN.prototype.onPressedStateChanged=_.UN.prototype.onPressedStateChanged;_.UN.prototype.onHintIdChanged=_.UN.prototype.onHintIdChanged;_.f([_.c(),_.l("design:type",Object)],_.UN.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],_.UN.prototype,"isPressed",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],_.UN.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Bab.YtButtonBehavior),_.l("design:type",Object)],_.UN.prototype,"ytButtonBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],_.UN.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],_.UN.prototype,"ytComponentBehavior",void 0);
_.f([_.h(nk.YtRenderButtonBehavior),_.l("design:type",Object)],_.UN.prototype,"ytRenderButtonBehavior",void 0);_.f([_.OZ("data.hint.hintRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],_.UN.prototype,"onHintIdChanged",null);_.f([_.OZ("isPressed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],_.UN.prototype,"onPressedStateChanged",null);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],_.UN.prototype,"onYtNavigate",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],_.UN.prototype,"onYtServiceRequestSent",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],_.UN.prototype,"onServiceRequestCompleted",null);_.UN=_.f([_.U({is:"ytd-button-renderer",disableElementRegistration:qYP})],_.UN);var XO=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.A(XO,_.b);_.J=XO.prototype;_.J.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"}}}}};
_.J.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.dataChanged=function(){if(this.data&&this.data.sticker){var W=_.Tm(this.data.sticker.thumbnails,this.stickerWidth);W||_.hmR(W).thenCatch(function(){_.ge(new _.mW("Failed to load Super Sticker with url",W))})}};
_.J.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)?32:40};
_.J.computeIsV2Style=function(W){return(W==null?0:W.isV2Style)?!0:!1};
_.J.onStickerLoaded=function(W){var P,x,I;(P=_.af(W))==null||(x=P.parentNode)==null||(I=x.classList)==null||I.add("sticker-loaded")};
_.J.computeNoveltyImageWidth=function(W){var P,x;if(W==null?0:(P=W.headerOverlayImage)==null?0:(x=P.thumbnails)==null?0:x.length){P=W.headerOverlayImage.thumbnails[0];var I,O;if((I=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(O=I.loggingDirectives)==null?0:O.trackingParams){var B,Y;ejU((B=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Y=B.loggingDirectives)==null?void 0:Y.trackingParams)}return P.width||0}return 0};
_.J.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.J.updateStickerStyles=function(){var W=this.data;W&&(W={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.authorNameTextColor)},
_.qa(this.hostElement,W))};
_.J.onBuyButtonClick=function(){var W,P=_.Q((W=this.data)==null?void 0:W.buyButton,_.w6);P&&!xXo(P.command)&&this.ytRendererBehavior.logExplicitClick(P)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.N1.Object.defineProperties(XO.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 W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
XO.prototype.updateStickerStyles=XO.prototype.updateStickerStyles;XO.prototype.isDeletedChanged=XO.prototype.isDeletedChanged;XO.prototype.onStickerLoaded=XO.prototype.onStickerLoaded;XO.prototype.dataChanged=XO.prototype.dataChanged;_.f([_.h(u$k.YtPdgLiveChatItemBehavior),_.l("design:type",Object)],XO.prototype,"ytPdgLiveChatItemBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],XO.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],XO.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],XO.prototype,"data",void 0);
_.f([_.c({computed:"computeAuthorPhotoSize(data)"}),_.l("design:type",Number)],XO.prototype,"authorPhotoSize",void 0);_.f([_.c(),_.l("design:type",Boolean)],XO.prototype,"isDeleted",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],XO.prototype,"dashboardMoneyFeed",void 0);_.f([_.c({computed:"computeNoveltyImageWidth(data)"}),_.l("design:type",Number)],XO.prototype,"noveltyWidth",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],XO.prototype,"modern",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.l("design:type",Boolean)],XO.prototype,"isV2Style",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XO.prototype,"dataChanged",null);_.f([_.I7("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],XO.prototype,"onStickerLoaded",null);
_.f([_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],XO.prototype,"stickerWidth",null);_.f([_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],XO.prototype,"stickerHeight",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XO.prototype,"hasHeartButton",null);_.f([_.H("data","dashboardMoneyFeed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XO.prototype,"hideLowerBumper",null);
_.f([_.OZ("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XO.prototype,"isDeletedChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XO.prototype,"updateStickerStyles",null);XO=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],XO);
_.X(XO,"yt-live-chat-paid-sticker-renderer",function(){if(h4Z===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;w_d===void 0&&(w_d=document.createElement("template"));var I=w_d;x.call(P,I.content.cloneNode(!0),W.content.firstChild);h4Z=W}W=h4Z;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Ltc;var WEb;var Pol,xrM=function(){return Pol!==void 0?Pol:Pol=document.createElement("template")};
document.head.appendChild(xrM().content);var Iki,OnM=function(){return Iki!==void 0?Iki:Iki=document.createElement("template")};
document.head.appendChild(OnM().content);var JkW;var B8b,n2c=function(){return B8b!==void 0?B8b:B8b=document.createElement("template")};
document.head.appendChild(n2c().content);var Yul;var ykk=document.head,KEl=ykk.appendChild,Znb;if(Yul===void 0){var o2Z=document.createElement("template");_.G(o2Z,"\x3c!--css-build:shady--\x3e");o2Z.content.insertBefore(n2c().content.cloneNode(!0),o2Z.content.firstChild);Yul=o2Z}Znb=Yul;KEl.call(ykk,Znb.content);var Sup=document.head,uRk=Sup.appendChild,drd;if(JkW===void 0){var fk=document.createElement("template");_.G(fk,"\x3c!--css-build:shady--\x3e");fk.content.insertBefore(OnM().content.cloneNode(!0),fk.content.firstChild);fk.content.insertBefore(xrM().content.cloneNode(!0),fk.content.firstChild);JkW=fk}drd=JkW;uRk.call(Sup,drd.content);var No=function(){var W=_.Yl.apply(this,arguments)||this;W.focusedIndex=0;W.verticalOffset=0;W.verticalAlign="top";W.dynamicAlign=!0;return W};
_.A(No,_.Yl);No.prototype.emojiUrl=function(W){W=_.Gh(this.emojiManager,W);if(!W)return"";var P;W=(P=W.image)==null?void 0:P.thumbnails;return _.Tm(W,24)||""};
var s0k=function(W){var P;W.emojiVariants&&(P=W.data)!=null&&P.target&&_.Xm(W,function(){W.set("verticalOffset",-1*W.hostElement.clientHeight);var x=_.g(W.hostElement).querySelector("img");x&&x.focus()})};
_.J=No.prototype;_.J.onKeyboardEnter=function(){};
_.J.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.J.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.J.onKeyDown=function(W){switch(W.keyCode){case 13:this.onKeyboardEnter();W.preventDefault();break;case 40:this.changeFocus(1);W.preventDefault();break;case 38:this.changeFocus(-1);W.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.J.onYtEmojiSelect=function(W){var P=this,x,I,O,B,Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1)return I=(x=P.data)==null?void 0:x.emoji,Y=((O=I)==null?void 0:O.stickyPrefId)||((B=I)==null?void 0:B.emojiId),Z=(K=W.detail)==null?void 0:K.emojiId,Y&&Z&&Y!==Z?_.S(v,(d=P.emojiManager)==null?void 0:p_k(d,I,Z),2):v.return();_.W7(P.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[I,Z]);_.Kl(v)})};
_.J.changeFocus=function(W){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+W+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(W=_.g(this.hostElement).querySelector("#variants"))&&W.children[this.focusedIndex].focus())};
_.N1.Object.defineProperties(No.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
No.prototype.onYtEmojiSelect=No.prototype.onYtEmojiSelect;No.prototype.onKeyDown=No.prototype.onKeyDown;No.prototype.onEmojiVariantsChanged=No.prototype.onEmojiVariantsChanged;No.prototype.onVerticalOffsetOrPositionTargetChanged=No.prototype.onVerticalOffsetOrPositionTargetChanged;_.f([_.h(_.NK),_.l("design:type",Object)],No.prototype,"ironOverlayBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],No.prototype,"data",void 0);_.f([_.c(),_.l("design:type",_.zh)],No.prototype,"emojiManager",void 0);
_.f([_.c(),_.l("design:type",Object)],No.prototype,"emojiVariants",void 0);_.f([_.c(),_.l("design:type",Object)],No.prototype,"focusedIndex",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],No.prototype,"positionTarget",null);_.f([_.c({reflectToAttribute:!0}),_.H("verticalOffset","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],No.prototype,"isPositioned",null);_.f([_.c(),_.l("design:type",Object)],No.prototype,"verticalOffset",void 0);
_.f([_.c(),_.l("design:type",Object)],No.prototype,"verticalAlign",void 0);_.f([_.c(),_.l("design:type",Object)],No.prototype,"dynamicAlign",void 0);_.f([_.OZ("verticalOffset","positionTarget"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],No.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.f([_.OZ("emojiVariants"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],No.prototype,"onEmojiVariantsChanged",null);
_.f([_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],No.prototype,"onKeyDown",null);_.f([_.I7("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype",Promise)],No.prototype,"onYtEmojiSelect",null);No=_.f([_.yL()],No);var v2W=[No.prototype];var mrZ;var Vwd;var twd=/medium-light|medium-dark|light|medium|dark/,psk=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,j0p=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),lb=function(){var W=_.b.apply(this,arguments)||this;W.userSelection={left:null,right:null};W.scrollAction="lock";W.isEmojiDraftInProgress=!1;return W};
_.A(lb,_.b);_.J=lb.prototype;_.J.onClick=function(W){W=_.af(W);W instanceof HTMLImageElement&&this.selectOrUpdateEmoji(W)};
_.J.selectOrUpdateEmoji=function(W){var P=W.getAttribute("selection");P&&(P==="default"?_.Lf(this.hostElement,"yt-emoji-select",_.Gh(this.emojiManager,W.id)):P==="left"?this.userSelection=Object.assign({},this.userSelection,{left:W.src}):P==="right"?this.userSelection=Object.assign({},this.userSelection,{right:W.src}):P==="user"&&this.userSelection.left&&this.userSelection.right&&_.Lf(this.hostElement,"yt-emoji-select",_.Gh(this.emojiManager,W.id)))};
_.J.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.J.onMultiSelectorThumbnailRowChanged=function(){var W,P,x;((W=this.data)==null?0:(P=W.emoji)==null?0:(x=P.multiSelectorThumbnailRow)==null?0:x.length)&&this.openSelector()};
_.J.getThumbnailFromEmojiRow=function(W){var P,x;return(W==null?void 0:(P=W.thumbnails)==null?void 0:(x=P[0])==null?void 0:x.url)||""};
_.J.getEmojiAltTextForPartialSelector=function(W){var P;return((P=this.getThumbnailFromEmojiRow(W).match(psk))==null?void 0:P[0])||""};
_.J.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.J.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.J.getRowSelection=function(W){return["left","right"][W]};
_.J.getIdFromComposedEmoji=function(W){return(W==null?void 0:W.emojiId)||""};
_.J.getEmojiFromPartialSelections=function(W,P){if(!W&&!P)return null;var x,I,O=(x=this.data)==null?void 0:(I=x.emoji)==null?void 0:I.variantIds;if(!O||!O.length)return null;var B;W=(B=W.match(twd))==null?void 0:B[0];var Y;P=(Y=P.match(twd))==null?void 0:Y[0];if(!W||!P)return null;var K=j0p.get(W);Y=j0p.get(P);if(K===Y){Y=Array.from(j0p.values()).filter(function(d){return d!==K}).join("|");
var Z=new RegExp("^((?!("+Y+")).)*"+K+"$")}else Z=new RegExp(K+".*"+Y);return(O=O.find(function(d){return Z.test(d)}))&&_.Gh(this.emojiManager,O)||null};
_.J.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var W,P=this.ytEmojiSelectorBehavior.emojiUrl(((W=this.data.emoji)==null?void 0:W.emojiId)||"");_.g(this.hostElement).querySelector('[selection="user"]').src.includes(P)||(this.isEmojiDraftInProgress=!0)}};
_.J.onDomChange=function(){s0k(this.ytEmojiSelectorBehavior)};
_.J.getFocusableElements=function(){return _.g(this.hostElement).querySelectorAll("img").filter(function(W){return W.getAttribute("role")==="option"})};
_.J.changeFocus=function(W){var P=this.getFocusableElements();P!=null&&P.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+W+P.length)%P.length,this.ytEmojiSelectorBehavior.focusedIndex<P.length&&(W=P[this.ytEmojiSelectorBehavior.focusedIndex])&&W.focus())};
_.J.onKeyboardEnter=function(){var W=this.getFocusableElements();W!=null&&W.length&&(W=W[this.ytEmojiSelectorBehavior.focusedIndex])&&W instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(W),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.N1.Object.defineProperties(lb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,P,x,I;return this.emojiManager&&((P=this.data)==null?0:(x=P.emoji)==null?0:(I=x.variantIds)==null?0:I.length)?this.data.emoji.variantIds.map(function(O){return!!O&&_.Gh(W.emojiManager,O)}).filter(function(O){return!!O}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var W,P=(W=this.userSelection)==null?void 0:W.left,x;W=(x=this.userSelection)==null?void 0:x.right;return P&&W?this.getEmojiFromPartialSelections(P,W):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.composedEmojiSelection)==null?0:W.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var P;W=(P=this.userSelection)==null?void 0:P.left;var x;P=(x=this.userSelection)==null?void 0:x.right;if(!W&&!P){var I;return this.ytEmojiSelectorBehavior.emojiUrl(((I=this.data.emoji)==null?void 0:I.emojiId)||"")}return W&&!P?W:!W&&P?P:""}}});
lb.prototype.onMultiSelectorThumbnailRowChanged=lb.prototype.onMultiSelectorThumbnailRowChanged;lb.prototype.onClick=lb.prototype.onClick;_.f([_.h(_.NK),_.l("design:type",Object)],lb.prototype,"ironOverlayBehavior",void 0);_.f([_.h(v2W),_.l("design:type",Object)],lb.prototype,"ytEmojiSelectorBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],lb.prototype,"data",void 0);_.f([_.c(),_.l("design:type",_.zh)],lb.prototype,"emojiManager",void 0);
_.f([_.c(),_.l("design:type",Object)],lb.prototype,"userSelection",void 0);_.f([_.c(),_.l("design:type",Object)],lb.prototype,"scrollAction",void 0);_.f([_.c(),_.l("design:type",Object)],lb.prototype,"isEmojiDraftInProgress",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],lb.prototype,"emojiVariants",null);_.f([_.H("data","userSelection"),_.l("design:type",Object),_.l("design:paramtypes",[])],lb.prototype,"composedEmojiSelection",null);
_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],lb.prototype,"onClick",null);_.f([_.OZ("data.emoji.multiSelectorThumbnailRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lb.prototype,"onMultiSelectorThumbnailRowChanged",null);_.f([_.H("data","userSelection","composedEmojiSelection"),_.l("design:type",String),_.l("design:paramtypes",[])],lb.prototype,"draftEmojiUrl",null);
lb=_.f([_.jd({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],lb);
_.X(lb,"yt-emoji-multi-person-selector",function(){if(Vwd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;mrZ===void 0&&(mrZ=document.createElement("template"));var I=mrZ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Vwd=W}W=Vwd;return W},{mode:2});var Q0P;var Cow;var Th=function(){var W=_.b.apply(this,arguments)||this;W.tooltip_=null;return W};
_.A(Th,_.b);_.J=Th.prototype;_.J.dataChanged_=function(){var W;if((W=this.data)==null?0:W.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.g(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Fy)(this.tooltip_).textContent=this.data.tooltip};
_.J.computeTargetId=function(){var W;return((W=this.data)==null?void 0:W.targetId)||""};
_.J.computeId_=function(W){return W};
_.J.computeIcon_=function(W){return _.PW(W)};
_.J.onTap_=function(){this.active=!this.active;_.Lf(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.J.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("active-changed",this.active))};
_.N1.Object.defineProperties(Th.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var W,P;if((W=this.data)==null?0:(P=W.icon)==null?0:P.iconType)return this.data.icon.iconType==="SUPER_STICKER";var x,I;return((x=this.data)==null?void 0:(I=x.icon)==null?void 0:I.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Th.prototype.activeChangedForBinding=Th.prototype.activeChangedForBinding;Th.prototype.dataChanged_=Th.prototype.dataChanged_;_.f([_.h(_.E3.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],Th.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Th.prototype,"data",void 0);_.f([_.c({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.l("design:type",String)],Th.prototype,"id",void 0);
_.f([_.c({computed:"computeTargetId(data.targetId)"}),_.l("design:type",String)],Th.prototype,"targetId",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Th.prototype,"active",void 0);_.f([_.c({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.l("design:type",String)],Th.prototype,"icon",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Th.prototype,"dataChanged_",null);
_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Th.prototype,"iconFilled",null);_.f([_.OZ("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Th.prototype,"activeChangedForBinding",null);Th=_.f([_.jd({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Th);
_.X(Th,"yt-emoji-picker-category-button-renderer",function(){if(Cow===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Q0P===void 0&&(Q0P=document.createElement("template"));var I=Q0P;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Cow=W}W=Cow;return W},{mode:2});var Akd;var zj3;var ry=function(){var W=_.b.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};W.JSC$11928_ignoreNextFocus_=!1;W.longPressTimeoutId=-1;return W};
_.A(ry,_.b);_.J=ry.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.YY(),P=0;P<this.emoji.length;P++){var x={veType:88013,elementIndex:P},I=this.emoji[P];I.isCustomEmoji&&(I=document.querySelector(("#"+I.emojiId).replace("/","\\/")))&&(x=_.nt(W,x))&&(I.visualElement=x)}};
_.J.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.J.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.J.emojiSkinToneChanged_=function(W){this.skinTone=W};
_.J.dataChanged=function(){this.data&&this.data.emojiData&&v8m(this.emojiManager,this.data.emojiData)};
_.J.emojiUrl=function(W){W=this.getEmoji(W);if(!W)return"";var P;W=(P=W.image)==null?void 0:P.thumbnails;return _.Tm(W,24)||""};
_.J.emojiAlt=function(W){var P=this.get("image.accessibility.accessibilityData.label",W);return P?P:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.J.emojiAriaLabel=function(W){return W.shortcuts?W.shortcuts[0]:""};
_.J.emojiAriaSelected=function(W,P,x){return W&&x==P?"true":"false"};
_.J.getEmoji=function(W){if(this.emojiManager)return this.shouldUseStickyPreferences?Vhz(this.emojiManager,W):EN(this.emojiManager,W)};
_.J.computeId_=function(W){return W.categoryId||""};
_.J.computeEmoji=function(W){var P=this;return this.emojiManager?W.emojiIds?W.emojiIds.map(function(x){return x?_.Gh(P.emojiManager,x):null}).filter(He8):W.emojiData?W.emojiData.map(function(x){var I=!!x.emojiId&&_.Gh(P.emojiManager,x.emojiId);
return I?Object.assign({},I,x):null}).filter(He8):[]:[]};
_.J.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.J.computeAriaLabel_=function(W){return _.kz(W)};
_.J.computeAriaActivedescendant_=function(W,P){return W&&W[P]?W[P].emojiId||"":""};
_.J.handleLongPressEmojiWithVariants=function(W,P){this.changeFocusToEmoji(W.emojiId,!1);this.openVariantSelector(W,P)};
_.J.onMouseDown=function(W){var P=this;this.hostElement!==document.activeElement&&(this.JSC$11928_ignoreNextFocus_=!0);if(W.button===0){var x=_.af(W);if(x instanceof HTMLImageElement){var I=_.g(this.hostElement).querySelector("#repeat").itemForElement(x);this.emojiContainsVariants(I)&&(this.longPressTimeoutId=setTimeout(function(){P.handleLongPressEmojiWithVariants(I,x)},500))}}};
_.J.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.J.onFocus=function(){this.JSC$11928_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11928_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.emojiContainsVariants=function(W){return!!(W&&W.variantIds&&W.variantIds.length)};
_.J.onClick=function(W){clearTimeout(this.longPressTimeoutId);W=_.af(W);if(W instanceof HTMLImageElement){var P=W.id;this.changeFocusToEmoji(P,!1);var x=this.getEmoji(P),I;if(I=this.shouldUseStickyPreferences&&this.emojiContainsVariants(x)){var O;I=!((O=this.emojiManager.emojiMap[P])!=null&&O.stickyPrefId)}I?(O=_.g(this.hostElement).querySelector("#repeat").itemForElement(W),this.openVariantSelector(O,W)):_.Lf(this.hostElement,"yt-emoji-select",x)}};
_.J.isActiveEmojiWithVariants=function(W,P){return W&&P?P.stickyPrefId?W===P.stickyPrefId:W===P.emojiId:!1};
_.J.onCloseEmojiVariantSelector=function(W){this.activeEmojiWithVariantsId===W&&(this.activeEmojiWithVariantsId="")};
_.J.onMouseOver_=function(W){W=_.af(W);W instanceof HTMLImageElement&&_.Lf(this.hostElement,"yt-emoji-hover",_.Gh(this.emojiManager,W.id))};
_.J.changeFocus_=function(W,P){this.focusedIndex=(this.focusedIndex+W+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(W=this.emoji[this.focusedIndex],P&&(this.showFocus=!0,_.g(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Lf(this.hostElement,"yt-emoji-hover",W)))};
_.J.changeFocusToEmoji=function(W,P){if(W){var x=this.emoji.findIndex(function(I){return I.emojiId===W});
x!==-1&&this.changeFocus_(x-this.focusedIndex,P)}};
_.J.onKeyDown_=function(W){switch(W.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var P=this.emoji[this.focusedIndex];if(P&&P.emojiId){if(this.emojiContainsVariants(P)){var x=_.g(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(P,x)}else _.Lf(this.hostElement,"yt-emoji-select",EN(this.emojiManager,P.emojiId)),this.hostElement.focus();W.preventDefault()}}break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
_.J.onEmojiStickyPreferenceChanged=function(W,P){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&W.emojiId&&W.variantIds&&W.variantIds.includes(P)&&this.activeEmojiWithVariantsId!==P&&this.setStickyEmojiPreference(W.emojiId,P)};
_.J.openVariantSelector=function(W,P){this.activeEmojiWithVariantsId=W.stickyPrefId||W.emojiId||"";_.Lf(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:W,target:P})};
_.J.setStickyEmojiPreference=function(W,P){if(this.data){var x=this.emoji.findIndex(function(O){return O.emojiId===W});
if(x!==-1){var I=this.emoji[x];I.stickyPrefId=P;this.set("emoji."+x,Object.assign({},I));this.activeEmojiWithVariantsId=P}}};
ry.prototype.onKeyDown_=ry.prototype.onKeyDown_;ry.prototype.onMouseOver_=ry.prototype.onMouseOver_;ry.prototype.onClick=ry.prototype.onClick;ry.prototype.onBlur_=ry.prototype.onBlur_;ry.prototype.onFocus=ry.prototype.onFocus;ry.prototype.onMouseUp=ry.prototype.onMouseUp;ry.prototype.onMouseDown=ry.prototype.onMouseDown;ry.prototype.dataChanged=ry.prototype.dataChanged;ry.prototype.disableIncrementalLoadingChanged_=ry.prototype.disableIncrementalLoadingChanged_;ry.prototype.emojiManagerChanged_=ry.prototype.emojiManagerChanged_;
ry.prototype.emojiChanged_=ry.prototype.emojiChanged_;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],ry.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ry.prototype,"data",void 0);_.f([_.c({computed:"computeId_(data)"}),_.l("design:type",String)],ry.prototype,"id",void 0);_.f([_.c({computed:"computeEmoji(data)"}),_.l("design:type",Array)],ry.prototype,"emoji",void 0);_.f([_.c(),_.l("design:type",Number)],ry.prototype,"skinTone",void 0);
_.f([_.c(),_.l("design:type",_.zh)],ry.prototype,"emojiManager",void 0);_.f([_.c(),_.l("design:type",Boolean)],ry.prototype,"disableIncrementalLoading",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],ry.prototype,"focusedIndex",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],ry.prototype,"showFocus",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.l("design:type",Object)],ry.prototype,"ariaLabel",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.l("design:type",Object)],ry.prototype,"ariaActivedescendant",void 0);_.f([_.c({value:60}),_.l("design:type",Number)],ry.prototype,"domRepeatTargetFramerate",void 0);_.f([_.c({value:1}),_.l("design:type",Number)],ry.prototype,"domRepeatInitialCount",void 0);_.f([_.c({value:""}),_.l("design:type",String)],ry.prototype,"activeEmojiWithVariantsId",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],ry.prototype,"shouldUseStickyPreferences",void 0);_.f([_.OZ("emoji"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ry.prototype,"emojiChanged_",null);_.f([_.OZ("emojiManager"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ry.prototype,"emojiManagerChanged_",null);
_.f([_.OZ("disableIncrementalLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ry.prototype,"disableIncrementalLoadingChanged_",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ry.prototype,"dataChanged",null);_.f([_.I7("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],ry.prototype,"onMouseDown",null);
_.f([_.I7("mouseup"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ry.prototype,"onMouseUp",null);_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ry.prototype,"onFocus",null);_.f([_.I7("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ry.prototype,"onBlur_",null);
_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ry.prototype,"onClick",null);_.f([_.I7("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ry.prototype,"onMouseOver_",null);_.f([_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ry.prototype,"onKeyDown_",null);
ry=_.f([_.jd({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],ry);
_.X(ry,"yt-emoji-picker-category-renderer",function(){if(zj3===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Akd===void 0&&(Akd=document.createElement("template"));var I=Akd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);zj3=W}W=zj3;return W},{mode:2});var G23;var E2z;var g2Z;var Drm;var ib=function(){var W=_.b.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.getFormattedStringRawText=_.kz;W.JSC$11934_ignoreNextFocus_=!1;return W};
_.A(ib,_.b);_.J=ib.prototype;_.J.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")};
_.J.emojiUrl=function(W){var P,x;W=(P=EN(this.emojiManager,W,!0))==null?void 0:(x=P.image)==null?void 0:x.thumbnails;return _.Tm(W,24)||""};
_.J.emojiAlt=function(W){var P=this.get("image.accessibility.accessibilityData.label",W);return P?P:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.J.emojiId=function(W){return"emoji"+W};
_.J.computeId_=function(W){return W.categoryId||""};
_.J.computeAriaActivedescendant_=function(W){return this.emoji&&W<this.emoji.length?this.emojiId(W):""};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.YY(),P=0;P<this.emoji.length;P++){var x={veType:88013,elementIndex:P},I=this.emoji[P];I.isCustomEmoji&&(I=document.querySelector(("#"+I.emojiId).replace("/","\\/")))&&(x=_.nt(W,x))&&(I.visualElement=x)}};
_.J.computeEmoji_=function(W){var P=this;return this.emojiManager?W.emojiIds.map(function(x){return _.Gh(P.emojiManager,x,!0)}).filter(emR):[]};
_.J.titleOffsetChanged_=function(){var W=this.hostElement.getBoundingClientRect(),P=_.g(this.hostElement).querySelector("#title").getBoundingClientRect();W=Math.max(0,Math.min(this.titleOffset,W.height-P.height));_.g(this.hostElement).querySelector("#title").style.top=W+"px"};
_.J.onEmojiMouseOver_=function(W){_.Lf(this.hostElement,"yt-emoji-hover",W.model.item)};
_.J.onEmojiTap_=function(W){this.data.command&&(W=N8d(_.FY().resolve(_.Rl(cB)),this.data.command,W),_.Lf(this.hostElement,"yt-navigate",W))};
_.J.emojiAriaLabel=function(W){return W.shortcuts[0]};
_.J.emojiAriaSelected=function(W,P,x){return W&&x==P?"true":"false"};
_.J.changeFocus_=function(W,P){var x=this.emoji.length;this.focusedIndex=(this.focusedIndex+W+x)%x;W=this.emoji[this.focusedIndex];if(P){var I;(I=_.g(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||I.scrollIntoView(!1);_.Lf(this.hostElement,"yt-emoji-hover",W)}};
_.J.onMouseDown_=function(){this.JSC$11934_ignoreNextFocus_=!0};
_.J.onFocus_=function(){this.JSC$11934_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11934_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.onKeyDown_=function(W){switch(W.keyCode){case 13:this.onEmojiTap_(W);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
ib.prototype.onKeyDown_=ib.prototype.onKeyDown_;ib.prototype.onBlur_=ib.prototype.onBlur_;ib.prototype.onFocus_=ib.prototype.onFocus_;ib.prototype.onMouseDown_=ib.prototype.onMouseDown_;ib.prototype.onEmojiTap_=ib.prototype.onEmojiTap_;ib.prototype.titleOffsetChanged_=ib.prototype.titleOffsetChanged_;ib.prototype.emojiChanged_=ib.prototype.emojiChanged_;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],ib.prototype,"data",void 0);_.f([_.c({computed:"computeId_(data)"}),_.l("design:type",String)],ib.prototype,"id",void 0);_.f([_.c({computed:"computeEmoji_(data)"}),_.l("design:type",Array)],ib.prototype,"emoji",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],ib.prototype,"titleOffset",void 0);_.f([_.c({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.l("design:type",Object)],ib.prototype,"ariaLabel",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.l("design:type",Object)],ib.prototype,"ariaActivedescendant",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],ib.prototype,"showFocus",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],ib.prototype,"focusedIndex",void 0);_.f([_.c(),_.l("design:type",_.zh)],ib.prototype,"emojiManager",void 0);
_.f([_.OZ("emoji"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ib.prototype,"emojiChanged_",null);_.f([_.OZ("titleOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ib.prototype,"titleOffsetChanged_",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ib.prototype,"onEmojiTap_",null);
_.f([_.I7("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ib.prototype,"onMouseDown_",null);_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ib.prototype,"onFocus_",null);_.f([_.I7("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ib.prototype,"onBlur_",null);
_.f([_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ib.prototype,"onKeyDown_",null);ib=_.f([_.jd({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],ib);
_.X(ib,"yt-emoji-picker-upsell-category-renderer",function(){if(Drm===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;g2Z===void 0&&(g2Z=document.createElement("template"));var I=g2Z;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Drm=W}W=Drm;return W},{mode:2});var Mwl;var $rd;var RM=function(){var W=_.b.apply(this,arguments)||this;W.scrollAction="lock";W.verticalAlign="top";return W};
_.A(RM,_.b);_.J=RM.prototype;_.J.onClick=function(W){W=_.af(W);W instanceof HTMLImageElement&&_.Lf(this.hostElement,"yt-emoji-select",_.Gh(this.emojiManager,W.id))};
_.J.openSelector=function(){this.ironOverlayBehavior.open()};
_.J.onDomChange=function(){s0k(this.ytEmojiSelectorBehavior)};
_.J.computeIsFamilySelector=function(W){var P;return(W==null?void 0:(P=W.emoji)==null?void 0:P.emojiId)==="\ud83d\udc6a"};
_.J.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var W=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];W&&W.emojiId&&(_.Lf(this.hostElement,"yt-emoji-select",_.Gh(this.emojiManager,W.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.N1.Object.defineProperties(RM.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,P,x,I;return this.emojiManager&&((P=this.data)==null?0:(x=P.emoji)==null?0:(I=x.variantIds)==null?0:I.length)?this.data.emoji.variantIds.map(function(O){return!!O&&_.Gh(W.emojiManager,O)}).filter(function(O){return!!O}):[]}}});
RM.prototype.onClick=RM.prototype.onClick;_.f([_.h(_.NK),_.l("design:type",Object)],RM.prototype,"ironOverlayBehavior",void 0);_.f([_.h(v2W),_.l("design:type",Object)],RM.prototype,"ytEmojiSelectorBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],RM.prototype,"data",void 0);_.f([_.c(),_.l("design:type",_.zh)],RM.prototype,"emojiManager",void 0);_.f([_.c(),_.l("design:type",Object)],RM.prototype,"scrollAction",void 0);_.f([_.c(),_.l("design:type",Object)],RM.prototype,"verticalAlign",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.l("design:type",Boolean)],RM.prototype,"isFamilySelector",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RM.prototype,"emojiVariants",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],RM.prototype,"onClick",null);RM=_.f([_.jd({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],RM);
_.X(RM,"yt-emoji-variant-selector",function(){if($rd===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Mwl===void 0&&(Mwl=document.createElement("template"));var I=Mwl;x.call(P,I.content.cloneNode(!0),W.content.firstChild);$rd=W}W=$rd;return W},{mode:2});var wsw=/:/g,hjM=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],FO=function(){var W=_.b.apply(this,arguments)||this;W.emojiVariantSelector=null;W.emojiMultiPersonSelector=null;W.identity=_.UU;W.lastAnimationTime_=0;W.animationStart_=null;W.animationEnd_=null;return W};
_.A(FO,_.b);_.J=FO.prototype;
_.J.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}}};
_.J.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.gy)};
_.J.attached=function(){_.yo&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&mNk(this.emojiManager)};
_.J.dataChanged=function(){var W;if((W=this.data)==null?0:W.categories){W=this.emojiManager;var P=this.getCustomEmojiIds();W.pickerCustomEmojiIds=[].concat(_.ju(o8p),_.ju(P))}};
_.J.getCustomEmojiIds=function(){var W,P=(W=this.data.categories)==null?void 0:W.find(function(B){var Y;return((Y=B.emojiPickerCategoryRenderer)==null?void 0:Y.categoryId)&&hjM.includes(B.emojiPickerCategoryRenderer.categoryId)}),x;
W=(x=this.data.categories)==null?void 0:x.find(function(B){return B.emojiPickerUpsellCategoryRenderer});
var I,O;return[P==null?void 0:(I=P.emojiPickerCategoryRenderer)==null?void 0:I.emojiIds,W==null?void 0:(O=W.emojiPickerUpsellCategoryRenderer)==null?void 0:O.emojiIds].flat().filter(function(B){return!!B})};
_.J.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.J.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.J.updateCategoriesAndPlaceholderInternal=function(W,P){var x=this;W&&P&&(this.categories=W.categories||[],this.categoryButtons=W.categoryButtons||[],this.resetPlaceholder(),this.search="",_.gY(function(){x.updateButtons_()}))};
_.J.computeId_=function(W){return W.id||""};
_.J.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(W){return W.emojiPickerCategoryRenderer&&W.emojiPickerCategoryRenderer.emojiData}):!1};
_.J.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.J.onShowEmojiVariantSelector=function(W){var P=W.detail.emojiData;P.variantIds&&P.variantIds.length&&(P.multiSelectorThumbnailRow&&P.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:P,target:W.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:P,target:W.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onIronOverlayClosed=function(W){var P=Vhz(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");P&&W.composedPath&&(W.composedPath().includes(_.g(this.hostElement).querySelector("#emoji-variant-selector"))||W.composedPath().includes(_.g(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.W7(this.hostElement,"yt-close-emoji-variant-selector",[P.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onEmojiVariantSelectorMouseup=function(W){var P=W.target.firstChild;this.variantSelectorOpened&&P&&_.gY(function(){P.noCancelOnOutsideClick=!1},100)};
_.J.onEmojiVariantSelectorMousedown=function(W){W=W.target.firstChild;this.variantSelectorOpened&&W&&(W.noCancelOnOutsideClick=!1)};
_.J.onSelectCategory_=function(W){var P=this.search!="";this.search="";for(var x=_.g(this.hostElement).querySelector("#categories").children,I=0;I<x.length;I++){var O=x[I];if(O.id==W.detail.categoryId){P?(_.g(this.hostElement).querySelector("#categories").scrollTop=O.offsetTop,this.updateButtons_()):(this.animationStart_=_.g(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=O.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.J.onEmojiHover_=function(W){this.placeholder=W.detail.shortcuts?W.detail.shortcuts[0]:""};
_.J.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.J.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.J.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.J.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.J.computeSearchCategory_=function(W){W=W.replace(wsw,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();W=W.split(" ");for(var P=[],x=this.emojiManager.emojis,I=0;I<x.length;I++){var O=x[I];if(O.searchTerms)for(var B=0;B<O.searchTerms.length;B++){for(var Y=O.searchTerms[B].toLocaleLowerCase(),K=!1,Z=0;Z<W.length;Z++)if(Y.indexOf(W[Z])!=-1){K=!0;break}if(K&&(!O.isCustomEmoji||!O.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(O.emojiId))){P.push(O.emojiId);
break}}}return{categoryId:-1,emojiIds:P}};
_.J.computeSearchEmptyMessage_=function(W,P){return W&&P&&P.emojiIds&&P.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.J.computeSearching_=function(W){return this.emojiManager&&W.replace(wsw,"").length>1};
_.J.computeSkinToneHidden=function(){var W;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((W=this.data)==null||!W.hideSkinTonePicker)};
_.J.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.J.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.J.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.J.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.J.selectSkinTone_=function(W){W=Number(W.target.getAttribute("tone"));this.set("emojiManager.skinTone",W);_.W7(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[W]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.J.skinToneChanged_=function(){_.g(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var W=_.g(this.hostElement).querySelector("#dropdown-content").children,P=0;P<W.length;P++)P===this.skinTone?W[P].setAttribute("selected",""):W[P].removeAttribute("selected")};
_.J.animateScroll_=function(W){this.lastAnimationTime_||(this.lastAnimationTime_=W);W-=this.lastAnimationTime_;W<200?(_.g(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*W/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.g(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.J.searchChanged_=function(){this.updateButtons_()};
_.J.updateButtons_=function(){var W=null;if(!this.search)for(var P=_.g(this.hostElement).querySelector("#categories").scrollTop,x=_.g(this.hostElement).querySelector("#categories").children,I=0;I<x.length;I++){var O=x[I];O.offsetTop<=P&&(W=O.id)}P=_.g(this.hostElement).querySelector("#category-buttons").children;for(x=0;x<P.length;x++)I=P[x],I.active=I.id===W};
FO.prototype.searchChanged_=FO.prototype.searchChanged_;FO.prototype.skinToneChanged_=FO.prototype.skinToneChanged_;FO.prototype.onEmojiHover_=FO.prototype.onEmojiHover_;FO.prototype.onSelectCategory_=FO.prototype.onSelectCategory_;FO.prototype.onShowEmojiVariantSelector=FO.prototype.onShowEmojiVariantSelector;FO.prototype.updateCategoriesAndPlaceholder_=FO.prototype.updateCategoriesAndPlaceholder_;FO.prototype.dataChanged=FO.prototype.dataChanged;
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],FO.prototype,"data",void 0);_.f([_.c({value:function(){return[]}}),
_.l("design:type",Array)],FO.prototype,"categories",void 0);_.f([_.c({value:function(){return[]}}),
_.l("design:type",Array)],FO.prototype,"categoryButtons",void 0);_.f([_.c({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.l("design:type",Boolean)],FO.prototype,"disableScroll",void 0);_.f([_.c({computed:"computeId_(data)",reflectToAttribute:!0}),_.l("design:type",String)],FO.prototype,"id",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],FO.prototype,"selected",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],FO.prototype,"disableIncrementalLoading",void 0);_.f([_.c(),_.l("design:type",String)],FO.prototype,"placeholder",void 0);_.f([_.c({value:""}),_.l("design:type",String)],FO.prototype,"search",void 0);_.f([_.c({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.l("design:type",Boolean)],FO.prototype,"searching",void 0);_.f([_.c({computed:"computeSearchCategory_(search)"}),_.l("design:type",Object)],FO.prototype,"searchCategory",void 0);
_.f([_.c({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.l("design:type",Object)],FO.prototype,"searchEmptyMessage",void 0);_.f([_.c({computed:"identity(emojiManager.skinTone)"}),_.l("design:type",Number)],FO.prototype,"skinTone",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],FO.prototype,"skinToneOpened",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],FO.prototype,"variantSelectorOpened",void 0);
_.f([_.c({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.l("design:type",Boolean)],FO.prototype,"skinToneHidden",void 0);_.f([_.c(),_.l("design:type",_.zh)],FO.prototype,"emojiManager",void 0);_.f([_.c(),_.l("design:type",Object)],FO.prototype,"emojiVariantSelector",void 0);_.f([_.c(),_.l("design:type",Object)],FO.prototype,"emojiMultiPersonSelector",void 0);
_.f([_.c({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.l("design:type",Boolean)],FO.prototype,"shouldUseStickyPreferences",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FO.prototype,"dataChanged",null);_.f([_.OZ("data","selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FO.prototype,"updateCategoriesAndPlaceholder_",null);
_.f([_.I7("yt-show-emoji-variant-selector"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],FO.prototype,"onShowEmojiVariantSelector",null);_.f([_.I7("yt-emoji-picker-select-category"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],FO.prototype,"onSelectCategory_",null);_.f([_.I7("yt-emoji-hover"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],FO.prototype,"onEmojiHover_",null);
_.f([_.OZ("skinTone"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FO.prototype,"skinToneChanged_",null);_.f([_.OZ("search"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FO.prototype,"searchChanged_",null);FO=_.f([_.jd({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],FO);
_.X(FO,"yt-emoji-picker-renderer",function(){if(E2z===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;G23===void 0&&(G23=document.createElement("template"));var I=G23;x.call(P,I.content.cloneNode(!0),W.content.firstChild);E2z=W}W=E2z;return W},{mode:2});var qo=function(){var W=_.b.apply(this,arguments)||this;W.emojiManager=_.gy;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.selectedIndex=1;W.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return W};
_.A(qo,_.b);_.J=qo.prototype;_.J.handleEmojiCustomizationVisible=function(W){this.emojiPickerRenderer.selected=W;this.selectedIndex=1;W?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.J.emojiCustomizationSetChanged=function(){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.oW(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.J.updateSaveButtonState=function(W){var P;(P=this.data)!=null&&P.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.mG("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:W}))};
_.J.emojiUrl=function(W){W=_.Gh(this.emojiManager,W);if(!W)return"";var P;W=(P=W.image)==null?void 0:P.thumbnails;return _.Tm(W,24)||""};
_.J.emojiAlt=function(W){var P=_.Gh(this.emojiManager,W);if(!P)return W;var x,I,O,B=(P==null?void 0:(x=P.image)==null?void 0:(I=x.accessibility)==null?void 0:(O=I.accessibilityData)==null?void 0:O.label)||"";return B?B:P.isCustomEmoji?P.shortcuts[0]:P.emojiId||W};
_.J.emojiAriaLabel=function(W){var P,x;return((P=_.Gh(this.emojiManager,W))==null?void 0:(x=P.shortcuts)==null?void 0:x[0])||W};
_.J.onEmojiClick=function(W){W.model.index!==0&&(this.selectedIndex=W.model.index)};
_.J.onEmojiSelect=function(W){W=W.detail;var P,x;((P=this.data)==null?0:P.emojiCustomizationSetEntityKey)&&((x=this.emojiCustomizationSet)==null?0:x.emojiId)&&W.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.mG("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)}))};
_.J.canEditEmoji=function(W,P,x){W=W.indexOf(P);return W===x||W===0||x===0?!1:!0};
_.J.getUpdatedEmojiIdList=function(W,P,x){var I=W.indexOf(P);W=[].concat(_.ju(W));I>=0&&(W[I]=W[x]);W[x]=P;return W};
_.N1.Object.defineProperties(qo,{template:{configurable:!0,enumerable:!0,get:function(){if(WEb===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Ltc===void 0&&(Ltc=document.createElement("template"));var I=Ltc;x.call(P,I.content.cloneNode(!0),W.content.firstChild);WEb=W}W=WEb;return W}}});
qo.prototype.onEmojiSelect=qo.prototype.onEmojiSelect;_.f([_.h(_.GC),_.l("design:type",Object)],qo.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],qo.prototype,"ytActionHandlerBehavior",void 0);_.f([_.BM("yt-emoji-picker-renderer"),_.l("design:type",Object)],qo.prototype,"emojiPickerRenderer",void 0);
_.f([_.c({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(W,P){return _.Jb(W.entities,"emojiCustomizationSetEntity",P)},
observer:"emojiCustomizationSetChanged"}),_.l("design:type",Object)],qo.prototype,"emojiCustomizationSet",void 0);_.f([_.c(),_.l("design:type",Object)],qo.prototype,"originalEmojiSet",void 0);_.f([_.c(),_.l("design:type",_.zh)],qo.prototype,"emojiManager",void 0);_.f([_.c(),_.l("design:type",Object)],qo.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qo.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",Object)],qo.prototype,"selectedIndex",void 0);
_.f([_.I7("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],qo.prototype,"onEmojiSelect",null);qo=_.f([_.jd({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],qo);var Hnk;var ejc;var ckZ;var akk;var Lk=function(){var W=_.b.apply(this,arguments)||this;W.authorBadges=[];return W};
_.A(Lk,_.b);_.J=Lk.prototype;_.J.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.J.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]]"}}}}}};
_.J.dataChanged=function(){var W=sXU(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",W)};
_.J.updateMessage=function(){var W=this.data.message,P=_.g(_.g(this.hostElement).querySelector("#message"));P.textContent="";W&&P.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.J.onShowOriginalClick=function(W){W.preventDefault();this.showOriginal=!0};
_.J.computeShowBar=function(W,P,x){return W&&P||x};
_.J.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.J.computeAuthorIsOwner=function(W){return!!vLR(W.authorBadges,"owner")};
_.J.computeAuthorNameColor=function(W){var P;if(_.p("live_chat_author_name_color_usernames")&&(W==null?0:(P=W.authorName)==null?0:P.simpleText))return _.QXR(_.CjW(W.authorName.simpleText));if(_.p("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.QXR(_.L_(W.authorSeedColorArgb));if(_.p("live_chat_colored_usernames"))return"#cc0000";var x;return _.p("live_chat_simple_color_usernames")&&(W==null?0:(x=W.authorName)==null?0:x.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.L_(W.authorUsernameColorDark):_.L_(W.authorUsernameColorLight):""};
Lk.prototype.updateMessage=Lk.prototype.updateMessage;Lk.prototype.dataChanged=Lk.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],Lk.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Lk.prototype,"data",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Lk.prototype,"showOriginal",void 0);_.f([_.c({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Lk.prototype,"isDimmed",void 0);_.f([_.c({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Lk.prototype,"showBar",void 0);
_.f([_.c({computed:"computeAuthorBadges(data)"}),_.l("design:type",Array)],Lk.prototype,"authorBadges",void 0);_.f([_.c({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Lk.prototype,"authorIsOwner",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Lk.prototype,"inCollapsedBanner",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Lk.prototype,"inBanner",void 0);
_.f([_.c({value:_.p("live_chat_hide_avatars"),reflectToAttribute:!0}),_.l("design:type",Boolean)],Lk.prototype,"avatarHidden",void 0);_.f([_.c({computed:"computeAuthorNameColor(data)"}),_.l("design:type",String)],Lk.prototype,"authorNameColor",void 0);_.f([_.c(),_.l("design:type",_.hJ)],Lk.prototype,"participantsManager",void 0);_.f([_.c({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.l("design:type",Object)],Lk.prototype,"filledButtonOverrides",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lk.prototype,"dataChanged",null);_.f([_.OZ("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lk.prototype,"updateMessage",null);Lk=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Lk);
_.X(Lk,"yt-live-chat-text-message-renderer",function(){if(akk===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;ckZ===void 0&&(ckZ=document.createElement("template"));var I=ckZ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);akk=W}W=akk;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Wb=function(){var W=_.b.apply(this,arguments)||this;W.tonalButtonOverrides={type:"tonal",style:"overlay"};return W};
_.A(Wb,_.b);
Wb.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]]"}}}}}};
Wb.prototype.shouldSupportInlineActionButtons=function(){return!0};
Wb.prototype.shouldSupportWholeItemClick=function(){return!0};
_.N1.Object.defineProperties(Wb.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],Wb.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Wb.prototype,"data",void 0);_.f([_.c(),_.l("design:type",_.hJ)],Wb.prototype,"participantsManager",void 0);
_.f([_.c(),_.l("design:type",Object)],Wb.prototype,"tonalButtonOverrides",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.infoDialogButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],Wb.prototype,"hasInfoDialogButton",null);Wb=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Wb);
_.X(Wb,"yt-live-chat-auto-mod-message-renderer",function(){if(ejc===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Hnk===void 0&&(Hnk=document.createElement("template"));var I=Hnk;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ejc=W}W=ejc;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var bni;var k2c;var Urc;var Pb=function(){return _.b.apply(this,arguments)||this};
_.A(Pb,_.b);_.f([_.c(),_.l("design:type",Object)],Pb.prototype,"data",void 0);Pb=_.f([_.U({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Pb);
_.X(Pb,"ytd-factoid-renderer",function(){if(Urc!==void 0)return Urc;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Urc=W},{mode:1});var xy=function(){return _.b.apply(this,arguments)||this};
_.A(xy,_.b);xy.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.f([_.c(),_.l("design:type",Object)],xy.prototype,"data",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);xy=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],xy);
_.X(xy,"yt-live-chat-channel-activity-reputation-renderer",function(){if(k2c===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;bni===void 0&&(bni=document.createElement("template"));var I=bni;x.call(P,I.content.cloneNode(!0),W.content.firstChild);k2c=W}W=k2c;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Xsb;var fkc;var IO=function(){return _.b.apply(this,arguments)||this};
_.A(IO,_.b);IO.prototype.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Boolean)],IO.prototype,"menuFocused",void 0);_.f([_.c(),_.l("design:type",Object)],IO.prototype,"data",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],IO.prototype,"ytLiveChatItemBehavior",void 0);IO=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],IO);
_.X(IO,"yt-live-chat-donation-announcement-renderer",function(){if(fkc===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Xsb===void 0&&(Xsb=document.createElement("template"));var I=Xsb;x.call(P,I.content.cloneNode(!0),W.content.firstChild);fkc=W}W=fkc;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var N8m;var lki,T8l=function(){if(lki!==void 0)return lki;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;N8m===void 0&&(N8m=document.createElement("template"));var I=N8m;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return lki=W};var Om=function(){return _.b.apply(this,arguments)||this};
_.A(Om,_.b);_.N1.Object.defineProperties(Om,{template:{configurable:!0,enumerable:!0,get:function(){return T8l()}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Om.prototype,"data",void 0);Om=_.f([_.jd({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Om);_.X(Om,"yt-live-chat-empty-feed-view-model",function(){return T8l()},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var rkZ;var inc;var Jx=function(){return _.b.apply(this,arguments)||this};
_.A(Jx,_.b);Jx.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"}}}}}};
_.N1.Object.defineProperties(Jx.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var W,P;return{runs:[{text:(W=this.data)==null?void 0:(P=W.channelName)==null?void 0:P.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var W=[],P;if((P=this.data)==null||!P.channelBadges)return W;var x;P=_.n((x=this.data)==null?void 0:x.channelBadges);for(x=P.next();!x.done;x=P.next()){x=_.Q(x.value,Km3);var I=void 0,O=void 0;if((I=x)==null?0:(O=I.badgeImage)==null?0:O.sources)I=void 0,O={liveChatAuthorBadgeRenderer:{tooltip:x.tooltip,accessibility:{accessibilityData:{label:(I=_.Q(x.rendererContext,_.TS))==null?void 0:I.label}}}},x.badgeImage.sources[0].clientResource?O.liveChatAuthorBadgeRenderer.icon=
{iconType:x.badgeImage.sources[0].clientResource.imageName}:O.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:x.badgeImage.sources},W.push(O)}return W}}});
_.f([_.c(),_.l("design:type",Object)],Jx.prototype,"data",void 0);_.f([_.H("data.channelName"),_.l("design:type",Object),_.l("design:paramtypes",[])],Jx.prototype,"channelName",null);_.f([_.H("data.channelBadges"),_.l("design:type",Array),_.l("design:paramtypes",[])],Jx.prototype,"channelBadges",null);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);
Jx=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Jx);
_.X(Jx,"yt-live-chat-identity-view-model",function(){if(inc===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;rkZ===void 0&&(rkZ=document.createElement("template"));var I=rkZ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);inc=W}W=inc;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Rjz;var FEm;var quZ;var LEk;var Bb=function(){var W=_.b.apply(this,arguments)||this;W.hidden=!1;W.supportsInlineActionButtons=!0;return W};
_.A(Bb,_.b);Bb.prototype.ready=function(){var W;((W=document.querySelector("yt-live-chat-app"))==null?0:W.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Bb.prototype.dataChanged=function(W){var P=(0,_.Fy)(_.g(this.hostElement).querySelector("#detail-text"));P.textContent="";(W==null?0:W.detailText)&&P.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W.detailText))};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],Bb.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({observer:"dataChanged"}),_.l("design:type",Object)],Bb.prototype,"data",void 0);
_.f([_.c({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.l("design:type",Object)],Bb.prototype,"hidden",void 0);Bb=_.f([_.U({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Bb);
_.X(Bb,"yt-live-chat-legacy-paid-message-renderer",function(){if(LEk===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;quZ===void 0&&(quZ=document.createElement("template"));var I=quZ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);LEk=W}W=LEk;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Wgi;var PHZ;var x6c={},nB=function(){return _.Yl.apply(this,arguments)||this};
_.A(nB,_.Yl);nB.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
nB.prototype.onLiveChatMembershipItemBehaviorClick=nB.prototype.onLiveChatMembershipItemBehaviorClick;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nB.prototype,"data",void 0);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],nB.prototype,"onLiveChatMembershipItemBehaviorClick",null);nB=_.f([_.yL()],nB);
x6c.YtLiveChatMembershipItemBehavior=[nB.prototype,_.L.YtRendererBehavior];var Yy=function(){var W=_.b.apply(this,arguments)||this;W.supportsInlineActionButtons=!0;W.hasPrimaryHeaderText=!1;W.showOnlyHeader=!1;W.authorBadges=[];W.modern=_.p("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.A(Yy,_.b);_.J=Yy.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.J.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.J.messageChanged=function(){var W=this.data.message,P=(0,_.Fy)(_.g(this.hostElement).querySelector("#message"));P.textContent="";W&&P.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.J.computeHasPrimaryHeaderText=function(W){return!(!W||!W.headerPrimaryText)};
_.J.computeShowOnlyHeader=function(W,P){return this.isMessageEmpty(W,P)};
_.J.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.J.isMessageEmpty=function(W,P){return!W||W.empty?!0:!W.message&&!W.inputField&&!P};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.J.getInputElement=function(){return _.g(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.J.inputFocus=function(){var W=this.getInputElement();W&&W.focus()};
_.J.inputInsertEmoji=function(W){var P=this.getInputElement();P&&P.insertEmoji(W)};
_.J.inputMessage=function(){var W=this.getInputElement();return W&&this.data.inputField?(W.completeEmojis(),_.$C(W.liveChatRichMessageInput)):null};
_.J.onFooterButtonClick=function(){this.data.footerButton&&_.Lf(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.J.shouldSupportWholeItemClick=function(){return!0};
Yy.prototype.isDeletedChanged=Yy.prototype.isDeletedChanged;Yy.prototype.messageChanged=Yy.prototype.messageChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],Yy.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.h(x6c.YtLiveChatMembershipItemBehavior),_.l("design:type",Object)],Yy.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Yy.prototype,"data",void 0);_.f([_.c({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.l("design:type",Object)],Yy.prototype,"hasPrimaryHeaderText",void 0);_.f([_.c({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.l("design:type",Object)],Yy.prototype,"showOnlyHeader",void 0);
_.f([_.c({computed:"computeAuthorBadges(data)"}),_.l("design:type",Array)],Yy.prototype,"authorBadges",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Yy.prototype,"modern",void 0);_.f([_.OZ("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yy.prototype,"messageChanged",null);_.f([_.OZ("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yy.prototype,"isDeletedChanged",null);
Yy=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Yy);
_.X(Yy,"yt-live-chat-membership-item-renderer",function(){if(PHZ===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Wgi===void 0&&(Wgi=document.createElement("template"));var I=Wgi;x.call(P,I.content.cloneNode(!0),W.content.firstChild);PHZ=W}W=PHZ;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var IpW;var Oeb;var yl=function(){return _.b.apply(this,arguments)||this};
_.A(yl,_.b);yl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yl.prototype,"data",void 0);yl=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],yl);
_.X(yl,"yt-live-chat-mode-change-message-renderer",function(){if(Oeb===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;IpW===void 0&&(IpW=document.createElement("template"));var I=IpW;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Oeb=W}W=Oeb;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var JIA;var BVz;var KB=function(){return _.b.apply(this,arguments)||this};
_.A(KB,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],KB.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],KB.prototype,"data",void 0);KB=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],KB);
_.X(KB,"yt-live-chat-moderation-message-renderer",function(){if(BVz===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;JIA===void 0&&(JIA=document.createElement("template"));var I=JIA;x.call(P,I.content.cloneNode(!0),W.content.firstChild);BVz=W}W=BVz;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var nIz;var YCc;var Zx=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_button_rework");return W};
_.A(Zx,_.b);Zx.prototype.onClick=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var P;_.Ix.instance.resolveCommand((P=this.data)==null?void 0:P.onClickCommand)}};
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Zx.prototype,"modern",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],Zx.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],Zx.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Zx.prototype,"data",void 0);Zx=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Zx);
_.X(Zx,"yt-live-chat-offer-click-count-message-renderer",function(){if(YCc===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;nIz===void 0&&(nIz=document.createElement("template"));var I=nIz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);YCc=W}W=YCc;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var yIk;var oO=function(){return _.b.apply(this,arguments)||this};
_.A(oO,_.b);_.f([_.c(),_.l("design:type",Object)],oO.prototype,"data",void 0);oO=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],oO);
_.X(oO,"yt-live-chat-placeholder-item-renderer",function(){if(yIk===void 0){var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);yIk=W}W=yIk;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Kgp;var Zec;var oIp=new cu(7),SZ=function(){var W=_.b.apply(this,arguments)||this;W.data={};return W};
_.A(SZ,_.b);SZ.prototype.dataChanged=function(){var W;((W=this.data)==null?0:W.class)&&_.iS(this.hostElement,this.data.class,!0);var P;((P=this.oldData)==null?0:P.class)&&_.iS(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
SZ.prototype.computeTimestampString=function(W){return oIp.format(new Date(W/1E3))};
SZ.prototype.dataChanged=SZ.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],SZ.prototype,"data",void 0);_.f([_.c({computed:"computeTimestampString(data.timestampUsec)"}),_.l("design:type",String)],SZ.prototype,"timestampString",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SZ.prototype,"dataChanged",null);SZ=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],SZ);
_.X(SZ,"yt-live-chat-server-error-message",function(){if(Zec===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Kgp===void 0&&(Kgp=document.createElement("template"));var I=Kgp;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Zec=W}W=Zec;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var SCz;var urZ;var uL=function(){var W=_.b.apply(this,arguments)||this;W.defaultToFilledIcon=!1;return W};
_.A(uL,_.b);uL.prototype.computeHasPrimaryColorIcon=function(W){return W==="SPARK"||W==="SPONSORSHIP_STAR"};
uL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],uL.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uL.prototype,"defaultToFilledIcon",void 0);_.f([_.c(),_.l("design:type",Object)],uL.prototype,"data",void 0);
_.f([_.c({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.l("design:type",Boolean)],uL.prototype,"hasPrimaryColorIcon",void 0);uL=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],uL);
_.X(uL,"yt-live-chat-viewer-engagement-message-renderer",function(){if(urZ===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;SCz===void 0&&(SCz=document.createElement("template"));var I=SCz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);urZ=W}W=urZ;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var d6k;var dW=function(){var W=_.b.apply(this,arguments)||this;W.modernUpdate=!1;W.buttonStyle="overlay";W.buttonType="filled";return W};
_.A(dW,_.b);dW.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
dW.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dW.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],dW.prototype,"modernUpdate",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],dW.prototype,"buttonStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],dW.prototype,"buttonType",void 0);
dW=_.f([_.U({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],dW);
_.X(dW,"ytd-ad-hover-text-button-renderer",function(){if(d6k!==void 0)return d6k;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return d6k=W},{mode:1});var sJl;var sm=function(){var W=_.b.apply(this,arguments)||this;W.buttonOverrides={size:"XS"};W.modern=_.p("web_button_rework");return W};
_.A(sm,_.b);sm.prototype.onHelpTap=function(W){this.data&&this.data.informationDialog&&(_.Lf(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),W.preventDefault(),W.stopPropagation())};
_.f([_.c(),_.l("design:type",Object)],sm.prototype,"buttonOverrides",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sm.prototype,"modern",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sm.prototype,"data",void 0);sm=_.f([_.U({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],sm);
_.X(sm,"ytd-live-chat-purchased-product-message-renderer",function(){if(sJl!==void 0)return sJl;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return sJl=W},{mode:1});var vIA;var m6c;var vb=function(){var W=_.b.apply(this,arguments)||this;W.isContainerDeleted=!1;return W};
_.A(vb,_.b);vb.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
vb.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))};
vb.prototype.isContainerDeletedChanged=vb.prototype.isContainerDeletedChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],vb.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vb.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],vb.prototype,"isContainerDeleted",void 0);
_.f([_.c(),_.l("design:type",String)],vb.prototype,"deletedStateMessage",void 0);_.f([_.OZ("isContainerDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vb.prototype,"isContainerDeletedChanged",null);vb=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],vb);
_.X(vb,"ytd-sponsorships-live-chat-header-renderer",function(){if(m6c!==void 0)return m6c;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return m6c=W},{mode:1});var mI=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.A(mI,_.b);mI.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]]"}}}}}};
mI.prototype.onCtaButtonClick=function(){var W,P=_.Q((W=this.data)==null?void 0:W.optInPrompt,_.w6);if(W=this.maybeGetButtonCommand(P)){var x;(x=_.YY())==null||x.clickCommand(W)}};
mI.prototype.maybeGetButtonCommand=function(W){return!W||!W.command||_.Q(W.command,aym)===void 0&&_.Q(W.command,ccm)===void 0?null:W.command};
mI.prototype.shouldHideOptinPrompt=function(W,P){return!W||P};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],mI.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mI.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mI.prototype,"modern",void 0);mI=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],mI);
_.X(mI,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(vIA!==void 0)return vIA;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return vIA=W},{mode:1});var Vc3;var Vl=function(){return _.b.apply(this,arguments)||this};
_.A(Vl,_.b);Vl.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
Vl.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))};
Vl.prototype.isDeletedChanged=Vl.prototype.isDeletedChanged;_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],Vl.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Vl.prototype,"data",void 0);_.f([_.OZ("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Vl.prototype,"isDeletedChanged",null);Vl=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Vl);
_.X(Vl,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Vc3!==void 0)return Vc3;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Vc3=W},{mode:1});var tx=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return W};
_.A(tx,_.b);_.J=tx.prototype;
_.J.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"}}}};
_.J.handleLiveChatAction=function(W){_.Q(W,Pmz)?this.handleMarkChatItemAsDeletedAction(_.Q(W,Pmz)):_.Q(W,WmP)&&this.handleRemoveChatItemAction(_.Q(W,WmP))};
_.J.handleLiveChatActions=function(W){W.forEach(this.handleLiveChatAction,this)};
_.J.handleMarkChatItemAsDeletedAction=function(W){var P=this,x;((x=this.data)==null?0:x.items)&&this.data.items.forEach(function(I,O){var B=Object.keys(I)[0];Object.values(I)[0].id===W.targetItemId&&P.markAsDeleted("data.items",O,B,W.deletedStateMessage,W.showOriginalContentMessage)})};
_.J.handleRemoveChatItemAction=function(W){var P=this,x;((x=this.data)==null?0:x.items)&&this.data.items.forEach(function(I,O){Object.values(I)[0].id===W.targetItemId&&P.splice("data.items",O,1)})};
_.J.markAsDeleted=function(W,P,x,I,O){W=[W,P,x].join(".");this.set(W+".deletedStateMessage",I);this.set(W+".showOriginalContentMessage",O)};
_.f([_.c(),_.l("design:type",Object)],tx.prototype,"data",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],tx.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],tx.prototype,"ytActionHandlerBehavior",void 0);tx=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],tx);
_.X(tx,"yt-live-chat-item-display-list-renderer",function(){if(FEm===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Rjz===void 0&&(Rjz=document.createElement("template"));var I=Rjz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);FEm=W}W=FEm;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var tcw;var plb,jJm=function(){if(plb!==void 0)return plb;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;tcw===void 0&&(tcw=document.createElement("template"));var I=tcw;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return plb=W};var pB=function(){var W=_.b.apply(this,arguments)||this;W.isHeader=!1;return W};
_.A(pB,_.b);pB.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.N1.Object.defineProperties(pB,{template:{configurable:!0,enumerable:!0,get:function(){return jJm()}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],pB.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pB.prototype,"isHeader",void 0);pB=_.f([_.jd({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],pB);_.X(pB,"yt-live-chat-item-display-renderer",function(){return jJm()},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var QJc,CHl,gIi,EIc;
QJc={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}};CHl={home:"eohps",search:"eosps",watch:"eowps"};_.AId=["watch","search","home"];
_.jZ=function(){this.JSC$12045_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12045_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.$$("PRECONSTRUCTION_DELAY",0);this.signals_=_.HK();this.targetPage_=""};
_.jZ.prototype.init=function(W,P){W=W===void 0?"":W;P=P===void 0?null:P;if(this.JSC$12045_isInitialized_)this.abort();else if(this.JSC$12045_isInitialized_=!0,W&&_.zmk(this,W),P){var x=_.ev(this.signals_,"pcl")?0:10,I=function(){for(var O=0,B;B=_.AId[O++];)B!=W&&B!=P&&this.pendingPages_.push(B);_.GLM(this)}.bind(this);
this.signals_.parkOrScheduleJob(I,x,"pcl")}};
_.jZ.prototype.abort=function(){this.fragmentJobId_&&(_.Gr.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);EIc(this)};
_.zmk=function(W,P){W.JSC$12045_isInitialized_&&!W.targetPage_&&(W.targetPage_=P,gIi(W,P),W.isInitialPass_=!1,gIi(W,P),W.signals_.processSignal(CHl[W.targetPage_]),EIc(W),_.GLM(W))};
_.GLM=function(W){W.pendingPages_.length&&!W.pagePreparerJobId_&&(W.pagePreparerJobId_=_.VE(_.Gr,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.zmk(this,this.pendingPages_.shift())}.bind(W),W.DEFAULT_DELAY_))};
gIi=function(W,P){if(P=QJc[P])for(var x in P){var I=!1,O=x;x.charAt(0)=="~"&&(I=!0,O=x.substring(1));var B=P[x];B=typeof B=="object"?B:{count:B};P[x]=B;B.componentName=O;B.count>0&&(W.isInitialPass_?I||W.isSeenDuringInitialPass_[O]||(W.JSC$12045_queue_.push({componentName:O,count:1,signals:B.signals}),W.isSeenDuringInitialPass_[O]=!0,B.count--):W.JSC$12045_queue_.push(B))}};
EIc=function(W){W.JSC$12045_queue_.length=0;W.targetPage_="";W.isInitialPass_=!0;W.signals_.processSignal("eop")};
_.jZ.getInstance=function(){return _.yV(_.jZ)};var D6p=function(){this.signals=_.HK();this.init()};
D6p.prototype.startPreconstruction=function(){_.jZ.getInstance().init(_.wo("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
D6p.prototype.init=function(){McW(this);window.Polymer&&pPZ&&yJR();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var W=_.xW.ytcsi;if(W&&W.gt&&(W=W.gt())&&W.tick&&(W.tick.aft>0||W.tick.pbs>0)&&(_.wo("IS_HOMEPAGE_COLD")||_.wo("IS_RESULTS_PAGE_COLD")||_.wo("IS_WATCH_PAGE_COLD"))){$6l(this);break a}Vl8(O0m,this.onNotifications,this)}};
var McW=function(W){var P=function(){W.signals.processSignal("dl")};
document.readyState==="complete"?(_.co(Error("sh"),"WARNING"),P()):_.iLC(window,"load",P)};
D6p.prototype.onNotifications=function(W){W.timer||(_.wo("IS_HOMEPAGE_COLD")||_.wo("IS_RESULTS_PAGE_COLD")||_.wo("IS_WATCH_PAGE_COLD"))&&$6l(this)};
var $6l=function(W){W.signals.parkOrScheduleJob(function(){W.signals.processSignal("eocs")},10,"eor")};
new D6p;var Ql,CB=function(){return _.Yl.apply(this,arguments)||this};
_.A(CB,_.Yl);_.J=CB.prototype;_.J.enableActiveViewMeasurement=function(W){if(this.isActiveViewEnabled(W)){var P=this.getUrlPrefixesFromCommand(W.viewableCommands);W=this.getUrlPrefixesFromCommand(W.endOfSessionCommands);if(!Ql){var x=_.Wi("active_view_tos_timeout_ms");Ql=x>0?new CvC(this.getVersion(),x):new CvC(this.getVersion())}z1m(Ql,this.hostElement);Gzt(Ql,this.hostElement,P,W)}};
_.J.stopActiveViewMeasurement=function(){Ql&&z1m(Ql,this.hostElement)};
_.J.isActiveViewEnabled=function(W){return!!W&&(this.hasAtLeastOneUrl(W.viewableCommands)||this.hasAtLeastOneUrl(W.endOfSessionCommands))};
_.J.hasAtLeastOneUrl=function(W){return!!W&&W.length>0&&W[0].loggingUrls!=null&&W[0].loggingUrls.length>0};
_.J.getVersion=function(){var W=_.$$("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
_.J.getUrlPrefixesFromCommand=function(W){if(!W)return[];var P=[];W=_.n(W);for(var x=W.next();!x.done;x=W.next())if(x=x.value,x.loggingUrls){x=_.n(x.loggingUrls);for(var I=x.next();!I.done;I=x.next())I=I.value,I.baseUrl&&P.push(I.baseUrl)}return P};
CB=_.f([_.yL()],CB);var Ax=[CB.prototype];var zp=function(){return _.Yl.apply(this,arguments)||this};
_.A(zp,_.Yl);_.N1.Object.defineProperties(zp.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.p("enable_entity_store_from_dependency_injection")?_.HM():_.Xe()}}});
zp=_.f([_.yL()],zp);_.Gp=[mX.prototype,zp.prototype];var wld=["ytd-rich-shelf-renderer"],Em=function(){var W=_.Yl.apply(this,arguments)||this;W._noAccessors=!0;W.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";W.followUpDialogPromise=null;W.followUpDialogPromiseResolve=null;W.followUpDialogPromiseReject=null;return W};
_.A(Em,_.Yl);_.J=Em.prototype;_.J.dismissibleItemIsDismissedChanged_=function(W){_.p("kevlar_fluid_dismiss")&&(W?_.Lf(this.hostElement,"yt-dismissible-item-dismissed"):_.Lf(this.hostElement,"yt-dismissible-item-undismissed"))};
_.J.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.J.dismissibleItemReset_=function(){var W=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 _.yE(function(P,x){W.followUpDialogPromiseResolve=P;W.followUpDialogPromiseReject=x});
_.Lf(this.hostElement,"yt-enable-lockup-interaction")};
_.J.dismissibleItemOnYtServiceRequestSent_=function(W,P){P.actions&&this.dismissibleItemProcessActions(P.actions,W)};
_.J.dismissibleItemOnRequestSent=function(W){if(_.p("web_button_rework"))for(var P=_.n(W.detail),x=P.next();!x.done;x=P.next()){var I=void 0;(x=(I=_.Q(x.value,_.Y6))==null?void 0:I.actions)&&this.dismissibleItemProcessActions(x,W)}};
_.J.dismissibleItemOnCommandSent=function(W,P){P&&this.dismissibleItemProcessActions(P,W)};
_.J.setAndGetDismissedContentId=function(W){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+W};
_.J.replayDismissAction=function(W){this.dismissibleItemProcessActions([W])};
_.J.dismissibleItemProcessActions=function(W,P){for(var x=0;x<W.length;x++){var I=W[x],O=void 0;((O=_.Q(I,_.B7))==null?0:O.commands)&&this.dismissibleItemProcessActions(_.Q(I,_.B7).commands,P);if(_.Q(I,_.tc)){if(O=_.Q(I,_.tc),!O.replaceParentSection||wld.includes(this.hostElement.nodeName.toLowerCase()))_.p("web_see_fewer_shorts_reactive_dismissal")&&O.groupDismissal&&cIG(this,O.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(O),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.mG("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:I})),I=void 0,(I=P)==null||I.stopPropagation()}else if(_.Q(I,ZWP))this.dismissibleItemHandleHideEnclosingAction_(),I=void 0,(I=P)==null||I.stopPropagation();else if(_.Q(I,Q_3))_.p("web_see_fewer_shorts_reactive_dismissal")&&(I=_.Q(I,Q_3),O=void 0,((O=I)==null?0:O.targetGroupId)&&cIG(this,{targetGroupId:I.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.mG("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),I=void 0,(I=P)==null||I.stopPropagation();else if(_.Q(I,_.Y6))(I=_.Q(I,_.Y6).actions)&&_.OL(this.hostElement,I,this.hostElement),I=void 0,(I=P)==null||I.stopPropagation();else{var B=O=void 0;((O=_.Q(I,_.eo))==null?void 0:O.signal)!=="TELL_US_WHY"||((B=_.Q(I,_.eo))==null?0:B.targetId)&&_.p("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),I=void 0,(I=P)==null||I.stopPropagation())}}};
_.J.dismissibleItemOnYtServiceRequestCompleted_=function(W,P){var x=this.get("feedbackResponses.0.followUpDialog",P.data);x?this.followUpDialogPromiseResolve(x):P.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(P.actions,W)};
_.J.dismissibleItemHandleReplaceEnclosingAction_=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0;var P=null;(P=_.g(this.hostElement).querySelector("#dismissed"))&&_.Xm(this,function(){_.fD(P)});
_.Lf(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.J.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.J.dismissibleItemHandleUndoFeedbackAction_=function(){_.Lf(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.J.dismissibleItemHandleTellUsWhySignalAction_=function(){var W=this;this.followUpDialogPromise.then(function(P){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:P}})})};
Em.prototype.dismissibleItemOnYtServiceRequestCompleted_=Em.prototype.dismissibleItemOnYtServiceRequestCompleted_;Em.prototype.dismissibleItemOnCommandSent=Em.prototype.dismissibleItemOnCommandSent;Em.prototype.dismissibleItemOnRequestSent=Em.prototype.dismissibleItemOnRequestSent;Em.prototype.dismissibleItemOnYtServiceRequestSent_=Em.prototype.dismissibleItemOnYtServiceRequestSent_;Em.prototype.dismissibleItemDataChanged_=Em.prototype.dismissibleItemDataChanged_;
Em.prototype.dismissibleItemIsDismissedChanged_=Em.prototype.dismissibleItemIsDismissedChanged_;_.f([_.h(_.bb),_.l("design:type",Object)],Em.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Em.prototype,"ytdReduxBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Em.prototype,"isDismissed",void 0);_.f([_.c(),_.l("design:type",Object)],Em.prototype,"dismissedRenderer",void 0);
_.f([_.OZ("isDismissed"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],Em.prototype,"dismissibleItemIsDismissedChanged_",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Em.prototype,"dismissibleItemDataChanged_",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],Em.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.f([_.I7("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Em.prototype,"dismissibleItemOnRequestSent",null);
_.f([_.I7("yt-dismissible-item-action"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Array]),_.l("design:returntype")],Em.prototype,"dismissibleItemOnCommandSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],Em.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);Em=_.f([_.yL()],Em);_.gW=[_.bb,_.Gp,Em.prototype];var Dx=function(){var W=_.Yl.apply(this,arguments)||this;W.disableGridStateAware=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.currentGridClass="";return W};
_.A(Dx,_.Yl);Dx.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Xm(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var W=this.gridStateAwareGetElement();_.iS(W,"grid",!0)}};
Dx.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Dx.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.g(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Dx.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var W="grid-disabled";else{W=_.aWk.getInstance();var P=this.get("pageSubtype");W=P&&HrZ.includes(P)?"grid-disabled":W.currentSnapState_?W.currentSnapState_.className:null}(P=this.gridStateAwareGetElement())&&W!==this.currentGridClass&&(W&&_.iS(P,W,!0),this.currentGridClass&&_.iS(P,this.currentGridClass,!1),this.currentGridClass=W)};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Dx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",String)],Dx.prototype,"gridStateAwareSizingElementSelector",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Dx.prototype,"disableGridStateAware",void 0);Dx=_.f([_.yL()],Dx);_.MW=[Dx.prototype,_.rb.YtActionHandlerBehavior];_.$y=new _.Lb("GUIDE_TOKEN");var hx;_.wW={};hx=function(){var W=_.Yl.apply(this,arguments)||this;W.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 W};
_.A(hx,_.Yl);_.J=hx.prototype;_.J.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var W=_.FY().resolve(_.Rl(_.$y));W&&(this.guidePersistentAndVisible=W.getGuidePersistentAndVisible(),this.activeEndpoint=W.getActiveEndpoint(),this.guideOpened=W.getGuideOpened(),this.miniGuideVisible=W.getMiniGuideVisible())};
_.J.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.J.handleGuideStateAction=function(W){this.guidePersistentAndVisible=W};
_.J.handleMiniGuideStateAction=function(W){this.miniGuideVisible=W};
_.J.handleGuideOpenedAction=function(W){this.guideOpened=W};
_.J.handleActiveEndpointAction=function(W){this.activeEndpoint=W};
hx.prototype.onActiveEndpointChange=hx.prototype.onActiveEndpointChange;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],hx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],hx.prototype,"guidePersistentAndVisible",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],hx.prototype,"miniGuideVisible",void 0);_.f([_.c(),_.l("design:type",Object)],hx.prototype,"activeEndpoint",void 0);
_.f([_.OZ("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hx.prototype,"onActiveEndpointChange",null);_.f([_.c(),_.l("design:type",Boolean)],hx.prototype,"guideOpened",void 0);hx=_.f([_.yL()],hx);_.wW.YtdGuideStateAwareBehavior=[];_.wW.YtdGuideStateAwareBehavior.push(hx.prototype,_.rb.YtActionHandlerBehavior);var hmP=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Hb=function(){var W=_.Yl.apply(this,arguments)||this;W.hoverJobId=0;W.JSC$12076_touched=!1;return W};
_.A(Hb,_.Yl);_.J=Hb.prototype;_.J.created=function(){this.useExpandableTooltip=!hmP.includes(this.is)};
_.J.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.J.detached=function(){this.useExpandableTooltip=!1};
_.J.lockupOnDown=function(W){this.interactionElement&&!_.Nx(_.c5(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.J.lockupOnUp=function(W){this.interactionElement&&!_.Nx(_.c5(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.J.onTouchStart=function(){this.JSC$12076_touched=!0};
_.J.lockupOnMouseEnter=function(){var W=this,P=_.Wi("kevlar_lockup_hover_delay",-1);this.JSC$12076_touched&&P>=0?(_.Gr.cancelJob(this.hoverJobId),this.hoverJobId=_.Gr.addJob(function(){W.lockupIsHovered=!0},8,P),this.JSC$12076_touched=!1):this.lockupIsHovered=!0};
_.J.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Gr.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.J.lockupOnPopupClosed=function(W,P){var x;((x=P.popupRenderer)==null?void 0:x.is)==="ytd-menu-popup-renderer"&&(W=P.popupRenderer.veData,P=_.E_(),W&&P&&_.au(P,[W]))};
_.J.lockupOnLockupRequested=function(W){var P=W.detail.videoIds[0],x;W.detail&&P===((x=this.data)==null?void 0:x.videoId)&&(W.detail.returnValue=[this.data])};
_.J.lockupOnYtServiceRequestSent=function(W,P){if(W=P.actions)for(var x=0;x<W.length;x++){var I=W[x];if(I.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&P.ajaxPromise){var O=void 0,B=(O=_.Q(P.endpoint,_.Dy))==null?void 0:O.playlistId;O=void 0;I=(O=I.removedVideoId)!=null?O:"";nti(_.am(),I,B)}else I.action==="ACTION_REMOVE_VIDEO"&&P.ajaxPromise&&(B=void 0,I=(B=I.setVideoId)!=null?B:"",_.Y$W(_.am(),I))}};
_.J.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.J.lockupOnLockupEnabled=function(){if(!this.$){var W=_.FY().resolve(_.rL).getCurrentPage(),P=this.getParentRenderer?this.getParentRenderer():void 0;_.ge(new _.mW("component not ready",this.is,this.isAttached,W==null?void 0:W.is,P==null?void 0:P.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Hb.prototype.lockupOnLockupEnabled=Hb.prototype.lockupOnLockupEnabled;Hb.prototype.lockupOnLockupDisabled=Hb.prototype.lockupOnLockupDisabled;Hb.prototype.lockupOnYtServiceRequestSent=Hb.prototype.lockupOnYtServiceRequestSent;Hb.prototype.lockupOnLockupRequested=Hb.prototype.lockupOnLockupRequested;Hb.prototype.lockupOnPopupClosed=Hb.prototype.lockupOnPopupClosed;Hb.prototype.lockupOnMouseLeave=Hb.prototype.lockupOnMouseLeave;Hb.prototype.lockupOnMouseEnter=Hb.prototype.lockupOnMouseEnter;
Hb.prototype.onTouchStart=Hb.prototype.onTouchStart;Hb.prototype.lockupOnUp=Hb.prototype.lockupOnUp;Hb.prototype.lockupOnDown=Hb.prototype.lockupOnDown;_.f([_.c(),_.l("design:type",Object)],Hb.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],Hb.prototype,"lockupIsHovered",void 0);_.f([_.c(),_.l("design:type",Boolean)],Hb.prototype,"lockupTouchTriggered",void 0);_.f([_.c(),_.l("design:type",Boolean)],Hb.prototype,"useExpandableTooltip",void 0);
_.f([_.BM("#interaction"),_.l("design:type",Object)],Hb.prototype,"interactionElement",void 0);_.f([_.I7("down"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Hb.prototype,"lockupOnDown",null);_.f([_.I7("up"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Hb.prototype,"lockupOnUp",null);
_.f([_.I7("touchstart"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hb.prototype,"onTouchStart",null);_.f([_.I7("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hb.prototype,"lockupOnMouseEnter",null);_.f([_.I7("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hb.prototype,"lockupOnMouseLeave",null);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Hb.prototype,"lockupOnPopupClosed",null);_.f([_.I7("yt-lockup-requested"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Hb.prototype,"lockupOnLockupRequested",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],Hb.prototype,"lockupOnYtServiceRequestSent",null);_.f([_.I7("yt-disable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hb.prototype,"lockupOnLockupDisabled",null);
_.f([_.I7("yt-enable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hb.prototype,"lockupOnLockupEnabled",null);Hb=_.f([_.yL()],Hb);_.eZ=[Hb.prototype];_.Hez={YtdReduxBehavior:[]};_.Hez.YtdReduxBehavior.push.apply(_.Hez.YtdReduxBehavior,_.Gp);var cb=function(){var W=_.Yl.apply(this,arguments)||this;W._noAccessors=!0;W.disableNowPlaying=!1;W.disableTooltips=!1;W.useHoveredProperty=!1;W.hovered=!1;W.isThumbnailHovered_=!1;W.addBackground=_.p("kevlar_thumbnail_bg");W.nowPlaying=!1;W.disableRounding=!1;W.size="small";return W};
_.A(cb,_.Yl);_.J=cb.prototype;_.J.computeThumbnailOverlaySidePanelWidth_=function(W,P){return W-P};
_.J.computeSize=function(W,P){if(!this.disableRounding){if(!W&&!P)return"small";W=Math.max(W||0,P||0);return W>=256?"large":W>=96?"medium":"small"}};
_.J.computeFinalHoveredState_=function(W,P,x){return this.nowPlaying?!1:_.p("kevlar_thumbnail_fluid")&&W?P:x};
_.J.computeHoverOverlays_=function(W,P){return W&&P?P:void 0};
_.J.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.J.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.J.checkMiniplayer_=function(){var W;if(((W=this.data)==null?0:W.playlistSetVideoId)&&_.p("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{W=_.ug();var P=W.currentEndpoint;!this.disableNowPlaying&&P&&_.Q(P,_.U_)&&this.data?(P=_.Q(P,_.U_),this.nowPlaying=this.data.playlistId?P.playlistId===this.data.playlistId:P.videoId===this.data.videoId,this.isVideoPlaying=W==null?void 0:W.isVideoPlaying):this.nowPlaying=!1}};
cb.prototype.checkMiniplayer_=cb.prototype.checkMiniplayer_;cb.prototype.onMouseLeave_=cb.prototype.onMouseLeave_;cb.prototype.onMouseEnter_=cb.prototype.onMouseEnter_;cb.prototype.computeHoverOverlays_=cb.prototype.computeHoverOverlays_;cb.prototype.computeFinalHoveredState_=cb.prototype.computeFinalHoveredState_;cb.prototype.computeSize=cb.prototype.computeSize;cb.prototype.computeThumbnailOverlaySidePanelWidth_=cb.prototype.computeThumbnailOverlaySidePanelWidth_;
_.f([_.h(_.Gp),_.l("design:type",Object)],cb.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cb.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],cb.prototype,"height",void 0);_.f([_.c(),_.l("design:type",Boolean)],cb.prototype,"bottomSidePanel",void 0);_.f([_.c(),_.l("design:type",Number)],cb.prototype,"width",void 0);_.f([_.c(),_.l("design:type",Object)],cb.prototype,"disableNowPlaying",void 0);
_.f([_.c({selector:_.Ab}),_.l("design:type",Boolean)],cb.prototype,"miniplayerIsActive",void 0);_.f([_.c(),_.l("design:type",Object)],cb.prototype,"disableTooltips",void 0);_.f([_.c(),_.l("design:type",Object)],cb.prototype,"useHoveredProperty",void 0);_.f([_.c(),_.l("design:type",Object)],cb.prototype,"hovered",void 0);_.f([_.c(),_.l("design:type",Object)],cb.prototype,"isThumbnailHovered_",void 0);
_.f([_.c({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.l("design:type",Boolean)],cb.prototype,"finalHoveredState_",void 0);_.f([_.c({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.l("design:type",Number)],cb.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],cb.prototype,"addBackground",void 0);
_.f([_.c({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.l("design:type",Object)],cb.prototype,"hoverOverlays_",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],cb.prototype,"nowPlaying",void 0);_.f([_.c(),_.l("design:type",Boolean)],cb.prototype,"isVideoPlaying",void 0);_.f([_.c(),_.l("design:type",Object)],cb.prototype,"disableRounding",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.l("design:type",Object)],cb.prototype,"size",void 0);_.f([_.I7("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cb.prototype,"onMouseEnter_",null);_.f([_.I7("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cb.prototype,"onMouseLeave_",null);
_.f([_.OZ("data","disableNowPlaying","miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cb.prototype,"checkMiniplayer_",null);cb=_.f([_.yL()],cb);var emP=[cb.prototype];_.aO={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(W,P){return W+":"+_.nM(P)},
getPlayerListener_:function(W,P,x){W=this.getPlayerListenerKey_(W,P);P=this.playerListeners_.get(W);x&&this.playerListeners_.delete(W);return P},
savePlayerListener_:function(W,P){var x=P.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(W,P),x);return x},
listenToPlayerEvent:function(W,P,x){x=this.savePlayerListener_(P,x);W.addEventListener(P,x)},
listenToPlayerEvents:function(W,P){P.forEach(function(x,I){this.listenToPlayerEvent(W,I,x)}.bind(this))},
unlistenFromPlayerEvent:function(W,P,x){x=this.getPlayerListener_(P,x,!0);W.removeEventListener(P,x)},
unlistenFromPlayerEvents:function(W,P){P.forEach(function(x,I){this.unlistenFromPlayerEvent(W,I,x)}.bind(this))}}};
_.bL=function(){};_.cIZ=new _.Lb("PLAYER_API_TOKEN");var XlU=!1,TVt,NVA=!1,ie7;var LE=function(W,P,x,I,O){_.vn.call(this);var B=this;this.playerId=P;this.webPlayerContextConfig=I;this.vUP=O;this.pCL=!1;this.api={};this.dms=this.cgs=null;this.aLa=new _.Z8;this.lX={};this.aAa=this.mLw=this.elementId=this.hSu=this.config=null;this.u7K=!1;this.cz=this.muR=null;this.dTc={};this.b4O=["onReady"];this.lastError=null;this.o01=NaN;this.jlK={};this.yVK=0;this.kH=this.targetElement=W;_.nU(this,this.aLa);app(this);x?this.yVK=setTimeout(function(){B.loadNewVideoConfig(x)},0):I&&(bek(this),
kLW(this))};
_.A(LE,_.vn);LE.prototype.getId=function(){return this.playerId};
LE.prototype.loadNewVideoConfig=function(W){if(!this.isDisposed()){this.yVK&&(clearTimeout(this.yVK),this.yVK=0);var P=W||{};P instanceof v9i||(P=new v9i(P));this.config=P;this.setConfig(W);kLW(this);this.isReady()&&U6W(this)}};
var bek=function(W){var P;W.webPlayerContextConfig?P=W.webPlayerContextConfig.rootElementId:P=W.config.attrs.id;W.elementId=P||W.elementId;W.elementId==="video-player"&&(W.elementId=W.playerId,W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.playerId:W.config.attrs.id=W.playerId);var x;((x=W.kH)==null?void 0:x.id)===W.elementId&&(W.elementId+="-player",W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.elementId:W.config.attrs.id=W.elementId)};
LE.prototype.setConfig=function(W){this.hSu=W;this.config=Xlc(W);bek(this);if(!this.mLw){var P;this.mLw=fpw(this,((P=this.config.args)==null?void 0:P.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var x;if((x=this.config)==null?0:x.attrs)W=this.config.attrs,(P=W.width)&&this.kH&&(this.kH.style.width=eA(Number(P)||P,!0)),(W=W.height)&&this.kH&&(this.kH.style.height=eA(Number(W)||W,!0))};
var U6W=function(W){if(W.config&&W.config.loaded!==!0)if(W.config.loaded=!0,!W.config.args||W.config.args.autoplay!=="0"&&W.config.args.autoplay!==0&&W.config.args.autoplay!==!1){var P;W.api.loadVideoByPlayerVars((P=W.config.args)!=null?P:null)}else W.api.cueVideoByPlayerVars(W.config.args)},lpi=function(W){var P=!0,x=W.getPlayerElement();
x&&W.config&&(P=x.dataset.version===NV3(W));return P&&!!_.eL("yt.player.Application.create")},kLW=function(W){if(!W.isDisposed()&&!W.u7K){var P=lpi(W);
if(P&&(W.getPlayerElement()?"html5":null)==="html5")W.aAa="html5",W.isReady()||TVl(W);else if(rI3(W),W.aAa="html5",P&&W.cz&&W.targetElement)W.targetElement.appendChild(W.cz),TVl(W);else{W.config&&(W.config.loaded=!0);var x=!1;W.muR=function(){x=!0;var I=ieb(W,"player_bootstrap_method")?_.eL("yt.player.Application.createAlternate")||_.eL("yt.player.Application.create"):_.eL("yt.player.Application.create");var O=W.config?Xlc(W.config):void 0;I&&I(W.targetElement,O,W.webPlayerContextConfig,W.vUP);TVl(W)};
W.u7K=!0;P?W.muR():(_.h1(NV3(W),W.muR),(P=RmZ(W))&&Cm7(P||""),FgA(W)&&!x&&_.lA("yt.player.Application.create",null))}}};
LE.prototype.getPlayerElement=function(){var W=_.qx(document,this.elementId);!W&&this.kH&&this.kH.querySelector&&(W=this.kH.querySelector("#"+this.elementId));return W};
var TVl=function(W){if(!W.isDisposed()){var P=W.getPlayerElement(),x=!1;P&&P.getApiInterface&&P.getApiInterface()&&(x=!0);if(x){W.u7K=!1;if(!ieb(W,"html5_remove_not_servable_check_killswitch")){var I;if((P==null?0:P.isNotServable)&&W.config&&(P==null?0:P.isNotServable((I=W.config.args)==null?void 0:I.video_id)))return}qCk(W)}else W.o01=setTimeout(function(){TVl(W)},50)}},qCk=function(W){app(W);
W.pCL=!0;var P=W.getPlayerElement();if(P){W.cgs=Lgc(W,P,"addEventListener");W.dms=Lgc(W,P,"removeEventListener");var x=P.getApiInterface();x=x.concat(P.getInternalApiInterface());for(var I=W.api,O=0;O<x.length;O++){var B=x[O];I[B]||(I[B]=Lgc(W,P,B))}}for(var Y in W.lX)W.lX.hasOwnProperty(Y)&&W.cgs&&W.cgs(Y,W.lX[Y]);U6W(W);W.mLw&&W.mLw(W.api);W.aLa.publish("onReady",W.api)},Lgc=function(W,P,x){var I=P[x];
return function(){var O=_.tH.apply(0,arguments);try{return W.lastError=null,I.apply(P,O)}catch(B){if(x!=="sendAbandonmentPing")throw B.params=x,W.lastError=B,O=new _.mW("PlayerProxy error in method call",{error:B,method:x,playerId:W.playerId}),O.level="WARNING",O;}}},app=function(W){W.pCL=!1;
if(W.dms)for(var P in W.lX)W.lX.hasOwnProperty(P)&&W.dms(P,W.lX[P]);for(var x in W.jlK)W.jlK.hasOwnProperty(x)&&clearTimeout(Number(x));W.jlK={};W.cgs=null;W.dms=null;P=W.api;for(var I in P)P.hasOwnProperty(I)&&(P[I]=null);P.addEventListener=function(O,B){W.addEventListener(O,B)};
P.removeEventListener=function(O,B){W.removeEventListener(O,B)};
P.destroy=function(){W.dispose()};
P.getLastError=function(){return W.getLastError()};
P.getPlayerType=function(){return W.getPlayerType()};
P.getCurrentVideoConfig=function(){return W.hSu};
P.loadNewVideoConfig=function(O){W.loadNewVideoConfig(O)};
P.isReady=function(){return W.isReady()}};
LE.prototype.isReady=function(){return this.pCL};
LE.prototype.addEventListener=function(W,P){var x=this;this.isDisposed();var I=fpw(this,P);I&&(_.N7(this.b4O,W)||this.lX[W]||(P=W53(this,W),this.cgs&&this.cgs(W,P)),this.aLa.subscribe(W,I),W==="onReady"&&this.isReady()&&setTimeout(function(){I(x.api)},0))};
LE.prototype.removeEventListener=function(W,P){this.isDisposed()||(P=fpw(this,P))&&this.aLa.unsubscribe(W,P)};
var fpw=function(W,P){var x=P;if(typeof P==="string"){if(W.dTc[P])return W.dTc[P];x=function(){var I=_.tH.apply(0,arguments),O=_.eL(P);if(O)try{O.apply(_.xW,I)}catch(B){throw I=new _.mW("PlayerProxy error when executing callback",{error:B}),I.level="ERROR",I;}};
W.dTc[P]=x}return x?x:null},W53=function(W,P){var x=function(I){var O=function(){W.isDisposed();
if(!W.isDisposed())try{W.aLa.publish(P,I!=null?I:void 0)}catch(K){var Y=new _.mW("PlayerProxy error when creating global callback",{error:K.message,event:P,playerId:W.playerId,data:I,originalStack:K.stack,componentStack:K.componentStack});Y.level="WARNING";throw Y;}};
if(ieb(W,"web_player_publish_events_immediately"))O();else{var B=setTimeout(function(){O();_.jU.remove(W.jlK,String(B))},0);
_.jU.add(W.jlK,String(B),!0)}};
return W.lX[P]=x};
LE.prototype.getPlayerType=function(){return this.aAa||(this.getPlayerElement()?"html5":null)};
LE.prototype.getLastError=function(){return this.lastError};
var rI3=function(W){W.cancel();app(W);W.aAa=null;W.config&&(W.config.loaded=!1);var P=W.getPlayerElement();P&&(lpi(W)||!FgA(W)?W.cz=P:(P&&P.destroy&&P.destroy(),W.cz=null));W.targetElement&&_.gN(W.targetElement)};
LE.prototype.cancel=function(){this.muR&&_.Lz7(NV3(this),this.muR);clearTimeout(this.o01);this.u7K=!1};
LE.prototype.disposeInternal=function(){rI3(this);if(this.cz&&this.config&&this.cz.destroy)try{this.cz.destroy()}catch(P){var W=new _.mW("PlayerProxy error during disposal",{error:P});W.level="ERROR";throw W;}this.dTc=null;for(W in this.lX)this.lX.hasOwnProperty(W)&&delete this.lX[W];this.hSu=this.config=this.api=null;delete this.targetElement;delete this.kH;_.vn.prototype.disposeInternal.call(this)};
var FgA=function(W){var P,x;W=(P=W.config)==null?void 0:(x=P.args)==null?void 0:x.fflags;return!!W&&W.indexOf("player_destroy_old_version=true")!==-1},NV3=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.jsUrl:(W=W.config.assets)?W.js:""},RmZ=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.cssUrl:(W=W.config.assets)?W.css:""},ieb=function(W,P){if(W.webPlayerContextConfig)var x=W.webPlayerContextConfig.serializedExperimentFlags;
else{var I;if((I=W.config)==null?0:I.args)x=W.config.args.fflags}return(x||"").split("&").includes(P+"=true")},Xlc=function(W){for(var P={},x=_.n(Object.keys(W)),I=x.next();!I.done;I=x.next()){I=I.value;
var O=W[I];P[I]=typeof O==="object"?_.jU.clone(O):O}return P};var W5A={},LgU="player_uid_"+(Math.random()*1E9>>>0);var ky=function(W,P,x,I,O,B){P=P===void 0?document.createElement("div"):P;this.webPlayerContextConfig=W;this.container=P;this.commandResolver=x;this.apiResolver=Ijm();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.If;I||B?PuW(this):x8Z(this);this.pendingPlayerResponse=I;this.pendingWatchNextResponse=O;this.pendingPlayerVars=B;Ijw(this)};
ky.prototype.loadVideoWithPlayerResponse=function(W,P,x){this.loadVideo(W,P,x)};
ky.prototype.loadVideoWithPlayerVars=function(W){return this.loadVideo(void 0,void 0,W)};
ky.prototype.destroy=function(W){if(W=_.qx(document,W))W=LgU+"_"+_.nM(W),(W=W5A[W])&&W.dispose()};
var JXP=function(W,P){var x;_.y(function(I){if(I.nextAddress==1)return W.pendingWatchNextResponse=P,W.synchronousApi?(x=W.synchronousApi,I.jumpTo(2)):_.S(I,W.api,3);I.nextAddress!=2&&(x=I.yieldResult);O3d(W,x);W.pendingWatchNextResponse&&(x.updateVideoData({raw_watch_next_response:W.pendingWatchNextResponse}),W.pendingWatchNextResponse=void 0);_.Kl(I)})},O3d=function(W,P){var x;
if(!(P==null?0:(x=P.isReady)==null?0:x.call(P))){var I;W=new _.mW("playerApi is falsey",{synchronousApi:W.synchronousApi,apiResolved:W.apiResolver.resolved,playerApiUndefined:P===void 0,playerApiNull:P===null,playerApiReady:(P==null?void 0:(I=P.isReady)==null?void 0:I.call(P))===!0,playerApiMethods:P?Object.keys(P):[]});_.G$(W)}},BuZ=function(W,P){if(typeof W[P]==="function")return W[P]()},nGP=function(W){var P=window,x,I=(x=P.ytplayer)==null?void 0:x.bootstrapPlayerContainer;
if((x=I==null?void 0:I.firstElementChild)&&_.kf(x,"html5-video-player")){var O,B,Y=(O=P.ytplayer)==null?void 0:(B=O.bootstrapWebPlayerContextConfig)==null?void 0:B.contextId;O=W.webPlayerContextConfig.contextId;if(Y&&Y===O){I!==W.container&&(I=!1,BuZ(x,"getPlayerState")===2&&(I=!0),W.container.appendChild(x),I||BuZ(x,"playVideo"));var K;if((K=P.ytplayer)==null?0:K.bootstrapPlayerResponse)W.bootstrapPlayerResponse=P.ytplayer.bootstrapPlayerResponse}}},Ijw=function(W){var P,x,I,O,B;
_.y(function(Y){if(Y.nextAddress==1)return W.pageReadyOrDataAvailable?Y.jumpTo(2):_.S(Y,W.pageReadyOrDataAvailableResolver.promise,2);if(Y.nextAddress!=4)return!_.p("kevlar_player_unified_player_loading")||fpm()&&lpW()?Y.jumpTo(4):_.S(Y,FgR(),4);nGP(W);if(W.pendingPlayerResponse||W.pendingPlayerVars)P=qCS(W.pendingPlayerResponse,W.pendingWatchNextResponse,W.pendingPlayerVars),W.pendingPlayerResponse&&W.pendingPlayerResponse===W.bootstrapPlayerResponse&&(P.loaded=!0),W.bootstrapPlayerResponse=void 0;
x=x8G(W.container,P,W.webPlayerContextConfig);((I=P)==null?0:I.loaded)&&W.pendingWatchNextResponse?(JXP(W,W.pendingWatchNextResponse),W.pendingPlayerResponse=void 0,W.pendingPlayerVars=void 0):YRc(W);O=function(K){x.removeEventListener("onReady",O);W.synchronousApi=K;W.apiResolver.resolve(K)};
x.addEventListener("onReady",O);W.commandResolver!==void 0&&(B=W.commandResolver,x.addEventListener("innertubeCommand",function(K){B(K)}));
_.Kl(Y)})};
ky.prototype.loadVideo=function(W,P,x){var I=this,O,B,Y,K,Z,d,v,m,t;return _.y(function(C){if(C.nextAddress==1)return I.pendingPlayerResponse=W,I.pendingWatchNextResponse=P,I.pendingPlayerVars=x,PuW(I),I.synchronousApi?(O=I.synchronousApi,C.jumpTo(2)):_.S(C,I.api,3);C.nextAddress!=2&&(O=C.yieldResult);O3d(I,O);Y=new Promise(function(z){B=z});
K=function(){var z=O.getPlayerResponse();z&&(O.removeEventListener("onVideoDataChange",K),B(z))};
O.addEventListener("onVideoDataChange",K);if(I.pendingPlayerResponse||I.pendingPlayerVars)I.pendingPlayerResponse&&I.pendingPlayerResponse===I.bootstrapPlayerResponse?(B(I.pendingPlayerResponse),I.pendingWatchNextResponse&&JXP(I,I.pendingWatchNextResponse)):(Z=qCS(I.pendingPlayerResponse,I.pendingWatchNextResponse,I.pendingPlayerVars),(t=(d=I.pendingPlayerResponse)==null?void 0:(v=d.playerConfig)==null?void 0:(m=v.playbackStartConfig)==null?void 0:m.startPaused)?O.cueVideoByPlayerVars(Z.args):O.loadVideoByPlayerVars(Z.args)),
YRc(I),I.bootstrapPlayerResponse=void 0;return C.return(Y)})};
var x8Z=function(W){if(document.readyState==="complete"||document.readyState==="interactive")PuW(W);else{var P=function(){document.removeEventListener("DOMContentLoaded",P);PuW(W)};
document.addEventListener("DOMContentLoaded",P)}},PuW=function(W){W.pageReadyOrDataAvailable=!0;
W.pageReadyOrDataAvailableResolver.resolve()},YRc=function(W){W.pendingPlayerResponse=void 0;
W.pendingWatchNextResponse=void 0;W.pendingPlayerVars=void 0};
_.N1.Object.defineProperties(ky.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Um=function(W){M_.call(this,W===void 0?"document_active":W);var P=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(x){P.transition("document_disposed",{event:x})});
window.addEventListener("beforeunload",function(x){P.transition("document_disposed_preventable",{event:x})});
window.addEventListener("unload",function(x){P.transition("document_disposed",{event:x});P.hasRun=new Map})};
_.A(Um,M_);
Um.prototype.runPreventableDispose=function(W,P){if(!this.hasRun.get("document_disposed_preventable")){W(P==null?void 0:P.event);var x,I;if((P==null?0:(x=P.event)==null?0:x.defaultPrevented)||(P==null?0:(I=P.event)==null?0:I.returnValue)){P.event.returnValue||(P.event.returnValue=!0);P.event.defaultPrevented||P.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
Um.prototype.runDispose=function(W,P){this.hasRun.get("document_disposed")?this.transition("document_active"):(W(P==null?void 0:P.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Um.prototype.runFlush=function(W,P){W(P==null?void 0:P.event);this.transition("document_active")};
Um.prototype.runActive=function(){};var XN=function(W){M_.call(this,W===void 0?"document_visibility_unknown":W);var P=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(x){document.visibilityState==="visible"?P.transition("document_visible",{event:x}):P.transition("document_hidden",
{event:x})});
_.p("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(x){P.transition("document_backgrounded",{event:x})}),window.addEventListener("focus",function(x){P.transition("document_foregrounded",{event:x})}))};
_.A(XN,M_);XN.prototype.runVisible=function(W,P){W(P==null?void 0:P.event);_.p("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
XN.prototype.runHidden=function(W,P){W(P==null?void 0:P.event);_.p("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
XN.prototype.runBackgrounded=function(W,P){W(P==null?void 0:P.event)};
XN.prototype.runForegrounded=function(W,P){W(P==null?void 0:P.event)};var fB=function(){this.teardownLifecycle=new Um;this.visibilityLifecycle=new XN};
fB.prototype.install=function(){var W=_.tH.apply(0,arguments),P=this;W.forEach(function(x){P.teardownLifecycle.install(x)});
W.forEach(function(x){P.visibilityLifecycle.install(x)})};var NW=function(){fB.call(this);var W={};this.install((W.document_disposed={callback:this.abortSlisAndFlush},W));_.p("combine_ve_grafts")&&(W={},this.install((W.document_disposed={callback:this.flushInteractionLoggingAttachVes},W)));W={};this.install((W.flush_logs={callback:this.logFinalPayload},W));_.p("web_log_cfg_cee_ks")||_.VE(_.Gr,yXd)};
_.A(NW,fB);var O3x=function(){NW.loggingInstance||(NW.loggingInstance=new NW);return NW.loggingInstance};
NW.prototype.logFinalPayload=function(){if(_.p("web_fp_via_jspb")){var W=new RUw,P=_.E_();P&&_.SU(W,1,P);P=_.p("jspb_sparse_encoded_pivot")?new mn([{}]):new mn;_.O0(P,380,Fnm,W);NiR("finalPayload",P);_.p("web_fp_via_jspb_and_json")&&_.Ay("finalPayload",{csn:_.E_()})}else _.Ay("finalPayload",{csn:_.E_()})};
NW.prototype.abortSlisAndFlush=function(){Pck(bG);kZ!=null&&kZ.flush()};
NW.prototype.flushInteractionLoggingAttachVes=function(){pbd(_.YY())};
var yXd=function(){var W=_.$$("CLIENT_EXPERIMENT_EVENTS");if(W){var P=aAU();W=_.n(W);for(var x=W.next();!x.done;x=W.next())x=x.value,P(x)&&_.Ay("genericClientExperimentEvent",{eventType:x});delete _.D$.CLIENT_EXPERIMENT_EVENTS}};var K5z={};
K5z.YtPlayerBehavior=[_.aO.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 W=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.If;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;JXR(function(){W.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.GY(this,"pan-down"),_.p("kevlar_pinch_fullscreen")&&_.n6().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.p("kevlar_pinch_fullscreen")&&_.n6().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(W,P,x){var I=this;Wq(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Wq(!1,"MainAppPlayer already created.");else{var O=_.p("kevlar_player_container_query_killswitch")?this.$.container:_.g(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ky(this.getWebPlayerContextConfig_(),O,function(B){return _.O2(B,I.hostElement)},W,P,x);
this.mainAppPlayer_.api.then(function(B){I.player_=B;I.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&tgl.resolve(B)})}},
loadVideoWithPlayerResponse:function(W,P){var x=this;if(this.useUnifiedPlayer_()){var I=this.watchNextData,O,B=(O=W.videoDetails)==null?void 0:O.videoId,Y,K,Z;(O=(Y=this.watchNextData)==null?void 0:(K=Y.currentVideoEndpoint)==null?void 0:(Z=K.watchEndpoint)==null?void 0:Z.videoId)&&B!=O&&(I=void 0,_.p("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(W,I,P):this.createMainAppPlayer_(W,I,P);this.mainAppPlayer_.api.then(function(){_.Lf(x.hostElement,
"yt-player-updated")})}else this.update(beS(W,P))},
loadVideoWithPlayerVars:function(W){var P=this;this.useUnifiedPlayer_()?(_.p("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(W):this.createMainAppPlayer_(void 0,void 0,W),this.mainAppPlayer_.api.then(function(){_.Lf(P.hostElement,"yt-player-updated")})):this.update({args:W})},
update:function(W){var P=this;if(this.useUnifiedPlayer_())Wq(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(W);var x=YPx(W.args);x&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==x&&Object.assign(W.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(W).then(function(I){_.Lf(P.hostElement,"yt-player-updated",_.p("kevlar_player_updated_obsolete_player_killswitch")?
I:void 0)})}_.EA(new _.mW("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,P.getPlayerPromise(),2);x=I.yieldResult;if(!x)throw Error("uh");W&&P.updatePlayerPlaylist_(W);_.Kl(I)})},
acquireApi_:function(W){var P=this;if(this.useUnifiedPlayer_())Wq(!1,"Invalid method call in kevlar_unified_player.");else return _.Gr.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Wq(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(x){P.shouldAutoplay_(W)?x.loadVideoByPlayerVars(W.args):x.cueVideoByPlayerVars(W.args)})):this.initPlayerPromise_=this.initPlayerContainer_(W),this.initPlayerPromise_},
initPlayerContainer_:function(W){var P=this;if(this.useUnifiedPlayer_())Wq(!1,"Invalid method call in kevlar_unified_player.");else return Wq(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.ge(Error("vh")),Wq(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.p("kevlar_player_container_query_killswitch")?this.$.container:_.g(this.hostElement).querySelector("#container"),FgR().then(function(){var x=P.initPlayer_(W);P.playerResolver_.resolve(x);
return x})},
onPlayerReady_:function(W,P){this.useUnifiedPlayer_()?Wq(!1,"Invalid method call in kevlar_unified_player."):(W.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&tgl.resolve(W),P(W))},
maybeCallApiMethodOnElement_:function(W,P){if(typeof W[P]==="function")return W[P]()},
maybeAdoptBootstrapPlayer_:function(){var W=window,P,x=(P=W.ytplayer)==null?void 0:P.bootstrapPlayerContainer;if((P=x==null?void 0:x.firstElementChild)&&P.classList.contains("html5-video-player")){var I,O,B=(I=W.ytplayer)==null?void 0:(O=I.bootstrapWebPlayerContextConfig)==null?void 0:O.contextId;I=this.getWebPlayerContextConfig_().contextId;if(B&&B===I){x!==this.playerContainer_&&(x=!1,this.maybeCallApiMethodOnElement_(P,"getPlayerState")===2&&(x=!0),this.playerContainer_.appendChild(P),x||this.maybeCallApiMethodOnElement_(P,
"playVideo"));var Y;if((Y=W.ytplayer)==null?0:Y.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=W.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(W){var P=this;if(this.useUnifiedPlayer_())Wq(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(x){P.maybeAdoptBootstrapPlayer_();var I=W?kLo(W):void 0;I&&I==P.bootstrapPlayerResponse_&&(W.loaded=!0);I=P.playerContainer_;var O=P.getWebPlayerContextConfig_();I=x8G(I,W,O);P.player_=I;P.onPlayerReadyEvent_=P.onPlayerReady_.bind(P,P.player_,x);P.player_.addEventListener("onReady",P.onPlayerReadyEvent_);P.player_.addEventListener("innertubeCommand",
P.onPlayerInnerTubeCommand_.bind(P))})},
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(W){W.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(W){W.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var W=_.FY().resolve(_.rL).getCurrentPage();W&&W.getScrollTop()<=0?_.GY(this,"pan-down"):_.GY(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()||W.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()&&W.toggleFullscreen()})},
updatePlayerPlaylist_:function(W){var P=this,x,I,O;return _.y(function(B){if(B.nextAddress==1)return x=_.FY().resolve(_.Rl(_.wx)),I=!!(x&&x.playlistComponent&&x.playlistComponent.loopOn),_.S(B,P.getPlayerPromise(),2);var Y=O=B.yieldResult,K=Y.updatePlaylist,Z=[];if(_.p("kevlar_player_playlist_use_local_index")){var d,v;var m=(v=(d=W.localCurrentIndex)!=null?d:W.currentIndex)!=null?v:0}else{var t;m=(t=W.currentIndex)!=null?t:0}if(W.contents)for(d=0;d<W.contents.length;d++)if((v=W.contents[d])&&v.playlistPanelVideoRenderer)if(PcS(v)){v=
v.playlistPanelVideoRenderer;t="";v.shortBylineText&&(t=_.kz(v.shortBylineText));var C="";v.title?C=_.kz(v.title):v.unplayableText&&(C=_.kz(v.unplayableText));Z.push({author:t,title:C,encrypted_id:v.videoId})}else d<m&&--m;K.call(Y,{index:m,list:W.playlistId?W.playlistId:"",loop:I,playlist_title:W.title,playlist_length:Z.length,video:Z,fetch:0,external_list:"1",title:W.title?W.title:"",playlist_author:W.ownerName?_.kz(W.ownerName):void 0});_.Kl(B)})},
focusOnPlayer:function(){_.Xm(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var W=this.playerContainer_.querySelector(".html5-video-player");W&&(_.lL(_.FY().resolve(_.jy)),W.focus())}})},
preparePlayer:function(){var W=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(P){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")P();else{var x=function(){document.removeEventListener("DOMContentLoaded",x);P()};
document.addEventListener("DOMContentLoaded",x)}})).then(function(){return FgR()}).then(function(){W.initPlayerPromise_||W.preparePlayerJobId_||(W.preparePlayerJobId_=_.VE(_.Gr,function(){W.initPlayerPromise_||(W.initPlayerPromise_=W.initPlayerContainer_())}))}):_.EA(new _.mW("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(W){this.useUnifiedPlayer_()?Wq(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(W)||(W.args.autoplay="0")},
shouldAutoplay_:function(W){if(this.useUnifiedPlayer_())Wq(!1,"Invalid method call in kevlar_unified_player.");else{var P=this.get("args.el",W);return P&&P!="detailpage"&&this.isMiniplayerActive_()||P&&(P=="sponsorshipsoffer"||P=="handlesclaiming")&&this.get("args.autoplay",W)=="0"?!1:(W=kLo(W))&&this.get("playerConfig.playbackStartConfig.startPaused",W)?!1:!0}},
isMiniplayerActive_:function(){return _.FY().resolve(_.kc).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var W=this.getPlayer();if(W){var P=W.getPlayerState();_.p("kevlar_player_check_ad_state_on_stop")&&(P=W.getPlayerState(W.getPresentingPlayerType()));P!=5&&W.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(W,P,x){x=x===void 0?!1:x;var I=this,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1)return P||(P=I.hostElement),O=I.useUnifiedPlayer_()?!!I.mainAppPlayer_:!!I.initPlayerPromise_,O?_.S(Z,I.getPlayerPromise(),2):(x?W.insertBefore(P,W.firstChild):W.appendChild(P),Z.return());B=Z.yieldResult;Y=B.getPlayerState(B.getPresentingPlayerType());K=!1;if(Y==-1||Y==1||Y==3)K=!0;x?W.insertBefore(P,W.firstChild):W.appendChild(P);K&&B.playVideo();B.setSize(NaN,NaN);_.Kl(Z)})},
watchNextDataChanged_:function(W){var P=this;W&&(this.useUnifiedPlayer_()&&_.p("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&JXP(this.mainAppPlayer_,W):this.getPlayerPromise().then(function(x){x.updateVideoData(P.computeWatchNextPlayerVars_(W))}))},
computeWatchNextPlayerVars_:function(W){if(this.useUnifiedPlayer_()&&_.p("kevlar_unified_player_update_watch_next_killswitch"))Wq(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:W}},
maybeSendAbandonmentPing_:function(){var W=this.getPlayer();W&&W.getPlayerState()!=5&&W.getPlayerState()!=0&&W.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var W=_.$$("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(W=Object.assign({},W),W.rootElementId=this.playerId);W.serializedExperimentIds&&W.serializedExperimentFlags||_.ge(Error("wh"));return W},
hasWebPlayerContextConfig_:function(){return!!_.$$("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(W){this.useUnifiedPlayer_()?Wq(!1,"Invalid method call in kevlar_unified_player."):_.O2(W,this.hostElement)},
useUnifiedPlayer_:function(){var W=_.p("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.p("kevlar_unified_player")||W}}];var Z3w={};Z3w.YtPlaylistPanelBehavior=[_.L.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(W){W=W.detail;if(W.actions.loop!=void 0||W.actions["yt-icons:loop"]!=void 0)this.loopOn=W.actions.loop||W.actions["yt-icons:loop"];if(W.actions.shuffle!=void 0||W.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=W.actions.shuffle||W.actions["yt-icons:shuffle"]},
setMenuData_:function(W){if(!W||!W.playlistButtons||W.isInfinite)return null;for(var P=W.playlistButtons.menuRenderer.topLevelButtons,x=P.length,I=0;I<x;I++)if(P[I].toggleButtonRenderer){var O=P[I].toggleButtonRenderer;O.defaultIcon.iconType=="LOOP"&&this.loopOn?O.isToggled=this.loopOn:O.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(O.isToggled=this.shuffleOn)}return W.playlistButtons}}];var oGc=function(W){LJ.call(this,W,132);this.isDocument=W===document.documentElement};
_.A(oGc,LJ);oGc.prototype.calculateScrollDelta=function(W,P,x){var I=0;W<P?I=W<P-100?-48:-8:W>P+x&&(I=W>P+x+100?48:8);return I};
oGc.prototype.JSC$9200_onMouseMove=function(W){this.isDocument||(W.clientX=W.event_.pageX,W.clientY=W.event_.pageY);LJ.prototype.JSC$9200_onMouseMove.call(this,W)};var Tp=function(){var W=_.Yl.apply(this,arguments)||this;W._noAccessors=!0;W.scrollElement=document.documentElement;W.JSC$12135_dragListGroup=null;W.dragScrollSupport=null;W.onDraggerCreated=function(P){var x=P.JSC$9196_dragger;x.scrollTarget_=W.scrollElement;P=P.draggerEl;x&&P.menuOpened&&x.setEnabled(!1)};
W.onDragStart=function(P){var x=P.draggerEl;P=P.currDragItem;var I=Object.assign({},P==null?void 0:P.data);I.trackingParams=void 0;x.data=I;x.style.position="absolute";x.style.width=(P==null?void 0:P.clientWidth)+"px";x.style.zIndex="2030";x.onDrag&&x.onDrag();_.p("web_owner_document_fallback_killswitch")?(P=document.querySelector("ytd-app"))&&_.g(P).appendChild(x):(P=_.GD(x),(I=P.querySelector("ytd-app"))?_.g(I).appendChild(x):P.body.appendChild(x));W.dragScrollSupport=new oGc(W.scrollElement);W.dragScrollSupport.horizontalScrolling_=
!1;x=W.dragScrollSupport;x.constrainScroll_=!!x.margin_&&!1};
W.onDrop=function(P){W.handleDrop(P);W.dragScrollSupport&&(_.TD(W.dragScrollSupport),W.dragScrollSupport=null)};
W.onReorderableScroll=function(){if(W.JSC$12135_dragListGroup){var P=W.JSC$12135_dragListGroup;f5p(P,P.currDragItem_)}};
return W};
_.A(Tp,_.Yl);Tp.prototype.detached=function(){_.SRM(this)};
_.SRM=function(W){W.JSC$12135_dragListGroup&&(_.Vq(W.JSC$12135_dragListGroup,hpP,W.onDragStart),_.Vq(W.JSC$12135_dragListGroup,a5k,W.onDragStart),W.JSC$12135_dragListGroup.dispose(),W.JSC$12135_dragListGroup=null);W.dragScrollSupport&&(_.TD(W.dragScrollSupport),W.dragScrollSupport=null);W.scrollElement.removeEventListener("scroll",W.onReorderableScroll)};
_.uXA=function(W,P,x,I){I=I===void 0?"":I;_.SRM(W);x&&(W.scrollElement=x);W.JSC$12135_dragListGroup=new cz;W.JSC$12135_dragListGroup.hysteresisDistance_=2;kKp(W.JSC$12135_dragListGroup,P);W.JSC$12135_dragListGroup.draggerElClasses_=uC("dragging").split(" ");I&&UBA(W.JSC$12135_dragListGroup,function(O){var B=O||document,Y=null;B.getElementsByClassName?Y=B.getElementsByClassName(I)[0]:Y=hd3("*",I,O);return Y||O});
_.uq(W.JSC$12135_dragListGroup,$Bw,W.onDraggerCreated);_.uq(W.JSC$12135_dragListGroup,hpP,W.onDragStart);_.uq(W.JSC$12135_dragListGroup,a5k,W.onDrop);W.JSC$12135_dragListGroup.init();W.scrollElement.addEventListener("scroll",W.onReorderableScroll,{passive:!0})};
Tp.prototype.handleDrop=function(){};
_.N1.Object.defineProperties(Tp.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.f([_.c({value:100}),_.l("design:type",Number)],Tp.prototype,"scrollMargin",void 0);Tp=_.f([_.yL()],Tp);_.d8w=[Tp.prototype];_.rW={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(W,P,x){var I=this.getClickTarget_(P);if(I&&this.isClickAllowed_(I)){P.preventDefault();W=(0,_.jU.unsafeClone)(W);var O=this.getContainerBoundingRect();P=this.getRelativeClickXy_(P,O);this.expandEndpointUrlMacros_(W,{NX:P[0],NY:P[1],NB:I.code});x&&this.truncateWebCommendMetadataUrl_(W);_.Lf(this.hostElement,"yt-navigate",{endpoint:W})}},
getClickTarget_:function(W){if(!this.clickTargetMap)return null;W=_.c5(W)||[];W=_.n(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;if(P===_.g(this.hostElement).querySelector("#menu"))break;if(P=this.clickTargetMap.get(P.id))return P}return null},
getRelativeClickXy_:function(W,P){var x=W.detail.x,I=W.detail.y;_.p("use_on_click_for_desktop_display_ad")&&W.clientX!=null&&W.clientY!=null&&(x=W.clientX,I=W.clientY);W=Math.round(x-P.left);P=Math.round(I-P.top);return W<0||P<0?[null,null]:[W,P]},
getContainerBoundingRect:function(){return _.g(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(W,P){for(var x=_.n(W.loggingUrls||[]),I=x.next();!I.done;I=x.next())I=I.value,I.baseUrl&&(I.baseUrl=Q7(I.baseUrl,P));W.urlEndpoint&&W.urlEndpoint.url&&(W.urlEndpoint.url=Q7(W.urlEndpoint.url,P));W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url&&(W.commandMetadata.webCommandMetadata.url=Q7(W.commandMetadata.webCommandMetadata.url,P))},
truncateWebCommendMetadataUrl_:function(W){if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url){var P=W.commandMetadata.webCommandMetadata.url,x=P.indexOf("&pp=");if(x>0){var I=P.indexOf("&",x+1);W.commandMetadata.webCommandMetadata.url=I>x&&I<P.length?P.slice(0,x)+P.slice(I):P.slice(0,x)}}},
configureClickTargets:function(W,P,x){this.containerId=W;this.clickTargetMap=new Map;W=_.n(P);for(P=W.next();!P.done;P=W.next())if(P=P.value,P.location){var I=x.get(P.location);I&&(_.iS(_.g(this.hostElement).querySelector("#"+I),"yt-simple-endpoint",this.isClickAllowed_(P)),this.clickTargetMap.set(I,P))}},
isClickAllowed_:function(W){return W.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.iL={};
_.iL.YtLazyListBehavior=[_.XU.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 W=(this.constructor.generatedFrom||this).observers;W||(W=[]);W.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
W}},
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 W=this.renderElementsOutsideVisibleArea_;W&&(C0p(W,4),W.processSignal())},
deepLazyListObserver_:function(W){var P=this;if(W){var x=W.value||[];if(this.itemsPath==W.path){var I=this.nonDeferredItemCount;W=0;I>-1&&x.length>I&&(W=_.$$("REMAINING_DOVA_DEFERRED_CHUNKS",-1));W>0?(I>0&&(I=x.slice(0,I),this.setInitialItemsOnDataChanged(I)),(I=this.renderElementsOutsideVisibleArea_)?I.cancel():(I=this.renderElementsOutsideVisibleArea_=new _.NH(2,"eocs"),_.iLC(window,"scroll",function(){return P.renderDeferredElements()})),_.lc(I,function(){P.setInitialItemsOnDataChanged(x)}),_.MR("REMAINING_DOVA_DEFERRED_CHUNKS",
W-1)):this.setInitialItemsOnDataChanged(x)}else if(this.itemsPath+".splices"==W.path)this.onItemsUpdated_(x);
else I="shownItems"+W.path.substr(this.itemsPath.length),this.useSignals&&I==="shownItems.length"||this.notifyPath(I,W.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(W){W&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(W),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(W){W=W.indexSplices;for(var P=0,x=W.length;P<x;P++){var I=W[P];if(I.index<this.shownCount&&(I.removed&&this.splice("shownItems",I.index,I.removed.length),I.addedCount)){var O=I.object.slice(I.index,I.index+I.addedCount);I=["shownItems",I.index,0];I.push.apply(I,O);this.splice.apply(this,I)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(W){this.cancelPendingTasks_();W||(W=[]);this.items_=W;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&&(_.wo("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Xm(this,this.tryRenderChunk_)))},
fillRange_:function(W,P){this.canShowMore&&this.items_&&(W=this.items_.slice(W,P),W.unshift("shownItems"),this.push.apply(this,W),this.shownCount=P,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var W=this;this.canShowMore&&_.De(this,"renderChunk",function(){W.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.wo("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.pC(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var W=this.renderElementsOutsideVisibleArea_;W&&(W.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var W=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(W-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=W;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(W){return Math.ceil(1E3/W)},
onCanShowMoreUpdated_:function(W){this.data&&this.items_!==null&&(W?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(W){!this.shouldUseTaskManager()&&this.data&&(!W&&this.canShowMore?(_.D2d(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):W&&this.partiallyRenderedItems_.has(this.items_)&&(_.p("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var qW;_.RO={};
qW=function(){var W=_.Yl.apply(this,arguments)||this;W.atStart=!0;W.atEnd=!0;W.startIndex=0;W.endIndex=0;W.scrollCount=0;W.initialStartIndex=0;W.disableScrollEventListener=!1;W.useFloorScrolling=!1;W.isSearch=!1;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.disableWheelScroll=!1;W.centerListItems=!1;W.offset=0;W.minComponentWidth=0;W.marginWidthRight=0;W.marginWidthLeft=0;W.setButtonsStateRequested=!1;W.itemsVisibilityObserver=null;W.fullyVisibleItemsIndices=[];W.JSC$12146_onWheelScroll=function(P){if(W.isSearch&&
!W.disableWheelScroll&&_.p("desktop_enable_dmpanel_wheel_scroll")){var x=P.shiftKey?Math.abs(P.deltaY)>Math.abs(P.deltaX)?P.deltaY:P.deltaX:P.deltaX;x!==0&&(P.preventDefault(),W.ytLazyListBehavior.fillRemainingListItems(),W.offset+=x,FN(W),W.reposition_())}};
W.onPointerDown=function(P){scZ(W)&&(W.dragMouseStart=P.clientX,W.dragOffsetStart=W.offset,W.dragging=!0)};
W.onPointerMove=function(P){scZ(W)&&W.dragging&&(W.ytLazyListBehavior.fillRemainingListItems(),W.offset=W.dragOffsetStart-(P.clientX-W.dragMouseStart),FN(W),W.reposition_())};
W.onPointerUp=function(){scZ(W)&&(W.dragging=!1)};
return W};
_.A(qW,_.Yl);var vGz=function(W){var P=_.g(W.hostElement).querySelector("#items").children;if(!P)return 0;var x=0;W=_.n(W.fullyVisibleItemsIndices);for(var I=W.next();!I.done;I=W.next())x+=P[I.value].clientWidth;return x},scZ=function(W){return W.isSearch&&_.p("desktop_enable_dmpanel_click_drag_scroll")};
qW.prototype.created=function(){this.cachedViewportWidth=_.$$("initialInnerWidth")||window.innerWidth;this.JSC$12146_cachedViewportHeight=_.$$("initialInnerHeight")||window.innerHeight;_.$$("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.MR("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
qW.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.p("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();m8M(this)};
qW.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.p("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var W;(W=this.itemsVisibilityObserver)==null||W.disconnect();this.itemsVisibilityObserver=null;var P;(P=this.itemsObserver)==null||P.disconnect()};
var m8M=function(W){var P=_.g(W.hostElement).querySelector("#scroll-container");if(P){if(!W.itemsVisibilityObserver){var x=window.getComputedStyle(P).marginRight;W.itemsVisibilityObserver=new IntersectionObserver(function(I){VGl(W,I)},{root:P,
rootMargin:x,threshold:.98})}if(P=_.g(W.hostElement).querySelector("#items"))W.itemsObserver=new p7i(P,function(I){tGM(W,I)})}},tGM=function(W,P){pkl(W)&&(Array.from(P.addedNodes).filter(function(x){return x.nodeType===Node.ELEMENT_NODE}).forEach(function(x){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.observe(x)}),Array.from(P.removedNodes).filter(function(x){return x.nodeType===Node.ELEMENT_NODE}).forEach(function(x){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.unobserve(x)}))},
VGl=function(W,P){var x=new Set(W.fullyVisibleItemsIndices);
P=_.n(P);for(var I=P.next();!I.done;I=P.next()){I=I.value;var O=I.target.parentElement;O?(O=Array.from(O.children).indexOf(I.target),I.isIntersecting?x.add(O):x.has(O)&&x.delete(O)):_.ge(new _.mW("Parent element not found",I.target.nodeName))}W.fullyVisibleItemsIndices=Array.from(x).sort(function(B,Y){return B-Y});
x.size===0?_.ge(new _.mW("No visible entries in horizontal list")):(W.startIndex=W.fullyVisibleItemsIndices[0],W.endIndex=W.fullyVisibleItemsIndices[W.fullyVisibleItemsIndices.length-1])},pkl=function(W){W.data?W=(W=W.data)&&W.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===W.itemSizeConstraint:!1:W=!1;
return W};
_.J=qW.prototype;_.J.addScrollEventListeners=function(){var W=_.g(this.hostElement).querySelector("#scroll-container");W.style.touchAction="pan-y";W.addEventListener("wheel",this.JSC$12146_onWheelScroll);W.addEventListener("pointerdown",this.onPointerDown);W.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.J.removeScrollEventListeners=function(){var W=_.g(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.JSC$12146_onWheelScroll);W.removeEventListener("pointerdown",this.onPointerDown);W.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.J.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Xm(this,this.setStartIndex,[this.initialStartIndex])};
_.J.reposition_=function(){var W=_.$$("HTML_DIR")=="rtl"?"":"-",P=_.g(this.hostElement).querySelector("#items");P&&(P.style.transform="translateX("+W+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.J.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Xm(this,this.setButtonsState_))};
_.J.setButtonsState_=function(){this.setButtonsStateRequested=!1;var W=_.g(this.hostElement).querySelector("#items").firstElementChild;if(W){this.minComponentWidth||(this.minComponentWidth=jcw(this,W));W=_.g(this.hostElement).querySelector("#scroll-container").clientWidth;var P=_.g(this.hostElement).querySelector("#items").clientWidth,x=this.get(this.ytLazyListBehavior.itemsPath,this);if(x){var I=Math.round(W/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+I,x.length)-1)}this.ytLazyListBehavior.canShowMore?P+this.minComponentWidth>=this.offset+W&&(this.atEnd=!1):this.atEnd=this.offset+W>=P-20?!0:!1;this.atStart=this.offset<=20}};
_.J.setStartIndex=function(W){if(!this.minComponentWidth){var P=_.g(this.hostElement).querySelector("#items").firstElementChild;if(!P)return;this.minComponentWidth=jcw(this,P)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*W;FN(this);this.reposition_()};
_.J.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.ZR();var W=_.g(this.hostElement).querySelector("#scroll-container").clientWidth;_.p("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=jcw(this,_.g(this.hostElement).querySelector("#items").firstElementChild));W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&QcA(this);this.offset+=pkl(this)?
vGz(this):W*this.minComponentWidth;FN(this);this.reposition_();this.scrollCount++};
_.J.prevClick_=function(){var W=_.g(this.hostElement).querySelector("#scroll-container").clientWidth;W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=pkl(this)?vGz(this):this.minComponentWidth*this.scrollCount-1):this.offset-=pkl(this)?vGz(this):W*this.minComponentWidth;this.centerListItems&&QcA(this);FN(this);this.reposition_()};
_.J.onIronResize_=function(){this.resizeSupportEnabled&&_.Xm(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.J.onItemsTransitionEnd_=function(W){_.af(W)===_.g(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.J.onChildElementFocus_=function(W){W=W.target.closest("#items > *");var P=_.g(this.hostElement).querySelector("#scroll-container");if(P.contains(W)){if(_.p("web_horizontal_list_behavior_focus_killswitch"))if(W.offsetLeft<this.offset)this.offset=Math.abs(W.offsetLeft)<W.clientWidth?0:W.offsetLeft;else if(W.offsetLeft+W.clientWidth>this.offset+P.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.ZR(),this.offset=W.offsetLeft+W.clientWidth-P.clientWidth;else return;else{var x=_.g(this.hostElement).querySelector("#items"),
I=_.$$("HTML_DIR")==="rtl",O=I?x.clientWidth-W.offsetLeft:W.offsetLeft;x=I?x.clientWidth-(W.offsetLeft+W.clientWidth):W.offsetLeft+W.clientWidth;var B=I?O>this.offset+P.clientWidth:O<this.offset,Y=I?x<this.offset:x>this.offset+P.clientWidth,K=I?B:Y;if(I?Y:B)P=I?x:O,this.offset=Math.abs(P)<W.clientWidth?0:P;else if(K)this.ytLazyListBehavior.fillRemainingListItems(),_.ZR(),this.offset=(I?O:x)-P.clientWidth;else return}FN(this);this.reposition_()}};
_.J.observeShownItems_=function(){this.reset()};
_.J.checkComponentWidthResize=function(){var W=_.g(this.hostElement).querySelector("#items").firstElementChild;W&&(W=jcw(this,W),this.centerListItems||W!==this.minComponentWidth)&&(this.minComponentWidth=W,this.offset=W*this.scrollCount,this.centerListItems&&QcA(this),FN(this),this.reposition_())};
var jcw=function(W,P){var x=window.getComputedStyle(P).marginRight;x=Math.floor(Number(x.replace("px","")));var I=window.getComputedStyle(P).marginLeft;I=Math.floor(Number(I.replace("px","")));W.centerListItems&&!W.marginWidthRight&&(W.marginWidthRight=x,W.marginWidthLeft=I);return W.resizeSupportEnabled?P.getBoundingClientRect().width+x:P.offsetWidth+x},FN=function(W){var P=_.g(W.hostElement).querySelector("#scroll-container").clientWidth,x=_.g(W.hostElement).querySelector("#items").clientWidth;
W.offset<0?W.offset=0:W.offset+P>=x&&(W.offset=x-P)},QcA=function(W){W.offset-=(_.g(W.hostElement).querySelector("#scroll-container").clientWidth+W.marginWidthRight-W.minComponentWidth)/2-W.marginWidthLeft};
_.N1.Object.defineProperties(qW.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var W=_.$$("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(W==-1)W=this.JSC$12146_cachedViewportHeight,W=W>1320?5:W>1020?4:W>730?3:W>430?2:1;else if(W==0)return 0;_.MR("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",W-1);W=_.$$("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(W>-1)return W;W=this.cachedViewportWidth;W=W>1600?6:W>1400?5:W>1300?4:W>1090?5:W>870?4:W>660?3:2;_.MR("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
W);return W},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.p("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
qW.prototype.observeShownItems_=qW.prototype.observeShownItems_;qW.prototype.onChildElementFocus_=qW.prototype.onChildElementFocus_;qW.prototype.onItemsTransitionEnd_=qW.prototype.onItemsTransitionEnd_;qW.prototype.onIronResize_=qW.prototype.onIronResize_;qW.prototype.prevClick_=qW.prototype.prevClick_;qW.prototype.nextClick_=qW.prototype.nextClick_;qW.prototype.setButtonsState_=qW.prototype.setButtonsState_;qW.prototype.requestButtonsStateUpdate_=qW.prototype.requestButtonsStateUpdate_;
qW.prototype.reposition_=qW.prototype.reposition_;qW.prototype.reset=qW.prototype.reset;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],qW.prototype,"ytLazyListBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qW.prototype,"atStart",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qW.prototype,"atEnd",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"startIndex",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"endIndex",void 0);_.f([_.c({value:6}),_.l("design:type",Number)],qW.prototype,"initialCount",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"scrollCount",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"initialStartIndex",void 0);
_.f([_.c(),_.l("design:type",Object)],qW.prototype,"disableScrollEventListener",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"supportComponentResize",void 0);_.f([_.c({value:function(){var W=this;return function(){return W.prevClick_()}}}),
_.l("design:type",Function)],qW.prototype,"boundPrevClick",void 0);_.f([_.c({value:function(){var W=this;return function(){return W.nextClick_()}}}),
_.l("design:type",Function)],qW.prototype,"boundNextClick",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"useFloorScrolling",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"isSearch",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"dragging",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"dragMouseStart",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"dragOffsetStart",void 0);
_.f([_.c(),_.l("design:type",Object)],qW.prototype,"disableWheelScroll",void 0);_.f([_.c(),_.l("design:type",Object)],qW.prototype,"centerListItems",void 0);_.f([_.I7("iron-resize"),_.OZ("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qW.prototype,"onIronResize_",null);_.f([_.I7("transitionend"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],qW.prototype,"onItemsTransitionEnd_",null);
_.f([_.I7("focusin"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],qW.prototype,"onChildElementFocus_",null);_.f([_.OZ("shownItems"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qW.prototype,"observeShownItems_",null);qW=_.f([_.yL()],qW);_.RO.YtdHorizontalListBehavior=[];_.RO.YtdHorizontalListBehavior.push(_.Db,_.L.YtRendererBehavior,_.iL.YtLazyListBehavior,_.wW.YtdGuideStateAwareBehavior,qW.prototype);var nGR=["APP_STATE","PI"];var Cuc=_.i4(["about:blank"]),AXp={pushState:window.history.pushState,replaceState:window.history.replaceState};var LB=function(W){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=W;this.internalPushState=W.pushState.bind(W);this.internalReplaceState=W.replaceState.bind(W)};
LB.prototype.init=function(){this.initialized=!0};
LB.prototype.pushState=function(W,P){this.initialized||this.init();this.internalPushState&&this.internalPushState(W,"",P)};
LB.prototype.replaceState=function(W,P){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(W,"",P)};
LB.prototype.getState=function(){return this.history&&this.history.state};var zDm=function(W){var P=function(){var x=W.apply(this,arguments)||this;x.boundHistoryPushState=!1;x.boundHistoryReplaceState=!1;x.debugInfo={};return x};
_.A(P,W);P.prototype.init=function(){var x=_.ZV("IFRAME");_.g9(x,_.W9(Cuc));x.sandbox="allow-same-origin";x.style.display="none";this.iframe=x;document.body.appendChild(x);this.bindHistoryStateFunctions();W.prototype.init.call(this)};
P.prototype.bindHistoryStateFunctions=function(){var x=this,I=[],O;this.iframe&&((O=this.iframe.contentWindow)==null?0:O.history)&&(O=this.iframe.contentWindow.history)&&(I.push(O),Object.getPrototypeOf(O)&&I.push(Object.getPrototypeOf(O)));window.history&&I.push(window.history);O=window.history;Object.getPrototypeOf(O)&&I.push(Object.getPrototypeOf(O));I.push(AXp);O=function(Y){for(var K=null,Z=0;Z<I.length;Z++){var d=I[Z][Y];if(typeof d==="function"){K=d.bind(window.history);x.debugInfo[Y]=Z;break}}return K};
if(!this.boundHistoryReplaceState){var B=O("replaceState");B&&(this.internalReplaceState=B,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(O=O("pushState"))&&(this.internalPushState=O,this.boundHistoryPushState=!0)};
return P}(LB),G0Z=function(){return zDm.call(this,window.history)||this};
_.A(G0Z,zDm);G0Z.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Ww=function(W){this.browserHistory=W;this.initialized=!1};
Ww.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Ww.prototype.pushState=function(W,P){this.initialized||this.init();this.browserHistory.pushState(W,P)};
Ww.prototype.replaceState=function(W,P){this.initialized||this.init();this.browserHistory.replaceState(W,P)};
Ww.prototype.handlePopstate=function(W){return W.state};_.EGW=function(W,P,x,I,O){this.endpoint=W;this.forward=P;this.historyEntry=x;this.JSC$26406_savedComponentState=I;this.legacyBorder=O===void 0?!1:O};var gGk=function(W,P){this.rootData=W;this.scrollTop=P};var Gc=new _.Lb("PAGE_REQUEST_TOKEN"),RLM=new _.Lb("FETCH_PBJ_TOKEN");_.Pw=new _.Lb("EPHEMERAL_STORE_TOKEN");_.xw=function(W){this.data=Object.assign({},W);var P;(P=this.data.innertubeResponse)==null||delete P.frameworkUpdates};
_.xw.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.iA)()};
_.Zs=function(W){return Object.assign({},W.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var D8i=function(){this.maxSize=100;this.timeToDataCache=new Map};
D8i.prototype.get=function(W){var P=this.timeToDataCache.get(W);P&&(this.timeToDataCache.delete(W),this.timeToDataCache.set(W,P));if(P&&P.rootData&&(_.p("web_use_response_store_for_history_cache")||_.p("mweb_use_new_history_manager"))){var x=_.FY().resolve(_.Pw),I=MGP(P),O=!!I;if(I){if(I.content){var B=IV(x,I.content);O&&B?P.rootData.response=_.Zs(B):O=!1}I.player&&(B=IV(x,I.player),O&&B?P.rootData.playerResponse=_.Zs(B):O=!1);I.reelSequence&&(x=IV(x,I.reelSequence),O&&x?P.rootData.reelWatchSequenceResponse=
_.Zs(x):O=!1)}O||(this.timeToDataCache.delete(W),P=void 0)}return P};
D8i.prototype.set=function(W,P){if(P.rootData&&(_.p("web_use_response_store_for_history_cache")||_.p("mweb_use_new_history_manager"))){var x=MGP(P),I=Object.assign({},P.rootData);x&&(x.content&&P.rootData.response&&($8p(this,x.content,P.rootData.response),I.response=null),x.player&&P.rootData.playerResponse&&($8p(this,x.player,P.rootData.playerResponse),I.playerResponse=null),x.reelSequence&&P.rootData.reelWatchSequenceResponse&&($8p(this,x.reelSequence,P.rootData.reelWatchSequenceResponse),I.reelWatchSequenceResponse=
null));P=new gGk(I,P.scrollTop)}this.timeToDataCache.has(W)?this.timeToDataCache.delete(W):this.timeToDataCache.size>=this.maxSize&&(x=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(x.value));this.maxSize!==0&&this.timeToDataCache.set(W,P)};
D8i.prototype.clear=function(){this.timeToDataCache.clear()};
var MGP=function(W){var P=_.FY().resolve(_.Rl(Gc)),x;if((x=W.rootData)==null?0:x.endpoint)return P==null?void 0:dZA(P,W.rootData.endpoint);var I;_.ge(new _.mW("History snapshot response data does not contain endpoint",(I=W.rootData)==null?void 0:I.url));return null},$8p=function(W,P,x){if(W.maxSize>0){var I;
(W=(I=x.responseContext)==null?void 0:I.maxAgeSeconds)&&Number(W)>0&&(I=_.FY().resolve(_.Pw),x=IS(x,W),I.put(P,new _.xw(x)))}};var wkM=function(W,P,x){this.endpoint=P;this.JSC$26411_savedComponentState=x===void 0?null:x;this.entryTime=W};var SRm=1;var Of=function(W){var P=function(){var x=W.apply(this,[].concat(_.ju(_.tH.apply(0,arguments))))||this;x.historyEntryTime=0;x.historySnapshotCache=x.createHistoryCache();return x};
_.A(P,W);P.prototype.createHistoryCache=function(){return new D8i};
P.prototype.saveAndReplace=function(x,I,O){var B=window.location.href;var Y=Y===void 0?{}:Y;var K=(K=this.browserHistory.getState())&&K.entryTime?K.entryTime:uXR();x=this.createNewHistoryEntry(x,Y,K);this.saveSnapshot(K,I,O);this.replaceState(x,B||window.location.href)};
P.prototype.saveAndPush=function(x,I,O,B,Y){Y=Y===void 0?{}:Y;this.saveSnapshot(this.historyEntryTime,O,B);O=this.historySnapshotCache;B=this.historyEntryTime;var K=O.timeToDataCache.keys();K=_.n(K);for(var Z=K.next();!Z.done;Z=K.next())Z=Z.value,Z>B&&O.timeToDataCache.delete(Z);I=this.createNewHistoryEntry(I,Y);this.pushState(I,x)};
P.prototype.saveSnapshot=function(x,I,O){this.historySnapshotCache.set(x,new gGk(I,O))};
P.prototype.createNewHistoryEntry=function(x,I,O){O=O===void 0?uXR():O;return new wkM(O,x,I)};
P.prototype.handlePopstate=function(x){var I=W.prototype.handlePopstate.call(this,x),O=null,B=null,Y=!1,K=null;I&&I.entryTime&&(K=this.historySnapshotCache.get(I.entryTime)||null,Y=I.entryTime>this.historyEntryTime,this.historyEntryTime=I.entryTime,O=I.endpoint,B=I.JSC$26411_savedComponentState);this.handleHistoryCacheLoad(new _.EGW(O,Y,K,B),x);return I};
P.prototype.pushState=function(x,I){Number(x==null?void 0:x.entryTime)>=0&&(this.historyEntryTime=x.entryTime);W.prototype.pushState.call(this,x,I)};
P.prototype.replaceState=function(x,I){Number(x==null?void 0:x.entryTime)>=0&&(this.historyEntryTime=x.entryTime);W.prototype.replaceState.call(this,x,I)};
P.prototype.handleHistoryCacheLoad=function(){};
return P}(Ww),hD3=function(){var W=Of.call(this,new G0Z)||this;
W.dispatchElement=null;W.entryIndex=0;return W};
_.A(hD3,Of);_.J=hD3.prototype;_.J.init=function(W){W=W===void 0?!0:W;Of.prototype.init.call(this);this.initialized||(W||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.J.handlePopstate=function(W){var P=null;W.state||(P="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Of.prototype.handlePopstate.call(this,W);var x=new CustomEvent("yt-history-pop",{cancelable:!0});_.W7(this.dispatchElement,"yt-history-pop",[x,{errorMsg:P}]);_.P7(this.dispatchElement,"yt-close-all-popups-action");if(!x.defaultPrevented){x=_.FY().resolve(_.rL);P=x.getCurrentData();var I=x.getCurrentPage();x=0;I?(I=_.W7(this.dispatchElement,"yt-get-page-offset",
[I]),I.length>0&&(x=I[0])):_.ge(new _.mW("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:P?P.page:"undefined"}));P&&(P.csn=_.E_());this.saveSnapshot(this.historyEntryTime,P,x)}return Of.prototype.handlePopstate.call(this,W)};
_.J.handleHistoryCacheLoad=function(W,P){W.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.n(_.P7(this.dispatchElement,"yt-history-will-navigate",[P])).next().value||_.W7(this.dispatchElement,"yt-history-load",[P,W]))};
_.J.pushState=function(W,P){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var x=new _.mW("history.pushState is not a function",this.getDebugString());_.G$(x)}Of.prototype.pushState.call(this,W,P)};
_.J.replaceState=function(W,P){if(!this.browserHistory.boundHistoryReplaceState){var x=new _.mW("history.replaceState is not a function",this.getDebugString());_.G$(x)}Of.prototype.replaceState.call(this,W,P)};
_.J.saveAndPush=function(W,P,x,I,O){O=O===void 0?{}:O;x&&(x.csn=_.E_());Of.prototype.saveAndPush.call(this,W,P,x,I,O)};
_.J.getDebugString=function(){var W=[];this.initialized&&W.push("i");this.browserHistory.boundHistoryReplaceState&&W.push("bhr");this.browserHistory.boundHistoryPushState&&W.push("bhs");"replaceState"in this.browserHistory.debugInfo&&W.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&W.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&W.push("ei:"+String(this.entryIndex));return W.join(",")};
_.Jf=function(W,P){W.init(!0);var x=W.browserHistory.getState();W.replaceState(x,xs(P))};
hD3.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Bw=new _.Lb("DESKTOP_HISTORY_MANAGER_TOKEN");var H3W=[10,20,30,40,50,60],n7=function(){this.currentPartitionIndex=0},eDA=function(W){KXm({mainAppWeb:_.wT(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},cXW=function(W){KXm({mainAppWeb:_.wT(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},ajd=function(W){return W.currentPartitionIndex>=0&&W.currentPartitionIndex<H3W.length?H3W[W.currentPartitionIndex]:-1},b3d=function(W){return W.currentPartitionIndex>0&&W.currentPartitionIndex-1<H3W.length?H3W[W.currentPartitionIndex-1]:-1};
n7.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var W=b3d(this);W>0&&cXW(W);W=ajd(this);W>0&&eDA(W);k0Z(this)}};
var k0Z=function(W){var P=ajd(W);if(P>0){var x=b3d(W);x<0&&(x=0);W.intervalId=_.Gr.addJob(function(){var I=b3d(W);I>0&&cXW(I);I=ajd(W);I>0&&eDA(I);k0Z(W)},3,(P-x)*6E4);
W.currentPartitionIndex+=1}else W.currentPartitionIndex=-1};var U8m=function(){this.skipNextNavigation=!1},XkA=function(W,P,x){if(!P)return!1;
if(W.skipNextNavigation)return W.skipNextNavigation=!1;if(_.Q(x,_.aR))return!1;var I,O,B;if((I=_.Q(x,_.KL))==null?0:(O=I.browseEndpointContextSupportedConfigs)==null?0:(B=O.browseEndpointContextMainConfig)==null?0:B.skipConfirmation)return!1;var Y;return((Y=_.Q(P.commandMetadata,_.rU))==null?void 0:Y.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
U8m.prototype.showConfirmationDialog=function(W,P){this.navigateParams=P;this.customConfirmationCommand?_.FY().resolve(_.qR).resolveCommand(this.customConfirmationCommand):(P={openPopupAction:{popup:{confirmDialogRenderer:{title:_.bx(_.KK("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.bx(_.KK("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.bx(_.KK("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.bx(_.KK("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.bs.getInstance().triggerAction("yt-open-popup-action",P,W))};
U8m.prototype.cancelPendingNavigation=function(){var W;((W=this.navigateParams)==null?void 0:W.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var fjl=function(){},ljl=function(W,P,x,I,O,B,Y){x=x===void 0?{}:x;
Y=Y===void 0?{}:Y;var K=_.Is.instance,Z,d=(Z=_.Q(P,_.aR))==null?void 0:Z.url;return d?lM8(K,d,x,window.location.href,function(v,m){NuW(W,v,m,!1,!0,x,B,I)},function(){return!1}):fP(K,P,x,window.location.href,of(P),function(v,m){NuW(W,v,m,!1,!0,x,B,I)},O,Y)},NuW=function(W,P,x,I,O,B,Y,K){if(!W.JSC$12204_chunkHandler)if(x.page==="watch"||x.page==="learning_journey_watch")if(O||I){if(_.p("kevlar_continue_playback_without_player_response")){var Z;
var d=(Z=_.Q(K,_.U_))==null?void 0:Z.videoId}W.JSC$12204_chunkHandler=new MpW(_.RP,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:I,previousVideoId:d},tempData:B},Y)}else W.JSC$12204_chunkHandler=new zLm(_.RP);else x.page==="shorts"&&O&&!I?W.JSC$12204_chunkHandler=new D0k(_.RP,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:B},Y):W.JSC$12204_chunkHandler=new G5l(Y);W.JSC$12204_chunkHandler.processChunk({endpoint:P,data:x});return W.JSC$12204_chunkHandler.eE.promise},
Tu3=function(W,P,x,I,O){(x=_.Kcl(x))&&NuW(W,P,x,!1,!0,I,void 0,O)};var rXW=function(){this.pendingNavigationPromise=null};
_.J=rXW.prototype;_.J.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.J.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.J.addEventListener=function(){throw Error("xh");};
_.J.dispatchEvent=function(){throw Error("xh");};
_.J.removeEventListener=function(){throw Error("xh");};var i3m=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Yw=function(){_.tW.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];RDZ(this)};
_.A(Yw,_.tW);Yw.prototype.verifyUser=function(){var W=RDZ(this),P=W.logout;if(!W.sessionChange)return!0;this.dispatchEvent("ytsessionchange");P&&this.dispatchEvent("ytuserinvalid");return!1};
var RDZ=function(W){var P=i3m.map(function(O){var B;return(B=_.SB.get(O))!=null?B:""}),x=P.some(function(O,B){return W.sessionCookies&&W.sessionCookies[B]!==""&&O===""}),I=P.some(function(O,B){return W.sessionCookies&&W.sessionCookies[B]!==O});
W.sessionCookies=P;return{logout:x,sessionChange:I}};
Yw.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Gr.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var VGt=new _.Lb("POSTMESSAGE_TUNNEL_TOKEN");var scG=["/parent_tools","/file_download","/artist_roster"],jcm=[uti,d7p,soA,m7W,vW3,SUW,V8P,t8l];var F5w=new _.Lb("APP_ROOT");var yz=new _.Lb("NAVIGATION_CONFIRMATION_SERVICE");var qRk="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),L5P=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
K7=function(W,P){this.pendingNavigationPromise=null;this.JSC$12222_clientRoot=W;this.historyManager=P;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new fjl;this.debugString=W.is;W={"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};_.kM(_.bs.getInstance(),W,this.JSC$12222_clientRoot)},OFW,JAc,Bjz,neP,IUc;
_.A(K7,rXW);K7.prototype.reload=function(){_.G1(window.location.href)};
var SBi=function(W){W.currentEndpoint&&_.Q(W.currentEndpoint,_.uS)?W.reload():W.currentEndpoint&&W.navigate(W.currentEndpoint,!0,void 0,{disableCache:!0})};
K7.prototype.navigate=function(W,P,x,I,O,B,Y,K){P=P===void 0?!1:P;x=x===void 0?{}:x;I=I===void 0?{}:I;var Z=_.FY().resolve(yz),d;if(!Y&&XkA(Z,(d=this.currentEndpoint)!=null?d:void 0,W))return Z.showConfirmationDialog(this.JSC$12222_clientRoot.parentElement,{endpoint:W,reload:P,params:x,tempData:I,requestType:O,createScreenConfig:B}),!1;var v=_.HK();_.ev(v,"eocs")||v.parkOrScheduleJob(function(){v.processSignal("eocs")},10,"eor");
Y=of(W);Z=I.autonav==="1";d=_.E_();Yw.instance||(Yw.instance=new Yw);var m=Yw.instance.verifyUser(),t;if(_.p("enable_dark_theme_only_on_shorts")){var C=document.documentElement.hasAttribute("dark"),z=_.gT(!0)==="USER_INTERFACE_THEME_DARK";if(Y==="shorts"){if(!C)if(_.p("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var D;_.G1((D=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?void 0:D.url,void 0,void 0,window.top)}}else{var w;_.G1(_.XY((w=_.Q(W==null?
void 0:W.commandMetadata,_.rU))==null?void 0:w.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.p("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!C){var a;_.G1(_.XY((a=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?void 0:a.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(z!==C){var k;_.G1(_.XY((k=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?void 0:k.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Y==="watch"){if(WMm(_.FY().resolve(_.kc),
W)&&(m||_.p("fix_miniplayer_navigation_killswitch")))return!1;_.p("block_all_player_prefetch_requests")||(t=ZO3(_.yV(_.O3),W,Z))}else{var T,N=(T=_.Q(this.currentEndpoint,_.U_))==null?void 0:T.videoId;N&&_.QI.getInstance().then(function(kW){kW&&kW.set("yt-miniplayer-shown-video-id",N)})}t&&(x.frags=t.missingFragments_.join(","));
D=null;var Io;w=(Io=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?void 0:Io.ignoreNavigation;if(!w)if(_.p("kevlar_command_url")){var F;D=(F=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?void 0:F.url}else D=_.Ht8(W,x);if(D&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&D==this.lastNavigationUrl)return _.jI({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.vX(wU(),"CANCELLED")}D&&(this.lastNavigationUrl=D);Bym();_.MR("IS_HOMEPAGE_COLD",
!1);_.MR("IS_RESULTS_PAGE_COLD",!1);_.MR("IS_WATCH_PAGE_COLD",!1);W.loggingUrls&&W.loggingUrls.forEach(function(kW){kW.baseUrl&&_.cP(kW.baseUrl)});
_.zDd(W,B?B.layer:0)&&_.p("kevlar_flush_logs_on_away_navigation")&&_.z$();if(QcR(W))return!1;RZl(Y,O);if(!D)return w||_.ge(new _.mW("Can't construct url for endpoint",W)),_.vX(wU(),"FAILURE"),!1;_.d8m();Io=W&&_.Q(W,_.KL)&&_.Q(W,_.KL).browseId.startsWith("UC");x=(F=_.p("enable_dark_theme_only_on_shorts")&&Y==="shorts"?!1:_.Dz()&&document.documentElement.hasAttribute("dark")!==_.Eo())?{themeRefresh:1}:{};F&&!_.dO()&&_.gT()==="USER_INTERFACE_THEME_DARK"&&(x.theme="dark");Io=F||P1p(D)&&!Io&&!_.p("kevlar_disable_url_allowlist");
m||(Io=!0);if(Io||_.$$("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var nm;var pm=(nm=window.top)==null?void 0:nm.location.href}catch(kW){var zR;pm=(zR=kW)==null?void 0:zR.message}_.ge(new _.mW("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:pm}))}W=_.p("kevlar_redirect_on_window_killswitch")?window.top:window;z1(D);_.G1(_.XY(D,x),void 0,void 0,W);_.vX(wU(),"ABORTED");return!1}_.p("kevlar_early_popup_close")&&_.W7(this.JSC$12222_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12204_chunkHandler=void 0;var Am;pm=of((Am=this.currentEndpoint)!=null?Am:void 0);(Am=Y==="shorts"&&pm==="shorts")||_.Yjd();_.Ho(RsC)("nr",void 0);Z&&_.jI({webInfo:{navigationReason:"an"}});W.clickTrackingParams&&(I.itct=W.clickTrackingParams,I.csn=d);KIA(I);I.endpoint=JSON.stringify(W);_.p("enable_unknown_lact_fix_on_html5")&&(_.FY().resolve(_.jy),I.lact=_.LD());_.jU.isEmpty(I)||_.lO(D,I);!_.p("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(B=Object.assign({},{layer:0},B,{parentLayer:3}));this.pendingNavigationPromise=B=ljl(this.pageFetcher,W,I,this.currentEndpoint,this.JSC$12222_isNetworkPromiseStale.bind(this),B,K);B=B.then(this.handleNavigateSuccess.bind(this,B,W,t,I),this.handleNavigateFail.bind(this,B,W));_.ug().navigationFinishPromise=B;P={endpoint:W,pageType:Y,url:xs(D),reload:!!P,noProgressBar:_.p("web_disable_page_navigation_progress")||Am};O&&(P.type=O);this.fireEvent("yt-navigate-start",P);t&&
Tu3(this.pageFetcher,W,t,I,this.currentEndpoint);return!0};
K7.prototype.JSC$12222_isNetworkPromiseStale=function(W){return W!=this.pendingNavigationPromise};
var xwi=function(W,P,x,I,O){var B=of(P);P={endpoint:P,pageType:B};O&&(P.errorMessage=O);_.ge(x);P.navigationDoneMs=_.CK("nd");P.navigationErrorReason=I;W.fireEvent("yt-navigate-error",P)};
K7.prototype.handleNavigateFail=function(W,P,x){var I=void 0;x instanceof _.Rq&&(I=x,wWG(x));if(this.JSC$12222_isNetworkPromiseStale(W))return _.s2(I);_.vX(wU(),"FAILURE");xwi(this,P,x,"101");return _.s2(x)};
K7.prototype.handleNavigateSuccess=function(W,P,x,I,O){if(this.JSC$12222_isNetworkPromiseStale(W))return _.Jn();this.pendingNavigationPromise=null;if(!O)return P=new _.mW("Missing data in response for navigation endpoint",P),_.s2(P);if(O.reload)return window.location.reload(!0),_.Jn();x&&(W={},_.jU.extend(W,_.Kcl(x),O),O=W);var B,Y;x=(B=O)==null?void 0:(Y=B.timing)==null?void 0:Y.responseStart;x!=null&&_.CK("srt",x);_.CK("pdc");var K,Z;B=(K=O)==null?void 0:(Z=K.timing)==null?void 0:Z.info;B!=null&&
(K=_.Ho(_.WaU)(B),_.jI(K));_.vX(wU(),"SUCCESS");IUc(this,P,O,1,I);return _.Jn()};
var P1p=function(W){var P=W;_.p("kevlar_no_redirect_to_classic_2_ks")||(P=(new _.Xu(W)).getPath());if(P==="/"||P==="/red")return!1;var x=!0;qRk.forEach(function(I){W.indexOf(I)===0&&(x=!1)});
L5P.forEach(function(I){var O=I.url;_.p(I.expFlag)&&W.indexOf(O)===0&&(x=!1)});
return x};
K7.prototype.publishPageData=function(W){this.fireEvent("yt-page-data-fetched",{pageData:W})};
OFW=function(W,P,x,I,O,B){var Y=null;P.page!=="watch"||I?P.filler||_.W7(W.JSC$12222_clientRoot,"yt-stop-old-player",[P]):Y=NuW(W.pageFetcher,O,P,x,!1,B,void 0,W.currentEndpoint);if(Y)return Y.then(W.publishPageData.bind(W,P));W.publishPageData(P);return _.Jn()};
JAc=function(W,P,x){var I=null;if(!x)return I=new _.mW("Empty data",W.debugString,P);var O=x.response;if(!O)return I;var B={endpointType:of(P)||"unknown"};O.responseContext?(O=O.responseContext.errors)&&(I=new _.mW("Errors in response context",W.debugString,P,O,B)):I=O.error||O.errorMetadata?new _.mW("Errors in response",W.debugString,P,O.error,O.errorMetadata,B):new _.mW("responseContext missing",W.debugString,P,Object.keys(O).sort().join(","),B);var Y,K,Z,d;if(W=x==null?void 0:(Y=x.response)==null?
void 0:(K=Y.responseContext)==null?void 0:(Z=K.webResponseContextExtensionData)==null?void 0:(d=Z.webResponseContextDebugData)==null?void 0:d.debugErrorMessages)for(Y=0;Y<W.length;Y++);return I};
Bjz=function(W){var P,x,I,O;return W==null?void 0:(P=W.response)==null?void 0:(x=P.responseContext)==null?void 0:(I=x.errors)==null?void 0:(O=I.error)==null?void 0:O["0"]};
neP=function(W,P){var x;if(x=P.url&&!P.url.startsWith("/clip"))x=P.url,x=!_.p("webfe_parse_debug_param_in_resolveurl_service")&&W.searchDebugUrlMatcher.test(x)||kYG(x)?!0:!1;if(x)kYG(P.url)&&_.UV(window.location.href).themeRefresh?(P=_.T7(P.url,"themeRefresh"),_.Jf(W.historyManager,P)):P.url&&!Z3m(P.url)&&_.Jf(W.historyManager,P.url);else if(P.endpoint){var I,O,B;(x=(I=P.endpoint)==null?void 0:(O=I.commandMetadata)==null?void 0:(B=O.webCommandMetadata)==null?void 0:B.url)&&!Z3m(x)&&_.Jf(W.historyManager,
x);x&&P.url&&x!=P.url&&!P.url.match("playnext=1")&&new _.mW("Response url mismatch in response data",W.debugString,x,P.url)}};
_.Ybi=function(W,P,x,I,O,B,Y,K){B=B===void 0?!1:B;var Z=_.FY().resolve(yz),d;if(!K&&XkA(Z,(d=W.currentEndpoint)!=null?d:void 0,P))return Z.showConfirmationDialog(W.JSC$12222_clientRoot.parentElement,{endpoint:P,data:x,navigationType:I,tempData:O,isMiniplayer:B,isForwardHistoryNavigation:Y==null?void 0:Y.forward}),_.Jn();W.pageFetcher.JSC$12204_chunkHandler=void 0;return IUc(W,P,x,I,O,B)};
IUc=function(W,P,x,I,O,B){B=B===void 0?!1:B;W.isMiniplayerExpansion=B;var Y=I===2;W.currentEndpoint=P;W.numNavigations++;W.numNavigations&&(FAU.navigationCount=W.numNavigations);_.MR("NUM_NAV",W.numNavigations);var K=JAc(W,P,x);if(K)return xwi(W,P,K,"102",Bjz(x)),_.s2(K);var Z,d,v,m;K=x.rootVe||(x==null?void 0:(Z=x.response)==null?void 0:(d=Z.responseContext)==null?void 0:(v=d.webResponseContextExtensionData)==null?void 0:(m=v.ytConfigData)==null?void 0:m.rootVisualElementType);!Y&&x&&neP(W,x);var t,
C;Z=x==null?void 0:(t=x.response)==null?void 0:(C=t.responseContext)==null?void 0:C.maxAgeSeconds;if(!Y&&!isNaN(Z)){var z;_.p("kevlar_use_response_ttl_to_invalidate_cache")?z=(0,_.iA)()+1E3*Z:_.p("kevlar_always_invalidate_cache")&&(z=0);isNaN(z)||(x.expirationTime=z)}_.p("html5_enable_ssap_entity_id")&&Y&&x.playerResponse&&(x.playerResponse.cacheMetadata={isCacheHit:!0});_.yV(_.O3).prefetchCache_.clear();Y||x.page!=="watch"||x.type!=="reduced"&&I!==1?I=OFW(W,x,Y,!!B,P,O):(W.publishPageData(x),I=_.Jn());
O=I.then(function(){var D=of(P);D={endpoint:P,pageType:D,fromHistory:Y,response:x};D.navigationDoneMs=_.CK("nd");W.fireEvent("yt-navigate-finish",D)});
x.csn&&K&&x.clientSideGrafts&&I.then(W.attachClientSideGrafts.bind(W,x,_.G7()));return O};
_.J=K7.prototype;_.J.attachClientSideGrafts=function(W,P){W.clientSideGrafts&&P&&W.clientSideGrafts.forEach(function(x){if(P&&x){var I=_.ox(x);_.p("combine_ve_grafts")?_.YY().graftServerVe(x,P):_.hn(W.csn,P,I)}})};
_.J.handleSignalActionHistoryBack=function(){window.history.back()};
_.J.handleSignalActionCloseWindow=function(){window.close()};
_.J.handleSignalActionReloadPage=function(){this.reload()};
_.J.handleSignalActionSoftReloadPage=function(){SBi(this)};
_.J.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.J.fireEvent=function(W,P){W=new CustomEvent(W,{bubbles:!0,cancelable:!1,composed:!0,detail:P});this.dispatchEvent(W)};
_.J.addEventListener=function(W,P){this.JSC$12222_clientRoot.addEventListener(W,P)};
_.J.dispatchEvent=function(W){return this.JSC$12222_clientRoot.dispatchEvent(W)};
_.J.removeEventListener=function(W,P){this.JSC$12222_clientRoot.removeEventListener(W,P)};
K7[qC]=[F5w,_.Bw];_.xZG=new tJ("browse","h8y2qb");_.IaW=new tJ("search","JzFVk");_.O$7=new tJ("shorts","xwEKAe");_.JBm=new tJ("watchFixie","nmfa2d");_.BIG=new tJ("watchFlexy","CF909");_.nro=new tJ("watchGrid","Tm0L3c");_.YDd=new tJ("watchLearningJourney","L3n37");var yA3;var Zd=function(){return _.b.apply(this,arguments)||this};
_.A(Zd,_.b);_.N1.Object.defineProperties(Zd,{template:{configurable:!0,enumerable:!0,get:function(){if(yA3===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);yA3=W}W=yA3;return W}}});
_.f([_.h(K5z.YtPlayerBehavior),_.l("design:type",Object)],Zd.prototype,"ytPlayerBehavior",void 0);Zd=_.f([_.U({is:"ytd-player"})],Zd);var KMc;var ZFM;var oeM;var oV=function(){var W=_.b.apply(this,arguments)||this;W.forceModernIconButton=!1;W.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return W};
_.A(oV,_.b);oV.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]]"}}}}}};
oV.prototype.handleAccountLinkingStateChangedCommand=function(W){if(W=_.Q(W,gfm)){var P,x=(P=this.data)==null?void 0:P.providerKey;P=W.providerKey;x&&P&&x.id===P.id&&x.subject===P.subject&&(W=W.linked,W!==void 0&&(this.set("data.linked",W),this.notifyPath("data.linked"),_.p("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(W)))}};
oV.prototype.setPlayerAccountLinkState=function(W){var P=new OYG;IXA(P,JtG(new B48,W));var x=_.RP();x&&x.getPlayerPromise().then(function(I){I.setAccountLinkState(_.L2(P.JSC$9973_serializeBinary(),4));I.updateAccountLinkingConfig(W)})};
oV.prototype.handleShowAccountLinkDialog=function(){var W=this.get("button.buttonRenderer.command");W&&_.nK([W],this.hostElement)};
_.N1.Object.defineProperties(oV.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}}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.f([_.h([_.rb.YtActionHandlerBehavior]),_.l("design:type",Object)],oV.prototype,"actionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],oV.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],oV.prototype,"overrides",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],oV.prototype,"forceModernIconButton",void 0);_.f([_.c({value:"bottom"}),_.l("design:type",String)],oV.prototype,"buttonTooltipPosition",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],oV.prototype,"forceIconButton",void 0);_.f([_.c(),_.l("design:type",Boolean)],oV.prototype,"disableTextTransform",void 0);
_.f([_.H("data","data.linked","data.isWarning"),_.l("design:type",Object),_.l("design:paramtypes",[])],oV.prototype,"button",null);oV=_.f([_.U({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],oV);
_.X(oV,"ytd-account-link-button-renderer",function(){if(oeM!==void 0)return oeM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return oeM=W},{mode:1});var Sb3;var uiZ=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Sg=function(){return _.b.apply(this,arguments)||this};
_.A(Sg,_.b);Sg.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Sg.prototype.updateButtonActiveState=function(){var W=this,P=!!uiZ.find(function(x){return W.currentState===x});
this.button&&(this.button.isPressed=P)};
_.N1.Object.defineProperties(Sg.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.playlistLoopStateEntity)==null?void 0:W.state)||((P=this.data)==null?void 0:P.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=void 0,P;if(this.currentState&&((P=this.data)==null?0:P.states)){P=_.n(this.data.states);for(var x=P.next();!x.done;x=P.next()){x=_.Q(x.value,_.idM);var I=void 0;if(((I=x)==null?void 0:I.state)===this.currentState){W=x;break}}}return W}}});
Sg.prototype.updateButtonActiveState=Sg.prototype.updateButtonActiveState;_.f([_.h(_.Gp),_.l("design:type",Object)],Sg.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Sg.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.$8C}),_.l("design:type",Object)],Sg.prototype,"playlistLoopStateEntity",void 0);_.f([_.c(),_.l("design:type",Object)],Sg.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],Sg.prototype,"forceIconOnly",void 0);_.f([_.BM("ytd-button-renderer"),_.l("design:type",_.UN)],Sg.prototype,"button",void 0);
_.f([_.H("data","playlistLoopStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Sg.prototype,"currentState",null);_.f([_.OZ("currentButtonStateRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Sg.prototype,"updateButtonActiveState",null);_.f([_.H("currentState"),_.l("design:type",Object),_.l("design:paramtypes",[])],Sg.prototype,"currentButtonStateRenderer",null);
Sg=_.f([_.U({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Sg);
_.X(Sg,"ytd-playlist-loop-button-renderer",function(){if(Sb3!==void 0)return Sb3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Sb3=W},
{mode:1});var dwM;var sFd=_.KK("DOWNLOAD",{},"Download"),veb=_.KK("DOWNLOADING",{},"Downloading"),mwk=_.KK("DOWNLOADED",{},"Downloaded"),V4b=_.KK("RETRY",{},"Retry"),uR=function(){var W=_.b.apply(this,arguments)||this;W.forceIconButton=!1;W.forceIconOnly=!1;W.overrides=!1;W.buttonTooltipPosition=!1;W.styleActionButton=!1;W.disableTextTransform=!1;W.downloadProgress=0;W.isDownloadComplete=!1;W.isHidden=!0;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return W};
_.A(uR,_.b);_.J=uR.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var W;(W=this.data)!=null&&W.text||(W=_.GK(_.Xe().getState(),this.videoId),this.updateButtonState(W))};
_.J.computeVideoId=function(W){return W};
_.J.showHideButton=function(){this.updateButtonVisibility()};
_.J.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(W){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==veb||!_.ux(W))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=sFd;var P="OFFLINE_DOWNLOAD";var x="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":W=V4b;P="OFFLINE_DOWNLOAD";x="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":W=mwk;P="OFFLINE_PIN";x="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":W=
veb;P="OFFLINE_DOWNLOADING_ZERO";x="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":W=V4b;P="OFFLINE_DOWNLOAD";x="ACTION_RETRY";break;default:W=sFd,P="OFFLINE_DOWNLOAD",x="ACTION_ADD"}this.isVideoDeletedByUser&&(W=sFd,P="OFFLINE_DOWNLOAD",x="ACTION_ADD");var I=Object.assign({},this.data);I.text=_.bx(W);I.tooltip=W;I.icon={iconType:P};I.size="SIZE_DEFAULT";I.style="STYLE_DEFAULT";_.Q(I.command,_.ZZ)&&(_.Q(I.command,_.ZZ).action=x);this.set("data",I)}};
_.J.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?W="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var P;W!==((P=this.data.icon)==null?void 0:P.iconType)&&(P=Object.assign({},this.data),P.text=_.bx(veb),P.tooltip=veb,P.icon={iconType:W},_.Q(P.command,_.ZZ)&&(_.Q(P.command,_.ZZ).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",P))}};
uR.prototype.updateProgress=uR.prototype.updateProgress;uR.prototype.onTransferStateChanged=uR.prototype.onTransferStateChanged;uR.prototype.showHideButton=uR.prototype.showHideButton;uR.prototype.dataChanged=uR.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],uR.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uR.prototype,"forceIconButton",void 0);
_.f([_.c(),_.l("design:type",Object)],uR.prototype,"forceIconOnly",void 0);_.f([_.c(),_.l("design:type",Object)],uR.prototype,"overrides",void 0);_.f([_.c(),_.l("design:type",Object)],uR.prototype,"buttonTooltipPosition",void 0);_.f([_.c(),_.l("design:type",Object)],uR.prototype,"styleActionButton",void 0);_.f([_.c(),_.l("design:type",Object)],uR.prototype,"disableTextTransform",void 0);
_.f([_.c({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.l("design:type",String)],uR.prototype,"videoId",void 0);_.f([_.c(),_.l("design:type",Object)],uR.prototype,"data",void 0);_.f([_.c({selector:gE,selectorArgs:["videoId"]}),_.l("design:type",Object)],uR.prototype,"downloadProgress",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uR.prototype,"isDownloadComplete",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uR.prototype,"isHidden",void 0);_.f([_.c({selector:_.GK,selectorArgs:["videoId"]}),_.l("design:type",String)],uR.prototype,"transferState",void 0);_.f([_.c({selector:_.XAx,selectorArgs:["videoId"]}),_.l("design:type",Object)],uR.prototype,"isVideoDeletedByUser",void 0);_.f([_.c({selector:ccd,selectorArgs:["videoId"]}),_.l("design:type",Object)],uR.prototype,"offlineabilityState",void 0);
_.f([_.c({value:!0}),_.l("design:type",Boolean)],uR.prototype,"showTooltips",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],uR.prototype,"sendCommandWhenDisabled",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],uR.prototype,"disabled",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uR.prototype,"dataChanged",null);
_.f([_.K_("offlineabilityState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uR.prototype,"showHideButton",null);_.f([_.K_("transferState","isVideoDeletedByUser"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uR.prototype,"onTransferStateChanged",null);_.f([_.K_("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uR.prototype,"updateProgress",null);
uR=_.f([_.U({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],uR);
_.X(uR,"ytd-download-button-renderer",function(){if(dwM!==void 0)return dwM;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return dwM=W},{mode:2});var t4d;var pti,jFd=function(){if(pti!==void 0)return pti;var W=document.createElement("template");_.G(W,'\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 pti=W};var QFc=_.p("web_button_rework")&&_.wo("BUTTON_REWORK")||_.p("web_button_rework_with_live"),C1m=_.Wi("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,dq=function(){var W=_.b.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.alignByText=!1;W.isShorts=!1;W.animatedText=!1;W.shouldAnimate=!1;W.JSC$12260_browserSupportsAnimation=_.p("web_supports_animations_api");W.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};W.onTap=function(){var P;if((P=W.data)==null||!P.defaultNavigationEndpoint){var x;P=!((x=W.data)==null?0:x.isToggled);var I;if((I=W.data)==null||!I.preventAutoToggle){W.shouldAnimate=!1;W.disableTextUpdateJobId&&_.Gr.cancelJob(W.disableTextUpdateJobId);W.disableTextUpdateJobId=_.Gr.addLowPriorityJob(function(){W.disableTextUpdateJobId=void 0},C1m);
var O;W.set("data.isToggled",!((O=W.data)==null?0:O.isToggled));x=W.getInnertubeIcon();I={toggled:P,actions:{}};x&&(I.actions[x.toLowerCase()]=P);_.Lf(W.hostElement,"yt-toggle-button",I)}}};
return W};
_.A(dq,_.b);_.J=dq.prototype;_.J.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Gr.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.toggle=function(W){var P;this.set("data.isToggled",W!==void 0?W:!((P=this.data)==null?0:P.isToggled))};
_.J.handleUpdateToggleButtonStateCommand=function(W){if(this.data){W=_.Q(W,bdZ);var P,x,I,O=(P=this.data)==null?void 0:(x=P.toggleButtonSupportedData)==null?void 0:(I=x.toggleButtonIdData)==null?void 0:I.id;O&&W&&O===(W==null?void 0:W.buttonId)&&this.set("data.isToggled",W.toggled)}};
_.J.handleUpdateToggleButtonTextAction=function(W){if(this.data){W=_.Q(W,vPZ);var P,x,I,O=(P=this.data)==null?void 0:(x=P.toggleButtonSupportedData)==null?void 0:(I=x.toggleButtonIdData)==null?void 0:I.id;O&&W&&O===(W==null?void 0:W.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=W.defaultNumericalValue,this.set("data.defaultText",W.defaultText),this.set("data.toggledText",W.toggledText),this.shouldAnimate=!1)}};
_.J.getInnertubeIcon=function(){var W=this.data;if(W){var P,x,I=((P=W.defaultIcon)==null?0:P.iconType)?(x=W.defaultIcon)==null?void 0:x.iconType:null,O,B;P=((O=W.toggledIcon)==null?0:O.iconType)?(B=W.toggledIcon)==null?void 0:B.iconType:I;return W.isToggled?P:I}};
_.J.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.N1.Object.defineProperties(dq.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W={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$12260_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var P=W.renderer;var x=W.element;var I=W.toggled;var O=W.onTapCallback;var B=W.commandClientArgs;var Y=W.overrides;var K=W.forceIcon;var Z=W.forceModernIconButton;var d=W.forceDisabled;var v=W.useAnimatedText;var m=W.animatedTextProps;W=eDR(P,I);K=!P.defaultIcon||!K&&P.defaultText?P.defaultIcon?"leading":void 0:Z?"icon-only":"icon-only-40";K==="icon-only-40"&&(W.type="text");var t;Z=Object;var C=Z.assign,z;a:switch((z=
P.style)==null?void 0:z.styleType){case "STYLE_COMPACT_GRAY":z={size:"S"};break a;default:z={size:"M"}}var D=!!I;var w=(w=I&&P.toggledText||P.defaultText)?_.pt(w):void 0;v?(v=_.kz(I&&P.toggledText||P.defaultText))&&m&&!isNaN(Number(m.numberValue))?(m.numberText=v,I&&(m.numberValue+=1),v=m):v=void 0:v=void 0;var a,k,T,N;var Io=(m=((k=I?P.toggledAccessibilityData||((Io=P.toggledText)==null?void 0:Io.accessibility):P.accessibilityData||((a=P.defaultText)==null?void 0:a.accessibility))==null?void 0:(T=
k.accessibilityData)==null?void 0:T.label)||((N=P.accessibility)==null?void 0:N.label))?m:_.kz(I&&P.toggledText||P.defaultText);d=d===void 0?P.isDisabled:d;x=H3o(P,I,O,x,B);I=hDA(P,I);I!=null&&I.length?(I=_.Gm({innertubeCommand:gmW(I),forceNewState:!0}),I=E2(I)?I:void 0):I=void 0;P=C.call(Z,{},W,z,{iconPosition:K},Y,{focused:!1,toggled:D,toggleable:!0,formattedButtonText:w,animatedTextProps:v,accessibilityLabel:Io,disabled:d,onTap:x,aTagConfig:I},WgW((t=P.colorData)==null?void 0:t.basicColorPaletteData));
P.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(P.type="filled");return P}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.getInnertubeIcon();if(W)return _.PW(W)}}});
dq.prototype.resetAnimation=dq.prototype.resetAnimation;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],dq.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],dq.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],dq.prototype,"isPressed",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"forceIconButton",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"forceIconOnly",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"forceModernIconButton",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"alignByText",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"overrides",void 0);
_.f([_.c(),_.l("design:type",Boolean)],dq.prototype,"disabled",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"isShorts",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"buttonTooltipPosition",void 0);_.f([_.c(),_.l("design:type",Object)],dq.prototype,"animatedText",void 0);_.f([_.c(),_.l("design:type",String)],dq.prototype,"textNumberValue",void 0);_.f([_.c({computed:"computeTooltip(data, data.isToggled)"}),_.l("design:type",Object)],dq.prototype,"tooltip",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dq.prototype,"resetAnimation",null);_.f([_.H("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.l("design:type",Object),_.l("design:paramtypes",[])],dq.prototype,"computedButtonShape",null);_.f([_.H("data.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],dq.prototype,"computedIcon",null);
dq=_.f([_.U({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],dq);QFc&&_.X(dq,"ytd-toggle-button-renderer",jFd,{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var TuA=[],rXo=!1;_.ql(F5m);var AAP=_.kl(function(W){function P(d){var v;return _.y(function(m){if(m.nextAddress==1)return(v=!b3x(d,K())||!K().enabled)?m.jumpTo(2):_.S(m,Nuo(),3);m.nextAddress!=2&&(v=m.yieldResult);if(v)return m.return();x();setTimeout(function(){Y(!1)},1500);
_.Kl(m)})}
function x(){setTimeout(function(){Y(!0);var d;(d=I.lottieEl)==null||d.goToAndPlay(0)},150)}
var I=_.Ys(),O=_.n(_.YV(!1,void 0,"xffAp")),B=O.next().value,Y=O.next().value,K=_.a7(W.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.AQ(function(){var d,v;((d=W.settings)==null?void 0:(v=d.call(W))==null?void 0:v.uniqueId)==="this is not intended behavior"&&_.ge(new _.mW("Smartimation Settings is undefined"))});
_.jj(function(){K().experimentEnabled&&(K().enabled?k0G(P):(Y(!1),U8d(P)),_.C4(function(){U8d(P)}))});
_.jj(function(){K().timings.join("");K().experimentEnabled&&(XkR(K()),_.C4(function(){fjt(K())}))});
var Z=_.Sj(function(){return cXo(I,K())},void 0,"d96jJc");
O={};return _.u("yt-smartimation",{class:_.O4(W.className,"smartimation",(O["smartimation--experiment-enabled"]=function(){return K().experimentEnabled},O["smartimation--active-border"]=B,O["smartimation--enable-masking"]=qRS(),O))},_.u(_.V,{cond:function(){return K().experimentEnabled},
then:function(){return _.u("div",{class:"smartimation__border"},_.u(_.Jd,{className:"smartimation__border-gradient",data:Z,animationName:function(){return Z().animationConfig.name}}))}}),_.u("div",{class:"smartimation__content"},W.children))},"x"),ecG=_.p("web_enable_sink_smartimations")?AAP:F5m,znM=_.p("web_enable_sink_smartimations")?AAP:_.nE(F5m);
AAP.idomCompat=!0;_.p("web_enable_sink_smartimations")?_.lq(znM,"yt-smartimation",{props:{className:_.cv,settings:_.cv}}):_.WF(ecG,"yt-smartimation",{propNames:["className","settings"]});var sf=function(){var W=_.b.apply(this,arguments)||this;W.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};W.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};W.shouldEnableSmartimation=!1;return W};
_.A(sf,_.b);sf.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
sf.prototype.onDataChanged=function(){var W,P;this.shouldEnableSmartimation=(((W=this.data)==null?void 0:(P=W.timedAnimationData)==null?void 0:P.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
sf.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var W=_.Q(this.data.likeButton,_.hc),P=_.Q(this.data.dislikeButton,_.hc);return!!((W==null?0:W.isToggled)||(P==null?0:P.isToggled))};
sf.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]]"}}}}}};
_.N1.Object.defineProperties(sf.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,P,x=((W=this.data)==null?void 0:(P=W.timedAnimationData)==null?void 0:P.animationTiming)||[];return{uniqueId:"like-dislike",timings:x,enabled:this.shouldEnableSmartimation,experimentEnabled:x.length>0}}}});
sf.prototype.onDataChanged=sf.prototype.onDataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],sf.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sf.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],sf.prototype,"likeButtonOverride",void 0);_.f([_.c(),_.l("design:type",Object)],sf.prototype,"dislikeButtonOverride",void 0);
_.f([_.H("shouldEnableSmartimation"),_.l("design:type",Object),_.l("design:paramtypes",[])],sf.prototype,"smartimationSettings",null);_.f([_.OZ("data"),_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sf.prototype,"onDataChanged",null);sf=_.f([_.U({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],sf);
_.X(sf,"ytd-segmented-like-dislike-button-renderer",function(){if(t4d!==void 0)return t4d;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return t4d=W},{mode:1});var Gtb;var Eew;(Eew=document.body)==null||Eew.setAttribute("rounded-container","");var gel={};gel.YtToggleButtonBehavior=[_.rb.YtActionHandlerBehavior,nk.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 W=this.data.isToggled;if(!this.isModal_(W)){if(!this.data.preventAutoToggle){this.toggle();var P={toggled:this.data.isToggled,actions:{}};P.actions[this.buttonIcon]=this.data.isToggled;_.Lf(this.hostElement,"yt-toggle-button",P)}P=this.data.defaultServiceEndpoint||null;var x=this.data.toggledServiceEndpoint||null;if(P&&x||P&&this.data.preventAutoToggle)W=W?x:P,P=this.disableCommandHandlerOverride,_.p("killswitch_toggle_button_behavior_resolve_command")||P?_.Iu(this.hostElement,
[W]):_.O2(W,this.hostElement),_.Lf(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:W})}},
stateChanged_:function(){var W=this.data;if(W){var P=W.isToggled;this._setEndpoint(this.computeEndpoint_(W));this._setServiceEndpoint(this.computeServiceEndpoint_(W));this._setButtonIcon(this.computeButtonIcon_(W,P));this._setButtonText(this.computeButtonText_(W,P));this._setButtonAccessibility(this.computeAccessibility_(W,P));this._setButtonTooltip(this.computeTooltip_(W,P));this._setButtonClass(this.computeButtonClass_(W,P));this._setIconPositionType(this.computeIconPositionType_(W));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=P):this.elements_.button.setAttribute("aria-pressed",P));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=P)}},
shouldSetIconActiveState_:function(){return _.p("kevlar_system_icons")},
toggle:function(W){this.set("data.isToggled",W!==void 0?W:!this.data.isToggled);_.p("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(W){if(W){var P,x;return!!((P=this.data)==null?0:(x=P.toggledServiceEndpoint)==null?0:x.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(W){return W&&W.defaultNavigationEndpoint||null},
computeButtonIcon_:function(W,P){var x=W&&W.defaultIcon?_.PW(W.defaultIcon.iconType):null;W=W&&W.toggledIcon?_.PW(W.toggledIcon.iconType):x;return P?W:x},
handleUpdateToggleButtonStateCommand_:function(W){W=W.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&this.toggle(W.toggled)},
computeButtonText_:function(W,P){return W?P&&W.toggledText||W.defaultText||null:null},
computeAccessibility_:function(W,P){return W?(P?this.get("toggledAccessibilityData.accessibilityData",W):this.get("accessibilityData.accessibilityData",W))||W.accessibility||null:null},
computeTooltip_:function(W,P){return W?P&&W.toggledTooltip||W.defaultTooltip||null:null},
computeButtonClass_:function(W,P){if(!W)return"";var x="",I=W.toggledStyle||W.style;if(P=P?I:W.style){P.styleType&&(P=P.styleType);try{x+=P.toLowerCase().replace(/_/g,"-")+" "}catch(O){_.Dw(O,P,typeof P),_.ge(O)}}if(W=W.size){W.sizeType&&(W=W.sizeType);try{x+=W.toLowerCase().replace(/_/g,"-")+" "}catch(O){_.Dw(O,W,typeof W),_.ge(O)}}return x.trim()},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeServiceEndpoint_:function(W){var P=W&&W.serviceEndpoint,x=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return P?P:x&&W.command?W.command:null},
handleUpdateToggleButtonTextAction_:function(W){W=W.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&(this.set("data.defaultText",W.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",W.toggledText),this.notifyPath("data.toggledText"))}}];_.Ad("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Dwz=_.p("web_button_rework")&&_.wo("BUTTON_REWORK")||_.p("web_button_rework_with_live"),vw=function(){var W=_.b.apply(this,arguments)||this;W.systemIcons=_.p("kevlar_system_icons");W.roundedContainer=!0;return W};
_.A(vw,_.b);vw.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
vw.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var W=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var P={toggled:!!this.data.isToggled,actions:{}};P.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var x,I;P.actions.playlistId=(x=this.data.defaultServiceEndpoint)==null?void 0:(I=x.playlistEditEndpoint)==null?void 0:I.playlistId;_.Lf(this.hostElement,"yt-toggle-button",P)}(W=W?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(W)}};
vw.prototype.onYtNavigate=function(W){var P=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);P&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(P))};
_.N1.Object.defineProperties(vw,{template:{configurable:!0,enumerable:!0,get:function(){if(Gtb===void 0){var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);Gtb=W}W=Gtb;return W}}});
vw.prototype.onYtNavigate=vw.prototype.onYtNavigate;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],vw.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],vw.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(gel.YtToggleButtonBehavior),_.l("design:type",Object)],vw.prototype,"ytToggleButtonBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],vw.prototype,"data",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],vw.prototype,"showTooltips",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],vw.prototype,"systemIcons",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],vw.prototype,"roundedContainer",void 0);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],vw.prototype,"onYtNavigate",null);
vw=_.f([_.U({is:"ytd-toggle-button-renderer",disableElementRegistration:Dwz})],vw);var M4P;_.m3=new _.Lb("PANEL_CONTROLLER_TOKEN");_.Vz=new _.Lb("SHEET_CONTROLLER_TOKEN");_.tf=new _.Lb("DIALOG_CONTROLLER_TOKEN");M4P=new _.Lb("DIALOG_CONTAINER_TOKEN");var neR=_.KK("DOWNLOAD",{},"Download"),YbW=_.KK("DOWNLOADING",{},"Downloading"),yAA=_.KK("DOWNLOADED",{},"Downloaded"),KMU=_.KK("RETRY",{},"Retry");var $wZ=_.kl(function(W){var P=mwS,x=function(){return""},I=uiG(W.data),O=dwm(W.data),B=sFx(W.data),Y=ve7(W.data);
P=function(){var K=W.data(),Z=JAU(K,I(),O(),B(),Y()),d=!!K.videoId,v=Z.text;return{title:d?v:void 0,tooltip:d?void 0:v,accessibilityText:v,onTap:Z.onTap,iconName:Z.iconType,style:K.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:Z.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:K.buttonSize}};
x={};x=_.O4("ytDownloadButtonViewModelHost",(x.ytDownloadButtonViewModelIsHidden=function(){var K=W.data(),Z=Y();return K.playlistId||Z()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||Z()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},x));
return _.u("download-button-view-model",{class:x},_.u(_.cq,{data:P}))},"y");
$wZ.idomCompat=!0;_.ql(ptW);_.ql(V47);var hnz=_.kl(function(W){var P=W.backgroundLottieRef;var x=W.foregroundLottieRef;var I=W.children;var O=W.wrapperClass;var B=W.disableAnimation;W=function(){return(_.p("web_animated_actions")||_.p("web_animated_actions_v2"))&&!(B==null?0:B())};
return _.u("yt-animated-action",{class:_.O4("animated-action__container",O)},_.u("div",{class:"animated-action__content-with-background"},_.u(_.V,{cond:W,then:function(){return _.u(wtA,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:P==null?void 0:P(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(jFx()?"dark":"light")+"_v5.json"}}}})}}),I),_.u(_.V,{cond:W,
then:function(){return _.u(wtA,{lottiePlayerProps:function(){return{animationRef:x==null?void 0:x(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(jFx()?"dark":"light")+"_v4.json"}}}})}}))},"z");
hnz.idomCompat=!0;var LMU=_.p("web_enable_sink_animated_actions")?hnz:ptW,HFm=_.p("web_enable_sink_animated_actions")?hnz:_.nE(ptW),wtA=_.kl(function(W){var P=W.wrapperClass;var x=W.lottieClass;var I=W.lottiePlayerProps;return _.u("div",{class:_.O4("animated-action__lottie",P),"aria-hidden":"true"},_.u(_.Jd,{className:x,data:I,animationName:function(){return I().animationConfig.name}}))},"A");var QFU={isOpen:!1};var AAR={isAllowed:!1};var Gt7={errorMessage:"",title:"",privacy:"",isDisabled:!0};var get={isOpen:!1};var M4R={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var enw={response:void 0};var wtR=function(W,P){W=W===void 0?enw:W;switch(P.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},W,{response:P.payload});default:return W}};var cAz={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var hn8=function(W,P){W=W===void 0?cAz:W;switch(P.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},W,{nextDisabled:P.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},W,{nextCommand:P.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},W,{footerSubmissionData:P.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},W,{isImpersonationValid:P.payload});default:return W}};var aUd={reportFormData:void 0,reportDetailsFormData:void 0};var HFd=function(W,P){W=W===void 0?aUd:W;switch(P.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportFormData:P.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportDetailsFormData:P.payload});default:return W}};var bFZ=void 0;_.p("mweb_enable_redux_store_on_demand")||(bFZ=new Un(enm()));var qbo=_.kl(function(W){W=_.bw(W,{themeOverride:void 0,animationRef:{}});var P=W.animatedIconType,x=W.active,I=W.themeOverride,O=W.animationRef;W=W.staticIconFn;var B=_.n(_.YV(void 0,void 0,"P5a72b")),Y=B.next().value,K=B.next().value,Z=function(){a:{var w=P();var a=I==null?void 0:I();var k;a=(a==null?void 0:a.useDarkTheme)||((k=_.FY().resolve(_.Rl(_.hF)))==null?void 0:k());switch(w){case "LIKE":b:{bFZ||(bFZ=new Un(enm()));if((w=e4U(bFZ.getState()))&&w.animationStyle)switch(w.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":w=
aUx({name:a?"valentines25_heart_dark":"valentines25_heart_light",path:a?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":w=aUx({name:a?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:a?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":w=
aUx({name:a?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:a?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}w=void 0}if(w){a=w;break a}a="animated_like_icon_"+(a?"dark_v4":"light_v4");a={lottiePlayerProps:{animationConfig:{name:a,path:cA8("animated_like_icon",a),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":a={lottiePlayerProps:{animationConfig:{name:a?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(a?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}a=void 0}return a},d=function(){var w,a;
return(a=(w=Z())==null?void 0:w.lottiePlayerProps.animationConfig.name)!=null?a:""},v=function(){if(Z()){var w=Z().lottiePlayerProps.animationConfig.path;
return IP.get(w)||Y()}};
B=_.n(_.YV(!1,void 0,"h6xR3c"));var m=B.next().value;B=B.next().value;var t=kt8(B),C=function(){var w=Z(),a,k,T;return(T=w==null?void 0:(a=w.lottiePlayerProps.animationConfig)==null?void 0:(k=a.rendererSettings)==null?void 0:k.className)!=null?T:""},z=void 0,D=void 0;
_.jj(function(){var w=Z(),a=d(),k=v(),T=m(),N=x();if(w&&(D!==a&&(D=a,z=N,a=O(),t.animationConfig=w.lottiePlayerProps.animationConfig,t.animationRef=a,k&&(t.animationConfig.animationData=k,t.animationConfig.path=void 0),a=w.lottiePlayerProps.animationConfig.path,!IP.get(a)&&w.lazyLoad&&a&&bFG(a,K)),!(T||w.lazyLoad&&!k))){if(k=!O().lottieEl)N?(T=w.totalFrames,t.animationConfig.initialSegment=[T-1,T]):t.animationConfig.initialSegment=void 0;if(z!==N&&!k)if(k=O(),N){var Io;(Io=k.lottieEl)==null||Io.playSegments([0,
w.totalFrames],!0)}else{var F;(F=k.lottieEl)==null||F.playSegments([0,1],!0)}z=N}});
return _.u("animated-icon",{class:"ytAnimatedIconHost"},_.u(_.V,{cond:function(){var w,a;return!((w=Z())==null||!w.lottiePlayerProps.animationConfig.path||((a=Z())==null?0:a.lazyLoad)&&!v()||m())},
then:function(){return _.u(_.Jd,{data:t,animationName:d,className:C,animationRef:O})},
else:W}))},"B");_.ql(WHR);var ktz,Xtz;ktz=_.kl(function(W){var P=_.fa(),x=_.fa(),I=_.fa(),O=_.Ys(),B=_.Ys(),Y=_.Ys(),K=_.dp(Jp,function(){return W.data().stateEntityStoreKey}),Z=_.dp(G0G,function(){var Oc,Bm;
return(Bm=(Oc=W.data().notificationStateEntityStoreKeys)==null?void 0:Oc.subsNotificationStateKey)!=null?Bm:""}),d=function(){return!W.data().enableSubscribeButtonPostClickAnimation},v=_.n(_.YV(0,void 0,"j8TVGc")),m=v.next().value,t=v.next().value;
v=_.n(_.YV(0,void 0,"LYLUoe"));var C=v.next().value,z=v.next().value;v=_.n(_.YV(!1,void 0,"CXkJEf"));var D=v.next().value,w=v.next().value;v=_.n(_.YV(!1,void 0,"OWieEd"));var a=v.next().value,k=v.next().value;v=_.n(_.YV(!1,void 0,"bHcaje"));var T=v.next().value,N=v.next().value,Io;v=_.n(_.YV(!1,void 0,"Cjx6se"));var F=v.next().value,nm=v.next().value,pm=function(){k(!0);_.pC(_.Gr,function(){k(!1)},1500)};
_.jj(function(){var Oc=a();n4(function(){Oc&&!d()&&K()&&BmG(O,B,Y)})});
_.jj(function(){var Oc=K();n4(function(){if(!d()&&Oc){var Bm;((Bm=W.animateWidth)==null?0:Bm.call(W))&&JRA(P.value,!!Oc.subscribed,m(),C());var GA,KM;((GA=Io)==null?0:GA.subscribed)||!Oc.subscribed||Oc.key!==((KM=Io)==null?void 0:KM.key)||pm();Io=Oc}})});
v=_.Sj(function(){var Oc,Bm,GA,KM=W.data(),PZ=!((Oc=K())==null||!Oc.subscribed);Oc=!((Bm=W.isOverlay)==null||!Bm.call(W));Bm=D()?P.value:void 0;var j$=(GA=Z())==null?void 0:GA.state;GA=F();OQo(KM,j$);return sa({model:KM,subscribed:PZ,isOverlay:Oc,element:Bm,notificationState:j$,disableTextEllipsis:!0,focused:GA})},void 0,"g67gvb");
var zR=function(){var Oc;if(!d()&&((Oc=W.animateWidth)==null?0:Oc.call(W))&&(x==null?0:x.value)&&(I==null?0:I.value)&&!T()){Oc=K();var Bm=_.n((Oc==null?0:Oc.subscribed)?[x,I]:[I,x]),GA=Bm.next().value;Bm=Bm.next().value;GA=Math.ceil(GA.value.getBoundingClientRect().width);Bm=Math.ceil(Bm.value.getBoundingClientRect().width);t(GA);z(Bm);JRA(P.value,!(Oc==null||!Oc.subscribed),GA,Bm);N(!0)}},Am=_.yB(function(Oc){zR();
var Bm=K();Bm&&(Oc.detail.endpoint.subscribeEndpoint||Oc.detail.endpoint.unsubscribeEndpoint)&&xdt(P.value,!Bm.subscribed,Bm)}),kW=function(){var Oc=_.FY().resolve(_.Rl(_.jK));
Oc&&nm(Oc.isKeyBoardInUse())},$W=function(){nm(!1)};
_.XL("yt-player-subscribe",function(Oc){var Bm=K();Bm&&Oc===W.data().channelId&&xdt(P.value,!0,Bm)});
_.XL("yt-player-unsubscribe",function(Oc){var Bm=K();Bm&&Oc===W.data().channelId&&xdt(P.value,!1,Bm)});
_.XL("yt-update-subscribe-button-action",function(Oc){Oc=_.Q(Oc,FMU);var Bm=K();Bm&&Oc&&Oc.channelId===W.data().channelId&&xdt(P.value,!!Oc.subscribed,Bm)});
_.AQ(function(){P.value&&(P.value.addEventListener("focusin",kW),P.value.addEventListener("focusout",$W));var Oc=_.VE(_.Gr,function(){zR()});
w(!0);_.C4(function(){_.Gr.cancelJob(Oc);P.value&&(P.value.removeEventListener("focusin",kW),P.value.removeEventListener("focusout",$W))})});
var ao=function(){var Oc,Bm,GA;if(GA=!((Oc=K())==null||!Oc.subscribed))Oc=!!W.data().disableNotificationBell,GA=(Bm=Z())==null?void 0:Bm.state,GA=!Oc&&!!GA;return GA},e8=function(){var Oc;
return!((Oc=K())==null?0:Oc.subscribed)},iC=function(){var Oc,Bm;
if(Bm=e8()){Bm=!!W.data().disableNotificationBell;var GA=(Oc=Z())==null?void 0:Oc.state;Bm=!Bm&&!!GA}return Bm},hw={},dk={};
return _.u("yt-subscribe-button-view-model",{class:_.O4(W.className,"yt-subscribe-button-view-model-wiz",(hw["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Oc,Bm;return!((Oc=K())==null||!Oc.subscribed)&&((Bm=W.animateWidth)==null?void 0:Bm.call(W))&&a()},hw["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Oc;
return!((Oc=K())==null?0:Oc.subscribed)&&W.data().hideWhenUnsubscribed},hw)),
el:P,"on:yt-service-request-sent":Am},_.u(HFm,{backgroundLottieRef:O,foregroundLottieRef:B,wrapperClass:_.O4("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(dk["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Oc;return((Oc=W.animateWidth)==null?void 0:Oc.call(W))&&a()},dk["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Oc;
return!((Oc=W.animateWidth)==null?0:Oc.call(W))},dk)),
disableAnimation:d},_.u("div",{el:x,class:"yt-subscribe-button-view-model-wiz__container"},_.u(PO,{data:v,icon:function(){return _.u(_.V,{cond:ao,then:function(){var Oc=function(){var Bm;return PD7((Bm=Z())==null?void 0:Bm.state)};
return _.u(_.V,{cond:function(){return d()||Oc()!=="NOTIFICATIONS_NONE"},
then:function(){return _.u(_.Sy,{icon:Oc})},
else:function(){return _.u(qbo,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Y})}})}})},
secondaryIconName:function(){return ao()?"EXPAND":void 0}}))),_.u("div",{el:I,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.u(_.V,{cond:function(){var Oc;return((Oc=W.animateWidth)==null?void 0:Oc.call(W))&&!d()&&!T()},
then:function(){return _.u(PO,{data:_.Sj(function(){var Oc;return sa({model:W.data(),subscribed:e8(),isOverlay:!((Oc=W.isOverlay)==null||!Oc.call(W)),element:P.value,disableTextEllipsis:!0})},void 0,"smNF2c"),
iconName:function(){var Oc;return iC()?PD7((Oc=Z())==null?void 0:Oc.state):void 0},
secondaryIconName:function(){return iC()?"EXPAND":void 0}})}})))},"C");
_.UwA=_.p("web_enable_sink_yt_subscribe_button_view_model")?ktz:WHR;Xtz=_.p("web_enable_sink_yt_subscribe_button_view_model")?ktz:_.nE(WHR);ktz.idomCompat=!0;var n7R=new _.Lb("RENDERER_STAMPER_OPTIONS_TOKEN");var zS;_.Ap=new tdZ;zS=new Map;var QZt="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),ARx=["notificationTextRenderer","notificationMultiActionRenderer"],CDS="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
jZG=ddR(function(W){return _.zB(W==null?void 0:W.targetId)}).useUpdatableData;var p4m=0;_.Ea.debugName="EjJbCe";var fUA=_.kl(function(W){var P=W.data;var x=_.dp(Jp,function(){return P().subscriptionStateEntityKey});
return _.u(_.V,{cond:function(){var I=P(),O=x();return!I.hideWhenUnsubscribed||(O==null?0:O.subscribed)?_.Q(P().button,_.gp):void 0},
then:function(I){return _.u("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.u(_.cq,{data:I,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var E7o=_.CC({buttonViewModel:_.cq,subscribeButtonViewModel:_.UwA,downloadButtonViewModel:$wZ,toggleButtonViewModel:_.MI,subscribePlusButtonViewModel:fUA});_.ql(DdR);var NjM=_.kl(function(W){return _.u(_.Ea,{data:function(){return W.actionRow().actions}},{buttonViewModel:function(P){var x=P.data;
return _.u(p7,{isRow:W.isRow,isIconOnlyButton:function(){return MHd(x())},
useIntrinsicWidth:W.useIntrinsicWidth},_.u(_.cq,{data:x}))},
subscribeButtonViewModel:function(P){return _.u(p7,{isRow:W.isRow},_.u(Xtz,{data:P.data,isOverlay:!1,animateWidth:function(){return!W.isRow()}}))},
downloadButtonViewModel:function(P){var x=P.data;return _.u(p7,{isRow:W.isRow,isIconOnlyButton:function(){return!!x().playlistId}},_.u($wZ,{data:x}))},
toggleButtonViewModel:function(P){var x=P.data;return _.u(p7,{isRow:W.isRow,isIconOnlyButton:function(){var I=x();return MHd(_.Q(I.isToggled?I.toggledButtonViewModel:I.defaultButtonViewModel,_.gp))}},_.u(_.MI,{data:x}))},
subscribePlusButtonViewModel:function(P){return _.u(p7,{isRow:W.isRow},_.u(fUA,{data:P.data}))}})},"E"),p7=_.kl(function(W){var P={};
return _.u("div",{class:_.O4("yt-flexible-actions-view-model-wiz__action",(P["yt-flexible-actions-view-model-wiz__action--row-action"]=W.isRow,P["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=W.useIntrinsicWidth,P["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,P["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=W.isIconOnlyButton,P))},W.children)},"F"),lUk=_.kl(function(W){var P=function(){var I;
return((I=W.layout)==null?void 0:I.call(W))===1},x={};
return _.u("yt-flexible-actions-view-model",{class:_.O4("yt-flexible-actions-view-model-wiz",W.className,(x["yt-flexible-actions-view-model-wiz--inline"]=function(){return!P()},x["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return W.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},x))},_.u(_.sV,{each:function(){return W.data().actionsRows||[]}},function(I){return _.u(_.V,{cond:P,
then:function(){return _.u("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.u(NjM,{actionRow:I,isRow:P,useIntrinsicWidth:function(){return!!W.data().respectActionIntrinsicWidth}}))},
else:function(){return _.u(NjM,{actionRow:I,isRow:P})}})}))},"G"),TjW=_.p("web_enable_sink_yt_flexible_actions_view_model")?lUk:DdR,jg=_.p("web_enable_sink_yt_flexible_actions_view_model")?lUk:_.nE(DdR);
lUk.idomCompat=!0;_.lq(jg,"yt-flexible-actions-view-model",{props:{data:_.cv,layout:_.cv,justifyContentOverride:_.cv,className:_.cv}});_.ql($dW);var rAA,aD8;rAA=_.kl(function(W){var P=_.dp(E4,function(){var O;return(O=W.data().dislikeEntityKey)!=null?O:""}),x=_.Sj(function(){var O=P();
return O?O.likeStatus==="DISLIKE":_.Q(W.data().toggleButtonViewModel,_.DZ).isToggled},void 0,"D8oIFb"),I=_.Sj(function(){return Object.assign({},_.Q(W.data().toggleButtonViewModel,_.DZ),{isToggled:x()})},void 0,"shaCXe");
return _.u("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.u(_.MI,{data:I,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(O){var B=P();B&&O!==(B.likeStatus==="DISLIKE")&&B.key&&_.cM(_.$s("likeStatusEntity",B.key,{likeStatus:O?"DISLIKE":"INDIFFERENT",hadUserInteraction:O}))}}))},"H");
aD8=_.p("web_enable_sink_dislike_button_view_model")?rAA:$dW;_.Qz=_.p("web_enable_sink_dislike_button_view_model")?rAA:_.nE($dW);rAA.idomCompat=!0;_.ql(hcR);var iFz,cRR;iFz=_.kl(function(W){var P=_.p("web_supports_animations_api"),x=Xo(function(t){var C=d(),z,D=(C==null?void 0:(z=C.likeCountIfIndifferent)==null?void 0:z.content)!==t.numberText;if(K()||!D)return t;var w,a;return{numberText:(C==null?void 0:(w=C.likeCountIfIndifferent)==null?void 0:w.content)||"",numberValue:Number((a=C==null?void 0:C.likeCountIfIndifferentNumber)!=null?a:0),heightPx:36,shouldAnimate:!!C}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),I=Xo(function(t){var C=d(),z,D=(C==null?void 0:(z=C.likeCountIfIndifferent)==null?void 0:z.content)!==t.numberText;if(K()||!D)return t;var w,a;return{numberText:(C==null?void 0:(w=C.likeCountIfLiked)==null?void 0:w.content)||"",numberValue:Number((a=C==null?void 0:C.likeCountIfLikedNumber)!=null?a:0),heightPx:36,shouldAnimate:!!C}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),O=_.n(_.YV(void 0,void 0,"T6jMHc")),B=O.next().value,Y=O.next().value,K=B,Z=_.dp(E4,function(){var t,C;return(C=(t=W.data())==null?void 0:t.likeStatusEntityKey)!=null?C:""}),d=_.dp(BV8,function(){var t,C;
return((t=W.likeCountEntity)==null?void 0:(C=t.call(W))==null?void 0:C.key)||""}),v=_.Sj(function(){var t;
return((t=Z())==null?void 0:t.likeStatus)==="LIKE"},void 0,"WxQBcd"),m=function(){var t;
return P&&!((t=W.likeCountEntity)==null||!t.call(W))};
return _.u("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.u(_.MI,{data:function(){var t=Object,C=t.assign,z;var D=_.Q((z=W.data())==null?void 0:z.toggleButtonViewModel,_.DZ);return C.call(t,{},D||{},{isToggled:v()})},
buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:function(){return m()?x():void 0},
animatedTextPropsToggled:function(){return m()?I():void 0},
onToggle:function(t){HQU(t,Z(),K(),Y)},
style:function(){var t;return((t=W.disableIconAnimation)==null?0:t.call(W))?void 0:{animateIcon:"true"}}}))},"I");
cRR=_.p("web_enable_sink_like_button_view_model")?iFz:hcR;_.C7=_.p("web_enable_sink_like_button_view_model")?iFz:_.nE(hcR);_.ql(bQ7);var Rnw=_.kl(function(W){var P=function(){return _.Q(W.data().likeButtonViewModel,_.wp)},x=function(){var O;
return((O=P())==null?void 0:O.likeStatusEntityKey)||""},I=_.Sj(function(){var O,B;
var Y=(B=_.dp(E4,x)())!=null?B:(O=P())==null?void 0:O.likeStatusEntity;O=W.data();var K;O=(O==null?void 0:(K=O.timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:"like-dislike",timings:O,enabled:(Y==null?void 0:Y.likeStatus)==="INDIFFERENT"&&O.length>0,experimentEnabled:O.length>0}},void 0,"e1fsz");
return _.u("segmented-like-dislike-button-view-model",{class:_.O4("ytSegmentedLikeDislikeButtonViewModelHost",W.className),"button-renderer":!0},_.u(znM,{settings:I},_.u("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.u(_.V,{cond:P,then:function(O){return _.u(_.C7,{data:O,likeCountEntity:function(){return W.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.u(_.V,{cond:function(){return _.Q(W.data().dislikeButtonViewModel,_.hp)},
then:function(O){return _.u(_.Qz,{data:O,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),FMc=_.p("web_enable_sink_segmented_like_dislike_button_view_model")?Rnw:bQ7;
Rnw.idomCompat=!0;_.p("web_enable_sink_segmented_like_dislike_button_view_model")?_.lq(FMc,"segmented-like-dislike-button-view-model",{props:{data:_.cv,className:_.cv}}):_.WF(FMc,"segmented-like-dislike-button-view-model",{propNames:["data"]});var lDC=0;_.lq(nRm,"account-link-button-view-model",{props:{data:_.cv,className:_.Ng,setMinWidth:_.Ng,forceIconOnly:_.Ng}});_.Ad("menuRenderer","menuRenderer","ytd-menu-renderer");
var qbW={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"}},
LMc=_.p("web_fix_missing_action_buttons")?100:200,Af=function(){var W=_.b.apply(this,arguments)||this;W.safeArea=!_.p("kevlar_flex_menu_safe_area_killswitch");W.tonalOverride=!1;W.threeDotSize="M";W.isOverlay=!1;W.useOverlayDark=!1;W.topLevelIconsOnly=!1;W.JSC$12411_lastWidth=0;W.maybeUpdateFlexibleMenu=function(){_.p("web_fix_missing_action_buttons")?requestAnimationFrame(W.maybeUpdateFlexibleMenuImpl):W.maybeUpdateFlexibleMenuImpl()};
W.maybeUpdateFlexibleMenuImpl=function(){var P;if((P=W.data)!=null&&P.flexibleItems){W.maybeFlushDebouncer();P=W.hostElement.clientWidth;var x=P>W.JSC$12411_lastWidth,I,O=((I=W.topLevelButtonsContainer)==null?void 0:I.scrollHeight)||0,B;I=((B=W.flexibleItemButtonsContainer)==null?void 0:B.scrollHeight)||0;B=W.hostElement.scrollHeight>Math.max(O,I)+8;x?(W.resetFlexibleItems(),W.JSC$12411_lastWidth=W.hostElement.clientWidth,W.maybeUpdateFlexibleMenu()):B&&(W.shrinkFlexibleMenu(),W.JSC$12411_lastWidth=
P)}};
W.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){W.onOverflowTap()},
iconPosition:"icon-only",style:W.isOverlay?W.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:W.threeDotSize,state:"active",accessibilityLabel:W.computeAccessibilityLabel(W.data)},W.threeDotButtonOverride)};
W.onOverflowTap=function(){if(W.data.fetchMenuCommand)_.FY().resolve(_.qR).resolveCommand(W.data.fetchMenuCommand,{form:{element:W.hostElement}});else if(W.data.isDisabled&&W.data.disabledCommand)_.O2(W.data.disabledCommand,W.hostElement);else{var P=W.createMenuRendererVe(),x={items:W.items};W.data.menuPopupAccessibility&&(x.menuPopupAccessibility=W.data.menuPopupAccessibility);W.data.footer&&(x.footer=W.data.footer);P={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:x},veData:P}};
_.FY().resolve(_.Vz).openSheet({openPopupActionCommand:P},W.hostElement)}};
return W};
_.A(Af,_.b);_.J=Af.prototype;_.J.updateButtonOverrides=function(){if(!_.p("menu_renderer_label_update_upkillswitch")){var W=_.g(this.hostElement).querySelector("yt-button-view-model");W&&(W.buttonOverrides=this.buttonOverrides)}};
_.J.computeHasItems=function(){var W;return((W=this.topLevelButtonData)==null?void 0:W.length)||this.hasFlexibleItems};
_.J.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.J.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.qa(this.hostElement,{"--ytd-menu-renderer-button-color":_.j9(this.data.iconColor)}))};
_.J.onStamperFinished=function(){this.JSC$12411_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.J.setupFlexibleMenu=function(){var W=this,P;(P=this.data)!=null&&P.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.WO(this.maybeUpdateFlexibleMenu,LMc,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){W.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))};
_.J.maybeFlushDebouncer=function(){if(_.p("web_replace_formatted_with_attributed_string")){var W;(W=this.topLevelButtons)==null||W.forEach(function(x){var I;(x=(I=x.getElementsByTagName("yt-attributed-string"))==null?void 0:I[0])&&MMS(x)});
var P;(P=this.flexibleItemButtons)==null||P.forEach(function(x){var I;(x=(I=x.getElementsByTagName("yt-attributed-string"))==null?void 0:I[0])&&MMS(x)})}};
_.J.resetFlexibleItems=function(){var W;if((W=this.data)!=null&&W.flexibleItems){_.p("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var P;this.flexAsTopLevelButtons=(P=this.data.flexibleItems)==null?void 0:P.map(function(x){return _.Q(x,_.TQd).topLevelButton});
_.p("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.J.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.J.shrinkFlexibleMenu=function(){var W;(W=this.flexAsTopLevelButtons)!=null&&W.length&&(this.flexAsTopLevelButtons=[].concat(_.ju(this.flexAsTopLevelButtons.slice(0,-1))))};
_.J.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:qbW,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:qbW,events:!0}}};
_.J.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.detached=function(){this.icon="yt-icons:more_vert"};
_.J.computeTopLevelButtonData=function(W){if(!W)return[];var P;W=(P=W==null?void 0:W.topLevelButtons)!=null?P:[];return _.jU.unsafeClone([].concat(_.ju(W)))};
_.J.computeItems=function(W,P){if(!W)return[];var x=[];if(P){var I=(W.flexibleItems||[]).map(function(Y){return _.Q(Y,_.TQd)});
I=_.n(I);for(var O=I.next();!O.done;O=I.next())O=O.value,P.includes(O.topLevelButton)||(O=O.menuItem)&&x.push(O)}var B;W=(B=W==null?void 0:W.items)!=null?B:[];return[].concat(_.ju(x),_.ju(W))};
_.J.computeMenuActive=function(W,P){return W||P};
_.J.onPopupOpened=function(){this.overlayOpen=!0;_.Lf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.J.onPopupClosed=function(){this.overlayOpen=!1;_.Lf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.onPopupCanceled=function(){this.overlayOpen=!1;_.Lf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.computeAccessibilityLabel=function(W){return this.get("accessibility.accessibilityData.label",W)};
_.J.isHidden=function(W,P){return this.tonalOverride||!W?!0:W.fetchMenuCommand||W.isDisabled&&W.disabledCommand?!1:!(P==null?0:P.length)};
_.J.isModernOverflowHidden=function(W,P){return this.tonalOverride&&W?W.fetchMenuCommand?!1:!(P==null?0:P.length):!0};
_.J.createMenuRendererVe=function(){var W=this.data.trackingParams,P=_.E_(),x=_.G7();return W&&P&&x?(W=_.ox(W),x=_.td(7591),_.p("combine_ve_grafts")?_.BK(_.YY(),x,W):_.hn(P,W,x),x):null};
_.N1.Object.defineProperties(Af.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.flexAsTopLevelButtons)==null||!W.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Af.prototype.onPopupCanceled=Af.prototype.onPopupCanceled;Af.prototype.onPopupClosed=Af.prototype.onPopupClosed;Af.prototype.onPopupOpened=Af.prototype.onPopupOpened;Af.prototype.tonalOverrideChanged=Af.prototype.tonalOverrideChanged;Af.prototype.resetFlexibleItems=Af.prototype.resetFlexibleItems;Af.prototype.setupFlexibleMenu=Af.prototype.setupFlexibleMenu;Af.prototype.iconButtonColorChanged=Af.prototype.iconButtonColorChanged;Af.prototype.updateButtonOverrides=Af.prototype.updateButtonOverrides;
_.f([_.h(_.bb),_.l("design:type",Object)],Af.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("#button-shape"),_.l("design:type",L6)],Af.prototype,"buttonShape",void 0);_.f([_.BM("#button"),_.l("design:type",Object)],Af.prototype,"button",void 0);
_.f([_.c(),_.l("design:type",Object)],Af.prototype,"data",void 0);_.f([_.c({computed:"computeTopLevelButtonData(data)"}),_.l("design:type",Array)],Af.prototype,"topLevelButtonData",void 0);_.f([_.c(),_.l("design:type",Array)],Af.prototype,"flexAsTopLevelButtons",void 0);_.f([_.c({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.l("design:type",Array)],Af.prototype,"items",void 0);_.f([_.c({value:"yt-icons:more_vert"}),_.l("design:type",String)],Af.prototype,"icon",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Af.prototype,"safeArea",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.l("design:type",Boolean)],Af.prototype,"menuActive",void 0);_.f([_.c(),_.l("design:type",Boolean)],Af.prototype,"menuFocused",void 0);_.f([_.c({value:"bottom"}),_.l("design:type",String)],Af.prototype,"buttonTooltipPosition",void 0);_.f([_.c(),_.l("design:type",Boolean)],Af.prototype,"overlayOpen",void 0);
_.f([_.c({value:!0}),_.l("design:type",Boolean)],Af.prototype,"forceIconButton",void 0);_.f([_.c(),_.l("design:type",Boolean)],Af.prototype,"styleActionButton",void 0);_.f([_.c(),_.l("design:type",Boolean)],Af.prototype,"disableTextTransformOnButtons",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Af.prototype,"tonalOverride",void 0);_.f([_.c(),_.l("design:type",Object)],Af.prototype,"threeDotSize",void 0);
_.f([_.c(),_.l("design:type",Object)],Af.prototype,"threeDotButtonOverride",void 0);_.f([_.c(),_.l("design:type",Object)],Af.prototype,"isOverlay",void 0);_.f([_.c(),_.l("design:type",Object)],Af.prototype,"useOverlayDark",void 0);_.f([_.c({computed:"computeButtonOverride(tonalOverride)"}),_.l("design:type",Object)],Af.prototype,"buttonOverride",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Af.prototype,"hasCustomIconColor",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("flexAsTopLevelButtons"),_.l("design:type",Object),_.l("design:paramtypes",[])],Af.prototype,"hasFlexibleItems",null);_.f([_.c({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.l("design:type",Boolean)],Af.prototype,"hasItems",void 0);_.f([_.c(),_.l("design:type",Object)],Af.prototype,"topLevelIconsOnly",void 0);
_.f([_.OZ("topLevelIconsOnly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Af.prototype,"updateButtonOverrides",null);_.f([_.H("topLevelIconsOnly"),_.l("design:type",Object),_.l("design:paramtypes",[])],Af.prototype,"buttonOverrides",null);_.f([_.BM("#top-level-buttons-computed"),_.l("design:type",HTMLElement)],Af.prototype,"topLevelButtonsContainer",void 0);_.f([_.n_(".top-level-buttons > *"),_.l("design:type",Array)],Af.prototype,"topLevelButtons",void 0);
_.f([_.BM("#flexible-item-buttons"),_.l("design:type",HTMLElement)],Af.prototype,"flexibleItemButtonsContainer",void 0);_.f([_.n_("#flexible-item-buttons > *"),_.l("design:type",Array)],Af.prototype,"flexibleItemButtons",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Af.prototype,"iconButtonColorChanged",null);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Af.prototype,"setupFlexibleMenu",null);_.f([_.K_("topLevelIconsOnly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Af.prototype,"resetFlexibleItems",null);_.f([_.OZ("tonalOverride"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Af.prototype,"tonalOverrideChanged",null);
_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Af.prototype,"onPopupOpened",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Af.prototype,"onPopupClosed",null);_.f([_.I7("yt-popup-canceled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Af.prototype,"onPopupCanceled",null);
_.X(Af,"ytd-menu-renderer",function(){if(ZFM===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);ZFM=W}W=ZFM;return W},{mode:_.F4("kevlar_poly_si_batch_j030")?1:2});var WHP;var PDb;_.qI=_.kl(function(W){var P=W.data;var x=function(){if(P().icon)a:{var I={iconName:P().icon};for(var O=_.FY().resolve(_.xY),B=_.n([12,24]),Y=B.next();!Y.done;Y=B.next()){var K=Y.value;Y=Object.assign({},I,{iconStyle:"youtube_fill",iconSize:K});K=Object.assign({},I,{iconStyle:"youtube_outline",iconSize:K});if(O.resolveIcon(Y)){I=Y;break a}if(O.resolveIcon(K)){I=K;break a}}I=void 0}else I=void 0;return I};
W={};return _.u("badge-shape",{class:_.O4("badge-shape-wiz",function(){return KdW(P().type)},(W["badge-shape-wiz--overlay"]=function(){return P().isOverlay},W["badge-shape-wiz--ads-include-dot"]=function(){return P().adsIncludeDot},W["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(P().type){case 16:case 17:case 18:var I=!0;
break a;default:I=!1}return I},W["badge-shape-wiz--status-badge"]=function(){a:switch(P().type){case 11:case 12:case 13:case 14:case 15:var I=!0;
break a;default:I=!1}return I},W["badge-shape-wiz--no-text"]=function(){return!P().text},W["badge-shape-wiz--modern"]=function(){return P().modern},W)),
style:_.oP({"background-color":function(){var I;return(I=P().customColors)==null?void 0:I.backgroundColor}}),
role:function(){return P().accessibilityText?"img":void 0},
"aria-label":function(){return P().accessibilityText}},_.u(_.V,{cond:function(){return P().animation},
then:function(I){return _.u(_.Jd,{className:"badge-shape-wiz__icon",data:I,animationName:function(){return I().animationConfig.name||""}})}}),_.u(_.V,{cond:function(){var I;
return x()&&!((I=P())==null?0:I.animation)},
then:function(){return _.u("div",{class:"badge-shape-wiz__icon"},_.u(Ftt,{data:function(){return x()}}))}}),_.u("div",{class:"badge-shape-wiz__text"},function(){var I;
return(I=P())==null?void 0:I.text}))},"K");
_.qI.idomCompat=!0;_.lq(_.qI,"badge-shape",{props:{data:_.cv}});var zq=function(){var W=_.b.apply(this,arguments)||this;W.systemIcons=_.p("kevlar_system_icons");W.animated=_.p("animated_live_badge_icon");W.useBadgeShape=_.p("web_badge_shape_defrag");return W};
_.A(zq,_.b);_.J=zq.prototype;_.J.addTooltips=function(){for(var W=_.g(this.hostElement).querySelectorAll(".badge"),P=0,x;x=W[P++];){var I=this.repeatElement.itemForElement(x);x=_.g(x);x.lastChild&&x.lastChild.is==="tp-yt-paper-tooltip"&&x.removeChild(x.lastChild);if(I=I.metadataBadgeRenderer&&I.metadataBadgeRenderer.tooltip){var O=_.f6("tp-yt-paper-tooltip");(0,_.Fy)(O).textContent=I;O.setAttribute("position","top");x.appendChild(O)}}};
_.J.badgesChanged=function(){var W=this;_.HK().parkOrScheduleJob(function(){W.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.J.standaloneRoundedBadgeChanged=function(){var W=this.useRoundedBadge?this.useRoundedBadge:void 0;W&&(this.useRoundedBadge=W)};
_.J.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.computeStyle=function(W){_.p("enable_html5_teal_ad_badge")&&W==="BADGE_STYLE_TYPE_AD"&&(W="badge-style-type-ad-alternate");_.p("kevlar_ytb_live_badges")&&W==="BADGE_STYLE_TYPE_LIVE_NOW"&&(W="badge-style-type-live-now-alternate");return W?W.toLowerCase().replace(/_/g,"-"):""};
_.J.computeRole=function(W){return this.computeAriaLabel(W)?"img":"status"};
_.J.computeAriaLabel=function(W){var P;return(W==null?void 0:(P=W.accessibilityData)==null?void 0:P.label)||(W==null?void 0:W.label)};
_.J.computeBadgeShape=function(W){var P;if(W){var x,I=YKG(W.style),O=ytt(W.style),B=W.label,Y=((x=W.accessibilityData)==null?void 0:x.label)||W.label;W=(P=W.icon)==null?void 0:P.iconType;P={type:I,brNzRatingBadgeType:O,text:B,accessibilityText:Y,icon:W!=="PREMIUM"?W:void 0}}else P={};return P};
_.J.updateComputedBadges=function(W,P,x){var I=this;(P=P?[P]:x?[x]:void 0)?this.computedBadges=P:this.computedBadges=W==null?void 0:W.filter(function(O){var B;if((B=O.metadataBadgeRenderer)==null?0:B.groups){B=!1;O=_.n(O.metadataBadgeRenderer.groups);for(var Y=O.next();!Y.done;Y=O.next()){Y=Y.value;var K=void 0;B=B||((K=I.hiddenBadgeGroups)==null?void 0:K.includes(Y))}return!B}return!0})};
_.J.useFilledIcons=function(W){return _.p("kevlar_system_icons")&&(W==="AUDIO_BADGE"||W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE"||W==="SPONSORSHIP_STAR"||W==="PERSON_RADAR_FILLED"||W==="PERSON_RADAR")};
_.J.computeIcon=function(W){var P,x;W=W==null?void 0:(P=W.metadataBadgeRenderer)==null?void 0:(x=P.icon)==null?void 0:x.iconType;if(W!=="PREMIUM"&&W)return _.PW(W)};
_.J.computeStandaloneBadge=function(W){var P;W=W==null?void 0:(P=W.icon)==null?void 0:P.iconType;return W==="PREMIUM_STANDALONE"||W==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
zq.prototype.hiddenBadgeGroupsChanged=zq.prototype.hiddenBadgeGroupsChanged;zq.prototype.standaloneBadgeChanged=zq.prototype.standaloneBadgeChanged;zq.prototype.standaloneRoundedBadgeChanged=zq.prototype.standaloneRoundedBadgeChanged;zq.prototype.badgesChanged=zq.prototype.badgesChanged;_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"hidden",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],zq.prototype,"componentBehavior",void 0);
_.f([_.c(),_.l("design:type",Array)],zq.prototype,"badges",void 0);_.f([_.c(),_.l("design:type",Object)],zq.prototype,"topStandaloneBadge",void 0);_.f([_.c(),_.l("design:type",Object)],zq.prototype,"bottomStandaloneBadge",void 0);_.f([_.c(),_.l("design:type",Object)],zq.prototype,"computedBadges",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"mediumFontAdBadge",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"useRoundedBadge",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"largeFontAdBadge",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"overlayAd",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"overlayPremium",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"noDotAdBadge",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"collectionTruncate",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"isThumbnailBadge",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zq.prototype,"wrapBadges",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],zq.prototype,"systemIcons",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],zq.prototype,"animated",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],zq.prototype,"useBadgeShape",void 0);_.f([_.c({value:[]}),_.l("design:type",Array)],zq.prototype,"hiddenBadgeGroups",void 0);_.f([_.BM("#repeat"),_.l("design:type",mr)],zq.prototype,"repeatElement",void 0);_.f([_.K_("badges"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zq.prototype,"badgesChanged",null);
_.f([_.K_("useRoundedBadge"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zq.prototype,"standaloneRoundedBadgeChanged",null);_.f([_.K_("topStandaloneBadge","bottomStandaloneBadge"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zq.prototype,"standaloneBadgeChanged",null);_.f([_.K_("hiddenBadgeGroups"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zq.prototype,"hiddenBadgeGroupsChanged",null);
zq=_.f([_.U({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],zq);
var xdl=_.R7()(zq,"ytd-badge-supported-renderer",function(){if(PDb===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);PDb=W}W=PDb;return W},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.F4("kevlar_poly_si_batch_j053")?1:2});var Gq=function(){var W=_.b.apply(this,arguments)||this;W.iconType="STAR";W.standardizeIconSize=_.p("kevlar_system_icons");W.mediaHoverOverlayInitialVisibility=_.p("enable_top_landscape_image_button_command_web");W.noBottomMargin=!1;W.thumbnailObjectFit="CONTAIN";W.thumbnailFitHeight=!0;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.A(Gq,_.b);_.J=Gq.prototype;
_.J.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"}}}};
_.J.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",Gq.JSC$12423_DEFAULT_CLICK_LOCATION_BEHAVIOR,Gq.JSC$12423_CLICK_LOCATION_ID_MAP))};
_.J.onTap=function(W){if(!_.p("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.J.onClick=function(W){if(_.p("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.J.onTapOrClick=function(W){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,W,!1)};
_.J.updateMediaBackgroundImage=function(){var W=this.get("data.image.thumbnail.thumbnails");W&&(W=_.Tm(W,0))&&_.qa(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+W+")"})};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var W=0;W<this.data.impressionEndpoints.length;W++){var P=this.data.impressionEndpoints[W];P.clickTrackingParams&&delete P.clickTrackingParams;_.FY().resolve(_.qR).resolveCommand(P,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var x;((x=this.data)==null?0:x.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.J.handleMuteAd=function(){};
_.J.attached=function(){var W=this;_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.p("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.N1.Object.defineProperties(Gq.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.titleText)return"";var P;return _.KK("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((P=this.data)==null?void 0:P.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.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 W;return!((W=this.data)==null||!W.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"}}});
Gq.prototype.onClick=Gq.prototype.onClick;Gq.prototype.onTap=Gq.prototype.onTap;Gq.prototype.dataChanged=Gq.prototype.dataChanged;
Gq.JSC$12423_CLICK_LOCATION_ID_MAP=_.p("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"]]);
Gq.JSC$12423_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.p("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"}];_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.gW),_.l("design:type",Object)],Gq.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Gq.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],Gq.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.h(Ax),_.l("design:type",Object)],Gq.prototype,"ytdActiveViewBehavior",void 0);_.f([_.h([_.rb.YtActionHandlerBehavior]),_.l("design:type",Object)],Gq.prototype,"actionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Gq.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Gq.prototype,"clickCommand",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],Gq.prototype,"miniMode",void 0);_.f([_.c(),_.l("design:type",String)],Gq.prototype,"iconType",void 0);_.f([_.H("data.titleText"),_.l("design:type",String),_.l("design:paramtypes",[])],Gq.prototype,"titleAriaLabel",null);
_.f([_.H("data.rating"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gq.prototype,"getRating",null);_.f([_.H("data.price"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gq.prototype,"getPrice",null);_.f([_.H("data.thirdLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gq.prototype,"getThirdLine",null);_.f([_.H("data.fourthLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gq.prototype,"getFourthLine",null);
_.f([_.H("data.fifthLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gq.prototype,"getFifthLine",null);_.f([_.H("getRating"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gq.prototype,"computeRatingHidden",null);_.f([_.H("getPrice"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gq.prototype,"computePriceHidden",null);_.f([_.H("getThirdLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gq.prototype,"computeThirdLineHidden",null);
_.f([_.H("getFourthLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gq.prototype,"computeFourthLineHidden",null);_.f([_.H("getFifthLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gq.prototype,"computeFifthLineHidden",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.energyIcon"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gq.prototype,"hasEnergyIcon",null);
_.f([_.H("computePriceHidden","computeRatingHidden"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gq.prototype,"computeSecondaryTextHidden",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Gq.prototype,"standardizeIconSize",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Gq.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Gq.prototype,"noBottomMargin",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data.layout"),_.l("design:type",String),_.l("design:paramtypes",[])],Gq.prototype,"layout",null);_.f([_.H("data.layout"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gq.prototype,"mediaThumbnailWidth",null);_.f([_.H("layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gq.prototype,"useRoundedBadge",null);_.f([_.c(),_.l("design:type",String)],Gq.prototype,"thumbnailObjectFit",void 0);
_.f([_.c(),_.l("design:type",Object)],Gq.prototype,"thumbnailFitHeight",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gq.prototype,"dataChanged",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Gq.prototype,"onTap",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Gq.prototype,"onClick",null);
Gq=_.f([_.U({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Gq);
_.X(Gq,"ytd-display-ad-renderer",function(){if(WHP!==void 0)return WHP;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return WHP=W},{mode:1});var IDl;var OQW;var JR3;var ZYo=new Map;var BmZ=!1;var Ef=function(){var W=_.b.apply(this,arguments)||this;W.DEFAULT_TOOLTIP_OFFSET="10";W.TOOLTIP_OFFSET_NO_BANNER="-8";W.badges=null;W.noEndpoints=!1;W.wrapText=!1;W.forceVerified=!1;W.tooltipPosition="top";W.compactStyle=!1;W.height=0;W.lineHeight=0;return W};
_.A(Ef,_.b);_.J=Ef.prototype;_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.J.attached=function(){var W=this;this.observer=new MutationObserver(function(P,x){W.handleResized();x.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.J.detached=function(){this.observer&&this.observer.disconnect()};
_.J.logTooltipEvent=function(){_.p("kevlar_wiz_tooltip_event_killswitch")||BmZ||(_.oRm("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),BmZ=!0)};
_.J.handleWindowResized=function(){this.handleResized()};
_.J.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")))};
_.J.onHeightChanged=function(){if(this.verified){var W=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.$$("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=W:this.textContainerEl.style.marginRight=W}};
_.J.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.$$("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.J.handleResized=function(){var W=this;this.verified&&_.Gr.addLowPriorityJob(function(){W.fitBackgroundToText();var P=getComputedStyle(W.hostElement).lineHeight;P&&(P=P.match(/\d+/))&&P.length&&(W.lineHeight=Number(P[0]));W.height=W.lineHeight&&!W.wrapText?W.lineHeight:W.textEl.offsetHeight})};
_.J.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var W=document.createRange(),P=_.g(this.textEl).children;P.length>0?W.selectNodeContents(P[0]):W.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(W.getBoundingClientRect().width)+"px"}};
_.J.computeChannelBadgeStyle=function(W){var P;if((W==null?0:(P=W.runs)==null?0:P.length)&&W.runs[0].textColor)return"--ytd-badge-icon-color:"+_.j9(W.runs[0].textColor)+";"};
_.N1.Object.defineProperties(Ef.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"?_.bx(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var W=this.get("badges.0.metadataBadgeRenderer.tooltip");if(W)return W}return _.kz(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Ef.prototype.onLineHeightChanged=Ef.prototype.onLineHeightChanged;Ef.prototype.onHeightChanged=Ef.prototype.onHeightChanged;Ef.prototype.onChannelNameChanged=Ef.prototype.onChannelNameChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Ef.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ef.prototype,"badges",void 0);_.f([_.c(),_.l("design:type",Object)],Ef.prototype,"channelName",void 0);
_.f([_.c(),_.l("design:type",Object)],Ef.prototype,"noEndpoints",void 0);_.f([_.c(),_.l("design:type",Object)],Ef.prototype,"wrapText",void 0);_.f([_.c(),_.l("design:type",Object)],Ef.prototype,"forceVerified",void 0);_.f([_.c(),_.l("design:type",Object)],Ef.prototype,"tooltipPosition",void 0);_.f([_.c(),_.l("design:type",String)],Ef.prototype,"tooltip",void 0);_.f([_.c(),_.l("design:type",Boolean)],Ef.prototype,"hasChannelArt",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ef.prototype,"compactStyle",void 0);_.f([_.BM("#text-container"),_.l("design:type",HTMLElement)],Ef.prototype,"textContainerEl",void 0);_.f([_.BM("#text"),_.l("design:type",Object)],Ef.prototype,"textEl",void 0);_.f([_.BM("#verified-tooltip"),_.l("design:type",HTMLElement)],Ef.prototype,"verifiedTooltip",void 0);_.f([_.c(),_.l("design:type",Object)],Ef.prototype,"height",void 0);
_.f([_.c(),_.l("design:type",Object)],Ef.prototype,"lineHeight",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("badges","forceVerified"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ef.prototype,"verified",null);_.f([_.H("badges","verified"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ef.prototype,"hideBadges",null);_.f([_.H("channelName"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ef.prototype,"formattedName",null);
_.f([_.H("badges","verified","formattedName"),_.l("design:type",String),_.l("design:paramtypes",[])],Ef.prototype,"tooltipText",null);_.f([_.H("hasChannelArt"),_.l("design:type",String),_.l("design:paramtypes",[])],Ef.prototype,"tooltipOffset",null);_.f([_.OZ("channelName"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ef.prototype,"onChannelNameChanged",null);
_.f([_.OZ("height"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ef.prototype,"onHeightChanged",null);_.f([_.OZ("lineHeight","height"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ef.prototype,"onLineHeightChanged",null);Ef=_.f([_.U({is:"ytd-channel-name",disableElementRegistration:!0})],Ef);
_.X(Ef,"ytd-channel-name",function(){if(JR3!==void 0)return JR3;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return JR3=W},{mode:_.F4("kevlar_poly_si_batch_j036")?1:2});var gq=function(){var W=_.b.apply(this,arguments)||this;W.standardizeIconSize=_.p("kevlar_system_icons");W.enableModernCommentBadges=_.p("enable_modern_comment_badges");return W};
_.A(gq,_.b);gq.prototype.basicPaletteChanged=function(){var W;(W=this.data.color)!=null&&W.basicColorPaletteData&&_.QB(this.hostElement,this.data.color.basicColorPaletteData)};
gq.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var W,P=this.get("basicColorPaletteData.backgroundColor",(W=this.data)==null?void 0:W.color),x;W=this.get("basicColorPaletteData.foregroundTitleColor",(x=this.data)==null?void 0:x.color);x={};P?(P=_.j9(P),x["--ytd-author-comment-badge-background-color"]=P):(x["--ytd-author-comment-badge-icon-background-color"]="transparent",x["--ytd-author-comment-badge-background-color"]="transparent");W?(P=_.j9(W),x["--ytd-author-comment-badge-name-color"]=
P,x["--ytd-author-comment-badge-icon-color"]=P):x["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(x).length>0&&_.qa(this.hostElement,x)}};
gq.prototype.useFilledIcons=function(W){return _.p("kevlar_system_icons")&&(W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE")};
_.N1.Object.defineProperties(gq.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
gq.prototype.colorChanged=gq.prototype.colorChanged;gq.prototype.basicPaletteChanged=gq.prototype.basicPaletteChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],gq.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],gq.prototype,"standardizeIconSize",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],gq.prototype,"enableModernCommentBadges",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data.authorUnifiedVerified"),_.l("design:type",Object),_.l("design:paramtypes",[])],gq.prototype,"verified",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],gq.prototype,"creator",null);_.f([_.OZ("data.color.basicColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gq.prototype,"basicPaletteChanged",null);
_.f([_.OZ("data.color"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gq.prototype,"colorChanged",null);gq=_.f([_.U({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],gq);
_.X(gq,"ytd-author-comment-badge-renderer",function(){if(OQW!==void 0)return OQW;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return OQW=W},{mode:1});var n7P;var Dd=function(){return _.b.apply(this,arguments)||this};
_.A(Dd,_.b);Dd.prototype.computeThumbnailWidth=function(W){if(W==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Dd.prototype,"data",void 0);_.f([_.c({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],Dd.prototype,"icon",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Dd.prototype,"surface",void 0);
_.f([_.c({reflectToAttribute:!0,value:_.p("enable_shrink_image_size_on_web_posts_singleton")}),_.l("design:type",Boolean)],Dd.prototype,"searchSxsUx",void 0);Dd=_.f([_.U({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Dd);
_.X(Dd,"ytd-backstage-image-renderer",function(){if(n7P!==void 0)return n7P;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return n7P=W},{mode:1});var YMp;var Mf=function(){var W=_.b.apply(this,arguments)||this;W.isLoading=!1;W.selectedItemIndex=-1;return W};
_.A(Mf,_.b);_.J=Mf.prototype;_.J.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.J.computeIsImagePoll=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.J.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.J.thumbnailSrc=function(W){var P,x,I,O;return(W==null?0:(P=W.thumbnails)==null?0:(x=P[0])==null?0:x.url)?_.my((I=W.thumbnails)==null?void 0:(O=I[0])==null?void 0:O.url):void 0};
_.J.progressWidth=function(W){return"width:"+(W?W*100:0)+"%;"};
_.J.textAreaWidth=function(W){return this.isImagePoll?null:"width:"+(W?W*100:0)+"%;"};
_.J.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.J.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var W=this.data.choices,P=0;P<W.length;P++)if(W[P].selected){this.selectedItemIndex=P;break}};
_.J.onPopupClosed=function(W,P){W=Number(this.pollVotes.selected);P.confirmed&&(this.selectChoice(W,!1),_.W7(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.J.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.J.onYtCommentPollRevert=function(W,P){P&&(this.selectChoice(P.selectedChoiceIndex,!0),this.set("data.totalVotes",P.totalVotes))};
_.J.onYtServiceRequestSent=function(W,P){if(P.actions)for(W=0;W<P.actions.length;W++){var x=P.actions[W];_.Q(x,Cw)&&this.set("data.totalVotes",_.Q(x,Cw).totalVotes)}};
_.J.onYtServiceRequestCompleted=function(W){var P=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(P==="FEEDBACK_DESELECT"||P==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.Lf(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.J.getEndpoint=function(W,P){return P===W?this.data.choices[P].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.J.selectChoice=function(W,P){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var x=0;x<this.data.choices.length;x++){var I;if(W===this.selectedItemIndex){var O=!1;var B=I=null}else I=(O=x===W)?this.data.choices[x].voteRatioIfSelected:this.data.choices[x].voteRatioIfNotSelected,B=O?this.data.choices[x].votePercentageIfSelected:this.data.choices[x].votePercentageIfNotSelected;this.set("data.choices."+x+".voteRatio",I);
this.set("data.choices."+x+".votePercentage",B);this.set("data.choices."+x+".selected",O)}P||(this.isLoading=!0,(P=this.getEndpoint(W,this.selectedItemIndex))&&_.FY().resolve(_.qR).resolveCommand(P,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.N1.Object.defineProperties(Mf.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Mf.prototype.onYtServiceRequestCompleted=Mf.prototype.onYtServiceRequestCompleted;Mf.prototype.onYtServiceRequestSent=Mf.prototype.onYtServiceRequestSent;Mf.prototype.onYtCommentPollRevert=Mf.prototype.onYtCommentPollRevert;Mf.prototype.onPopupClosed=Mf.prototype.onPopupClosed;Mf.prototype.dataChanged=Mf.prototype.dataChanged;_.f([_.h(_.rK),_.l("design:type",Object)],Mf.prototype,"paperItemBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],Mf.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Mf.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Mf.prototype,"isLoading",void 0);_.f([_.c({computed:"computeIsChannelOwner(data.choices)"}),_.l("design:type",Boolean)],Mf.prototype,"isChannelOwner",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.l("design:type",Boolean)],Mf.prototype,"isImagePoll",void 0);_.f([_.c({computed:"computeIsTotalVotesDisabled(data)"}),_.l("design:type",Boolean)],Mf.prototype,"isTotalVotesDisabled",void 0);_.f([_.c(),_.l("design:type",Object)],Mf.prototype,"previousPollInfo",void 0);_.f([_.c(),_.l("design:type",Object)],Mf.prototype,"selectedItemIndex",void 0);_.f([_.BM("#poll-votes"),_.l("design:type",Object)],Mf.prototype,"pollVotes",void 0);
_.f([_.H("isChannelOwner"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mf.prototype,"endpointStyle",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mf.prototype,"dataChanged",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Mf.prototype,"onPopupClosed",null);
_.f([_.I7("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Mf.prototype,"onYtCommentPollRevert",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],Mf.prototype,"onYtServiceRequestSent",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Mf.prototype,"onYtServiceRequestCompleted",null);Mf=_.f([_.U({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Mf);
_.X(Mf,"ytd-backstage-poll-renderer",function(){if(YMp!==void 0)return YMp;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return YMp=W},{mode:2});var yR3;var KHP={autoplay:!1,loop:!1},ZQM={simpleText:""},$w=function(){var W=_.b.apply(this,arguments)||this;W.isLoading=!1;W.usesPanelLockup=!1;W.selectedItemIndex=-1;W.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},KHP,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});W.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},KHP,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});W.correctnessAnimationProps=[];W.correctnessAnimationRefs=[];return W};
_.A($w,_.b);_.J=$w.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.J.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.J.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.J.computeIsImageQuiz=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.J.onExplanationChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var W=this.data.choices;if(W){this.maybeInitializeQuizLotties(W);for(var P=0;P<W.length;P++)if(W[P].isSelected||this.isChannelOwner&&W[P].isCorrect){this.selectedItemIndex=P;return}this.selectedItemIndex=-1}}};
_.J.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var W=this.selectedItemIndex,P=Number(this.quizVotes.selected);this.selectChoice(P);this.sendVoteAction(P,W);this.quizVotes.selected=-1;var x;W=!((x=this.data)==null?0:x.enableAnimation);this.maybePlayAnswerAnimations(W)}};
_.J.onYtCommentPollRevert=function(W,P){P&&(this.selectChoice(P.selectedChoiceIndex),this.set("data.totalVotes",P.totalVotes))};
_.J.onYtServiceRequestSent=function(W,P){if(P.actions)for(W=_.n(P.actions),P=W.next();!P.done;P=W.next())(P=_.Q(P.value,Cw))&&this.set("data.totalVotes",P.totalVotes)};
_.J.onYtServiceRequestCompleted=function(W){var P=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(P==="FEEDBACK_DESELECT"||P==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.Lf(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.J.getAnimationPropsForChoiceIndex=function(W,P){return P[W]};
_.J.maybePlayAnswerAnimations=function(W){W=W===void 0?!1:W;var P;if((P=this.data)!=null&&P.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){P=_.n(this.correctnessAnimationRefs);for(var x=P.next();!x.done;x=P.next()){var I=void 0,O=void 0;(I=x.value)==null||(O=I.lottieEl)==null||O.stop()}if(!(this.selectedItemIndex<0)){P=0;W&&(P=this.isCorrect?37:25);var B,Y;(B=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Y=B.lottieEl)==null||Y.goToAndPlay(W?P:0,!0);if(!(this.isCorrect||
(B=this.data.choices.findIndex(function(v){return v.isCorrect}),B<0))){var K,Z;
(Z=(K=this.correctnessAnimationRefs[B])==null?void 0:K.lottieEl)==null||Z.goToAndPlay(37,!0);var d;K=(d=this.fadeContainers)==null?void 0:d.item(B);!W&&K&&this.fadeIn(K)}}}};
_.J.thumbnailSrc=function(W){var P,x,I,O;return(W==null?0:(P=W.thumbnails)==null?0:(x=P[0])==null?0:x.url)?_.my((I=W.thumbnails)==null?void 0:(O=I[0])==null?void 0:O.url):void 0};
_.J.a11yVotedText=function(W,P){var x,I,O=((x=this.data)==null?void 0:(I=x.correctVotedText)==null?void 0:I.simpleText)||"",B,Y;x=((B=this.data)==null?void 0:(Y=B.votedText)==null?void 0:Y.simpleText)||"";if(!P)return"";var K,Z;if((K=this.data)==null?0:(Z=K.choices)==null?0:Z[W].isCorrect)return O;var d,v;return((d=this.data)==null?0:(v=d.choices)==null?0:v[W].isSelected)?x:""};
_.J.getEndpoint=function(W,P){return P===W?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.J.sendVoteAction=function(W,P){if(W=this.getEndpoint(W,P))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(W)};
_.J.selectChoice=function(W){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var P=0;P<this.data.choices.length;P++)this.set("data.choices."+P+".isSelected",W===this.selectedItemIndex?!1:P===W);this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.J.maybeInitializeQuizLotties=function(W){var P=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=W.map(function(x){return{animationConfig:x.isCorrect?P.baseCorrectLottiePlayerAnimationConfig:P.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){P.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(x){return x.animationRef||{}})};
_.J.fadeIn=function(W){W.classList.add("fade-in");_.Fo(_.Gr,function(){W.classList.remove("fade-in")},900)};
_.N1.Object.defineProperties($w.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.p("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.kz(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 W,P;return((W=this.data)==null?void 0:(P=W.choices)==null?void 0:P.some(function(x){return x.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?ZQM:this.data.choices[this.selectedItemIndex].explanation||ZQM}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
$w.prototype.onYtServiceRequestCompleted=$w.prototype.onYtServiceRequestCompleted;$w.prototype.onYtServiceRequestSent=$w.prototype.onYtServiceRequestSent;$w.prototype.onYtCommentPollRevert=$w.prototype.onYtCommentPollRevert;$w.prototype.dataChanged=$w.prototype.dataChanged;$w.prototype.onExplanationChanged=$w.prototype.onExplanationChanged;_.f([_.h(_.rK),_.l("design:type",Object)],$w.prototype,"paperItemBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],$w.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.XU.YtTaskEmitterBehavior),_.l("design:type",Object)],$w.prototype,"ytTaskEmitterBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],$w.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$w.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],$w.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Object)],$w.prototype,"usesPanelLockup",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.l("design:type",Boolean)],$w.prototype,"isChannelOwner",void 0);_.f([_.c({computed:"computeIsTotalVotesDisabled(data)"}),_.l("design:type",Boolean)],$w.prototype,"isTotalVotesDisabled",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.l("design:type",Boolean)],$w.prototype,"isImageQuiz",void 0);_.f([_.c(),_.l("design:type",Object)],$w.prototype,"previousQuizInfo",void 0);_.f([_.c(),_.l("design:type",Object)],$w.prototype,"selectedItemIndex",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data","usesPanelLockup"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$w.prototype,"shouldUseModernUi",null);
_.f([_.n_(".fade-container"),_.l("design:type",Object)],$w.prototype,"fadeContainers",void 0);_.f([_.c(),_.l("design:type",Array)],$w.prototype,"correctnessAnimationProps",void 0);_.f([_.H("explanation","showCorrectAnswer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$w.prototype,"showExplanation",null);_.f([_.H("isChannelOwner","isAttempted"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$w.prototype,"showCorrectAnswer",null);
_.f([_.H("isChannelOwner","isAttempted","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$w.prototype,"isQuizAnsweringDisabled",null);_.f([_.H("isQuizAnsweringDisabled"),_.l("design:type",Object),_.l("design:paramtypes",[])],$w.prototype,"endpointStyle",null);_.f([_.H("data","selectedItemIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$w.prototype,"isAttempted",null);
_.f([_.H("data","selectedItemIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],$w.prototype,"explanation",null);_.f([_.H("data","selectedItemIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$w.prototype,"isCorrect",null);_.f([_.BM("ytd-expander"),_.l("design:type",Object)],$w.prototype,"expander",void 0);_.f([_.BM("#quiz-votes"),_.l("design:type",Object)],$w.prototype,"quizVotes",void 0);
_.f([_.OZ("explanation"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$w.prototype,"onExplanationChanged",null);_.f([_.OZ("data","isChannelOwner"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$w.prototype,"dataChanged",null);_.f([_.I7("yt-comment-quiz-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],$w.prototype,"onYtCommentPollRevert",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],$w.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$w.prototype,"onYtServiceRequestCompleted",null);$w=_.f([_.U({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],$w);
_.X($w,"ytd-backstage-quiz-renderer",function(){if(yR3!==void 0)return yR3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return yR3=W},{mode:1});var o7l;var wq=function(){return _.b.apply(this,arguments)||this};
_.A(wq,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wq.prototype,"data",void 0);wq=_.f([_.U({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],wq);
_.X(wq,"ytd-post-uploaded-video-renderer",function(){if(o7l!==void 0)return o7l;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return o7l=W},{mode:1});var SMP;var hf=function(){return _.b.apply(this,arguments)||this};
_.A(hf,_.b);hf.prototype.useFilledIcons=function(W){return W==="SPONSORSHIP_STAR"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],hf.prototype,"data",void 0);hf=_.f([_.U({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],hf);
_.X(hf,"ytd-sponsors-only-badge-renderer",function(){if(SMP!==void 0)return SMP;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return SMP=W},{mode:1});var uIl;var Hw=function(){return _.b.apply(this,arguments)||this};
_.A(Hw,_.b);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Hw.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Hw.prototype,"data",void 0);Hw=_.f([_.U({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Hw);
_.X(Hw,"ytd-child-video-renderer",function(){if(uIl!==void 0)return uIl;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return uIl=W},{mode:1});var ddP;var sZp;var eg=function(){var W=_.b.apply(this,arguments)||this;W.size=0;W.enableWebModernCollectionsV2=_.p("web_modern_collections_v2");W.fallbackImageSize={height:void 0,width:9999};W.webModernCollections=!1;return W};
_.A(eg,_.b);_.J=eg.prototype;_.J.computeBlurredImageSize=function(W){return W?{height:W*2,width:W*2}:this.fallbackImageSize};
_.J.computeImageSize=function(W){return W?{height:W,width:W}:this.fallbackImageSize};
_.J.computeObjectFit=function(W){return W?"FILL":"CONTAIN"};
_.J.computePreserve=function(W){return W?!0:!1};
_.J.setBackground=function(){var W,P;_.p("web_modern_collections_v2")&&((W=this.data)==null?0:(P=W.thumbnail)==null?0:P.sampledThumbnailColor)&&(W=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+W.red+","+W.green+","+W.blue+",1)")};
eg.prototype.setBackground=eg.prototype.setBackground;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],eg.prototype,"watchFeedThumbnail",void 0);_.f([_.c(),_.l("design:type",Object)],eg.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],eg.prototype,"size",void 0);
_.f([_.c({computed:"computeBlurredImageSize(size)"}),_.l("design:type",Object)],eg.prototype,"blurredImageSize",void 0);_.f([_.c({computed:"computeImageSize(size)"}),_.l("design:type",Object)],eg.prototype,"imageSize",void 0);_.f([_.c({computed:"computePreserve(size)"}),_.l("design:type",String)],eg.prototype,"preserve",void 0);_.f([_.c({computed:"computeObjectFit(size)"}),_.l("design:type",String)],eg.prototype,"objectFit",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],eg.prototype,"enableWebModernCollectionsV2",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],eg.prototype,"webModernCollections",void 0);_.f([_.OZ("data.thumbnail.sampledThumbnailColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eg.prototype,"setBackground",null);eg=_.f([_.U({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],eg);
_.X(eg,"ytd-playlist-custom-thumbnail-renderer",function(){if(sZp!==void 0)return sZp;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return sZp=W},{mode:1});var v7z;var cw=function(){return _.b.apply(this,arguments)||this};
_.A(cw,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cw.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],cw.prototype,"width",void 0);cw=_.f([_.U({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],cw);
_.X(cw,"ytd-playlist-video-thumbnail-renderer",function(){if(v7z!==void 0)return v7z;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return v7z=W},{mode:1});var mdc;var aV=function(){return _.b.apply(this,arguments)||this};
_.A(aV,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],aV.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],aV.prototype,"width",void 0);aV=_.f([_.U({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],aV);
_.X(aV,"ytd-show-custom-thumbnail-renderer",function(){if(mdc!==void 0)return mdc;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return mdc=W},{mode:1});var VHp;var bR=function(){return _.b.apply(this,arguments)||this};
_.A(bR,_.b);bR.prototype.useFilledIcons=function(W){return W==="MUSIC"||W==="COURSE"};
bR.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=CL(this.overlayColor,"0.8");else if(this.overlayColor){var W=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+W.red+","+W.green+","+W.blue+",0.8)"}};
_.N1.Object.defineProperties(bR.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)}}});
bR.prototype.overlayColorChanged=bR.prototype.overlayColorChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bR.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],bR.prototype,"overlayColor",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.icon","data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],bR.prototype,"overlayStyle",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data.icon","data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],bR.prototype,"overlayTextStyle",null);_.f([_.OZ("overlayColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bR.prototype,"overlayColorChanged",null);bR=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],bR);
_.X(bR,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(VHp!==void 0)return VHp;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return VHp=W},{mode:1});var tHl;var kw=function(){var W=_.b.apply(this,arguments)||this;W.active=!1;return W};
_.A(kw,_.b);kw.prototype.computeIsSpinnerHidden=function(W){return(W==null?void 0:W.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
kw.prototype.computeOverlayIcon=function(W){return(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kw.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],kw.prototype,"active",void 0);kw=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],kw);
_.X(kw,"ytd-thumbnail-overlay-downloading-renderer",function(){if(tHl!==void 0)return tHl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return tHl=W},{mode:1});var p4w;var Uf=function(){return _.b.apply(this,arguments)||this};
_.A(Uf,_.b);_.N1.Object.defineProperties(Uf.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Uf.prototype,"data",void 0);_.f([_.H("data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uf.prototype,"text",null);Uf=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Uf);
_.X(Uf,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(p4w!==void 0)return p4w;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return p4w=W},{mode:1});var jZZ,QZl=function(){if(jZZ!==void 0)return jZZ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return jZZ=W};var XK=function(){return _.b.apply(this,arguments)||this};
_.A(XK,_.b);_.N1.Object.defineProperties(XK,{template:{configurable:!0,enumerable:!0,get:function(){return QZl()}}});
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],XK.prototype,"animateEqualizer",void 0);XK=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],XK);_.R7()(XK,"ytd-thumbnail-overlay-equalizer",function(){return QZl()},{allowedProps:["animateEqualizer"],
mode:1});var CDk;var f7=function(){var W=_.b.apply(this,arguments)||this;W.nowPlayingBadge=_.p("web_now_playing_badge");W.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return W};
_.A(f7,_.b);f7.prototype.activeChanged=function(){var W=this;_.p("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Xm(this,function(){_.Lf(W.hostElement,"yt-playlist-lockup-now-playing-active",W)})};
f7.prototype.onMiniplayerPlayStateChanged=function(W){var P,x=(P=_.Q(_.ug().currentEndpoint,_.U_))==null?void 0:P.videoId;this.isVideoPlaying=W&&(_.p("web_limit_now_playing_animation_killswitch")||this.videoId===x)};
f7.prototype.activeChanged=f7.prototype.activeChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],f7.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],f7.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],f7.prototype,"isVideoPlaying",void 0);_.f([_.c(),_.l("design:type",String)],f7.prototype,"videoId",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],f7.prototype,"equalizerOnly",void 0);_.f([_.c(),_.l("design:type",Boolean)],f7.prototype,"isActive",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],f7.prototype,"nowPlayingBadge",void 0);_.f([_.OZ("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],f7.prototype,"activeChanged",null);
f7=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],f7);
_.X(f7,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(CDk!==void 0)return CDk;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return CDk=W},{mode:1});var ARd;var Nf=function(){return _.b.apply(this,arguments)||this};
_.A(Nf,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Nf.prototype,"data",void 0);Nf=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Nf);
_.X(Nf,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(ARd!==void 0)return ARd;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ARd=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var zcd;var lR=function(){return _.b.apply(this,arguments)||this};
_.A(lR,_.b);lR.prototype.onDurationChanged=function(){var W,P;_.g(this.hostElement).querySelector("#progress").style.width=((P=(W=this.data)==null?void 0:W.percentDurationWatched)!=null?P:0)+"%"};
lR.prototype.onDurationChanged=lR.prototype.onDurationChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],lR.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],lR.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],lR.prototype,"isLive",void 0);_.f([_.OZ("data.percentDurationWatched"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lR.prototype,"onDurationChanged",null);
lR=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],lR);
_.X(lR,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(zcd!==void 0)return zcd;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zcd=W},{mode:1});var G6i;var Tq=function(){var W=_.b.apply(this,arguments)||this;W.bottomPanel=!1;W.richGridOverlay=!1;W.watchFeedOverlay=!1;W.isCompact=!1;return W};
_.A(Tq,_.b);Tq.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.N1.Object.defineProperties(Tq.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:(P=W.icon)==null?void 0:P.iconType)==="PLAY_ALL"&&_.p("kevlar_system_icons")}}});
Tq.prototype.widthChanged=Tq.prototype.widthChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Tq.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],Tq.prototype,"width",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Tq.prototype,"bottomPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Tq.prototype,"richGridOverlay",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Tq.prototype,"watchFeedOverlay",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Tq.prototype,"isCompact",void 0);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Tq.prototype,"isIconFilled",null);_.f([_.OZ("width","watchFeedOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tq.prototype,"widthChanged",null);
Tq=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Tq);
_.X(Tq,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(G6i!==void 0)return G6i;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return G6i=W},{mode:1});var E7W;var g7p=["CLIP","SHORTS"],rq=function(){var W=_.b.apply(this,arguments)||this;W.animated=_.p("animated_live_badge_icon");W.hasIcon=!1;W.updateTimerIntervalId=0;W.timeSinceLive=0;return W};
_.A(rq,_.b);_.J=rq.prototype;_.J.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.J.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.J.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.J.hasIconOrText=function(){var W,P;return!!(((W=this.data)==null?0:W.icon)||((P=this.data)==null?0:P.text))};
_.J.initializeLiveBadgeTimer=function(){var W=this,P,x=(P=this.liveBadgeData)==null?void 0:P.startTimestampSec;if(x&&this.canShowLiveBadgeTimer()){var I;P=Number((I=this.liveBadgeData)==null?void 0:I.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(x);this.updateTimerIntervalId=_.JY(function(){W.canShowLiveBadgeTimer()?W.timeSinceLive++:(W.timeSinceLive=0,window.clearInterval(W.updateTimerIntervalId))},P)}else this.timeSinceLive=0};
_.J.canShowLiveBadgeTimer=function(){var W=Date.now(),P,x;return W<(Number((P=this.liveBadgeData)==null?void 0:P.endTimestampSec)-1)*1E3&&W>Number((x=this.liveBadgeData)==null?void 0:x.startTimestampSec)*1E3};
_.N1.Object.defineProperties(rq.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data;var P=this.timeSinceLive;var x,I,O,B;a:{var Y=W.style;if(Y===void 0)Y=16;else switch(Y){case "LIVE":Y=17;break a;default:Y=16}}P={type:Y,text:P?rcW({seconds:P}):_.kz(W.text),accessibilityText:(x=W.text)==null?void 0:(I=x.accessibility)==null?void 0:(O=I.accessibilityData)==null?void 0:O.label,icon:(B=W.icon)==null?void 0:B.iconType}}else P={};return P}},
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 W;return(W=this.data)==null?void 0:W.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 g7p.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
rq.prototype.initializeLiveBadgeTimer=rq.prototype.initializeLiveBadgeTimer;rq.prototype.dataChanged=rq.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],rq.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rq.prototype,"data",void 0);_.f([_.c({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],rq.prototype,"icon",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],rq.prototype,"animated",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.l("design:type",Boolean)],rq.prototype,"hideTimeStatus",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],rq.prototype,"hasIcon",void 0);_.f([_.c(),_.l("design:type",Object)],rq.prototype,"timeSinceLive",void 0);_.f([_.H("data","timeSinceLive"),_.l("design:type",Object),_.l("design:paramtypes",[])],rq.prototype,"badgeShapeData",null);
_.f([_.H("data","overlayType"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rq.prototype,"hideBadgeShape",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rq.prototype,"dataChanged",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],rq.prototype,"overlayStyle",null);
_.f([_.H("data.liveBadgeData"),_.l("design:type",Object),_.l("design:paramtypes",[])],rq.prototype,"liveBadgeData",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.type"),_.l("design:type",Object),_.l("design:paramtypes",[])],rq.prototype,"overlayType",null);_.f([_.H("overlayType","overlayStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rq.prototype,"useFilledIcon",null);
_.f([_.K_("liveBadgeData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rq.prototype,"initializeLiveBadgeTimer",null);rq=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],rq);
_.X(rq,"ytd-thumbnail-overlay-time-status-renderer",function(){if(E7W!==void 0)return E7W;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return E7W=W},{mode:_.F4("kevlar_poly_si_batch_j035")?1:2});var DdP;var iR=function(){return _.b.apply(this,arguments)||this};
_.A(iR,_.b);iR.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"}}}}};
iR.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(W){if(this.hasPlaybackProgressBar)return{percentDurationWatched:W.percentDurationWatched}};
iR.prototype.computeHasPlaybackProgressBar=function(W){return!!W.percentDurationWatched&&W.percentDurationWatched>0};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],iR.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.l("design:type",Boolean)],iR.prototype,"hasPlaybackProgressBar",void 0);
iR=_.f([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],iR);
_.X(iR,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(DdP!==void 0)return DdP;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return DdP=W},{mode:1});var MHm;_.ql(dhd);var $di=_.kl(function(W){var P=W.data;var x=W.children;var I=function(){return!!P().doubleStack};
return _.u("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!P().experimentEnabled}},_.u(_.V,{cond:P,
then:function(){return _.u("div",null,_.u(_.V,{cond:I,then:function(){var O={};return _.u("div",{class:_.O4("collections-stack-wiz__collection-stack2",function(){return P().customClassName2ndStack},(O["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return P().enableResponsiveMode},O)),
style:_.oP({"background-color":function(){return SKo(P())}})})}}),_.u("div",{class:_.O4("collections-stack-wiz__collection-stack1",function(){return P().customClassName1stStack},function(){return u1S(P().thumbnailSize?P().thumbnailSize:"medium")}),
style:_.oP({"background-color":function(){return SKo(P())}})}),x)}}))},"L");_.lq($di,"yt-collections-stack",{props:{data:_.cv}});var RV=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};W.webModernCollections=!1;W.isSearch=!1;W.isDoubleStack=!1;W.thumbnailSize="medium";W.enableWebModernCollectionsV2=_.p("web_modern_collections_v2");return W};
_.A(RV,_.b);_.J=RV.prototype;
_.J.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]]"}}}}}};
_.J.getThumbnailDetails=function(W){if(W!=null&&W.thumbnailRenderer){var P=W.thumbnailRenderer,x;if((x=P.playlistVideoThumbnailRenderer)==null?0:x.thumbnail)return P.playlistVideoThumbnailRenderer.thumbnail;var I;if((I=P.playlistCustomThumbnailRenderer)==null?0:I.thumbnail)return P.playlistCustomThumbnailRenderer.thumbnail;W=W.thumbnailRenderer;var O;if((O=W.showCustomThumbnailRenderer)==null?0:O.thumbnail)return W.showCustomThumbnailRenderer.thumbnail}};
_.J.computeOverlayColor=function(W){var P,x;if((P=this.getThumbnailDetails(W))==null?0:(x=P.darkColorPalette)==null?0:x.section2Color)return this.getThumbnailDetails(W).darkColorPalette.section2Color;var I;return(I=this.getThumbnailDetails(W))==null?void 0:I.sampledThumbnailColor};
_.J.computeWebModernCollections=function(W){if(W==null||!W.thumbnailOverlays)return!1;W=_.n(W.thumbnailOverlays);for(var P=W.next();!P.done;P=W.next()){var x=void 0;if((x=P.value)==null?0:x.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.J.computeNavigationEndpoint=function(W){return qjt(W==null?void 0:W.navigationEndpoint)};
_.N1.Object.defineProperties(RV.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:W==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:W==null?void 0:W.vibrantColorPalette,darkColorPalette:W==null?void 0:W.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],RV.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(emP),_.l("design:type",Object)],RV.prototype,"ytdThumbnailBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],RV.prototype,"componentBehavior",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],RV.prototype,"watchFeedThumbnail",void 0);_.f([_.c(),_.l("design:type",Number)],RV.prototype,"customThumbnailSize",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],RV.prototype,"hideAria",void 0);_.f([_.c(),_.l("design:type",Object)],RV.prototype,"data",void 0);_.f([_.c({computed:"computeOverlayColor(data)"}),_.l("design:type",Object)],RV.prototype,"overlayColor",void 0);
_.f([_.c({computed:"computeWebModernCollections(data)"}),_.l("design:type",Object)],RV.prototype,"webModernCollections",void 0);_.f([_.c({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],RV.prototype,"computedNavigationEndpoint",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RV.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RV.prototype,"isDoubleStack",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],RV.prototype,"thumbnailSize",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],RV.prototype,"enableWebModernCollectionsV2",void 0);_.f([_.H("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],RV.prototype,"collectionStack",null);RV=_.f([_.U({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],RV);
_.X(RV,"ytd-playlist-thumbnail",function(){if(MHm!==void 0)return MHm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return MHm=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var w4k;var FK=function(){var W=_.b.apply(this,arguments)||this;W.noEndpoints=!1;W.amsterdamPostMvp=_.p("web_amsterdam_post_mvp_playlists");W.badges=[];W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.A(FK,_.b);_.J=FK.prototype;_.J.getMetadata=function(W){if(!W)return[];var P=[],x=W.shortViewCountText||W.viewCountText;x&&P.push(_.kz(x));W.publishedTimeText&&P.push(_.kz(W.publishedTimeText));W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&P.push(_.aS(_.kz(W.upcomingEventData.upcomingEventText),Number(W.upcomingEventData.startTime)));return P};
_.J.observeDataForBylineSeparator=function(){this.data&&_.iS(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.J.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.j9(this.metadataColor)};
_.J.getSimpleString=function(W){return _.kz(W)};
_.J.isBylineHidden=function(W){return this.noByline||!((W==null?0:W.longBylineText)||(W==null?0:W.shortBylineText))};
_.J.isMetadataHidden=function(W){var P;return((P=this.getMetadata(W))==null?void 0:P.length)===0};
_.J.isBylineMetadataSeparatorHidden=function(W){return this.isMetadataHidden(W)||!this.shouldShowVideoInfo};
_.J.isLongByline=function(W,P){return P&&!(W==null||!W.longBylineText)};
_.N1.Object.defineProperties(FK.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var W;return this.amsterdamPostMvp&&!((W=this.data)==null||!W.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.p("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
FK.prototype.metadataColorChanged=FK.prototype.metadataColorChanged;FK.prototype.observeDataForBylineSeparator=FK.prototype.observeDataForBylineSeparator;_.f([_.h(_.Gp),_.l("design:type",Object)],FK.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],FK.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],FK.prototype,"noEndpoints",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FK.prototype,"isSlimShort",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FK.prototype,"radioMeta",void 0);_.f([_.c({selector:_.br}),_.l("design:type",Object)],FK.prototype,"isGridViewEnabled",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FK.prototype,"richMeta",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FK.prototype,"amsterdamPostMvp",void 0);_.f([_.c(),_.l("design:type",Boolean)],FK.prototype,"noByline",void 0);
_.f([_.c({computed:"isLongByline(data, radioMeta)"}),_.l("design:type",Boolean)],FK.prototype,"longByline",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FK.prototype,"truncateMetadataLine",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FK.prototype,"miniMode",void 0);_.f([_.c(),_.l("design:type",Number)],FK.prototype,"metadataColor",void 0);_.f([_.c(),_.l("design:type",Array)],FK.prototype,"badges",void 0);
_.f([_.c({selector:_.GK,selectorArgs:["data.videoId"]}),_.l("design:type",String)],FK.prototype,"transferState",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FK.prototype,"isDownloading",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FK.prototype,"typographyBump",void 0);_.f([_.BM("#metadata-line"),_.l("design:type",HTMLElement)],FK.prototype,"metadataLine",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FK.prototype,"observeDataForBylineSeparator",null);_.f([_.OZ("metadataColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FK.prototype,"metadataColorChanged",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],FK.prototype,"shouldShowVideoInfo",null);
_.f([_.H("badges"),_.l("design:type",String),_.l("design:paramtypes",[])],FK.prototype,"inlineBadgeClass",null);_.f([_.H("longByline"),_.l("design:type",String),_.l("design:paramtypes",[])],FK.prototype,"longBylineClass",null);_.f([_.H("data","longByline"),_.l("design:type",Object),_.l("design:paramtypes",[])],FK.prototype,"bylineText",null);_.f([_.H("isGridViewEnabled","data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FK.prototype,"watchFeedBigThumbs",null);
FK=_.f([_.U({is:"ytd-video-meta-block",disableElementRegistration:!0})],FK);
_.X(FK,"ytd-video-meta-block",function(){if(w4k!==void 0)return w4k;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return w4k=W},{mode:_.F4("kevlar_poly_si_batch_j080")?1:2});_.Ad("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var qf=function(){var W=_.b.apply(this,arguments)||this;W.displayItemCount=2;W.isBackstagePlaylist=!1;W.isPostCompactPlaylist=!1;W.shouldShowChannelThumbnail=!1;W.useModernCollectionsV2=_.p("web_modern_collections_v2");return W};
_.A(qf,_.b);_.J=qf.prototype;_.J.computeFirstVideos=function(W,P){return W===void 0||P===void 0?[]:W.slice(0,P)};
_.J.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var W=this.data.thumbnailRenderer;W.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",W.playlistVideoThumbnailRenderer.thumbnail);W.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",W.playlistCustomThumbnailRenderer.thumbnail)}};
_.J.computeThumbnailHeight=function(W,P,x,I,O){return I?O==="BIG"?280:O==="MASSIVE"?337:234:x?240:P?72:W?118:138};
_.J.computeThumbnailWidth=function(W,P,x,I,O){return I?O==="MEDIUM"?450:O==="BIG"?500:O==="MASSIVE"?600:420:x?360:P?128:W?210:246};
_.J.computeUseBiggerThumbs=function(W){return W&&_.p("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelThumbnail=function(W,P){return W&&!(P==null||!P.channelThumbnail)};
_.N1.Object.defineProperties(qf.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
qf.prototype.dataChanged=qf.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],qf.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],qf.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qf.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],qf.prototype,"displayItemCount",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qf.prototype,"isBackstagePlaylist",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qf.prototype,"isPostCompactPlaylist",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],qf.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.l("design:type",Boolean)],qf.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],qf.prototype,"biggerThumbsStyle",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],qf.prototype,"isDownloads",void 0);_.f([_.c({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.l("design:type",Object)],qf.prototype,"shouldShowChannelThumbnail",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qf.prototype,"useModernCollectionsV2",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qf.prototype,"dataChanged",null);_.f([_.H("isSearch"),_.l("design:type",String),_.l("design:paramtypes",[])],qf.prototype,"stackThumbnailSize",null);qf=_.f([_.U({is:"ytd-playlist-renderer",disableElementRegistration:!0})],qf);
_.X(qf,"ytd-playlist-renderer",function(){if(ddP===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);ddP=W}W=ddP;return W},{mode:1});var hcA;var HQc;var L7=function(){var W=_.b.apply(this,arguments)||this;W.collections=!!_.p("web_modern_collections_v2");W.startX=0;return W};
_.A(L7,_.b);L7.prototype.onEndpointMouseDown=function(W){this.startX=W.clientX};
L7.prototype.onEndpointClick=function(W){this.startX!==W.clientX&&(W.preventDefault(),W.stopPropagation())};
L7.prototype.computeObjectFit=function(W){return W==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
L7.prototype.computeCardStyle=function(W){return W?W.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.N1.Object.defineProperties(L7.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var W,P;return this.collections&&((W=this.data)==null?void 0:(P=W.searchRefinementCardRendererStyle)==null?void 0:P.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],L7.prototype,"data",void 0);_.f([_.c({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.l("design:type",Number)],L7.prototype,"objectFit",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.l("design:type",String)],L7.prototype,"cardStyle",void 0);
_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],L7.prototype,"roundContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],L7.prototype,"collections",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],L7.prototype,"isAlbumCard",null);_.f([_.H("data","collections","isAlbumCard"),_.l("design:type",Object),_.l("design:paramtypes",[])],L7.prototype,"collectionStack",null);
L7=_.f([_.U({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],L7);
_.X(L7,"ytd-search-refinement-card-renderer",function(){if(HQc!==void 0)return HQc;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return HQc=W},{mode:1});var ecZ;var Wg=function(){var W=_.b.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.A(Wg,_.b);_.f([_.c(),_.l("design:type",Object)],Wg.prototype,"data",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Wg.prototype,"componentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Wg.prototype,"ytdReduxBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Wg.prototype,"isRichGrid",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],Wg.prototype,"miniMode",void 0);
Wg=_.f([_.U({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Wg);
_.X(Wg,"ytd-game-details-renderer",function(){if(ecZ!==void 0)return ecZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ecZ=W},{mode:1});var cRA;var aDz;var Pg=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return W};
_.A(Pg,_.b);_.J=Pg.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(W){var P=W||this.data;return P&&P.states&&P.currentStateId!=null?P.states.find(function(x){return x.stateId===P.currentStateId})||null:null};
_.J.currentStateRendererData=function(W){return(W=this.currentStateData(W))&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.J.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())};
_.J.computeButtonIcon=function(W){W=this.currentStateRendererData(W);var P;return(W==null?0:(P=W.icon)==null?0:P.iconType)?W.icon.iconType.toLowerCase():null};
_.J.computeAccessibility=function(W){return(W=this.currentStateRendererData(W))&&W.accessibilityData?W.accessibilityData.accessibilityData||null:null};
_.J.computeButtonClass=function(W){var P=this.currentStateRendererData(W);if(!P)return"";W="";var x=P.style;x&&(W+=x.toLowerCase().replace(/_/g,"-")+" ");(P=P.size)&&(W+=P.toLowerCase().replace(/_/g,"-")+" ");return W.trim()};
_.J.computeServiceEndpoint=function(W){if(!W)return null;var P=W&&W.serviceEndpoint,x=this.get("command.commandMetadata.webCommandMetadata.sendPost",W);return P?P:x&&W.command?W.command:null};
_.J.computeBellMenuItemParams=function(W){var P;W=(P=_.Q(W==null?void 0:W.command,_.B7))==null?void 0:P.commands;if(!W||W.length===0)return null;P=_.Q(W[0],_.Ac);var x,I;return(P==null?0:(x=P.popup)==null?0:(I=x.menuPopupRenderer)==null?0:I.items)?P.popup.menuPopupRenderer.items.map(function(O){return O.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(W){var P=W.trackingParams,x=this.computeBellMenuItemParams(this.data);this.data&&P&&x&&x.includes(P)&&this.ytRenderButtonBehavior._setButtonIcon(W.icon.iconType.toLowerCase())};
_.J.onYtServiceRequestCompleted=function(W,P){(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",P))&&this.set("data",W)};
_.J.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.J.resetState=function(){this.set("data.currentStateId",3)};
_.J.onYtButtonTapHandler=function(){if(this.data){var W=this.currentStateRendererData(this.data);W&&this.ytRendererBehavior.logExplicitClick(W)}};
Pg.prototype.onYtServiceRequestError=Pg.prototype.onYtServiceRequestError;Pg.prototype.onYtServiceRequestCompleted=Pg.prototype.onYtServiceRequestCompleted;Pg.prototype.stateChanged=Pg.prototype.stateChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Pg.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(nk.YtRenderButtonBehavior),_.l("design:type",Object)],Pg.prototype,"ytRenderButtonBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Pg.prototype,"data",void 0);_.f([_.K_("data","data.currentStateId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pg.prototype,"stateChanged",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],Pg.prototype,"onYtServiceRequestCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Pg.prototype,"onYtServiceRequestError",null);Pg=_.f([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Pg);
_.X(Pg,"ytd-subscription-notification-toggle-button-renderer",function(){if(aDz!==void 0)return aDz;var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return aDz=W},{mode:1});var bQb;var xt=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};W.tapHandler=function(){if(W.data){var P=W.currentStateRendererData();P&&W.ytRendererBehavior.logExplicitClick(P)}};
return W};
_.A(xt,_.b);_.J=xt.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(){var W=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(P){return P.stateId===W.data.currentStateId})||null:null};
_.J.currentStateRendererData=function(){var W=this.currentStateData();return W&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.J.computeAccessibilityLabel=function(){var W,P,x;return(W=this.currentStateRendererData())==null?void 0:(P=W.accessibilityData)==null?void 0:(x=P.accessibilityData)==null?void 0:x.label};
_.J.computeBellMenuItemParams=function(){var W,P,x=(P=_.Q((W=this.data)==null?void 0:W.command,_.B7))==null?void 0:P.commands;if(!x||x.length===0)return null;W=_.Q(x[0],_.Ac);var I,O;return(W==null?0:(I=W.popup)==null?0:(O=I.menuPopupRenderer)==null?0:O.items)?W.popup.menuPopupRenderer.items.map(function(B){return B.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(W){var P=W.trackingParams,x=this.computeBellMenuItemParams();if(this.data&&P&&x&&x.includes(P)&&(W==null||!W.isDisabled)){var I;((I=_.Q(W.serviceEndpoint,_.Y6))==null?void 0:I.signal)!=="CLIENT_SIGNAL"&&(this.icon=W.icon.iconType)}};
_.J.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.J.onYtServiceRequestCompleted=function(W,P){if(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",P))this.icon=void 0,this.set("data",W)};
_.J.onYtServiceRequestError=function(){this.icon=void 0};
_.N1.Object.defineProperties(xt.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data,P=this.textLabel,x=this.hostElement,I=this.computeAccessibilityLabel(),O=this.tapHandler,B=this.isOverlay?"overlay":"mono",Y=(W==null?0:W.disableButton)?"disabled":"active";P=P?_.pt(P):void 0;return{style:B,type:"tonal",state:Y,size:"M",focused:!1,formattedButtonText:P,iconPosition:"leading-trailing",onTap:mhU(W,O,x),accessibilityLabel:I}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.currentStateRendererData(),P,x,I=(x=this.icon)!=null?x:W==null?void 0:(P=W.icon)==null?void 0:P.iconType;if(I)return _.PW(I)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.data)==null?void 0:(P=W.secondaryIcon)==null?void 0:P.iconType;if(x)return _.PW(x)}}});
xt.prototype.onYtServiceRequestError=xt.prototype.onYtServiceRequestError;xt.prototype.onYtServiceRequestCompleted=xt.prototype.onYtServiceRequestCompleted;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],xt.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],xt.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],xt.prototype,"textLabel",void 0);
_.f([_.c(),_.l("design:type",String)],xt.prototype,"icon",void 0);_.f([_.c(),_.l("design:type",Boolean)],xt.prototype,"isOverlay",void 0);_.f([_.H("data.*","textLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],xt.prototype,"computedButtonShape",null);_.f([_.H("data.*","icon"),_.l("design:type",Object),_.l("design:paramtypes",[])],xt.prototype,"computedIcon",null);_.f([_.H("data.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],xt.prototype,"computedSecondaryIcon",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],xt.prototype,"onYtServiceRequestCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xt.prototype,"onYtServiceRequestError",null);xt=_.f([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],xt);
_.X(xt,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(bQb!==void 0)return bQb;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return bQb=W},{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var k6c;_.p("web_enable_sink_animated_actions")?_.lq(HFm,"yt-animated-action",{props:{backgroundLottieRef:_.cv,foregroundLottieRef:_.cv,wrapperClass:_.cv,disableAnimation:_.cv},unsafeExternallySettableAttributes:new Set(["key"])}):_.WF(LMU,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var I8=function(){var W=_.b.apply(this,arguments)||this;W.animatedActionEnabled=_.p("web_animated_actions");W.foregroundLottieRef={};W.backgroundLottieRef={};W.forceIconOnly=!1;W.showTextWhileAnimating=!1;W.keyboardFocused=!1;W.isAnimating=!1;W.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return W};
_.A(I8,_.b);_.J=I8.prototype;_.J.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.J.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]]"}}}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onYtServiceRequestSent=function(W,P){(this.get("endpoint.subscribeEndpoint",P)||this.get("endpoint.unsubscribeEndpoint",P))&&this.updateSubscriptionState(!this.subscribed)};
_.J.onYtServiceRequestCompleted=function(W,P){(W=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",P.data))&&this.bellButton&&(this.bellButton.data=W)};
_.J.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.qa(this.hostElement)};
_.J.onPlayerSubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.J.onPlayerUnsubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||this.updateSubscriptionState(!1)};
_.J.handleUpdateSubscribeButtonAction=function(W){W=_.Q(W,FMU);var P;W&&W.channelId===((P=this.data)==null?void 0:P.channelId)&&this.updateSubscriptionState(!!W.subscribed)};
_.J.computeButtonStyle=function(W){return this.get("style.styleType",W)||null};
_.J.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.J.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.J.updateSubscriptionState=function(W){if(W!==this.subscribed){this.set("data.subscribed",W);var P,x=(P=this.data)==null?void 0:P.subscribedEntityKey;x&&this.ytdReduxBehavior.dispatch(_.mG("subscriptionStateEntity",x,{key:x,subscribed:W}));this.isCompactRed()||_.Lf(this.hostElement,"yt-subscription-changed",W);W||(_.W7(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!W),W&&this.hasBellButton&&this.startAnimation())}};
_.J.startAnimation=function(){var W=this;if(!this.isAnimating){var P=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var x;(x=this.backgroundLottieRef.lottieEl)==null||x.goToAndPlay(0);var I;(I=this.foregroundLottieRef.lottieEl)==null||I.goToAndPlay(0);_.Gr.addJob(function(){W.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Gr.addJob(function(){W.updateContainerToFitContent(!!W.subscribed,!0)},2,1500);
_.Gr.addJob(function(){W.isAnimating=!1},2,P)}};
_.J.maybeAnimateBellIcon=function(){var W=_.rT(this.hostElement).querySelector("yt-animated-icon");if(W){var P;(P=W.animationRef.lottieEl)==null||P.goToAndPlay(0)}};
_.J.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.J.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.J.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var W;this.unsubscribedWidth=(W=this.subscribeButtonShape)==null?void 0:W.getBoundingClientRect().width}var P;this.subscribedWidth=(P=this.bellButton)==null?void 0:P.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.J.updateContainerToFitContent=function(W,P){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(W?(W=this.subscribedWidth,P=this.isAnimating&&!P,this.subscribedIconOnlyWidth===void 0||P||(W=this.subscribedIconOnlyWidth),this.hostElement.style.width=W+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.J.clearContainerSize=function(){this.hostElement.style.width=""};
_.J.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.J.maybeSetSubscribedButtonIconOnlyWidth=function(){var W=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 P;W.subscribedIconOnlyWidth=(P=W.bellButton)==null?void 0:P.getBoundingClientRect().width;requestAnimationFrame(function(){if(W.bellButton){var x;W.bellButton.textLabel=
(x=W.data)==null?void 0:x.subscribedButtonText}})})))};
_.N1.Object.defineProperties(I8.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 W;return(W=this.data)==null?void 0:W.subscribedButtonText}var P;return this.forceIconOnly?void 0:(P=this.data)==null?void 0:P.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,P,x=((W=this.data)==null?void 0:(P=W.timedAnimationData)==null?void 0:P.animationTiming)||[];return{uniqueId:"subscribe",timings:x,enabled:x.length>0&&!this.subscribed,experimentEnabled:x.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!this.subscribed&&((W=this.data)==null?void 0:W.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 W={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var P=W.renderer;var x=W.element;var I=W.subscribed;var O=W.commandController;var B=W.isOverlay;W=W.config;var Y=j2d(P,I);B&&(Y.style="overlay");B=Object;var K=B.assign,Z;a:switch((Z=P.style)==null?void 0:Z.styleType){case "COMPACT_GRAY":case "COMPACT_RED":Z={size:"S"};break a;default:Z={size:"M"}}var d=pNm(P,I);var v=
(v=I?P.subscribedButtonText:P.unsubscribedButtonText)?_.pt(v):void 0;return K.call(B,{},Y,Z,{focused:!1,toggled:I,accessibilityLabel:d,formattedButtonText:v,onTap:t7R(P,W,I,x,O)})}}}});
I8.prototype.onMouseDown=I8.prototype.onMouseDown;I8.prototype.onDataChanged=I8.prototype.onDataChanged;I8.prototype.observedSubscribed=I8.prototype.observedSubscribed;I8.prototype.onYtServiceRequestCompleted=I8.prototype.onYtServiceRequestCompleted;I8.prototype.onYtServiceRequestSent=I8.prototype.onYtServiceRequestSent;I8.prototype.maybeUpdateBellButtonText=I8.prototype.maybeUpdateBellButtonText;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],I8.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],I8.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],I8.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],I8.prototype,"data",void 0);
_.f([_.c({selectorArgs:["data.subscribedEntityKey"],selector:Jp}),_.l("design:type",Object)],I8.prototype,"subscriptionStateEntity",void 0);_.f([_.c({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.l("design:type",Boolean)],I8.prototype,"subscribed",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],I8.prototype,"branded",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],I8.prototype,"animatedActionEnabled",void 0);
_.f([_.c(),_.l("design:type",Object)],I8.prototype,"foregroundLottieRef",void 0);_.f([_.c(),_.l("design:type",Object)],I8.prototype,"backgroundLottieRef",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],I8.prototype,"overlayButton",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.l("design:type",Object)],I8.prototype,"buttonStyle",void 0);_.f([_.c(),_.l("design:type",Object)],I8.prototype,"forceIconOnly",void 0);
_.f([_.c(),_.l("design:type",Object)],I8.prototype,"showTextWhileAnimating",void 0);_.f([_.c({value:function(){return!!_.FY().resolve(_.Rl(_.jK))&&_.p("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.l("design:type",Boolean)],I8.prototype,"useKeyboardFocused",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],I8.prototype,"keyboardFocused",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],I8.prototype,"isAnimating",void 0);_.f([_.H("data.notificationPreferenceButton.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],I8.prototype,"hasBellButton",null);
_.f([_.OZ("subscribedButtonText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],I8.prototype,"maybeUpdateBellButtonText",null);_.f([_.H("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],I8.prototype,"subscribedButtonText",null);_.f([_.H("data.timedAnimationData.animationTiming","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],I8.prototype,"smartimationSettings",null);
_.f([_.c({reflectToAttribute:!0}),_.H("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],I8.prototype,"subscribeButtonHidden",null);_.f([_.c({reflectToAttribute:!0}),_.H("subscribed","hasBellButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],I8.prototype,"subscribeButtonInvisible",null);
_.f([_.c({reflectToAttribute:!0}),_.H("subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],I8.prototype,"unsubscribeButtonHidden",null);_.f([_.BM("ytd-subscription-notification-toggle-button-renderer-next"),_.l("design:type",Object)],I8.prototype,"bellButton",void 0);_.f([_.BM("#subscribe-button-shape"),_.l("design:type",HTMLElement)],I8.prototype,"subscribeButtonShape",void 0);
_.f([_.H("overlayButton","subscribed","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],I8.prototype,"buttonShape",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],I8.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],I8.prototype,"onYtServiceRequestCompleted",null);
_.f([_.OZ("subscribed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],I8.prototype,"observedSubscribed",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],I8.prototype,"onDataChanged",null);_.f([_.I7("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],I8.prototype,"onMouseDown",null);
I8=_.f([_.U({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],I8);
_.X(I8,"ytd-subscribe-button-renderer",function(){if(k6c!==void 0)return k6c;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return k6c=W},{mode:1});var O$=function(){var W=_.b.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.A(O$,_.b);O$.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],O$.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],O$.prototype,"isRichGrid",void 0);O$=_.f([_.U({is:"ytd-game-card-renderer",disableElementRegistration:!0})],O$);
_.X(O$,"ytd-game-card-renderer",function(){if(cRA!==void 0)return cRA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return cRA=W},{mode:1});var JT={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.p("defer_menus")&&!EJd?0:void 0,waitForSignal:"eocs"};var UdW;var X4m;var Bg=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return W};
_.A(Bg,_.b);_.J=Bg.prototype;_.J.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.J.onSeriesReminderStateEntityChange=function(){var W,P,x;((W=this.eventReminderStateEntity)==null?0:W.key)&&((P=this.seriesReminderStateEntity)==null?void 0:P.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((x=this.eventReminderStateEntity)==null?void 0:x.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.mG("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.J.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.J.onYtServiceRequestError=function(){var W;this.updateReminderStateEntitiesFromButtonState((W=this.data)==null?void 0:W.currentState)};
_.J.handleUpdateUpcomingEventReminderButtonStateCommand=function(W){if(W=_.Q(W,kNZ)){var P,x=(P=this.data)==null?void 0:P.targetId;x&&W.targetId===x&&_.gY(this.updateReminderStateEntitiesFromButtonState.bind(this,W.state))}};
_.J.getButtonStateFromReminderState=function(){var W;if(((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var P;if(((P=this.eventReminderStateEntity)==null?void 0:P.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var x,I;if(((x=this.seriesReminderStateEntity)==null?void 0:x.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((I=this.eventReminderStateEntity)==
null?void 0:I.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var O;return(O=this.data)==null?void 0:O.currentState};
_.J.updateReminderStateEntitiesFromButtonState=function(W){if(W){switch(W){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":W="UPCOMING_EVENT_REMINDER_STATE_NONE";var P="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":W="UPCOMING_EVENT_REMINDER_STATE_SINGLE";P="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":W="UPCOMING_EVENT_REMINDER_STATE_NONE";P="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var x;
((x=this.eventReminderStateEntity)==null?0:x.key)&&this.ytdReduxBehavior.dispatch(_.mG("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:W})));var I;((I=this.seriesReminderStateEntity)==null?0:I.key)&&this.ytdReduxBehavior.dispatch(_.mG("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:P})))}};
_.N1.Object.defineProperties(Bg.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.getButtonStateFromReminderState(),P,x;if(W&&((P=this.data)==null?0:(x=P.states)==null?0:x.length))for(P=_.n(this.data.states),x=P.next();!x.done;x=P.next()){x=x.value;var I=void 0;if(((I=_.Q(x,U3M))==null?void 0:I.state)===W)return _.Q(x,U3M)}}}});
Bg.prototype.onYtServiceRequestError=Bg.prototype.onYtServiceRequestError;Bg.prototype.onYtServiceRequestCompleted=Bg.prototype.onYtServiceRequestCompleted;Bg.prototype.onSeriesReminderStateEntityChange=Bg.prototype.onSeriesReminderStateEntityChange;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Bg.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Bg.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Bg.prototype,"data",void 0);_.f([_.c({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:EGo}),_.l("design:type",Object)],Bg.prototype,"eventReminderStateEntity",void 0);
_.f([_.c({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(W,P){return _.Jb(W.entities,"sportsSeriesReminderStateEntity",P)}}),
_.l("design:type",Object)],Bg.prototype,"seriesReminderStateEntity",void 0);_.f([_.H("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bg.prototype,"currentButtonStateRenderer",null);_.f([_.OZ("seriesReminderStateEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bg.prototype,"onSeriesReminderStateEntityChange",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bg.prototype,"onYtServiceRequestCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bg.prototype,"onYtServiceRequestError",null);Bg=_.f([_.U({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Bg);
_.X(Bg,"ytd-upcoming-event-reminder-button-renderer",function(){if(X4m!==void 0)return X4m;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return X4m=W},{mode:1});var fDc;var nr=function(){return _.b.apply(this,arguments)||this};
_.A(nr,_.b);nr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.N1.Object.defineProperties(nr.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(_.p("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nr.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],nr.prototype,"shelfDismissal",void 0);_.f([_.H("data.responseText"),_.l("design:type",Object),_.l("design:paramtypes",[])],nr.prototype,"text",null);
_.f([_.H("data.responseText"),_.l("design:type",Object),_.l("design:paramtypes",[])],nr.prototype,"textAriaLabel",null);nr=_.f([_.U({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],nr);
_.X(nr,"ytd-notification-multi-action-renderer",function(){if(fDc!==void 0)return fDc;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return fDc=W},{mode:1});var NmM;var Yt=function(){return _.b.apply(this,arguments)||this};
_.A(Yt,_.b);Yt.prototype.ready=function(){var W=this;_.g(this.hostElement).querySelector("#undo").addEventListener("tap",function(){W.onUndoTap()})};
Yt.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Yt.prototype,"data",void 0);Yt=_.f([_.U({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Yt);
_.X(Yt,"ytd-notification-text-renderer",function(){if(NmM!==void 0)return NmM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return NmM=W},{mode:1});var lDp;var yA=function(){var W=_.b.apply(this,arguments)||this;W.mouseOverDelayJobId=0;W.fadeInImageDelayJobId=0;W.startTimeMs=-1;W.loadingStartTimeMs=-1;W.loadingEndTimeMs=-1;W.hasVideoPreview=!1;return W};
_.A(yA,_.b);_.J=yA.prototype;_.J.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.J.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.showThumbnail=function(){var W=this;this.csn=_.E_();_.An("fmth");_.Gr.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Fo(_.Gr,function(){W.loadingStartTimeMs=(0,_.iA)();var P=_.g(W.hostElement).querySelector("#thumbnail");P.complete?W.displayMouseOverImage():P.addEventListener("load",_.WM(W,W.displayMouseOverImage))},150):_.iS(_.g(this.hostElement).querySelector("#play"),"show",!0)};
_.J.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.J.onTap=function(){this.removeVideoPreview()};
_.J.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var W=this.videoId,P=this.csn,x=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,I=this.startTimeMs,O=this.hasVideoPreview,B=_.ox(this.trackingParams),Y={isMovingThumbnail:O};O&&I>0&&(x>0&&(Y.movingThumbnailLoadingDurationMs=Math.round(x)),Y.durationHoveredMs=Math.round((0,_.iA)()-I));W&&(Y.videoId=W);_.k6(P,B,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Y});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.J.removeVideoPreview=function(){_.Gr.cancelJob(this.mouseOverDelayJobId);_.Gr.cancelJob(this.fadeInImageDelayJobId);var W=_.g(this.hostElement).querySelector("#thumbnail");_.iS(W,"fade-in",!1);W.removeEventListener("load",_.WM(this,this.displayMouseOverImage));W=_.g(this.hostElement).querySelector("#play");_.iS(W,"fade-in",!1);_.iS(W,"show",!1)};
_.J.displayMouseOverImage=function(){var W=_.g(this.hostElement).querySelector("#thumbnail"),P=_.g(this.hostElement).querySelector("#play");this.isImageAvailable(W)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.iA)(),this.startTimeMs=(0,_.iA)(),this.fadeInImageDelayJobId=_.Fo(_.Gr,function(){_.iS(W,"fade-in",!0)},50)):_.iS(P,"fade-in",!0)};
_.J.computeThumbnail=function(W,P){var x;W&&W.movingThumbnailDetails&&W.movingThumbnailDetails.thumbnails&&P?x=_.Tm(W.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):x=P?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(x)return _.my(x)};
_.J.isImageAvailable=function(W){return!(!W.src||W.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||W.naturalWidth===120)};
yA.prototype.onTap=yA.prototype.onTap;yA.prototype.dataChanged=yA.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],yA.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yA.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],yA.prototype,"csn",void 0);_.f([_.c(),_.l("design:type",Object)],yA.prototype,"trackingParams",void 0);
_.f([_.c(),_.l("design:type",String)],yA.prototype,"videoId",void 0);_.f([_.c(),_.l("design:type",Boolean)],yA.prototype,"isAttachedAndDataSet",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yA.prototype,"dataChanged",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yA.prototype,"onTap",null);yA=_.f([_.U({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],yA);
_.X(yA,"ytd-moving-thumbnail-renderer",function(){if(lDp!==void 0)return lDp;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return lDp=W},{mode:1});var Tmk;_.dh=function(W){this.hostElement=W;this.eventSink=null;this.eventList=[]};
_.dh.prototype.shouldForward=function(){var W,P;return(P=(W=this.eventSink)==null?void 0:W.isConnected)!=null?P:document.body.contains(this.eventSink)};
_.dh.prototype.start=function(W,P){this.eventSink&&this.stop();for(var x=0;x<W.length;x++)this.hostElement.addEventListener(W[x],_.WM(this,this.forwardEvent));var I;this.eventSink=(I=P.hostElement)!=null?I:P;this.eventList=W};
_.dh.prototype.stop=function(){for(var W=0;W<this.eventList.length;W++)this.hostElement.removeEventListener(this.eventList[W],_.WM(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.dh.prototype.forwardEvent=function(W,P){this.shouldForward()&&(W.stopPropagation(),this.eventSink instanceof Element?_.Lf(this.eventSink,W.type,P):_.ge(new _.mW("eventSink is not an element")))};_.Kr={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.dh(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(W,P){this.forwarder_.start(W,P)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var ZW=function(){return _.b.apply(this,arguments)||this};
_.A(ZW,_.b);_.J=ZW.prototype;_.J.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=_.$$("HTML_DIR")==="rtl"?"right":"left"};
_.J.dataChanged=function(){this.popupOpen=!1};
_.J.computeAriaLabel=function(W){return _.Q(W,I2m).label};
_.J.onTap=function(W){W.stopPropagation();W.preventDefault();this.data.command&&_.FY().resolve(_.qR).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
ZW.prototype.onPopupClosed=ZW.prototype.onPopupClosed;ZW.prototype.onPopupOpened=ZW.prototype.onPopupOpened;ZW.prototype.onTap=ZW.prototype.onTap;ZW.prototype.dataChanged=ZW.prototype.dataChanged;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],ZW.prototype,"eventForwardingBehavior",void 0);_.f([_.h(_.$u),_.l("design:type",Object)],ZW.prototype,"ironButtonState",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ZW.prototype,"componentBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],ZW.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:-1}),_.l("design:type",Number)],ZW.prototype,"tabindex",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.l("design:type",Object)],ZW.prototype,"ariaLabel",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],ZW.prototype,"disableTooltips",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ZW.prototype,"popupOpen",void 0);
_.f([_.c(),_.l("design:type",Element)],ZW.prototype,"eventSink",void 0);_.f([_.BM("#tooltip"),_.l("design:type",Object)],ZW.prototype,"tooltip",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZW.prototype,"dataChanged",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ZW.prototype,"onTap",null);
_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZW.prototype,"onPopupOpened",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZW.prototype,"onPopupClosed",null);ZW=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],ZW);
_.X(ZW,"ytd-thumbnail-overlay-button-renderer",function(){if(Tmk!==void 0)return Tmk;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Tmk=W},{mode:1});var rRw;var o8=function(){return _.b.apply(this,arguments)||this};
_.A(o8,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],o8.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],o8.prototype,"disableAnimation",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],o8.prototype,"rounded",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],o8.prototype,"transparentBackground",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],o8.prototype,"noPadding",void 0);o8=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],o8);
_.X(o8,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(rRw!==void 0)return rRw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rRw=W},{mode:1});var iQi;var Sp=function(){return _.b.apply(this,arguments)||this};
_.A(Sp,_.b);Sp.prototype.computeIconPosition=function(W){return this.get("iconPosition",W)||null};
Sp.prototype.computeIconStyle=function(W){return this.get("iconStyle",W)||null};
Sp.prototype.computeIsIconStyleFilled=function(W){if(!W)return!1;var P;return W.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((P=W.icon)==null?void 0:P.iconType)==="ERROR_BLACK"};
_.f([_.c(),_.l("design:type",Object)],Sp.prototype,"data",void 0);_.f([_.c({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.l("design:type",Object)],Sp.prototype,"iconPosition",void 0);_.f([_.c({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.l("design:type",Object)],Sp.prototype,"iconStyle",void 0);_.f([_.c({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Sp.prototype,"iconStyleFilled",void 0);
Sp=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Sp);
_.X(Sp,"ytd-thumbnail-overlay-icon-renderer",function(){if(iQi!==void 0)return iQi;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return iQi=W},{mode:1});var Rcw;var uW=function(){return _.b.apply(this,arguments)||this};
_.A(uW,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uW.prototype,"data",void 0);uW=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],uW);
_.X(uW,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Rcw!==void 0)return Rcw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Rcw=W},{mode:1});var FHc;var dZ=function(){var W=_.b.apply(this,arguments)||this;W.isPreviewLoading=!1;return W};
_.A(dZ,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dZ.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],dZ.prototype,"isPreviewLoading",void 0);dZ=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],dZ);
_.X(dZ,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(FHc!==void 0)return FHc;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return FHc=W},{mode:1});var qMd;var s$=function(){return _.b.apply(this,arguments)||this};
_.A(s$,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],s$.prototype,"data",void 0);s$=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],s$);
_.X(s$,"ytd-thumbnail-overlay-pinking-renderer",function(){if(qMd!==void 0)return qMd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return qMd=W},{mode:1});var LHk;var vg=function(){var W=_.b.apply(this,arguments)||this;W.disableTooltips=!1;W.isLoading=!1;W.useExpandableTooltip=!1;W.toggled=!1;W.hovered=!1;W.mouseoverDelayJobId=0;W.toggleDelayJobId=0;W.expandAnimationDelayJobId=0;return W};
_.A(vg,_.b);_.J=vg.prototype;_.J.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");_.g(this.hostElement).querySelector("#tooltip").position=_.$$("HTML_DIR")==="rtl"?"right":"left"};
_.J.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Gr.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Gr.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Gr.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.J.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Gr.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Gr.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Gr.cancelJob(this.expandAnimationDelayJobId)};
_.J.computeIcon=function(W,P,x){return(W=x?P:W)&&W.iconType?_.PW(W.iconType):void 0};
_.J.computeAriaLabel=function(W,P,x){return _.Q(x?P:W,I2m).label};
_.J.computeTooltip=function(W,P,x){return x?P:W};
_.J.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.J.computeIconOnHover=function(W,P){if((W==null?0:W.iconType)&&!P)return _.PW(W.iconType)};
_.J.onTap=function(W){var P=this;W.stopPropagation();W.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(W),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Fo(_.Gr,function(){P.hovered=!1;P.data&&!P.data.toggledServiceEndpoint&&(P.expandAnimationDelayJobId=_.Fo(_.Gr,function(){P.set("data.isToggled",
!1)},200))},2E3))};
_.J.onMouseenter=function(){var W=this;this.mouseoverDelayJobId=_.Fo(_.Gr,function(){W.hovered=!0},300)};
_.J.onMouseleave=function(){_.Gr.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.J.onServiceRequestCompleted=function(W,P){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(P)||this.set("data.isToggled",!this.data.isToggled)};
_.J.serviceRequestWasSuccessful=function(W){return _.Q(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Dy)?W.data.status==="STATUS_SUCCEEDED":!0};
vg.prototype.onServiceRequestCompleted=vg.prototype.onServiceRequestCompleted;vg.prototype.onPopupClosed=vg.prototype.onPopupClosed;vg.prototype.onPopupOpened=vg.prototype.onPopupOpened;vg.prototype.onMouseleave=vg.prototype.onMouseleave;vg.prototype.dataChanged=vg.prototype.dataChanged;_.f([_.h(_.$u),_.l("design:type",Object)],vg.prototype,"ironButtonState",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],vg.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],vg.prototype,"ytEventForwardingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vg.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.l("design:type",Object)],vg.prototype,"ariaLabel",void 0);_.f([_.c(),_.l("design:type",Object)],vg.prototype,"disableTooltips",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],vg.prototype,"popupOpen",void 0);_.f([_.c(),_.l("design:type",Object)],vg.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Element)],vg.prototype,"eventSink",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],vg.prototype,"useExpandableTooltip",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.l("design:type",Object)],vg.prototype,"toggled",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],vg.prototype,"hovered",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.l("design:type",Object)],vg.prototype,"iconOnHover",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vg.prototype,"dataChanged",null);
_.f([_.I7("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vg.prototype,"onMouseleave",null);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vg.prototype,"onPopupOpened",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vg.prototype,"onPopupClosed",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],vg.prototype,"onServiceRequestCompleted",null);vg=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],vg);
_.X(vg,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(LHk!==void 0)return LHk;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return LHk=W},{mode:_.F4("kevlar_poly_si_batch_j053")?1:2});var Wdw;var Pfi=_.kl(function(W){var P=W.data;var x=function(){return P().enableSegmentView};
return _.u("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.u(_.V,{cond:x,then:function(){return _.u("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.u("div",{class:_.BF("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+P().startPercent+"%"}}),_.u("div",{class:_.BF("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+P().segmentDurationPercent+"%"}},_.u("div",{class:_.BF("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.u("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.u("div",null," ",function(){return P().segmentLabel})),_.u("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.u("div",{class:_.BF("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.u(_.V,{cond:function(){return!x()&&P().startPercent},
then:function(){var I={};return _.u("div",{class:_.BF("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(I.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.p("web_enable_modern_progress_bar_overlay"),I))},_.u("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+P().startPercent+"%"}}))}}))},"M");
Pfi.idomCompat=!0;var xhA=_.kl(function(W){var P=_.Ys(),x=_.G4(function(O){var B,Y,K;a:{var Z=(B=W.data())==null?void 0:B.animationActivationTargetId;B=((Y=W.data())==null?void 0:Y.animationActivationEntityKey)||"";Y=(K=W.data())==null?void 0:K.animationActivationEntitySelectorType;if(B&&Z)switch(Y){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":O=_.Jb(O.entities,"playerStateEntity",B);K=_.FY().resolve(_.Rl(_.kc));Z=!!(O&&O.videoId===Z&&(K==null?0:K.isMiniplayerActive()));Z={activated:Z,playAnimation:Z&&
O.playerState==="PLAYER_STATE_PLAYING"};break a}Z=void 0}return Z});
_.jj(function(){var O;if((O=x())==null?0:O.activated){var B;if((B=x())==null?0:B.playAnimation){var Y;(Y=P.lottieEl)==null||Y.goToAndPlay(0)}else{var K;(K=P.lottieEl)==null||K.goToAndStop(0)}}});
var I=function(){var O,B=!((O=x())==null||!O.activated);if(W.data()){O=W.data();var Y=void 0;O.icon&&(Y=_.VP8(O.icon),Y=zCU(Y));var K=void 0,Z;if((Z=O.backgroundColor)==null?0:Z.lightTheme){var d;K={backgroundColor:CL((d=O.backgroundColor)==null?void 0:d.lightTheme,"0.8")}}if(O.text||Y||B){if(B&&O.lottieData&&P){d=O.lottieData;var v,m,t;Z={animationConfig:{name:d.url,path:d.url,autoplay:(v=d.settings)==null?void 0:v.autoplay,loop:(t=(m=d.settings)==null?void 0:m.loop)!=null?t:!0},animationRef:P}}else Z=
void 0;if(B)v=16;else b:switch(O.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":v=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":v=18;break b;default:v=16}B={type:v,text:B&&O.animatedText?O.animatedText:O.text,icon:Y,customColors:K,animation:Z}}else B=void 0}else B=void 0;return B};
return _.u("yt-thumbnail-badge-view-model",{class:_.O4("yt-thumbnail-badge-view-model-wiz",W.class)},_.u(_.V,{cond:I,then:function(){return _.u(_.qI,{data:function(){return I()}})}}))},"N");var IX3=_.kl(function(W){var P={};return _.u("yt-thumbnail-bottom-overlay-view-model",{class:_.O4("ytThumbnailBottomOverlayViewModelHost",(P.ytThumbnailBottomOverlayViewModelHostBackground=function(){return W.data().enableGradientBackground},P))},_.u("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.u(_.Ea,{data:function(){return W.data().progressBar}},{thumbnailOverlayProgressBarViewModel:Pfi}),_.u(_.Ea,{data:function(){return W.data().badge}},{thumbnailBadgeViewModel:function(x){return _.u(xhA,
{data:x.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.u(_.Ea,{data:function(){return W.data().badges}},{thumbnailBadgeViewModel:function(x){return _.u(xhA,{data:x.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
IX3.idomCompat=!0;_.lq(IX3,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Ng}});var heo={calledOnce:!1,state:"visible"},HYC={calledOnce:!1,state:"hidden"};_.ql(ctd);var OYZ=_.kl(function(W){var P=W.data;var x=W.className;W=W.alwaysShow;var I=_.fa();_.NI(I,function(){return P().rendererContext});
var O=_.Atx(),B={};return _.u("thumbnail-hover-overlay-view-model",{el:I,class:_.O4("ytThumbnailHoverOverlayViewModelHost",x,(B.ytThumbnailHoverOverlayViewModelHostForceHover=W,B)),"aria-label":function(){var Y;return(Y=_.Q(P().rendererContext,_.TS))==null?void 0:Y.label},
role:function(){return _.Xd(P().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Xd(P().rendererContext)!==void 0?0:void 0},
"on:keypress":O},_.u("div",{class:_.O4("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(P().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Y="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Y="ytThumbnailHoverOverlayViewModelStyleCover"}return Y})},_.u(_.V,{cond:function(){return P().icon},
then:function(Y){return _.u(_.bq,{data:Y,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.u(_.V,{cond:function(){return P().text},
then:function(Y){return _.u(_.mQ,{text:Y,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P"),JtZ=_.p("web_enable_sink_lockups_batch")?OYZ:ctd,B4z=_.p("web_enable_sink_lockups_batch")?OYZ:_.nE(ctd);
OYZ.idomCompat=!0;var nRM=_.kl(function(W){var P=W.data;return _.u(_.Ea,{data:function(){return P==null?void 0:P().overlays}},{thumbnailHoverOverlayViewModel:B4z})},"Q");
nRM.idomCompat=!0;var YKZ={};var ytl=_.kl(function(W){var P=W.data;var x=W.image;var I=W.state;var O=W.iconType;var B=W.overlays;var Y=W.isOverlay;var K=_.Nl();W=_.n(_.YV(!0,void 0,"AA4e7b"));var Z=W.next().value,d=W.next().value,v=function(){return!!P().onTap},m=_.a7(O,"LIVE");
_.jj(function(){var C=P();requestAnimationFrame(function(){if(K.value===null)var z=!0;else{var D=K.value;z=C.badgeText;var w=aXo(C.size);z in YKZ?D=YKZ[z]:(D=D.clientWidth,YKZ[z]=D);(z=D>w)?K.value.style.display="none":K.value.style.visibility="visible"}d(z)})});
var t=function(){var C={};return C["yt-spec-avatar-shape__image"]=!0,C["yt-spec-avatar-shape__image--ads-app"]=P().type===1,C};
return _.u("yt-avatar-shape",null,_.u("div",{el:_.U2(kjx(v,{keydown:function(C){if(C.key==="Enter"){var z;(z=C.currentTarget)==null||z.click()}},
click:function(C){var z,D;return void((D=(z=P()).onTap)==null?void 0:D.call(z,C))}})),
class:function(){var C={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},z=P();C=(C[z.clusterLayoutConfig?fXW(z.clusterLayoutConfig):N4t(z.size)]=!0,C["yt-spec-avatar-shape__button--tappable"]=v(),C);(z=P().avatarButtonCustomClassName)&&(C[z]=!0);return _.BF(C)},
"aria-label":function(){return v()?P().accessibilityText:""},
role:function(){return v()?"button":void 0},
tabindex:function(){return v()?0:void 0}},_.u("div",{class:function(){var C,z=P(),D=I==null?void 0:I(),w=Y==null?void 0:Y(),a=!((C=z.decorations)==null||!C.includes(2)||z.size!=="medium"&&z.size!=="large"),k=z.size==="tiny"||z.size==="extra-small",T,N,Io,F,nm={};
C=(nm["yt-spec-avatar-shape--live-ring"]=!!(((T=z.decorations)==null?0:T.includes(0))&&T4W(z.size)),nm["yt-spec-avatar-shape--stories-watched"]=a&&!(D==null||!D.storiesWatched),nm["yt-spec-avatar-shape--stories-unwatched"]=a&&!(D==null?0:D.storiesWatched),nm["yt-spec-avatar-shape--background-border"]=rt8(z.decorations)&&!k,nm["yt-spec-avatar-shape--background-border-thin"]=rt8(z.decorations)&&k,nm["yt-spec-avatar-shape__on-select-border"]=!((N=z.decorations)==null||!N.includes(4)),nm["yt-spec-avatar-shape__white-border"]=
!((Io=z.decorations)==null||!Io.includes(5)),nm["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((F=z.decorations)==null?0:F.includes(5))&&k),nm["yt-spec-avatar-shape--is-overlay"]=!!w,nm);return _.BF(C)}},_.u("div",{class:function(){var C={};
var z=P();C=(C[z.clusterLayoutConfig?UhG(z.clusterLayoutConfig):XNm(z.size)]=!0,C["yt-spec-avatar-shape--no-margin"]=rt8(P().decorations),C);return _.BF(C)}},_.u(_.bq,{data:x,
alt:function(){return!v()&&P().accessibilityText?P().accessibilityText:""},
targetWidth:function(){return lXS(P().size)},
targetHeight:function(){return lXS(P().size)},
className:function(){return _.BF(t())}}),_.u(_.V,{cond:function(){var C;
return((C=P().decorations)==null?void 0:C.includes(0))&&T4W(P().size)},
then:function(){return _.u("div",{class:function(){var C={};C=(C["yt-spec-avatar-shape__live-badge"]=!0,C["yt-spec-avatar-shape__live-badge--badge-small"]=P().size==="small",C["yt-spec-avatar-shape__live-badge--badge-medium"]=P().size==="medium"||P().size==="48",C["yt-spec-avatar-shape__live-badge--badge-large"]=P().size==="large",C["yt-spec-avatar-shape__live-badge--badge-extra-large"]=P().size==="extra-large"||P().size==="extra-extra-large"||P().size==="giant",C);return _.BF(C)}},_.u(_.V,{cond:function(){return P().badgeText},
then:function(C){return _.u("div",{class:"yt-spec-avatar-shape__badge-text",el:K},C)}}),_.u(_.V,{cond:Z,
then:function(){return _.u("div",{class:"yt-spec-avatar-shape__badge-icon"},_.u(_.Sy,{icon:m,size:function(){a:switch(P().size){case "extra-large":var C=16;break a;default:C=13}return C}}))}}))}}),_.u(_.V,{cond:function(){var C,z;
return((C=P().decorations)==null?void 0:C.includes(1))||((z=P().decorations)==null?void 0:z.includes(0))&&!T4W(P().size)},
then:function(){return _.u("div",{class:function(){var C=P(),z,D,w={};var a=(w["yt-spec-avatar-shape__live-dot"]=!((z=C.decorations)==null||!z.includes(0)||T4W(C.size)),w["yt-spec-avatar-shape__new-content"]=!((D=C.decorations)==null||!D.includes(1)),w);return _.BF(a)}})}}),_.u(_.V,{cond:function(){return!!B},
then:function(){return _.u("div",{class:function(){var C={};C=Object.assign((C["yt-spec-avatar-shape__image-overlays"]=!0,C),t());return _.BF(C)}},B==null?void 0:B())}})))))},"R");
ytl.idomCompat={callbacks:{overlays:!0}};_.DI=_.kl(function(W){function P(){x().endpoint&&_.D1(x().endpoint)}
var x=W.data;var I=W.decorations;var O=W.avatarButtonCustomClassName;var B=W.isOverlay;var Y=W.clusterLayoutConfig;return _.u("avatar-view-model",null,_.u(_.V,{cond:function(){return x().image},
then:function(K){return _.u(ytl,{data:function(){return Ret({data:x(),onTap:x().endpoint?P:void 0,decorations:I==null?void 0:I(),badgeText:void 0,accessibilityText:x().accessibilityText,avatarButtonCustomClassName:O==null?void 0:O(),clusterLayoutConfig:Y==null?void 0:Y()})},
image:K,iconType:"RADAR_LIVE",overlays:function(){return _.u(nRM,{data:x})},
isOverlay:B})}}))},"S");
_.DI.idomCompat=!0;_.ml=_.kl(function(W){var P=W.data;W=W.className;var x=_.Nl(),I=function(){return _.Q(P().avatar,_.rp)},O=_.Sj(function(){var B,Y=P(),K=I(),Z=_.Xd(P().rendererContext),d=(B=x.value)!=null?B:void 0,v;
if(K){d={data:Y,avatar:K,onTap:Z,element:d};B=d.data;Y=d.avatar;K=d.onTap;Z=d.element;d=d.commandController;K=K?Wjd(K,Z,d):void 0;Z=[];B.liveData&&Z.push(0);var m;d=(m=B.liveData)==null?void 0:m.liveBadgeText;m=(v=_.Q(B.rendererContext,_.TS))==null?void 0:v.label;v=Ret({data:Y,onTap:K,decorations:Z,badgeText:d,accessibilityText:m?m:B.a11yLabel})}else v={size:"medium"};return v},void 0,"H8tk9d");
return _.u("yt-decorated-avatar-view-model",{class:_.O4("yt-decorated-avatar-view-model-wiz",W),el:x},_.u(_.V,{cond:function(){var B;return(B=I())==null?void 0:B.image},
then:function(B){return _.u(ytl,{data:O,image:B,iconType:"RADAR_LIVE",overlays:function(){return _.u(nRM,{data:I})}})}}))},"T");
_.ml.idomCompat=!0;_.VA=_.kl(function(W){var P=function(){var Z;return Object.assign({},W.data(),(Z=W.overrides)==null?void 0:Z.call(W))},x=_.fa(),I=function(){return x&&_.fC(P().rendererContext)};
_.NI(x,function(){return P().rendererContext});
var O=function(){var Z=P().avatars,d,v;return(v=(d=(Z==null?0:Z[0])?_.Q(Z[0],_.rp):void 0)==null?void 0:d.avatarImageSize)!=null?v:"AVATAR_SIZE_UNKNOWN"},B=function(){return LdC(P())},Y=function(){if(P().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var Z=void 0;
else if((Z=W.decorations)==null?0:Z.call(W))Z=W.decorations();else{Z=P();var d=0;Z.avatars&&(d+=Z.avatars.length);Z.decoratedText&&(d+=1);Z=d>1?[3]:[]}return Z},K={};
return _.u("yt-avatar-stack-view-model",{el:x,class:_.O4("yt-avatar-stack-view-model-wiz",W.className,(K["yt-avatar-stack-view-model-wiz--tappable"]=I,K["yt-avatar-stack-view-model-wiz--is-overlay"]=W.isOverlay,K["yt-avatar-stack-view-model-wiz--medium-text"]=W.useMediumText,K)),tabindex:function(){return I()?0:void 0},
role:function(){return I()?"link":void 0},
"aria-label":function(){var Z,d;return(d=(Z=_.Q(P().rendererContext,_.TS))==null?void 0:Z.label)!=null?d:""}},_.u(_.V,{cond:function(){var Z;
return P().avatars&&!((Z=W.hideAvatar)==null?0:Z.call(W))},
then:function(){return _.u("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.u(_.V,{cond:function(){return P().decoratedText},
then:function(Z){var d={};return _.u("div",{class:_.O4("yt-avatar-stack-view-model-wiz__text-container",(d["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return O()==="AVATAR_SIZE_XXS"||O()==="AVATAR_SIZE_XS"},d["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var v;
return((v=W.isOverlay)==null?void 0:v.call(W))&&(O()==="AVATAR_SIZE_XXS"||O()==="AVATAR_SIZE_XS")},d)),
style:_.oP({width:function(){return B().avatarSizeInPx+"px"},
height:function(){return B().avatarSizeInPx+"px"}})},_.u(_.mQ,{text:Z,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.u("div",{style:function(){return _.oP(B().avatarStackStyle)()},
class:function(){return B().avatarStackClass}},_.u(_.Ea,{data:function(){return B().avatars.reverse()}},{avatarViewModel:function(Z,d){return _.u("div",{style:function(){var v,m;
return _.oP((m=(v=B()).avatarStyle)==null?void 0:m.call(v,d()))()},
class:function(){return B().avatarClass}},_.u(_.DI,{data:Z.data,
decorations:Y,avatarButtonCustomClassName:function(){return B().avatarButtonCustomClassName},
isOverlay:W.isOverlay,clusterLayoutConfig:function(){var v,m;return(m=(v=B()).clusterLayoutConfig)==null?void 0:m.call(v,d())}}))},
decoratedAvatarViewModel:function(Z,d){return _.u("div",{style:function(){var v,m;return _.oP((m=(v=B()).avatarStyle)==null?void 0:m.call(v,d()))()},
class:function(){return B().avatarClass}},_.u(_.ml,{data:Z.data}))}})))}}),_.u(_.V,{cond:function(){return P().text},
then:function(Z){return _.u(_.mQ,{text:Z,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.VA.idomCompat=!0;_.lq(_.kl(function(W){var P=W.data;var x=W.thumbnailSize;return _.u("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.u("div",{class:_.O4("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return PN8(x==null?void 0:x())})},_.u(_.Ea,{data:function(){return P().avatarStack}},{avatarStackViewModel:function(I){return _.u(_.VA,{data:I.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.cv,
thumbnailSize:_.cv}});_.ql(xkm);var Kdi=_.kl(function(W){W=_.bw(W,{hidden:!1});var P=W.data;return _.u("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:W.hidden},_.u(_.mQ,{text:function(){return P().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.u(_.V,{cond:function(){return P().subtitle},
then:function(){return _.u(_.mQ,{text:function(){return P().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W"),ZYW=_.p("web_enable_sink_lockups_batch")?Kdi:xkm,oRM=_.p("web_enable_sink_lockups_batch")?Kdi:_.nE(xkm);
Kdi.idomCompat=!0;_.p("web_enable_sink_lockups_batch")?_.lq(oRM,"yt-thumbnail-overlay-title-view-model",{props:{data:_.cv,hidden:_.cv}}):_.WF(ZYW,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var SKW=_.kl(function(W){W=_.bw(W,{isClip:!1});var P=W.data,x=W.thumbnailSize,I={};return _.u("yt-thumbnail-overlay-badge-view-model",{class:_.O4("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(P().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var O="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:O="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return O},function(){return IYm(x==null?void 0:x())},(I["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
W.isClip,I))},_.u(_.Ea,{data:function(){return P().thumbnailBadges}},{thumbnailBadgeViewModel:function(O){return _.u(xhA,{data:O.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
SKW.idomCompat=!0;_.lq(SKW,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.cv,thumbnailSize:_.cv,isClip:_.cv}});_.ql(O8x);_.WF(O8x,"yt-page-indicator-view-model",{propNames:["data"]});var tT=function(){var W=_.b.apply(this,arguments)||this;W.eventSink=function(){return W};
W.disableInteraction=!1;W.noRoundedCorners=!1;W.isPreviewLoading=!1;W.isOriginalAspectRatio=!1;W.computedObjectFit=!1;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return W};
_.A(tT,_.b);_.J=tT.prototype;
_.J.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:_.p("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"}}};
_.J.onImageLoaded=function(){this.loaded=!0};
_.J.onImageUnloaded=function(){this.loaded=!1};
_.J.computeRichThumbnail=function(W,P,x,I){if(W&&P&&!I&&!_.p("disable_moving_thumbs_handling")&&!x)return P};
_.J.computeImageWidth=function(W,P){return P||9999};
_.J.computeIsOriginalAspectRatio=function(W){return W};
_.J.computeIsLive=function(W){if(W==null?0:W.badges)for(var P=0;P<W.badges.length;P++){var x=W.badges[P];if(x.metadataBadgeRenderer&&x.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(W==null?0:W.thumbnailOverlays)for(P=0;P<W.thumbnailOverlays.length;P++)if(x=W.thumbnailOverlays[P],x.thumbnailOverlayTimeStatusRenderer&&x.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.J.computeObjectFit=function(W,P){return P||(W?"CONTAIN":"")};
_.J.computeNavigationEndpoint=function(W,P,x){return W?P:x};
_.J.computeHasClip=function(W){W=_.n(W||[]);for(var P=W.next();!P.done;P=W.next())if(P.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.J.computeOverlayColor=function(W){var P;return(W==null?0:(P=W.darkColorPalette)==null?0:P.section2Color)?W.darkColorPalette.section2Color:W==null?void 0:W.sampledThumbnailColor};
_.N1.Object.defineProperties(tT.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return T4(this.width)}}});
tT.prototype.onImageUnloaded=tT.prototype.onImageUnloaded;tT.prototype.onImageLoaded=tT.prototype.onImageLoaded;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],tT.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(emP),_.l("design:type",Object)],tT.prototype,"ytdThumbnailBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],tT.prototype,"componentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],tT.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],tT.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],tT.prototype,"circular",void 0);
_.f([_.c({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.l("design:type",Object)],tT.prototype,"richThumbnail",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.l("design:type",Boolean)],tT.prototype,"hasClip",void 0);_.f([_.c(),_.l("design:type",Object)],tT.prototype,"eventSink",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],tT.prototype,"queued",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],tT.prototype,"richGridThumbnail",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],tT.prototype,"useExpandableTooltip",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],tT.prototype,"useUntranslatedNavigationEndpoint",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],tT.prototype,"disableInteraction",void 0);
_.f([_.c({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.l("design:type",Object)],tT.prototype,"computedNavigationEndpoint",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],tT.prototype,"nowPlayingEqualizerOnly",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],tT.prototype,"hidePlaybackStatus",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],tT.prototype,"objectFit",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],tT.prototype,"noRoundedCorners",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],tT.prototype,"watchFeedThumbnail",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],tT.prototype,"isPreviewLoading",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.l("design:type",Object)],tT.prototype,"isOriginalAspectRatio",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.l("design:type",Object)],tT.prototype,"computedObjectFit",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.l("design:type",Boolean)],tT.prototype,"isLiveVideo",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],tT.prototype,"loaded",void 0);_.f([_.c({computed:"computeOverlayColor(data.thumbnail)"}),_.l("design:type",Object)],tT.prototype,"overlayColor",void 0);_.f([_.c({selector:_.Acd}),_.l("design:type",Boolean)],tT.prototype,"inlinePreviewIsEnabled",void 0);_.f([_.c(),_.l("design:type",Number)],tT.prototype,"width",void 0);
_.f([_.H("inlinePreviewIsEnabled"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tT.prototype,"isPreviewDisabled",null);_.f([_.H("width"),_.l("design:type",String),_.l("design:paramtypes",[])],tT.prototype,"thumbnailSize",null);_.f([_.I7("image-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tT.prototype,"onImageLoaded",null);
_.f([_.I7("image-unloaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tT.prototype,"onImageUnloaded",null);tT=_.f([_.U({disableElementRegistration:!0,is:"ytd-thumbnail"})],tT);
var u1k=_.R7()(tT,"ytd-thumbnail",function(){if(Wdw===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);Wdw=W}W=Wdw;return W},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var YEG=function(W){var P=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12691_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12691_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(x){dhm(P,x)};
this.onLockupMouseLeaveFn=function(x){x=x.relatedTarget;var I,O;((I=document.getElementsByTagName("ytd-video-preview"))==null?0:(O=I.item(0))==null?0:O.contains(x))||(P.terminateVideoPreview(),pr(P))};
this.onThumbnailMouseDownFn=function(){P.terminateVideoPreview();pr(P)};
this.onTouchStart=function(){P.JSC$12691_touched=!0};
this.mediaRenderer=W.mediaRenderer;this.thumbnailElement=W.thumbnailElement;this.lockupElement=W.lockupElement;this.videoPreviewOptsInput=W.videoPreviewOpts;s2c(this);jp(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)):
_.ge(Error("Bh")):_.ge(Error("Ch")):vRc(this)},no=function(W){vRc(W);
var P;(P=W.lockupElement)==null||P.removeEventListener("mouseenter",W.onMouseMoveFn);var x;(x=W.lockupElement)==null||x.removeEventListener("mouseleave",W.onLockupMouseLeaveFn);var I;(I=W.lockupElement)==null||I.removeEventListener("touchstart",W.onTouchStart);var O;(O=W.thumbnailElement)==null||O.removeEventListener("mousedown",W.onThumbnailMouseDownFn);pr(W)},s2c=function(W){W.inlinePreviewIsEnabledForUser=_.Xe().getState().ui.inlinePreviewIsEnabled;
W.unsubscribeFromInlinePreviewIsEnabled=_.sx(_.Xe(),_.Acd,function(P){(W.inlinePreviewIsEnabledForUser=P)||pr(W)});
W.JSC$12691_unsubscribeFromInlinePreviewIsActive=_.sx(_.Xe(),_.CGR,function(P){(W.inlinePreviewIsActive=P)||pr(W)})},vRc=function(W){W.unsubscribeFromInlinePreviewIsEnabled();
W.unsubscribeFromInlinePreviewIsEnabled=function(){};
W.JSC$12691_unsubscribeFromInlinePreviewIsActive();W.JSC$12691_unsubscribeFromInlinePreviewIsActive=function(){}},dhm=function(W,P){P.buttons>0||(P=_.Wi("kevlar_lockup_hover_delay",-1),W.JSC$12691_touched&&P>=0?(_.Gr.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.Fo(_.Gr,function(){mhc(W)},P),W.JSC$12691_touched=!1):mhc(W))},V7P=function(W){W.videoPreviewJobId=_.Fo(_.Gr,function(){var P,x,I,O;
return _.y(function(B){if(B.nextAddress==1){if(!jp(W))return B.return();P=W.getVideoPreviewOpts();if(!P)return B.return();P.isAutoplay=!0;return(I=(x=_.P7(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[P]))&&x[0])?_.S(B,x[0],3):B.jumpTo(2)}B.nextAddress!=2&&(I=B.yieldResult===1);I&&Brt((O=W.mediaRenderer)==null?void 0:O.data);_.Kl(B)})})},mhc=function(W){!W.previewTriggered&&jp(W)&&(W.inlinePreviewIsActive&&W.terminateVideoPreview(),W.previewTriggered=!0,W.mediaRenderer.isInlinePreviewTriggered=
!0,_.Gr.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.Fo(_.Gr,function(){var P,x,I,O;
return _.y(function(B){if(B.nextAddress==1){if(!jp(W))return B.return();P=W.getVideoPreviewOpts();return P?(I=(x=_.P7(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[P]))&&x[0])?_.S(B,x[0],3):B.jumpTo(2):B.return()}B.nextAddress!=2&&(I=B.yieldResult===1);I&&Brt((O=W.mediaRenderer)==null?void 0:O.data);_.Kl(B)})}))};
YEG.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var W,P;if((P=(W=this.videoPreviewOptsInput)==null?void 0:W.videoPreviewData)!=null)W=P;else if(W=this.mediaRenderer.data)if(JOU(W))W={inlinePlaybackEndpoint:_.AF(W.inlinePlayerData.onVisible),navigationEndpoint:_.AF(W.onTap),thumbnail:"image"in W?W.image:W.thumbnail,thumbnailOverlays:void 0,accessibilityText:npW(W)};else if("multipleInlinePlaybackEndpoint"in W){var x=_.Q(_.Q(W.multipleInlinePlaybackEndpoint,OAZ),JWb);if(x!=
null&&x.playerDescriptors){P=[];x=_.n(x.playerDescriptors);for(var I=x.next();!I.done;I=x.next())I=I.value,P.push({inlinePlaybackEndpoint:I.inlinePlaybackEndpoint,navigationEndpoint:I.navigationEndpoint,thumbnail:I.thumbnail,thumbnailOverlays:I.thumbnailOverlays,accessibilityText:npW(W)});W=P}else W=void 0}else W={inlinePlaybackEndpoint:W.inlinePlaybackEndpoint,navigationEndpoint:W.navigationEndpoint,thumbnail:W.thumbnail,thumbnailOverlays:W.thumbnailOverlays,accessibilityText:npW(W)};else W=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:W,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var jp=function(W){var P;if(P=W.inlinePreviewIsEnabledForUser)P=(W=W.mediaRenderer.data)?"inlinePlaybackEndpoint"in W&&W.inlinePlaybackEndpoint||JOU(W)&&W.inlinePlayerData||"multipleInlinePlaybackEndpoint"in W&&W.multipleInlinePlaybackEndpoint?!0:!1:!1;return P};
YEG.prototype.terminateVideoPreview=function(){_.W7(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var pr=function(W){_.Gr.cancelJob(W.videoPreviewJobId);W.inlinePreviewIsActive=!1;W.previewTriggered=!1;W.mediaRenderer.isInlinePreviewTriggered=!1};var t7P=_.i4(["#"]),QA=function(){var W=_.b.apply(this,arguments)||this;W.isDisabled=!1;return W};
_.A(QA,_.b);_.J=QA.prototype;_.J.configureRendererStamper=function(){return{"data.menu":JT,"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"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.getMetadata=function(W){var P=[];if(W.metadataText&&Object.keys(W.metadataText).length>0){var x=this.ytRendererBehavior.getSimpleString(W.metadataText);W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&(x=_.aS(x,Number(W.upcomingEventData.startTime)));P.push(x)}else W.shortViewCountText&&P.push(this.ytRendererBehavior.getSimpleString(W.shortViewCountText)),W.publishedTimeText&&P.push(this.ytRendererBehavior.getSimpleString(W.publishedTimeText)),W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&
(x=this.ytRendererBehavior.getSimpleString(W.upcomingEventData.upcomingEventText),P.push(_.aS(x,Number(W.upcomingEventData.startTime))));return P};
_.J.calculateBylineText=function(W){return W.shortBylineText?W.shortBylineText:W.bylineText?W.bylineText:null};
_.J.calculateIsDisabled=function(W){return!!W.isDisabled};
_.J.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.pz(t7P)};
_.J.onDetailsTap=function(W){var P=this.data&&this.data.navigationEndpoint;P&&!_.Nx(_.c5(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.p("kevlar_grid_video_renderer_killswitch")?_.Lf(this.hostElement,"yt-navigate",{endpoint:P}):this.ytComponentBehavior.resolveCommand(P))};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12696_inlinePreviewHoverListener=ir({mediaRenderer:this,lockupElement:_.g(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.g(this.hostElement).querySelector("ytd-thumbnail")})};
_.J.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$12696_inlinePreviewHoverListener)==null||no(W)};
_.J.computeThumbnailWidth=function(W,P){return P&&P>0?P:W?360:210};
_.J.computeShowChannelThumbnail=function(W,P){var x;return P&&!!(W==null?0:(x=W.channelThumbnailSupportedRenderers)==null?0:x.channelThumbnailWithLinkRenderer)};
_.N1.Object.defineProperties(QA.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$12696_inlinePreviewHoverListener)==null?0:jp(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
QA.prototype.dataChanged=QA.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],QA.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],QA.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.h(_.eZ),_.l("design:type",Object)],QA.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],QA.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],QA.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],QA.prototype,"noEndpoints",void 0);_.f([_.c({computed:"calculateBylineText(data)"}),_.l("design:type",Object)],QA.prototype,"bylineText",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],QA.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],QA.prototype,"isDownloading",void 0);_.f([_.c({reflectToAttribute:!0,value:0}),_.l("design:type",Number)],QA.prototype,"width",void 0);_.f([_.c({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.l("design:type",Object)],QA.prototype,"isDisabled",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QA.prototype,"dataChanged",null);_.f([_.H("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QA.prototype,"isHovered",null);QA=_.f([_.U({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],QA);
_.X(QA,"ytd-grid-video-renderer",function(){if(UdW!==void 0)return UdW;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return UdW=W},{mode:_.F4("kevlar_poly_si_batch_j047")?1:2});var pNM;var Cr=function(){var W=_.b.apply(this,arguments)||this;W.roundedContainer=!0;W.skipRoundingTop=!1;W.disableTopPadding=!1;W.amsterdamEnabled=_.p("enable_desktop_amsterdam_info_panels");return W};
_.A(Cr,_.b);Cr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Cr.prototype.onClick=function(W){var P,x=(P=this.data)==null?void 0:P.sourceEndpoint;!_.Nx(_.c5(W),this.hostElement,["A".toString()])&&x&&_.Lf(this.hostElement,"yt-navigate",{endpoint:x})};
_.N1.Object.defineProperties(Cr.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 W;return!((W=this.data)==null||!W.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=(W=this.data)==null?void 0:W.paragraphMaxLines)!=null?P:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Cr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Cr.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cr.prototype,"showVerticalDividers",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cr.prototype,"roundedContainer",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cr.prototype,"skipRoundingTop",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cr.prototype,"disableTopPadding",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Cr.prototype,"amsterdamEnabled",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Cr.prototype,"showMetadataAtTop",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Cr.prototype,"showMetadataBelowTitle",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],Cr.prototype,"hasMenu",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.truncateParagraphs"),_.l("design:type",Object),_.l("design:paramtypes",[])],Cr.prototype,"truncateParagraphs",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data.paragraphMaxLines"),_.l("design:type",Number),_.l("design:paramtypes",[])],Cr.prototype,"paragraphMaxLines",null);_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.background"),_.l("design:type",Object),_.l("design:paramtypes",[])],Cr.prototype,"background",null);Cr=_.f([_.U({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Cr);
_.X(Cr,"ytd-info-panel-content-renderer",function(){if(pNM!==void 0)return pNM;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return pNM=W},{mode:_.F4("kevlar_poly_si_batch_j076")?1:2});var j2m;var Q2w;var Cf3;var Atd;var AT=function(){return _.b.apply(this,arguments)||this};
_.A(AT,_.b);AT.prototype.computeStyle=function(W){return W};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],AT.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],AT.prototype,"style_",void 0);AT=_.f([_.jd({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],AT);
_.X(AT,"yt-channel-thumbnail-with-link-renderer",function(){if(Atd===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Cf3===void 0&&(Cf3=document.createElement("template"));var I=Cf3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Atd=W}W=Atd;return W},{mode:2});var z5=function(){var W=_.b.apply(this,arguments)||this;W.modernTypography=_.p("web_modern_typography");return W};
_.A(z5,_.b);z5.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"}}}};
z5.prototype.computeTitleStyle=function(W){return W||null};
z5.prototype.computeAvatarStyle=function(W){return W||null};
z5.prototype.computeShowNavigationButton=function(W,P){return!(W==null||!W.navigationButton||P)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],z5.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.l("design:type",String)],z5.prototype,"titleStyle",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.l("design:type",String)],z5.prototype,"avatarStyle",void 0);_.f([_.c(),_.l("design:type",Boolean)],z5.prototype,"hideNavigationButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],z5.prototype,"isModernSd",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],z5.prototype,"modernTypography",void 0);
z5=_.f([_.U({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],z5);
_.X(z5,"ytd-rich-list-header-renderer",function(){if(Q2w!==void 0)return Q2w;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Q2w=W},{mode:_.F4("kevlar_poly_si_batch_j058")?1:2});var G5=function(){return _.b.apply(this,arguments)||this};
_.A(G5,_.b);G5.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]]"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],G5.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],G5.prototype,"isSearch",void 0);G5=_.f([_.U({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],G5);
_.X(G5,"ytd-preview-card-renderer",function(){if(j2m!==void 0)return j2m;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return j2m=W},{mode:1});var zep;var E$=function(){return _.b.apply(this,arguments)||this};
_.A(E$,_.b);E$.prototype.configureRendererStamper=function(){return{"data.menu":JT}};
E$.prototype.dataChanged=function(){var W=this.get("colorExtractionPalette.section1Color",this.data);W=_.j9(W);_.qa(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":W})};
E$.prototype.computeCardStyle=function(W){return this.get("style.value",W)||null};
E$.prototype.dataChanged=E$.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],E$.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],E$.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.l("design:type",String)],E$.prototype,"cardStyle",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],E$.prototype,"dataChanged",null);E$=_.f([_.U({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],E$);
_.X(E$,"ytd-compact-channel-recommendation-card-renderer",function(){if(zep!==void 0)return zep;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return zep=W},{mode:1});var Gj3;var ERP;var gZ=function(){var W=_.b.apply(this,arguments)||this;W.alignAuto=!1;W.collapsed=!0;W.isToggled=!1;W.alwaysCollapsed=!1;W.canToggle=!0;W.collapsedHeight=80;W.disableToggle=!1;W.alwaysToggleable=!1;W.reversed=!1;W.shouldUseNumberOfLines=!1;W.recomputeOnResize=!1;W.canToggleJobId=0;W.lastReversed=!1;return W};
_.A(gZ,_.b);_.J=gZ.prototype;_.J.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.J.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.J.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var W=_.g(this.hostElement),P=W.childNodes,x=document.createDocumentFragment(),I=W.childNodes.length-1;I>=0;I--)_.g(x).appendChild(P[I]);_.p("enable_shadydom_free_scoped_node_methods")?_.rT(this.hostElement).appendChild(x):W.appendChild(x)}};
_.J.ready=function(){var W=this;_.gY(function(){W.initChildrenObserver()},1)};
_.J.detached=function(){this.detachObserver()};
_.J.toggle=function(W,P){this.canToggle&&(this.isToggled=P,_.Lf(this.hostElement,"yt-refit"),W&&W.stopPropagation())};
_.J.reset=function(){this.childrenChanged()};
_.J.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.J.computeIsMoreVisible=function(W,P){return W&&!P};
_.J.computeShouldUseNumberOfLines=function(W){try{return!!W&&window.CSS.supports("-webkit-line-clamp","1")}catch(P){}return!1};
_.J.computeIsLessVisible=function(W,P){return W&&P};
_.J.observeCollapsedHeightAndMaxLines=function(){var W=this.collapsedHeight,P=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.qa(this.hostElement,{"--ytd-expander-max-lines":""+P,"--ytd-expander-collapsed-height":""}):_.qa(this.hostElement,{"--ytd-expander-collapsed-height":W+"px","--ytd-expander-max-lines":""})};
_.J.handleMoreTap=function(W){this.disableToggle||(_.Lf(this.hostElement,"yt-expander-more-tapped"),this.toggle(W,!0))};
_.J.handleLessTap=function(W){_.Lf(this.hostElement,"yt-expander-less-tapped");this.toggle(W,!1)};
_.J.initChildrenObserver=function(){var W=this;this.observer=new MutationObserver(function(){W.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.J.childrenChanged=function(){var W=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Rx(function(){W.canToggleJobId=0;W.calculateCanCollapse()})}))};
_.J.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};
_.J.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.J.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("collapsed-changed",this.collapsed))};
_.J.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("is-toggled-changed",this.isToggled))};
_.J.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("can-toggle-changed",this.canToggle))};
_.N1.Object.defineProperties(gZ.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
gZ.prototype.canToggleChangedForBinding=gZ.prototype.canToggleChangedForBinding;gZ.prototype.isToggledChangedForBinding=gZ.prototype.isToggledChangedForBinding;gZ.prototype.collapsedChangedForBinding=gZ.prototype.collapsedChangedForBinding;gZ.prototype.observeCollapsedHeightAndMaxLines=gZ.prototype.observeCollapsedHeightAndMaxLines;gZ.prototype.onIronResize=gZ.prototype.onIronResize;gZ.prototype.reversedChanged=gZ.prototype.reversedChanged;gZ.prototype.toggledChanged=gZ.prototype.toggledChanged;
gZ.prototype.alwaysToggleableChanged=gZ.prototype.alwaysToggleableChanged;_.f([_.h(_.Db),_.l("design:type",Object)],gZ.prototype,"ironResizableBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],gZ.prototype,"alignAuto",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],gZ.prototype,"collapsed",void 0);_.f([_.c(),_.l("design:type",Object)],gZ.prototype,"isToggled",void 0);_.f([_.c(),_.l("design:type",Object)],gZ.prototype,"alwaysCollapsed",void 0);
_.f([_.c(),_.l("design:type",Object)],gZ.prototype,"canToggle",void 0);_.f([_.c(),_.l("design:type",Object)],gZ.prototype,"collapsedHeight",void 0);_.f([_.c(),_.l("design:type",Object)],gZ.prototype,"disableToggle",void 0);_.f([_.c(),_.l("design:type",Object)],gZ.prototype,"alwaysToggleable",void 0);_.f([_.c(),_.l("design:type",Object)],gZ.prototype,"reversed",void 0);_.f([_.c(),_.l("design:type",Number)],gZ.prototype,"maxNumberOfLines",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.l("design:type",Object)],gZ.prototype,"shouldUseNumberOfLines",void 0);_.f([_.c(),_.l("design:type",Object)],gZ.prototype,"recomputeOnResize",void 0);_.f([_.BM("#content"),_.l("design:type",HTMLDivElement)],gZ.prototype,"content",void 0);_.f([_.K_("alwaysToggleable"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gZ.prototype,"alwaysToggleableChanged",null);
_.f([_.K_("isToggled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gZ.prototype,"toggledChanged",null);_.f([_.H("canToggleJobId"),_.l("design:type",Object),_.l("design:paramtypes",[])],gZ.prototype,"isResetting",null);_.f([_.OZ("reversed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gZ.prototype,"reversedChanged",null);
_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gZ.prototype,"onIronResize",null);_.f([_.OZ("maxNumberOfLines","collapsedHeight"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gZ.prototype,"observeCollapsedHeightAndMaxLines",null);_.f([_.OZ("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gZ.prototype,"collapsedChangedForBinding",null);
_.f([_.OZ("isToggled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gZ.prototype,"isToggledChangedForBinding",null);_.f([_.OZ("canToggle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gZ.prototype,"canToggleChangedForBinding",null);gZ=_.f([_.U({disableElementRegistration:!0,is:"ytd-expander"})],gZ);
_.X(gZ,"ytd-expander",function(){if(ERP!==void 0)return ERP;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ERP=W},{mode:1});var DW=function(){return _.b.apply(this,arguments)||this};
_.A(DW,_.b);DW.prototype.computeIsCarousel=function(W){return!!W.isCarousel};
DW.prototype.observeLightsourcePalette=function(){var W,P=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;P&&_.QB(this.hostElement,P)};
DW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
DW.prototype.observeLightsourcePalette=DW.prototype.observeLightsourcePalette;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],DW.prototype,"data",void 0);_.f([_.c({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],DW.prototype,"isCarousel",void 0);
_.f([_.OZ("data.vibrantsourceColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DW.prototype,"observeLightsourcePalette",null);DW=_.f([_.U({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],DW);
_.X(DW,"ytd-media-upsell-renderer",function(){if(Gj3!==void 0)return Gj3;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Gj3=W},{mode:2});var gRA;var M0=function(){var W=_.b.apply(this,arguments)||this;W.JSC$12724_playerEvents=new Map;W.listeningToPlayer=!1;W.startX=0;W.active=!1;W.shouldShowButtons=_.p("web_buttons_hidden_killswitch");W.isHighlighted=!1;W.useHighlightStyling=_.p("web_enable_deeper_metadata_highlight_styling");W.modern=_.p("kevlar_modern_sd");W.enableProblemWalkthrough=_.p("problem_walkthrough_sd");return W};
_.A(M0,_.b);_.J=M0.prototype;
_.J.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}}}}}};
_.J.created=function(){this.JSC$12724_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.WM(this,this.onRepeatButtonToggle));_.p("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.WM(this,this.onActiveUpdate))};
_.J.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.WM(this,this.onRepeatButtonToggle));_.p("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.WM(this,this.onActiveUpdate))};
_.J.onDataChanged=function(){this.removePlayerListeners()};
_.J.onColorPaletteChange=function(){var W={},P;if(_.gT()==="USER_INTERFACE_THEME_DARK"&&((P=this.data)==null?0:P.darkColorPalette)){var x=this.data.darkColorPalette;W["--ytd-macro-markers-list-item-background-color"]=_.Qy(this.get("section2Color",x))}else{var I;_.gT()==="USER_INTERFACE_THEME_LIGHT"&&((I=this.data)==null?0:I.lightColorPalette)&&(x=this.data.lightColorPalette,W["--ytd-macro-markers-list-item-background-color"]=_.Qy(this.get("section3Color",x)))}x?(W["--ytd-macro-markers-list-item-title-color"]=
_.Qy(this.get("primaryTitleColor",x)),W["--ytd-macro-markers-list-item-secondary-color"]=_.Qy(this.get("secondaryTitleColor",x)),W["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Qy(this.get("section1Color",x)),this.customButtonProperties={customColors:{color:_.Qy(this.get("primaryTitleColor",x))}},this.useColorSampling=!0):(W["--ytd-macro-markers-list-item-background-color"]="initial",W["--ytd-macro-markers-list-item-title-color"]="initial",W["--ytd-macro-markers-list-item-secondary-color"]=
"initial",W["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.qa(this.hostElement,W)};
_.J.onEndpointMouseDown=function(W){this.startX=W.clientX};
_.J.onEndpointClick=function(W){var P=this,x,I,O;return _.y(function(B){if(B.nextAddress==1){if(P.startX!==W.clientX)return W.preventDefault(),B.return();P.data&&P.ytRendererBehavior.logExplicitClick(P.data);if(!P.seekWithAnimationOnClick)return B.jumpTo(0);if(W.button!==0||W.shiftKey||W.altKey||W.metaKey||W.ctrlKey||_.Nx(_.c5(W),P.hostElement,["BUTTON".toString()]))return B.return();W.stopPropagation();W.preventDefault();return P.data?_.S(B,_.F_().getPlayerPromise(),3):B.return()}x=B.yieldResult;
O=(I=_.Q(P.data.onTap,_.U_))==null?void 0:I.startTimeSeconds;O!==void 0&&x.seekToTimeWithAnimation(O*1E3,_.kz(P.data.title));_.Kl(B)})};
_.J.computeLayout=function(W){return W};
_.J.computeIsHighlighted=function(W){return!!W};
_.J.computeCarouselType=function(W){return W};
_.J.hideModernCarousel=function(W){return this.modern&&this.hideThumbnail(W)};
_.J.hideThumbnail=function(W){return this.enableProblemWalkthrough&&W!==null&&W==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.J.onRepeatButtonToggle=function(W){var P=this;W.detail.toggled&&_.F_().getPlayerPromise().then(function(x){P.ytPlayerListenerBehavior.listenToPlayerEvents(x,P.JSC$12724_playerEvents);P.listeningToPlayer=!0})};
_.J.onLoopRangeChange=function(W){var P=_.g(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(P){var x=P.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",P.polymerController.data);if(x){var I=Number(x.endTimeMs);if(Number(x.startTimeMs)!==(W==null?void 0:W.startTimeMs)||I!==(W==null?void 0:W.endTimeMs))P.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.J.removePlayerListeners=function(){var W=this;this.listeningToPlayer&&_.F_().getPlayerPromise().then(function(P){W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(P,W.JSC$12724_playerEvents);W.listeningToPlayer=!1})};
_.J.onActiveUpdate=function(W){this.active=W.detail.active};
M0.prototype.onColorPaletteChange=M0.prototype.onColorPaletteChange;M0.prototype.onDataChanged=M0.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],M0.prototype,"ytPlayerListenerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],M0.prototype,"data",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],M0.prototype,"useCustomColors",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],M0.prototype,"active",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],M0.prototype,"shouldShowButtons",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.l("design:type",String)],M0.prototype,"layout",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.l("design:type",Object)],M0.prototype,"isHighlighted",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],M0.prototype,"useHighlightStyling",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],M0.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],M0.prototype,"enableProblemWalkthrough",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.l("design:type",String)],M0.prototype,"carouselType",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],M0.prototype,"useColorSampling",void 0);_.f([_.c(),_.l("design:type",Boolean)],M0.prototype,"seekWithAnimationOnClick",void 0);_.f([_.c(),_.l("design:type",Object)],M0.prototype,"customButtonProperties",void 0);
_.f([_.BM("#repeat-button"),_.l("design:type",HTMLElement)],M0.prototype,"repeatButton",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M0.prototype,"onDataChanged",null);_.f([_.OZ("data.lightColorPalette","data.darkColorPalette"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M0.prototype,"onColorPaletteChange",null);
M0=_.f([_.U({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],M0);
_.X(M0,"ytd-macro-markers-list-item-renderer",function(){if(gRA!==void 0)return gRA;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gRA=W},{mode:1});var Dhp;var M7M;var $t=function(){var W=_.b.apply(this,arguments)||this;W.modernTypography=_.p("web_modern_typography");return W};
_.A($t,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$t.prototype,"modernTypography",void 0);_.f([_.c(),_.l("design:type",Object)],$t.prototype,"data",void 0);$t=_.f([_.U({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],$t);
_.X($t,"ytd-title-and-button-list-header-renderer",function(){if(M7M!==void 0)return M7M;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return M7M=W},{mode:1});var $hl;var wNi=new _.Lb("BUTTON_RENDERER_WIZ_TOKEN"),heW=new _.Lb("BUTTON_RENDERER_TOKEN");_.wZ=_.kl(function(W){var P=_.FY().resolve(_.Rl(wNi));if(P)return _.u(P,Object.assign({},W));var x=_.FY().resolve(heW);return x?_.u(QPR,null,function(){return _.u(ls,null,function(){var I,O,B,Y,K,Z,d,v,m,t,C,z;return void x(W.data(),{onButtonClickCallback:W.onButtonClickCallback,shouldShowIcons:(I=W.shouldShowIcons)==null?void 0:I.call(W),icon:(O=W.icon)==null?void 0:O.call(W),processAllEndpoints:(B=W.processAllEndpoints)==null?void 0:B.call(W),preventDefault:(Y=W.preventDefault)==null?void 0:Y.call(W),
stopPropagation:(K=W.stopPropagation)==null?void 0:K.call(W),disableButtonRendererClickHandling:(Z=W.disableButtonRendererClickHandling)==null?void 0:Z.call(W),className:(d=W.className)==null?void 0:d.call(W),buttonOverrides:(v=W.buttonOverrides)==null?void 0:v.call(W),forceModernIconButton:(m=W.forceModernIconButton)==null?void 0:m.call(W),isSubscribe:(t=W.isSubscribe)==null?void 0:t.call(W),alignByText:(C=W.alignByText)==null?void 0:C.call(W),forceDisabled:(z=W.forceDisabled)==null?void 0:z.call(W)})})}):
_.u(_.qS,null)},"Y");
_.wZ.idomCompat=!0;var HYp=_.kl(function(W){var P=W.data,x=_.a7(W.useSquareAspectRatio,!1);return _.u("dismissed-mini-game-card-view-model",null,_.u(_.V,{cond:function(){var I,O;return(I=P().responseText)==null?void 0:(O=I.runs)==null?void 0:O.length},
then:function(){var I={};return _.u("div",{class:_.O4("yt-mini-game-card-view-model__dismissed-card",(I["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!x()},I["yt-mini-game-card-view-model--dismissed-square-card"]=x,I))},_.u("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.u(_.V,{cond:function(){return P().responseText.runs[0].text},
then:function(O){return _.u("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:O},O)}}),_.u(_.Ea,{data:function(){return P().buttons}},{buttonRenderer:_.wZ,
buttonViewModel:_.cq})))}}))},"Z");var UhZ=_.kl(function(W){W=_.bw(W,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var P=W.data,x=W.useFullWidth,I=W.isDesktopWeb,O=W.addSearchResultTopMargin,B=function(){return P().layout},Y=function(){return P().title},K=function(){return P().genre},Z=function(){return P().channelName},d=function(){return P().image},v=function(){return P().colorPalette},m=function(){return P().actionButton},t=function(){return P().overflowButton},C=function(){return P().avatar},
z=function(){var k={};
k=_.O4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(k["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return I()},k));
return _.u("div",{class:k},_.u(eeW,{imageData:d,colorPalette:v}),_.u(ctm,{onTap:function(){return P().onTap},
imageData:d,accessibilityText:function(){return P().accessibilityText},
overlayBadgeText:function(){return P().overlayBadgeText},
iconName:function(){return P().iconName},
unplayableInlinePlaybackIconName:function(){return P().unplayableInlinePlaybackIconName},
isDesktopWeb:I}),_.u(_.V,{cond:function(){return!I()},
then:function(){return _.u(_.qS,null,_.u(aXW,{layout:B,colorPalette:v,isDesktopWeb:I,overflowButton:t,avatar:C,onTap:function(){return P().onTap},
genre:K,title:Y,channelName:Z,entityRedesignExperiments:function(){return P().entityRedesignExperiments}}),_.u(hT,{actionButton:m}))}}))},D=function(){var k={};
k=_.O4((k["yt-mini-game-card-view-model--search-result-desktop"]=function(){return I()},k["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!I()},k["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return O()},k));
return _.u("div",{class:k},z(),_.u(bYk,{description:function(){return P().description},
isDesktopWeb:I,title:Y,genre:K,onTap:function(){return P().onTap},
actionButton:m,overflowButton:t,avatar:C,channelName:Z}))},w=function(){var k=function(){var N;
return(N=P().entityRedesignExperiments)==null?void 0:N.changePlayablesLayoutWithCta},T={};
T=_.O4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(T["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return k()},T["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return I()},T["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return I()&&P().width===135},T["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return I()},T["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!k()&&I()&&P().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},T["yt-mini-game-card-view-model--big-metadata-font"]=function(){return P().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},T["yt-mini-game-card-view-model--use-full-width"]=function(){return x()},T["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!m()},T));
return _.u("div",{class:T},_.u(_.V,{cond:function(){return k()},
then:function(){return _.u(_.qS,null,_.u(kjd,{entityRedesignExperiments:function(){return P().entityRedesignExperiments},
colorPalette:v,isDesktopWeb:I,onTap:function(){return P().onTap},
accessibilityText:function(){return P().accessibilityText},
overlayBadgeText:function(){return P().overlayBadgeText},
iconName:function(){return P().iconName},
unplayableInlinePlaybackIconName:function(){return P().unplayableInlinePlaybackIconName},
actionButton:m,imageData:d}),_.u(aXW,{layout:B,colorPalette:v,isDesktopWeb:I,overflowButton:t,avatar:C,onTap:function(){return P().onTap},
genre:K,title:Y,channelName:Z,entityRedesignExperiments:function(){return P().entityRedesignExperiments}}),_.u(_.V,{cond:function(){return!!k()===!1&&m()},
then:function(){return _.u(hT,{actionButton:m})}}))},
else:function(){return _.u(_.qS,null,_.u(eeW,{imageData:d,colorPalette:v}),_.u(ctm,{onTap:function(){return P().onTap},
imageData:d,accessibilityText:function(){return P().accessibilityText},
overlayBadgeText:function(){return P().overlayBadgeText},
iconName:function(){return P().iconName},
unplayableInlinePlaybackIconName:function(){return P().unplayableInlinePlaybackIconName},
isDesktopWeb:I}),_.u(aXW,{layout:B,colorPalette:v,isDesktopWeb:I,overflowButton:t,avatar:C,onTap:function(){return P().onTap},
genre:K,title:Y,channelName:Z,entityRedesignExperiments:function(){return P().entityRedesignExperiments}}),_.u(hT,{actionButton:m}))}}))},a=function(){var k={};
k=_.O4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(k["yt-mini-game-card-view-model--square-card-desktop"]=function(){return I()},k["yt-mini-game-card-view-model--use-full-width"]=function(){return x()},k));
return _.u("div",{class:k},_.u(ctm,{onTap:function(){return P().onTap},
imageData:d,accessibilityText:function(){return P().accessibilityText},
overlayBadgeText:function(){return P().overlayBadgeText},
iconName:function(){return P().iconName},
unplayableInlinePlaybackIconName:function(){return P().unplayableInlinePlaybackIconName},
isDesktopWeb:I}),_.u(aXW,{layout:B,colorPalette:v,isDesktopWeb:I,overflowButton:t,avatar:C,onTap:function(){return P().onTap},
genre:K,title:Y,channelName:Z,entityRedesignExperiments:function(){return P().entityRedesignExperiments}}))};
return _.u("mini-game-card-view-model",{class:W.className},_.u(_.tQ,null,_.u(_.mk,{when:function(){return B()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return w()}),_.u(_.mk,{when:function(){return B()==="MINI_APP_LAYOUT_SQUARE"}},function(){return a()}),_.u(_.mk,{when:function(){return B()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return D()})))},"$");
UhZ.idomCompat=!0;var hT=_.kl(function(W){var P=_.a7(W.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.u(_.Ea,{data:W.actionButton},{buttonViewModel:function(x){return _.u("div",{class:P},_.u(_.cq,{data:x.data}))}})},"aa"),ctm=_.kl(function(W){var P=W.onTap;
var x=W.imageData;var I=W.accessibilityText;var O=W.overlayBadgeText;var B=W.iconName;var Y=W.unplayableInlinePlaybackIconName;W=W.isDesktopWeb;return _.u(_.vF,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:P},_.u(_.bq,{data:x,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(I==null?void 0:I())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.u(XNw,{overlayBadgeText:O,iconName:B,unplayableInlinePlaybackIconName:Y,isDesktopWeb:W}))},"ba"),XNw=_.kl(function(W){var P=W.overlayBadgeText;
var x=W.iconName;var I=W.unplayableInlinePlaybackIconName;var O=W.isDesktopWeb;return _.u("div",{class:"yt-mini-game-card-view-model__badge-container"},_.u(_.V,{cond:x,then:function(B){return _.u("div",{class:"yt-mini-game-card-view-model__badge"},_.u("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.u(_.Sy,{icon:B,className:"yt-mini-game-card-view-model__icon"}),_.u("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},P)))}}),_.u(_.V,{cond:function(){return!x()&&
P()},
then:function(){return _.u("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},P)}}),_.u(_.V,{cond:function(){return I()&&O()},
then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.u(_.Sy,{icon:I,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),eeW=_.kl(function(W){var P=W.colorPalette;
var x=W.imageData;var I=function(){return P().vibrantColorPalette?P().vibrantColorPalette.section2Color:P().sectionTwoColor};
return _.u(_.qS,null,_.u("div",{class:"yt-mini-game-card-view-model__background-base",style:_.oP({"background-color":function(){return CL(I(),"1")}})}),_.u("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.oP({"background-image":function(){return"url("+x().sources[0].url+")"}})}),_.u("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.oP({background:function(){return"linear-gradient(180deg,\n    "+CL(I(),".8")+" 0%,\n    "+CL(I(),".4")+" 25%,\n    "+CL(P().vibrantColorPalette?P().vibrantColorPalette.section4Color:P().sectionFourColor,".8")+" 100%)"}})}))},"da"),aXW=_.kl(function(W){var P=W.layout;
var x=W.colorPalette;var I=W.overflowButton;var O=W.avatar;var B=W.onTap;var Y=W.title;var K=W.channelName;var Z=W.entityRedesignExperiments;var d=W.genre;var v=function(){var t;return P()!=="MINI_APP_LAYOUT_SQUARE"&&((t=x())==null?0:t.textPrimaryColor)?"color: "+CL(x().textPrimaryColor,".7"):""},m=function(){var t;
return Z==null?void 0:(t=Z())==null?void 0:t.changePlayablesLayoutWithCta};
return _.u("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.u(_.V,{cond:O,then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__avatar"},_.u(_.Ea,{data:O},{avatarViewModel:_.DI}))}}),_.u(_.vF,{command:B,
className:"yt-mini-game-card-view-model__metadata-details"},_.u("h3",{class:"yt-mini-game-card-view-model__title",title:Y},Y),_.u(_.V,{cond:O,then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.u("span",{class:"yt-mini-game-card-view-model__genre",title:K,style:v},K),_.u("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:v},d))},
else:function(){return _.u(_.V,{cond:m,then:function(){return _.u("span",{class:"yt-mini-game-card-view-model__genre",title:d},d)},
else:function(){return _.u("span",{class:"yt-mini-game-card-view-model__genre",title:d,style:v},d)}})}})),_.u("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.u(_.Ea,{data:I},{buttonViewModel:function(t){var C=t.data;
return _.u(_.cq,{data:function(){return Object.assign({},C(),{customFontColor:m()?void 0:C().customFontColor})}})}})))},"ea"),kjd=_.kl(function(W){var P=W.entityRedesignExperiments;
var x=W.colorPalette;var I=W.isDesktopWeb;var O=W.onTap;var B=W.accessibilityText;var Y=W.overlayBadgeText;var K=W.iconName;var Z=W.unplayableInlinePlaybackIconName;var d=W.actionButton;W=W.imageData;var v=function(){var m;return P==null?void 0:(m=P())==null?void 0:m.changePlayablesLayoutWithCta};
return _.u("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.u(eeW,{imageData:W,colorPalette:x}),_.u(ctm,{onTap:O,imageData:W,accessibilityText:B,overlayBadgeText:Y,iconName:K,unplayableInlinePlaybackIconName:Z,isDesktopWeb:I}),_.u(_.V,{cond:function(){return(v==null?void 0:v())&&(d==null?void 0:d())},
then:function(){return _.u(hT,{actionButton:d})}}))},"fa"),bYk=_.kl(function(W){var P=W.description;
var x=W.isDesktopWeb;var I=W.title;var O=W.genre;var B=W.onTap;var Y=W.actionButton;var K=W.overflowButton;var Z=W.avatar;W=W.channelName;var d={};d=_.O4("yt-mini-game-card-view-model--search-result-metadata-wrapper",(d["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=x,d["yt-mini-game-card-view-model--show-unplayable-on-hover"]=x,d["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!x()},d));
var v={};v=_.O4("yt-mini-game-card-view-model__search-result-info-row",(v["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!x()},v));
return _.u("div",{class:d},_.u("div",{class:v},_.u(_.vF,{command:B,className:"yt-mini-game-card-view-model__metadata-details"},_.u("h3",{class:"yt-mini-game-card-view-model__title",title:I},I),_.u("span",{class:"yt-mini-game-card-view-model__genre",title:O},O)),_.u(hT,{actionButton:Y,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.u("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.u(_.Ea,{data:K},{buttonViewModel:_.cq}))),_.u("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.u("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.u("div",{class:"yt-mini-game-card-view-model__avatar"},_.u(_.Ea,{data:Z},{avatarViewModel:function(m){var t=m.data;return _.u(_.DI,{data:function(){return Object.assign({},t(),{avatarImageSize:x()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.u(_.vF,{command:B,
className:"yt-mini-game-card-view-model__description"},_.u("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},W)),_.u(_.vF,{command:B,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.u("div",null)))),_.u(_.V,{cond:x,then:function(){return _.u(_.vF,{command:B,className:"yt-mini-game-card-view-model__description"},P)}}))},"ga");_.lq(UhZ,"mini-game-card-view-model",{props:{data:_.cv,className:_.cv,useFullWidth:_.cv,isDesktopWeb:_.cv,addSearchResultTopMargin:_.cv}});_.lq(HYp,"dismissed-mini-game-card-view-model",{props:{data:_.cv,useSquareAspectRatio:_.cv}});var Hg=function(){var W=_.b.apply(this,arguments)||this;W.isSearch=!1;W.isRichGrid=!1;return W};
_.A(Hg,_.b);_.J=Hg.prototype;_.J.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.J.dismissibleItemOnYtServiceRequestSent=function(W,P){P.actions&&this.dismissibleItemProcessActions(W,P.actions)};
_.J.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.J.dataChanged=function(){this.dismissibleItemReset()};
_.J.dismissibleItemProcessActions=function(W,P){for(var x=0;x<P.length;x++){var I=P[x];_.Q(I,_.tc)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.Q(I,_.tc)),W.stopPropagation())}};
_.J.dismissibleItemHandleReplaceEnclosingAction=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0};
_.J.experimentalPropertiesChanged=function(){_.p("kevlar_mini_game_card_c3po_to_wiz")||this.ytIdomTemplatingBehavior.debounceRender()};
_.J.renderIdom=function(){if(!_.p("kevlar_mini_game_card_c3po_to_wiz")&&this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var W=!!this.useSquareAspectRatio;cW(HYp)({data:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:W===void 0?!1:W})}else cW(UhZ)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0})};
_.N1.Object.defineProperties(Hg.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){if(!_.p("kevlar_mini_game_card_c3po_to_wiz"))return!1;var W;return!!this.data&&!((W=this.dismissedRenderer)==null?0:W.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){if(!_.p("kevlar_mini_game_card_c3po_to_wiz"))return!1;var W;return!((W=this.dismissedRenderer)==null||!W.notificationMultiActionRenderer)}}});
Hg.prototype.experimentalPropertiesChanged=Hg.prototype.experimentalPropertiesChanged;Hg.prototype.dataChanged=Hg.prototype.dataChanged;Hg.prototype.dismissibleItemOnRequestSent=Hg.prototype.dismissibleItemOnRequestSent;Hg.prototype.dismissibleItemOnYtServiceRequestSent=Hg.prototype.dismissibleItemOnYtServiceRequestSent;_.f([_.h(_.p("kevlar_mini_game_card_c3po_to_wiz")?{}:Vbl),_.l("design:type",Object)],Hg.prototype,"ytIdomTemplatingBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Hg.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Hg.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Hg.prototype,"isDismissed",void 0);_.f([_.c(),_.l("design:type",Object)],Hg.prototype,"dismissedRenderer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Hg.prototype,"isRichGrid",void 0);
_.f([_.H("data.layout"),_.l("design:type",Object),_.l("design:paramtypes",[])],Hg.prototype,"useSquareAspectRatio",null);_.f([_.H("data","dismissedRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],Hg.prototype,"showCard",null);_.f([_.H("data","dismissedRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],Hg.prototype,"showDismissed",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],Hg.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.f([_.I7("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Hg.prototype,"dismissibleItemOnRequestSent",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hg.prototype,"dataChanged",null);_.f([_.OZ("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hg.prototype,"experimentalPropertiesChanged",null);Hg=_.f([_.jd({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Hg);
_.X(Hg,"ytd-mini-game-card-view-model",function(){if($hl!==void 0)return $hl;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return $hl=W},{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var fXi;var N4l;var ep=function(){return _.lV.apply(this,arguments)||this};
_.A(ep,_.lV);ep.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
ep.prototype.getContinuationUrl=function(W){var P={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(P.itct=this.data.clickTrackingParams);return _.fX(W,P)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ep.prototype,"data",void 0);ep=_.f([_.jd({is:"yt-reload-continuation",noInjection:!0})],ep);var lXk;var T4i;var cg=function(){var W=_.b.apply(this,arguments)||this;W.notificationData={};return W};
_.A(cg,_.b);_.J=cg.prototype;_.J.isMenuExpanded=function(W){return W&&W.length<=1?"undefined":"false"};
_.J.dataChanged_=function(){this.selected=void 0;var W=this.computeSelectedIndex_(this.data);W>=0&&(this.selected=W);W=this.data&&this.data.length>1;_.iS(this.hostElement,"has-items",W);_.g(this.hostElement).querySelector("#label").tabIndex=W?0:-1};
_.J.onDropdownOpen=function(){var W=_.E_();if(this.parentTrackingParams&&this.data){var P=_.ox(this.parentTrackingParams);this.data.forEach(function(x){W&&P&&x.trackingParams&&(x=_.ox(x.trackingParams),_.hn(W,P,x),_.c7(W,[x]))})}else this.parentTrackingParams||_.ge(new _.mW("No parent tracking params passed in for yt-dropdown-menu."))};
_.J.hasNotification=function(W){var P;if(W.targetId&&((P=this.notificationData)==null?0:P.targetId)){var x;return W.targetId===((x=this.notificationData)==null?void 0:x.targetId)}};
_.J.computeSelectedIndex_=function(W){if(W)for(var P=0,x=W.length;P<x;P++)if(W[P].selected)return P;return-1};
_.J.computeLabel_=function(W){return this.data&&W!=void 0?this.data[W].title:""};
_.J.computeShowIcon_=function(W,P){return!P&&!!W};
_.J.computeVerticalOffset_=function(W){return W?36:0};
_.J.computeEndpoint_=function(W){return W.endpoint||W.navigationEndpoint};
_.J.onLabelClick_=function(W){this.data&&this.data.length<=1?W.stopPropagation():this.menuExpanded="true"};
_.J.onIronActivate_=function(W){W=W.detail.item;var P=_.g(this.hostElement).querySelector("#repeat").itemForElement(W);if(P&&P.trackingParams){var x=_.E_(),I=_.ox(P.trackingParams);x&&_.bB(x,I)}if(P&&P.serviceEndpoint)_.p("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(P.serviceEndpoint):_.Iu(this.hostElement,[P.serviceEndpoint]),_.Lf(this.hostElement,"yt-playlist-reloading");else a:{if((P=W.querySelector("yt-supported-renderers"))&&(P=
P.rendererElement)&&P.is=="yt-reload-continuation"){P.trigger();break a}(W=W.querySelector("yt-reload-continuation"))&&W.trigger()}};
_.J.onTap_=function(W){W.preventDefault()};
_.J.onItemTap_=function(W){this.ytEndpointBehavior.onEndpointTap_(W)};
_.J.onLinkFocus_=function(W){try{var P=W.target}catch(I){}if(P){var x=P.querySelector("tp-yt-paper-item");x&&_.De(this,"focus",function(){x.focus()})}};
_.J.onMenuClose_=function(){this.menuExpanded="false"};
_.J.isLabelIconActive_=function(W){return W==="true"};
_.J.computeHasSubtitle_=function(W){return!!W};
_.J.computeHrefForItem_=function(W){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(W))};
_.J.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
_.N1.Object.defineProperties(cg.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
cg.prototype.onMenuClose_=cg.prototype.onMenuClose_;cg.prototype.onTap_=cg.prototype.onTap_;cg.prototype.onIronActivate_=cg.prototype.onIronActivate_;cg.prototype.onDropdownOpen=cg.prototype.onDropdownOpen;cg.prototype.dataChanged_=cg.prototype.dataChanged_;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],cg.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.IM.YtEndpointBehavior),_.l("design:type",Object)],cg.prototype,"ytEndpointBehavior",void 0);
_.f([_.c(),_.l("design:type",Array)],cg.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],cg.prototype,"parentTrackingParams",void 0);_.f([_.c(),_.l("design:type",Object)],cg.prototype,"selected",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],cg.prototype,"useLabel",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],cg.prototype,"useComputedAriaLabel",void 0);_.f([_.c(),_.l("design:type",String)],cg.prototype,"icon",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],cg.prototype,"iconLabel",void 0);_.f([_.c(),_.l("design:type",String)],cg.prototype,"ariaLabel",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],cg.prototype,"disabled",void 0);_.f([_.c({computed:"isMenuExpanded(data)"}),_.l("design:type",String)],cg.prototype,"menuExpanded",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],cg.prototype,"closeOnActivate",void 0);
_.f([_.c({reflectToAttribute:!0,value:_.p("web_modern_buttons")}),_.l("design:type",Boolean)],cg.prototype,"modernButtons",void 0);_.f([_.c(),_.l("design:type",Object)],cg.prototype,"notificationData",void 0);_.f([_.H("ariaLabel, selected"),_.c(),_.l("design:type",String),_.l("design:paramtypes",[])],cg.prototype,"computedAriaLabel",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cg.prototype,"dataChanged_",null);
_.f([_.I7("paper-dropdown-open"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],cg.prototype,"onDropdownOpen",null);_.f([_.I7("iron-activate"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],cg.prototype,"onIronActivate_",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],cg.prototype,"onTap_",null);
_.f([_.I7("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],cg.prototype,"onMenuClose_",null);cg=_.f([_.jd({is:"yt-dropdown-menu",disableElementRegistration:!0})],cg);
_.X(cg,"yt-dropdown-menu",function(){if(T4i===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;lXk===void 0&&(lXk=document.createElement("template"));var I=lXk;x.call(P,I.content.cloneNode(!0),W.content.firstChild);T4i=W}W=T4i;return W},{mode:2});var a8=function(){var W=_.b.apply(this,arguments)||this;W.hasNotification=!1;return W};
_.A(a8,_.b);a8.prototype.computeId=function(W){return W};
a8.prototype.computeHorizontalAlign=function(W){return W?"right":"left"};
a8.prototype.computeAccessibilityLabel=function(W){var P,x;return((P=W.accessibility)==null?void 0:(x=P.accessibilityData)==null?void 0:x.label)||null};
a8.prototype.notificationDataChanged=function(){var W;this.hasNotification=!!this.notificationData&&!((W=this.data)==null?0:W.icon)};
a8.prototype.notificationDataChanged=a8.prototype.notificationDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.E3.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],a8.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],a8.prototype,"data",void 0);_.f([_.c({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",String)],a8.prototype,"id",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],a8.prototype,"isRightAligned",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],a8.prototype,"disabled",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],a8.prototype,"closeOnActivate",void 0);_.f([_.c(),_.l("design:type",Object)],a8.prototype,"notificationData",void 0);_.f([_.c(),_.l("design:type",Object)],a8.prototype,"hasNotification",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],a8.prototype,"useComputedAriaLabel",void 0);_.f([_.OZ("notificationData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a8.prototype,"notificationDataChanged",null);a8=_.f([_.jd({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],a8);
_.X(a8,"yt-sort-filter-sub-menu-renderer",function(){if(N4l===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;fXi===void 0&&(fXi=document.createElement("template"));var I=fXi;x.call(P,I.content.cloneNode(!0),W.content.firstChild);N4l=W}W=N4l;return W},{mode:2});_.ql(Kj7);
var rtz=_.kl(function(W){var P=W.children;var x=W.className;var I=W.style;var O=W.role;var B=W.ariaSelected;var Y=W.ariaLabel;var K=W.ariaHidden;var Z=W.ariaLabelledby;var d=W.ariaDescribedby;var v=W.command;var m=W.elementsCommand;var t=W.forceNewState;var C=W.tabIdentifier;var z=W.target;var D=W.tabIndex;var w=W.stopPropagation;W=_.Sj(function(){var a=_.Gm({innertubeCommand:v==null?void 0:v(),elementsCommand:m==null?void 0:m(),forceNewState:t==null?void 0:t(),stopPropagation:(w==null?void 0:w())!==
!1});a||(a={});a["aria-hidden$"]=K==null?void 0:K();var k;a.tabindex$=(k=D==null?void 0:D())!=null?k:a.tabindex$;var T;a["force-new-state$"]=(T=t==null?void 0:t())!=null?T:a["force-new-state$"];var N;a.role$=(N=O==null?void 0:O())!=null?N:a.role$;var Io;a["aria-hidden$"]=(Io=K==null?void 0:K())!=null?Io:a["aria-hidden$"];var F;a.target$=(F=z==null?void 0:z())!=null?F:a.target$;return a},void 0,"SU0Mnc");
return _.u(_.vF,{aTagConfig:W,className:x,style:I,ariaLabel:Y,ariaLabelledby:Z,ariaDescribedby:d,ariaSelected:B,tabIdentifier:C},P)},"ha");var iYm=_.nE(Z8A);_.ql(Z8A);_.lq(iYm,"place-data-view-model",{props:{data:_.cv}});var Rel=new _.Lb("INLINE_PLAYBACK_HOOK_TOKEN");var AOx=function(W){this.setActiveSlideIndex=W;this.jobIds=[];this.isSlideshowPlaying=!1},Glm=function(W){if(W.isSlideshowPlaying){W.isSlideshowPlaying=!1;
for(var P=W.jobIds,x=0,I=P.length;x<I;x++)_.Gr.cancelJob(P[x]);W.jobIds.length=0}},zqU=function(W,P){W.isSlideshowPlaying||(W.isSlideshowPlaying=!0,Fdm(W),qKc(W,P,0))},Fdm=function(W){_.Fo(_.Gr,function(){W.setActiveSlideIndex(0)},1)},qKc=function(W,P,x){W.jobIds.push(_.Fo(_.Gr,function(){var I=x<P-1?x+1:0;
W.setActiveSlideIndex(I);qKc(W,P,I)},1800))};var mkt=new _.Lb("IMAGE_ON_LOAD_HANDLER_TOKEN");var Ldp=_.kl(function(W){return _.u("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.u(_.V,{cond:function(){var P;return(P=W.data())==null?void 0:P.thumbnail},
then:function(P){return _.u(_.bq,{data:P,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.bW=_.kl(function(W){var P=W.data;var x=W.lockupExperiments;W={};return _.u("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.u("div",{class:_.O4("ytThumbnailOverlayButtonViewModelButton",(W.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var I;return x&&((I=x())==null?void 0:I.useLegacySizedIconButton)},W))},_.u(_.Ea,{data:function(){return P().overlayButton}},{buttonViewModel:function(I){return _.u(_.cq,{data:I.data,
buttonOverrides:function(){var O;return x&&((O=x())==null?0:O.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.bW.idomCompat=!0;var Wjm=_.kl(function(W){var P=_.yB(function(x){x.preventDefault();return!1});
return _.u("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":P},_.u(_.Ea,{data:function(){return W.data().buttons}},{toggleButtonViewModel:function(x){return _.u("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.u(_.MI,{data:x.data}))}}))},"ka");
Wjm.idomCompat=!0;var PNz=_.kl(function(W){var P=function(){var x;return((x=_.Q(W.data().rendererContext,_.TS))==null?void 0:x.label)||""};
return _.u("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.u(_.V,{cond:function(){return W.data().image},
then:function(){return _.u("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.u(_.bq,{data:function(){return W.data().image},
alt:P}))}}),_.u(_.V,{cond:function(){return W.data().text},
then:function(){return _.u("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return W.data().text})}}))},"la");var tro=_.CC({thumbnailOverlayTitleViewModel:ZYW,thumbnailOverlayBadgeViewModel:SKW,thumbnailBottomOverlayViewModel:IX3,thumbnailOverlayFullViewModel:PNz,thumbnailOverlayButtonViewModel:_.bW}),pSR=_.CC({thumbnailHoverOverlayViewModel:JtZ,thumbnailHoverOverlayToggleActionsViewModel:Wjm}),jU8=_.CC({animatedThumbnailOverlayViewModel:Ldp});_.ql(QUd);var xkM,IYw;xkM=_.kl(function(W){var P=[],x=function(){var t,C;return T4((t=W.width)==null?void 0:t.call(W),(C=W.height)==null?void 0:C.call(W))},I=_.FY().resolve(_.Rl(mkt)),O=_.fa(function(){P.push("elRef.value set");
var t;(t=W.playbackRef)==null||t.call(W,{thumbnailElRef:O,thumbnail:W.data().image,thumbnailOverlays:W.data().overlays,thumbnailSize:x()})});
_.AQ(function(){P.push("onInit");_.C4(function(){P.push("onCleanup")})});
var B=_.G4(SEU),Y=function(){var t,C;return(C=(t=W.aspectRatio)==null?void 0:t.call(W))!=null?C:0},K=function(){return(W.data().image?_.msd(W.data().image):Y())<=1&&Y()===0},Z=function(){return K()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},d=function(){O.value||_.ge(new _.mW("Thumbnail elRef.value is null",P.join("\n")));
I&&O.value&&I(O.value)},v=function(){var t,C;
return((t=W.hovered)==null?void 0:t.call(W))&&x()!=="large"&&((C=W.data().overlays)==null?void 0:C.some(function(z){return _.Q(z,VrR)}))},m={};
return _.u("yt-thumbnail-view-model",{class:_.O4("yt-thumbnail-view-model",W.className,function(){return CNC(Y())},function(){var t,C;
a:{var z=x(),D=(t=W.disableRounding)==null?void 0:t.call(W);t=(C=W.isClip)==null?void 0:C.call(W);if(!D&&!t)switch(z){case "large":C="yt-thumbnail-view-model--large";break a;case "small":C="yt-thumbnail-view-model--small";break a;default:C="yt-thumbnail-view-model--medium";break a}C=void 0}return C},(m["yt-thumbnail-view-model--cinematic"]=K,m)),
style:_.oP({"background-color":function(){var t,C=K()?(t=W.data().backgroundColor)==null?void 0:t.lightTheme:void 0;return C?CL(C,"1"):void 0}}),
el:O},_.u(_.V,{cond:K,then:function(){return _.u("div",{class:"yt-thumbnail-view-model__blurred-image"},_.u(_.bq,{data:function(){return W.data().image},
alt:"",contentMode:Z,targetWidth:W.width,onload:d}))}}),_.u("div",{class:"yt-thumbnail-view-model__image"},_.u(_.bq,{data:function(){return W.data().image},
alt:"",contentMode:Z,targetWidth:W.width,onload:d}),null),_.u(_.Ea,{data:function(){return v()?void 0:W.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:oRM,thumbnailOverlayBadgeViewModel:function(t){return _.u(SKW,{data:t.data,thumbnailSize:x,isClip:W.isClip})},
thumbnailBottomOverlayViewModel:IX3,thumbnailOverlayFullViewModel:PNz,thumbnailOverlayButtonViewModel:function(t){return _.u(_.bW,{data:t.data,lockupExperiments:W.lockupExperiments})}}),_.u(_.Ea,{data:function(){var t;
return((t=W.hovered)==null?0:t.call(W))?W.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(t){return _.u(B4z,{data:t.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Wjm}),_.u(_.Ea,{data:function(){var t;return((t=W.hovered)==null?0:t.call(W))&&B()?W.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Ldp}),_.u(_.V,{cond:W.isClip,then:function(){return sUR()}}))},"ma");
IYw=_.p("web_enable_sink_lockups_batch")?xkM:QUd;_.kt=_.p("web_enable_sink_lockups_batch")?xkM:_.nE(IYw,{callbacks:{playbackRef:!0}});xkM.idomCompat={callbacks:{playbackRef:!0}};var Epx=_.CC({thumbnailViewModel:IYw});_.ql(gpU);var O8d=_.kl(function(W){var P=_.n(_.YV(-1,void 0,"GEkecf")),x=P.next().value,I=P.next().value;_.AQ(function(){var O=new AOx(I);zqU(O,W.data().thumbnails.length);_.C4(function(){Glm(O)})});
return _.u("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.u(_.Ea,{data:function(){return W.data().thumbnails}},{thumbnailViewModel:function(O,B){return _.u("div",{class:function(){var Y=!W.data().primaryThumbnail,K=B(),Z=x(),d=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
Y&&K===0&&d.push("yt-collection-thumbnail-slideshow--first-slide");K<=Z&&d.push("yt-collection-thumbnail-slideshow--show-slide");return d.join(" ")}},_.u(_.kt,{data:O.data,
disableRounding:W.disableRounding}))}}))},"na"),hqt=_.p("web_enable_sink_lockups_batch")?O8d:gpU,JOc=_.p("web_enable_sink_lockups_batch")?O8d:_.nE(gpU);
O8d.idomCompat=!0;var Dkd=new _.Lb("DWELL_DETECTOR_REGISTRY_TOKEN");var wS8=_.CC({thumbnailViewModel:IYw});_.ql(H8S);var npi=_.kl(function(W){var P=$kR(W.triggeringElement),x=function(){return!!W.data().primaryThumbnail};
return _.u("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.u(Brl,{stackEnabled:x,thumbnailSize:function(){var I,O;return T4((I=W.width)==null?void 0:I.call(W),(O=W.height)==null?void 0:O.call(W))},
doubleStack:W.doubleStack,stackColor:function(){return W.data().stackColor}},_.u("div",null,_.u(_.Ea,{data:function(){return W.data().primaryThumbnail}},{thumbnailViewModel:function(I){var O={};
return _.u(_.kt,{data:I.data,width:W.width,height:W.height,aspectRatio:W.aspectRatio,disableRounding:W.disableRounding,className:_.O4((O["yt-collection-thumbnail-view-model--has-stacks"]=x,O)),hovered:W.hovered,playbackRef:W.playbackRef})}}),_.u(_.V,{cond:function(){var I;
return P()&&((I=W.data().thumbnails)==null?void 0:I.length)},
then:function(){return _.u("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.u(JOc,{data:W.data,disableRounding:function(){return!x()}}))}}))))},"oa"),YEZ=_.p("web_enable_sink_lockups_batch")?npi:_.nE(H8S,{callbacks:{playbackRef:!0}});
npi.idomCompat={callbacks:{playbackRef:!0}};
var Brl=_.kl(function(W){var P=W.children;var x=W.stackEnabled;var I=W.thumbnailSize;var O=W.doubleStack;var B=W.stackColor;var Y,K=(Y=_.FY().resolve(_.Rl(_.hF)))==null?void 0:Y();return _.u(_.V,{cond:x,then:function(){return _.u($di,{data:function(){var Z,d;return{experimentEnabled:!0,thumbnailSize:I(),doubleStack:O==null?void 0:O(),color:K?B==null?void 0:(Z=B())==null?void 0:Z.darkTheme:B==null?void 0:(d=B())==null?void 0:d.lightTheme,enableResponsiveMode:!1}}},P)},
else:function(){return P}})},"pa");var yOm=new _.Lb("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var X7;_.U$={calledOnce:!0,state:"visible"};X7={calledOnce:!0,state:"hidden"};_.fr=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;var I=W.className;var O=W.delayedClassName;W=W.animationEntityKey;var B=_.fa(),Y=_.a7(W,""),K=_.dp(h4G,Y),Z=function(){var F,nm;return(nm=(F=K())==null?void 0:F.value)!=null?nm:!1},d=function(){_.cM(_.mG("booleanEntity",Y(),{key:Y(),
value:!0}));a=void 0};
W=_.n(_.Zh(Z));var v=W.next().value,m=W.next().value;W=_.n(_.Zh(Z));var t=W.next().value,C=W.next().value;W=_.n(_.Zh(function(){var F;return Z()?(F=P().styleTransitionConfig)==null?void 0:F.destinationStyle:void 0}));
var z=W.next().value,D=W.next().value,w=function(){var F=Object.assign({},P(),z()&&{style:z()}),nm,pm,zR=F.label,Am=(nm=F.interaction)==null?void 0:(pm=nm.accessibility)==null?void 0:pm.label;nm=F.iconImage?F.label&&F.label.content?F.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:zR,accessibilityLabel:Am,style:b8R(F.style),type:klR(F.style),state:"active",size:aYC(F.size),iconPosition:nm,disabled:!1,aTagConfig:cOU(F,x)}},a;
_.FL(B,{visibilityCallback:function(F){var nm,pm=(nm=P().interaction)==null?void 0:nm.onFirstVisible;F&&pm&&_.D1(pm)},
showOption:_.U$});var k=function(){return uh(w(),!!P().iconImage)};
I=_.O4(function(){return"ytwAdButtonViewModelHost"},function(){return P().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var F=!!P().delayedAppearanceConfig,nm=v();
return F?nm?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var F=!!P().delayedAppearanceConfig,nm=t();
return F?nm?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!P().delayedAppearanceConfig||v()?O==null?void 0:O():""},I!=null?I:"");
var T=function(){var F,nm=(F=P().delayedAppearanceConfig)==null?void 0:F.delayedInvisibleSeconds;nm&&(a=_.pC(_.Gr,function(){m(!0);N()},nm*1E3))},N=function(){var F,nm=(F=P().delayedAppearanceConfig)==null?void 0:F.delayedVisibleSeconds;
nm&&(a=_.pC(_.Gr,function(){C(!0);Io()},nm*1E3))},Io=function(){var F,nm=(F=P().styleTransitionConfig)==null?void 0:F.styleTransitionSeconds,pm,zR=(pm=P().styleTransitionConfig)==null?void 0:pm.destinationStyle;
nm&&zR?a=_.pC(_.Gr,function(){D(zR);d()},nm*1E3):d()};
_.AQ(function(){var F;((F=P().delayedAppearanceConfig)==null?0:F.transitionDurationSeconds)&&B.value.style.setProperty("transition-duration",P().delayedAppearanceConfig.transitionDurationSeconds+"s");T()});
_.C4(function(){a&&_.Gr.cancelJob(a)});
return _.u("ad-button-view-model",{class:I,el:B},_.u(_.V,{cond:w,then:function(){return _.u(PO,{data:w,icon:function(){return _.u(_.V,{cond:function(){return P().iconImage},
then:function(F){return _.u(_.bq,{data:F,alt:"",targetWidth:k,targetHeight:k,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var Kjb=_.kl(function(W){var P=W.data;W=_.fa();_.FL(W,{visibilityCallback:function(x){var I,O=(I=P().interaction)==null?void 0:I.onFirstVisible;x&&O&&_.D1(O)},
showOption:_.U$});return _.u("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:W},_.u("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.u(_.Ea,{data:function(){return P().secondaryAdButton}},{adButtonViewModel:function(x){return _.u(_.fr,{data:x.data})}})),_.u("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.u(_.Ea,{data:function(){return P().primaryAdButton}},{adButtonViewModel:function(x){return _.u(_.fr,{data:x.data})}})))},"ra");var Z83=_.kl(function(W){var P=function(){var x;return((x=W.data())==null?void 0:x.answers)||[]};
return _.u("yt-survey-icons",{class:"ytSurveyIconsHost"},_.u("div",{class:"ytSurveyIconsHeader"},_.u("div",{class:"ytSurveyIconsTitle"},function(){var x;return(x=W.data())==null?void 0:x.text}),_.u("div",null,_.u(PO,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var x;(x=W.onDismiss)==null||x.call(W)}}},
iconName:"DISMISSAL"}))),_.u("div",null,_.u("div",{class:"ytSurveyIconsAnswers"},_.u(_.sV,{each:function(){return P()},
keyBy:"INDEX"},function(x,I){return _.u("div",null,_.u(PO,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var O;(O=W.onSelect)==null||O.call(W,x(),I)}}},
icon:function(){return _.u(_.Sy,{icon:function(){var O,B;return(O=x())==null?void 0:(B=O.icon)==null?void 0:B.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.u("div",{class:"ytSurveyIconsAnswersText"},_.u("div",null,function(){return P().length?P()[0].text:""}),_.u("div",null,function(){return P().length?P()[P().length-1].text:""}))))},"sa");var opz=_.kl(function(W){var P=_.n(_.YV(!1,void 0,"s8HkOb")),x=P.next().value,I=P.next().value,O=_.dp(Wdm,function(){var K;return(K=W.data().keys)==null?void 0:K.surveyEntityKey}),B=_.dp(PfW,function(){var K;
return(K=W.data().keys)==null?void 0:K.surveyStateEntityKey});
_.XL("ytd-slimline-survey-show-action",function(){I(!1)});
var Y=function(){var K,Z;var d=(K=B())==null?void 0:(Z=K.questionStack)==null?void 0:Z[0];if(d!==void 0){var v,m;return(v=O())==null?void 0:(m=v.questions)==null?void 0:m[d]}};
P={};return _.u("yt-slimline-survey-view-model",{class:_.O4("ytSlimlineSurveyViewModelHost",(P.ytSlimlineSurveyViewModelCollapsed=function(){return x()},P))},_.u("div",{class:"ytSlimlineSurveyViewModelContainer"},_.u(_.V,{cond:function(){var K;
return((K=Y())==null?void 0:K.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.u(Z83,{data:function(){return Y()},
onSelect:function(K,Z){var d,v;return _.y(function(m){I(!0);if(v=(d=W.data())==null?void 0:d.onSelectRating)_.D1(v),_.cM(z9l(Z));_.Kl(m)})},
onDismiss:function(){I(!0)}})}})))},"ta");var SEc=_.kl(function(W){return _.u("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.u(_.Ea,{data:function(){var P;return(P=W.data())==null?void 0:P.attachments}},{flexibleActionsViewModel:function(P){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(lUk,{data:P.data,
layout:function(){var x;return((x=W.lockupStyle())==null?void 0:x.arrangement)===1?0:1},
justifyContentOverride:function(){var x;return((x=W.lockupStyle())==null?void 0:x.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(P){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(opz,{data:P.data}))},
expandableMetadataViewModel:function(P){P=P.data;var x;return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},(x=_.FY().resolve(_.Rl(yOm)))==null?void 0:x({data:P}))},
adButtonGroupViewModel:function(P){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(Kjb,{data:P.data}))}}))},"ua");var TrU=_.Wi("rich_grid_min_item_width",310),Nrt=_.Wi("rich_grid_max_item_width",500);var JD8=_.kl(function(W){var P=W.data;return _.u("br-nz-badge-shape",{class:_.O4(function(){return PKW(P().brNzRatingBadgeType)}),
role:function(){return P().accessibilityText?"img":void 0},
"aria-label":function(){return P().accessibilityText}},function(){var x;
return(x=P())==null?void 0:x.text})},"va");_.ql(Bsm);var uEc,qG8;uEc=_.kl(function(W){var P=function(){var x=W.data(),I,O;return x?Oyd(x,!((I=W.workaroundShortsIsThumbnailBadge)==null||!I.call(W)),(O=W.modern)==null?void 0:O.call(W)):void 0};
return _.u("yt-badge-view-model",{class:_.O4("yt-badge-view-model-wiz",W.class)},_.u(_.tQ,null,_.u(_.mk,{when:function(){var x;return!((x=P())==null||!x.brNzRatingBadgeType)}},function(){return _.u(JD8,{data:function(){return P()}})}),_.u(_.mk,{when:function(){return!!P()&&!P().brNzRatingBadgeType}},function(){return _.u(_.qI,{data:function(){return P()}})})))},"wa");
qG8=_.p("web_enable_sink_yt_badge_view_model")?uEc:Bsm;_.N0=_.p("web_enable_sink_yt_badge_view_model")?uEc:_.nE(Bsm);uEc.idomCompat=!0;var Ysx,nEU;Ysx=16/9;nEU=2/3;_.lW=_.kl(function(W){var P=W.data;var x=W.className;var I=W.imageSizeConfig;var O=W.notifyOnLoaded;W=_.fa();var B=function(){return P().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Y=function(){var v;
return _.fC((v=P())==null?void 0:v.rendererContext)},K={};
K=(K["yt-content-preview-image-view-model-wiz"]=!0,K["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return B()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},K["yt-content-preview-image-view-model-wiz--tappable"]=function(){return Y()},K);
var Z=function(){var v,m;return(m=(v=_.Q(P().rendererContext,_.TS))==null?void 0:v.label)!=null?m:""},d=function(){return K$G(P())};
_.NI(W,function(){var v;return(v=P())==null?void 0:v.rendererContext});
return _.u("yt-content-preview-image-view-model",{el:W,role:function(){return Y()?"link":void 0},
tabindex:function(){return Y()?0:void 0},
class:_.O4(x,K,function(){var v=B();var m=I==null?void 0:I();v=v==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||v==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||v==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||v==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(m==null?void 0:m.size)!=null&&m.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(m==null?void 0:m.size)!=null&&m.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return v}),
style:function(){return yDm(B(),P().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",I==null?void 0:I(),ZyR(d()),P().layoutWidth,P().layoutHeight)}},_.u(_.V,{cond:d,
then:function(v){return _.u(_.bq,{data:v,alt:Z,"data-disabled$":function(){return!Z()},
notifyOnLoaded:O})}}),_.u(_.Ea,{data:function(){var v;
return(v=P())==null?void 0:v.overlays}},{thumbnailHoverOverlayViewModel:B4z,
thumbnailOverlayButtonViewModel:_.bW}))},"xa");
_.lW.idomCompat=!0;var T5=_.kl(function(W){var P=W.data;var x=W.className;var I=W.useSmallLayout;var O=W.useMediumText;W=_.fa();var B={};O=(B["yt-attribution-view-model-wiz"]=!0,B["yt-attribution-view-model-wiz--medium-text"]=O,B);_.NI(W,function(){var Y;return(Y=P())==null?void 0:Y.rendererContext});
return _.u("yt-attribution-view-model",{el:W,class:_.O4(x,O)},_.u(_.V,{cond:function(){return _.fC(P().rendererContext)},
then:function(){return _.u("button",{class:"yt-attribution-view-model-wiz--tappable"},_.u(dkM,{data:P,useSmallLayout:I}))},
else:function(){return _.u(dkM,{data:P,useSmallLayout:I})}}))},"ya"),dkM=_.kl(function(W){var P=W.data;
var x=W.useSmallLayout;var I=function(){return{size:(x==null?0:x())?16:24}};
return _.u(_.qS,null,_.u(_.Ea,{data:function(){return P().contentPreviewImage}},{contentPreviewImageViewModel:function(O){return _.u(_.lW,{data:O.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:I})}}),_.u(_.Ea,{data:function(){return P().badge}},{badgeViewModel:function(O){return _.u(_.N0,{data:O.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.u(_.V,{cond:function(){return P().text},
then:function(){return _.u(_.mQ,{text:function(){return P().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.u(_.V,{cond:function(){return P().suffix},
then:function(){return _.u(_.mQ,{text:function(){return P().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
T5.idomCompat=!0;var me8=_.CC({avatarStackViewModel:_.VA,badgeViewModel:qG8});_.ql(p$8);var sUP,vpZ,mkl,VrP,trW,pSP,jUz;sUP=_.kl(function(W){var P=W.delimiter;var x=W.max;var I=W.index;var O=W.isStandalone;return _.u(_.V,{cond:function(){return x()-1>I()},
then:function(){var B={};return _.u("span",{class:_.O4("yt-content-metadata-view-model-wiz__delimiter",(B["yt-content-metadata-view-model-wiz__delimiter--standalone"]=O,B)),"aria-hidden":!0},P)}})},"Aa");
vpZ=_.kl(function(W){var P=W.metadataPart;var x=W.maxLines;return _.u(_.mQ,{text:function(){return P().text},
linkInheritColor:!0,className:function(){return jBm(x())},
userInput:!0})},"Ba");
mkl=_.kl(function(W){var P=W.metadataPart;var x=W.maxLines;return _.u(_.V,{cond:function(){return P().tooltip},
then:function(I){return _.u("span",{title:I,role:"tooltip"},_.u(vpZ,{metadataPart:P,maxLines:x}))},
else:function(){return _.u(vpZ,{metadataPart:P,maxLines:x})}})},"Ca");
VrP=_.kl(function(W){var P=W.metadataPart;var x=W.isOverlay;var I=W.useMediumText;var O=W.hideAvatar;var B=function(){return P().maxLines!==void 0?P().maxLines:1};
return _.u(_.qS,null,_.u(_.Ea,{data:function(){return P().avatarStack}},{avatarStackViewModel:function(Y){return _.u(_.VA,{data:Y.data,
isOverlay:x,useMediumText:I,hideAvatar:O})},
badgeViewModel:_.N0}),_.u(_.V,{cond:function(){return P().text},
then:function(){return _.u(mkl,{metadataPart:P,maxLines:B})}}))},"Da");
trW=_.kl(function(W){var P=W.metadataRow;var x=W.isInline;var I=W.delimiter;var O=W.isOverlay;var B=W.useMediumText;var Y=W.extensions;var K=function(){var d;return Ssd(Y==null?void 0:(d=Y())==null?void 0:d.lockupMetadata,P())},Z=function(){return P().metadataParts||[]};
W={};return _.u("div",{class:_.O4("yt-content-metadata-view-model-wiz__metadata-row",(W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=x,W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var d;return uQt(Y==null?void 0:(d=Y())==null?void 0:d.lockupMetadata,P())},W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var d;
return!!(Y==null?0:(d=Y())==null?0:d.lockupMetadata)&&P().badges},W))},_.u(_.Ea,{data:function(){return P().badges}},{badgeViewModel:function(d){return _.u("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.u(_.N0,{data:d.data}))}}),_.u(_.sV,{each:Z},function(d,v){return _.u(_.qS,null,_.u(VrP,{metadataPart:d,
isOverlay:O,useMediumText:B,hideAvatar:K}),_.u(sUP,{delimiter:I,max:function(){return Z().length},
index:v,isStandalone:!1}))}),_.u(_.V,{cond:function(){return P().isSpacerRow&&!x()},
then:function(){return _.u("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
pSP=_.kl(function(W){var P=_.bw(W,{layout:0,isOverlay:!1});W=P.className;var x=P.data,I=P.layout,O=P.isOverlay,B=P.useMediumText,Y=P.extensions;P=_.fa();var K=function(){return I()===0};
_.NI(P,function(){return x().rendererContext});
var Z=function(){return x().metadataRows||[]},d={};
return _.u("yt-content-metadata-view-model",{class:_.O4(W,"yt-content-metadata-view-model-wiz",(d["yt-content-metadata-view-model-wiz--inline"]=K,d["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.fC(x().rendererContext)},d["yt-content-metadata-view-model-wiz--medium-text"]=B,d)),
el:P},_.u(_.sV,{each:Z},function(v,m){return _.u(_.qS,null,_.u(trW,{metadataRow:v,isInline:K,delimiter:function(){return x().delimiter},
isOverlay:O,useMediumText:B,extensions:Y}),_.u(_.V,{cond:function(){return K()&&!v.isSpacerRow},
then:function(){return _.u(sUP,{delimiter:function(){return x().delimiter},
max:function(){return Z().length},
index:m,isStandalone:!0})}}))}))},"Fa");
jUz=_.p("web_enable_sink_yt_content_metadata_view_model")?pSP:p$8;_.QUm=_.p("web_enable_sink_yt_content_metadata_view_model")?pSP:_.nE(p$8);pSP.idomCompat=!0;var ADo=_.CC({avatarViewModel:_.DI,decoratedAvatarViewModel:_.ml,avatarStackViewModel:_.VA,contentMetadataViewModel:jUz,buttonViewModel:_.cq,attributionViewModel:T5});_.ql(zzm);var CNp=_.kl(function(W){var P={};return _.u("yt-lockup-metadata-view-model",{class:_.O4("yt-lockup-metadata-view-model-wiz",function(){a:{var x=W.lockupStyle();if(x==null?0:x.isOverlay)x="yt-lockup-metadata-view-model-wiz--overlay";else switch(x==null?void 0:x.arrangement){case 1:x="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:x="yt-lockup-metadata-view-model-wiz--vertical"}}return x},function(){a:{var x=W.lockupStyle();
if(x==null?0:x.isTiny)x="yt-lockup-metadata-view-model-wiz--tiny";else switch(x==null?void 0:x.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":x="yt-lockup-metadata-view-model-wiz--compact";break a;default:x="yt-lockup-metadata-view-model-wiz--standard"}}return x},(P["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var x;
return(x=W.lockupStyle())==null?void 0:x.isOverlay},P["yt-lockup-metadata-view-model-wiz--card"]=function(){var x;
return(x=W.lockupStyle())==null?void 0:x.isCard},P["yt-lockup-metadata-view-model-wiz--centered"]=function(){var x;
return(x=W.lockupStyle())==null?void 0:x.isCentered},P["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var x;
return(x=W.lockupStyle())==null?void 0:x.typographyBump},P["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var x;
return(x=W.lockupStyle())==null?void 0:x.useLegacyTypography},P["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var x;
return(x=W.lockupStyle())==null?void 0:x.useRichGridLegacyTypography},P))},_.u(_.Ea,{data:function(){return W.data().image}},{avatarStackViewModel:function(x){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.u(_.VA,{data:x.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(x){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.u(_.DI,{data:x.data}))},
decoratedAvatarViewModel:function(x){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.u(_.ml,{data:x.data}))}}),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.u("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var x;return(x=W.data().title)==null?void 0:x.content}},_.u(_.V,{cond:function(){return W.data().title},
then:function(x){return _.u(_.vF,{command:W.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:W.lockupAccessibilityLabel},_.u(_.mQ,{text:x}))}})),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.u(_.Ea,{data:function(){return W.data().metadata}},{contentMetadataViewModel:function(x){return _.u(_.QUm,{data:x.data,
layout:1,useMediumText:function(){var I,O;return((I=W.lockupStyle())==null?void 0:I.typographyBump)||((O=W.lockupStyle())==null?void 0:O.useRichGridLegacyTypography)},
extensions:function(){var I,O;return{lockupMetadata:{byline:{hideAvatar:((I=W.lockupStyle())==null?void 0:I.arrangement)===0,addPadding:((O=W.lockupStyle())==null?void 0:O.arrangement)===1}}}}})}})),_.u(_.Ea,{data:function(){return W.data().attribution}},{attributionViewModel:function(x){return _.u("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.u(T5,{data:x.data,
useSmallLayout:!0}))}})),_.u("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.u(_.Ea,{data:function(){return W.data().menuButton}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
buttonOverrides:function(){var I;return((I=W.lockupStyle())==null?0:I.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga"),AOd=_.p("web_enable_sink_lockups_batch")?CNp:_.nE(zzm);
CNp.idomCompat=!0;var zqc=_.kl(function(W){var P=_.fa();_.Qa(function(){requestAnimationFrame(function(){_.fD(P.value)})});
var x={},I={},O={};return _.u("notification-multi-action-renderer",{class:_.O4("ytNotificationMultiActionRendererHost",(x.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var B;return(B=W.useLegacyShelfStyle)==null?void 0:B.call(W)},x)),
el:P},_.u("span",{"aria-live":"polite",class:_.O4("ytNotificationMultiActionRendererTextContainer",(I.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var B;return(B=W.useLegacyShelfStyle)==null?void 0:B.call(W)},I))},_.u(_.mQ,{text:function(){return W.data().responseText}})),_.u("div",{class:_.O4("ytNotificationMultiActionRendererButtonContainer",(O.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var B;
return(B=W.useLegacyShelfStyle)==null?void 0:B.call(W)},O))},_.u(_.Ea,{data:function(){var B;
return(B=W.data().buttons)==null?void 0:B.map(function(Y){if(Y=Y.buttonRenderer){var K,Z=Object,d=Z.assign,v=(K=Y.icon)==null?void 0:K.iconType;K=(K=Y.command||Y.serviceEndpoint||Y.navigationEndpoint)?{innertubeCommand:K}:void 0;Y={buttonViewModel:d.call(Z,{},{iconName:v,onTap:K,trackingParams:Y.trackingParams,titleFormatted:Y.text?_.pt(Y.text):void 0},Gxm(Y))}}else Y=void 0;return Y}).filter(function(Y){return!!Y})}},{buttonViewModel:function(B,Y){return _.u("div",null,_.u(_.cq,{data:B.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var K;return((K=W.useModernStyles)==null?0:K.call(W))?{type:Y()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var GlM=_.kl(function(W){var P=_.fa();_.Qa(function(){requestAnimationFrame(function(){_.fD(P.value)})});
return _.u("notification-text-renderer",{el:P,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.u(_.mQ,{text:function(){return W.data().successResponseText}}))},"Ia");_.Epd=_.kl(function(W){var P=_.dp(wkm,function(){var I;return EEd((I=W.contentId)==null?void 0:I.call(W))}),x=function(){var I;
return _.Q((I=P())==null?void 0:I.command,_.tc)};
return _.u(_.V,{cond:function(){var I;if(!(I=x())){var O;I=_.Q((O=P())==null?void 0:O.command,ZWP)}return I},
then:function(){return _.u(_.V,{cond:x,then:function(){var I={};return _.u("div",{class:_.O4("ytDismissibleItemReplacedContent",function(){var O;return gEU((O=W.aspectRatio)==null?void 0:O.call(W))})},_.u("div",{class:_.O4((I.ytDismissibleItemAspectRatioContainer=function(){var O;
return((O=W.aspectRatio)==null?void 0:O.call(W))!==void 0},I))},_.u(_.Ea,{data:function(){var O;
return(O=x())==null?void 0:O.item}},{notificationMultiActionRenderer:function(O){return _.u(zqc,{data:O.data,
useModernStyles:W.useModernStyle,useLegacyShelfStyle:W.useLegacyShelfStyle})},
notificationTextRenderer:GlM})))}})},
else:W.children})},"Ja");_.gpc=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;W=_.Nl();var I=function(){var B;return((B=P().interaction)==null?0:B.onTap)?function(Y){var K;eqA(Y,(K=P().interaction)==null?void 0:K.onTap,x)}:void 0},O=function(){var B,Y=P(),K=I(),Z=(B=_.Q(P().rendererContext,_.TS))==null?void 0:B.label;
a:switch(Y.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":B=1;break a;default:B=0}return{size:$e8(Y.size),type:B,onTap:K,accessibilityText:Z}};
_.FL(W,{visibilityCallback:function(B){var Y,K=(Y=P().interaction)==null?void 0:Y.onFirstVisible;B&&K&&_.D1(K)},
showOption:_.U$});return _.u("ad-avatar-view-model",{class:function(){var B;return((B=P().interaction)==null?0:B.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:W},_.u(_.V,{cond:function(){return P().image},
then:function(B){return _.u(ytl,{data:O,image:B})}}))},"Ka");_.rZ=_.kl(function(W){W=_.bw(W,{hasDot:!1});var P=Object.assign({},W),x=W.data,I=W.hasDot;W=W.customCommandResolver;var O=(delete P.data,delete P.hasDot,delete P.customCommandResolver,P);P=function(){return x().style};
P!==void 0&&P!==null||_.co(Error("Dh"));P=_.fa();_.RS(P,function(){return x().interaction},W);
return _.u("ad-badge-view-model",{class:_.O4(function(){var B;return((B=x().interaction)==null?0:B.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var B=O.adRenderingContextType();
x();return B==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:P},_.u(_.qI,{data:function(){var B;x();return{type:2,text:(B=x().label)==null?void 0:B.content,adsIncludeDot:I(),isOverlay:x().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var Dkm;_.iW=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;var I=W.adRenderingContextType;W=_.fa();_.RS(W,function(){return P().interaction},x);
_.FL(W,{visibilityCallback:function(O){var B,Y=(B=P().interaction)==null?void 0:B.onFirstVisible;O&&Y&&_.D1(Y)},
showOption:_.U$});return _.u("ad-details-line-view-model",{class:function(){var O;return((O=P().interaction)==null?0:O.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:W},_.u(_.V,{cond:function(){return P().style},
then:function(O){return _.u(_.sV,{each:function(){var B;return((B=P())==null?void 0:B.attributes)||[]},
keyBy:"INDEX"},function(B){return _.u(Dkm,{attribute:B,style:O,adRenderingContextType:function(){return I()}})})}}))},"Ma");
Dkm=_.kl(function(W){var P=W.attribute;var x=W.style;var I=W.adRenderingContextType;return _.u(_.V,{cond:function(){return P().text},
then:function(O){return _.u(_.mQ,{text:O,className:function(){var B=I();x();return B==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var Mrb=_.kl(function(W){var P=W.data;var x=W.typographyBump;var I=function(){return P().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
W={};return _.u(_.qS,null,_.u("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.u(_.mQ,{text:function(){return P().headline},
className:_.O4("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return I==null?void 0:I()},W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(x==null?void 0:x())&&!(I==null?0:I())},W)),
linkInheritColor:!0}),_.u(_.V,{cond:function(){return P().description},
then:function(O){var B={};return _.u(_.mQ,{text:O,className:_.O4("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(B.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return I==null?void 0:I()},B.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(x==null?void 0:x())&&!(I==null?0:I())},B)),
linkInheritColor:!0})}}),_.u(_.V,{cond:function(){return P().secondaryDescription},
then:function(O){var B={};return _.u(_.mQ,{text:O,className:_.O4("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(B.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return x==null?void 0:x()},B)),
linkInheritColor:!0})}}),_.u("div",{class:function(){return I()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.u(_.V,{cond:function(){return P().adAvatar},
then:function(){return _.u("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.u(_.Ea,{data:function(){return P().adAvatar}},{adAvatarViewModel:_.gpc}))}}),_.u(_.Ea,{data:function(){return P().adBadge}},{adBadgeViewModel:function(O){return _.u(_.rZ,{data:O.data,
hasDot:function(){return!!P().adDetailsLine},
adRenderingContextType:function(){return P().adRenderingContextType}})}}),_.u(_.Ea,{data:function(){return P().adDetailsLine}},{adDetailsLineViewModel:function(O){return _.u(_.iW,{data:O.data,
adRenderingContextType:function(){return P().adRenderingContextType}})}}))),_.u("div",{class:function(){return I()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.u(_.Ea,{data:function(){return P().menu}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
buttonOverrides:function(){a:switch(P().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var B="S";break a;default:B="M"}return{size:B}}})}})))},"Oa"),$kA=_.kl(function(W){var P=W.data;
var x=W.noBottomMargin;var I=W.useVideoLockupTopPadding;var O=W.typographyBump;W={};W=_.O4("ytwFeedAdMetadataViewModelHostMetadata",(W.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return x==null?void 0:x()},W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return I==null?void 0:I()},W));
var B=function(){return P().adBadge};
B!==void 0&&B!==null||_.co(Error("Eh"));B={};var Y={};return _.u(_.qS,null,_.u(_.V,{cond:function(){return P().adAvatar},
then:function(){return _.u("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.u(_.Ea,{data:function(){return P().adAvatar}},{adAvatarViewModel:function(K){return _.u(_.gpc,{data:K.data})}}))}}),_.u("div",{class:W},_.u("div",{class:_.O4("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(B.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return O==null?void 0:O()},B.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(O==
null?void 0:O())&&_.p("web_enable_typography_bump_v2")},B))},_.u(_.mQ,{text:function(){return P().headline},
linkInheritColor:!0})),_.u(_.V,{cond:function(){return P().description},
then:function(K){return _.u(_.mQ,{text:K,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.u("div",{class:function(){return P().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.p("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.u(_.Ea,{data:function(){return P().adBadge}},
{adBadgeViewModel:function(K){return _.u(_.rZ,{data:K.data,
hasDot:function(){return!!P().adDetailsLine},
adRenderingContextType:function(){return P().adRenderingContextType}})}}),_.u(_.Ea,{data:function(){return P().adDetailsLine}},{adDetailsLineViewModel:function(K){return _.u(_.iW,{data:K.data,
adRenderingContextType:function(){return P().adRenderingContextType}})}})),_.u(_.V,{cond:function(){return P().secondaryDescription},
then:function(K){return _.u(_.mQ,{text:K,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.u("div",{class:_.O4("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return I==null?void 0:I()},Y))},_.u(_.Ea,{data:function(){return P().menu}},{buttonViewModel:_.cq})))},"Pa"),wSz=_.kl(function(W){var P=W.data;
var x=W.noBottomMargin;var I=W.listenToTapEvent;var O=W.setTouchEndHandler;var B=W.useVideoLockupTopPadding;var Y=W.typographyBump;var K=_.fa();_.RS(K,function(){return P().interaction},void 0,function(){return I==null?void 0:I()});
W=_.n(_.YV(!1,void 0,"qjt0Xc"));var Z=W.next().value,d=W.next().value;W=_.yB(function(){(O==null?0:O())&&!Z()&&(K.value.click(),d(!0),setTimeout(function(){d(!1)},100));
return!1});
_.FL(K,{visibilityCallback:function(v){var m,t=(m=P().interaction)==null?void 0:m.onFirstVisible;v&&t&&_.D1(t)},
showOption:_.U$});return _.u("feed-ad-metadata-view-model",{class:function(){var v;return((v=P().interaction)==null?0:v.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:K,"on:touchend":W},_.u(_.tQ,null,_.u(_.mk,{when:function(){return P().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.u(Mrb,{data:P,
typographyBump:Y})}),_.u(_.mk,{when:function(){return P().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.u($kA,{data:P,
noBottomMargin:x,useVideoLockupTopPadding:B,typographyBump:Y})})))},"Qa");var hql;_.R8=_.kl(function(W){return _.u("yt-lockup-view-model",{class:_.O4(W.className)},_.u(_.Epd,{contentId:function(){return W.data().contentId},
useModernStyle:!0,aspectRatio:function(){var P,x;return((P=W.containerType)==null?void 0:P.call(W))!==3?Lj8(W.data().contentType,(x=W.force16By9ThumbnailAspectRatio)==null?void 0:x.call(W)):void 0}},function(){return _.u(hql,Object.assign({},W))}))},"Ra");
hql=_.kl(function(W){W=_.bw(W,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var P=W.data,x=W.containerLayoutConfig,I=W.containerType,O=W.sizing,B=W.protectBackground,Y=W.typographyBump,K=W.force16By9ThumbnailAspectRatio,Z=W.thumbnailFixedWidth,d=W.thumbnailTargetWidth,v=W.lockupExperiments,m=W.elementsPerRow;
W=_.fa();_.NI(W,function(){var $W;return($W=P())==null?void 0:$W.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var t=_.G4(uEU),C=_.FY().resolve(_.Rl(Rel)),z=C?{}:void 0,D=function(){var $W,ao,e8;return(e8=(ao=_.Q(($W=P())==null?void 0:$W.rendererContext,_.TS))==null?void 0:ao.label)!=null?e8:void 0},w=function(){var $W=x==null?void 0:x(),ao;
if($W==null?0:$W.containerType){var e8=(ao=P())==null?void 0:ao.contentType;ao=v();var iC=Y(),hw=d(),dk=B();$W=Object.assign({},W$G(RqW($W),rOt($W.responsiveSize),iC,e8,$W.force16By9ThumbnailAspectRatio,hw,dk,ao),{thumbnailFixedWidth:$W.contentPreviewWidth})}else $W=W$G(I(),O(),Y(),(e8=P())==null?void 0:e8.contentType,K(),d(),B(),v());return $W};
C&&z&&C({enabled:function(){return t()},
itemPlaybackModel:function(){return P().itemPlayback},
thumbnailElRef:function(){return z.thumbnailElRef},
containerElRef:W,options:function(){var $W,ao=($W=_.Q(P().metadata,qtA))==null?void 0:$W.endorsement;$W=z.thumbnailOverlays||[];ao&&$W.push(ao);var e8,iC;return{thumbnail:z.thumbnail,thumbnailOverlays:$W,accessibilityText:D(),thumbnailSize:z.thumbnailSize,enableRounding:w().isCollection,containPlayerWithinThumbnail:w().isCollection,trackingParams:(e8=_.Q(P().rendererContext,_.Xcx))==null?void 0:(iC=e8.loggingDirectives)==null?void 0:iC.trackingParams}}});
var a=0;C=_.n(_.YV(!1,void 0,"HzAs3"));var k=C.next().value,T=C.next().value;C=_.n(_.YV(!1,void 0,"ujOXud"));var N=C.next().value,Io=C.next().value;C=_.yB(function(){var $W=t()&&P().itemPlayback;N()?(_.Gr.cancelJob(a),a=_.Gr.addJob(function(){T(!$W)},8,32)):T(!$W);
return!0});
var F=_.yB(function(){a&&(_.Gr.cancelJob(a),a=0);T(!1)});
_.C4(function(){a&&(_.Gr.cancelJob(a),a=0)});
var nm=Mso(function(){Io(!0)}),pm=nm.touchFeedbackEvents,zR=nm.touchFeedbackOnPointerUp,Am=nm.touchFeedbackOnPointerDown;
nm=nm.touchFeedbackOnPointerLeave;var kW={};return _.u("div",{el:W,class:_.O4("yt-lockup-view-model-wiz",function(){a:{var $W=w();if($W.isOverlay)$W="yt-lockup-view-model-wiz--overlay";else switch($W.arrangement){case 1:$W="yt-lockup-view-model-wiz--horizontal";break a;default:$W="yt-lockup-view-model-wiz--vertical"}}return $W},function(){a:{var $W=w();
if($W.isOverlay)$W="yt-lockup-view-model-wiz--overlay";else{switch($W.collectionStackNumber){case 1:$W="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:$W="yt-lockup-view-model-wiz--collection-stack-2";break a}$W=void 0}}return $W},(kW["yt-lockup-view-model-wiz--card"]=function(){return w().isCard},kW["yt-lockup-view-model-wiz--compact"]=function(){return w().isTiny||w().sizing!=="STANDARD"},kW["yt-lockup-view-model-wiz--protect-background"]=B,kW["yt-lockup-view-model-wiz--add-margins"]=
function(){return w().addMarginForFullbleed},kW["yt-lockup-view-model-wiz--centered"]=function(){return w().isCentered},kW["yt-lockup-view-model-wiz--fullbleed"]=function(){return w().fullbleed},kW["yt-lockup-view-model-wiz--single-column-grid"]=function(){return m()===1&&I()===2},kW["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var $W;
return($W=v())==null?void 0:$W.useRichGridLegacyMargin},kW)),
"on:mousedown":Am,"on:mouseleave":F,"on:mouseup":zR,"on:mouseover":C,"on:touchstart":Am,"on:touchend":zR,"on:pointerleave":nm},_.u(_.vF,{command:function(){var $W;return _.Xd(($W=P())==null?void 0:$W.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return Z()&&w().arrangement===1?"width: "+Z():""}},_.u(_.Ea,{data:function(){var $W;
return($W=P())==null?void 0:$W.contentImage}},{thumbnailViewModel:function($W){return _.u(_.kt,{data:$W.data,
aspectRatio:function(){return w().aspectRatio},
disableRounding:function(){return w().disableRounding},
width:d,hovered:k,isClip:function(){var ao;return((ao=P())==null?void 0:ao.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:op8(z),lockupExperiments:function(){return v()}})},
collectionThumbnailViewModel:function($W){return _.u(YEZ,{data:$W.data,aspectRatio:function(){return w().aspectRatio},
disableRounding:function(){return w().disableRounding},
width:d,doubleStack:function(){return w().collectionStackNumber===2},
hovered:k,playbackRef:op8(z)})},
decoratedAvatarViewModel:_.ml})),_.u("div",{class:"yt-lockup-view-model-wiz__metadata"},_.u(_.Ea,{data:function(){var $W;return($W=P())==null?void 0:$W.metadata}},{lockupMetadataViewModel:function($W){return _.u(AOd,{data:$W.data,
lockupStyle:w,lockupCommand:function(){var ao;return _.Xd((ao=P())==null?void 0:ao.rendererContext)},
lockupAccessibilityLabel:function(){return D()}})},
feedAdMetadataViewModel:function($W){return _.u(wSz,{data:$W.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Y})}}),_.u(_.Ea,{data:function(){var $W;
return($W=P())==null?void 0:$W.attachmentSlot}},{lockupAttachmentsViewModel:function($W){return _.u(SEc,{data:$W.data,
lockupStyle:w})}})),_.u(_.s4,{model:function(){a:{switch(w().collectionStackNumber){case 1:var $W=8;
break a;case 2:$W=12;break a}$W=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:$W}},
pointerDownEvent:pm.pointerDownEvent,pointerUpEvent:pm.pointerUpEvent,pointerLeaveEvent:pm.pointerLeaveEvent}))},"Sa");
_.R8.idomCompat=!0;_.lq(_.R8,"yt-lockup-view-model",{props:{data:_.cv,containerLayoutConfig:_.cv,containerType:_.cv,sizing:_.cv,protectBackground:_.cv,typographyBump:_.cv,thumbnailFixedWidth:_.cv,thumbnailTargetWidth:_.cv,force16By9ThumbnailAspectRatio:_.cv,className:_.cv,lockupExperiments:_.cv,elementsPerRow:_.cv}});_.ql(aTW);var H8k=_.nE(aTW,{callbacks:{onExpandClick:!0}});var NsR=_.CC({buttonViewModel:_.cq}),eq3=_.nE(X$W);_.ql(X$W);_.ql(kxt);_.ql(UeG);_.lq(eq3,"yt-video-attribute-view-model",{props:{data:_.cv,className:_.cv}});var F7=function(){var W=_.b.apply(this,arguments)||this;W.useHighlightStyling=_.p("web_enable_deeper_metadata_highlight_styling");W.isSearch=!1;W.JSC$12944_lastScrollContainerWidth=NaN;W.pageLoadingFromNavigation=!1;W.currentIndex=0;W.supportComponentResize=!1;return W};
_.A(F7,_.b);_.J=F7.prototype;
_.J.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}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.WM(this,this.onPageChange))};
_.J.detached=function(){document.removeEventListener("yt-page-type-changed",_.WM(this,this.onPageChange))};
_.J.getItemsPath=function(){return"data.cards"};
_.J.onIronResize=function(){this.updateListStyles()};
_.J.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var W;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(W=this.data)==null?void 0:W.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.p("problem_walkthrough_sd")&&!!this.centerItems};
_.J.computeCardListStyle=function(W){return W||null};
_.J.computeEmpty=function(W){return!this.get("cards.length",W)};
_.J.computeThumbnailStyle=function(W){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",W)||null};
_.J.computeHasSubtitle=function(W){return!!this.get("header.richListHeaderRenderer.subtitle",W)};
_.J.computeInitialCountNumber=function(W){return this.hasSquareMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.J.computeUseFloorScrolling=function(W){return W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.J.computeHasGameCard=function(W){return(W=this.get("cards",W))?W.some(function(P){return P.gameCardRenderer}):!1};
_.J.computeCenterHeaderTitle=function(W){return!(W==null||!W.centerHeaderTitle)};
_.J.computeHasPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(P){return P.miniGameCardViewModel&&P.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.J.computeHasSquareMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(P){return P.miniGameCardViewModel&&P.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.J.computeHasSkinnyWidthPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(P){return P.miniGameCardViewModel&&P.miniGameCardViewModel.width===135}):!1};
_.J.computeCenterItems=function(W){return!!W};
_.J.computeHasInfoPanel=function(W){var P;return W==null?void 0:(P=W.cards)==null?void 0:P.some(function(x){return x.infoPanelContentRenderer})};
_.J.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.J.getItemByIndex=function(W){var P=this.items.children;return P&&P.length>W?P[W]:void 0};
_.J.onPageChange=function(){var W=this;this.pageLoadingFromNavigation=!0;_.Gr.addJob(function(){W.pageLoadingFromNavigation=!1;_.P7(W.hostElement,"yt-terminate-video-preview-action")},8)};
_.J.updateListStyles=function(){if(_.p("problem_walkthrough_sd")&&this.JSC$12944_scrollContainer!==void 0){var W=this.JSC$12944_scrollContainer.clientWidth;W!==this.JSC$12944_lastScrollContainerWidth&&(this.JSC$12944_lastScrollContainerWidth=W,_.qa(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(W*.8,415)+"px"}),_.Lf(this.hostElement,"iron-resize"))}};
_.N1.Object.defineProperties(F7.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.p("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return!!((W=this.data)==null?0:(P=W.cards)==null?0:(x=P[0])==null?0:x.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return!!((W=this.data)==null?0:(P=W.cards)==null?0:(x=P[0])==null?0:x.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return _.p("enable_desktop_amsterdam_info_panels")&&!!((W=this.data)==null?0:(P=W.cards)==null?0:(x=P[0])==null?0:x.infoPanelContentRenderer)}}});
F7.prototype.dataChanged=F7.prototype.dataChanged;F7.prototype.onIronResize=F7.prototype.onIronResize;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.RO.YtdHorizontalListBehavior),_.l("design:type",Object)],F7.prototype,"ytdHorizontalListBehavior",void 0);
_.f([_.h(_.gW),_.l("design:type",Object)],F7.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],F7.prototype,"data",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],F7.prototype,"useCustomColors",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],F7.prototype,"useHighlightStyling",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.l("design:type",Object)],F7.prototype,"cardListStyle",void 0);_.f([_.c({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.l("design:type",Boolean)],F7.prototype,"empty",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.l("design:type",Boolean)],F7.prototype,"hasSubtitle",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.l("design:type",Boolean)],F7.prototype,"thumbnailStyle",void 0);_.f([_.c({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.l("design:type",Boolean)],F7.prototype,"hasGameCard",void 0);_.f([_.c({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.l("design:type",Boolean)],F7.prototype,"centerHeaderTitle",void 0);
_.f([_.c({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.l("design:type",Boolean)],F7.prototype,"hasPortraitMiniApp",void 0);_.f([_.c({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.l("design:type",Boolean)],F7.prototype,"hasSquareMiniApp",void 0);_.f([_.c({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.l("design:type",Boolean)],F7.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.f([_.c({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.l("design:type",Boolean)],F7.prototype,"hasInfoPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],F7.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],F7.prototype,"inlineStructuredDescription",void 0);_.f([_.BM("#scroll-container"),_.l("design:type",HTMLDivElement)],F7.prototype,"JSC$12944_scrollContainer",void 0);
_.f([_.c({computed:"computeInitialCountNumber(data.style.type)"}),_.l("design:type",Number)],F7.prototype,"initialCount",void 0);_.f([_.c({computed:"computeUseFloorScrolling(data.style.type)"}),_.l("design:type",Boolean)],F7.prototype,"useFloorScrolling",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.l("design:type",Boolean)],F7.prototype,"centerItems",void 0);_.f([_.c(),_.l("design:type",Object)],F7.prototype,"pageLoadingFromNavigation",void 0);
_.f([_.c(),_.l("design:type",Object)],F7.prototype,"currentIndex",void 0);_.f([_.c(),_.l("design:type",Number)],F7.prototype,"scrollCount",void 0);_.f([_.c(),_.l("design:type",Object)],F7.prototype,"supportComponentResize",void 0);_.f([_.BM("#items"),_.l("design:type",HTMLDivElement)],F7.prototype,"items",void 0);_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F7.prototype,"onIronResize",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F7.prototype,"dataChanged",null);_.f([_.c({reflectToAttribute:!0}),_.H("inlineStructuredDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],F7.prototype,"hideNavigationButton",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],F7.prototype,"modernChapters",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],F7.prototype,"hasVideoAttributeViewModels",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],F7.prototype,"modernInfoPanels",null);F7=_.f([_.U({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],F7);
_.X(F7,"ytd-horizontal-card-list-renderer",function(){if(Dhp!==void 0)return Dhp;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Dhp=W},{mode:_.F4("kevlar_poly_si_batch_j072")?1:2});_.ql(Tsm);var cOc=_.kl(function(W){var P=W.data;var x={};return _.u("video-summary-content-view-model",{class:_.O4("video-summary-content-view-model-wiz",W.className,(x["video-summary-content-view-model-wiz--is-search"]=W.isSearch,x))},_.u(_.sV,{each:function(){var I=[],O=P().paragraphs;if(O==null||!O.length)return[];for(var B=0;B<O.length;B++){var Y=_.Q(O[B],lTG),K=void 0;B>0&&(K=_.Q(O[B-1],lTG));K&&!!K.marker===!!Y.marker?I[I.length-1].paragraphs.push(Y):I.push({isList:!!Y.marker,paragraphs:[Y]})}return I},
keyBy:"INDEX"},function(I){return _.u(_.V,{cond:function(){return I().isList},
then:function(){return _.u("ul",{class:"video-summary-content-view-model-wiz__list"},_.u(_.sV,{each:function(){return I().paragraphs},
keyBy:"INDEX"},function(O){return _.u("li",{class:"video-summary-content-view-model-wiz__list-item"},_.u(_.mQ,{text:function(){return O().text}}))}))},
else:function(){return _.u(_.sV,{each:function(){return I().paragraphs},
keyBy:"INDEX"},function(O){return _.u("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.u(_.mQ,{text:function(){return O().text}}))})}})}),_.u(_.V,{cond:function(){return!!_.Q(P().likeButtonViewModel,_.wp)&&!!_.Q(P().dislikeButtonViewModel,_.hp)},
then:function(){return _.u("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.u("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.u(_.C7,{data:function(){return _.Q(P().likeButtonViewModel,_.wp)},
disableIconAnimation:!0})),_.u(_.Qz,{data:function(){return _.Q(P().dislikeButtonViewModel,_.hp)}}))}}))},"Ta"),aYp=_.p("web_enable_sink_video_summary_content_view_model")?cOc:Tsm,b8A=_.p("web_enable_sink_video_summary_content_view_model")?cOc:_.nE(Tsm);
cOc.idomCompat=!0;_.p("web_enable_sink_video_summary_content_view_model")?_.lq(aYp,"video-summary-content-view-model",{props:{data:_.cv,isSearch:_.cv,className:_.cv}}):_.WF(aYp,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var q0=function(){var W=_.b.apply(this,arguments)||this;var P,x;W.isExpanded=(x=(P=W.data)==null?void 0:P.isExpanded)!=null?x:!1;W.disableExpand=!1;W.showProminentLabel=!1;W.showRightSideLabel=!0;W.toggleExpandableContent=function(I){W.disableExpand||(I.stopPropagation(),_.lh(_.c5(I),W.hostElement,["info","expanded-subtitle"])||(W.isExpanded=!W.isExpanded,W.ytRendererBehavior.logExplicitClick(W.data),W.JSC$12957_cardList&&!_.p("expandable_metadata_a11y_fix_ks")&&_.Xm(W,function(){_.XG(W.hostElement)})))};
W.useSquareThumbnail=!1;W.startX=0;return W};
_.A(q0,_.b);_.J=q0.prototype;_.J.computeUseSquareThumbnail=function(){var W;return(W=this.data)==null?void 0:W.useSquareThumbnail};
_.J.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"}}}}};
_.J.dataChanged=function(){if(this.data){var W,P;this.isExpanded=(P=(W=this.data)==null?void 0:W.isExpanded)!=null?P:!1;var x,I,O,B;if(W=this.isDarkTheme()?(x=this.data)==null?void 0:(I=x.colorData)==null?void 0:I.darkColorPalette:(O=this.data)==null?void 0:(B=O.colorData)==null?void 0:B.lightColorPalette){var Y,K;if((Y=this.data)==null?0:(K=Y.colorData)==null?0:K.vibrantColorPalette)W.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.QB(this.hostElement,W)}}};
_.J.isExpandedChanged=function(){this.isExpanded&&this.JSC$12957_cardList&&_.Lf(this.JSC$12957_cardList,"iron-resize")};
_.J.computeIsExpanded=function(W){return!!W.isExpanded};
_.J.computeShowProminentLabel=function(W,P){var x;return!!(W==null?0:(x=W.header)==null?0:x.showLeadingCollapsedLabel)&&!P};
_.J.computeShowRightSideLabel=function(W,P){var x;return!(W==null?0:(x=W.header)==null?0:x.showLeadingCollapsedLabel)&&!P};
_.J.captureContentClick=function(W){if(!this.disableExpand)if(_.p("expandable_metadata_fix_killswitch")){var P=W.target;_.J9A(P,"ytd-macro-markers-list-item-renderer")||W.stopPropagation();(P==null?void 0:P.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.lh(_.c5(W),this.hostElement,["items"])||_.Nx(_.c5(W),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.J.timestampClick=function(W){W.stopPropagation();var P,x;(W=(P=this.data)==null?void 0:(x=P.header)==null?void 0:x.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(W)};
_.J.onDown=function(W){W.stopPropagation();this.startX=W.detail?W.detail.x:0};
_.J.onUp=function(W){this.skipKeyInteraction(W)&&W.stopPropagation()};
_.J.skipKeyInteraction=function(W){var P=W.target;if((P==null?void 0:P.id)==="scroll-container"||(P==null?void 0:P.id)==="items"||W.detail&&W.detail.x!==this.startX)return!0;W=_.c5(W);W=_.n(W);for(P=W.next();!P.done;P=W.next()){P=P.value;if(P===this.hostElement)break;if(P.hasAttribute&&P.hasAttribute("skip-key-interaction"))return!0}return!1};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.N1.Object.defineProperties(q0.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.Q((W=this.data)==null?void 0:W.expandedContent,JZk)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.Q((W=this.data)==null?void 0:W.expandedContent,_.L4m)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.useCustomColors)&&!((P=this.data)==null||!P.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var W,P;return!!((W=this.data)==null?0:(P=W.header)==null?0:P.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var W,P;return!!((W=this.data)==null?0:(P=W.header)==null?0:P.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,P;return!!((W=this.data)==null?0:(P=W.header)==null?0:P.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
q0.prototype.onUp=q0.prototype.onUp;q0.prototype.onDown=q0.prototype.onDown;q0.prototype.isExpandedChanged=q0.prototype.isExpandedChanged;q0.prototype.dataChanged=q0.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],q0.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],q0.prototype,"isExpanded",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],q0.prototype,"disableExpand",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],q0.prototype,"isSearch",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],q0.prototype,"isWatch",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.l("design:type",Object)],q0.prototype,"showProminentLabel",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.l("design:type",Object)],q0.prototype,"showRightSideLabel",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],q0.prototype,"hasVideoSummary",null);_.f([_.c({value:!1,reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],q0.prototype,"hasLockupViewModel",null);_.f([_.c({reflectToAttribute:!0}),_.H("data","isWatch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],q0.prototype,"useCustomColors",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],q0.prototype,"showInfoButton",null);_.f([_.H("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],q0.prototype,"showTimestamp",null);_.f([_.H("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],q0.prototype,"showExpandedSubtitle",null);
_.f([_.H("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],q0.prototype,"showThumbnail",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],q0.prototype,"useVppShoppingDestinationStyle",null);_.f([_.c(),_.l("design:type",Object)],q0.prototype,"toggleExpandableContent",void 0);_.f([_.BM("ytd-horizontal-card-list-renderer"),_.l("design:type",Object)],q0.prototype,"JSC$12957_cardList",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.l("design:type",Object)],q0.prototype,"useSquareThumbnail",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q0.prototype,"dataChanged",null);_.f([_.OZ("isExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q0.prototype,"isExpandedChanged",null);
_.f([_.I7("down"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],q0.prototype,"onDown",null);_.f([_.I7("up"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],q0.prototype,"onUp",null);q0=_.f([_.U({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],q0);
_.X(q0,"ytd-expandable-metadata-renderer",function(){if(hcA!==void 0)return hcA;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return hcA=W},{mode:1});var klA,Ukk=function(){if(klA!==void 0)return klA;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return klA=W};_.lq(_.VA,"yt-avatar-stack-view-model",{props:{className:_.cv,data:_.cv,overrides:_.cv,isOverlay:_.cv,useMediumText:_.cv,decorations:_.cv,hideAvatar:_.cv}});_.Ad("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Lr=function(){var W=_.b.apply(this,arguments)||this;W.disableExpand=!1;W.shouldShowChannelInfo=!1;W.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return W};
_.A(Lr,_.b);_.J=Lr.prototype;_.J.computeUseSearchUi=function(){var W,P;return this.isSearch||((W=this.data)==null?void 0:(P=W.style)==null?void 0:P.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.computeUseThreeLineTitle=function(){var W;return((W=this.data)==null?void 0:W.maxTitleLines)===3};
_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.p("polymer_video_renderer_defer_menu")&&!EJd?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"}}}};
_.J.attached=function(){_.iS(this.hostElement,"blue-links",_.p("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Rf(_.g(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),P;W&&((P=_.Q(W.commandMetadata,_.zN))==null?0:P.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W);this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12962_inlinePreviewHoverListener=ir({mediaRenderer:this,lockupElement:this.JSC$12962_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.J.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$12962_inlinePreviewHoverListener)==null||no(W)};
_.J.onTextWrapperClick=function(W){var P,x,I=this.hideTranslation?(P=this.data)==null?void 0:P.untranslatedNavigationEndpoint:(x=this.data)==null?void 0:x.navigationEndpoint;P=_.lh(_.c5(W),this.hostElement,["expandable-metadata"]);!I||P&&!_.p("expandable_metadata_fix_killswitch")||_.Nx(_.c5(W),this.hostElement,["A".toString(),"BUTTON".toString()])||_.Lf(this.hostElement,"yt-navigate",{endpoint:I})};
_.J.computeThumbnailWidth=function(W,P,x,I,O){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:I?O==="MASSIVE"?600:O==="BIG"?500:O==="MEDIUM"?450:420:x?360:P?128:W?210:246};
_.J.computeUseBiggerThumbs=function(W){return W&&_.p("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.J.computeVideoStyle=function(){if(_.p("enable_video_style")){var W,P;return(W=this.data)==null?void 0:(P=W.style)==null?void 0:P.value}};
_.J.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.handleHideItemSectionVideosByIdCommand=function(W){var P;W=(P=_.Q(W,Gum))==null?void 0:P.videoId;this.data&&this.data.videoId===W&&(this.isHidden=!0)};
_.J.getMetadataSnippetContainerClass=function(W){return W?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.J.computeTitleText=function(W,P,x){return W?x:P};
_.J.computeDescriptionSnippet=function(W,P,x){return W?x:P};
_.J.computeSnippetText=function(W,P,x){return W?x:P};
_.J.computeNavigationEndpoint=function(W,P){return W?P==null?void 0:P.untranslatedNavigationEndpoint:P==null?void 0:P.navigationEndpoint};
_.J.hideInlineTitleIcon=function(W,P){return W||!P};
_.N1.Object.defineProperties(Lr.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 W;return(W=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?W:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return!!(this==null?0:(W=this.data)==null?0:(P=W.channelThumbnailSupportedRenderers)==null?0:(x=P.channelThumbnailWithLinkRenderer)==null?0:x.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.Q((W=this.data)==null?void 0:W.avatar,W8k)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$12962_inlinePreviewHoverListener)==null?0:jp(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.N1.Object.defineProperties(Lr,{template:{configurable:!0,enumerable:!0,get:function(){return Ukk()}}});
Lr.prototype.dataChanged=Lr.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Lr.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Lr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],Lr.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.h(_.eZ),_.l("design:type",Object)],Lr.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Lr.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Lr.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Lr.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Lr.prototype,"isBackstageVideo",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Lr.prototype,"isPostCompactVideo",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Lr.prototype,"isHistory",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Lr.prototype,"isRichGridVideoPost",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Lr.prototype,"isHidden",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Lr.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.l("design:type",Boolean)],Lr.prototype,"useSearchUi",void 0);_.f([_.c({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.l("design:type",Boolean)],Lr.prototype,"useThreeLineTitle",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.l("design:type",Boolean)],Lr.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.l("design:type",Object)],Lr.prototype,"videoStyle",void 0);_.f([_.c({computed:"computeDisableExpand(videoStyle)"}),_.l("design:type",Object)],Lr.prototype,"disableExpand",void 0);
_.f([_.c({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.l("design:type",Object)],Lr.prototype,"shouldShowChannelInfo",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],Lr.prototype,"biggerThumbsStyle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.l("design:type",String)],Lr.prototype,"inlineTitleIcon",void 0);_.f([_.c({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.l("design:type",Object)],Lr.prototype,"computedNavigationEndpoint",void 0);_.f([_.c({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(W,P){return _.Jb(W.entities,"searchVideoResultEntity",P)}}),
_.l("design:type",Object)],Lr.prototype,"searchVideoResultEntity",void 0);_.f([_.BM("ytd-thumbnail"),_.l("design:type",HTMLElement)],Lr.prototype,"thumbnail",void 0);_.f([_.BM("#dismissible"),_.l("design:type",HTMLElement)],Lr.prototype,"JSC$12962_dismissibleMedia",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lr.prototype,"dataChanged",null);
_.f([_.H("searchVideoResultEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Lr.prototype,"hideTranslation",null);_.f([_.H("searchVideoResultEntity"),_.l("design:type",Array),_.l("design:paramtypes",[])],Lr.prototype,"hiddenBadgeGroups",null);_.f([_.H("data","useAvatar"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Lr.prototype,"shouldShowChannelThumbnail",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Lr.prototype,"useAvatar",null);
_.f([_.H("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Lr.prototype,"isHovered",null);Lr=_.f([_.U({is:"ytd-video-renderer",disableElementRegistration:!0})],Lr);_.X(Lr,"ytd-video-renderer",function(){return Ukk()},{mode:_.F4("kevlar_poly_si_batch_j047")?1:2});var We=function(){var W=_.b.apply(this,arguments)||this;W.editDialog=null;W.roundedContainer=!0;W.isLoading=!1;W.isRichGrid=!1;W.isRichGridRepost=!1;W.reduceSidePaddings=_.p("reduce_side_paddings_in_shelf");W.JSC$12969_spinnerEl=null;return W};
_.A(We,_.b);_.J=We.prototype;
_.J.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"}}}};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){var W=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var P=0,x=this.data.actions&&this.data.actions.length;P<x;P++)this.openEditDialog(_.Q(this.data.actions[P],q1z));if((P=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(P=this.get("buttonRenderer.hint.hintRenderer.hintId",P))&&P.startsWith("share-post-hint")){var I=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(I){_.qG.getInstance();var O=Lg(_.bx(_.KK("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Gr.addLowPriorityJob(function(){_.OL(W.hostElement,O,I)})}}}};
_.J.updatePoll=function(W){W>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12969_spinnerEl||(this.JSC$12969_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.g(this.hostElement).appendChild(this.JSC$12969_spinnerEl));this.JSC$12969_spinnerEl&&(this.JSC$12969_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(W){var P=this.get("updateCommentDialogEndpoint",W.detail.endpoint);P&&(this.openEditDialog(P),W.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(W,P){P&&this.updatePoll(P.selectedChoiceIndex)};
_.J.onYtServiceRequestSent=function(W,P){var x;P.endpoint&&(_.Q(P.endpoint,m3c)||_.Q(P.endpoint,vZd)&&((x=_.Q(P.endpoint,vZd))==null||!x.clientActions))&&(this.isLoading=!0);if(P.actions)for(W=0;W<P.actions.length;W++)x=P.actions[W],_.Q(x,Cw)&&(x=this.get("updateBackstagePollAction.selectedChoiceIndex",x),x==void 0&&(x=-1),this.updatePoll(x))};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.J.computeIsPostHidden=function(W,P){return!!W||P};
_.J.computeSurfaceType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.J.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.J.computeShowWithoutToolbar=function(W){return!W.actionButtons&&!W.actionMenu};
_.J.computePostAttachment=function(W){if(W.backstageAttachment){if(_.Q(W.backstageAttachment,rhd))return"poll";if(_.Q(W.backstageAttachment,MYd))return"quiz";if(_.Q(W.backstageAttachment,_.HA))return"video";if(_.Q(W.backstageAttachment,$cp))return"uploaded-videos";if(_.Q(W.backstageAttachment,zwd))return W.contentText?"image":"image-only";if(_.Q(W.backstageAttachment,GPd))return"playlist"}return"none"};
_.J.computePostTabIndex=function(W){return W?0:-1};
_.J.computeButtonTooltipPosition=function(W){return this.computeUsesCompactLockup(W)?"top":"bottom"};
_.J.computeHasText=function(W){return!(W==null||!W.contentText)};
_.J.onTap=function(W){var P,x;if(((P=this.data)==null?0:P.navigationEndpoint)&&((x=this.data)==null?void 0:x.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var I;((I=this.data)==null?0:I.navigationEndpoint)&&!_.Nx(_.c5(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.N1.Object.defineProperties(We.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.bx("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,rhd))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,$cp))}}});
We.prototype.onYtServiceRequestCompleted=We.prototype.onYtServiceRequestCompleted;We.prototype.onYtServiceRequestSent=We.prototype.onYtServiceRequestSent;We.prototype.onYtCommentPollRevert=We.prototype.onYtCommentPollRevert;We.prototype.onYtCommentboxDismiss=We.prototype.onYtCommentboxDismiss;We.prototype.onYtNavigate=We.prototype.onYtNavigate;We.prototype.isLoadingChanged=We.prototype.isLoadingChanged;We.prototype.dataChanged=We.prototype.dataChanged;We.prototype.contentTextChanged=We.prototype.contentTextChanged;
_.f([_.h(_.gW),_.l("design:type",Object)],We.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],We.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],We.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],We.prototype,"editDialog",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],We.prototype,"roundedContainer",void 0);_.f([_.c(),_.l("design:type",Object)],We.prototype,"isLoading",void 0);_.f([_.c({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.l("design:type",String)],We.prototype,"surface",void 0);
_.f([_.c({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.l("design:type",Boolean)],We.prototype,"usesCompactLockup",void 0);_.f([_.c({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],We.prototype,"showWithoutToolbar",void 0);_.f([_.c({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.l("design:type",String)],We.prototype,"attachment",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],We.prototype,"isRichGrid",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],We.prototype,"isRichGridRepost",void 0);_.f([_.c({reflectToAttribute:!0,value:_.p("use_better_post_dismissals")}),_.l("design:type",Boolean)],We.prototype,"useBetterPostDismissals",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],We.prototype,"reduceSidePaddings",void 0);
_.f([_.c({computed:"computeHasText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],We.prototype,"hasText",void 0);_.f([_.BM("#expander"),_.l("design:type",Object)],We.prototype,"expander",void 0);_.f([_.BM("#action-buttons"),_.l("design:type",Object)],We.prototype,"actionButtons",void 0);_.f([_.BM("#edit-dialog"),_.l("design:type",HTMLElement)],We.prototype,"editDialogEl",void 0);
_.f([_.OZ("data.contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],We.prototype,"contentTextChanged",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],We.prototype,"dataChanged",null);_.f([_.OZ("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],We.prototype,"isLoadingChanged",null);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],We.prototype,"onYtNavigate",null);_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],We.prototype,"onYtCommentboxDismiss",null);_.f([_.I7("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],We.prototype,"onYtCommentPollRevert",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],We.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],We.prototype,"onYtServiceRequestCompleted",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],We.prototype,"voteCount",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],We.prototype,"commentCount",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],We.prototype,"hasPoll",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],We.prototype,"hasUploadedVideo",null);We=_.f([_.U({is:"ytd-post-renderer",disableElementRegistration:!0})],We);
_.X(We,"ytd-post-renderer",function(){if(IDl!==void 0)return IDl;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return IDl=W},{mode:1});var XSl;var fYl;var Pe=function(){return _.b.apply(this,arguments)||this};
_.A(Pe,_.b);Pe.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.RO.YtdHorizontalListBehavior),_.l("design:type",Object)],Pe.prototype,"ytdHorizontalListBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Pe.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Pe.prototype,"data",void 0);
_.f([_.c({value:"$.items.children"}),_.l("design:type",String)],Pe.prototype,"itemsPath",void 0);_.f([_.c({value:1}),_.l("design:type",Number)],Pe.prototype,"initialCount",void 0);_.f([_.c(),_.l("design:type",String)],Pe.prototype,"surface",void 0);Pe=_.f([_.U({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Pe);
_.X(Pe,"ytd-post-multi-image-renderer",function(){if(fYl!==void 0)return fYl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return fYl=W},{mode:_.F4("kevlar_poly_si_batch_j079")?1:2});var Nrl={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},xJ=function(){var W=_.b.apply(this,arguments)||this;W.hasInlineCommentSection=!1;W.editDialog=null;W.isLoading=!1;W.shouldHideAuthor=!1;W.shouldShowVideoTime=!1;
W.isInEngagementPanel=!1;W.hideBorder=!1;W.usesFullLockup=!1;W.shouldShowMenuInCompactView=!1;W.JSC$12985_spinnerEl=null;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.A(xJ,_.b);_.J=xJ.prototype;_.J.configureRendererStamper=function(){return Nrl};
_.J.computeIsPollHeaderEnabled=function(W){return(W==null?void 0:W.pollMetadataIcon)!=null};
_.J.getPublishTimeStampString=function(W,P){P=new Date((Number(P)-60*((new Date).getTimezoneOffset()-(new Date(Number(P)*1E3)).getTimezoneOffset()))*1E3);P=(new cu(10)).format(P);if(W&&W.runs&&W.runs.length)for(var x=0;x<W.runs.length;x++)W.runs[x].text&&(W.runs[x].text=W.runs[x].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",P));return W};
_.J.created=function(){this.JSC$12985_spinnerEl=null};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var W;if((W=this.data)==null?0:W.actions){W=_.n(this.data.actions);for(var P=W.next();!P.done;P=W.next())this.openEditDialog(_.Q(P.value,q1z))}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){_.g(this.hostElement).querySelector("#action-buttons").reply()};
_.J.updatePoll=function(W,P){P&&this.set("data.pollMetadataVoteCountText",P);this.hasInlineCommentSection&&(W=W>=0,P=_.g(this.hostElement).querySelector("#action-buttons"),W?P.reply():P.hideReplyDialog())};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12985_spinnerEl||(this.JSC$12985_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.g(this.hostElement).appendChild(this.JSC$12985_spinnerEl));this.JSC$12985_spinnerEl&&(this.JSC$12985_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(W){var P=this.get("updateCommentDialogEndpoint",W.detail.endpoint);P&&(this.openEditDialog(P),W.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(W,P){P&&this.updatePoll(P.selectedChoiceIndex,P.totalVotes)};
_.J.onYtServiceRequestSent=function(W,P){W.stopPropagation();W=_.Q(P.endpoint,vZd);if(_.Q(P.endpoint,m3c)||W&&!W.clientActions)this.isLoading=!0;if(P.actions)for(W=0;W<P.actions.length;W++){var x=P.actions[W],I=_.Q(x,Cw);I&&(x=this.get("updateBackstagePollAction.selectedChoiceIndex",x),x===void 0&&(x=-1),this.updatePoll(x,I.totalVotes))}};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogElement.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.J.computeIsBodyHidden=function(W,P){return!!W||P};
_.N1.Object.defineProperties(xJ.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var W,P;if((W=this.data)==null?0:(P=W.pollMetadataIcon)==null?0:P.iconType)return _.PW(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.bx("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,rhd))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,MYd))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,$cp))}}});
xJ.prototype.onYtServiceRequestCompleted=xJ.prototype.onYtServiceRequestCompleted;xJ.prototype.onYtServiceRequestSent=xJ.prototype.onYtServiceRequestSent;xJ.prototype.onYtCommentPollRevert=xJ.prototype.onYtCommentPollRevert;xJ.prototype.onYtCommentboxDismiss=xJ.prototype.onYtCommentboxDismiss;xJ.prototype.onYtNavigate=xJ.prototype.onYtNavigate;xJ.prototype.isLoadingChanged=xJ.prototype.isLoadingChanged;xJ.prototype.dataChanged=xJ.prototype.dataChanged;xJ.prototype.contentTextChanged=xJ.prototype.contentTextChanged;
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],xJ.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xJ.prototype,"rendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xJ.prototype,"rendererstamperBehavior",void 0);_.f([_.BM("#contentTextExpander"),_.l("design:type",Object)],xJ.prototype,"expander",void 0);
_.f([_.BM("#edit-dialog"),_.l("design:type",Element)],xJ.prototype,"editDialogElement",void 0);_.f([_.c(),_.l("design:type",Object)],xJ.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],xJ.prototype,"hasInlineCommentSection",void 0);_.f([_.c(),_.l("design:type",Object)],xJ.prototype,"editDialog",void 0);_.f([_.c(),_.l("design:type",Object)],xJ.prototype,"isLoading",void 0);
_.f([_.c({computed:"computeIsPollHeaderEnabled(data)"}),_.l("design:type",Boolean)],xJ.prototype,"isPollHeaderEnabled",void 0);_.f([_.c(),_.l("design:type",Object)],xJ.prototype,"shouldHideAuthor",void 0);_.f([_.c(),_.l("design:type",Object)],xJ.prototype,"shouldShowVideoTime",void 0);_.f([_.c(),_.l("design:type",Object)],xJ.prototype,"isInEngagementPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xJ.prototype,"hideBorder",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xJ.prototype,"usesFullLockup",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xJ.prototype,"shouldShowMenuInCompactView",void 0);_.f([_.H("isInEngagementPanel"),_.l("design:type",Number),_.l("design:paramtypes",[])],xJ.prototype,"postTextMaxLines",null);_.f([_.H("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],xJ.prototype,"pollIcon",null);
_.f([_.OZ("data.contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xJ.prototype,"contentTextChanged",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xJ.prototype,"dataChanged",null);_.f([_.OZ("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xJ.prototype,"isLoadingChanged",null);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xJ.prototype,"onYtNavigate",null);_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xJ.prototype,"onYtCommentboxDismiss",null);_.f([_.I7("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],xJ.prototype,"onYtCommentPollRevert",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],xJ.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xJ.prototype,"onYtServiceRequestCompleted",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],xJ.prototype,"voteCount",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],xJ.prototype,"commentCount",null);_.f([_.H("data.backstageAttachment"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xJ.prototype,"hasPoll",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xJ.prototype,"hasQuiz",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xJ.prototype,"hasUploadedVideo",null);
xJ=_.f([_.U({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],xJ);
_.X(xJ,"ytd-backstage-post-renderer",function(){if(XSl!==void 0)return XSl;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return XSl=W},{mode:1});var lYl;var Ir=function(){var W=_.b.apply(this,arguments)||this;W.editDialog=null;W.showExpandButton=!1;W.isRichGrid=!1;W.usesFullLockup=!1;return W};
_.A(Ir,_.b);_.J=Ir.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.J.computeShowExpandButton=function(W){return this.usesCompactLockup||W&&W.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.J.computeUsesCompactLockup=function(W){return!!W.condensedContent};
_.J.computeShowFullContentText=function(W){return!W};
_.J.onYtNavigate=function(W){W=this.get("updateCommentDialogEndpoint",W.detail.endpoint);this.openEditDialog(W)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.repostEditDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.J.onTap=function(W){if(this.data){var P=null;this.usesCompactLockup&&!_.Nx(_.c5(W)||[],this.hostElement,["YT-IMG-SHADOW"])?P=this.get("navigationEndpoint",this.data):W.target===this.moreButtonEl&&(P=this.get("navigationEndpoint",W.target.data));P&&_.Lf(this.hostElement,"yt-navigate",{endpoint:P})}};
Ir.prototype.onYtCommentboxDismiss=Ir.prototype.onYtCommentboxDismiss;Ir.prototype.onYtNavigate=Ir.prototype.onYtNavigate;Ir.prototype.dataChanged=Ir.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ir.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],Ir.prototype,"editDialog",void 0);_.f([_.c({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Ir.prototype,"usesCompactLockup",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ir.prototype,"showExpandButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ir.prototype,"isRichGrid",void 0);
_.f([_.c({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Ir.prototype,"showFullContentText",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ir.prototype,"usesFullLockup",void 0);_.f([_.BM("#more"),_.l("design:type",Object)],Ir.prototype,"moreButtonEl",void 0);_.f([_.BM("#repost-content-text"),_.l("design:type",HTMLElement)],Ir.prototype,"repostContentTextEl",void 0);
_.f([_.BM("#repost-edit-dialog"),_.l("design:type",HTMLElement)],Ir.prototype,"repostEditDialogEl",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ir.prototype,"dataChanged",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ir.prototype,"onYtNavigate",null);
_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ir.prototype,"onYtCommentboxDismiss",null);Ir=_.f([_.U({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Ir);
_.X(Ir,"ytd-shared-post-renderer",function(){if(lYl!==void 0)return lYl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return lYl=W},{mode:1});var Trc;var rOl;var OB=function(){return _.b.apply(this,arguments)||this};
_.A(OB,_.b);OB.prototype.attached=function(){var W=this;this.networkStatusManager||(this.networkStatusManager=new _.bE,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){W.onlineHandler()}))};
OB.prototype.detached=function(){var W=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){W.onlineHandler()}),delete this.networkStatusManager)};
OB.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],OB.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],OB.prototype,"data",void 0);OB=_.f([_.U({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],OB);
_.X(OB,"ytd-reload-page-button-renderer",function(){if(rOl!==void 0)return rOl;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return rOl=W},{mode:1});var i8z={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"},JL=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(JL,_.b);_.J=JL.prototype;_.J.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.J.computeHasBodyText=function(W){return!!W.bodyText};
_.J.computeButtons=function(W){var P=[];W.ctaButton&&P.push(W.ctaButton);W.secondaryButton&&P.push(W.secondaryButton);return P};
_.J.computeRendererStyle=function(W){return W.style?W.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():W.icon?"":"no-icon"};
_.J.getIconName=function(W,P){P=P===void 0?!1:P;if(W===void 0)return"";W=this.get("icon.iconType",W);var x;_.p("enable_hlp_client_icon_pick")?x=this.getThemedIcon(W,P):x=W;(P=i8z[x])||(P="yt-icons");return[P,x].join(":")};
_.J.getThemedIcon=function(W,P){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(W)?P?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(W)?P?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":W};
_.J.isThumbnail=function(W){return!!W.thumbnail};
_.J.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],JL.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],JL.prototype,"data",void 0);
_.f([_.c({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],JL.prototype,"rendererStyle",void 0);_.f([_.c({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.l("design:type",String)],JL.prototype,"iconName",void 0);_.f([_.c({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],JL.prototype,"thumbnail",void 0);_.f([_.c({computed:"computeButtons(data)"}),_.l("design:type",Array)],JL.prototype,"buttons",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],JL.prototype,"isDarkTheme",void 0);_.f([_.c({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],JL.prototype,"hasBodyText",void 0);JL=_.f([_.U({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],JL);
_.X(JL,"ytd-background-promo-renderer",function(){if(Trc!==void 0)return Trc;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Trc=W},{mode:1});var Rqi;var Be=function(){var W=_.b.apply(this,arguments)||this;W.collections=_.p("web_modern_collections_v2");return W};
_.A(Be,_.b);_.N1.Object.defineProperties(Be.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I,O,B;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(P=W.thumbnail)==null?void 0:P.sampledThumbnailColor,vibrantColorPalette:(x=this.data)==null?void 0:(I=x.thumbnail)==null?void 0:I.vibrantColorPalette,darkColorPalette:(O=this.data)==null?void 0:(B=O.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Be.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Be.prototype,"collections",void 0);_.f([_.H("data","collections"),_.l("design:type",Object),_.l("design:paramtypes",[])],Be.prototype,"collectionStack",null);Be=_.f([_.U({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Be);
_.X(Be,"ytd-compact-station-renderer",function(){if(Rqi!==void 0)return Rqi;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Rqi=W},{mode:1});var FjZ;var nO=function(){var W=_.b.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.A(nO,_.b);nO.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]]"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nO.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],nO.prototype,"isRichGrid",void 0);nO=_.f([_.U({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],nO);
_.X(nO,"ytd-grid-channel-renderer",function(){if(FjZ!==void 0)return FjZ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return FjZ=W},{mode:1});var qEp;var YJ=function(){return _.b.apply(this,arguments)||this};
_.A(YJ,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],YJ.prototype,"data",void 0);YJ=_.f([_.U({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],YJ);
_.X(YJ,"ytd-grid-movie-playlist-renderer",function(){if(qEp!==void 0)return qEp;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return qEp=W},{mode:1});var Ljz;var y1=function(){var W=_.b.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.modernButtons=_.p("web_modern_buttons");W.useModernCollectionsV2=_.p("web_modern_collections_v2");return W};
_.A(y1,_.b);y1.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
y1.prototype.configureRendererStamper=function(){return{"data.menu":JT}};
y1.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
y1.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.p("woffle_playlist_renderer_killswitch")){var W,P=Vvm(this.entityInfo,this.transferState,this.downloadProgress,(W=this.data)==null?void 0:W.playlistId,this.isOnline);W=P.viewPlaylistText;var x=P.badges;P=P.thumbnailOverlays;this.isDownloads=!!W||!!x;this.set("data.viewPlaylistText",W);x&&x.length>0&&this.set("data.badges",x);P&&P.length>0&&this.set("data.thumbnailOverlays",
P)}};
_.N1.Object.defineProperties(y1.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 W;return!((W=this.data)==null?0:W.menu)}}});
y1.prototype.transferStateChanged=y1.prototype.transferStateChanged;y1.prototype.dataChanged=y1.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],y1.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],y1.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c({selector:_.hER,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],y1.prototype,"downloadProgress",void 0);_.f([_.c({selector:_.En,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],y1.prototype,"transferState",void 0);_.f([_.c({selector:wA7,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],y1.prototype,"entityInfo",void 0);_.f([_.c({selector:GNt}),_.l("design:type",Boolean)],y1.prototype,"isOnline",void 0);
_.f([_.c(),_.l("design:type",Object)],y1.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],y1.prototype,"downloadRenderData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],y1.prototype,"modernButtons",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],y1.prototype,"isDownloads",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],y1.prototype,"useModernCollectionsV2",void 0);
_.f([_.H("transferState"),_.c({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],y1.prototype,"downloadState",null);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y1.prototype,"menuHidden",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y1.prototype,"dataChanged",null);
_.f([_.K_("transferState","downloadProgress","isOnline"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y1.prototype,"transferStateChanged",null);y1=_.f([_.U({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],y1);
_.X(y1,"ytd-grid-playlist-renderer",function(){if(Ljz!==void 0)return Ljz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ljz=W},{mode:1});var W$Z;var KO=function(){var W=_.b.apply(this,arguments)||this;W.collections=_.p("web_modern_collections_v2");return W};
_.A(KO,_.b);KO.prototype.configureRendererStamper=function(){return{"data.menu":JT,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N1.Object.defineProperties(KO.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I,O,B;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(P=W.thumbnail)==null?void 0:P.sampledThumbnailColor,vibrantColorPalette:(x=this.data)==null?void 0:(I=x.thumbnail)==null?void 0:I.vibrantColorPalette,darkColorPalette:(O=this.data)==null?void 0:(B=O.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],KO.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],KO.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],KO.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],KO.prototype,"collections",void 0);_.f([_.H("data","collections"),_.l("design:type",Object),_.l("design:paramtypes",[])],KO.prototype,"collectionStack",null);KO=_.f([_.U({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],KO);
_.X(KO,"ytd-grid-radio-renderer",function(){if(W$Z!==void 0)return W$Z;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return W$Z=W},{mode:1});var PKi;var Zv=function(){var W=_.b.apply(this,arguments)||this;W.useModernCollectionsV2=_.p("web_modern_collections_v2");return W};
_.A(Zv,_.b);Zv.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Zv.prototype.computeNavigationEndpoint=function(W){return qjt(W==null?void 0:W.navigationEndpoint)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],Zv.prototype,"ytdLockupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Zv.prototype,"data",void 0);_.f([_.c({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],Zv.prototype,"computedNavigationEndpoint",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Zv.prototype,"useModernCollectionsV2",void 0);Zv=_.f([_.U({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Zv);
_.X(Zv,"ytd-grid-show-renderer",function(){if(PKi!==void 0)return PKi;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return PKi=W},{mode:1});var xek;_.or=function(W){this.playerClient=W};
_.ITM=function(W,P,x){x=x===void 0?{}:x;return W.playerClient.setOption("ad",P,x)};
_.or.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.or.prototype.executeCommand=function(W,P){this.getOptions().includes("executeCommand")?_.ITM(this,"executeCommand",{command:W,layoutId:P}):_.xA("Calling executeCommand when adModule is not loaded")};var SM=function(){return _.b.apply(this,arguments)||this};
_.A(SM,_.b);SM.prototype.getLayoutId=function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
SM.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var W=_.RP(),P=this.getLayoutId(),x=this.data.clickthroughEndpoint;W&&P&&_.p("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(I){(new _.or(I)).executeCommand(x,P)}):_.Lf(this.hostElement,"yt-navigate",{endpoint:x})}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],SM.prototype,"data",void 0);SM=_.f([_.U({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],SM);
_.X(SM,"ytd-shopping-companion-item-renderer",function(){if(xek!==void 0)return xek;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return xek=W},{mode:1});var Oym;var u8=function(){var W=_.b.apply(this,arguments)||this;W.isExpandableContent=!1;return W};
_.A(u8,_.b);_.N1.Object.defineProperties(u8.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.data)==null?void 0:W.price)||((P=this.data)==null?void 0:(x=P.dealsData)==null?void 0:x.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var W,P;if((W=this.data)!=null&&W.dealsData&&((P=this.data)==null||!P.priceReplacementText)){W=this.data.dealsData;var x,I,O;return((x=W.salesData)==null?void 0:x.originalPrice)||((I=W.priceDropData)==null?void 0:I.referencePrice)||((O=W.promotionData)==null?void 0:O.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var W,P;return(W=this.data)==null?void 0:(P=W.dealsData)==null?void 0:P.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],u8.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],u8.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],u8.prototype,"isExpandableContent",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"showCta",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"ctaText",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"hasPriceTopPosition",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"hasPriceBottomPosition",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"useNewStyle",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"showPriceReplacementText",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"priceValue",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"showDeal",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"showAffiliateDisclaimer",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"useSaleStyle",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"useFromBrandCtaStyle",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"useFromVendorCtaStyle",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],u8.prototype,"useShoppingCollectionCtaStyle",null);u8=_.f([_.U({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],u8);
_.X(u8,"ytd-vertical-product-card-renderer",function(){if(Oym!==void 0)return Oym;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Oym=W},{mode:1});var JDz;var dC=function(){return _.b.apply(this,arguments)||this};
_.A(dC,_.b);dC.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],dC.prototype,"ytdLockupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dC.prototype,"data",void 0);dC=_.f([_.U({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],dC);
_.X(dC,"ytd-grid-movie-renderer",function(){if(JDz!==void 0)return JDz;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return JDz=W},{mode:1});var BsM;var sB=function(){var W=_.b.apply(this,arguments)||this;W.rounded=!0;W.itemStyle="small-item";return W};
_.A(sB,_.b);sB.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,P,x,I,O=(P=_.Q((W=this.data)==null?void 0:W.buttonCommand,_.KS3))==null?void 0:(x=P.item)==null?void 0:(I=x.notificationTextRenderer)==null?void 0:I.successResponseText;O&&_.rDd(this.hostElement,O)}};
_.N1.Object.defineProperties(sB.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:W.isProductPlaceholder)!==void 0&&((P=this.data)==null?void 0:P.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sB.prototype,"rounded",void 0);_.f([_.c(),_.l("design:type",Object)],sB.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],sB.prototype,"itemStyle",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sB.prototype,"hasPrice",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sB.prototype,"hasPriceReplacementText",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sB.prototype,"hasAdditionalFeesText",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sB.prototype,"hasAffiliateDisclaimer",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sB.prototype,"isProductPlaceholder",null);
_.f([_.c(),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sB.prototype,"hideOpenInNewIcon",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sB.prototype,"ariaLabel",null);sB=_.f([_.U({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],sB);
_.X(sB,"ytd-merch-shelf-item-renderer",function(){if(BsM!==void 0)return BsM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return BsM=W},{mode:1});var nEc=_.kl(function(W){var P=_.fa();_.NI(P,function(){return W.data().rendererContext});
return _.u("button-card-view-model",{el:P,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return W.data().title},
role:"button"},_.u(_.s4,{model:{}}),_.u("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.u("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.u(_.V,{cond:function(){return W.data().image},
then:function(x){return _.u(_.bq,{data:x,alt:function(){var I;return(I=W.data().title)!=null?I:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.u("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return W.data().title})))},"Ua");_.p("web_button_view_model_wcw_registration_killswitch")||_.lq(nEc,"button-card-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){W=_.bw(W,{className:void 0});var P=W.data;W=W.className;var x=_.Sj(function(){return P().onTapCommand},void 0,"NprDr");
return _.u("ytd-shopping-item-card",{class:_.O4("ytdShoppingItemCardHost",W)},_.u(_.vF,{command:x,className:"ytdShoppingItemCardHostLink"},_.u("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.u(_.Ea,{data:function(){return P().thumbnailViewModel}},{thumbnailViewModel:function(I){return _.u(_.kt,{data:I.data,
aspectRatio:3})}})),_.u("div",null,_.u("p",{class:"ytdShoppingItemCardHostItemTitle"},_.u(_.mQ,{text:function(){return P().itemTitle}})),_.u("p",{class:"ytdShoppingItemCardHostPrice"},_.u(_.mQ,{text:function(){return P().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.cv,
className:_.cv}});var Ysd={isAdsVideo:!0},yDM={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},K$Z={showPlayerControls:!1,videoPreviewDurationMs:15E3},IJ8={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.p("web_shorts_imp_fullwidth_killswitch")};var Or=null,iy7={};var qs8="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(" "),ve={},L$W=(ve.FEwhat_to_watch="home",ve.FEhashtag="hashtag",ve.FEtrending="trending",ve.FEhistory="history",ve.SPunlimited="premium",ve.FEmemberships_and_purchases="paid_memberships",ve.SPredeem_code="redeem",ve.SPverify_location="locate",ve.SPminor_moment="minor_moment",
ve.FEmini_app_container="mini_app",ve.FEnews_destination="news",ve.SPopen_in_app="open_in_app",ve.FEexplore="explore",ve.FEsubscriptions="subscriptions",ve.FEsfv_audio_pivot="sfv_audio_pivot",ve.FEplaylist_aggregation="playlist_aggregation",ve);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");_.Jn("init");var ZyP=function(){},dep=_.kl(function(W){var P=W.data;
var x=W.inlineMetadata;var I=W.aspectRatio;var O=W.scrimStyle;var B=W.className;var Y=W.useDefaultStyle;var K=new ZyP,Z=_.p("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",d=_.Sj(function(){return(Y==null?0:Y())?Z==="SHORTS_LOCKUP_STYLE_SLIM":P().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),v=_.Sj(function(){return _.zB(x)||d()||!1},void 0,"pcPnBf"),m=function(){return(O==null?void 0:O())!==void 0?O==null?void 0:O():1};
W=_.fa(function(T){K&&(K.hostElement=T,D())});
_.FL(W,{visibilityCallback:function(T){var N=P().onFirstVisible;T&&N&&_.D1(N)},
showOption:{calledOnce:!0,state:"visible"}});B=_.O4("shortsLockupViewModelHost",B);var t=_.fa(),C={};C=_.O4(function(){return d(),"shortsLockupViewModelHostThumbnailContainer"},(C.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.zB(I)===1},C.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.zB(I)===2},C.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!d()},C.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.p("web_shorts_2_by_3_lockups_study")&&!_.p("desktop_search_enable_two_by_three_shorts_aspect_ratio")},C));
var z,D=function(){if(K){var T;(T=z)==null||no(T);var N;K.hostElement&&((N=K.data)==null?0:N.inlinePlayerData)&&(z=ir({mediaRenderer:K,lockupElement:K.hostElement,thumbnailElement:t.value,videoPreviewOpts:IJ8}))}};
_.jj(function(){K&&(K.data=P(),D())});
var w=_.Sj(function(){return P().thumbnail},void 0,"FXJKOd"),a=_.Sj(function(){return P().badge},void 0,"RHSDwe"),k=_.Sj(function(){return P().onTap},void 0,"twXQme");
return _.u("ytm-shorts-lockup-view-model",{el:W,class:B},_.u(_.qS,null,_.u(_.vF,{command:k,className:_.O4("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!v()},
tabIndex:function(){return v()?0:-1}},_.u("div",{el:t,
class:C},_.u(_.V,{cond:w,then:function(){return _.u(_.bq,{data:function(){return w()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.u(_.V,{cond:v,
then:function(){return _.u(oEw,{data:P,scrimStyle:m,useDefaultStyle:Y})}}),_.u(_.Ea,{data:a},{badgeViewModel:function(T){return _.u(_.N0,{data:T.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.u(_.V,{cond:function(){return v()&&P().menuOnTap},
then:function(){return _.u(Ssm,{data:P,inlineMetadata:!0})}}),_.u(_.V,{cond:function(){return!v()},
then:function(){return _.u(uQl,{data:P,useDefaultStyle:Y})}})))},"Wa"),oEw=_.kl(function(W){var P=W.data;
var x=W.scrimStyle;var I=W.useDefaultStyle;var O=_.p("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",B=I&&_.p("web_hide_primary_text_for_pivot_panel"),Y=_.Sj(function(){return(I==null?0:I())?O==="SHORTS_LOCKUP_STYLE_SLIM":P().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
W={};W=_.O4("shortsLockupViewModelHostInlineMetadata",(W.shortsLockupViewModelHostMetadataRounded=function(){return!Y()},W.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(x==null?void 0:x())===3&&!_.p("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(x==null?void 0:x())===3&&_.p("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(x==null?void 0:x())===2||(x==null?void 0:
x())===4},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
var K={};return _.u("div",{class:W},_.u("h3",{class:_.O4("shortsLockupViewModelHostMetadataTitle",(K.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(x==null?void 0:x())===4},K)),
"aria-label":function(){return P().accessibilityText}},_.u(_.V,{cond:function(){var Z;
return!((Z=P().overlayMetadata)==null||!Z.primaryText)&&!B},
then:function(){return _.u(_.mQ,{text:function(){var Z;return(Z=P().overlayMetadata)==null?void 0:Z.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.u(_.V,{cond:function(){var Z;
return(Z=P().overlayMetadata)==null?void 0:Z.secondaryText},
then:function(){return _.u(sBp,{data:P,scrimStyle:x,className:void 0})}}))},"Xa"),uQl=_.kl(function(W){var P=W.data;
var x=W.useDefaultStyle;var I=_.p("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",O=_.Sj(function(){return(x==null?0:x())?I==="SHORTS_LOCKUP_STYLE_SLIM":P().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
W=_.O4(function(){return O()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var B,Y=_.yB(function(){var Z;(Z=B)==null||Z.click();return!1}),K={};
return _.u("div",{class:W,"on:click":Y},_.u("h3",{class:_.O4("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(K.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var Z,d;return!((Z=P().overlayMetadata)==null?0:(d=Z.primaryText)==null?0:d.content)},K)),
"aria-label":function(){return P().accessibilityText}},_.u(_.vF,{ref:function(Z){return void(B=Z)},
command:function(){return P().onTap},
className:_.O4("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var Z,d;return(Z=P().overlayMetadata)==null?void 0:(d=Z.primaryText)==null?void 0:d.content}},_.u(_.V,{cond:function(){return!!P().overlayMetadata},
then:function(){return _.u(_.mQ,{text:function(){var Z;return(Z=P().overlayMetadata)==null?void 0:Z.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.u(_.V,{cond:function(){var Z;
return(Z=P().overlayMetadata)==null?void 0:Z.secondaryText},
then:function(){return _.u(sBp,{data:P,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.u(_.V,{cond:function(){return P().menuOnTap},
then:function(){return _.u(Ssm,{data:P,inlineMetadata:!1})}}))},"Ya"),sBp=_.kl(function(W){var P=W.data;
var x=W.scrimStyle;W=W.className;var I={};return _.u("div",{class:_.O4((I.shortsLockupViewModelHostMetadataSubhead=function(){return(x==null?void 0:x())!==4},I.shortsLockupViewModelHostMetadataSubheadNew=_.p("enable_shorts_lockup_new_scrim"),I.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(x==null?void 0:x())===4},I),W),
"aria-hidden":"true"},_.u(_.mQ,{text:function(){var O;return(O=P().overlayMetadata)==null?void 0:O.secondaryText},
noStyleRuns:!0}))},"Za"),Ssm=_.kl(function(W){var P=W.data;
var x=W.inlineMetadata;W={};W=_.O4((W.shortsLockupViewModelHostInlineMetadataMenu=function(){return x()},W.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!x()},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
return _.u("div",{class:W},_.u(PO,{data:function(){return{style:x()?"overlay":"mono",accessibilityLabel:P().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(I){I.preventDefault();I.stopPropagation();var O=_.Gm({elementsCommand:P().menuOnTap,forceNewState:!0});if(O==null?0:O.onclick)O.onclick(I)}}},
iconName:"MORE_VERT"}))},"$a");var JjW=_.CC({badgeViewModel:qG8}),xqm=function(){},vEl=_.nE(YQG),mez=_.kl(function(W){var P=W.data;
var x=W.inlineMetadata;var I=W.aspectRatio;var O=W.scrimStyle;var B=W.className;var Y=W.useDefaultStyle;W=_.Sj(function(){var Z=P().entityId;return Z?Z.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var K=_.p("web_shorts_lockup_view_model_sink")?dep:vEl;return _.u("ytm-shorts-lockup-view-model-v2",{class:_.O4("shortsLockupViewModelHost",B)},_.u(_.Epd,{contentId:W,aspectRatio:function(){return(I==null?void 0:I())===1?1:(I==null?void 0:I())===2?2:4}},function(){return _.u(K,{data:P,
inlineMetadata:x,aspectRatio:I,scrimStyle:O,className:B,useDefaultStyle:Y})}))},"ab");
_.ql(YQG);_.ql(OHU);_.ql(ndx);_.ql(yjG);_.ql(BPR);_.lq(mez,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Ng,inlineMetadata:_.Ng,aspectRatio:_.Ng,scrimStyle:_.Ng,className:_.Ng,useDefaultStyle:_.Ng}});var VsW=16/9*210,mc=function(){var W=_.b.apply(this,arguments)||this;W.isExpandableContent=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.buttonClasses=["arrow"];W.isSearch=!1;W.disableScrollEventListener=!1;W.containsLockup=!1;W.overrideArrowPositionForProductCard=!1;W.overrideArrowPositionForShoppingItemCard=!1;W.overrideArrowPositionForReelItems=!1;W.overrideArrowPositionForGridMovie=!1;W.overrideArrowPositionToCenter=!1;W.isSearchPostShelf=!1;W.overrideArrowPositionForMixedShelf=!1;W.overrideArrowPositionForMixedShelfShortsOnly=
!1;W.hasBigThumbsReelItems=!1;W.shouldUseMixedListHeight=!1;W.shouldUseShortsListHeight=!1;W.gridVideoWidth=0;W.isSearchVodShelf=!1;W.disableWheelScroll=!1;W.sizing="COMPACT";W.shortsLockupAspectRatio=0;return W};
_.A(mc,_.b);_.J=mc.prototype;
_.J.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]]"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.p("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.J.computeInitialCountNumber=function(W){if(!W)return 6;var P=W.items.some(function(B){return!!B.topicRecommendationsChipRenderer}),x=W.items.some(function(B){return!!B.displayAdRenderer}),I=this.computeShouldListItemsHaveEqualHeight(W),O=W.items.some(function(B){return!!B.gridPlaylistRenderer});
W=W.items.some(function(B){return!!B.shoppingItemCardViewModel});
return P?9:x?8:O||I?10:W?7:6};
_.J.computeContainsPost=function(W){return!!W&&!!W.items&&W.items.some(function(P){return!!P.postRenderer})};
_.J.computeContainsLockup=function(){if(_.p("web_horizontal_list_lockup_arrow_killswitch"))return!1;var W,P;return(W=this.data)==null?void 0:(P=W.items)==null?void 0:P.some(function(x){return!!x.lockupViewModel})};
_.J.maybeUpdateLockupAspectRatio=function(){var W,P;if(this.computeContainsLockup()&&((W=this.data)==null?0:(P=W.items)==null?0:P.length)){var x;W=Lj8((x=this.data.items[0].lockupViewModel)==null?void 0:x.contentType,this.data.force16By9ThumbnailAspectRatio);x=apC(W);x=this.computeLockupWidth()/x;_.qa(this.hostElement,{"--yt-horizontal-list-content-height":x+"px"})}};
_.J.computeOverrideArrowPositionForProductCard=function(W){if(this.isExpandableContent)return!1;var P;return!!(W==null?0:(P=W.items)==null?0:P.some(function(x){return!!x.verticalProductCardRenderer}))};
_.J.computeOverrideArrowPositionForShoppingItemCard=function(W){var P;return!!(W==null?0:(P=W.items)==null?0:P.some(function(x){return!!x.shoppingItemCardViewModel}))};
_.J.computeOverrideArrowPositionForReelItemRenderer=function(W){return this.containsReelItemRenderer(W)};
_.J.computeHasBigThumbsReelItems=function(W,P){return W&&this.containsReelItemRenderer(P)};
_.J.computeShouldListItemsHaveEqualHeight=function(W){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(W==null?void 0:W.itemSizeConstraint)};
_.J.computeShouldListItemsHaveShortsHeight=function(W){return this.computeShouldListItemsHaveEqualHeight(W)&&!this.containsGridVideoRenderer(W)};
_.J.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.J.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.J.containsReelItemRenderer=function(W){var P;return!!(W==null?0:(P=W.items)==null?0:P.some(function(x){return!(!x.reelItemRenderer&&!x.shortsLockupViewModel)}))};
_.J.containsGridVideoRenderer=function(W){var P;return!!(W==null?0:(P=W.items)==null?0:P.some(function(x){return!!x.gridVideoRenderer||!!x.lockupViewModel}))};
_.J.computeContainsGridMovieRenderer=function(W){var P;return!!(W==null?0:(P=W.items)==null?0:P.some(function(x){return!!x.gridMovieRenderer}))};
_.J.computeOverrideArrowPositionToCenter=function(W){return this.computeIsSearchPostShelf(W)};
_.J.computeIsSearchPostShelf=function(W){var P;return!!(W==null?0:(P=W.items)==null?0:P.some(function(x){var I,O;return((O=(I=x.postRenderer)==null?void 0:I.surface)!=null?O:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.J.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(W){var P;return!!(W==null?0:(P=W.items)==null?0:P.some(function(x){var I,O,B;return((B=(I=x.backgroundPromoRenderer)==null?void 0:(O=I.style)==null?void 0:O.value)!=null?B:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.J.computeIsSearchVodShelf=function(W,P){return W&&this.containsGridVideoRenderer(P)};
_.J.computeDisableWheelScroll=function(W,P){return this.computeIsSearchVodShelf(W,P)};
_.J.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.J.computeShortsLockupAspectRatio=function(W){return W&&_.p("web_shorts_2_by_3_lockups_no_search")&&!_.p("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.J.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.qa(this.hostElement,{"--ytd-reel-item-thumbnail-height":VsW+"px"})};
mc.prototype.dataChanged=mc.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.RO.YtdHorizontalListBehavior),_.l("design:type",Object)],mc.prototype,"ytdHorizontalListBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mc.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],mc.prototype,"isExpandableContent",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"hideShelfHeader",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"engagementPanel",void 0);_.f([_.c(),_.l("design:type",Array)],mc.prototype,"buttonClasses",void 0);_.f([_.c(),_.l("design:type",Object)],mc.prototype,"isSearch",void 0);
_.f([_.c(),_.l("design:type",Object)],mc.prototype,"disableScrollEventListener",void 0);_.f([_.c({computed:"computeInitialCountNumber(data)"}),_.l("design:type",Number)],mc.prototype,"initialCount",void 0);_.f([_.c({computed:"computeContainsPost(data)"}),_.l("design:type",Boolean)],mc.prototype,"supportComponentResize",void 0);_.f([_.c({computed:"computeContainsPost(data)"}),_.l("design:type",Boolean)],mc.prototype,"containsPost",void 0);
_.f([_.c({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"containsLockup",void 0);_.f([_.c({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],mc.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.f([_.c({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"overrideArrowPositionForProductCard",void 0);_.f([_.c({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.f([_.c({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"overrideArrowPositionForReelItems",void 0);_.f([_.c({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"overrideArrowPositionForGridMovie",void 0);
_.f([_.c({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"overrideArrowPositionToCenter",void 0);_.f([_.c({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"isSearchPostShelf",void 0);_.f([_.c({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.f([_.c({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.f([_.c({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"hasBigThumbsReelItems",void 0);
_.f([_.c({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"shouldUseMixedListHeight",void 0);_.f([_.c({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"shouldUseShortsListHeight",void 0);_.f([_.c({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"gridVideoWidth",void 0);
_.f([_.c({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"isSearchVodShelf",void 0);_.f([_.c({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],mc.prototype,"disableWheelScroll",void 0);_.f([_.c({computed:"computeSizing(isSearch)"}),_.l("design:type",Object)],mc.prototype,"sizing",void 0);
_.f([_.c({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.l("design:type",Object)],mc.prototype,"shortsLockupAspectRatio",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mc.prototype,"dataChanged",null);
_.X(mc,"yt-horizontal-list-renderer",function(){if(KMc===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);KMc=W}W=KMc;return W},{mode:1});var tsd;var p$z=[10,12,14,16,18,20,24,28,32,36],jBw=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],V1=function(){var W=_.b.apply(this,arguments)||this;W.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";W.hideOverflow=!1;W.useRoboto=!1;W.fontClass="";W.overflown=!1;W.actionMap={"yt-window-resized":"resize"};return W};
_.A(V1,_.b);_.J=V1.prototype;
_.J.attached=function(){var W=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();_.Xm(this,function(){W.resize()});
if(!_.yo){var P,x,I;(P=document)==null||(x=P.fonts)==null||(I=x.ready)==null||I.then(function(){W.resize()})}};
_.J.dataChanged=function(){this.resize()};
_.J.guideIsExpandedChanged=function(){this.resize()};
_.J.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 W=this.getMaxNumLines(),P=this.getMinFont(),x=this.getMaxFont(),I=this.useRoboto?p$z:jBw;for(I=I.filter(function(B){return B<=x&&B>=P});I.length>1;){var O=Math.floor(I.length/2);
this.updateFontSize(I[O]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=W)I=I.slice(O,I.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>W)I=I.slice(0,O);else break}this.updateFontSize(I[I.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(W)}};
_.J.handleOverflow=function(W){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>W&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",W.toString()))};
_.J.updateFontSize=function(W){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+W;this.textNode.classList.add(this.fontClass)};
_.J.getMaxFont=function(){var W=this.useRoboto?p$z:jBw;W=W[W.length-1];return this.maxFontSize&&this.maxFontSize<=W?this.maxFontSize:W};
_.J.getMinFont=function(){var W=(this.useRoboto?p$z:jBw)[0];return this.minFontSize&&this.minFontSize>=W?this.minFontSize:W};
_.J.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.J.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.J.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.kz(this.text).split("\n").length-1:Infinity};
_.J.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
V1.prototype.guideIsExpandedChanged=V1.prototype.guideIsExpandedChanged;V1.prototype.dataChanged=V1.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],V1.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],V1.prototype,"actionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],V1.prototype,"text",void 0);
_.f([_.c(),_.l("design:type",String)],V1.prototype,"fontFamily",void 0);_.f([_.c(),_.l("design:type",Number)],V1.prototype,"maxWidth",void 0);_.f([_.c(),_.l("design:type",Number)],V1.prototype,"maxHeight",void 0);_.f([_.c(),_.l("design:type",Number)],V1.prototype,"maxFontSize",void 0);_.f([_.c(),_.l("design:type",Number)],V1.prototype,"minFontSize",void 0);_.f([_.c(),_.l("design:type",Number)],V1.prototype,"maxLines",void 0);_.f([_.c(),_.l("design:type",Object)],V1.prototype,"hideOverflow",void 0);
_.f([_.c({selector:_.pAm}),_.l("design:type",Boolean)],V1.prototype,"guideIsExpanded",void 0);_.f([_.BM("#container"),_.l("design:type",HTMLElement)],V1.prototype,"containerNode",void 0);_.f([_.BM("#text"),_.l("design:type",HTMLElement)],V1.prototype,"textNode",void 0);_.f([_.K_("text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"dataChanged",null);
_.f([_.K_("guideIsExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"guideIsExpandedChanged",null);V1=_.f([_.U({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],V1);
_.X(V1,"yt-dynamic-sizing-formatted-string",function(){if(tsd!==void 0)return tsd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return tsd=W},{mode:1});var QBk;_.CKz=function(W){_.Wd.call(this,W)};
_.A(_.CKz,_.Wd);var ADW=function(W){_.Wd.call(this,W)};
_.A(ADW,_.CKz);var tL=function(){return _.b.apply(this,arguments)||this};
_.A(tL,_.b);tL.prototype.onTapSuspendedChannel=function(){var W;if((W=this.data)!=null&&W.serviceEndpoint){var P,x;(W=(x=_.Q((P=this.data)==null?void 0:P.serviceEndpoint,_.aR))==null?void 0:x.url)?_.G1(W,void 0,void 0,window.top):(P=new ADW("Did not handle suspended account tap. No appealUrl."),_.G$(P))}else P=new ADW("Did not handle suspended account tap. No serviceEndpoint."),_.G$(P)};
tL.prototype.onTap=function(){var W=this,P=_.YY(),x,I=(x=_.nt(P,{veType:7116}))!=null?x:void 0;_.hd(P,{visualElement:I});_.Aq();this.saveRoleText();var O;if((O=this.data)==null?0:O.youtubeSuspended)this.onTapSuspendedChannel();else{var B=!1,Y,K;(P=(K=_.Q((Y=this.data)==null?void 0:Y.serviceEndpoint,_.CGA))==null?void 0:K.supportedTokens)&&P.forEach(function(Z){if(Z.accountSigninToken)if(B=!0,W.onAccountItemTap)W.onAccountItemTap(Z.accountSigninToken.signinUrl);else _.G1(Z.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!B){if(Y=this.get("serviceEndpoint",this.data))B=!0,this.ytComponentBehavior.resolveCommand(Y);B||_.EA(new ADW("Did not handle account switch tap. No token."))}}};
tL.prototype.saveRoleText=function(){if(this.data){var W=this.data,P=W.channelDelegationRole;if(P){var x,I=(x=_.Q(W==null?void 0:W.serviceEndpoint,_.CGA))==null?void 0:x.supportedTokens;if(!I){var O,B,Y,K;I=(O=_.Q(W==null?void 0:W.serviceEndpoint,_.Ac))==null?void 0:(B=O.popup)==null?void 0:(Y=B.confirmDialogRenderer)==null?void 0:(K=Y.confirmButton)==null?void 0:K.buttonRenderer;var Z;I=(Z=_.Q(I==null?void 0:I.command,_.B7))==null?void 0:Z.commands;if(!I)return;var d;I=(d=_.Q(I[1],_.CGA))==null?
void 0:d.supportedTokens}if(I){Z=void 0;d=_.n(I);for(I=d.next();!I.done;I=d.next())if(I=I.value,I.datasyncIdToken){Z=I.datasyncIdToken.datasyncIdToken;break}if(Z){var v;a:{if(_.IxW()&&(d=_.pVx(Z+"::pom"))){d=new Zi(d);break a}d=void 0}(v=d)==null||v.set("role_text",P);if((sOx?sOx:window.location).href.indexOf("studio")!==-1&&(v=OBx())){d=v.src?(new URL(v.src)).origin:"*";var m;(m=v.contentWindow)==null||m.postMessage({action:"save_pom_role",datasyncId:Z,roleText:P},d)}}}}}};
_.N1.Object.defineProperties(tL.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.data)==null?void 0:(P=W.accountPhoto)==null?void 0:P.thumbnails;return x&&x.length>0&&(x[0].height===36||x[0].height===48)?x[0].height:40}}});
tL.prototype.onTap=tL.prototype.onTap;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],tL.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],tL.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!1}),_.l("design:type",Function)],tL.prototype,"onAccountItemTap",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tL.prototype,"enableRingForActiveAccount",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],tL.prototype,"thumbnailSize",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tL.prototype,"onTap",null);tL=_.f([_.U({is:"ytd-account-item-renderer",disableElementRegistration:!0})],tL);
_.X(tL,"ytd-account-item-renderer",function(){if(QBk!==void 0)return QBk;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return QBk=W},{mode:1});var zzw;var jM=function(){return _.b.apply(this,arguments)||this};
_.A(jM,_.b);jM.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.FY().resolve(_.qR).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jM.prototype,"data",void 0);jM=_.f([_.U({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],jM);
_.X(jM,"ytd-identity-chip-renderer",function(){if(zzw!==void 0)return zzw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zzw=W},{mode:1});var GxM;var EEm;var gEc;var DeA;var Q1=function(){var W=_.b.apply(this,arguments)||this;W.richItemMinWidth=_.Wi("wn_grid_min_item_width",310);W.isShorts=!1;W.isWatchNext=!1;W.isExploreHub=!1;return W};
_.A(Q1,_.b);_.N1.Object.defineProperties(Q1.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var W=[],P=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.qa(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var x;if(((x=this.data)==null?0:x.rows)&&P)for(P*=this.data.rows,x=0;x<P;x++)W.push({});return W}}});
_.f([_.h(_.Gp),_.l("design:type",Object)],Q1.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Q1.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.CR,value:3}),_.l("design:type",Number)],Q1.prototype,"itemsPerRow",void 0);_.f([_.c({selector:_.tOd,value:6}),_.l("design:type",Number)],Q1.prototype,"slimItemsPerRow",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Number)],Q1.prototype,"richItemMinWidth",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],Q1.prototype,"miniMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q1.prototype,"isShorts",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q1.prototype,"isWatchNext",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q1.prototype,"isExploreHub",void 0);
_.f([_.H("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.l("design:type",Array),_.l("design:paramtypes",[])],Q1.prototype,"cardItems",null);Q1=_.f([_.U({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Q1);
_.MsW=_.R7()(Q1,"ytd-ghost-grid-renderer",function(){if(DeA===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);DeA=W}W=DeA;return W},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.lq(_.kl(function(W){var P=_.bw(W,{numberOfComments:3}).numberOfComments,x=_.bw(W,{isInitialLoad:!1}).isInitialLoad,I=_.bw(W,{engagementPanel:!1}).engagementPanel,O=function(){return Math.min(Number(P==null?void 0:P())||20,20)};
return _.u("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.u(_.V,{cond:function(){return!(I==null?0:I())&&(x==null?void 0:x())},
then:function(){return _.u("div",{class:"ytGhostCommentsComments"},_.u("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.u("div",{class:_.O4("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.u("div",{class:_.O4("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.u("div",{class:"ytGhostCommentsGhostCard"},_.u("div",{class:"ytGhostCommentsAvatar"},_.u("div",{class:"ytGhostCommentsCircle"})),_.u("div",{class:"ytGhostCommentsComments"},_.u("div",{class:"ytGhostCommentsMeta"},
_.u("div",{class:_.O4("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.u("div",{class:_.O4("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.u("div",{class:"ytGhostCommentsComments"},_.u(_.sV,{each:function(){return Array((O==null?void 0:O())||3)}},function(){return _.u("div",{class:"ytGhostCommentsGhostCard"},_.u("div",{class:"ytGhostCommentsAvatar"},_.u("div",{class:"ytGhostCommentsCircle"})),_.u("div",{class:"ytGhostCommentsHost"},_.u("div",{class:"ytGhostCommentsMeta"},
_.u("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.u("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:"ytGhostCommentsGhostLikeDislike"},_.u("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.cv,
isInitialLoad:_.cv,engagementPanel:_.cv}});_.Ad("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var CO=function(){var W=_.b.apply(this,arguments)||this;W.isOverridable=!1;W.spinnerActive=!1;W.showButton=!1;W.isCommentsSection=!1;W.engagementPanel=!0;W.isShortsGrid=!1;W.isShortsPage=!1;W.isWatchPage=!1;W.ghostCardExperimentEnabled=_.p("show_ghost_comments_shorts_watch")||_.p("show_ghost_comments_desktop_watch");W.originalShowButton=!1;W.endOfList=!1;return W};
_.A(CO,_.b);_.J=CO.prototype;_.J.resetIntersectionObserver=function(){var W;(W=this.observer)==null||W.disconnect();this.observer=void 0};
_.J.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var W,P;((W=this.data)==null?void 0:W.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((P=this.data)==null?0:P.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.J.initializeIntersectionObserver=function(){var W=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(P){P=_.n(P);for(var x=P.next();!x.done;x=P.next())x.value.isIntersecting&&(W.triggerContinuation(),W.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.J.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.J.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var W;((W=this.data)==null?0:W.continuationEndpoint)&&(W=_.Q(this.data.continuationEndpoint,_.gL))&&this.ytdReduxBehavior.dispatch(_.LK({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:W}}))};
_.J.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.J.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.J.onServiceRequestCompleted=function(W,P){if(!_.p("kevlar_hide_spinner_on_empty_continuation_killswitch")){var x;(x=P.actions)!=null&&x.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.J.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.J.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.J.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.J.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var W=3;if(this.engagementPanel){var P,x,I;W=Math.floor(((((P=this.hostElement)==null?void 0:(x=P.parentElement)==null?void 0:(I=x.parentElement)==null?void 0:I.scrollHeight)||108)-108)/108);W=this.isInitialLoad?Math.max(W,3):3}P=[].concat(_.ju(this.hostElement.querySelectorAll("yt-ghost-comments")));P=_.n(P);for(x=P.next();!x.done;x=P.next())x=x.value,x.numberOfComments=W,x.isInitialLoad=this.isInitialLoad,x.engagementPanel=
this.engagementPanel}};
_.J.detached=function(){this.resetIntersectionObserver()};
_.N1.Object.defineProperties(CO.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.p("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.p("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
CO.prototype.numberOfGhostCommentsChanged=CO.prototype.numberOfGhostCommentsChanged;CO.prototype.continuationTriggerOffsetChanged=CO.prototype.continuationTriggerOffsetChanged;CO.prototype.showButtonChanged=CO.prototype.showButtonChanged;CO.prototype.onYtServiceRequestCompletedForButtonRenderer=CO.prototype.onYtServiceRequestCompletedForButtonRenderer;CO.prototype.onServiceRequestCompleted=CO.prototype.onServiceRequestCompleted;CO.prototype.onYtServiceRequestSentForButtonRenderer=CO.prototype.onYtServiceRequestSentForButtonRenderer;
CO.prototype.observeData=CO.prototype.observeData;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.$9.YtVisibilityBehavior),_.l("design:type",Object)],CO.prototype,"ytVisibilityBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],CO.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],CO.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],CO.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],CO.prototype,"isOverridable",void 0);_.f([_.c(),_.l("design:type",Object)],CO.prototype,"spinnerActive",void 0);_.f([_.c(),_.l("design:type",Object)],CO.prototype,"showButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CO.prototype,"isCommentsSection",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CO.prototype,"engagementPanel",void 0);_.f([_.c(),_.l("design:type",Object)],CO.prototype,"isShortsGrid",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.Q9R}),_.l("design:type",Object)],CO.prototype,"isShortsPage",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.zK}),_.l("design:type",Object)],CO.prototype,"isWatchPage",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CO.prototype,"ghostCardExperimentEnabled",void 0);
_.f([_.c(),_.l("design:type",Number)],CO.prototype,"continuationTriggerOffset",void 0);_.f([_.c(),_.l("design:type",Object)],CO.prototype,"endOfList",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],CO.prototype,"isInitialLoad",void 0);_.f([_.BM("ytd-button-renderer"),_.l("design:type",_.UN)],CO.prototype,"buttonRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],CO.prototype,"buttonOverrides",void 0);
_.f([_.c(),_.H("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.l("design:type",Object),_.l("design:paramtypes",[])],CO.prototype,"isShortsCommentsSection",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CO.prototype,"observeData",null);
_.f([_.I7("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CO.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],CO.prototype,"onServiceRequestCompleted",null);
_.f([_.I7("yt-service-request-completed-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CO.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.f([_.K_("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CO.prototype,"showButtonChanged",null);
_.f([_.K_("continuationTriggerOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CO.prototype,"continuationTriggerOffsetChanged",null);_.f([_.OZ("isInitialLoad","engagementPanel"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CO.prototype,"numberOfGhostCommentsChanged",null);CO=_.f([_.U({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],CO);
_.X(CO,"ytd-continuation-item-renderer",function(){if(gEc!==void 0)return gEc;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return gEc=W},{mode:1});var $ez;var AL=function(){var W=_.b.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;W.downloadedVideoPlaybackPosition=0;return W};
_.A(AL,_.b);AL.prototype.dataChanged=function(){var W;this.videoData=_.Q((W=this.data)==null?void 0:W.renderer,Lsl);this.transferStateChanged()};
AL.prototype.downloadProgressChanged=function(){if(this.entityInfo){var W=Object.assign({},this.videoData),P=tvm(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),x=P.publishedTimeText,I=P.badges;W.shortViewCountText=P.shortViewCountText;W.publishedTimeText=x;W.badges=I;this.set("videoData",W)}};
AL.prototype.transferStateChanged=function(){if(this.entityInfo){var W=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",P=_.ux(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Sl(this.entityInfo.policyEntity),x=Object.assign({},this.videoData),I=tvm(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),O=I.publishedTimeText,B=I.badges;x.shortViewCountText=
I.shortViewCountText;x.publishedTimeText=O;x.badges=B;x.isDisabled=P;x.isWatched=this.downloadedVideoPlaybackPosition>0;x.navigationEndpoint=P?void 0:R2U(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Y;W&&((Y=this.videoData)==null?0:Y.videoId)&&!_.p("dl_resume_click_killswitch")&&(x.isDisabled=!1,x.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});x.thumbnailOverlays=mGd(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",x)}};
AL.prototype.transferStateChanged=AL.prototype.transferStateChanged;AL.prototype.downloadProgressChanged=AL.prototype.downloadProgressChanged;AL.prototype.dataChanged=AL.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],AL.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],AL.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],AL.prototype,"videoData",void 0);_.f([_.c({selector:gE,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],AL.prototype,"downloadProgress",void 0);_.f([_.c(),_.l("design:type",Number)],AL.prototype,"relativeDateReference",void 0);_.f([_.c({selector:_.GK,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],AL.prototype,"transferState",void 0);
_.f([_.c({selector:fy8,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],AL.prototype,"downloadState",void 0);_.f([_.c({selector:gZS,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],AL.prototype,"offlinePolicyAction",void 0);_.f([_.c({selector:D3A,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],AL.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.f([_.c({selector:D5,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],AL.prototype,"downloadedVideoPlaybackPosition",void 0);_.f([_.c({selector:$3C,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],AL.prototype,"entityInfo",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],AL.prototype,"isDownloading",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AL.prototype,"dataChanged",null);
_.f([_.K_("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AL.prototype,"downloadProgressChanged",null);_.f([_.K_("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AL.prototype,"transferStateChanged",null);
AL=_.f([_.U({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],AL);
_.X(AL,"ytd-downloaded-video-grid-video-renderer",function(){if($ez!==void 0)return $ez;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return $ez=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var w$A;var zi=function(){};
zi.prototype.resolve=function(W,P){var x=this;return _.y(function(I){return _.S(I,x.resolveCommand(W,P),0)})};var hzZ,Gi;hzZ=ddR(function(W){return W.targetId},{shouldPersist:!1});
Gi=hzZ.updateData;_.Hyz=hzZ.useUpdatableData;var ezc,cDc;ezc=ddR(function(W){return W.targetId});
cDc=ezc.updateData;_.aTi=ezc.useUpdatableData;var bym=K28.bind(null,Gi),kxl=K28.bind(null,cDc);(function(W,P,x){var I=_.Q(x==null?void 0:x.updatedRenderer,_.EBW);return I?W({targetId:P},function(){return I}):!1}).bind(null,Gi);var EB=function(){};
_.A(EB,zi);EB.prototype.resolveCommand=function(W){var P;return _.y(function(x){P=_.Q(W,_.gIW);if(!P)return x.return();bym(P.targetId,P);_.Kl(x)})};var gC=function(){var W=_.Yl.apply(this,arguments)||this;W.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return W};
_.A(gC,_.Yl);_.J=gC.prototype;_.J.configureContinuationPathMap=function(){return{}};
_.J.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.J.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.J.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.J.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.J.handleAppendContinuationItemsAction=function(W){var P=_.Q(W,_.YFz);if(this.data&&this.data.targetId&&P&&this.continuationPathMap&&P.targetId===this.data.targetId){var x=btR(W);if((W=x&&this.continuationPathMap[x])&&x){x=this.get(W,this.data);var I;a:{for(I=0;I<x.length;I++){var O=x[I],B=void 0,Y=!!_.Q((B=_.Q(O,NNc))==null?void 0:B.content,_.ihW);if(_.Q(O,_.Yc)||Y)break a}I=x.length}W="data."+W;P.continuationItems?I===x.length-1?(this.pop(W),this.push.apply(this,[W].concat(_.ju(P.continuationItems)))):
I===x.length?this.push.apply(this,[W].concat(_.ju(P.continuationItems))):this.splice.apply(this,[W,I,1].concat(_.ju(P.continuationItems))):this.splice(W,I,1);(_.p("web_enable_voting_animation")||_.p("enable_music_web_cairo_voting_animation"))&&_.Lf(this.hostElement,"yt-append-continuation-items-action-finished");_.Lf(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.ge(new _.mW("append continuation path does not exist",x))}};
_.J.handleReloadContinuationItemsCommand=function(W){var P=_.Q(W,_.gIW);if(this.data&&P){if(_.p("web_explore_hub")||_.p("web_client_explore_hub")||_.p("web_explore_hub_on_hover")||_.p("web_client_explore_hub_on_hover"))try{_.FY().resolve(EB).resolveCommand(W)}catch(B){}if(this.data.targetId&&this.continuationPathMap&&P.targetId===this.data.targetId&&(!_.p("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||P.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var x,I=
(x=P.slot)==null?void 0:x.replace("RELOAD_CONTINUATION_SLOT_","");x=(W=btR(W)+"-"+(I==null?void 0:I.toLowerCase()))&&this.continuationPathMap[W];if(!x||!W||!I)_.ge(new _.mW("reload continuation path does not exist",W));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(P)){if(P.replaceWithFirstItem){var O;this.set("data."+x,((O=P.continuationItems)==null?0:O.length)?P.continuationItems[0]:{})}else this.set("data."+x,P.continuationItems?P.continuationItems:
[]);this.continuationIsReloading=!1;_.Lf(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.J.handleShowReloadUiCommand=function(W){W=_.Q(W,j_z);var P;((P=this.data)==null?0:P.targetId)&&(W==null?0:W.targetId)&&W.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
gC.prototype.observeData=gC.prototype.observeData;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],gC.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],gC.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],gC.prototype,"data",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],gC.prototype,"continuationIsReloading",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gC.prototype,"observeData",null);gC=_.f([_.yL()],gC);_.Dv=[_.gb.YtComponentBehavior,_.rb.YtActionHandlerBehavior,gC.prototype];_.M2={};_.M2.YtNextContinuationBehavior=[_.XU.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",_.WM(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.WM(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(W,P){W.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,P,{}):(W={locationRetrieved:function(x){this.makeNextContinuationRequest_(x,P,{})}.bind(this)},_.Lf(this.hostElement,"yt-retrieve-location",W))},
makeNextContinuationRequest_:function(W,P,x){_.An("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();W=P(W);var I;this.canUseContextualNetworkManager_()&&(I=this.getNetworkManager());I||(I=_.FY().resolve(_.v5));P=_.HF.instance;if(_.$$("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&P){I=_.fR([W.startsWith("/")?W.substr(1):W]);var O,B;x=_.$P(P,{},I,x==null?void 0:(O=x.context)==null?void 0:(B=O.clickTracking)==null?void 0:B.clickTrackingParams).then(function(Y){return{response:Y}})}else x=
this.nextContinuation.usePost?I.postData(W,x):I.fetchData(W);
x.then(this.updateNextContinuationData_.bind(this,W));this.pendingContinuationRequest_=x;this.startListeningForNavigate_()},
updateNextContinuationData_:function(W,P){var x=this;_.An("ncl");this.pendingContinuationRequest_=void 0;if(P){var I={};this.nextContinuation&&(I=this.nextContinuation);if(P.response&&P.response.continuationContents&&P.response.continuationContents[I.continuationType]){W=P.response.continuationContents[I.continuationType];var O=I.header||"data.header",B=W[I.responseHeaderKey||"header"];B&&this.set(O,B);O=I.contentsArray||"data.contents";B=this.getContents_(W,I.responseContentsKey||"contents")||[];
this.pathExists_(O)?(B.unshift(O),this.push.apply(this,B)):this.set(O,B);B&&(ZHR(_.YY(),P.response,this.hostElement,function(Y){_.W7(x.hostElement,"yt-store-grafted-ve-action",[Y])}),_.Lf(this.hostElement,"yt-next-continuation-data-updated",{continuationData:P,
page:this,contentsArray:O}));this.set(I.continuationsArray||"data.continuations",W[I.responseContinuationsKey||"continuations"]||[])}else P.reload?_.ge(new _.mW("Reloading from continuation is unsupported")):P.responseContext&&P.responseContext.errors||(delete P.xsrf_token,delete P.timing,delete P.endpoint,delete P.csn,P.responseContext&&delete P.responseContext.serviceTrackingParams,O={request:_.XY(W,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(P).sort()},P.response&&(O.responseContentKeys=
Object.keys(P.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(O.continuationType=this.nextContinuation.continuationType.substr(0,256)),P=new _.mW("Malformed continuation",O),W.indexOf("/comment_service_ajax")==0?_.ge(P):_.G$(P)),this.set(I.continuationsArray||"data.continuations",[])}else _.EA(new _.mW("Missing continuation response",W))},
getContents_:function(W,P){P=P.split(".");return _.jU.getValueByKeys(W,P)},
pathExists_:function(W){var P=this;W=W.toString().split(".");for(var x=0;x<W.length;x++)if(P=P[W[x]],P===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var UeZ;var X$i;var $J=function(){var W=_.b.apply(this,arguments)||this;W.triggered_=!1;return W};
_.A($J,_.b);_.J=$J.prototype;_.J.attached=function(){this.maybeTriggerAutoload()};
_.J.detached=function(){this.hasBeenTriggered_=!1};
_.J.onPrescanVisible=function(){this.onShow()};
_.J.onShow=function(){this.showButton||this.trigger()};
_.J.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Lf(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.J.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.J.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.J.computeLabel_=function(W,P){return W===void 0?null:W.label||!P?W.label:this.showMoreText_};
_.J.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.J.getContinuationUrl=function(W){var P={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(P.itct=this.data.clickTrackingParams);return _.fX(W,P)};
_.J.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
$J.prototype.showButtonChanged_=$J.prototype.showButtonChanged_;$J.prototype.observeData_=$J.prototype.observeData_;_.f([_.h(_.$9.YtVisibilityBehavior),_.l("design:type",Object)],$J.prototype,"ytVisibilityBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$J.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],$J.prototype,"showButton",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],$J.prototype,"showIcon",void 0);_.f([_.c({computed:"computeLabel_(data, showButton)"}),_.l("design:type",Object)],$J.prototype,"label",void 0);_.f([_.c({value:_.bx(_.KK("SHOW_MORE",void 0,"Show More"))}),_.l("design:type",Object)],$J.prototype,"showMoreText_",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],$J.prototype,"spinnerActive_",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],$J.prototype,"hasBeenTriggered_",void 0);
_.f([_.c({value:void 0}),_.l("design:type",String)],$J.prototype,"observeVisibleOption",void 0);_.f([_.c({value:void 0}),_.l("design:type",String)],$J.prototype,"observeHiddenOption",void 0);_.f([_.c({value:"observe_once"}),_.l("design:type",Object)],$J.prototype,"observePrescanOption",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$J.prototype,"observeData_",null);
_.f([_.OZ("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$J.prototype,"showButtonChanged_",null);$J=_.f([_.jd({is:"yt-next-continuation",disableElementRegistration:!0})],$J);
_.X($J,"yt-next-continuation",function(){if(X$i===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;UeZ===void 0&&(UeZ=document.createElement("template"));var I=UeZ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);X$i=W}W=X$i;return W},{mode:2});var fTM;var NsA;var wC=function(){return _.b.apply(this,arguments)||this};
_.A(wC,_.b);wC.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wC.prototype,"data",void 0);wC=_.f([_.jd({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],wC);
_.X(wC,"yt-music-pass-small-feature-info-renderer",function(){if(NsA===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;fTM===void 0&&(fTM=document.createElement("template"));var I=fTM;x.call(P,I.content.cloneNode(!0),W.content.firstChild);NsA=W}W=NsA;return W},{mode:2});_.Ad("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var hL=function(){var W=_.b.apply(this,arguments)||this;W.isCollapsible=!1;W.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return W};
_.A(hL,_.b);_.J=hL.prototype;_.J.computeIsCollapsible=function(W){return!!(((W==null?0:W.showMoreText)||(W==null?0:W.visibleRowCount))&&(W==null?0:W.isCollapsible))};
_.J.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"}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.J.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.J.onIronResize=function(){var W=this;_.De(this,"updateGridInitItems",function(){W.maybeUpdateInitialItemsDisplayed()})};
_.J.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var W=this.getVisibleWidth();W!==0&&(W=Math.floor(W/214)*(this.data.visibleRowCount||2),W!==this.initialCount&&(this.initialCount=W,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.J.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.J.computeExpandVisible=function(W,P,x,I){return W&&P&&x&&!!I&&!!I.showMoreText};
_.J.computeShowMoreButton=function(W){return{text:W,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.J.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.J.initCollapsed=function(){var W=this;this.ytLazyListBehavior.canShowMore=!1;var P;(this.collapsed=!((P=this.data)==null||!P.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Xm(this,function(){_.P7(W.hostElement,"yt-refit-popups-action")})};
_.J.fillRestIfNotCollapsible=function(){var W=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!W||this.ytLazyListBehavior.fillRemainingListItems()};
_.J.computeViewAllHidden=function(W,P){return W||!P.viewAllEndpoint};
hL.prototype.fillRestIfNotCollapsible=hL.prototype.fillRestIfNotCollapsible;hL.prototype.initCollapsed=hL.prototype.initCollapsed;hL.prototype.onIronResize=hL.prototype.onIronResize;hL.prototype.persistentGuideChanged=hL.prototype.persistentGuideChanged;_.f([_.h(_.Db),_.l("design:type",Object)],hL.prototype,"ironResizableBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],hL.prototype,"ytLazyListBehavior",void 0);_.f([_.h(_.M2.YtNextContinuationBehavior),_.l("design:type",Object)],hL.prototype,"ytNextContinuationBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],hL.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.h(_.Dv),_.l("design:type",Object)],hL.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],hL.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],hL.prototype,"collapsed",void 0);_.f([_.c(),_.l("design:type",Number)],hL.prototype,"initialCount",void 0);_.f([_.c({computed:"computeShowMoreButton(data.showMoreText)"}),_.l("design:type",Object)],hL.prototype,"showMoreButton",void 0);
_.f([_.c({computed:"computeIsCollapsible(data)"}),_.l("design:type",Object)],hL.prototype,"isCollapsible",void 0);_.f([_.BM("#items"),_.l("design:type",HTMLElement)],hL.prototype,"items",void 0);_.f([_.K_("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hL.prototype,"persistentGuideChanged",null);_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hL.prototype,"onIronResize",null);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hL.prototype,"initCollapsed",null);_.f([_.K_("canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hL.prototype,"fillRestIfNotCollapsible",null);hL=_.f([_.U({is:"ytd-grid-renderer",disableElementRegistration:!0})],hL);
_.X(hL,"ytd-grid-renderer",function(){if(w$A!==void 0)return w$A;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return w$A=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var He=function(){return _.b.apply(this,arguments)||this};
_.A(He,_.b);
He.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"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],He.prototype,"data",void 0);He=_.f([_.U({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],He);
_.X(He,"ytd-carousel-ad-renderer",function(){if(EEm!==void 0)return EEm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return EEm=W},{mode:1});var lTZ;var eM=function(){return _.b.apply(this,arguments)||this};
_.A(eM,_.b);_.J=eM.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,eM.JSC$13167_CLICK_LOCATION_ID_MAP))};
_.J.onSitelinkTap=function(W){W.stopPropagation();var P,x,I=W==null?void 0:(P=W.model)==null?void 0:(x=P.item)==null?void 0:x.onTap;I&&this.ytSparklesClickLocationBehavior.handleClick(I,W,!1)};
_.J.onTap=function(W){var P=this.data&&this.data.content&&this.data.content.navigationEndpoint;P&&this.ytSparklesClickLocationBehavior.handleClick(P,W,!1)};
_.J.sendImpression=function(){if(this.data&&this.data.content)for(var W=_.n(this.data.content.impressionEndpoints||[]),P=W.next();!P.done;P=W.next()){P=_.n(P.value.loggingUrls||[]);for(var x=P.next();!x.done;x=P.next())x=x.value,x.baseUrl&&aD(x.baseUrl,x.attributionSrcMode)}};
eM.prototype.onTap=eM.prototype.onTap;eM.prototype.dataChanged=eM.prototype.dataChanged;eM.JSC$13167_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"]]);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],eM.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eM.prototype,"data",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eM.prototype,"dataChanged",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],eM.prototype,"onTap",null);eM=_.f([_.U({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],eM);
_.X(eM,"ytd-promoted-sparkles-text-search-renderer",function(){if(lTZ!==void 0)return lTZ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return lTZ=W},{mode:1});var TsM;var ce=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.A(ce,_.b);_.J=ce.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.p("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]]"}}}}}};
_.J.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.J.computeHasAdBadge=function(W){return!(W==null||!W.adBadge)};
_.J.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",ce.JSC$13176_DEFAULT_AD_BADGE_RENDERER),_.iS(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,ce.JSC$13176_CLICK_LOCATION_ID_MAP))};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var W;(((W=this.data)==null?void 0:W.impressionCommands)||[]).forEach(function(P){P=_.n(P.loggingUrls||[]);for(var x=P.next();!x.done;x=P.next())x=x.value,x.baseUrl&&aD(x.baseUrl,x.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.J.onTap=function(W){var P,x=(P=this.data)==null?void 0:P.navigationEndpoint,I;(P=(I=this.data)==null?void 0:I.thumbnailNavigationEndpoint)&&_.lh(_.c5(W),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(P,W,!1):x&&this.ytSparklesClickLocationBehavior.handleClick(x,W,!1)};
_.J.handleMuteAd=function(){this.collapsed=!0};
_.J.attached=function(){var W=this;_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.p("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.N1.Object.defineProperties(ce.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
ce.prototype.dataChanged=ce.prototype.dataChanged;
ce.JSC$13176_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"]]);
ce.JSC$13176_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.KK("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.f([_.h(Ax),_.l("design:type",Object)],ce.prototype,"ytdActiveViewBehavior",void 0);
_.f([_.h([_.rb.YtActionHandlerBehavior]),_.l("design:type",Object)],ce.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],ce.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ce.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ce.prototype,"collapsed",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],ce.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],ce.prototype,"biggerThumbsStyle",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.l("design:type",Boolean)],ce.prototype,"fixAlignmentSmallScreens",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_desktop_search_bigger_thumbs_square")}}),
_.l("design:type",Boolean)],ce.prototype,"useBiggerThumbsSquare",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.mediaHoverOverlay"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ce.prototype,"hideHoverOverlay",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ce.prototype,"webSearchLayout",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ce.prototype,"webSearchLayoutLandscape",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ce.prototype,"webSearchLayoutSquare",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ce.prototype,"sparklesCtaNoBackground",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.actionButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ce.prototype,"hideActionButton",null);_.f([_.c({computed:"computeButtonOverride(uiUpdate)"}),_.l("design:type",Object)],ce.prototype,"buttonOverride",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.l("design:type",Boolean)],ce.prototype,"hasNewAdBadge",void 0);_.f([_.H("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ce.prototype,"useRoundedBadge",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ce.prototype,"dataChanged",null);ce=_.f([_.U({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],ce);
_.X(ce,"ytd-promoted-sparkles-web-renderer",function(){if(TsM!==void 0)return TsM;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return TsM=W},{mode:1});var rDm;var ar=function(){return _.b.apply(this,arguments)||this};
_.A(ar,_.b);_.J=ar.prototype;_.J.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]]"}}}}}};
_.J.computeShowCta=function(W){return!(W==null||!W.ctaRenderer)};
_.J.onCtaClick=function(){var W,P,x,I=(W=this.data)==null?void 0:(P=W.ctaRenderer)==null?void 0:(x=P.buttonRenderer)==null?void 0:x.command;I&&this.ytComponentBehavior.resolveCommand(I)};
_.J.onWatchButtonClick=function(){var W,P,x,I=(W=this.data)==null?void 0:(P=W.watchButtonRenderer)==null?void 0:(x=P.buttonRenderer)==null?void 0:x.command;I&&this.ytComponentBehavior.resolveCommand(I)};
_.J.onTap=function(){};
_.J.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",ar.JSC$13179_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",ar.JSC$13179_DEFAULT_CLICK_LOCATION_BEHAVIOR,ar.JSC$13179_CLICK_LOCATION_ID_MAP),this.thumbnail)){var W=this.thumbnail.getElementsByTagName("a");W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href")}};
_.J.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var W=_.n(this.data.impressionUrls),P=W.next();!P.done;P=W.next())P=P.value,QfA(P,AqA(P));this.data.impressionsFired=!0}};
_.J.maybeComputeHref=function(){return null};
_.J.computeIsShortDR=function(W){return!(W==null||!W.watchButtonRenderer)&&!(W==null||!W.ctaRenderer)&&!!this.enableShortDR};
_.J.computeIsNewUiOrShortDr=function(W){return!!this.enableUiUpdate||this.computeIsShortDR(W)};
_.J.computeIsNewUiAndNotShortDr=function(W){return!!this.enableUiUpdate&&!this.computeIsShortDR(W)};
_.J.computeHideAvatar=function(W){return!((W==null?0:W.channelThumbnail)&&this.computeIsNewUiOrShortDr(W))};
_.J.onClick=function(W){var P,x=(P=this.data)==null?void 0:P.navigationEndpoint;if(this.enableShortDR&&x&&(_.Q(x,_.U_)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(x,W,!!_.Q(x,_.U_)),W.stopPropagation();else if(x&&_.Q(x,_.U_))this.ytSparklesClickLocationBehavior.handleClick(x,W,!0),W.stopPropagation();else if(x){var I,O;((I=this.data)==null?0:I.navigationEndpoint)&&((O=this.data)==null?0:O.adPlaybackContextParams)&&uqm(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(x)}};
_.J.computeButtonOverride=function(W){if(this.computeIsNewUiOrShortDr(W))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.J.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.J.onThumbnailContainerClick=function(W){this.onClick(W)};
_.J.computeThumbnailWidth=function(W,P){return W?P==="MASSIVE"?600:P==="BIG"?500:P==="MEDIUM"?450:420:360};
_.J.attached=function(){var W=this;_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.p("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
ar.prototype.dataChanged=ar.prototype.dataChanged;ar.prototype.onTap=ar.prototype.onTap;ar.JSC$13179_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.KK("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};ar.JSC$13179_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
ar.JSC$13179_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"}];_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.f([_.h(Ax),_.l("design:type",Object)],ar.prototype,"ytdActiveViewBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ar.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],ar.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ar.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],ar.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_video_display_compact_button_group_for_desktop_search")}}),
_.l("design:type",Boolean)],ar.prototype,"enableShortDR",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_vac_ui_update_for_desktop_search")}}),
_.l("design:type",Boolean)],ar.prototype,"enableUiUpdate",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],ar.prototype,"biggerThumbsStyle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.l("design:type",Boolean)],ar.prototype,"showCta",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.l("design:type",Boolean)],ar.prototype,"isShortDr",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.l("design:type",Boolean)],ar.prototype,"isShortDrOrNewUi",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.l("design:type",Boolean)],ar.prototype,"isNewUiAndNotShortDr",void 0);_.f([_.c({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],ar.prototype,"buttonOverride",void 0);_.f([_.c({computed:"computeSecondaryButtonOverride(data)"}),_.l("design:type",Object)],ar.prototype,"secondaryButtonOverride",void 0);_.f([_.BM("ytd-thumbnail"),_.l("design:type",HTMLElement)],ar.prototype,"thumbnail",void 0);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ar.prototype,"onTap",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ar.prototype,"dataChanged",null);ar=_.f([_.U({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],ar);
_.X(ar,"ytd-promoted-video-renderer",function(){if(rDm!==void 0)return rDm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rDm=W},{mode:1});var iyb;var b8=function(){var W=_.b.apply(this,arguments)||this;W.useRoundedBadge=!0;W.sitelinkIds=[];return W};
_.A(b8,_.b);_.J=b8.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.p("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]]"}}}}}};
_.J.dataChanged=function(){var W;(W=this.data)!=null&&W.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,b8.JSC$13186_CLICK_LOCATION_ID_MAP)};
_.J.onTap=function(W){var P,x=(P=this.data)==null?void 0:P.navigationCommand;x&&!_.lh(_.c5(W),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(x,W,!1)};
_.J.onSitelinkTap=function(W){var P,x,I=W==null?void 0:(P=W.model)==null?void 0:(x=P.item)==null?void 0:x.onTap;I&&this.ytSparklesClickLocationBehavior.handleClick(I,W,!1)};
_.J.configureSitelinkClickTargets=function(){var W=this,P,x,I=(P=this.data)==null?void 0:(x=P.clickLocationTargets)==null?void 0:x.find(function(O){return O.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
I&&_.g(this.hostElement).querySelectorAll(".sitelink").forEach(function(O){_.iS(O,"yt-simple-endpoint",!0);W.sitelinkIds.push(O.id);var B,Y;(B=W.ytSparklesClickLocationBehavior)==null||(Y=B.clickTargetMap)==null||Y.set(O.id,I)})};
_.J.sendImpression=function(){var W,P,x=((W=this.data)==null?void 0:(P=W.impressionCommand)==null?void 0:P.loggingUrls)||[];W=_.n(x);for(P=W.next();!P.done;P=W.next())P=P.value,P.baseUrl&&aD(P.baseUrl,P.attributionSrcMode)};
_.J.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.N1.Object.defineProperties(b8.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
b8.prototype.onTap=b8.prototype.onTap;b8.prototype.dataChanged=b8.prototype.dataChanged;b8.JSC$13186_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"]]);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],b8.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],b8.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],b8.prototype,"showFavicon",null);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],b8.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],b8.prototype,"biggerThumbsStyle",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.l("design:type",Boolean)],b8.prototype,"enableThumbnailScalingFix",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b8.prototype,"dataChanged",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],b8.prototype,"onTap",null);b8=_.f([_.U({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],b8);
_.X(b8,"ytd-text-image-no-button-layout-renderer",function(){if(iyb!==void 0)return iyb;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return iyb=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var Rzc;var kJ=function(){var W=_.b.apply(this,arguments)||this;W.isInlinePlaybackState=!1;W.uiUpdate=_.p("web_modern_buttons");W.hideCta=_.p("hide_cta_for_home_web_video_ads");W.noBottomMargin=!1;W.animateInTimeStamp=_.Wi("hide_cta_for_home_web_video_ads_animate_in_time");W.animateInCta=!1;W.isHovered=!1;W.player=null;W.JSC$13193_playerEvents=new Map;W.JSC$13193_preventProgressSaveTimer=null;W.delayedCtaJobId=null;return W};
_.A(kJ,_.b);_.J=kJ.prototype;_.J.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]]"}}}}}};
_.J.attached=function(){this.JSC$13193_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13193_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.p("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.J.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13193_playerEvents)};
_.J.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",kJ.JSC$13192_DEFAULT_CLICK_LOCATION_BEHAVIOR,kJ.JSC$13192_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.J.hoverChanged=function(){var W=this;this.delayedCtaJobId&&(_.Gr.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.p("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.pC(_.Gr,function(){W.buttonContainer.classList.add("show-delayed-buttons")},_.Wi("delayed_cta_on_web_delay_milliseconds")))};
_.J.setPlayer=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return(P=_.P7(W.hostElement,"yt-get-inline-preview-player-action"))&&P[0]?_.S(x,P[0].getPlayerPromise(),3):x.jumpTo(0);W.player=x.yieldResult;W.ytPlayerListenerBehavior.listenToPlayerEvents(W.player,W.JSC$13193_playerEvents);_.Kl(x)})};
_.J.onPlaybackStart=function(){var W=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13193_preventProgressSaveTimer=_.Fo(_.Gr,function(){W.JSC$13193_preventProgressSaveTimer=null},1E4))};
_.J.onVideoProgress=function(W){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&W>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.J.resetPreventProgressSaveTimer=function(){_.Gr.cancelJob(this.JSC$13193_preventProgressSaveTimer);this.JSC$13193_preventProgressSaveTimer=null};
_.J.getSimpleString=function(W){return _.kz(W)};
_.J.onClick=function(W){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var P,x=(P=this.data)==null?void 0:P.navigationEndpoint,I;P=(I=this.data)==null?void 0:I.channelEndpoint;var O,B;(I=(B=_.Q((O=this.data)==null?void 0:O.adCtaButton,_.w6))==null?void 0:B.command)&&_.lh(_.c5(W),this.hostElement,["call-to-action"])?_.p("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(I,W,!1):P&&_.lh(_.c5(W),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(P,W,!1):!_.lh(_.c5(W),this.hostElement,["secondary-button"])&&x&&(_.p("enable_short_dr_for_desktop_launchable")?(O=!!_.Q(x,_.U_),this.isInlinePlaybackState&&O&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(x,W,O)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(x,W,!0)))}};
_.J.updateWatchEndpointStartTime=function(){var W,P;this.player&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&((P=this.data)==null?0:P.navigationEndpoint)&&!this.JSC$13193_preventProgressSaveTimer&&(W=Math.floor(this.player.getCurrentTime()),_.Q(this.data.navigationEndpoint,_.U_).startTimeSeconds=W,_.Q(this.data.inlinePlaybackEndpoint,_.U_).startTimeSeconds=W)};
_.J.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.J.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.N1.Object.defineProperties(kJ.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.p("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.watchButton)&&!((P=this.data)==null||!P.adCtaButton)}}});
kJ.prototype.hoverChanged=kJ.prototype.hoverChanged;kJ.prototype.dataChanged=kJ.prototype.dataChanged;
kJ.JSC$13192_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"]]);
kJ.JSC$13192_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"}];
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],kJ.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],kJ.prototype,"ytSparklesClickLocationBehavior",void 0);
_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],kJ.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kJ.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kJ.prototype,"isInlinePlaybackState",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],kJ.prototype,"miniMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kJ.prototype,"uiUpdate",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kJ.prototype,"hideCta",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kJ.prototype,"noBottomMargin",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kJ.prototype,"animateInCta",void 0);_.f([_.c({computed:"computeButtonOverride(uiUpdate)"}),_.l("design:type",Object)],kJ.prototype,"buttonOverride",void 0);
_.f([_.c({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.l("design:type",Object)],kJ.prototype,"secondaryButtonOverride",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kJ.prototype,"isHovered",void 0);_.f([_.BM("#button-container"),_.l("design:type",HTMLElement)],kJ.prototype,"buttonContainer",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],kJ.prototype,"typographyBump",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("typographyBump"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],kJ.prototype,"typographyBumpV2",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kJ.prototype,"dataChanged",null);_.f([_.OZ("isHovered"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kJ.prototype,"hoverChanged",null);
_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],kJ.prototype,"isButtonGroup",null);kJ=_.f([_.U({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],kJ);
_.X(kJ,"ytd-ad-inline-playback-meta-block",function(){if(Rzc!==void 0)return Rzc;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Rzc=W},{mode:_.F4("kevlar_poly_si_batch_j065")?1:2});var F$p;var UB=function(){var W=_.b.apply(this,arguments)||this;W.noBottomMargin=!1;W.isInlinePreviewTriggered=!1;W.JSC$13198_activeViewMeasurementDataResolver=_.aP();return W};
_.A(UB,_.b);_.J=UB.prototype;_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$13198_activeViewMeasurementDataResolver.promise.then(function(P){W.ytdActiveViewBehavior.enableActiveViewMeasurement(P,15)});
_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners();_.p("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13198_inlinePreviewHoverListener=ir({mediaRenderer:this,lockupElement:this.JSC$13198_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Ysd})};
_.J.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13198_inlinePreviewHoverListener)==null||no(W)};
_.J.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13198_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",UB.JSC$13197_DEFAULT_CLICK_LOCATION_BEHAVIOR,UB.JSC$13197_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"));var P,x;if(((P=this.data)==
null?0:P.hasAutoplay)||((x=this.data)==null?0:x.forceImpAutoplay)){var I;(I=this.JSC$13198_inlinePreviewHoverListener)==null||V7P(I)}};
_.J.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.J.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var P,x=(P=this.data)==null?void 0:P.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(x,W,!!_.Q(x,_.U_));W.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var P,x,I=(x=_.Q((P=this.data)==null?void 0:P.onImpression,_.B7))==null?void 0:x.commands;I&&(I.forEach(function(O){O.clickTrackingParams&&delete O.clickTrackingParams;W.ytComponentBehavior.resolveCommand(O)}),this.data.impressionsFired=!0)}};
_.N1.Object.defineProperties(UB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13198_inlinePreviewHoverListener)==null?0:jp(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
UB.prototype.onTypographyBumpChanged=UB.prototype.onTypographyBumpChanged;UB.prototype.onDataChanged=UB.prototype.onDataChanged;UB.JSC$13197_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);UB.JSC$13197_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"}];
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],UB.prototype,"ytComponentBehavior",void 0);_.f([_.h(Ax),_.l("design:type",Object)],UB.prototype,"ytdActiveViewBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],UB.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.h(_.eZ),_.l("design:type",Object)],UB.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],UB.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],UB.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UB.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],UB.prototype,"noBottomMargin",void 0);
_.f([_.c(),_.l("design:type",Object)],UB.prototype,"isInlinePreviewTriggered",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],UB.prototype,"miniMode",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],UB.prototype,"typographyBump",void 0);_.f([_.BM("ytd-thumbnail"),_.l("design:type",HTMLElement)],UB.prototype,"thumbnail",void 0);_.f([_.BM("#dismissible"),_.l("design:type",HTMLElement)],UB.prototype,"JSC$13198_dismissibleMedia",void 0);
_.f([_.BM("ytd-ad-inline-playback-meta-block"),_.l("design:type",HTMLElement)],UB.prototype,"adInlinePlaybackMetaBlock",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UB.prototype,"onDataChanged",null);_.f([_.K_("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UB.prototype,"onTypographyBumpChanged",null);
_.f([_.H("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UB.prototype,"isHovered",null);UB=_.f([_.U({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],UB);
_.X(UB,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(F$p!==void 0)return F$p;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return F$p=W},{mode:1});var qsz;var Xx=function(){var W=_.b.apply(this,arguments)||this;W.isInlinePreviewTriggered=!1;W.JSC$13201_activeViewMeasurementDataResolver=_.aP();return W};
_.A(Xx,_.b);_.J=Xx.prototype;_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$13201_activeViewMeasurementDataResolver.promise.then(function(P){W.ytdActiveViewBehavior.enableActiveViewMeasurement(P,15)})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13201_inlinePreviewHoverListener=ir({mediaRenderer:this,lockupElement:this.JSC$13201_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Ysd})};
_.J.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13201_inlinePreviewHoverListener)==null||no(W)};
_.J.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13201_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Xx.JSC$13200_DEFAULT_CLICK_LOCATION_BEHAVIOR,Xx.JSC$13200_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"))};
_.J.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var P,x=(P=this.data)==null?void 0:P.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(x,W,!0);W.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var P,x,I=(x=_.Q((P=this.data)==null?void 0:P.onImpression,_.B7))==null?void 0:x.commands;I&&(I.forEach(function(O){O.clickTrackingParams&&delete O.clickTrackingParams;_.FY().resolve(_.qR).resolveCommand(O,{form:{element:W.hostElement}})}),this.data.impressionsFired=!0)}};
_.N1.Object.defineProperties(Xx.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13201_inlinePreviewHoverListener)==null?0:jp(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Xx.prototype.onDataChanged=Xx.prototype.onDataChanged;Xx.JSC$13200_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Xx.JSC$13200_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"}];_.f([_.h(Ax),_.l("design:type",Object)],Xx.prototype,"ytdActiveViewBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],Xx.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],Xx.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Xx.prototype,"ytdReduxBehavior",void 0);
_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],Xx.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Xx.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Xx.prototype,"isInlinePreviewTriggered",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],Xx.prototype,"miniMode",void 0);_.f([_.BM("ytd-thumbnail"),_.l("design:type",HTMLElement)],Xx.prototype,"thumbnail",void 0);
_.f([_.BM("#dismissible"),_.l("design:type",HTMLElement)],Xx.prototype,"JSC$13201_dismissibleMedia",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xx.prototype,"onDataChanged",null);_.f([_.H("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xx.prototype,"isHovered",null);Xx=_.f([_.U({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Xx);
_.X(Xx,"ytd-video-display-full-buttoned-renderer",function(){if(qsz!==void 0)return qsz;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return qsz=W},{mode:1});var SQ=function(W,P,x,I){I=I===void 0?!1:I;_.Wd.call(this,W);this.adsClientErrorMessage=x;this.aggressivelySample=I;this.args=[];P&&this.args.push(P)};
_.A(SQ,_.Wd);var ZI=function(W,P,x,I){I=I===void 0?!1:I;_.Wd.call(this,W);this.adsClientErrorMessage=x;this.aggressivelySample=I;this.args=[];P&&this.args.push(P)};
_.A(ZI,_.Wd);var L$i=function(W){_.vn.call(this);var P=this;this.initializationFunction=W;this.instance=null;this.addOnDisposeCallback(function(){_.TD(P.instance);P.instance=null})};
_.A(L$i,_.vn);L$i.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.xA("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var VFR=function(){var W=new Map;[].forEach(function(P){W.set(P.JSC$26745_getType(),P)})};new Promise(function(){});var uFW=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"]]),odd=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"}]]),W2c=function(W){this.experimentApiProvider=W;W=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=W<.1};var fO=function(W,P,x,I){_.vn.call(this);this.adsControlFlowEventListeners=P;this.adEventLogger=x;this.experimentApiProvider=I;this.adsControlFlowManagerHelper=W(this,this,this,this,this);_.nU(this,this.adsControlFlowManagerHelper);W=_.n(P);for(P=W.next();!P.done;P=W.next())_.nU(this,P.value)};
_.A(fO,_.vn);var Pvd=function(W,P,x,I){N2(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",P,x,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,I);W=_.n(W.adsControlFlowEventListeners);for(I=W.next();!I.done;I=W.next())Pvd(I.value,P,x)};
_.J=fO.prototype;_.J.onOpportunityProcessedExternallyManaged=function(W,P,x,I){N2(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,x,P,void 0,void 0,void 0,void 0,void 0,void 0,void 0,I)};
_.J.onSlotReceivedExternallyManaged=function(W,P){l8(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",W,P)};
_.J.onSlotEntered=function(W){if(Ti(this.adsControlFlowManagerHelper,W)!=null){l8(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);this.adsControlFlowManagerHelper.onSlotEntered(W);for(var P=_.n(this.adsControlFlowEventListeners),x=P.next();!x.done;x=P.next())x.value.onSlotEntered(W);if(Ti(this.adsControlFlowManagerHelper,W)!=null&&Ti(this.adsControlFlowManagerHelper,W).isOccupyingSlotType()&&rC(this.adsControlFlowManagerHelper,W)&&!xqw(this.adsControlFlowManagerHelper,W)){var I;i8(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",W,(I=rC(this.adsControlFlowManagerHelper,W))!=null?I:void 0);W=Ti(this.adsControlFlowManagerHelper,W);W.slotLifecycleStage!=="entered"&&Rr(W.slot,W.slotLifecycleStage,"enterLayoutForSlot");W.slotLifecycleStage="rendering";W.registeredLayoutRenderingAdapter.startRendering(W.layout)}}};
_.J.onSlotExited=function(W){if(Ti(this.adsControlFlowManagerHelper,W)!=null){l8(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);this.adsControlFlowManagerHelper.onSlotExited(W);for(var P=_.n(this.adsControlFlowEventListeners),x=P.next();!x.done;x=P.next())x.value.onSlotExited(W);Ti(this.adsControlFlowManagerHelper,W)!=null&&Ti(this.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests&&IJz(this,W)}};
_.J.onLayoutReceivedExternallyManaged=function(W,P,x){W.managerLayer!=="core"&&i8(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,P,x)};
var OHc=function(W,P,x){if(Ti(W.adsControlFlowManagerHelper,P)!=null){i8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",P,x);W=_.n(W.adsControlFlowEventListeners);for(var I=W.next();!I.done;I=W.next())OHc(I.value,P,x)}};
fO.prototype.onLayoutExited=function(W,P,x){if(Ti(this.adsControlFlowManagerHelper,W)!=null){i8(this.adEventLogger,SQx(x),W,P);this.adsControlFlowManagerHelper.onLayoutExited(W,P);for(var I=_.n(this.adsControlFlowEventListeners),O=I.next();!O.done;O=I.next())O.value.onLayoutExited(W,P,x);(x=rC(this.adsControlFlowManagerHelper,W))&&P.layoutId===x.layoutId&&Jji(this,W)}};
fO.prototype.disposeInternal=function(){var W=BPP(this.adsControlFlowManagerHelper);W=_.n(W);for(var P=W.next();!P.done;P=W.next())IJz(this,P.value);_.vn.prototype.disposeInternal.call(this)};
var IJz=function(W,P){if(Ti(W.adsControlFlowManagerHelper,P)!=null)if(Ti(W.adsControlFlowManagerHelper,P).JSC$26776_isSlotExitRequested()||Ti(W.adsControlFlowManagerHelper,P).JSC$26776_isLayoutExitRequested())Ti(W.adsControlFlowManagerHelper,P).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Ti(W.adsControlFlowManagerHelper,P).isOccupyingSlotType())Ti(W.adsControlFlowManagerHelper,P).markedForUnscheduleAfterOutboundAdapterRequests=!0,Jji(W,P);else if(Ti(W.adsControlFlowManagerHelper,P).JSC$26776_isSlotFillRequested())Ti(W.adsControlFlowManagerHelper,
P).markedForUnscheduleAfterOutboundAdapterRequests=!0,Ti(W.adsControlFlowManagerHelper,P)!=null&&(l8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",P),P=Ti(W.adsControlFlowManagerHelper,P),P.fulfillmentLifecycleStage="fill_cancel_requested",P.registeredFulfillmentAdapter.cancelSlotFilling());else{var x=rC(W.adsControlFlowManagerHelper,P),I;W.experimentApiProvider.get();(I=_.p("h5_enable_layout_unscheduling_events"))&&(x?ndd(W,P,x):_.xA(Error("Hh"),P,x,void 0,!1));l8(W.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",P);var O=Ti(W.adsControlFlowManagerHelper,P),B=P.slotEntryTrigger,Y=O.registeredSlotEntryTriggerAdapters.get(B.triggerId);Y&&(Y.unregisterTrigger(B),O.registeredSlotEntryTriggerAdapters.delete(B.triggerId));B=_.n(P.slotFulfillmentTriggers);for(Y=B.next();!Y.done;Y=B.next()){Y=Y.value;var K=O.registeredFulfillmentTriggerAdapters.get(Y.triggerId);K&&(K.unregisterTrigger(Y),O.registeredFulfillmentTriggerAdapters.delete(Y.triggerId))}B=_.n(P.slotExpirationTriggers);
for(Y=B.next();!Y.done;Y=B.next())if(Y=Y.value,K=O.registeredExpirationTriggerAdapters.get(Y.triggerId))K.unregisterTrigger(Y),O.registeredExpirationTriggerAdapters.delete(Y.triggerId);O.hasLayout()&&(B=O.layout,Fx(O,B.layoutExitNormalTriggers),Fx(O,B.layoutExitSkipTriggers),Fx(O,B.layoutExitMuteTriggers),Fx(O,B.layoutExitUserInputSubmittedTriggers),Fx(O,B.layoutExitUserCancelledTriggers));O.registeredFulfillmentAdapter=void 0;O.registeredSlotAdapter!=null&&(O.registeredSlotAdapter.release(),O.registeredSlotAdapter=
void 0);O.registeredLayoutRenderingAdapter!=null&&(O.registeredLayoutRenderingAdapter.release(),O.registeredLayoutRenderingAdapter=void 0);O=W.adsControlFlowManagerHelper;Ti(O,P)&&(O=YQZ(O,P.slotType+"_"+P.slotPhysicalPosition))&&O.delete(P.slotId);l8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",P);W=_.n(W.adsControlFlowEventListeners);for(O=W.next();!O.done;O=W.next())O=O.value,O.onSlotUnscheduled(P),x&&!I&&ndd(O,P,x)}},ndd=function(W,P,x){i8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
P,x);
i8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",P,x);W=_.n(W.adsControlFlowEventListeners);for(var I=W.next();!I.done;I=W.next())I=I.value,x&&ndd(I,P,x)},Jji=function(W,P){if(Ti(W.adsControlFlowManagerHelper,P)!=null&&Ti(W.adsControlFlowManagerHelper,P).isOccupyingSlotType()){var x=rC(W.adsControlFlowManagerHelper,P);
if(x&&xqw(W.adsControlFlowManagerHelper,P)){if(Ti(W.adsControlFlowManagerHelper,P)!=null){var I=W.adEventLogger,O;var B=((O=odd.get("abandoned"))==null?void 0:O.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";i8(I,B,P,x);W=Ti(W.adsControlFlowManagerHelper,P);W.slotLifecycleStage!=="rendering"&&Rr(W.slot,W.slotLifecycleStage,"exitLayout");W.slotLifecycleStage="rendering_stop_requested";W.registeredLayoutRenderingAdapter.stopRendering(x,"abandoned")}}else{l8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
P);try{I=Ti(W.adsControlFlowManagerHelper,P);if(!I)throw new ZI("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");I.slotLifecycleStage!=="enter_requested"&&I.slotLifecycleStage!=="entered"&&I.slotLifecycleStage!=="rendering"&&Rr(I.slot,I.slotLifecycleStage,"exitSlot");I.slotLifecycleStage="exit_requested";if(I.registeredSlotAdapter===void 0)throw I.slotLifecycleStage="scheduled",new ZI("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
I.registeredSlotAdapter.exit()}catch(Y){Y instanceof ZI&&Y.adsClientErrorMessage?(yjZ(W.adEventLogger,Y.adsClientErrorMessage,P),_.xA(Y,P,void 0,void 0,Y.aggressivelySample)):(yjZ(W.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",P),_.xA(Y,P))}}}};var q2=function(W,P,x,I,O,B){_.vn.call(this);this.registry=W;this.experimentApiProvider=B;this.slotMap=new Map};
_.A(q2,_.vn);var YQZ=function(W,P){return(W=W.slotMap.get(P))?W:new Map},Ti=function(W,P){return YQZ(W,P.slotType+"_"+P.slotPhysicalPosition).get(P.slotId)},BPP=function(W){var P=[];
W.slotMap.forEach(function(x){x=_.n(x.values());for(var I=x.next();!I.done;I=x.next())P.push(I.value.slot)});
return P};
q2.prototype.onSlotEntered=function(W){W=Ti(this,W);W.slotLifecycleStage!=="enter_requested"&&Rr(W.slot,W.slotLifecycleStage,"onSlotEntered");W.slotLifecycleStage="entered"};
var xqw=function(W,P){W=Ti(W,P);return W.hasLayout()&&W.isRendering()},rC=function(W,P){(W=Ti(W,P))?W.hasLayout()&&!W.layout&&_.xA("Unexpected empty layout",P):_.xA("Unexpected undefined slotState",P);
return(W==null?void 0:W.layout)||null};
q2.prototype.onSlotExited=function(W){W=Ti(this,W);W.slotLifecycleStage!=="exit_requested"&&Rr(W.slot,W.slotLifecycleStage,"onSlotExited");W.slotLifecycleStage="scheduled"};
q2.prototype.onLayoutExited=function(W,P){W=Ti(this,W);W.isPrimaryLayout(P)&&(W.slotLifecycleStage!=="rendering_stop_requested"&&Rr(W.slot,W.slotLifecycleStage,"onLayoutExited"),W.slotLifecycleStage="entered")};
var Fx=function(W,P){P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=W.registeredLayoutExitTriggerAdapters.get(x.triggerId);I&&(I.unregisterTrigger(x),W.registeredLayoutExitTriggerAdapters.delete(x.triggerId))}},Rr=function(W,P,x){_.xA("Slot stage was "+P+" when calling method "+x,W)};var ZHA=function(W){_.vn.call(this);this.deps=W;this.JSC$13250_adsControlFlowManager=K2z(this)};
_.A(ZHA,_.vn);var K2z=function(W){var P=new fO(function(x,I,O,B){return new q2(W.deps.registry,x,I,O,B,W.deps.experimentApiProvider)},new Set(mqW(W.deps.registry).concat(W.deps.listeners)),W.deps.adEventLogger,W.deps.experimentApiProvider);
_.nU(W,P);return P};var odm=function(W,P){_.vn.call(this);this.experimentApiProvider=W;this.eventLoggingSettingsProvider=P;this.eventCount=0};
_.A(odm,_.vn);odm.prototype.logEvent=function(W){N2(this,W)};
var l8=function(W,P,x,I){N2(W,P,void 0,void 0,void 0,x,void 0,void 0,void 0,x.adSlotLoggingData,void 0,void 0,I)},i8=function(W,P,x,I,O){N2(W,P,void 0,void 0,void 0,x,I?I:void 0,void 0,void 0,x.adSlotLoggingData,I?I.adLayoutLoggingData:void 0,void 0,O)},yjZ=function(W,P,x){N2(W,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,x,void 0,void 0,void 0,x.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:P})},N2=function(W,P,x,I,O,B,Y,K,Z,d,v,m,t){t=t===void 0?0:t;
SQd(W.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+P,"slot:",B,"layout:",Y,"ping:",K,"Opportunity:",{opportunityType:x,associatedSlotId:I,slotsFromOpportunity:O,triggerBundle:Z,adSlotLoggingData:d,adLayoutLoggingData:v});try{var C=function(){W.experimentApiProvider.get();if(P!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){P||_.xA("Empty PACF event type",B,Y);var z=W.eventLoggingSettingsProvider.get();var D;(D=z.alwaysIncludeDebugData)||(z.experimentApiProvider.get(),D=
!1);z=D;D={eventType:P,eventOrder:++W.eventCount};var w={};B&&(w.slotData=sHt(z,B));if(Y){var a={type:Y.layoutType,controlFlowManagerLayer:uFW.get(Y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z&&(a.debugData={layoutId:Y.layoutId});w.layoutData=a}K&&(w.pingData={pingDispatchStatus:K.dispatchStatus,serializedAdPingMetadata:K.ping.serializedAdPingMetadata,pingIndex:K.index});Z&&(w.triggerData=dqm(Z.trigger,Z.category));x&&(w.opportunityData=vdR(z,x,I,O));D.adClientData=w;d&&(D.serializedSlotAdServingData=
d.serializedSlotAdServingDataEntry);v&&(D.serializedAdServingData=v.serializedAdServingDataEntry);m&&(D.errorInfo=m);_.Ay("adsClientStateChange",{adsClientEvent:D})}};
t&&t>0?_.VE(_.Ds(),function(){return C()},t):C()}catch(z){SQd(W.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.VE(_.Ds(),function(){_.xA(z instanceof Error?z:String(z),B,Y,{pacf_message:"exception during pacf logging"})})}};var uFi=function(W,P){odm.call(this,W,P)};
_.A(uFi,odm);var dqM=function(){},SQd=function(W,P){return _.p(P)};var vdA=function(){var W=new sHl;this.JSC$13269_adsControlFlowManager=(new ZHA(W)).JSC$13250_adsControlFlowManager},sHl=function(){_.vn.call(this);
var W=this;this.experimentApiProvider=new L$i(function(){return new dqM});
var P=new L$i(function(){return new W2c(W.experimentApiProvider)});
this.adEventLogger=new uFi(this.experimentApiProvider,P);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.A(sHl,_.vn);var mqi=function(){},VFP,LO=function(){VFP||(VFP=new mqi);
return VFP},Wa=function(W){if(!W.JSC$13280_externallyManagedSlotAdapterCallback){var P=(new vdA).JSC$13269_adsControlFlowManager;
W.JSC$13280_externallyManagedSlotAdapterCallback=P}return W.JSC$13280_externallyManagedSlotAdapterCallback},tFp=function(W,P,x){var I=P.opportunityType,O=Error("Ih");
if(I!==void 0){var B=Wa(W);Pvd(B,I,void 0,x)}else _.xA(O,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});B=[];if(P.adSlotAndLayoutMetadata!==void 0){P=_.n(P.adSlotAndLayoutMetadata);for(var Y=P.next();!Y.done;Y=P.next()){var K=Y.value;if(Y=K.adSlotMetadata)if(B.push(Y),W.onSlotReceivedExternallyManaged(Y,x),K.adLayoutMetadata){K=_.n(K.adLayoutMetadata);for(var Z=K.next();!Z.done;Z=K.next())W.onLayoutReceivedExternallyManaged(Y,Z.value,x)}else x>0&&_.xA("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
I,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else x>0&&_.xA("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+I,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else x>0&&_.xA("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+I,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(I!==void 0)W.onOpportunityProcessedExternallyManaged(I,B,void 0,x);else _.xA(O,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
mqi.prototype.onSlotReceivedExternallyManaged=function(W,P){W=oq(W);if(W instanceof ZI)_.xA(W,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Wa(this).onSlotReceivedExternallyManaged(W,P)};
mqi.prototype.onLayoutReceivedExternallyManaged=function(W,P,x){W=oq(W);P=tFC(P);if(W instanceof ZI)_.xA(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(P instanceof SQ)_.xA(P,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Wa(this).onLayoutReceivedExternallyManaged(W,P,x)};
mqi.prototype.onOpportunityProcessedExternallyManaged=function(W,P,x,I){var O=[];P=_.n(P);for(var B=P.next();!B.done;B=P.next())B=oq(B.value),B instanceof ZI?_.xA(B,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):O.push(B);Wa(this).onOpportunityProcessedExternallyManaged(W,O,x,I)};
var p2Z=function(W,P){P=oq(P);if(P instanceof ZI)_.xA(P,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var x=Wa(W);l8(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",P);x=_.n(x.adsControlFlowEventListeners);for(var I=x.next();!I.done;I=x.next())I=Ti(I.value,P),I.slotLifecycleStage!=="not_scheduled"&&Rr(I.slot,I.slotLifecycleStage,"onSlotScheduled"),I.slotLifecycleStage="scheduled";W=Wa(W);l8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",P);W=_.n(W.adsControlFlowEventListeners);
for(x=W.next();!x.done;x=W.next())x.value.onSlotEntered(P)}},jHw=function(W,P){P=oq(P);
if(P instanceof ZI)_.xA(P,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var x=Wa(W);l8(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",P);x=_.n(x.adsControlFlowEventListeners);for(var I=x.next();!I.done;I=x.next())I.value.onSlotExited(P);W=Wa(W);l8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",P);W=_.n(W.adsControlFlowEventListeners);for(x=W.next();!x.done;x=W.next())x.value.onSlotUnscheduled(P)}},QHl=function(W,P,x){P=oq(P);
x=tFC(x);if(P instanceof ZI)_.xA(P,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(x instanceof SQ)_.xA(x,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var I=Wa(W);i8(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",P,x);I=_.n(I.adsControlFlowEventListeners);for(var O=I.next();!O.done;O=I.next())O.value.onLayoutScheduled(P,x);W=Wa(W);i8(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",P,x);W=_.n(W.adsControlFlowEventListeners);
for(I=W.next();!I.done;I=W.next())OHc(I.value,P,x)}},Pa=function(W,P,x){P=oq(P);
x=tFC(x);if(P instanceof ZI)_.xA(P,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(x instanceof SQ)_.xA(x,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var I=Wa(W);i8(I.adEventLogger,SQx("normal"),P,x);I=_.n(I.adsControlFlowEventListeners);for(var O=I.next();!O.done;O=I.next())O.value.onLayoutExited(P,x,"normal");W=Wa(W);W=_.n(W.adsControlFlowEventListeners);for(I=W.next();!I.done;I=W.next())ndd(I.value,P,x)}};_.xn=_.kl(function(W){var P=_.bw(W,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});W=Object.assign({},P);var x=P.data;P=P.customCommandResolver;var I=(delete W.data,delete W.customCommandResolver,W),O=_.fa();_.RS(O,function(){return x().interaction},P,function(){var K;
return(K=I.listenToTapEvent)==null?void 0:K.call(I)});
_.FL(O,{visibilityCallback:function(K){var Z,d=(Z=x().interaction)==null?void 0:Z.onFirstVisible;K&&(d&&_.D1(d),I.setOnErrorHandler()&&p2G(O))},
showOption:_.U$});W=_.n(_.YV(!1,void 0,"eiYvIe"));var B=W.next().value,Y=W.next().value;W=_.yB(function(){var K;((K=I.setTouchEndHandler)==null?0:K.call(I))&&!B()&&(O.value.click(),Y(!0),setTimeout(function(){Y(!1)},100));
return!1});
return _.u("ad-image-view-model",{class:function(){var K,Z=[((K=x().interaction)==null?0:K.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],d;((d=I.isGridViewEnabled)==null?0:d.call(I))&&Z.push("ytwAdImageViewModelHostInGridView");return Z.join(" ")},
el:O,"on:touchend":W},_.u("div",{class:"ytwAdImageViewModelHostImageContainer"},_.u(_.bq,{data:function(){var K;return{sources:x().imageSources,contentMode:(K=x().imageProperties)==null?void 0:K.contentMode}},
alt:function(){var K,Z;return((K=x().interaction)==null?void 0:(Z=K.accessibility)==null?void 0:Z.label)||""},
targetHeight:I.targetHeight,targetWidth:I.targetWidth,preserveHeight:I.preserveHeight,preserveWidth:I.preserveWidth,useWidth:I.useWidth,style:function(){var K,Z;return"vertical-align: bottom;"+(((K=x().background)==null?0:K.color)?"background-color:"+_.j9((Z=x().background)==null?void 0:Z.color)+";":"")},
className:function(){return I.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var K,Z;return(Z=(K=I.setDraggable)==null?void 0:K.call(I))!=null?Z:void 0}})))},"cb");var Cvp=_.kl(function(W){var P=W.data,x=W.listenToTapEvent,I=_.fa();_.p("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.RS(I,function(){return P().interaction},void 0,function(){return x==null?void 0:x()});
_.FL(I,{visibilityCallback:function(B){var Y,K=(Y=P().interaction)==null?void 0:Y.onFirstVisible;B&&K&&_.D1(K)},
showOption:_.U$});W=_.yB(function(){if(_.p("enable_web_home_top_landscape_image_layout_legacy_click_command")){var B,Y=(B=P().interaction)==null?void 0:B.onTap;Y&&_.Lf(I.value,"yt-navigate",{endpoint:_.AF(Y)})}});
var O=function(){};
return _.u("ad-button-hover-overlay-view-model",{"on:click":W,class:function(){var B;return((B=P().interaction)==null?0:B.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:I},function(){return _.p("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.u(_.Ea,{data:function(){return P().button}},{adButtonViewModel:function(B){return _.u(_.fr,{data:B.data,
customCommandResolver:O})}}):_.u(_.Ea,{data:function(){return P().button}},{adButtonViewModel:_.fr})}())},"db");var u6;_.lq(_.kl(function(W){var P=W.data;var x=_.fa();_.p("stop_av_measurement_on_detach")&&_.C4(function(){sr(x)});
_.RS(x,function(){return P().interaction},void 0,function(){return!0});
_.FL(x,{visibilityCallback:function(Y){if(Y){var K;(Y=(K=P().interaction)==null?void 0:K.onFirstVisible)&&_.D1(Y);var Z;if(K=(Z=P().adLayoutData)==null?void 0:Z.activeViewData)dn(x,K),_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sr(x)})}else _.p("stop_av_measurement_on_detach")&&sr(x)},
showOption:_.U$,hideOption:X7});W=_.n(_.YV(!1,void 0,"yzu6qe"));var I=W.next().value,O=W.next().value;W=_.yB(function(){O(!0)});
var B=_.yB(function(){O(!1)});
return _.u("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:x,"on:mouseenter":W,"on:mouseleave":B},_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.oP({"max-width":function(){return _.p("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.u("div",{class:function(){var Y;
a:{var K;switch((Y=_.Q(P().thumbnailImage,pw))==null?void 0:(K=Y.imageProperties)==null?void 0:K.renderingAspect){case "RENDERING_ASPECT_SQUARE":Y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":Y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}Y=void 0}return Y}},_.u(_.Ea,{data:function(){return P().thumbnailImage}},{adImageViewModel:function(Y){return _.u(_.xn,
{data:Y.data,
listenToTapEvent:!0,setTouchEndHandler:_.p("enable_top_landscape_image_experiment_dom_id_web")})}})),_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.u(_.V,{cond:function(){var Y,K,Z;
return(Y=_.Q(P().thumbnailImage,pw))==null?void 0:(K=Y.imageProperties)==null?void 0:(Z=K.overlayIcon)==null?void 0:Z.iconImage},
then:function(Y){return _.u(_.bq,{data:Y,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.u("div",{class:function(){return I()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.u(_.Ea,{data:function(){return P().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Y){return _.u(Cvp,
{data:Y.data,
listenToTapEvent:!0})}}))),_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.u(_.Ea,{data:function(){return P().feedAdMetadata}},{feedAdMetadataViewModel:function(Y){return _.u(wSz,{data:Y.data,
listenToTapEvent:!0,setTouchEndHandler:_.p("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;var x=_.fa();_.p("stop_av_measurement_on_detach")&&_.C4(function(){sr(x)});
var I=_.G4(_.br);_.RS(x,function(){return P().interaction});
_.FL(x,{visibilityCallback:function(d){if(d){var v;(d=(v=P().interaction)==null?void 0:v.onFirstVisible)&&_.D1(d);var m;if(v=(m=P().adLayoutData)==null?void 0:m.activeViewData)dn(x,v),_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sr(x)})}else _.p("stop_av_measurement_on_detach")&&sr(x)},
showOption:_.U$,hideOption:X7});var O=_.yB(function(d){var v,m,t=(v=_.Q(P().adImage,pw))==null?void 0:(m=v.interaction)==null?void 0:m.onTap;t&&(_.p("enable_square_image_components_ui_web_with_custom_event")?_.Lf(x.value,"yt-navigate",{endpoint:_.AF(t)}):eqA(d,t))}),B=_.yB(function(){var d,v,m=(d=_.Q(P().adButton,jdp))==null?void 0:(v=d.interaction)==null?void 0:v.onTap;
m&&_.Lf(x.value,"yt-navigate",{endpoint:_.AF(m)})}),Y=function(){};
W={};var K={},Z={};return _.u("square-image-layout-view-model",{class:_.O4("ytwSquareImageLayoutViewModelHost",(W.ytwSquareImageLayoutViewModelHostColumn=I,W)),el:x},_.u("div",{class:_.O4("ytwSquareImageLayoutViewModelHostImage",(K.ytwSquareImageLayoutViewModelHostColumnImage=I,K))},function(){return _.p("enable_square_image_components_ui_web_with_native_img")?_.u("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var d,v,m;return((d=_.Q(P().adImage,pw))==null?void 0:(v=d.imageSources)==
null?void 0:(m=v[0])==null?void 0:m.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":O}):_.u(_.Ea,{data:function(){return P().adImage}},{adImageViewModel:function(d){return _.u(_.xn,{data:d.data,
isGridViewEnabled:I,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.u("div",{class:_.O4("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(Z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=I,Z))},_.u(_.Ea,{data:function(){return P().feedAdMetadata}},{feedAdMetadataViewModel:wSz}),function(){return _.p("enable_square_image_components_ui_web_with_float_button")?_.u("div",{"on:click":B},_.u(_.Ea,{data:function(){return P().adButton}},
{adButtonViewModel:function(d){var v={};
return _.u(_.fr,{data:d.data,customCommandResolver:Y,className:_.O4((v.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,v.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=I,v))})}})):_.u(_.Ea,{data:function(){return P().adButton}},{adButtonViewModel:function(d){var v={};
return _.u(_.fr,{data:d.data,className:_.O4((v.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,v.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=I,v))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;var x=W.noBottomMargin;var I=W.typographyBump;var O=_.fa();_.p("stop_av_measurement_on_detach")&&_.C4(function(){sr(O)});
_.p("enable_web_home_top_landscape_image_layout_level_click")&&_.RS(O,function(){return P().interaction},void 0,function(){return!0});
W=function(){return P().interaction};
W!==void 0&&W!==null||_.co(Error("Jh"));_.FL(O,{visibilityCallback:function(v){if(v){var m;(v=(m=P().interaction)==null?void 0:m.onFirstVisible)&&_.D1(v);var t;if(m=(t=P().adLayoutData)==null?void 0:t.activeViewData)dn(O,m),_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sr(O)})}else _.p("stop_av_measurement_on_detach")&&sr(O)},
showOption:_.U$,hideOption:X7});var B=function(){var v,m,t;return(v=_.Q(P().thumbnailImage,pw))==null?void 0:(m=v.background)==null?void 0:(t=m.backgroundImageSource)==null?void 0:t.imageSources};
W=_.n(_.YV(!1,void 0,"GIwTMc"));var Y=W.next().value,K=W.next().value;W=_.yB(function(){K(!0)});
var Z=_.yB(function(){K(!1)}),d=function(){return Y()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.u("top-landscape-image-layout-view-model",{class:function(){var v;return((v=P().interaction)==null?0:v.onTap)&&_.p("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:O,"on:mouseenter":W,"on:mouseleave":Z},_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.u(_.V,{cond:function(){return B()&&B().length>0},
then:function(){return _.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.oP({top:"0","background-image":function(){return"url("+String(B()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.u(_.V,{cond:function(){return!!P().adButtonHoverOverlay},
then:function(){return _.u("div",{class:d},_.u(_.Ea,{data:function(){return P().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Cvp}))}}),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.u(_.Ea,{data:function(){return P().thumbnailImage}},{adImageViewModel:function(v){return _.u(_.xn,{data:v.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.p("enable_web_home_top_landscape_image_layout_level_click")})}})),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.u(_.bq,{data:{sources:[{clientResource:{imageName:_.p("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.u(_.Ea,{data:function(){return P().feedAdMetadata}},{feedAdMetadataViewModel:function(v){return _.u(wSz,{data:v.data,
noBottomMargin:function(){return x==null?void 0:x()},
listenToTapEvent:function(){return _.p("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return I==null?void 0:I()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.cv,
noBottomMargin:_.cv,typographyBump:_.cv}});_.lq(_.kl(function(W){var P=W.data;var x=W.typographyBump;var I=_.fa();_.p("stop_av_measurement_on_detach")&&_.C4(function(){sr(I)});
_.FL(I,{visibilityCallback:function(O){if(O){var B;(O=(B=P().interaction)==null?void 0:B.onFirstVisible)&&_.D1(O);var Y;if(B=(Y=P().adLayoutData)==null?void 0:Y.activeViewData)dn(I,B),_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sr(I)})}else _.p("stop_av_measurement_on_detach")&&sr(I)},
showOption:_.U$,hideOption:X7});return _.u("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:I},_.u("div",null,_.u(_.Ea,{data:function(){return P().videoLockup}},{lockupViewModel:function(O){return _.u(_.R8,{data:O.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:x})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.cv,
noBottomMargin:_.cv,typographyBump:_.cv}});_.lq(_.kl(function(W){var P=W.data;var x=W.typographyBump;var I=_.fa();_.p("stop_av_measurement_on_detach")&&_.C4(function(){sr(I)});
_.FL(I,{visibilityCallback:function(O){if(O){var B;(O=(B=P().interaction)==null?void 0:B.onFirstVisible)&&_.D1(O);var Y;if(B=(Y=P().adLayoutData)==null?void 0:Y.activeViewData)dn(I,B),_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sr(I)})}else _.p("stop_av_measurement_on_detach")&&sr(I)},
showOption:_.U$,hideOption:X7});return _.u("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:I},_.u("div",null,_.u(_.Ea,{data:function(){return P().videoLockup}},{lockupViewModel:function(O){return _.u(_.R8,{data:O.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:x})}})))},"ib"),"video-display-full-layout-view-model",{props:{data:_.cv,
noBottomMargin:_.cv,typographyBump:_.cv}});_.Ajd=_.kl(function(W){var P=W.data;W=_.fa();return _.u("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:W},_.u(_.V,{cond:function(){return P().imageBadge},
then:function(x){return _.u(_.bq,{data:x,alt:""})}}))},"jb");var z1M=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;W=_.fa();_.RS(W,function(){return P().interaction},x);
_.FL(W,{visibilityCallback:function(I){var O,B=(O=P().interaction)==null?void 0:O.onFirstVisible;I&&B&&_.D1(B)},
showOption:_.U$});return _.u("carousel-ad-card-image-view-model",{class:function(){var I;return((I=P().interaction)==null?0:I.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:W,"aria-label":function(){var I,O;return(I=P().interaction)==null?void 0:(O=I.accessibility)==null?void 0:O.label}},_.u(_.Ea,{data:function(){return P().adImage}},{adImageViewModel:function(I){return _.u(_.xn,{data:I.data,
customCommandResolver:x})}}),_.u("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.u(_.Ea,{data:function(){return P().badge}},{adCardBadgeViewModel:_.Ajd})),_.u(_.s4,{model:{color:4}}))},"kb");var Gzl=_.kl(function(W){var P=_.n(_.YV(0,void 0,"o9Bzd")),x=P.next().value;P.next();var I=P.next().value,O=_.n(_.YV(!1,void 0,"KLdzYe"));P=O.next().value;var B=O.next().value,Y;_.C4(function(){clearTimeout(Y)});
O=_.yB(function(){var d;((d=W.animate)==null?0:d.call(W))?(B(!0),Y=setTimeout(function(){B(!1);K()},200)):K();
return!1});
var K=function(){I(function(d){return(d+W.numShownItems())%W.data().length})},Z={};
return _.u("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.u("div",{class:_.O4("ytwHorizontalCarouselCarouselWrapper")},_.u("div",{class:_.O4("ytwHorizontalCarouselCarouselInnerWrapper",(Z.ytwHorizontalCarouselAnimating=P,Z))},_.u(_.sV,{each:W.data,keyBy:"INDEX"},function(d,v){return _.u("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.oP({"flex-basis":function(){return"calc((100% - (8px * "+(W.numShownItems()-1)+")) / "+W.numShownItems()+")"},
order:function(){var m=v-x();m<0&&(m+=W.data().length);return m}})},W.children(d,v))}))),_.u("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":O},W.nextButton()))},"lb");var Edw=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;var I=W.expansive;W=_.fa();_.FL(W,{visibilityCallback:function(O){var B,Y=(B=P().interaction)==null?void 0:B.onFirstVisible;O&&Y&&_.D1(Y)},
showOption:_.U$});return _.u("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:W},_.u(Gzl,{data:function(){var O;return((O=P())==null?void 0:O.carouselAdCards)||[]},
nextButton:function(){return _.u(_.Ea,{data:function(){return P().nextButton}},{buttonViewModel:function(O){var B=O.data;
return _.u(_.cq,{data:function(){return(I==null?0:I())?Object.assign({},B(),{style:"mono"}):B()},
className:_.p("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(O){return _.u(_.Ea,{data:O},{carouselAdCardImageViewModel:function(B){return _.u(z1M,{data:B.data,customCommandResolver:x})}})}))},"mb");var gdM=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;var I=W.className;var O=W.buttonClassName;var B=W.animationEntityKey;var Y=W.expansive;return _.u("carousel-button-view-model",{class:_.O4("ytwCarouselButtonViewModelHost",I)},_.u(_.Ea,{data:function(){return P().carousel}},{carouselAdCardCollectionViewModel:function(K){return _.u(Edw,{data:K.data,
customCommandResolver:x,expansive:Y})}}),_.u(_.Ea,{data:function(){return P().button}},{adButtonViewModel:function(K){var Z=K.data;
return _.u(_.fr,{data:function(){return(Y==null?0:Y())?Object.assign({},Z(),{style:"AD_BUTTON_STYLE_TONAL"}):Z()},
className:O,customCommandResolver:x,animationEntityKey:B})}}))},"nb");_.DqW=_.kl(function(W){var P=W.data;W=W.className;var x=_.fa();_.AQ(function(){var I;((I=P())==null?0:I.backgroundColor)&&x.value.setAttribute("data-background-color",String(P().backgroundColor))});
return _.u("pivot-button-view-model",{el:x,class:_.O4("ytwPivotButtonViewModelHost",W)},_.u(_.vF,{command:function(){var I=P();I=I.onClickCommand?_.AF(I.onClickCommand):I.contentDescription?_.lx(I.contentDescription):void 0;return I},
ariaLabel:function(){return P().contentDescription}},_.u(_.V,{cond:function(){return P().thumbnail},
then:function(I){return _.u(_.bq,{data:I,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.u(_.V,{cond:function(){return P().icon},
then:function(I){return _.u(_.Sy,{icon:function(){return I().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"ob");_.MFp=_.kl(function(W){var P=W.data;var x=W.buttonShapeOverrideables;return _.u("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.u(_.Ea,{data:function(){return P().buttonViewModels}},{buttonViewModel:function(I){return _.u(_.cq,{data:I.data,
buttonOverrides:x})},
likeButtonViewModel:function(I){return _.u(_.C7,{data:I.data,buttonShapeOverrideables:x})},
dislikeButtonViewModel:function(I){return _.u(_.Qz,{data:I.data,buttonShapeOverrideables:x})}}))},"pb");var $qz=_.kl(function(W){var P=W.avatar;var x=W.headline;var I=W.badge;var O=W.description;var B=W.expansive;W={};return _.u("yt-ad-metadata-shape",{class:_.O4("ytAdMetadataShapeHost",(W.ytAdMetadataShapeHostLarge=B,W))},_.u("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.u(_.V,{cond:P,then:function(Y){return _.u(_.gpc,{data:function(){return(B==null?0:B())?Object.assign({},Y(),{size:"AD_AVATAR_SIZE_MPLUS"}):Y()}})}}),_.u("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.u(_.mQ,{text:x,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.u(_.V,{cond:I,then:function(Y){return _.u(_.rZ,{data:function(){return(B==null?0:B())?Object.assign({},Y(),{style:"AD_BADGE_STYLE_STARK"}):Y()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.u("h2",{class:"ytAdMetadataShapeHostDescription"},_.u(_.mQ,{text:O,
linkInheritColor:!0})))},"qb");var w2i=_.kl(function(W){var P=W.data;var x=W.onShow;var I=W.expansive;W=_.fa();_.RS(W,function(){return P().interaction});
_.AQ(function(){var B,Y=(B=P().animatedRenderingConfig)==null?void 0:B.delayedSecondsToVisible;if(Y){var K=setTimeout(x,Y*1E3);_.C4(function(){clearTimeout(K)})}});
var O={};return _.u("reels-ad-card-buttoned-view-model",{class:_.O4(function(){var B;return((B=P().interaction)==null?0:B.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(O.ytwReelsAdCardButtonedViewModelHostExpansive=I,O)),
el:W},_.u($qz,{avatar:function(){return _.Q(P().avatar,tem)},
headline:function(){return P().headline},
badge:function(){return _.Q(P().adBadge,pIi)},
description:function(){return P().description},
expansive:I}),_.u(_.Ea,{data:function(){return P().ctaButton}},{adButtonViewModel:function(B){var Y=B.data;
return _.u(_.fr,{data:function(){return(I==null?0:I())?Object.assign({},Y(),{style:"AD_BUTTON_STYLE_FILLED"}):Y()}})}}))},"rb");var h1p=_.kl(function(W){var P=W.data;W=W.expansive;var x=_.fa();_.p("web_ad_metadata_clickable")&&_.RS(x,function(){return P().interaction});
var I={};I=_.BF("ytwReelsAdMetadataViewModelHost",(I.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.p("web_ad_metadata_clickable"),I));return _.u("reels-ad-metadata-view-model",{class:I,el:x},_.u($qz,{avatar:function(){return _.Q(P().avatar,tem)},
headline:function(){return P().headline},
badge:function(){return _.Q(P().adBadge,pIi)},
description:function(){return P().description},
expansive:W}))},"sb");var HHA={iconPosition:"icon-with-label",size:"L"},e1W=_.kl(function(W){var P=W.data;W=W.overlayDensity;var x=_.fa(),I=_.a7(W,0);_.jj(function(){x.value.setAttribute("overlay-density",String(I()))});
var O=function(){var m;return(m=P().reelsAdCardButtonedEntityKey)!=null?m:""},B=function(){return O()+"/ad_button"},Y=_.dp(h4G,O),K=function(){var m,t;
return(t=(m=Y())==null?void 0:m.value)!=null?t:!1},Z=_.G4(Edm),d=function(){return Object.assign({},HHA,(Z()||I()===2)&&{style:"overlay-dark"})};
W={};var v={};return _.u("reels-player-overlay-layout-view-model",{class:_.O4("ytwReelsPlayerOverlayLayoutViewModelHost",(W.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!P().extension},W.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},W)),
el:x},_.u("div",{class:_.O4("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(v.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},v))},_.u("div",{"aria-hidden":function(){return K()},
class:_.O4("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return K()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.oP({"transition-duration":function(){return MFC(P())}})},_.u(_.Ea,{data:function(){return P().adMetadata}},{reelsAdMetadataViewModel:function(m){return _.u(h1p,{data:m.data,
expansive:function(){return I()===1}})}}),_.u(_.V,{cond:function(){return P().extension},
then:function(m){return _.u("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.u(_.Ea,{data:m},{adButtonViewModel:function(t){return _.u(_.fr,{data:t.data,animationEntityKey:B,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(t){return _.u(gdM,{data:t.data,animationEntityKey:B,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return I()===1}})}}))}})),_.u("div",{"aria-hidden":function(){return!K()},
class:_.O4("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return K()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.oP({"transition-duration":function(){return MFC(P())}})},_.u(_.Ea,{data:function(){return P().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(m){return _.u(w2i,{data:m.data,
onShow:function(){_.cM(_.mG("booleanEntity",O(),{key:O(),value:!0}))},
expansive:function(){return I()===1}})}}))),_.u("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.u(_.Ea,{data:function(){return P().actions}},{reelActionBarViewModel:function(m){return _.u(_.MFp,{data:m.data,
buttonShapeOverrideables:d})}}),_.u(_.Ea,{data:function(){return P().menu}},{buttonViewModel:function(m){return _.u(_.cq,{data:m.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},d(),{type:"tonal"})}})}}),_.u(_.Ea,{data:function(){return P().pivotButton}},{pivotButtonViewModel:function(m){return _.u(_.DqW,{data:m.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"tb");_.lq(e1W,"reels-player-overlay-layout-view-model",{props:{data:_.cv,overlayDensity:_.cv}});var Iv=function(){var W=_.b.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;return W};
_.A(Iv,_.b);_.J=Iv.prototype;
_.J.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.p("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]]"}}}}}};
_.J.ready=function(){var W=this;JXR(function(){W.isAttached&&YA(W.JSC$13323_storedAdSlotMetadata,W.JSC$13323_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&Pa(LO(),W.JSC$13323_storedAdSlotMetadata,W.JSC$13323_storedAdLayoutMetadata)})};
_.J.attached=function(){YA(this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&QHl(LO(),this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata)};
_.J.detached=function(){YA(this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Pa(LO(),this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata)};
_.J.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13323_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13323_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13323_storedAdLayoutMetadata!==void 0&&this.JSC$13323_storedAdSlotMetadata!==void 0&&Pa(LO(),this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata),QHl(LO(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13323_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13323_storedAdSlotMetadata=this.adSlotMetadata)};
_.N1.Object.defineProperties(Iv.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
Iv.prototype.onAdMetadataChanged=Iv.prototype.onAdMetadataChanged;Iv.prototype.onTypographyBumpChanged=Iv.prototype.onTypographyBumpChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Iv.prototype,"rendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Iv.prototype,"ytComponentBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Iv.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Iv.prototype,"noBottomMargin",void 0);_.f([_.c(),_.l("design:type",Object)],Iv.prototype,"overlayDensity",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Iv.prototype,"typographyBump",void 0);_.f([_.H("data.adLayoutMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],Iv.prototype,"adLayoutMetadata",null);_.f([_.c(),_.l("design:type",Object)],Iv.prototype,"adSlotMetadata",void 0);
_.f([_.BM("ytd-video-display-full-buttoned-and-button-group-renderer"),_.l("design:type",HTMLElement)],Iv.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.f([_.OZ("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Iv.prototype,"onTypographyBumpChanged",null);_.f([_.OZ("adLayoutMetadata","adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Iv.prototype,"onAdMetadataChanged",null);
Iv=_.f([_.U({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Iv);
_.X(Iv,"ytd-in-feed-ad-layout-renderer",function(){if(GxM!==void 0)return GxM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return GxM=W},
{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var cjp;var aJc;var OJ=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return W};
_.A(OJ,_.b);_.J=OJ.prototype;_.J.computeHasLiveDescription=function(W){return!(W==null||!W.liveDescription)};
_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.J.onYtToggleButton=function(W){var P,x=(P=this.data)==null?void 0:P.videoReminderEntityKey;x&&this.ytdReduxBehavior.dispatch(_.mG("upcomingEventReminderStateEntity",x,{key:x,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.J.attached=function(){this.updateChannelBanner()};
_.J.dataChanged=function(){this.updateChannelBanner()};
_.J.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.Q((W=this.data)==null?void 0:W.cta,_.hc)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.J.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var W=_.Tm(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);W&&(W.startsWith("//")&&(W="https:"+W),this.hostElement.classList.add("channel-banner"),_.qa(this.hostElement,{"--ytvmh-channel-banner":"url("+W+")"}))}else _.p("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.J.onPlayerReady=function(){this.onIronResize()};
_.J.maybeFlushDebouncer=function(){_.p("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(W){var P;W=(P=W.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0];MMS(W==null?void 0:W.polymerController)})};
_.J.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var W=_.g(this.hostElement).querySelector("#live-description"),P;W&&((P=this.data)==null?0:P.shortLiveDescription)&&W.clientWidth<W.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
OJ.prototype.onIronResize=OJ.prototype.onIronResize;OJ.prototype.videoReminderStateChanged=OJ.prototype.videoReminderStateChanged;OJ.prototype.dataChanged=OJ.prototype.dataChanged;OJ.prototype.onYtToggleButton=OJ.prototype.onYtToggleButton;_.f([_.h(_.Db),_.l("design:type",Object)],OJ.prototype,"ironResizableBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],OJ.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],OJ.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],OJ.prototype,"data",void 0);_.f([_.c({selectorArgs:["data.videoReminderEntityKey"],selector:EGo}),_.l("design:type",Object)],OJ.prototype,"videoReminderState",void 0);
_.f([_.c({reflectToAttribute:!0,value:_.p("web_modern_buttons")}),_.l("design:type",Boolean)],OJ.prototype,"rounded",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.l("design:type",Boolean)],OJ.prototype,"hasLiveDescription",void 0);_.f([_.c({reflectToAttribute:!0,value:_.p("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.l("design:type",Boolean)],OJ.prototype,"resizableAdBannerSafariFix",void 0);
_.f([_.c({reflectToAttribute:!0,value:_.p("align_three_dot_menu_with_title_description")}),_.l("design:type",Boolean)],OJ.prototype,"menuFix",void 0);_.f([_.n_("yt-formatted-string"),_.l("design:type",Array)],OJ.prototype,"formattedStrings",void 0);_.f([_.BM("#cta-button"),_.l("design:type",HTMLElement)],OJ.prototype,"ctaButton",void 0);_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],OJ.prototype,"onYtToggleButton",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OJ.prototype,"dataChanged",null);_.f([_.OZ("videoReminderState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OJ.prototype,"videoReminderStateChanged",null);_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OJ.prototype,"onIronResize",null);
OJ=_.f([_.U({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],OJ);
_.X(OJ,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(aJc!==void 0)return aJc;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return aJc=W},{mode:1});var bHw;var J7=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.isLocked=!1;return W};
_.A(J7,_.b);_.J=J7.prototype;_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded&&_.P7(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(W){W!==this&&(this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(W){this.isLocked=!0;W!==this&&(this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
J7.prototype.onTap=J7.prototype.onTap;J7.prototype.onMouseOver=J7.prototype.onMouseOver;J7.prototype.onExpandedChanged=J7.prototype.onExpandedChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],J7.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],J7.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],J7.prototype,"expanded",void 0);_.f([_.K_("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J7.prototype,"onExpandedChanged",null);_.f([_.I7("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J7.prototype,"onMouseOver",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J7.prototype,"onTap",null);
J7=_.f([_.U({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],J7);
_.X(J7,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(bHw!==void 0)return bHw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return bHw=W},{mode:1});var kzw;var Ba=function(){var W=_.b.apply(this,arguments)||this;W.buttonOverrides={style:"overlay"};W.useYtdPlayer=_.p("use_ytd_player_for_desktop_masthead");W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.playbackFinished=!1;W.JSC$13335_playerManager=null;W.JSC$13335_mastheadCounter=new Czm;return W};
_.A(Ba,_.b);_.J=Ba.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$13335_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13335_playerManager=new os)};
_.J.ready=function(){var W=this;this.JSC$13335_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var P=_.g(this.hostElement).querySelector("#player");this.useYtdPlayer?P.style.display="none":(this.ytdPlayer.style.display="none",fvw(this.JSC$13335_playerManager,P,function(){W.onPlaybackEnded()}),_.g(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var x;
((x=W.data)==null?0:x.navigationEndpoint)&&_.Lf(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})}))};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13335_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.J.attached=function(){var W=this;_.gY(function(){W.maybePlayVideo()})};
_.J.maybePlayVideo=function(){var W=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$13335_playerManager.playVideo(),this.getPlayerPromise().then(function(){W.JSC$13335_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.J.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13335_playerManager.stopVideo()};
_.J.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var W,P={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((W=this.data.playbackStartMs)!=null?W:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(P);this.setupYtdPlayer()}else lvc(this.JSC$13335_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(NCM(this.JSC$13335_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.J.getPlayerPromise=function(){return this.JSC$13335_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$13335_playerManager.mute():this.JSC$13335_playerManager.unMute()};
_.J.onYtNavigate=function(W){var P=mWG(W.detail.endpoint),x=VZm(this.data.clickthroughReportingData);P&&x&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=x:_.lO(P,x,30))};
_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded?(_.P7(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(W){W!==this&&(this.stopVideo(),this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(W){W!==this&&(this.isLocked=!0,this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
_.J.lockAndCollapseExpandableTiles=function(){_.W7(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.J.unlockExpandableTiles=function(){_.W7(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.J.setupYtdPlayer=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,W.ytdPlayer.getPlayerPromise(),2);P=x.yieldResult;P.addEventListener("onStateChange",function(I){W.onPlayerStateChange(I)});
P.addEventListener("onCueRangeExit",function(I){W.onCueRangeExit(I)});
_.Kl(x)})};
_.J.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var P=W.getCurrentTime(),x,I,O=P+((I=(x=this.data)==null?void 0:x.playbackDurationMs)!=null?I:0)/1E3;W.addCueRange("playback",P,O);this.JSC$13335_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.J.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,P.ytdPlayer.getPlayerPromise(),2);x=I.yieldResult;W?x.mute():x.unMute();_.Kl(I)})};
Ba.prototype.onTap=Ba.prototype.onTap;Ba.prototype.onMouseOver=Ba.prototype.onMouseOver;Ba.prototype.onExpandedChanged=Ba.prototype.onExpandedChanged;Ba.prototype.onYtNavigate=Ba.prototype.onYtNavigate;Ba.prototype.onYtToggleButton=Ba.prototype.onYtToggleButton;Ba.prototype.dataChanged=Ba.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Ba.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ba.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ba.prototype,"expanded",void 0);_.f([_.c(),_.l("design:type",Object)],Ba.prototype,"buttonOverrides",void 0);
_.f([_.c(),_.l("design:type",Object)],Ba.prototype,"useYtdPlayer",void 0);_.f([_.BM("#ytd-player"),_.l("design:type",Object)],Ba.prototype,"ytdPlayer",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ba.prototype,"dataChanged",null);_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ba.prototype,"onYtToggleButton",null);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ba.prototype,"onYtNavigate",null);_.f([_.K_("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ba.prototype,"onExpandedChanged",null);_.f([_.I7("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ba.prototype,"onMouseOver",null);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ba.prototype,"onTap",null);Ba=_.f([_.U({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Ba);
_.X(Ba,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(kzw!==void 0)return kzw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return kzw=W},{mode:1});var Uqw;var ns=function(){return _.b.apply(this,arguments)||this};
_.A(ns,_.b);ns.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ns.prototype.onShow=function(){var W=_.g(this.hostElement).querySelector("#live-description"),P;W&&((P=this.data)==null?0:P.shortLiveDescription)&&W.clientWidth<W.scrollWidth&&this.hostElement.classList.add("short-live-description")};
ns.prototype.onYtToggleButton=function(W){var P,x=(P=this.data)==null?void 0:P.videoReminderEntityKey;x&&this.ytdReduxBehavior.dispatch(_.mG("upcomingEventReminderStateEntity",x,{key:x,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
ns.prototype.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.Q((W=this.data)==null?void 0:W.cta,_.hc)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
ns.prototype.videoReminderStateChanged=ns.prototype.videoReminderStateChanged;ns.prototype.onYtToggleButton=ns.prototype.onYtToggleButton;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],ns.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ns.prototype,"data",void 0);
_.f([_.c({selectorArgs:["data.videoReminderEntityKey"],selector:EGo}),_.l("design:type",Object)],ns.prototype,"videoReminderState",void 0);_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ns.prototype,"onYtToggleButton",null);_.f([_.OZ("videoReminderState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ns.prototype,"videoReminderStateChanged",null);
ns=_.f([_.U({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],ns);
_.X(ns,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Uqw!==void 0)return Uqw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Uqw=W},{mode:_.F4("kevlar_poly_si_batch_j065")?1:2});var X2k;var Yn=function(){var W=_.b.apply(this,arguments)||this;W.useYtdPlayer=_.p("use_ytd_player_for_desktop_masthead");W.buttonOverrides={style:"overlay"};W.JSC$13343_playerManager=null;W.JSC$13343_mastheadCounter=new Czm;W.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return W};
_.A(Yn,_.b);_.J=Yn.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$13343_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13343_playerManager=new os)};
_.J.ready=function(){var W=this;this.JSC$13343_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var P;(P=this.embeddedPlayer)==null||P.remove()}else{var x;(x=this.ytdPlayer)==null||x.remove();fvw(this.JSC$13343_playerManager,this.embeddedPlayer,function(){W.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){W.data&&W.data.navigationEndpoint&&_.Lf(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})})}};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13343_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.J.dataChanged=function(){var W=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var P=!this.data.disableAutoPlayback,x,I={autoplay:P,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((x=this.data.playbackStartMs)!=null?x:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(P?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(I);this.setupYtdPlayer()}else lvc(this.JSC$13343_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(NCM(this.JSC$13343_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13343_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.W7(W.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");W.JSC$13343_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.J.getPlayerPromise=function(){return this.JSC$13343_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$13343_playerManager.mute():this.JSC$13343_playerManager.unMute()};
_.J.onYtNavigate=function(W){var P=mWG(W.detail.endpoint),x=VZm(this.data.clickthroughReportingData);P&&x&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=x:_.lO(P,x,30))};
_.J.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13343_playerManager.stopVideo()};
_.J.setupYtdPlayer=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,W.ytdPlayer.getPlayerPromise(),2);P=x.yieldResult;P.addEventListener("onStateChange",function(I){W.onPlayerStateChange(I)});
P.addEventListener("onCueRangeExit",function(I){W.onCueRangeExit(I)});
_.Kl(x)})};
_.J.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var P=W.getCurrentTime(),x,I,O=P+((I=(x=this.data)==null?void 0:x.playbackDurationMs)!=null?I:0)/1E3;W.addCueRange("playback",P,O);_.W7(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13343_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.J.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,P.ytdPlayer.getPlayerPromise(),2);x=I.yieldResult;W?x.mute():x.unMute();_.Kl(I)})};
_.N1.Object.defineProperties(Yn.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W,P;if(!((W=this.data)==null?0:(P=W.accessibilityData)==null?0:P.label))return"Ad primary link";var x,I;return _.KK("AD_TITLE",{title:(x=this.data)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label})}}});
Yn.prototype.onYtMastheadHidden=Yn.prototype.onYtMastheadHidden;Yn.prototype.onYtNavigate=Yn.prototype.onYtNavigate;Yn.prototype.onYtToggleButton=Yn.prototype.onYtToggleButton;Yn.prototype.dataChanged=Yn.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Yn.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Yn.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Yn.prototype,"useYtdPlayer",void 0);_.f([_.BM("ytd-toggle-button-renderer"),_.l("design:type",Object)],Yn.prototype,"muteButton",void 0);_.f([_.c(),_.l("design:type",Object)],Yn.prototype,"buttonOverrides",void 0);
_.f([_.H("data.accessibilityData.label"),_.l("design:type",String),_.l("design:paramtypes",[])],Yn.prototype,"titleAriaLabel",null);_.f([_.BM("#replay-button"),_.l("design:type",Object)],Yn.prototype,"replayButton",void 0);_.f([_.BM("#player-container"),_.l("design:type",Object)],Yn.prototype,"playerContainer",void 0);_.f([_.BM("#player"),_.l("design:type",Object)],Yn.prototype,"embeddedPlayer",void 0);_.f([_.BM("#ytd-player"),_.l("design:type",Object)],Yn.prototype,"ytdPlayer",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yn.prototype,"dataChanged",null);_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Yn.prototype,"onYtToggleButton",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Yn.prototype,"onYtNavigate",null);
_.f([_.I7("yt-masthead-hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yn.prototype,"onYtMastheadHidden",null);Yn=_.f([_.U({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Yn);
_.X(Yn,"ytd-video-masthead-ad-primary-video-renderer",function(){if(X2k!==void 0)return X2k;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return X2k=W},{mode:2});var fJz;var yK=function(){var W=_.b.apply(this,arguments)||this;W.collapsed=!1;W.impressionResolver=_.aP();W.JSC$13347_activeViewMeasurementDataResolver=_.aP();W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.A(yK,_.b);_.J=yK.prototype;_.J.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"}}}};
_.J.ready=function(){var W=this;_.g(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){W.expandAd()});
this.hostElement.addEventListener("yt-action",function(P){if(P.detail.actionName==="yt-service-request"){var x=P.detail.args[1];x.videoMastheadAdMuteCommand&&(W.collapseAd(x.videoMastheadAdMuteCommand.encryptedMastheadId),P.stopPropagation())}})};
_.J.attached=function(){var W=this;_.gY(function(){W.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(P){if(!W.collapsed){P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=x.value,aD(x.baseUrl,x.attributionSrcMode);W.data.impressionCommand=void 0}});
this.JSC$13347_activeViewMeasurementDataResolver.promise.then(function(P){W.ytdActiveViewBehavior.enableActiveViewMeasurement(P,15)});
_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.dataChanged=function(){var W;((W=this.data.impressionCommand)==null?0:W.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var P;((P=this.data)==null?0:P.activeView)&&this.JSC$13347_activeViewMeasurementDataResolver.resolve(this.data.activeView);(W=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(W.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.J.computeWidescreen=function(W){var P;return!!(W&&((P=_.Q(W,dYd))==null?0:P.isWidescreen))};
_.J.computeExpandable=function(W){return!!(W&&W.length>0)};
_.J.onIronResize=function(){if(this.expandable){var W=_.g(this.hostElement).querySelector("#expandable-tile-container :first-child");W&&!W.expanded&&(W.expanded=!0)}};
_.J.handleMuteAd=function(){this.collapseAd(null)};
_.J.restoreCollapsedState=function(W){this.collapsed=_.SI().get("HIDDEN_MASTHEAD_ID")===W};
_.J.collapseAd=function(W){if(W){var P=_.SI();P.set("HIDDEN_MASTHEAD_ID",W);P.save()}(W=_.g(this.hostElement).querySelector("#video"))&&_.Lf(W,"yt-masthead-hidden");this.collapsed=!0};
_.J.expandAd=function(){var W=_.SI();W.set("HIDDEN_MASTHEAD_ID",!1);W.save();location.reload()};
_.J.detached=function(){_.p("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
yK.prototype.onIronResize=yK.prototype.onIronResize;yK.prototype.dataChanged=yK.prototype.dataChanged;_.f([_.h(_.Db),_.l("design:type",Object)],yK.prototype,"ironResizableBehavior",void 0);_.f([_.h(Ax),_.l("design:type",Object)],yK.prototype,"ytdActiveViewBehavior",void 0);_.f([_.h(_.MW),_.l("design:type",Object)],yK.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],yK.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yK.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.l("design:type",Boolean)],yK.prototype,"widescreen",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.l("design:type",Boolean)],yK.prototype,"expandable",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yK.prototype,"collapsed",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yK.prototype,"dataChanged",null);
_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yK.prototype,"onIronResize",null);yK=_.f([_.U({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],yK);
_.X(yK,"ytd-video-masthead-ad-v3-renderer",function(){if(fJz!==void 0)return fJz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return fJz=W},{mode:2});var Ks=function(){return _.b.apply(this,arguments)||this};
_.A(Ks,_.b);_.J=Ks.prototype;_.J.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.J.ready=function(){var W=this;JXR(function(){W.isAttached&&YA(W.JSC$13352_storedAdSlotMetadata,W.JSC$13352_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&Pa(LO(),W.JSC$13352_storedAdSlotMetadata,W.JSC$13352_storedAdLayoutMetadata)})};
_.J.attached=function(){YA(this.JSC$13352_storedAdSlotMetadata,this.JSC$13352_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&QHl(LO(),this.JSC$13352_storedAdSlotMetadata,this.JSC$13352_storedAdLayoutMetadata)};
_.J.detached=function(){YA(this.JSC$13352_storedAdSlotMetadata,this.JSC$13352_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Pa(LO(),this.JSC$13352_storedAdSlotMetadata,this.JSC$13352_storedAdLayoutMetadata)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13352_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13352_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13352_storedAdLayoutMetadata!==void 0&&this.JSC$13352_storedAdSlotMetadata!==void 0&&Pa(LO(),this.JSC$13352_storedAdSlotMetadata,this.JSC$13352_storedAdLayoutMetadata),QHl(LO(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13352_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13352_storedAdSlotMetadata=this.adSlotMetadata)};
_.N1.Object.defineProperties(Ks.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
Ks.prototype.onAdMetadataChanged=Ks.prototype.onAdMetadataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Ks.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ks.prototype,"data",void 0);_.f([_.H("data.adLayoutMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ks.prototype,"adLayoutMetadata",null);
_.f([_.c(),_.l("design:type",Object)],Ks.prototype,"adSlotMetadata",void 0);_.f([_.OZ("adLayoutMetadata","adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ks.prototype,"onAdMetadataChanged",null);Ks=_.f([_.U({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Ks);
_.X(Ks,"ytd-page-top-ad-layout-renderer",function(){if(cjp!==void 0)return cjp;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return cjp=
W},{mode:_.F4("kevlar_poly_si_batch_j070")?1:2});var NPi;var ZL=function(){var W=_.b.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;W.typographyBump=!1;return W};
_.A(ZL,_.b);_.J=ZL.prototype;
_.J.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.J.ready=function(){var W=this;JXR(function(){W.isAttached&&W.adSlotMetadata&&jHw(LO(),W.adSlotMetadata)})};
_.J.attached=function(){if(this.adSlotMetadata){var W;if(this.adSlotMetadata===((W=this.data)==null?void 0:W.adSlotMetadata))p2Z(LO(),this.adSlotMetadata);else{var P;_.ge(Error("Kh`"+this.adSlotMetadata+"`"+((P=this.data)==null?void 0:P.adSlotMetadata)))}}};
_.J.detached=function(){this.adSlotMetadata&&jHw(LO(),this.adSlotMetadata)};
_.J.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.J.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&jHw(LO(),this.adSlotMetadata),p2Z(LO(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.N1.Object.defineProperties(ZL.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var W,P,x=_.Q((W=this.data)==null?void 0:(P=W.fulfillmentContent)==null?void 0:P.fulfilledLayout,_.v5b),I;return(W=(I=_.Q(x==null?void 0:x.renderingContent,sdw))==null?void 0:I.layout)?W.toLowerCase().replace(/_/g,"-"):""}}});
ZL.prototype.onAdSlotMetadataChanged=ZL.prototype.onAdSlotMetadataChanged;ZL.prototype.onTypographyBumpChanged=ZL.prototype.onTypographyBumpChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ZL.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ZL.prototype,"rendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],ZL.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],ZL.prototype,"noBottomMargin",void 0);_.f([_.c(),_.l("design:type",Object)],ZL.prototype,"overlayDensity",void 0);_.f([_.c(),_.l("design:type",Object)],ZL.prototype,"typographyBump",void 0);_.f([_.BM("ytd-in-feed-ad-layout-renderer"),_.l("design:type",HTMLElement)],ZL.prototype,"inFeedAdLayoutRenderer",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],ZL.prototype,"layout",null);_.f([_.OZ("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZL.prototype,"onTypographyBumpChanged",null);_.f([_.OZ("data.adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZL.prototype,"onAdSlotMetadataChanged",null);
ZL=_.f([_.U({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],ZL);
_.X(ZL,"ytd-ad-slot-renderer",function(){if(NPi!==void 0)return NPi;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return NPi=W},{mode:_.F4("kevlar_poly_si_batch_j077")?
1:2});var lJi;var ov=function(){return _.b.apply(this,arguments)||this};
_.A(ov,_.b);_.J=ov.prototype;_.J.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"}}}};
_.J.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&uqm(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.J.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var W=_.n(this.data.impressionUrls),P=W.next();!P.done;P=W.next())P=P.value,QfA(P,AqA(P));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.J.attached=function(){var W=this;_.p("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.p("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.N1.Object.defineProperties(ov.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.p("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.p("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
ov.prototype.dataChanged=ov.prototype.dataChanged;ov.prototype.onTap=ov.prototype.onTap;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.f([_.h(Ax),_.l("design:type",Object)],ov.prototype,"ytdActiveViewBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],ov.prototype,"ytdReduxBehavior",void 0);
_.f([_.c({selector:_.br}),_.l("design:type",Object)],ov.prototype,"isGridViewEnabled",void 0);_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ov.prototype,"watchFeedBigThumbs",null);_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],ov.prototype,"thumbnailWidth",null);_.f([_.c(),_.l("design:type",Object)],ov.prototype,"data",void 0);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ov.prototype,"onTap",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ov.prototype,"dataChanged",null);ov=_.f([_.U({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],ov);
_.X(ov,"ytd-compact-promoted-video-renderer",function(){if(lJi!==void 0)return lJi;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return lJi=W},{mode:1});var TPz;_.Ad("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var SX=function(){return _.b.apply(this,arguments)||this};
_.A(SX,_.b);SX.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],SX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],SX.prototype,"data",void 0);SX=_.f([_.U({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],SX);
_.X(SX,"ytd-search-pyv-renderer",function(){if(TPz!==void 0)return TPz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return TPz=W},{mode:1});var rjZ;_.Ad("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var uF=function(){var W=_.b.apply(this,arguments)||this;W.roundedContainer=!0;W.JSC$13368_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.A(uF,_.b);_.J=uF.prototype;
_.J.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}}};
_.J.onStampFinished=function(){this.JSC$13368_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.g(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");W?W.openDialog():this.JSC$13368_handleOpenPostCommentDialogActionAfterStamp=!0};
_.J.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.J.computeHideBorder=function(){return this.isInEngagementPanel};
_.J.computeIsCompact=function(){return this.isInEngagementPanel};
_.J.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.J.computeUsesFullLockup=function(){var W,P=(W=this.data)==null?void 0:W.post,x;W=(x=_.Q(P,Gei))==null?void 0:x.surface;var I;x=(I=_.Q(P,g5l))==null?void 0:I.originalPost;var O;if(I=W||((O=_.Q(x,Gei))==null?void 0:O.surface))return!this.computeUsesCompactLockup(I)&&this.useUpdatedRepostUi;var B;return((B=_.Q(P,g5l))==null?void 0:B.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.N1.Object.defineProperties(uF.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var W,P;return((P=_.Q((W=this.data)==null?void 0:W.post,Gei))==null?void 0:P.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useUpdatedRepostUi}}});
uF.prototype.onYtCommentModerationPanelEmpty=uF.prototype.onYtCommentModerationPanelEmpty;uF.prototype.onStampFinished=uF.prototype.onStampFinished;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],uF.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],uF.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],uF.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uF.prototype,"roundedContainer",void 0);_.f([_.c({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.l("design:type",Boolean)],uF.prototype,"hideBorder",void 0);_.f([_.c({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.l("design:type",Boolean)],uF.prototype,"isCompact",void 0);
_.f([_.c({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.l("design:type",Boolean)],uF.prototype,"usesFullLockup",void 0);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uF.prototype,"onStampFinished",null);
_.f([_.I7("ytd-comment-moderation-panel-empty"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],uF.prototype,"onYtCommentModerationPanelEmpty",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uF.prototype,"isInEngagementPanel",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uF.prototype,"useUpdatedRepostUi",null);
uF=_.f([_.U({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],uF);
_.X(uF,"ytd-backstage-post-thread-renderer",function(){if(rjZ!==void 0)return rjZ;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rjZ=W},{mode:1});var iHw;var dB=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(dB,_.b);dB.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
dB.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var W=this.data.thumbnail.thumbnails;this.isDarkTheme&&(W=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(W=_.Tm(W,24,void 0,"height"))?W:void 0}};
dB.prototype.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
dB.prototype.computeHasText=function(){var W;return!((W=this.data)==null||!W.text)};
_.N1.Object.defineProperties(dB.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.my(this.bannerImageUrl))+'");'}}});
dB.prototype.computeHasText=dB.prototype.computeHasText;dB.prototype.computeBannerImageUrl=dB.prototype.computeBannerImageUrl;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],dB.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],dB.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],dB.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],dB.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",String)],dB.prototype,"bannerImageUrl",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.l("design:type",Boolean)],dB.prototype,"hasText",void 0);_.f([_.OZ("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dB.prototype,"computeBannerImageUrl",null);
_.f([_.OZ("data.text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dB.prototype,"computeHasText",null);_.f([_.H("bannerImageUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],dB.prototype,"bannerStyle",null);dB=_.f([_.U({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],dB);
_.X(dB,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(iHw!==void 0)return iHw;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return iHw=W},{mode:1});var R1m;var sJ=function(){return _.b.apply(this,arguments)||this};
_.A(sJ,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sJ.prototype,"data",void 0);sJ=_.f([_.U({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],sJ);
_.X(sJ,"ytd-backstage-zero-state-renderer",function(){if(R1m!==void 0)return R1m;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return R1m=W},{mode:1});var F2m;var va=function(){return _.b.apply(this,arguments)||this};
_.A(va,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],va.prototype,"data",void 0);_.f([_.c({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],va.prototype,"icon",void 0);va=_.f([_.U({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],va);
_.X(va,"ytd-post-filter-zero-state-renderer",function(){if(F2m!==void 0)return F2m;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return F2m=W},{mode:1});var qQZ;var L2d={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},mU=function(){return _.b.apply(this,arguments)||this};
_.A(mU,_.b);mU.prototype.configureRendererStamper=function(){return L2d};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mU.prototype,"rendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mU.prototype,"data",void 0);_.f([_.c({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],mU.prototype,"icon",void 0);mU=_.f([_.U({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],mU);
_.X(mU,"ytd-post-scheduling-zero-state-renderer",function(){if(qQZ!==void 0)return qQZ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return qQZ=W},{mode:1});var WDW;var VK=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return W};
_.A(VK,_.b);VK.prototype.onTabsActivate=function(W){this.data&&this.data.tabs&&_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[W.detail.selected].navigationEndpoint})};
VK.prototype.shouldShowTotalCount=function(W){return W&&W.totalCount!==void 0};
VK.prototype.handleUpdatePostsTotalCountAction=function(W){var P=this.get(["data.tabs",1,"totalCount"]),x=this.get("updatePostsTotalCountAction.updateType",W);W=this.get("updatePostsTotalCountAction.number",W);P!==void 0&&x!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&W&&(x==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(P)+W):x==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(P)-W))};
_.N1.Object.defineProperties(VK.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var W=0,P=this.data.tabs.length;W<P;W++)if(this.data.tabs[W].selected)return W;return 0}}});
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],VK.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],VK.prototype,"rendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],VK.prototype,"data",void 0);_.f([_.H("data.tabs"),_.l("design:type",Number),_.l("design:paramtypes",[])],VK.prototype,"selected",null);VK=_.f([_.U({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],VK);
_.X(VK,"ytd-post-stream-filter-renderer",function(){if(WDW!==void 0)return WDW;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return WDW=W},{mode:1});var PlA;var t7=function(){return _.b.apply(this,arguments)||this};
_.A(t7,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],t7.prototype,"kevlarBehaviors",void 0);_.f([_.c(),_.l("design:type",Object)],t7.prototype,"data",void 0);t7=_.f([_.U({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],t7);
_.X(t7,"ytd-channel-age-gate-renderer",function(){if(PlA!==void 0)return PlA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return PlA=W},{mode:1});var xDm;_.Ad("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var ps=function(){var W=_.b.apply(this,arguments)||this;W.data=null;return W};
_.A(ps,_.b);ps.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N1.Object.defineProperties(ps.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.data)==null?0:(P=W.title)==null?0:(x=P.runs)==null?0:x.length)?147:160}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ps.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],ps.prototype,"imageSizePx",null);ps=_.f([_.U({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],ps);
_.X(ps,"ytd-channel-owner-empty-state-renderer",function(){if(xDm!==void 0)return xDm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return xDm=W},{mode:1});var I6m;var Oip;var jX=function(){var W=_.b.apply(this,arguments)||this;W.boundSubmitSearch=function(){W.submitSearch()};
W.boundClearSearch=function(){W.clearSearch()};
return W};
_.A(jX,_.b);_.J=jX.prototype;_.J.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]]"}}}}}};
_.J.toggleClearButton=function(){this.hideClearButton=pEo||!this.input.value};
_.J.submitOnEnterKeyUp=function(W){W.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.J.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.J.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.J.submit=function(){_.Lf(this.hostElement,"search-query-changed",this.input.value)};
jX.prototype.toggleClearButton=jX.prototype.toggleClearButton;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],jX.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jX.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],jX.prototype,"hideClearButton",void 0);_.f([_.c(),_.l("design:type",Object)],jX.prototype,"boundSubmitSearch",void 0);_.f([_.c(),_.l("design:type",Object)],jX.prototype,"boundClearSearch",void 0);_.f([_.BM("#input"),_.l("design:type",Object)],jX.prototype,"input",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jX.prototype,"toggleClearButton",null);
jX=_.f([_.U({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],jX);
_.X(jX,"ytd-channel-switcher-search-box-renderer",function(){if(Oip!==void 0)return Oip;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Oip=W},{mode:1});var J4k;var QK=function(){var W=_.b.apply(this,arguments)||this;W.boundSubmit=function(){W.submit()};
return W};
_.A(QK,_.b);_.J=QK.prototype;_.J.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"}}}}};
_.J.ready=function(){var W=this;this.form.addEventListener("submit",function(P){return W.onSubmit(P)})};
_.J.onSubmit=function(W){W.preventDefault();return!1};
_.J.toggleClearButton=function(){this.hideClearButton=pEo||!this.input.value};
_.J.submitOnEnterKeyUp=function(W){W.keyCode===13&&this.submit()};
_.J.submit=function(){var W=this.data.endpoint,P=(0,_.jU.unsafeClone)(W);_.Q(P,_.KL)?_.Q(P,_.KL).query=this.input.value:_.Q(P,_.Zz)&&(_.Q(P,_.Zz).query=this.input.value);var x=_.Q(P.commandMetadata,_.rU);(x==null?0:x.url)?(x.url=_.hy(x.url,"query",this.input.value),_.Lf(this.hostElement,"yt-navigate",{endpoint:P})):_.Q(P,y8c)?(_.Q(P,y8c).channelSwitcherQuery=this.input.value,_.FY().resolve(_.qR).resolveCommand(P,{form:{element:this.hostElement}})):(W=Error("Lh`"+JSON.stringify(W)),_.G$(W))};
_.J.getUrl=function(W){return this.get("commandMetadata.webCommandMetadata.url",W)};
QK.prototype.toggleClearButton=QK.prototype.toggleClearButton;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],QK.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],QK.prototype,"hideClearButton",void 0);
_.f([_.c(),_.l("design:type",Object)],QK.prototype,"boundSubmit",void 0);_.f([_.BM("#form"),_.l("design:type",HTMLFormElement)],QK.prototype,"form",void 0);_.f([_.BM("#input"),_.l("design:type",Object)],QK.prototype,"input",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QK.prototype,"toggleClearButton",null);QK=_.f([_.U({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],QK);
_.X(QK,"ytd-search-box-renderer",function(){if(J4k!==void 0)return J4k;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return J4k=W},{mode:2});var Cs=function(){var W=_.b.apply(this,arguments)||this;W.showSearchBox=!0;return W};
_.A(Cs,_.b);Cs.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Cs.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cs.prototype,"showSearchBox",void 0);Cs=_.f([_.U({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Cs);
_.X(Cs,"ytd-channel-switcher-header-renderer",function(){if(I6m!==void 0)return I6m;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return I6m=W},{mode:1});var B2Z;var ngl;var A7=function(){var W=_.b.apply(this,arguments)||this;W.isDisplayed=!0;return W};
_.A(A7,_.b);_.J=A7.prototype;_.J.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.isDisplayed=!0};
_.J.computeType=function(W){return W||"UNKNOWN"};
_.J.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isDisplayed=!1};
_.J.onClose=function(){this.isDisplayed=!1};
A7.prototype.onYtServiceRequestCompleted=A7.prototype.onYtServiceRequestCompleted;A7.prototype.dataChanged=A7.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],A7.prototype,"data",void 0);
_.f([_.c({computed:"computeType(data.type)",reflectToAttribute:!0}),_.l("design:type",String)],A7.prototype,"type",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],A7.prototype,"isDisplayed",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A7.prototype,"dataChanged",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],A7.prototype,"onYtServiceRequestCompleted",null);A7=_.f([_.U({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],A7);
_.X(A7,"ytd-alert-with-button-renderer",function(){if(ngl!==void 0)return ngl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ngl=W},{mode:1});var zW=function(){var W=_.b.apply(this,arguments)||this;W.noResult=!1;W.enableAlertBanner=!1;W.dismissedAlertBanner=!1;W.hideCreateChannelButton=!1;W.boundDismissAlertBanner=function(){W.dismissAlertBanner()};
W.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return W};
_.A(zW,_.b);_.J=zW.prototype;_.J.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.J.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.J.updateChannelSwitcherAction=function(W){var P;W=(P=_.Q(W,f9w))==null?void 0:P.page;_.Q(W,XxM)!==void 0&&(this.data=_.Q(W,XxM))};
_.J.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]]"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.searchQueryChanged=function(W,P){if(this.data&&this.data.contents&&this.data.contents.length){W=[];var x=[];this.hideCreateChannelButton=this.noResult=!1;for(var I=document.querySelectorAll("ytd-account-item-renderer"),O=_.n(I),B=O.next();!B.done;B=O.next())B=B.value,x.push(B),B.style.display="block";this.resetRightBorder(x);if(P){this.hideCreateChannelButton=!0;for(x=1;x<this.data.contents.length;x++)if(B=this.data.contents[x],_.Q(B,Bgk)){var Y=void 0,K=void 0;O=(Y=_.Q(B,Bgk))==null?void 0:(K=
Y.accountName)==null?void 0:K.simpleText;K=Y=void 0;B=(Y=_.Q(B,Bgk))==null?void 0:(K=Y.channelHandle)==null?void 0:K.simpleText;(Y=I[x-1])&&O&&_.S8(O,P)?W.push(Y):_.p("enable_handle_search_on_channel_switcher")&&Y&&B&&_.S8(B.toString(),P.toString())?W.push(Y):Y.style.display="none"}W.length===0&&(this.noResult=!0);this.resetRightBorder(W)}}};
_.J.resetRightBorder=function(W){for(var P=0;P<W.length;P++)W[P].style.borderRight=!this.hideCreateChannelButton&&(P+2)%3===0||this.hideCreateChannelButton&&(P+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.J.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.J.setShowSearchBox=function(W){if(W&&W.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var P=0;P<W.contents.length;P++)_.Q(W.contents[P],_.Yc)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.J.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.N1.Object.defineProperties(zW.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.contents)}}});
zW.prototype.onContinuationItemsUpdated=zW.prototype.onContinuationItemsUpdated;zW.prototype.searchQueryChanged=zW.prototype.searchQueryChanged;zW.prototype.onDataChanged=zW.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],zW.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],zW.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],zW.prototype,"data",void 0);_.f([_.BM("ytd-channel-switcher-header-renderer"),_.l("design:type",Object)],zW.prototype,"channelSwitcherHeaderRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],zW.prototype,"noResult",void 0);
_.f([_.c(),_.l("design:type",Object)],zW.prototype,"enableAlertBanner",void 0);_.f([_.c(),_.l("design:type",Object)],zW.prototype,"dismissedAlertBanner",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],zW.prototype,"hideCreateChannelButton",void 0);_.f([_.H("data.contents"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zW.prototype,"isLoading",null);_.f([_.c(),_.l("design:type",Object)],zW.prototype,"boundDismissAlertBanner",void 0);
_.f([_.c({computed:"computeButtonOverride()"}),_.l("design:type",Object)],zW.prototype,"buttonOverride",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zW.prototype,"onDataChanged",null);_.f([_.I7("search-query-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],zW.prototype,"searchQueryChanged",null);
_.f([_.I7("yt-next-continuation-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],zW.prototype,"onContinuationItemsUpdated",null);zW=_.f([_.U({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],zW);
_.X(zW,"ytd-channel-switcher-page-renderer",function(){if(B2Z!==void 0)return B2Z;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return B2Z=W},{mode:1});var YGi;var y4i;var GW=function(){var W=_.b.apply(this,arguments)||this;W.images=[];W.selectedImageIndex=0;return W};
_.A(GW,_.b);_.J=GW.prototype;
_.J.ready=function(){_.uq(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.uq(this.JSC$13413_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.uq(this.JSC$13413_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.uq(this.JSC$13413_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.J.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.J.updateImageThumbnails=function(W){W=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:W.event_.detail});this.images.splice(this.selectedImageIndex,1,W);this.images=[].concat(_.ju(this.images))};
_.J.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Lf(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.J.saveImageRepositions=function(){this.selectedImageIndex=0;_.Lf(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.N1.Object.defineProperties(GW.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var W=this;return(this.images||[]).map(function(P,x){return{image:P,selected:x===W.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("ytd-backstage-image-preview-renderer"),_.l("design:type",Object)],GW.prototype,"JSC$13413_imagePreviewContainer",void 0);_.f([_.BM(".thumbnail-images-container"),_.l("design:type",HTMLElement)],GW.prototype,"thumbnailImagesContainer",void 0);_.f([_.c(),_.l("design:type",Array)],GW.prototype,"images",void 0);
_.f([_.c(),_.l("design:type",Object)],GW.prototype,"repositionInstructions",void 0);_.f([_.c(),_.l("design:type",Object)],GW.prototype,"selectedImageIndex",void 0);_.f([_.H("images","selectedImageIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],GW.prototype,"thumbnailRendererDatas",null);_.f([_.H("images","selectedImageIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],GW.prototype,"selectedImageData",null);
GW=_.f([_.U({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],GW);
_.X(GW,"ytd-backstage-multi-image-reposition-renderer",function(){if(y4i!==void 0)return y4i;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return y4i=W},{mode:1});var EJ=function(W,P){_.tW.call(this);this.uploadUrl=W;this.channelId=P;this.imagesUploadData=[]};
_.A(EJ,_.tW);EJ.prototype.getAllUploadStatuses=function(){var W=this,P,x,I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,KD3(W),2);P=O.yieldResult;x=P.get("succeed");I=P.get("failed");return O.return(x.concat(I))})};
var ogi=function(W){var P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,KD3(W),2);P=I.yieldResult;x=P.get("failed");x.length>0&&Zip(W,x);return I.return(W.getAllUploadStatuses())})},KD3=function(W){var P,x,I,O,B,Y,K;
return _.y(function(Z){if(Z.nextAddress==1)return P=new Map,_.S(Z,Promise.allSettled(W.imagesUploadData.map(function(d){return d.uploadPromise})),2);
x=Z.yieldResult;I=[];O=_.n(x);for(B=O.next();!B.done;B=O.next())Y=B.value,Y.status==="fulfilled"&&I.push(Y.value);K=W.imagesUploadData.map(function(d){return d.image}).filter(function(d){return I.every(function(v){return v.id!==d.id})});
P.set("succeed",I);P.set("failed",K);return Z.return(P)})},Zip=function(W,P){P=_.n(P);
for(var x=P.next();!x.done;x=P.next()){var I=W;x=x.value;SG3(I,x.id)>=0&&I.cancel(x.id);var O=new uZA(x),B=_.rM3(I.uploadUrl,{"X-YouTube-ChannelId":I.channelId},x.imageBlob);O.transfer=B;O.uploadPromise=dDA(B,x);I.imagesUploadData.push(O);B.run()}};
EJ.prototype.cancel=function(W){var P=SG3(this,W);P!==-1&&((P=this.imagesUploadData[P].transfer)&&P.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(x){return x.image.id!==W}))};
var SG3=function(W,P){return W.imagesUploadData.findIndex(function(x){return x.image.id===P})},dDA=function(W,P){return new Promise(function(x,I){W.listen("l",function(){var O=W.getResponseText();
O?(O=JSON.parse(O).encryptedBlobId,P.encryptedBlobId=O,x(P)):I("upload failed")});
W.listen("n",function(){I("upload failed")})})},uZA=function(W){this.image=W};var $q8=function(W,P,x,I,O){this.id=W;this.imageBlob=P;this.localImageSrc=x;this.naturalWidth=I;this.naturalHeight=O;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 sLA=[".jpeg",".jpg",".png"],gB=function(){var W=_.b.apply(this,arguments)||this;W.showImagesPreview=!1;W.pollOptions=[];W.errorMessage="";W.optionPlaceholderText="";W.optionDefaultText="";W.JSC$13424_imageId=0;W.maxFileSizeMb=0;W.maxAspectRatio=0;W.invalidFileSizeError="";W.invalidAspectRatioError="";W.invalidFileTypeError="";W.imageSelector=new o9(null,"single_file",sLA);return W};
_.A(gB,_.b);_.J=gB.prototype;_.J.ready=function(){_.uq(this.imageSelector,"j",this.onImageSelect,!1,this);_.uq(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.uq(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.J.dataChanged=function(){var W,P,x=_.Q((W=this.data)==null?void 0:(P=W.cellTemplate)==null?void 0:P.onEmptyCellTap,U_p);if(x&&x.uploadUrl&&x.channelId){var I;this.maxFileSizeMb=((I=x.imageValidationInfo)==null?void 0:I.maxFileSizeMb)||0;var O;this.maxAspectRatio=((O=x.imageValidationInfo)==null?void 0:O.allowedMaxAspectRatio)||0;var B;this.invalidFileSizeError=this.getSimpleString((B=this.data)==null?void 0:B.invalidFileSizeError);var Y;this.invalidAspectRatioError=this.getSimpleString((Y=this.data)==
null?void 0:Y.invalidAspectRatioError);var K;this.invalidFileTypeError=this.getSimpleString((K=this.data)==null?void 0:K.invalidFileTypeError);this.uploadManager=new EJ(x.uploadUrl,x.channelId)}};
_.J.onEditorInfoChange=function(){this.optionPlaceholderText=_.kz(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.kz(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.J.observeAddImageError=function(){this.errorMessage!==""&&_.Lf(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.J.onPollOptionsChange=function(){for(var W=!1,P=[],x=0;x<this.pollOptions.length;x++){var I=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(x+1);this.pollOptions[x].placeholderText!==I?(W=!0,P.push(Object.assign({},this.pollOptions[x],{placeholderText:I}))):P.push(this.pollOptions[x])}W&&(this.pollOptions=P);this.isValid()?_.Lf(this.hostElement,"yt-commentbox-post-enable"):_.Lf(this.hostElement,"yt-commentbox-post-disable")};
_.J.createPollOptions=function(W){var P=[],x;W=(x=W==null?void 0:W.minPollOptions)!=null?x:0;for(x=0;x<W;x++)P.push(this.createPollOption());return P};
_.J.onImageSelect=function(W){var P=this,x,I,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1){if(P.selectedImageIndex===void 0)return Z.jumpTo(0);x=W.files[0];P.errorMessage="";I=P.validateImage(x);if(I!=="")return P.errorMessage=I,Z.return();O=new fw(P.maxAspectRatio,!1,!0);return _.S(Z,O.transform(x),3)}if(Z.nextAddress!=4)return B=Z.yieldResult,B.transformedData?B.invalidAspectRatio?(P.errorMessage=P.invalidAspectRatioError,Z.return()):_.S(Z,w2W(P.JSC$13424_imageId,W.files[0],B.transformedData),
4):(P.errorMessage=P.invalidFileTypeError,Z.return());Y=Z.yieldResult;P.JSC$13424_imageId++;Zip(P.uploadManager,[Y]);K=Object.assign({},P.pollOptions[P.selectedImageIndex],{image:Y});P.pollOptions.splice(P.selectedImageIndex,1,K);P.refreshPollOptions();_.Lf(P.hostElement,"yt-backstage-poll-image-select");_.Kl(Z)})};
_.J.validateImage=function(W){return W.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.J.refreshPollOptions=function(){this.pollOptions=[].concat(_.ju(this.pollOptions))};
_.J.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.ju(this.pollOptions),[this.createPollOption()]))};
_.J.onRemovePollOption=function(W){var P=this.pollOptions[W.model.index];P&&P.image&&this.uploadManager.cancel(P.image.id);this.pollOptions.splice(W.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Lf(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.J.onTextInput=function(){this.refreshPollOptions()};
_.J.onImageButtonClick=function(W){this.selectedImageIndex=W.model.index;this.imageSelector.click()};
_.J.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.J.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.J.saveImageRepositions=function(W){W=W.event_.detail;for(var P=0,x=[],I=_.n(this.pollOptions),O=I.next();!O.done;O=I.next())O=O.value,O.image!==void 0?(O=Object.assign({},O,{image:W[P]}),x.push(O),P++):x.push(O);this.showImagesPreview=!1;this.pollOptions=[].concat(_.ju(x))};
_.J.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 W=0,P=_.n(this.pollOptions),x=P.next();!x.done;x=P.next())if(x=x.value,x.optionText.trim()!==""||x.image!==void 0){if(!x.image||this.hasCustomOptionText&&x.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;W++}return W>=Number(this.editorInfo.minPollOptions)};
_.J.getAllUploadStatuses=function(){var W=this,P,x,I,O;return _.y(function(B){if(B.nextAddress==1)return _.S(B,W.uploadManager.getAllUploadStatuses(),2);P=B.yieldResult;x=_.n(P);for(I=x.next();!I.done;I=x.next())if(O=I.value,O.encryptedBlobId===void 0)return B.return(ogi(W.uploadManager));return B.return(P)})};
_.J.getPostCreateOptions=function(){for(var W=[],P=_.n(this.pollOptions),x=P.next();!x.done;x=P.next())x=x.value,x.image!==void 0&&W.push({text:this.hasCustomOptionText?x.optionText:x.placeholderText,image:x.image});return W};
_.J.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.J.createButtonRenderer=function(W,P){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleString(W)}},isDisabled:P}};
_.J.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.J.computeThumbnailRendererData=function(W){return W?{image:W,selected:!1}:void 0};
_.J.getSimpleString=function(W){return _.kz(W)};
_.J.updateOptionTextFromBinding=function(W){if(W.target){var P=Array.from(_.g(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(W.target);if(P>=0){var x;this.pollOptions[P].optionText=(x=W.detail.value)!=null?x:""}}};
_.N1.Object.defineProperties(gB.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,P;return this.pollOptions.length<((P=(W=this.editorInfo)==null?void 0:W.maxPollOptions)!=null?P:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(W){return W.image}).map(function(W){return W.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var W,P=(W=this.data)==null?void 0:W.addOptionButtonText;return P?this.createButtonRenderer(P,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var W,P=(W=this.data)==null?void 0:W.repositionImagesButtonLabel;return P?this.createButtonRenderer(P,!this.hasImages):void 0}}});
gB.prototype.onPollOptionsChange=gB.prototype.onPollOptionsChange;gB.prototype.observeAddImageError=gB.prototype.observeAddImageError;gB.prototype.onEditorInfoChange=gB.prototype.onEditorInfoChange;gB.prototype.dataChanged=gB.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("ytd-backstage-multi-image-reposition-renderer"),_.l("design:type",Object)],gB.prototype,"imageRepositionContainer",void 0);
_.f([_.c(),_.l("design:type",Object)],gB.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],gB.prototype,"editorInfo",void 0);_.f([_.c(),_.l("design:type",EJ)],gB.prototype,"uploadManager",void 0);_.f([_.c(),_.l("design:type",Object)],gB.prototype,"showImagesPreview",void 0);_.f([_.c(),_.l("design:type",Array)],gB.prototype,"pollOptions",void 0);_.f([_.c(),_.l("design:type",Object)],gB.prototype,"errorMessage",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gB.prototype,"dataChanged",null);_.f([_.K_("editorInfo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gB.prototype,"onEditorInfoChange",null);_.f([_.OZ("errorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gB.prototype,"observeAddImageError",null);
_.f([_.K_("pollOptions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gB.prototype,"onPollOptionsChange",null);_.f([_.H("pollOptions","editorInfo"),_.l("design:type",Object),_.l("design:paramtypes",[])],gB.prototype,"isAllowedToAddOption",null);_.f([_.H("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],gB.prototype,"hasImages",null);
_.f([_.H("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],gB.prototype,"imagesToReposition",null);_.f([_.H("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],gB.prototype,"hasCustomOptionText",null);_.f([_.H("data","isAllowedToAddOption"),_.l("design:type",Object),_.l("design:paramtypes",[])],gB.prototype,"addOptionButton",null);_.f([_.H("data","hasImages"),_.l("design:type",Object),_.l("design:paramtypes",[])],gB.prototype,"repositionImagesButton",null);
gB=_.f([_.U({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],gB);
_.X(gB,"ytd-backstage-image-poll-editor-renderer",function(){if(YGi!==void 0)return YGi;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return YGi=W},{mode:2});var vgc={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 mDl;var DL=function(){var W=_.b.apply(this,arguments)||this;W.a11yConfig=vgc;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.showPreviewContainer=!0;W.startPicker=!1;W.repositionOptional=!1;W.editOnlyMode=!1;W.savedImageDisplayOffsetTop=0;W.savedImageDisplayOffsetLeft=0;return W};
_.A(DL,_.b);_.J=DL.prototype;_.J.created=function(){_.b7.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(W){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var P=0,x=0,I="";switch(W.detail.keyboardEvent.key){case "ArrowUp":h1C(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?I=this.a11yConfig.reachBottomOfImage:P=this.imageHeight*.05*-1;break;case "ArrowDown":h1C(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?I=this.a11yConfig.reachTopOfImage:
P=this.imageHeight*.05;break;case "ArrowLeft":h1C(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?I=this.a11yConfig.reachRightOfImage:x=this.imageWidth*.05*-1;break;case "ArrowRight":h1C(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?I=this.a11yConfig.reachLeftOfImage:x=this.imageWidth*.05}I&&_.KK(I)&&_.Lf(this.hostElement,"iron-announce",{text:_.KK(I)});if(x||P)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+P)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.KK(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+x)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.KK(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.Lf(this.hostElement,"iron-announce",{text:W})}};
_.J.getPreviewPosition=function(W,P,x,I){return Math.round(100*(W+P*.5-x)/I)};
_.J.calculateDisplayPosition=function(){var W=this.imageData.naturalWidth,P=this.imageData.naturalHeight;this.displayScale=Math.max(200/W,200/P);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var x=W*this.displayScale*this.imageData.previewCoordinates.left,I=P*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=P>W?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-x;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=W>P?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-I;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=W*this.displayScale;this.imageHeight=P*this.displayScale};
_.J.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.J.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.J.getSignedPosition=function(W,P,x){return P==="X"&&_.$$("HTML_DIR")==="rtl"?x==="-"?W+"px":W*-1+"px":x==="-"?W*-1+"px":W+"px"};
_.J.pickerMove=function(W){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var P=this.pickerOffsetX-W.clientX,x=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
x)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-P))}};
_.J.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var W=this.generateCropPreview();W&&_.Lf(this.hostElement,"ytd-backstage-image-preview-coordinates-update",W)};
_.J.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Lf(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.J.deleteImage=function(){_.Lf(this.hostElement,"ytd-backstage-image-preview-delete")};
_.J.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.J.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var W=this.generateCropPreview();W&&_.Lf(this.hostElement,"ytd-backstage-image-preview-coordinates-save",W)};
_.J.getPreviewOffset=function(W,P,x){return P&&W?(x==="X"&&_.$$("HTML_DIR")==="rtl"?300/P*W:300/P*W*-1)+"px":"0px"};
_.J.getSimpleText=function(W){return W?_.kz(W):""};
_.J.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}};
_.N1.Object.defineProperties(DL.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.KK(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.KK(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.KK(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.KK(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 W,P,x=(W=this.instruction)==null?void 0:(P=W.previewInstruction)==null?void 0:P.editButtonLabel;return x?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I,O=this.editOnlyMode?(W=this.instruction)==null?void 0:(P=W.editInstruction)==null?void 0:P.saveImagesButtonLabel:(x=this.instruction)==null?void 0:(I=x.editInstruction)==null?void 0:I.saveButtonLabel;return O?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.instruction)==null?void 0:(P=W.previewInstruction)==null?void 0:P.deleteButtonLabel;return x?{size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.instruction)==null?void 0:(P=W.editInstruction)==null?void 0:P.cancelButtonLabel;W=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return x?{style:W,size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
DL.prototype.onEditOnlyModeUpdate=DL.prototype.onEditOnlyModeUpdate;DL.prototype.onImageChange=DL.prototype.onImageChange;_.f([_.c(),_.l("design:type",$q8)],DL.prototype,"imageData",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"instruction",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"a11yConfig",void 0);_.f([_.c(),_.l("design:type",Number)],DL.prototype,"imageWidth",void 0);_.f([_.c(),_.l("design:type",Number)],DL.prototype,"imageHeight",void 0);
_.f([_.c(),_.l("design:type",Number)],DL.prototype,"displayScale",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"imageDisplayOffsetTop",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"imageDisplayOffsetLeft",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"pickerDisplayOffsetTop",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"pickerDisplayOffsetLeft",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"showPreviewContainer",void 0);
_.f([_.c(),_.l("design:type",Object)],DL.prototype,"startPicker",void 0);_.f([_.c(),_.l("design:type",Number)],DL.prototype,"pickerOffsetX",void 0);_.f([_.c(),_.l("design:type",Number)],DL.prototype,"pickerOffsetY",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"repositionOptional",void 0);_.f([_.c(),_.l("design:type",Object)],DL.prototype,"editOnlyMode",void 0);_.f([_.BM("#picker-container"),_.l("design:type",HTMLElement)],DL.prototype,"JSC$13437_pickerContainer",void 0);
_.f([_.BM("#picker"),_.l("design:type",HTMLElement)],DL.prototype,"picker",void 0);_.f([_.BM("#preview-clipper"),_.l("design:type",HTMLElement)],DL.prototype,"previewClipper",void 0);_.f([_.BM("#image-in-picker-background"),_.l("design:type",HTMLImageElement)],DL.prototype,"JSC$13437_imageInBackground",void 0);_.f([_.BM("#image-in-picker"),_.l("design:type",HTMLImageElement)],DL.prototype,"JSC$13437_imageInPicker",void 0);
_.f([_.BM("#image-in-preview-clipper"),_.l("design:type",HTMLImageElement)],DL.prototype,"JSC$13437_imageInPreviewClipper",void 0);_.f([_.H("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],DL.prototype,"altLabelForImage",null);_.f([_.H("imageHeight","imageWidth"),_.l("design:type",Number),_.l("design:paramtypes",[])],DL.prototype,"pickerSize",null);
_.f([_.H("imageHeight","imageWidth"),_.l("design:type",Object),_.l("design:paramtypes",[])],DL.prototype,"imageOrientationStyle",null);_.f([_.H("instruction"),_.l("design:type",Object),_.l("design:paramtypes",[])],DL.prototype,"editButton",null);_.f([_.H("instruction","editOnlyMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],DL.prototype,"saveButton",null);_.f([_.H("instruction"),_.l("design:type",Object),_.l("design:paramtypes",[])],DL.prototype,"deleteButton",null);
_.f([_.H("instruction","editOnlyMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],DL.prototype,"cancelButton",null);_.f([_.H("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.l("design:type",Number),_.l("design:paramtypes",[])],DL.prototype,"cropOffsetTop",null);_.f([_.H("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.l("design:type",Number),_.l("design:paramtypes",[])],DL.prototype,"cropOffsetLeft",null);
_.f([_.H("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],DL.prototype,"pickerBackgroundStyle",null);_.f([_.H("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],DL.prototype,"pickerDisplayStyle",null);_.f([_.H("cropOffsetLeft","cropOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],DL.prototype,"imageInPickerStyle",null);
_.f([_.H("cropOffsetLeft","cropOffsetTop","pickerSize"),_.l("design:type",String),_.l("design:paramtypes",[])],DL.prototype,"previewClipperStyle",null);_.f([_.K_("imageData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DL.prototype,"onImageChange",null);_.f([_.K_("editOnlyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DL.prototype,"onEditOnlyModeUpdate",null);
_.f([_.H("showPreviewContainer"),_.l("design:type",String),_.l("design:paramtypes",[])],DL.prototype,"pickerModeStyle",null);DL=_.f([_.U({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],DL);
_.X(DL,"ytd-backstage-image-preview-renderer",function(){if(mDl!==void 0)return mDl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return mDl=W},{mode:1});var ViA;var tiP={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 pCA;var jLZ;var Mv=function(){var W=_.b.apply(this,arguments)||this;W.a11yConfig=tiP;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.cropCoordinatesSaved=!1;W.previewSize=0;W.startPicker=!1;W.repositionOptional=!1;return W};
_.A(Mv,_.b);_.J=Mv.prototype;_.J.created=function(){_.b7.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(W){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var P=0,x=0,I="";switch(W.detail.keyboardEvent.key){case "ArrowUp":HHR(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?I=this.a11yConfig.reachBottomOfImage:P=this.imageHeight*.05*-1;break;case "ArrowDown":HHR(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?I=this.a11yConfig.reachTopOfImage:
P=this.imageHeight*.05;break;case "ArrowLeft":HHR(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?I=this.a11yConfig.reachRightOfImage:x=this.imageWidth*.05*-1;break;case "ArrowRight":HHR(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?I=this.a11yConfig.reachLeftOfImage:x=this.imageWidth*.05}I&&_.KK(I)&&_.Lf(this.hostElement,"iron-announce",{text:_.KK(I)});if(x||P)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+P)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.KK(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+x)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.KK(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.Lf(this.hostElement,"iron-announce",{text:W})}};
_.J.getPreviewPosition=function(W,P,x,I){return Math.round(100*(W+P*.5-x)/I)};
_.J.displayImage=function(){var W=this.JSC$13448_pickerContainer.getBoundingClientRect().width,P=this.JSC$13448_pickerContainer.getBoundingClientRect().height,x=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),I=this.JSC$13448_imageInBackground.naturalWidth,O=this.JSC$13448_imageInBackground.naturalHeight;this.displayScale=Math.max(x/I,x/O);this.imageWidth=I*this.displayScale;this.imageHeight=O*this.displayScale;this.pickerDisplayOffsetLeft=(W-x)/2;this.pickerDisplayOffsetTop=
(P-x)/2;this.imageDisplayOffsetLeft=O>I?this.pickerDisplayOffsetLeft:(W-this.imageWidth)/2;this.imageDisplayOffsetTop=I>O?this.pickerDisplayOffsetTop:(P-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.J.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13448_imageInBackground.src=this.imageData.toString(),this.JSC$13448_imageInPicker.src=this.imageData.toString(),this.JSC$13448_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.J.getSignedPosition=function(W,P,x){return P==="X"&&_.$$("HTML_DIR")==="rtl"?x==="-"?W+"px":W*-1+"px":x==="-"?W*-1+"px":W+"px"};
_.J.pickerMove=function(W){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var P=this.pickerOffsetX-W.clientX,x=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
x)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-P))}};
_.J.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.J.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Lf(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.J.getPreviewOffset=function(W,P,x,I){return P&&W&&x?(I==="X"&&_.$$("HTML_DIR")==="rtl"?x/P*W:x/P*W*-1)+"px":"0px"};
_.J.getSimpleText=function(W){return W?_.kz(W):""};
_.J.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var W=this.cropOffsetTop/this.imageHeight,P=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,x=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,I=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.g(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Lf(this.hostElement,"yt-img-crop-coordinates-update",{top:W,right:P,bottom:x,left:I})}};
_.N1.Object.defineProperties(Mv.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.KK(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.KK(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.KK(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.KK(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 W,P=(W=this.learnMore.runs[0])==null?void 0:W.navigationEndpoint,x;return((x=_.Q(P,_.aR))==null?void 0:x.url)||void 0}}}});
Mv.prototype.onImageDataChange=Mv.prototype.onImageDataChange;_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"imageData",void 0);_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"instruction",void 0);_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"a11yConfig",void 0);_.f([_.c(),_.l("design:type",Number)],Mv.prototype,"imageWidth",void 0);_.f([_.c(),_.l("design:type",Number)],Mv.prototype,"imageHeight",void 0);_.f([_.c(),_.l("design:type",Number)],Mv.prototype,"displayScale",void 0);
_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"imageDisplayOffsetTop",void 0);_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"imageDisplayOffsetLeft",void 0);_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"pickerDisplayOffsetTop",void 0);_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"pickerDisplayOffsetLeft",void 0);_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"cropCoordinatesSaved",void 0);_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"previewSize",void 0);
_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"startPicker",void 0);_.f([_.c(),_.l("design:type",Number)],Mv.prototype,"pickerOffsetX",void 0);_.f([_.c(),_.l("design:type",Number)],Mv.prototype,"pickerOffsetY",void 0);_.f([_.c(),_.l("design:type",Object)],Mv.prototype,"repositionOptional",void 0);_.f([_.BM("#picker-container"),_.l("design:type",HTMLElement)],Mv.prototype,"JSC$13448_pickerContainer",void 0);_.f([_.BM("#picker"),_.l("design:type",HTMLElement)],Mv.prototype,"picker",void 0);
_.f([_.BM("#image-in-picker-background"),_.l("design:type",HTMLImageElement)],Mv.prototype,"JSC$13448_imageInBackground",void 0);_.f([_.BM("#image-in-picker"),_.l("design:type",HTMLImageElement)],Mv.prototype,"JSC$13448_imageInPicker",void 0);_.f([_.BM("#image-in-preview-clipper"),_.l("design:type",HTMLImageElement)],Mv.prototype,"JSC$13448_imageInPreviewClipper",void 0);_.f([_.BM("#full-image-as-preview"),_.l("design:type",HTMLImageElement)],Mv.prototype,"imageAsPreview",void 0);
_.f([_.H("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],Mv.prototype,"altLabelForImage",null);_.f([_.H("imageHeight","imageWidth"),_.l("design:type",Number),_.l("design:paramtypes",[])],Mv.prototype,"pickerSize",null);_.f([_.H("imageHeight","imageWidth"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mv.prototype,"imageOrientationStyle",null);
_.f([_.H("instruction.previewInstruction.editButtonLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mv.prototype,"editButton",null);_.f([_.H("instruction.editInstruction.saveButtonLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mv.prototype,"saveButton",null);_.f([_.H("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.l("design:type",Number),_.l("design:paramtypes",[])],Mv.prototype,"cropOffsetTop",null);
_.f([_.H("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.l("design:type",Number),_.l("design:paramtypes",[])],Mv.prototype,"cropOffsetLeft",null);_.f([_.H("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],Mv.prototype,"pickerBackgroundStyle",null);_.f([_.H("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],Mv.prototype,"pickerDisplayStyle",null);
_.f([_.H("cropOffsetLeft","cropOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],Mv.prototype,"imageInPickerStyle",null);_.f([_.H("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.l("design:type",String),_.l("design:paramtypes",[])],Mv.prototype,"previewClipperStyle",null);_.f([_.OZ("imageData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mv.prototype,"onImageDataChange",null);
_.f([_.H("cropCoordinatesSaved"),_.l("design:type",String),_.l("design:paramtypes",[])],Mv.prototype,"pickerModeStyle",null);_.f([_.H("instruction.editInstruction.learnMore"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mv.prototype,"learnMore",null);_.f([_.H("learnMore"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mv.prototype,"learnMoreUrl",null);Mv=_.f([_.jd({is:"yt-img-crop-picker",disableElementRegistration:!0})],Mv);
_.X(Mv,"yt-img-crop-picker",function(){if(jLZ===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;pCA===void 0&&(pCA=document.createElement("template"));var I=pCA;x.call(P,I.content.cloneNode(!0),W.content.firstChild);jLZ=W}W=jLZ;return W},{mode:2});var $n=function(){var W=_.b.apply(this,arguments)||this;W.errorMessage="";W.hasPreview=!1;W.isBackstagePost=!1;W.dismissButtonOverrides={size:"XS"};return W};
_.A($n,_.b);_.J=$n.prototype;_.J.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"}}}};
_.J.detached=function(){this.removeOverlay()};
_.J.setPreview=function(W){_.g(this.hostElement).querySelector("#preview-picker").imageData=W;this.hasPreview=!0;_.Lf(this.hostElement,"yt-backstage-image-select-preview")};
_.J.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var W=_.g(this.hostElement).querySelector("#dropzone");W.classList.remove("dragover");W.classList.remove("error");_.Lf(this.hostElement,"yt-backstage-image-select-cancel")};
_.J.setupOverlay=function(){var W=this.imageUploadEndpoint;this.removeOverlay();if(W&&W.imageValidationInfo){var P=_.g(this.hostElement).querySelector("#dropzone"),x=_.g(this.hostElement).querySelector("#select");this.overlay=new lG(W.uploadUrl,W.channelId,W.imageValidationInfo.maxFileSizeMb,W.imageValidationInfo.allowedMaxAspectRatio,P,x,!0);_.uq(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.uq(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.uq(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.uq(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.uq(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.J.removeOverlay=function(){this.overlay&&(_.Vq(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Vq(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Vq(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Vq(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Vq(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.J.onDragOver=function(W){var P=_.g(this.hostElement).querySelector("#dropzone");_.iS(P,"dragover",W.value)};
_.J.onPreview=function(W){this.setPreview(W.value)};
_.J.onImageError=function(W){if(W.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var P;W=(P=this.data)==null?void 0:P.fileSizeError}else if(W.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var x;W=(x=this.data)==null?void 0:x.invalidError}else if(W.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var I;W=(I=this.data)==null?void 0:I.invalidAspectRatioError}else return;this.errorMessage=_.kz(W);_.g(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.J.onImageAlert=function(W){this.onImageError(W)};
_.J.uploadPromise=function(){var W=this,P=this.overlay&&this.overlay.uploadPromise();if(P)return P.catch(function(){throw Error(W.data?_.kz(W.data.uploadFailureError):"");})};
_.N1.Object.defineProperties($n.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var W,P;if((W=this.data)==null?0:(P=W.icon)==null?0:P.iconType)return _.PW(this.data.icon.iconType)}}});
$n.prototype.setupOverlay=$n.prototype.setupOverlay;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],$n.prototype,"rendererStamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$n.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],$n.prototype,"imageUploadEndpoint",void 0);_.f([_.c(),_.l("design:type",Object)],$n.prototype,"errorMessage",void 0);
_.f([_.c(),_.l("design:type",lG)],$n.prototype,"overlay",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$n.prototype,"hasPreview",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$n.prototype,"isBackstagePost",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],$n.prototype,"selectionCancel",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],$n.prototype,"previewCancel",null);
_.f([_.H("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],$n.prototype,"icon",null);_.f([_.c(),_.l("design:type",Object)],$n.prototype,"dismissButtonOverrides",void 0);_.f([_.OZ("imageUploadEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$n.prototype,"setupOverlay",null);$n=_.f([_.U({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],$n);
_.X($n,"ytd-backstage-image-select-renderer",function(){if(ViA!==void 0)return ViA;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return ViA=W},{mode:1});var QLw;var Cl3;var wB=function(){var W=_.b.apply(this,arguments)||this;W.selected=!1;return W};
_.A(wB,_.b);_.J=wB.prototype;_.J.computeSelected=function(W){return W==null?void 0:W.selected};
_.J.computeTransform=function(W,P,x){var I,O,B=(O=(I=this.imageContainer)==null?void 0:I.getBoundingClientRect())!=null?O:{width:0,height:0};I=Math.max(B.width/P,B.height/x);x=x*I*W.top;return"translateX("+this.getSignedPosition(P*I*W.left,"X","-")+") translateY("+this.getSignedPosition(x,"Y","-")+")"};
_.J.getSignedPosition=function(W,P,x){return P==="X"&&_.$$("HTML_DIR")==="rtl"?x==="-"?W+"px":W*-1+"px":x==="-"?W*-1+"px":W+"px"};
_.J.onClick=function(){var W;_.Lf(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(W=this.data)==null?void 0:W.image)};
_.J.onKeyPress=function(W){if(W.keyCode===13)this.onClick()};
_.N1.Object.defineProperties(wB.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:(P=W.image)==null?void 0:P.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.image){var P;W=(P=this.data)==null?void 0:P.image;return W.previewCoordinates.top!==0||W.previewCoordinates.left!==0?(P=this.computeTransform(W.previewCoordinates,W.naturalWidth,W.naturalHeight),W.naturalHeight>=W.naturalWidth?"width:inherit;transform:"+P+";":"height:inherit;transform:"+P+";"):W.naturalHeight>=W.naturalWidth?"width:inherit;":"height:inherit;"}}}});
wB.prototype.onKeyPress=wB.prototype.onKeyPress;_.f([_.BM(".image-container"),_.l("design:type",HTMLElement)],wB.prototype,"imageContainer",void 0);_.f([_.c(),_.l("design:type",Object)],wB.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.l("design:type",Object)],wB.prototype,"selected",void 0);_.f([_.H("data.image"),_.l("design:type",Object),_.l("design:paramtypes",[])],wB.prototype,"thumbnailUrl",null);
_.f([_.H("data.image","data.image.previewCoordinates"),_.l("design:type",Object),_.l("design:paramtypes",[])],wB.prototype,"thumbnailStyle",null);_.f([_.I7("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],wB.prototype,"onKeyPress",null);wB=_.f([_.U({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],wB);
_.X(wB,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Cl3!==void 0)return Cl3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Cl3=W},{mode:2});var h7=function(W,P,x){x=x===void 0?!1:x;_.tW.call(this);var I=this;this.dropZoneOverlay=new Zy(W);this.selectOverlay=x?new o9(P,"multiple_file",["image/*"]):new o9(P,"single_file",["image/*"]);this.handler=new _.q1(this);_.nU(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(P,"click",function(){I.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.A(h7,_.tW);h7.prototype.onChange=function(W){var P;(P=W.files)!=null&&P.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:W.files}))};var Ha=function(){var W=_.b.apply(this,arguments)||this;W.addImageErrorMessage="";W.errorMessage="";W.images=[];W.selectedImageIndex=0;W.modern=_.p("web_modern_buttons");W.maxNumImagesPerPost=_.Wi("max_num_images_per_post_web_ui");W.JSC$13463_imageId=0;return W};
_.A(Ha,_.b);_.J=Ha.prototype;_.J.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Lf(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.J.observeDragToReorder=function(){var W=this;if(this.showImagesPreview){var P,x=U0m(_.qG.getInstance(),(P=this.data)==null?void 0:P.dragToReorderTooltip);_.Gr.addLowPriorityJob(function(){_.OL(W.hostElement,x,W.thumbnailDragDropArea)})}};
_.J.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}}};
_.J.computeThumbnail=function(W){return(W==null?void 0:W.localImageSrc)||void 0};
_.J.onRendererstamperFinished=function(){_.uXA(this.ytReorderableBehavior,_.g(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.g(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.J.handleDrop=function(W){var P=W.currDragItem;if(P!=null&&P.data){W=this.images[this.selectedImageIndex];var x=P.data.image,I=this.images.indexOf(x)||0;P=_.fm(P.parentNode.children,P);this.images.splice(I,1);this.images.splice(P,0,x);this.images=[].concat(_.ju(this.images));this.selectedImageIndex=this.images.indexOf(W)}};
_.J.setUpImagePicker=function(){var W=this.imageUploadEndpoint;W&&W.imageValidationInfo&&(this.uploadManager=new EJ(W.uploadUrl,W.channelId),this.initialPicker||(this.initialPicker=new h7(this.dropzone,this.selectLink,!0),_.uq(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new h7(this.addImageButtonContainer,this.addImageSelectButton),_.uq(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.uq(this.JSC$13463_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.uq(this.JSC$13463_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.uq(_.g(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.J.detached=function(){this.initialPicker&&(_.Vq(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Vq(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.J.onInitialSelectImages=function(W){var P=this;return _.y(function(x){return _.S(x,P.onSelectImages(W,!1),0)})};
_.J.onAddImage=function(W){var P=this;return _.y(function(x){return _.S(x,P.onSelectImages(W,!0),0)})};
_.J.onSelectImages=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F;return _.y(function(nm){switch(nm.nextAddress){case 1:P?x.addImageErrorMessage="":(x.images=[],x.errorMessage="");I=W.detail;O=x.validateImages([].concat(_.ju(I)));if(O!=="")return P?x.addImageErrorMessage=O:x.errorMessage=O,nm.return();B=[].concat(_.ju(I)).map(function(pm){return(new fw(x.maxAspectRatio,!1,!0)).transform(pm)});
return _.S(nm,Promise.allSettled(B),2);case 2:Y=nm.yieldResult,K=_.n(Y.entries()),Z=K.next();case 3:if(Z.done){nm.jumpTo(5);break}d=Z.value;v=_.n(d);m=v.next().value;t=v.next().value;C=m;z=t;if(z.status!=="fulfilled"){a=w=D=void 0;P?x.addImageErrorMessage=_.kz((D=x.data)==null?void 0:D.invalidError):x.errorMessage=x.errorMessage===""?_.kz((w=x.data)==null?void 0:w.invalidError):_.kz((a=x.data)==null?void 0:a.multiFileError);nm.jumpTo(4);break}k=z.value;k.cropped&&_.Lf(x.hostElement,"yt-backstage-multi-image-cropped");
if(k.invalidAspectRatio){Io=N=T=void 0;P?x.addImageErrorMessage=_.kz((T=x.data)==null?void 0:T.invalidAspectRatioError):x.errorMessage=x.errorMessage===""?_.kz((N=x.data)==null?void 0:N.invalidAspectRatioError):_.kz((Io=x.data)==null?void 0:Io.multiFileError);nm.jumpTo(4);break}return _.S(nm,w2W(x.JSC$13463_imageId,W.detail[C],k.transformedData),8);case 8:F=nm.yieldResult,x.images.push(F),x.JSC$13463_imageId++;case 4:Z=K.next();nm.jumpTo(3);break;case 5:if(x.errorMessage!==""||x.addImageErrorMessage!==
"")return nm.return();P?Zip(x.uploadManager,[x.images[x.images.length-1]]):Zip(x.uploadManager,x.images);x.images=[].concat(_.ju(x.images));x.selectedImageIndex=P?Math.max(x.images.length-1,0):0;_.Lf(x.hostElement,"yt-backstage-multi-image-select");_.Kl(nm)}})};
_.J.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.J.validateImages=function(W){if(W.length>this.maxNumImagesPerPost){var P;return _.kz((P=this.data)==null?void 0:P.multiImageExceedMaxImageCountError)}var x=1048576*this.maxFileSizeMb;W=W.filter(function(B){return B.size>x}).length;
if(W===0)return"";var I,O;W=W>1?(I=this.data)==null?void 0:I.multiFileError:(O=this.data)==null?void 0:O.fileSizeError;return _.kz(W)};
_.J.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.ju(this.images));this.selectedImageIndex=0};
_.J.repositionImage=function(W){this.images[this.selectedImageIndex].previewCoordinates=W.event_.detail;this.images=[].concat(_.ju(this.images))};
_.J.getAllUploadStatuses=function(){var W=this,P,x,I,O;return _.y(function(B){if(B.nextAddress==1)return _.S(B,W.uploadManager.getAllUploadStatuses(),2);P=B.yieldResult;x=_.n(P);for(I=x.next();!I.done;I=x.next())if(O=I.value,O.encryptedBlobId===void 0)return B.return(ogi(W.uploadManager));return B.return(P)})};
_.J.hasImages=function(){return this.images.length>0};
_.J.cancel=function(){for(var W=this.uploadManager,P=_.n(W.imagesUploadData),x=P.next();!x.done;x=P.next())W.cancel(x.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Lf(this.hostElement,"yt-backstage-multi-image-cancel")};
_.N1.Object.defineProperties(Ha.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.imageUploadEndpoint)==null?void 0:(P=W.imageValidationInfo)==null?void 0:P.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.imageUploadEndpoint)==null?void 0:(P=W.imageValidationInfo)==null?void 0:P.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var W,P;if((W=this.data)==null?0:(P=W.icon)==null?0:P.iconType)return _.PW(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.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 W=this;return(this.images||[]).map(function(P,x){return{renderer:{image:P,selected:x===W.selectedImageIndex}}})}}});
Ha.prototype.setUpImagePicker=Ha.prototype.setUpImagePicker;Ha.prototype.onRendererstamperFinished=Ha.prototype.onRendererstamperFinished;Ha.prototype.observeDragToReorder=Ha.prototype.observeDragToReorder;Ha.prototype.observeAddImageError=Ha.prototype.observeAddImageError;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ha.prototype,"rendererStamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.d8w),_.l("design:type",Object)],Ha.prototype,"ytReorderableBehavior",void 0);_.f([_.BM("#dropzone"),_.l("design:type",HTMLElement)],Ha.prototype,"dropzone",void 0);_.f([_.BM("#select-link"),_.l("design:type",HTMLElement)],Ha.prototype,"selectLink",void 0);_.f([_.BM("#thumbnail-drag-drop-area"),_.l("design:type",HTMLElement)],Ha.prototype,"thumbnailDragDropArea",void 0);_.f([_.BM("#add-image-button-container"),_.l("design:type",HTMLElement)],Ha.prototype,"addImageButtonContainer",void 0);
_.f([_.BM("#add-image-button"),_.l("design:type",HTMLElement)],Ha.prototype,"addImageSelectButton",void 0);_.f([_.BM("#image-preview-container"),_.l("design:type",Object)],Ha.prototype,"JSC$13463_imagePreviewContainer",void 0);_.f([_.c(),_.l("design:type",Object)],Ha.prototype,"addImageErrorMessage",void 0);_.f([_.c(),_.l("design:type",Object)],Ha.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Ha.prototype,"errorMessage",void 0);
_.f([_.c(),_.l("design:type",Object)],Ha.prototype,"imageUploadEndpoint",void 0);_.f([_.c(),_.l("design:type",Array)],Ha.prototype,"images",void 0);_.f([_.c(),_.l("design:type",h7)],Ha.prototype,"initialPicker",void 0);_.f([_.c(),_.l("design:type",h7)],Ha.prototype,"addImagePicker",void 0);_.f([_.c(),_.l("design:type",EJ)],Ha.prototype,"uploadManager",void 0);_.f([_.c(),_.l("design:type",Object)],Ha.prototype,"selectedImageIndex",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ha.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ha.prototype,"maxNumImagesPerPost",void 0);_.f([_.H("imageUploadEndpoint"),_.l("design:type",Number),_.l("design:paramtypes",[])],Ha.prototype,"maxAspectRatio",null);_.f([_.H("imageUploadEndpoint"),_.l("design:type",Number),_.l("design:paramtypes",[])],Ha.prototype,"maxFileSizeMb",null);
_.f([_.H("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ha.prototype,"dropIcon",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ha.prototype,"selectionCancel",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ha.prototype,"previewCancel",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ha.prototype,"dataForAddImageButton",null);
_.f([_.H("errorMessage"),_.l("design:type",String),_.l("design:paramtypes",[])],Ha.prototype,"dropzoneClass",null);_.f([_.H("images"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ha.prototype,"showImagesPreview",null);_.f([_.H("images"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ha.prototype,"containMaxImages",null);_.f([_.OZ("addImageErrorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ha.prototype,"observeAddImageError",null);
_.f([_.OZ("showImagesPreview"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ha.prototype,"observeDragToReorder",null);_.f([_.H("images","selectedImageIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ha.prototype,"selectedImageData",null);_.f([_.H("images","selectedImageIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],Ha.prototype,"thumbnailRenderers",null);
_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ha.prototype,"onRendererstamperFinished",null);_.f([_.OZ("imageUploadEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ha.prototype,"setUpImagePicker",null);Ha=_.f([_.U({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Ha);
_.X(Ha,"ytd-backstage-multi-image-select-renderer",function(){if(QLw!==void 0)return QLw;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return QLw=W},{mode:1});var A4p;var zbk;var GGp;var eX=function(){var W=_.b.apply(this,arguments)||this;W.boundCaptureFocus=function(P){W.onCaptureFocus(P)};
return W};
_.A(eX,_.b);_.J=eX.prototype;_.J.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.J.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.J.onCaptureFocus=function(W){_.c5(W).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.J.getIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.J.onSelect=function(){var W;if((W=this.data)==null?0:W.onSelectCommand)if(_.p("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var P;((P=_.Q(this.data.onSelectCommand.commandMetadata,_.rU))==null?0:P.url)?_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.FY().resolve(_.qR).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.N1.Object.defineProperties(eX.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.kz(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}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],eX.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eX.prototype,"data",void 0);_.f([_.BM("#item"),_.l("design:type",HTMLElement)],eX.prototype,"item",void 0);_.f([_.H("data.label"),_.l("design:type",String),_.l("design:paramtypes",[])],eX.prototype,"label",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],eX.prototype,"value",null);eX=_.f([_.U({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],eX);
_.X(eX,"ytd-privacy-dropdown-item-renderer",function(){if(GGp!==void 0)return GGp;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return GGp=W},{mode:1});var Xv=function(){var W=_.b.apply(this,arguments)||this;W.value="";W.label="";W.disabled=!1;return W};
_.A(Xv,_.b);_.J=Xv.prototype;_.J.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"}}}};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.J.dataChanged=function(){this.reset()};
_.J.valueChanged=function(){var W;if(this.value&&(W=this.data)!=null&&W.entries){W=_.n(this.data.entries);for(var P=W.next();!P.done;P=W.next())if((P=this.getRendererForEntry(P.value))&&this.getItemRendererValue(P)===this.value){this.label=this.ytComponentBehavior.getSimpleString(P.label);break}}};
_.J.setInitialLabel=function(){if(this.data&&this.data.entries)for(var W=_.n(this.data.entries),P=W.next();!P.done;P=W.next())if(P=this.getRendererForEntry(P.value)){if(P.isSelected){this.label=this.ytComponentBehavior.getSimpleString(P.label);break}this.data.label&&(this.label=this.data.label)}};
_.J.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var W=_.n(this.data.entries),P=W.next();!P.done;P=W.next()){P=this.getRendererForEntry(P.value);var x=void 0;if((x=P)==null?0:x.isSelected)return this.getItemRendererValue(P)||-1}return-1};
_.J.getItemRendererValue=function(W){return"stringValue"in W||"int32Value"in W?W.stringValue||W.int32Value||null:null};
_.J.getRendererForEntry=function(W){return W.dropdownItemRenderer||W.privacyDropdownItemRenderer||W.navigationDropdownItemRenderer||null};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("value-changed",this.value))};
_.J.updateValueFromBinding=function(W){this.value=W.detail.value};
Xv.prototype.valueChangedForBinding=Xv.prototype.valueChangedForBinding;Xv.prototype.valueChanged=Xv.prototype.valueChanged;Xv.prototype.dataChanged=Xv.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Xv.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Xv.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Xv.prototype,"value",void 0);_.f([_.c(),_.l("design:type",Object)],Xv.prototype,"label",void 0);_.f([_.BM("#entries"),_.l("design:type",Object)],Xv.prototype,"entries",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Xv.prototype,"disabled",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xv.prototype,"dataChanged",null);
_.f([_.K_("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xv.prototype,"valueChanged",null);_.f([_.OZ("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xv.prototype,"valueChangedForBinding",null);Xv=_.f([_.U({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Xv);
_.X(Xv,"ytd-flat-dropdown-renderer",function(){if(zbk!==void 0)return zbk;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zbk=W},{mode:1});var EgA;var fs=function(){var W=_.b.apply(this,arguments)||this;W.quizOptions=[];W.explanationPlaceholderText="";W.optionPlaceholderText="";W.correctAnswerIndex=-1;W.isMarkAnswerTooltipShown=!1;W.timer=0;return W};
_.A(fs,_.b);_.J=fs.prototype;_.J.dataChanged=function(){this.optionPlaceholderText=_.kz(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.kz(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.J.onMarkCorrectAnswer=function(W){var P,x=((P=this.quizOptions[this.correctAnswerIndex])==null?void 0:P.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[W.model.index]=Object.assign({},this.quizOptions[W.model.index],{explanationText:x,isCorrect:!0});this.correctAnswerIndex=W.model.index;this.quizOptions=[].concat(_.ju(this.quizOptions))};
_.J.updatePlaceholderTexts=function(){for(var W=!1,P=[],x=0;x<this.quizOptions.length;x++){var I=this.optionPlaceholderText+" "+(x+1),O=void 0;((O=this.quizOptions[x])==null?void 0:O.placeholderText)!==I?(W=!0,P.push(Object.assign({},this.quizOptions[x],{placeholderText:I}))):P.push(this.quizOptions[x])}W&&(this.quizOptions=P);this.isValid()?_.Lf(this.hostElement,"yt-commentbox-post-enable"):_.Lf(this.hostElement,"yt-commentbox-post-disable")};
_.J.getSimpleString=function(W){return _.kz(W)};
_.J.createQuizOptions=function(W){var P=[],x;W=(x=W==null?void 0:W.minQuizOptions)!=null?x:0;for(x=0;x<W;x++)P.push(this.createQuizOption());return P};
_.J.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.ju(this.quizOptions),[this.createQuizOption()]))};
_.J.onInput=function(){this.quizOptions=[].concat(_.ju(this.quizOptions))};
_.J.onExplanationInput=function(){_.Lf(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.J.onRemoveQuizOption=function(W){this.quizOptions.splice(W.model.index,1);W.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:W.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.ju(this.quizOptions));this.quizOptions.length===0&&_.Lf(this.hostElement,"yt-quiz-attachment-dismiss")};
_.J.updateHintRenderer=function(){var W=this;clearTimeout(this.timer);this.timer=setTimeout(function(){W.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.J.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var W=0,P=0,x=_.n(this.quizOptions),I=x.next();!I.done;I=x.next()){I=I.value;var O=void 0;if(((O=I.optionText)==null?void 0:O.trim())!==""||I.isCorrect){I.isCorrect&&P++;O=void 0;if(this.hasCustomOptionText&&((O=I.optionText)==null?void 0:O.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;W++}}return W>=
Number(this.editorInfo.minQuizOptions)&&P===1};
_.J.getPostCreateOptions=function(){for(var W=[],P=_.n(this.quizOptions),x=P.next();!x.done;x=P.next()){x=x.value;var I=void 0;((I=x.optionText)==null?void 0:I.trim())!==""&&W.push({pollOption:{text:x.optionText,explanation:x.explanationText},isCorrect:x.isCorrect})}return W};
_.J.getExplanationText=function(){var W;return((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||""};
_.J.maybeDisplayMarkAnswerEduToolTip=function(){var W,P,x,I,O,B,Y;this.shouldShowMarkAnswerTooltip()&&((W=this.editorInfo)==null?0:(P=W.markAnswerButton)==null?0:(x=P.buttonRenderer)==null?0:(I=x.hint)==null?0:(O=I.hintRenderer)==null?0:(B=O.content)==null?0:(Y=B.bubbleHintRenderer)==null?0:Y.text)&&(_.qG.getInstance(),W=Lg(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,(W==null?void 0:W.length)>0&&this.optionSelectors&&_.O2(W[0],this.optionSelectors[0]))};
_.J.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var W=0,P=_.n(this.quizOptions),x=P.next();!x.done;x=P.next()){x=x.value;var I=void 0;((I=x.optionText)==null?void 0:I.trim())!==""&&W++;if(x.isCorrect)return!1}return W<2?!1:!0};
_.J.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.J.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.J.updateOptionTextFromBinding=function(W){if(W.target){var P=Array.from(_.g(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(W.target);if(P>=0){var x;this.quizOptions[P].optionText=(x=W.detail.value)!=null?x:""}}};
_.N1.Object.defineProperties(fs.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.editorInfo)==null?void 0:(P=W.addOptionButton)==null?void 0:P.buttonRenderer;x&&(x.style="STYLE_SUGGESTIVE",x.size="SIZE_SMALL",x.isDisabled=!this.isAllowedToAddOption);return(x==null?0:x.text)?x:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,P;return this.quizOptions.length<((P=(W=this.editorInfo)==null?void 0:W.maxQuizOptions)!=null?P:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(W){var P;return(P=W.optionText)==null?void 0:P.trim()})}}});
fs.prototype.updatePlaceholderTexts=fs.prototype.updatePlaceholderTexts;fs.prototype.dataChanged=fs.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],fs.prototype,"editorInfo",void 0);_.f([_.c(),_.l("design:type",Array)],fs.prototype,"quizOptions",void 0);_.f([_.c(),_.l("design:type",Object)],fs.prototype,"explanationPlaceholderText",void 0);_.f([_.n_(".option-selector-button"),_.l("design:type",Array)],fs.prototype,"optionSelectors",void 0);
_.f([_.K_("editorInfo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fs.prototype,"dataChanged",null);_.f([_.H("editorInfo","isAllowedToAddOption","quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],fs.prototype,"addAnswerButton",null);_.f([_.H("editorInfo","quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],fs.prototype,"isAllowedToAddOption",null);
_.f([_.K_("quizOptions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fs.prototype,"updatePlaceholderTexts",null);_.f([_.H("quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],fs.prototype,"hasCustomOptionText",null);fs=_.f([_.U({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],fs);
_.X(fs,"ytd-backstage-quiz-editor-renderer",function(){if(EgA!==void 0)return EgA;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return EgA=W},{mode:2});var gg3;var DDm=(Ga.FIRSTDAYOFWEEK+1)%7;var Mib;var $D3=[],wCw=0,hbZ=0;wCw=0;hbZ=24;if(.25*(hbZ-wCw)<0)Mib=[];else{for(var Hic=wCw;Hic<hbZ;Hic+=.25)$D3.push(Hic);Mib=$D3}var ebk=Mib.map(function(W){W=W*60*60;return{secondsSinceMidnight:W,text:(new cu(7)).format(new Date(0,0,0,0,0,W))}});var c4z;var Nv=function(){var W=_.b.apply(this,arguments)||this;W.skipNextOpenDialog=!1;W.errorMessage="";return W};
_.A(Nv,_.b);_.J=Nv.prototype;_.J.attached=function(){var W=this,P=new MutationObserver(function(){W.JSC$13506_calendarMain.scrollHeight>0&&(P.disconnect(),W.calendarConfig&&W.calendarConfig.selectedDate&&W.scrollToDate())});
P.observe(this.JSC$13506_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){P.disconnect()},1E3)};
_.J.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.J.onDateTextChange=function(){if(this.calendarConfig){var W=this.validateDateText();W.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(W.details)):this.textbox.setAttribute("invalid","")}};
_.J.handleDayClick=function(W){W.model.day.date&&(this.commitDate(W.model.day.date),this.dialog.close())};
_.J.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var W=NPW(this.calendarConfig.selectedDate,this.renderData);W!==void 0&&this.JSC$13506_calendarMain.scrollToIndex(W)}};
_.J.scrollToNextMonth=function(){this.JSC$13506_calendarMain.scrollToIndex(this.JSC$13506_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$13506_calendarMain.firstVisibleIndex===0&&this.JSC$13506_calendarMain.scrollTo(0,0);this.JSC$13506_calendarMain.scrollToIndex(this.JSC$13506_calendarMain.firstVisibleIndex-1)};
_.J.onFormSubmit=function(W){W.preventDefault();this.calendarConfig&&(W=this.validateDateText(),W.isValid&&(this.commitDate(W.details),this.dialog.close()))};
_.J.onEscOrClickingOutside=function(W){W=W.detail.path&&!!W.detail.path.length&&W.detail.path[0];if(W.classList.contains("ytd-calendar-date-picker")){W===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var P=0;P<this.dropdownButton.children.length;P++)this.dropdownButton.children[P]===W&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}W=this.textbox.value!==this.dateText;P=this.validateDateText();W&&P.isValid&&this.commitDate(P.details);this.dialog.close();this.textbox.value=
this.dateText};
_.J.commitDate=function(W){this.calendarConfig&&(this.set("calendarConfig.selectedDate",W),_.Lf(this.hostElement,"ytd-calendar-date-selected",W))};
_.J.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var W=this.textbox.value;var P=new Date;W=(new KDA(2)).parse(W,P,{validate:!0})===W.length?X2S(P):void 0;if(!W)return this.errorMessage=_.KK("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};P=this.calendarConfig.start;var x=this.calendarConfig.end;if(cjC(W,P))return this.errorMessage=_.KK("ENTER_DATE_OR_LATER",{allowed_date:Uqm(P)}),{isValid:!1,details:void 0};if(cjC(x,W))return this.errorMessage=
_.KK("ENTER_DATE_OR_EARLIER",{allowed_date:Uqm(x)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:W}};
_.N1.Object.defineProperties(Nv.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Uqm(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var W=this.calendarConfig,P=[],x=0;x<7;x++)P.push(Ga.NARROWWEEKDAYS[(x+DDm)%7]);x=[];for(var I=new Date(W.start.year,W.start.month);I.getFullYear()<W.end.year||I.getFullYear()===W.end.year&&I.getMonth()<=W.end.month;){var O=x,B=O.push,Y=I.getFullYear(),K=I.getMonth(),Z=W,d=void 0,v=[],m=Object.freeze({extraCssClass:"invisible",debugClass:""}),t=new Date(Y,K),C=X2S(t);t=t.getDay();for(var z=X2S(new Date);C.month===
K;){t!==DDm&&d||(d=Array.from({length:7}).fill(m),v.push(d));var D={date:{year:Y,month:K,day:C.day},extraCssClass:"",debugClass:""};Z.selectedDate&&D.date&&e1o(D.date,Z.selectedDate)&&(D.extraCssClass+=" selected");if(cjC(C,Z.start)||cjC(Z.end,C))D.extraCssClass+=" disabled";e1o(C,z)&&(D.extraCssClass+=" today");D.extraCssClass=D.extraCssClass.trim();d[(t-DDm+7)%7]=D;C=bHm(C);t=(t+1)%7}B.call(O,{weeks:v,monthLabel:Ga.SHORTMONTHS[K]+" "+Y,year:Y,month:K,monthLabelExtraCssClass:v[0][2]===m?"shift-down-label":
""});I.setMonth(I.getMonth()+1)}return{months:x,daysOfWeekLabel:P}}}}});
Nv.prototype.onEscOrClickingOutside=Nv.prototype.onEscOrClickingOutside;Nv.prototype.scrollToDate=Nv.prototype.scrollToDate;_.f([_.c(),_.l("design:type",Object)],Nv.prototype,"calendarConfig",void 0);_.f([_.c(),_.l("design:type",Object)],Nv.prototype,"skipNextOpenDialog",void 0);_.f([_.c(),_.l("design:type",Object)],Nv.prototype,"errorMessage",void 0);_.f([_.BM("#textbox"),_.l("design:type",HTMLInputElement)],Nv.prototype,"textbox",void 0);
_.f([_.BM("#calendar-dialog"),_.l("design:type",Object)],Nv.prototype,"dialog",void 0);_.f([_.BM("#calendar-main"),_.l("design:type",Object)],Nv.prototype,"JSC$13506_calendarMain",void 0);_.f([_.BM("#date-picker"),_.l("design:type",HTMLElement)],Nv.prototype,"dropdownButton",void 0);_.f([_.H("calendarConfig.selectedDate"),_.l("design:type",String),_.l("design:paramtypes",[])],Nv.prototype,"dateText",null);
_.f([_.H("calendarConfig","calendarConfig.selectedDate"),_.l("design:type",Object),_.l("design:paramtypes",[])],Nv.prototype,"renderData",null);_.f([_.OZ("renderData","calendarConfig.selectedDate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nv.prototype,"scrollToDate",null);_.f([_.I7("iron-overlay-canceled"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Nv.prototype,"onEscOrClickingOutside",null);
Nv=_.f([_.jd({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Nv);
_.X(Nv,"ytd-calendar-date-picker",function(){if(c4z!==void 0)return c4z;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return c4z=W},{mode:2});var a6c=_.KK("UTC_OFFSET_FORMAT",{utc_offset:(new cu("Z")).format(new Date)}),biz=(new Date).getTimezoneOffset()*-60,kGl=new Date,UDi,XCP=el(kGl.getTimezoneOffset());UDi=PSi(IzA(XCP,kGl));var f6l=_.KK("LOCAL_TIME_GMT_LABEL",{gmt_text:UDi.replace("+0","+").replace("-0","-").replace(":00","")}),lF=function(){var W=_.b.apply(this,arguments)||this;W.selectedTimeIndex=0;W.selectedTimezoneIndex=0;W.timeOfDayOptions=ebk;return W};
_.A(lF,_.b);_.J=lF.prototype;_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var W=kzm();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=W,this.selectedTimeIndex=0;else{var P=fJ8(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},W,{selectedDate:P.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(x){return x.secondsSinceMidnight===P.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.J.onDatePicked=function(W){this.selectedDate=W.detail};
_.J.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Lf(this.hostElement,"ytd-date-time-selection-cancelled")};
_.J.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var W=this.selectedDate;W=new Date(W.year,W.month,W.day);_.Lf(this.hostElement,"ytd-date-time-selection-update",Math.floor(W.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+W.getTimezoneOffset()*60))}};
_.J.getTimezoneFormat=function(W){return W.localizedDisplayText?W.localizedDisplayText:_.KK("TIMEZONE_FORMAT",{utc_offset_text:""+W.localizedUtcOffset,city_name:""+W.localizedName})};
_.J.updateSelectedTimeIndexFromBinding=function(W){this.selectedTimeIndex=W.detail.value};
_.J.updateSelectedTimezoneIndexFromBinding=function(W){this.selectedTimezoneIndex=W.detail.value};
_.N1.Object.defineProperties(lF.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data.timezoneOptions;var P={name:"Etc/Unknown",localizedName:_.KK("LOCAL_TIME_LABEL"),localizedUtcOffset:a6c,utcOffsetSec:""+biz,localizedDisplayText:f6l};W?W.length&&W[0].name!==P.name&&(W[0].localizedDisplayText||(P.localizedDisplayText=""),W.unshift(P)):W=[P];return W}}},
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]}}});
lF.prototype.onDateTimeTimezoneChange=lF.prototype.onDateTimeTimezoneChange;lF.prototype.onDatePicked=lF.prototype.onDatePicked;lF.prototype.updateDefaultSelectedValue=lF.prototype.updateDefaultSelectedValue;_.f([_.c(),_.l("design:type",Object)],lF.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],lF.prototype,"calendarConfig",void 0);_.f([_.c(),_.l("design:type",Object)],lF.prototype,"selectedDate",void 0);_.f([_.c(),_.l("design:type",Object)],lF.prototype,"selectedTimeIndex",void 0);
_.f([_.c(),_.l("design:type",Object)],lF.prototype,"selectedTimezoneIndex",void 0);_.f([_.BM("#time-listbox"),_.l("design:type",Object)],lF.prototype,"timeListBox",void 0);_.f([_.BM("#timezone-listbox"),_.l("design:type",Object)],lF.prototype,"timezoneListBox",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],lF.prototype,"rendererStamperBehavior",void 0);_.f([_.H("data.timezoneOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],lF.prototype,"timeZones",null);
_.f([_.K_("data","timeZones"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lF.prototype,"updateDefaultSelectedValue",null);_.f([_.H("selectedTimezoneIndex","timeZones"),_.l("design:type",Object),_.l("design:paramtypes",[])],lF.prototype,"selectedTimezone",null);_.f([_.H("selectedTimeIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],lF.prototype,"selectedTime",null);
_.f([_.I7("ytd-calendar-date-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],lF.prototype,"onDatePicked",null);_.f([_.OZ("selectedTimezone","selectedTime","selectedDate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lF.prototype,"onDateTimeTimezoneChange",null);lF=_.f([_.U({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],lF);
_.X(lF,"ytd-date-time-picker-renderer",function(){if(gg3!==void 0)return gg3;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return gg3=W},{mode:1});var N2P;var TW=function(){var W=_.b.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.dismissTapHandler()};
W.dismissButtonOverrides={size:"XS"};return W};
_.A(TW,_.b);TW.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}}}}}};
TW.prototype.dismissTapHandler=function(){_.Lf(this.hostElement,"yt-backstage-attachment-dismissed")};
TW.prototype.computeAttachmentType=function(W){return W?W.backstageImageRenderer?"image":W.videoRenderer?"video":"none":"none"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],TW.prototype,"attachmentPreview",void 0);_.f([_.c(),_.l("design:type",Object)],TW.prototype,"dismissButton",void 0);_.f([_.c(),_.l("design:type",Object)],TW.prototype,"boundOnTapDismissButton",void 0);
_.f([_.c(),_.l("design:type",Object)],TW.prototype,"dismissButtonOverrides",void 0);_.f([_.c({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.l("design:type",String)],TW.prototype,"attachmentType",void 0);TW=_.f([_.U({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],TW);
_.X(TW,"ytd-backstage-dismissable-attachment",function(){if(N2P!==void 0)return N2P;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return N2P=W},{mode:1});var l6W;var rB=function(){var W=_.b.apply(this,arguments)||this;W.selectedVideoId=void 0;W.picker=void 0;W.dismissButtonOverrides={size:"XS"};W.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return W};
_.A(rB,_.b);_.J=rB.prototype;_.J.onServiceRequestCompleted=function(W){W.stopPropagation()};
_.J.handleAddVideoPreviewAction=function(W){W=this.get("addVideoPreviewAction",W);this.onGetVideoPreviewSuccess(W)};
_.J.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}}}}}};
_.J.onLaunchVideoPicker=function(W){var P=this,x=_.kz(this.get("addVideoLinkAction.title",W)),I=this.get("addVideoLinkAction.onePickHostId",W);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",W);I&&(this.picker||(x=_.WkM(_.jMt(I).setTitle(x).addView(R_d()).addView(i4z()),function(O){P.onPickVideo(O)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",W)||x.addView("youtube"),this.picker=x.build()),this.picker.setVisible(!0))};
_.J.onPickVideo=function(W){if(W)if(W.action==="cancel")_.Lf(this.hostElement,"yt-video-link-button-cancel");else if(W.action==="picked"){W=W.docs;if(!W||W.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(W=(W==null?0:W.length)?W[0]:void 0)?W.id:void 0;this.setVideoPreview()}};
_.J.setVideoPreview=function(){var W=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){W.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.J.onGetVideoPreviewSuccess=function(W){if(W&&W.videoPreview&&W.cancelButton)this.videoPreview=W.videoPreview,this.cancelButton=W.cancelButton,_.Lf(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.J.onGetVideoPreviewError=function(){this.cancel()};
_.J.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Lf(this.hostElement,"yt-video-link-cancel")};
_.J.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
rB.prototype.onServiceRequestCompleted=rB.prototype.onServiceRequestCompleted;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],rB.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],rB.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rB.prototype,"videoPreview",void 0);_.f([_.c(),_.l("design:type",Object)],rB.prototype,"cancelButton",void 0);_.f([_.c(),_.l("design:type",Object)],rB.prototype,"getVideoPreviewCommand",void 0);_.f([_.c(),_.l("design:type",Object)],rB.prototype,"dismissButtonOverrides",void 0);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rB.prototype,"onServiceRequestCompleted",null);rB=_.f([_.U({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],rB);
_.X(rB,"ytd-backstage-video-link-attachment",function(){if(l6W!==void 0)return l6W;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return l6W=W},{mode:1});var T2k;var r4i;var iip;var iF=function(){return _.b.apply(this,arguments)||this};
_.A(iF,_.b);iF.prototype.dataChanged=function(){this.active=!1};
iF.prototype.onTap=function(){_.Lf(this.hostElement,"yt-select-emoji-suggestion",this.data)};
iF.prototype.identity=function(W){return W};
_.N1.Object.defineProperties(iF.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;if((W=this.data)==null?0:(P=W.image)==null?0:(x=P.thumbnails)==null?0:(I=x[0])==null?0:I.url)return W=this.data.image.thumbnails[0].url,W.startsWith("data:image/svg+xml")?o$(W):_.my(W)}}});
iF.prototype.dataChanged=iF.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],iF.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],iF.prototype,"active",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iF.prototype,"dataChanged",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],iF.prototype,"imageSrc",null);
iF=_.f([_.U({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],iF);
_.X(iF,"ytd-emoji-suggestion",function(){if(iip!==void 0)return iip;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return iip=W},{mode:1});var Rbp=/.*([:@#].*?)$/,Rv=function(){var W=_.b.apply(this,arguments)||this;W.suggestions=[];W.suggestionIndex=-1;W.JSC$13534_lastSuggestionRange=null;return W};
_.A(Rv,_.b);_.J=Rv.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.J.getSuggestions=function(W){var P=[],x=thd(this.emojiManager,W.substr(0,3));if(x)for(var I in x)if(I.toLocaleLowerCase().indexOf(W)===0){var O=x[I];if(O&&O.emojiId){O=EN(this.emojiManager,O.emojiId);var B=void 0,Y=void 0,K=void 0,Z=void 0,d=((B=O)==null?0:B.isCustomEmoji)?(Y=O)==null?void 0:(K=Y.shortcuts)==null?void 0:K[0]:(Z=O)==null?void 0:Z.emojiId;B=void 0;P.push({suggestion:{image:(B=O)==null?void 0:B.image,alt:d,text:I}});if(P.length>=64)break}}return P?P.sort(function(v,m){return m.suggestion.text<
v.suggestion.text?-1:m.suggestion.text===v.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(W){_.Lf(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13534_lastSuggestionRange,text:W.alt});this.dropdown.opened=!1};
_.J.updateSuggestionsAtCaret=function(W){this.updateSuggestions(W,this.retrieveTextBeforeRange(W))};
_.J.offsetStartOfRangeBy=function(W,P){W.startOffset>=P&&W.setStart(W.startContainer,W.startOffset-P)};
_.J.updateSuggestions=function(W,P){var x=this;this.JSC$13534_lastSuggestionRange&&(this.JSC$13534_lastSuggestionRange.detach(),this.JSC$13534_lastSuggestionRange=null);if((P=Rbp.exec(P))&&P.length&&(P=P[P.length-1].toLocaleLowerCase(),P.length>2||P===":_")&&(this.offsetStartOfRangeBy(W,P.length),this.JSC$13534_lastSuggestionRange=W,(W=this.getSuggestions(P))&&W.length)){this.suggestions=W;_.Xm(this,function(){x.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.J.onKeyDown=function(W){if(this.dropdown.opened)switch(W.key){case "Escape":this.dropdown.opened=!1;W.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);W.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.J.onKeyUp=function(W,P){switch(W.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(P);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(P)}};
_.J.onKeyPress=function(W){W.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),W.preventDefault())};
_.J.changeSuggestionIndex=function(W){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(W+this.suggestions.length)%this.suggestions.length,W=this.dropdownContent.children[this.suggestionIndex],W.active=!0,this.dropdownContent.scrollTop=W.offsetTop)};
_.J.retrieveTextBeforeRange=function(W){var P=W.startContainer;return P&&P.nodeType===Node.TEXT_NODE?P.textContent.substr(0,W.startOffset):""};
Rv.prototype.onKeyPress=Rv.prototype.onKeyPress;Rv.prototype.onKeyUp=Rv.prototype.onKeyUp;Rv.prototype.onKeyDown=Rv.prototype.onKeyDown;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Array)],Rv.prototype,"suggestions",void 0);_.f([_.c(),_.l("design:type",_.zh)],Rv.prototype,"emojiManager",void 0);_.f([_.c(),_.l("design:type",Number)],Rv.prototype,"verticalSuggestionsOffset",void 0);
_.f([_.BM("#dropdown"),_.l("design:type",Object)],Rv.prototype,"dropdown",void 0);_.f([_.BM("#dropdown-content"),_.l("design:type",HTMLDivElement)],Rv.prototype,"dropdownContent",void 0);_.f([_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],Rv.prototype,"onKeyDown",null);_.f([_.I7("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent,Range]),_.l("design:returntype")],Rv.prototype,"onKeyUp",null);
_.f([_.I7("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],Rv.prototype,"onKeyPress",null);Rv=_.f([_.U({disableElementRegistration:!0,is:"ytd-emoji-input"})],Rv);
_.X(Rv,"ytd-emoji-input",function(){if(r4i!==void 0)return r4i;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return r4i=W},{mode:2});var FDA;var Fv=function(){var W=_.b.apply(this,arguments)||this;W.hasMaxOptions=!1;return W};
_.A(Fv,_.b);_.J=Fv.prototype;_.J.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.J.setPrefilledChoices=function(W){var P=this;this.set("pollOptions",[]);var x;for(x=0;x<Math.min(W.length,this.data.maxPollOptions);x++)this.push("pollOptions",W[x].substring(0,this.data.maxPollOptionChars));for(;x<this.data.minPollOptions;x++)this.push("pollOptions","");this.hasMaxOptions=x>=this.data.maxPollOptions;_.Xm(this,function(){for(var I=P.pollOptions,O=_.g(P.hostElement).querySelectorAll(".poll-option-input"),B=0;B<O.length;B++)O[B].value=I[B]})};
_.J.focusChanged=function(){_.qa(this.hostElement)};
_.J.onInput=function(){var W=this;_.De(this,"onInput",function(){W.isValid()?_.Lf(W.hostElement,"yt-commentbox-post-enable"):_.Lf(W.hostElement,"yt-commentbox-post-disable")},300)};
_.J.setPollOptions=function(){var W=[],P,x=((P=this.data)==null?0:P.minPollOptions)?this.data.minPollOptions:0;for(P=0;P<x;P++)W.push("");return W};
_.J.addPollOption=function(){var W=this;_.Lf(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Gr.addLowPriorityJob(function(){var P;(P=_.g(W.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||P.focus()})};
_.J.onRemovePollOption=function(W){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Lf(this.hostElement,"yt-poll-attachment-dismiss")):(W=this.repeat.indexForElement(W.target.parentNode),W!==null&&(this.splice("pollOptions",W,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Lf(this.hostElement,"yt-commentbox-post-enable"))))};
_.J.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.J.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var W=0,P=this.pollOptions.length;W<P;W++)if(this.pollOptions[W].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.J.getPollOptions=function(){return this.pollOptions};
_.J.setPollOptionsFromInputs=function(){for(var W=_.g(this.hostElement).querySelectorAll(".poll-option-input"),P=0;P<W.length;P++)this.pollOptions[P]=W[P].value.trim()};
_.J.clearPollOptions=function(){var W=_.g(this.hostElement).querySelectorAll(".poll-option-input");W=_.n(W);for(var P=W.next();!P.done;P=W.next())P.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.J.getSimpleString=function(W){return _.kz(W)};
_.J.updateValueFromBinding=function(W){if(W.target&&this.pollOptions){var P=Array.from(_.g(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(W.target);if(P>=0){var x;this.pollOptions[P]=(x=W.detail.value)!=null?x:"";this.notifyPath("pollOptions."+P)}}};
Fv.prototype.dataChanged=Fv.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Fv.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Array)],Fv.prototype,"pollOptions",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Fv.prototype,"hasMaxOptions",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fv.prototype,"enableCreationBox",void 0);
_.f([_.BM("#repeat"),_.l("design:type",mr)],Fv.prototype,"repeat",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fv.prototype,"dataChanged",null);Fv=_.f([_.U({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Fv);
_.X(Fv,"ytd-poll-attachment",function(){if(FDA!==void 0)return FDA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return FDA=W},{mode:2});var qGz;var LDm;var WVk;var PQk;var qv=function(){return _.b.apply(this,arguments)||this};
_.A(qv,_.b);_.N1.Object.defineProperties(qv.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qv.prototype,"rendererBehaviors",void 0);_.f([_.c(),_.l("design:type",Object)],qv.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],qv.prototype,"focused",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("focused"),_.l("design:type",Object),_.l("design:paramtypes",[])],qv.prototype,"ariaSelected",null);qv=_.f([_.jd({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],qv);
_.X(qv,"yt-user-mention-suggestion-renderer",function(){if(PQk===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;WVk===void 0&&(WVk=document.createElement("template"));var I=WVk;x.call(P,I.content.cloneNode(!0),W.content.firstChild);PQk=W}W=PQk;return W},{mode:2});var xyW;var IoA;var Ls=function(){var W=_.b.apply(this,arguments)||this;W.focusedSuggestionIndex=-1;return W};
_.A(Ls,_.b);_.J=Ls.prototype;_.J.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.J.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.J.setFocusedSuggestionIndex=function(W){!this.data||!this.data.suggestions||W<0||W>=this.data.suggestions.length||(this.focusedSuggestionIndex=W,W=this.getSuggestionId(W),this._setFocusedSuggestionId(W))};
_.J.advanceSuggestion=function(W){this.focusedSuggestionIndex===-1||W!==-1&&W!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+W),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.J.ensureSuggestionVisible=function(W){W=this.getSuggestionId(W);W=_.g(this.hostElement).querySelector("[id="+W+"]");W!=null&&(W.offsetTop<this.hostElement.scrollTop?W.scrollIntoView(!0):W.offsetTop+W.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&W.scrollIntoView(!1))};
_.J.getSuggestionId=function(W){return"user-mention-suggestion-"+W};
_.J.onSuggestionTap=function(W){var P=_.Q(W.model.item,eEb);this.ytRendererBehavior.logExplicitClick(P);_.Lf(this.hostElement,"yt-user-mention-suggestion-selected",{data:P,index:W.model.index})};
_.J.onSuggestionMouseMove=function(W){W.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(W.model.index)};
_.J.isSuggestionFocused=function(W,P){return W===P};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("focused-suggestion-id-changed",this.focusedSuggestionId))};
Ls.prototype.focusedSuggestionIdChangedForBinding=Ls.prototype.focusedSuggestionIdChangedForBinding;Ls.prototype.onDomChange=Ls.prototype.onDomChange;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ls.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Ls.prototype,"focusedSuggestionIndex",void 0);_.f([_.c({readOnly:!0}),_.l("design:type",String)],Ls.prototype,"focusedSuggestionId",void 0);
_.f([_.I7("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ls.prototype,"onDomChange",null);_.f([_.OZ("focusedSuggestionId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ls.prototype,"focusedSuggestionIdChangedForBinding",null);Ls=_.f([_.jd({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Ls);
_.X(Ls,"yt-user-mention-suggestions-dropdown",function(){if(IoA===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;xyW===void 0&&(xyW=document.createElement("template"));var I=xyW;x.call(P,I.content.cloneNode(!0),W.content.firstChild);IoA=W}W=IoA;return W},{mode:2});var Wc=function(){var W=_.b.apply(this,arguments)||this;W.suggestionsResponse=null;W.activeMention=null;W.selectionChangeListener=W.onSelectionChange.bind(W);W.handlesEnabled=_.p("enable_handles_in_mention_suggest_posts");W.handlesInMentionSuggestionsEnabled=_.p("handles_in_mention_suggest_posts");W.zeroPrefixMentionSuggestionEnabled=_.p("enable_zero_prefix_mention_suggestion_web");W.pendingQuery=null;W.flowNonce=null;return W};
_.A(Wc,_.b);_.J=Wc.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.J.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.J.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.J.hasSuggestions=function(W){return!!(W&&W.suggestions&&W.suggestions.length>0)};
_.J.onInput=function(){var W=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var P=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),x=this.activeMention.JSC$9152_getText().slice(-1)===" ",I=this.activeMention.JSC$9152_getText().slice(-2,-1)===" ",O="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9152_getText().slice(-2,-1))>=
0;O=this.zeroPrefixMentionSuggestionEnabled&&O;if(this.activeMention.isCollapsed()||(P||I||O)&&x)this.cancelActiveMention();else{var B=this.activeMention.JSC$9152_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.De(this,"requestSuggestions",function(){W.requestSuggestions(B)},100)}}}};
_.J.onServiceRequestSent=function(W){W.stopPropagation()};
_.J.onServiceRequestCompleted=function(W){W.stopPropagation();W=W.detail.data;W.query&&(!this.pendingQuery||this.pendingQuery!==W.query)||!this.zeroPrefixMentionSuggestionEnabled&&W.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=W,this.hasSuggestions(W)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.J.onServiceRequestError=function(W){W.stopPropagation()};
_.J.onUserMentionSuggestionSelected=function(W){this.selectSuggestion(W.detail.data,W.detail.index)};
_.J.onSelectionChange=function(){if(this.activeMention){var W=_.jQ(),P=this.activeMention.JSC$9152_containsRange(W);W=W&&this.containsHelper(this.dropdown,W.getContainer());P||W||this.cancelActiveMention()}};
_.J.containsHelper=function(W,P){var x;if(((x=window.ShadyDOM)==null?void 0:x.noPatch)===!0)return W.contains(P);for(;P;){if(P===W)return!0;P=P instanceof ShadowRoot?P.host:P.parentNode}return!1};
_.J.maybeStartSuggest=function(){var W=_.jQ();if(W&&W.isCollapsed()){var P=W.JSC$9152_getStartNode(),x=W.JSC$9152_getStartOffset();if(P instanceof Text&&!(x<1)){var I=P.textContent;!(I=I&&I.charAt(x-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(I)<0||(this.activeMention=_.Hz(P,x-1,W.JSC$9152_getEndNode(),W.JSC$9152_getEndOffset()),this.flowNonce=A1(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.J.updateActiveMention=function(){if(this.activeMention){var W=_.jQ();W&&W.isCollapsed()&&(this.activeMention=_.Hz(this.activeMention.JSC$9152_getStartNode(),this.activeMention.JSC$9152_getStartOffset(),W.JSC$9152_getEndNode(),W.JSC$9152_getEndOffset()))}};
_.J.requestSuggestions=function(W){if(this.activeMention){var P={suggestions_query:W};this.pendingQuery=W;_.Iu(this.hostElement,[this.suggestionsEndpoint,P])}};
_.J.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()};
_.J.focusPreviousSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),W.preventDefault())};
_.J.focusNextSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),W.preventDefault())};
_.J.selectFocusedSuggestion=function(W){if(this.hasSuggestions(this.suggestionsResponse)){var P=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.Q(P,eEb)&&(this.selectSuggestion(_.Q(P,eEb),this.dropdown.focusedSuggestionIndex),W.preventDefault())}};
_.J.selectSuggestion=function(W,P){if(W){var x=this.activeMention;if(x){var I=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&W.handle?_.wN(I,"\u00a0\u2068@"+W.handle+"\u2069\u00a0"):this.handlesEnabled?_.wN(I,"\u00a0"+W.displayName+"\u00a0"):_.wN(I,"\u00a0@"+W.displayName+"\u00a0");AH(I,"/channel/"+W.channelId);I.classList.add("yt-formatted-string","yt-simple-endpoint");I.setAttribute("spellcheck","false");x.isCollapsed()||x.JSC$9152_removeContents();x.insertNode(I,!0);W=document.createTextNode(" ");
I.parentNode.insertBefore(W,I.nextSibling);window.getSelection().collapse(W,1);P={suggestionSelected:{suggestionIndex:P}};if(this.zeroPrefixMentionSuggestionEnabled){var O;P.suggestionSelected.isZeroPrefix=((O=this.suggestionsResponse)==null?void 0:O.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",P);this.cancelActiveMention();_.Lf(this.hostElement,"yt-mention-inserted")}}};
_.J.getPositionTarget=function(W){return W&&W.getBrowserRangeObject()};
_.J.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.J.onFocusedSuggestionIdChanged=function(W){var P=_.Mgx(this.hostElement)[0];P&&(W.detail.value?P.setAttribute("aria-activedescendant",W.detail.value):P.removeAttribute("aria-activedescendant"))};
_.J.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.J.logGELEvent=function(W,P){W={eventType:W,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};P&&(W=Object.assign(W,P));_.Ay("userMentionAutoCompleteBoxEvent",W)};
Wc.prototype.onDomChange=Wc.prototype.onDomChange;Wc.prototype.onUserMentionSuggestionSelected=Wc.prototype.onUserMentionSuggestionSelected;Wc.prototype.onServiceRequestError=Wc.prototype.onServiceRequestError;Wc.prototype.onServiceRequestCompleted=Wc.prototype.onServiceRequestCompleted;Wc.prototype.onServiceRequestSent=Wc.prototype.onServiceRequestSent;Wc.prototype.onInput=Wc.prototype.onInput;_.f([_.h(_.tu),_.l("design:type",Object)],Wc.prototype,"ironA11yKeysBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Wc.prototype,"suggestionsEndpoint",void 0);_.f([_.c(),_.l("design:type",Object)],Wc.prototype,"suggestionsResponse",void 0);_.f([_.c(),_.l("design:type",Object)],Wc.prototype,"activeMention",void 0);_.f([_.BM("#dropdown"),_.l("design:type",Object)],Wc.prototype,"dropdown",void 0);_.f([_.BM("#iron-dropdown"),_.l("design:type",Object)],Wc.prototype,"ironDropdown",void 0);
_.f([_.I7("input"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Wc.prototype,"onInput",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Wc.prototype,"onServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Wc.prototype,"onServiceRequestCompleted",null);
_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Wc.prototype,"onServiceRequestError",null);_.f([_.I7("yt-user-mention-suggestion-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Wc.prototype,"onUserMentionSuggestionSelected",null);
_.f([_.I7("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Wc.prototype,"onDomChange",null);Wc=_.f([_.jd({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Wc);
_.X(Wc,"yt-user-mention-autosuggest-input",function(){if(LDm===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;qGz===void 0&&(qGz=document.createElement("template"));var I=qGz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);LDm=W}W=LDm;return W},{mode:2});var Pc=null;
_.vM({is:"ytd-commentbox",_template:function(){if(T2k!==void 0)return T2k;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return T2k=W},
behaviors:[_.yTW.YtHostElementBehavior,_.tu,_.rb.YtActionHandlerBehavior,_.gb.YtComponentBehavior,_.TC.YtRendererstamperBehavior,_.Hez.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(W,P){return _.Jb(W.entities,"aadcGuidelinesStateEntityPayload",P)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(W,P){return _.Jb(W.entities,"commentboxStateEntity",P)},
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 _.gy}},
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:_.p("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.p("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",_.WM(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(W){this.fire(W?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(W){this.set("submitButtonDisabled",void 0);this.clear();W&&this.computeIsEmojiButtonDisplayed_(W)&&(W=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&W.updateEmojiCategories()},
observePrefilledImage_:function(W,P,x){this.isValidPrefilledImage_(W,P,x)&&(this.prefilledAttachment_="image",this.prefilledImageData_=P,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(W,P){this.isValidPrefilledVideo_(W,P)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(W){W&&W.pollData&&W.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(W.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.ZR();this.focus()},
detached:function(){document.removeEventListener("tap",_.WM(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(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var P=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(P,W);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var W=_.jQ();if(W){W=W.getBrowserRangeObject();for(var P=W.commonAncestorContainer;P;){if(P===this.getEditableTextArea_())return W;P=P.parentNode}}W=this.getEditableTextArea_();W=_.hh(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,P,x){(P=this.emojiManager.createDocumentFragment(P,!0,!1,x===void 0?!0:x))&&P.childNodes.length!==0&&(W.collapsed||W.deleteContents(),x=P.lastChild,W.insertNode(P),_.jY3(x).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var W=_.jQ();if(W){var P=W.JSC$9152_getStartNode(),x=W.JSC$9152_getEndNode();if(lJW(P)&&lJW(x)){var I=W.JSC$9152_getStartOffset(),O;if(_.Se&&P.nodeType===Node.ELEMENT_NODE&&(O=_.HMM(P)))_.hh(O,0).select();else{O=Vt(P)?P:_.MT(P,Vt);var B=Vt(x)?x:_.MT(x,Vt);if(O||B)if(W.isCollapsed()){if(P.nodeType===Node.TEXT_NODE){W=!0;I===P.length&&(W=!1);if(Pc==="end"||Pc==="right")W=!1;P=P.parentNode;W=[].concat(_.ju(P.parentNode.childNodes)).indexOf(P)+(W?0:1);_.hh(P.parentNode,W).select()}}else O?
O.previousSibling&&O.previousSibling.length>0?_.Hz(x,W.JSC$9152_getEndOffset(),O.previousSibling,O.previousSibling.length-1).select():(P=document.createTextNode("\u200b"),O.parentNode.insertBefore(P,O),_.Hz(x,W.JSC$9152_getEndOffset(),P,0).select()):B&&(B.nextSibling&&B.nextSibling.length>0?_.Hz(P,W.JSC$9152_getStartOffset(),B.nextSibling,1).select():(x=document.createTextNode("\u200b"),B.parentNode.insertBefore(x,B.nextSibling),_.Hz(P,W.JSC$9152_getStartOffset(),x,x.length).select()));Pc=null}}else Pc=
null}else Pc=null},
leftKeyPressed_:function(){Pc="left"},
rightKeyPressed_:function(){Pc="right"},
endKeyPressed_:function(){Pc="end"},
maybeDeleteChip_:function(){var W=qQG(!0);if(W){var P=_.jQ(),x=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();_.gQ(x,P,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=qQG(!1);if(W){var P=_.jQ(),x=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();_.gQ(x,P,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var P=_.jQ();if(P.isCollapsed()){var x=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();var I=L2x(x,P,!0);I&&(_.gQ(x,P,I,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var P=_.jQ();if(P.isCollapsed()){var x=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();var I=L2x(x,P,!1);I&&(_.gQ(x,P,I,I.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onTap_:function(W){if(!W.defaultPrevented&&(W.currentTarget.tagName==="YTD-COMMENTBOX"&&Vt(W.target)&&W.preventDefault(),this.isEmojiPickerDisplayed)){var P=this.$$("#emojis"),x=this.$$("#emoji-button"),I=this.getEditableTextArea_();if((W=W.path?W.path:W.composedPath&&W.composedPath())&&!W.includes(P)&&!W.includes(I)&&!W.includes(x))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(W,P,x){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&P!==void 0&&P.encryptedBlobId!==null&&P.sourceExternalVideoId!==null&&x!==void 0&&x.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(W,P){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!P&&!!P.videoRenderer&&!!P.videoRenderer.videoId},
isValidPrefilledAttachment_:function(W,P,x){return this.isValidPrefilledImage_(W,P,x)||this.isValidPrefilledVideo_(W,x)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.p("enable_multi_image_post_creation")){var W=this.$$("ytd-backstage-multi-image-select-renderer");W&&W.hasImages()&&W.cancel()}else(W=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&W.cancel();(W=this.$["poll-attachment"])&&this.hasPoll_&&W.clearPollOptions();(W=this.$["image-poll-attachment"])&&this.hasImagePoll_&&W.resetPollOptions();(W=this.$["quiz-attachment"])&&this.hasQuiz_&&W.resetQuizOptions();
(W=this.$["video-link-attachment"])&&this.hasVideo_&&W.cancel();(W=this.$["access-restrictions-selector"].firstElementChild)&&W.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 _.g(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.g(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(W,P){W=rjG(W,this.emojiManager,P).cloneNode(!0);for(P=W.firstChild;P;)if(P.nodeType!==1)P=P.nextSibling;else switch(P.tagName){case "BR":var x=_.GT();_.f3c(x,P);P=x.nextSibling;break;case "DIV":(x=P.lastChild)&&P.nextSibling&&_.MQ(_.GT(),x);P.previousSibling&&(P.previousSibling.nodeType===1||P.previousSibling.nodeType===3&&!P.previousSibling.textContent.endsWith("\n"))&&_.D9(_.GT(),P);x&&x.nodeName==="BR"&&_.oE(x);x=P;P.hasChildNodes()?(P=P.firstChild,
_.NkP(x)):(P=P.nextSibling,_.oE(x));break;default:P=P.nextSibling}return WDo(W)},
onAddImageError_:function(W){W.stopPropagation();this.errorMessage_=_.bx(W.detail)},
setTextAreaValue_:function(W){W||(W="");var P=this.getEditableFormattedString_();P.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});P.text=W},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Pc=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.hh(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.$$("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),P=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",P)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var W;return s1S((W=this.$["quiz-attachment"])==null?void 0:W.getExplanationText())||s1S(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var P=this.getInputRange_();P&&(W=this.emojiInput.retrieveTextBeforeRange(P))}this.insertText_(W,!0);this.updateCharCount_();this.setSubmitButton_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(W)},
onPasteEmoji_:function(W){W.preventDefault();W.stopImmediatePropagation();W=W.clipboardData.getData("text/plain");this.insertText_(W,!1,!1)},
insertText_:function(W,P,x){P=P===void 0?!1:P;x=x===void 0?!0:x;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var I=this.getInputRange_().cloneRange();this.emojiManager&&I&&(P&&this.emojiInput.offsetStartOfRangeBy(I,W.length),this.insertTextWithEmojis_(I,W,x),TP8(this.getEditableTextArea_().lastChild)||(I=this.getInputRange_().cloneRange()),I&&(this.emojiInput.updateSuggestions(I,W),this.updateSuggestionOffset_(I)))}},
setSubmitButton_:function(){if(this.data){var W=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",P=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(W||P){var x=this.getTextAreaValue().trim();P=x===this.previousText_;x=!x||this.aboveCharLimit_;W&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(x=this.aboveCharLimit_);this.submitButtonDisabled=
P||x||!this.getTextLength();W&&_.p("enable_post_scheduling")&&(this.submitButtonDisabled=P&&!this.scheduledPublishTimeSec_||x)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.kz,computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computeFooterMessageClass_:function(W,P){return P?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(W,P){return P?P:W},
computeFooterMessageHidden_:function(W,P){return!P&&!W},
computePlaceholderText_:function(W,P,x){return(x==="video"||x==="image")&&(W==null?0:W.prefilledPlaceholderText)?W==null?void 0:W.prefilledPlaceholderText:P==="poll"||P==="image-poll"?W==null?void 0:W.pollPostPlaceholderText:P==="quiz"?W==null?void 0:W.quizPostPlaceholderText:P==="image"?W==null?void 0:W.imagePostPlaceholderText:W==null?void 0:W.placeholderText},
computeHideAttachmentButtons_:function(W,P,x,I){return W===void 0?!1:I&&this.getSimpleString(I)===this.getSimpleString(W.rateLimitErrorMessage)?!0:P!=="none"||x!=="none"||!W.videoLinkButton&&!W.pollButton&&!W.imagePollButton&&!W.quizButton&&!W.imageButton},
computeHideDismissableAttachment_:function(W){return W!=="image"&&W!=="video"},
computeHasVideo_:function(W){return W==="video"},
computeHasImage_:function(W){return W==="image"},
computeHasPoll_:function(W){return W==="poll"},
computeHasImagePoll_:function(W){return W==="image-poll"},
computeHasQuiz_:function(W){return W==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(W){return W&&W.backstageAttachment?W.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!W.backstageAttachment.quizRenderer&&!W.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(W){if(this.isValidPrefilledAttachment_(W.purpose,W.prefilledImageData,W.backstageAttachment))return W.backstageAttachment},
computeEditAttachment_:function(W){if(this.computePrefilledContent_(W)===void 0)return W.backstageAttachment},
computeAuthorThumbnailDimension_:function(W,P){return W&&!P?24:40},
computeImageUploadEndpoint_:function(W){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",W)},
computeRateLimitErrorCommands_:function(W){var P,x;return W==null?void 0:(P=W.advancedTierFeatures)==null?void 0:(x=P.rateLimit)==null?void 0:x.rateLimitCommands},
computeIsBackstageComment_:function(W){return!(!W||W!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)||this.get("replyButton.buttonRenderer.serviceEndpoint",W)||this.get("postButton.buttonRenderer.serviceEndpoint",W)},
computeSubmitButtonOverride:function(){if(_.p("web_modern_buttons")){var W,P;return{segmentedPosition:this.dropdownSchedulePanel_||!((W=this.data)==null?0:(P=W.postOptionsMenu)==null?0:P.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.p("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(W,P){W=this.get("submitButton.buttonRenderer",W)||this.get("replyButton.buttonRenderer",W)||this.get("postButton.buttonRenderer",W);P&&(W=P);W&&(W=Object.assign({},W),W.serviceEndpoint=void 0,W.isDisabled=this.submitButtonDisabled);return W},
computeHasExternalLinksAccess_:function(W){if(_.p("enable_rfa_external_links")){var P,x,I;return(I=W==null?void 0:(P=W.advancedTierFeatures)==null?void 0:(x=P.externalLinks)==null?void 0:x.allowExternalLinks)!=null?I:!0}return!0},
computeIsEmojiButtonDisplayed_:function(W){return W.emojiButton&&W.emojiPicker&&W.emojiPicker.emojiPickerRenderer&&W.emojiPicker.emojiPickerRenderer.categories?W.emojiPicker.emojiPickerRenderer.categories.find(function(P){return P.emojiPickerCategoryRenderer?P.emojiPickerCategoryRenderer.emojiIds&&P.emojiPickerCategoryRenderer.emojiIds.length>0:P.emojiPickerUpsellCategoryRenderer?P.emojiPickerUpsellCategoryRenderer.emojis&&P.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(W){return W.charLimit?W.charLimit:null},
computeDropdownSchedulingPanel_:function(W,P){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&P)return P},
computeInlineSchedulingPanel_:function(W,P){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&P)return P},
computeHideAuthorThumbnail_:function(W,P){return W||this.computeUseIdentityChip_(P)},
computeHideIdentityChipRenderer_:function(W,P){return W||!this.computeUseIdentityChip_(P)},
computeUseIdentityChip_:function(W){return!!W&&!!W.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(W){var P,x,I,O;(W==null?0:(P=W.detail)==null?0:(x=P.endpoint)==null?0:x.ypcGetOffersEndpoint)||(W==null?0:(I=W.detail)==null?0:(O=I.endpoint)==null?0:O.ypcOffersEndpoint)?(W.stopPropagation(),_.Iu(this,[W.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(W.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(W){this.addedAttachment="video";this.selectedVideoId_=W.detail.videoId},
commentboxStateEntityChanged_:function(W){var P=this;(W==null?void 0:W.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(W==null?void 0:W.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){P.focus()})},
onYtServiceRequestSent_:function(W,P){if(P.actions)for(W=_.n(P.actions),P=W.next();!P.done;P=W.next())P.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(W){this.isLoading=!1;var P=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",W),x,I,O,B=W==null?void 0:(x=W.detail)==null?void 0:(I=x.data)==null?void 0:(O=I.actionResult)==null?void 0:O.commentboxStateEntityKey;if(P)this.errorMessage_=P;else if(B){var Y;this.dismissData_=W==null?void 0:(Y=W.detail)==null?void 0:Y.data;this.commentboxStateKey_=B}else{this.clear();var K;this.fire("yt-commentbox-dismiss",W==null?void 0:(K=W.detail)==
null?void 0:K.data)}},
onYtServiceRequestError_:function(W){W.stopPropagation();this.isLoading=!1;var P,x;if(((P=this.data)==null?void 0:P.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((x=this.data)==null?void 0:x.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(P=this.get("detail.error.args",W)||[],P.length>1&&P[1].message){this.handlePostsServiceRequestError_(P[1].message);return}(W=this.get("detail.error.message",W))?this.errorMessage_=this.data.errorMessage||_.bx(W):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(W){if(_.p("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var P=_.n(this.rateLimitErrorCommands),x=P.next();!x.done;x=P.next())if(x=x.value,x.errorLabel===W){_.O2(x.command,this.hostElement);return}this.errorMessage_=_.bx(W)},
submitIfNotBackstagePost_:function(W){if(!this.isBackstagePost)this.onSubmit_(W)},
onSubmit_:function(W){var P=this,x,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w;return _.y(function(a){switch(a.nextAddress){case 1:W.stopPropagation();if(!P.serviceEndpoint||!P.isValidInput_())return a.return();if(P.shouldShowPostAadcNotice_())return P.showPostAadcNotice_(),a.return();if(P.shouldShowCommentAadcNotice_())return P.showCommentAadcNotice_(),a.return();if(!(P.$$("ytd-backstage-multi-image-select-renderer")&&P.hasImage_&&_.p("enable_multi_image_post_creation"))){a.jumpTo(2);break}x=P.$$("ytd-backstage-multi-image-select-renderer");
return _.S(a,x.getAllUploadStatuses(),3);case 3:I=a.yieldResult;if(!I)return a.return();O=_.n(I);for(B=O.next();!B.done;B=O.next())if(Y=B.value,Y.encryptedBlobId===void 0)return P.isLoading=!1,Z=K=void 0,P.errorMessage_=(Z=(K=P.imageUploadEndpoint_)==null?void 0:K.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?Z:null,a.return();return a.return(P.submitForm_(void 0,void 0,void 0,void 0,x.images,P.taggedVideoId_));case 2:if(!P.hasImagePoll_||!P.$["image-poll-attachment"]){a.jumpTo(4);
break}return _.S(a,P.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:d=a.yieldResult;if(!d)return a.return();v=_.n(d);for(m=v.next();!m.done;m=v.next())if(t=m.value,!t.encryptedBlobId)return P.isLoading=!1,C=void 0,P.errorMessage_=(C=P.data.errorMessage)!=null?C:null,a.return();case 4:D=(z=P.$$("ytd-backstage-image-select-renderer"))&&z.uploadPromise(),w=P.getSharedPostId_(),D?D.then(function(){P.submitForm_.apply(P,_.ju(_.tH.apply(0,arguments)))}).catch(function(k){P.isLoading=!1;
P.errorMessage_=_.bx(k.message)}):P.selectedVideoId_?P.submitForm_(void 0,P.selectedVideoId_):P.prefilledAttachment_==="image"?P.submitForm_(P.prefilledImageData_.encryptedBlobId,void 0,void 0,P.prefilledImageData_.sourceExternalVideoId,void 0,P.taggedVideoId_):P.prefilledAttachment_==="video"?P.submitForm_(void 0,P.data.backstageAttachment.videoRenderer.videoId):w?P.submitForm_(void 0,void 0,w):P.taggedVideoId_!==void 0?P.submitForm_(void 0,void 0,void 0,void 0,void 0,P.taggedVideoId_):P.submitForm_(),
_.Kl(a)}})},
openSchedulingPanel:function(W){W&&W.scheduleButton&&W.scheduleButton.buttonRenderer&&(this.scheduleButton_=W.scheduleButton.buttonRenderer);W&&W.dateTimePicker&&this.set("data.schedulingDateTimePicker",W.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(W){W.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(W){W.stopPropagation();W.detail.alertMessage&&(this.alertMessage_=W.detail.alertMessage)},
onImageSelected_:function(W){W.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(W){W.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(W.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(W){var P=this.$["video-link-attachment"];P&&P.onLaunchVideoPicker(W)},
onAttachmentDismiss_:function(W){W.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"&&_.p("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.p("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 W;if(this.addedAttachment==="image-poll"&&((W=this.$["image-poll-attachment"])==null||!W.isValid()))return!1;var P;if(this.addedAttachment==="quiz"&&((P=this.$["quiz-attachment"])==null||!P.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;W=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(W=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")W=!0;return W||!!this.getTextAreaValue().trim()},
submitForm_:function(W,P,x,I,O,B){var Y=this.getTextAreaValue().trim(),K={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Y===this.previousText_&&(Y=void 0);Y!==void 0&&(K.comment_text=Y);this.isLoading=!0;B!=void 0&&(K.tagged_video_id=B);W?(K.image_blob_id=W,this.imagePreviewCoordinates_&&(K.image_preview_coordinates=this.imagePreviewCoordinates_)):P?K.attached_video_id=P:x?K.shared_post_id=x:O&&O.length>0&&(K.images_data=O.map(function(Z){return{encryptedBlobId:Z.encryptedBlobId,
previewCoordinates:Z.previewCoordinates}}));
I&&(K.source_video_id=I);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(K.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(K.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(K.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.p("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(K.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.p("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(K.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Iu(this,[this.serviceEndpoint,K])},
onIsInputFocusChanged_:function(W,P){W?this.fire("yt-autonav-pause-focus"):P!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var P=this.getEditableTextArea_();[].concat(_.ju(W.dataTransfer.items)).forEach(function(x){x.kind==="string"&&x.type.match("^text/plain")&&x.getAsString(function(I){P.appendChild(document.createTextNode(I))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
computeSubmitButtonClass_:function(W,P){return!P||W?"":"with-options"},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.g(this.emojiInput).querySelector("#dropdown")){var P=this.getEditableTextArea_().getBoundingClientRect().bottom,x=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(P-x)+5;P=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-P;_.g(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(W){if(_.p("enable_post_scheduling")&&this.data&&this.data.purpose){W=W.detail;if(Math.floor(Date.now()/1E3)>=W)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var P=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(P)||P!==W?this.scheduledPublishTimeSec_=W:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=W;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var W=["image-button","image-poll-button","poll-button"];_.p("enable_quiz_creation")&&W.push("quiz-button");_.p("auto_convert_posts_video_tag")||W.push("video-link-button");return W},
getButtonRenderer:function(W,P){if(W)switch(P){case "video-link-button":var x;return((x=W.videoLinkButton)==null?void 0:x.buttonRenderer)||void 0;case "image-button":var I;return((I=W.imageButton)==null?void 0:I.buttonRenderer)||void 0;case "poll-button":var O;return((O=W.pollButton)==null?void 0:O.buttonRenderer)||void 0;case "image-poll-button":var B;return((B=W.imagePollButton)==null?void 0:B.buttonRenderer)||void 0;case "quiz-button":var Y;return((Y=W.quizButton)==null?void 0:Y.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var W;return(W=this.data)==null||!W.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var W,P;return!((W=this.data)==null||!W.openAadcDialog)&&!((P=this.aadcGuidelinesState_)==null||!P.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.$$("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var W;((W=this.data)==null?0:W.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.$N("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(W){W.clickTrackingParams&&_.YY().clickCommand(W);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.W7(this,"yt-close-popup-action")},
onHideIdentityChip:function(W){var P;this.set("data.placeholderText",(P=W.hideIdentityChipAction)==null?void 0:P.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var xL=function(){var W=_.b.apply(this,arguments)||this;W.isOpen=!1;W.modern=_.p("web_modern_buttons");W.roundedContainer=!0;W.dropdownButtonOverride=_.p("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;W.inPopupContainer=!1;W.isCommentboxLoading=!1;var P=["image-button","image-poll-button","poll-button"];_.p("enable_quiz_creation")&&P.push("quiz-button");_.p("auto_convert_posts_video_tag")||P.push("video-link-button");W.attachmentButtonIds=P;W.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 W};
_.A(xL,_.b);_.J=xL.prototype;_.J.computeButtonOverride=function(){var W;return((W=this.data)==null?0:W.postOptionsMenu)&&_.p("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.J.configureRendererStamper=function(){var W={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.p("auto_convert_posts_video_tag")||(W["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return W};
_.J.ready=function(){var W=this,P=_.g(this.hostElement).querySelector("#placeholder-area"),x=function(I){W.onOpen(I)};
P.addEventListener("tap",x);P.addEventListener("keypress",x)};
_.J.showButtonEduTooltip=function(){var W,P,x,I,O,B,Y;if(_.p("enable_quiz_creation")&&((W=this.data)==null?0:(P=W.quizButton)==null?0:(x=P.buttonRenderer)==null?0:(I=x.hint)==null?0:(O=I.hintRenderer)==null?0:(B=O.content)==null?0:(Y=B.bubbleHintRenderer)==null?0:Y.text)&&(_.qG.getInstance(),W=Lg(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(W==null?void 0:
W.length)>0)){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.quizButton}});return}var K;if((K=this.data)==null?0:K.imagePollButtonTooltip)if(_.qG.getInstance(),K=Lg(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(K==null?void 0:K.length)>0){this.ytComponentBehavior.resolveCommand(K[0],{form:{element:this.imagePollButton}});return}var Z;_.p("enable_multi_image_post_creation")&&
((Z=this.data)==null?0:Z.multiImageButtonTooltip)&&(_.qG.getInstance(),Z=Lg(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(Z==null?void 0:Z.length)>0&&this.ytComponentBehavior.resolveCommand(Z[0],{form:{element:this.imageButton}}))};
_.J.onCreatePollAction=function(W){_.Q(W,Rwb)&&(this.JSC$13589_commentbox.addedAttachment="poll",this.openDialog())};
_.J.onAddVideoLinkAction=function(W){if(_.Q(W,iWP))this.JSC$13589_commentbox.onAddVideoLink(W)};
_.J.onShowSchedulingPanelCommand=function(W){(W=_.Q(W,C9p))&&this.openSchedulingPanel(W)};
_.J.onCreateImagePollCommand=function(W){_.Q(W,gBk)&&(this.JSC$13589_commentbox.openImagePollComponent(),this.openDialog())};
_.J.onCreateQuizCommand=function(W){_.Q(W,Dc3)&&(this.JSC$13589_commentbox.openQuizComponent(),this.openDialog())};
_.J.openSchedulingPanel=function(W){_.p("enable_post_scheduling")&&(this.openDialog(),this.JSC$13589_commentbox.openSchedulingPanel(W))};
_.J.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.JSC$13589_commentbox.clear(),this.closeDialog())};
_.J.onOpen=function(W){W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||(this.data.prepareAccountEndpoint?_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.closeDialog()};
_.J.onYtCommentboxLoadingStart=function(W){W.stopPropagation();this.isCommentboxLoading=!0};
_.J.onYtCommentboxLoadingEnd=function(W){W.stopPropagation();this.isCommentboxLoading=!1};
_.J.onYtVideoLinkButtonCancel=function(W){W.stopPropagation();this.onOpen(W)};
_.J.onYtVideoLinkSelected=function(W){W.stopPropagation();this.onOpen(W)};
_.J.onIronSelect=function(W){W.stopPropagation();W.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=W.detail.item.value&&(this.accessRestriction?(this.accessRestriction=W.detail.item.value,this.onOpen(W)):this.accessRestriction=W.detail.item.value)};
_.J.onYtNavigate=function(W){this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(this.JSC$13589_commentbox.addedAttachment="image",this.JSC$13589_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.J.onRequestSent=function(W){if(_.p("web_button_rework"))for(var P=_.n(W.detail),x=P.next();!x.done;x=P.next())_.Q(x.value,U_p)&&(this.JSC$13589_commentbox.addedAttachment="image",this.JSC$13589_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.J.openDialog=function(){this.JSC$13589_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13589_commentbox.focus()};
_.J.onPopupClosed=function(){_.qG.getInstance()};
_.J.computeCreationDisabled=function(W){return!!W};
_.J.computeIsCreationDialog=function(W){return!!W&&W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.J.computeDisabledPostButton=function(W){if(!W)return null;W.isDisabled=!0;return W};
_.J.computeIsCreationDialogWithHeader=function(W){return!this.inPopupContainer&&!!W&&!!W.authorText&&W.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.J.computeIsHeaderHidden=function(W,P){return!W||P};
_.J.computeDropdownRendererClasses=function(W){return W?["text-secondary-style"]:[]};
_.J.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var W=_.g(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;W&&W.reset()};
xL.prototype.onPopupClosed=xL.prototype.onPopupClosed;xL.prototype.onRequestSent=xL.prototype.onRequestSent;xL.prototype.onYtNavigate=xL.prototype.onYtNavigate;xL.prototype.onIronSelect=xL.prototype.onIronSelect;xL.prototype.onYtVideoLinkSelected=xL.prototype.onYtVideoLinkSelected;xL.prototype.onYtVideoLinkButtonCancel=xL.prototype.onYtVideoLinkButtonCancel;xL.prototype.onYtCommentboxLoadingEnd=xL.prototype.onYtCommentboxLoadingEnd;xL.prototype.onYtCommentboxLoadingStart=xL.prototype.onYtCommentboxLoadingStart;
xL.prototype.onYtCommentboxDismiss=xL.prototype.onYtCommentboxDismiss;xL.prototype.showButtonEduTooltip=xL.prototype.showButtonEduTooltip;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],xL.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],xL.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],xL.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xL.prototype,"isOpen",void 0);_.f([_.c({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],xL.prototype,"buttonOverride",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xL.prototype,"modern",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xL.prototype,"roundedContainer",void 0);_.f([_.c(),_.l("design:type",Object)],xL.prototype,"dropdownButtonOverride",void 0);_.f([_.c({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.l("design:type",Boolean)],xL.prototype,"creationDisabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],xL.prototype,"enableCreationBox",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.l("design:type",Boolean)],xL.prototype,"isCreationDialog",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xL.prototype,"inPopupContainer",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.l("design:type",Boolean)],xL.prototype,"isCreationDialogWithHeader",void 0);_.f([_.c(),_.l("design:type",Object)],xL.prototype,"accessRestriction",void 0);
_.f([_.c({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.l("design:type",Array)],xL.prototype,"dropdownRendererClasses",void 0);_.f([_.c(),_.l("design:type",Object)],xL.prototype,"isCommentboxLoading",void 0);_.f([_.c(),_.l("design:type",Array)],xL.prototype,"attachmentButtonIds",void 0);_.f([_.BM("#image-button"),_.l("design:type",HTMLElement)],xL.prototype,"imageButton",void 0);
_.f([_.BM("#image-poll-button"),_.l("design:type",HTMLElement)],xL.prototype,"imagePollButton",void 0);_.f([_.BM("#quiz-button"),_.l("design:type",HTMLElement)],xL.prototype,"quizButton",void 0);_.f([_.BM("#commentbox"),_.l("design:type",Object)],xL.prototype,"JSC$13589_commentbox",void 0);_.f([_.OZ("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xL.prototype,"showButtonEduTooltip",null);
_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xL.prototype,"onYtCommentboxDismiss",null);_.f([_.I7("yt-commentbox-loading-start"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xL.prototype,"onYtCommentboxLoadingStart",null);
_.f([_.I7("yt-commentbox-loading-end"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xL.prototype,"onYtCommentboxLoadingEnd",null);_.f([_.I7("yt-video-link-button-cancel"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xL.prototype,"onYtVideoLinkButtonCancel",null);
_.f([_.I7("yt-video-link-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xL.prototype,"onYtVideoLinkSelected",null);_.f([_.I7("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xL.prototype,"onIronSelect",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xL.prototype,"onYtNavigate",null);
_.f([_.I7("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xL.prototype,"onRequestSent",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xL.prototype,"onPopupClosed",null);xL=_.f([_.U({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],xL);
_.X(xL,"ytd-backstage-post-dialog-renderer",function(){if(A4p!==void 0)return A4p;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return A4p=W},{mode:1});var O9Z;var Jim;var IX=function(){return _.b.apply(this,arguments)||this};
_.A(IX,_.b);_.J=IX.prototype;_.J.computeHeartButtonStyle=function(W){return(W==null?0:W.styleType)?W.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onYtButtonTap=function(){if(this.data.isEnabled){var W=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(W=this.getEndpoint(W))&&_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}})}else(W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(W)};
_.J.toggle=function(W){this.set("data.isHearted",W!==void 0?W:!this.data.isHearted)};
_.J.getEndpoint=function(W){var P,x=(P=this.data)==null?void 0:P.heartEndpoint,I;P=(I=this.data)==null?void 0:I.unheartEndpoint;if(x&&P)return W?P:x};
_.J.computeButtonAccessibility=function(W,P){var x,I,O=W==null?void 0:(x=W.heartedAccessibility)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label,B,Y;W=W==null?void 0:(B=W.unheartedAccessibility)==null?void 0:(Y=B.accessibilityData)==null?void 0:Y.label;return P?O:W};
_.N1.Object.defineProperties(IX.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 W;return _.p("kevlar_system_icons")&&!((W=this.data)==null||!W.isHearted)}}});
IX.prototype.onYtButtonTap=IX.prototype.onYtButtonTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],IX.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],IX.prototype,"data",void 0);_.f([_.H("data.isHearted"),_.l("design:type",Object),_.l("design:paramtypes",[])],IX.prototype,"heartTooltip",null);
_.f([_.H("data.isHearted"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],IX.prototype,"iconFilled",null);_.f([_.c({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.l("design:type",String)],IX.prototype,"buttonAccessibility",void 0);_.f([_.c({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],IX.prototype,"heartButtonStyle",void 0);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IX.prototype,"onYtButtonTap",null);IX=_.f([_.U({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],IX);
_.X(IX,"ytd-creator-heart-renderer",function(){if(Jim!==void 0)return Jim;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Jim=W},{mode:1});var Od=function(){var W=_.b.apply(this,arguments)||this;W.hasCreatorReply=!1;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};W.forceIconButton=!_.p("web_modern_buttons");W.modern=_.p("web_modern_buttons");W.buttonTooltipPosition="bottom";W.systemIcons=_.p("kevlar_system_icons");W.replyDialog=null;return W};
_.A(Od,_.b);_.J=Od.prototype;
_.J.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]]"}}}}}};
_.J.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.J.dataChange=function(){this.replyDialog&&_.g(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var W,P,x;this.isLiked=this.systemIcons&&!!((W=this.data)==null?0:(P=W.likeButton)==null?0:(x=P.toggleButtonRenderer)==null?0:x.isToggled)};
_.J.computeShowVoteCountBeginning=function(W,P){return W===void 0||P===void 0?!0:W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!P&&this.ytRendererBehavior.getSimpleString(P)!=="0"};
_.J.computeShowVoteCountEnd=function(W,P){return W===void 0||P===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!P&&this.ytRendererBehavior.getSimpleString(P)!=="0"};
_.J.computeShowCommentCount=function(W,P){return W===void 0||P===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!P&&this.ytRendererBehavior.getSimpleString(P)!=="0"};
_.J.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.J.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.J.showReplyDialog=function(W){W&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.g(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=W,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.J.onRequestSent=function(W){if(_.p("web_button_rework")){W=_.n(W.detail);for(var P=W.next();!P.done;P=W.next())(P=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",P.value))&&this.showReplyDialog(P)}};
_.J.onYtNavigate=function(W){var P,x;(W=(P=_.Q(W.detail.endpoint,_.fgm))==null?void 0:(x=P.dialog)==null?void 0:x.commentReplyDialogRenderer)&&this.showReplyDialog(W)};
_.J.onYtServiceRequestSent=function(W,P){W.stopPropagation();if(P.actions)for(W=0;W<P.actions.length;W++){var x=_.Q(P.actions[W],LS3);x&&this.handleUpdateCommentVoteAction(x)}};
_.J.handleUpdateCommentVoteAction=function(W){this.voteCount=W.voteCount||_.bx("0");W.voteStatus==="LIKE"?this.JSC$13600_ytdDislikeToggleButtonRenderer.toggle(!1):W.voteStatus==="DISLIKE"?this.JSC$13600_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13600_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13600_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.J.computeReplyButtonHidden=function(W){return W};
_.J.computeReplyButtonBeginning=function(W){return(W==null?0:W.replyButton)&&W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.J.computeReplyButtonEnd=function(W){return(W==null?0:W.replyButton)&&W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.J.computeActionButtonStyle=function(W){return(W==null?0:W.style)?W.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.J.onYtToggleButton=function(W){var P,x;this.isLiked=this.systemIcons&&!!((P=W.detail)==null?0:(x=P.actions)==null?0:x.like)};
Od.prototype.onYtToggleButton=Od.prototype.onYtToggleButton;Od.prototype.onButtonTooltipPositionChanged=Od.prototype.onButtonTooltipPositionChanged;Od.prototype.onYtServiceRequestSent=Od.prototype.onYtServiceRequestSent;Od.prototype.onYtNavigate=Od.prototype.onYtNavigate;Od.prototype.onRequestSent=Od.prototype.onRequestSent;Od.prototype.onYtCommentboxDismiss=Od.prototype.onYtCommentboxDismiss;Od.prototype.dataChange=Od.prototype.dataChange;
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Od.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Od.prototype,"voteCount",void 0);_.f([_.c(),_.l("design:type",Object)],Od.prototype,"commentCount",void 0);_.f([_.c(),_.l("design:type",Object)],Od.prototype,"replyThumbnail",void 0);
_.f([_.c(),_.l("design:type",Object)],Od.prototype,"hasCreatorReply",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Od.prototype,"enableCreationBox",void 0);_.f([_.c({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],Od.prototype,"actionButtonsStyle",void 0);_.f([_.c({computed:"computeReplyButtonBeginning(data)"}),_.l("design:type",Object)],Od.prototype,"replyButtonBeginning",void 0);
_.f([_.c({computed:"computeReplyButtonEnd(data)"}),_.l("design:type",Object)],Od.prototype,"replyButtonEnd",void 0);_.f([_.c(),_.l("design:type",Object)],Od.prototype,"buttonOverrides",void 0);_.f([_.c(),_.l("design:type",Object)],Od.prototype,"replyButtonOverrides",void 0);_.f([_.c(),_.l("design:type",Object)],Od.prototype,"forceIconButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Od.prototype,"useCommentIcon",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Od.prototype,"modern",void 0);_.f([_.c(),_.l("design:type",Object)],Od.prototype,"buttonTooltipPosition",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Od.prototype,"systemIcons",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Od.prototype,"isLiked",void 0);_.f([_.BM("ytd-button-renderer"),_.l("design:type",Object)],Od.prototype,"ytdReplyButtonRenderer",void 0);
_.f([_.BM("#like-button"),_.l("design:type",Object)],Od.prototype,"JSC$13600_ytdLikeToggleButtonRenderer",void 0);_.f([_.BM("#dislike-button"),_.l("design:type",Object)],Od.prototype,"JSC$13600_ytdDislikeToggleButtonRenderer",void 0);_.f([_.BM("#reply-dialog"),_.l("design:type",HTMLElement)],Od.prototype,"replyDialogElement",void 0);_.f([_.BM("#reply-button"),_.l("design:type",HTMLElement)],Od.prototype,"replyButtonElement",void 0);
_.f([_.BM("#reply-button-end"),_.l("design:type",HTMLElement)],Od.prototype,"replyButtonEndElement",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Od.prototype,"dataChange",null);_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Od.prototype,"onYtCommentboxDismiss",null);
_.f([_.I7("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Od.prototype,"onRequestSent",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Od.prototype,"onYtNavigate",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],Od.prototype,"onYtServiceRequestSent",null);_.f([_.OZ("buttonTooltipPosition"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Od.prototype,"onButtonTooltipPositionChanged",null);
_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Od.prototype,"onYtToggleButton",null);Od=_.f([_.U({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Od);
_.X(Od,"ytd-comment-action-buttons-renderer",function(){if(O9Z!==void 0)return O9Z;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return O9Z=W},{mode:1});var Bzw;var Js=function(){return _.b.apply(this,arguments)||this};
_.A(Js,_.b);Js.prototype.focus=function(){_.g(this.hostElement).querySelector("#commentbox").focus()};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Js.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Js.prototype,"zeroStepChannelCreationRenderer",void 0);Js=_.f([_.U({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Js);
_.X(Js,"ytd-comment-dialog-renderer",function(){if(Bzw!==void 0)return Bzw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Bzw=W},{mode:1});var n0p;var Bc=function(){var W=_.b.apply(this,arguments)||this;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};return W};
_.A(Bc,_.b);_.J=Bc.prototype;_.J.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.J.detached=function(){this.replyBox&&this.replyBox.remove()};
_.J.showReplyDialog=function(W){if(W){var P=this.replyBox;P||(P=document.createElement("ytd-comment-reply-dialog-renderer"),P.id="replybox",_.g(this.replyDialogDiv).appendChild(P));P.data=W;this.replyDialogDiv.hidden=!1;P.openDialog()}};
_.J.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.J.onYtServiceRequestSent=function(W,P){W.stopPropagation();if(P.actions)for(var x=0;x<P.actions.length;x++){var I=_.Q(P.actions[x],LS3);I?this.handleUpdateCommentVoteAction(I):W.target===this.heartButton&&this.toggleHeartState()}};
_.J.handleUpdateCommentVoteAction=function(W){var P;(P=this.toolbarState)!=null&&P.key&&this.ytdReduxBehavior.dispatch(_.$s("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:W.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":W.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.J.toggleHeartState=function(){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.$s("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.N1.Object.defineProperties(Bc.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return(((W=this.toolbarState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(P=this.toolbarData)==null?void 0:P.likeCountLiked:(x=this.toolbarData)==null?void 0:x.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand)!==void 0&&!_.p("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,P=_.Q((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.Ct),x,I,O,B,Y,K,Z,d,v;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((x=this.toolbarSharedData)==null||!x.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((I=this.toolbarState)==null?void 0:I.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:P!=null?P:_.Q((O=this.toolbarSurface)==null?void 0:O.likeCommand,_.Ct),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:P!=null?P:_.Q((B=this.toolbarSurface)==null?void 0:B.unlikeCommand,_.Ct),defaultCommand:this.isVisiblyDisabled?_.Q((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.Ct):void 0,defaultTooltip:(K=this.toolbarData)==null?void 0:K.likeInactiveTooltip,toggledTooltip:(Z=this.toolbarData)==null?void 0:Z.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(d=this.toolbarData)==null?void 0:d.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(v=this.toolbarSharedData)==null?void 0:v.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,P=_.Q((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.Ct),x,I,O,B,Y,K,Z,d,v,m;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((x=this.toolbarSharedData)==null||!x.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((I=this.toolbarState)==null?void 0:I.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:P!=null?P:_.Q((O=this.toolbarSurface)==null?void 0:O.dislikeCommand,_.Ct),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:P!=null?P:_.Q((B=this.toolbarSurface)==null?void 0:B.undislikeCommand,_.Ct),defaultCommand:this.isVisiblyDisabled?_.Q((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.Ct):void 0,defaultTooltip:(K=this.toolbarData)==null?void 0:K.dislikeInactiveTooltip,toggledTooltip:(Z=this.toolbarData)==null?void 0:
Z.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(d=this.toolbarSharedData)==null?void 0:d.dislikeReplyButtonA11y:(v=this.toolbarSharedData)==null?void 0:v.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var W,P,x;if(((W=this.toolbarState)==null?void 0:W.heartState)!==void 0&&((P=this.toolbarState)==null?void 0:P.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((x=this.toolbarState)==null?void 0:x.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var I,O,B,Y,K,Z,d,v,m,t,C,z,D,w;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(I=this.toolbarData)==null?void 0:I.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((B=this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.Q((Z=this.toolbarSurface)==null?void 0:Z.heartCommand,
_.Ct),unheartEndpoint:this.isVisiblyDisabled?void 0:_.Q((d=this.toolbarSurface)==null?void 0:d.unheartCommand,_.Ct),disabledEndpoint:this.isVisiblyDisabled?_.Q((v=this.toolbarSurface)==null?void 0:v.commentDisabledActionCommand,_.Ct):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(m=this.toolbarData)==null?void 0:m.heartActiveTooltip,unheartedTooltip:(t=this.toolbarData)==null?void 0:t.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((C=
this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(z=this.toolbarSharedData)==null?void 0:z.unheartButtonA11y:(D=this.toolbarSharedData)==null?void 0:D.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.toolbarSurface)==null||!W.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(W=this.commentStrings)==null?void 0:W.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.Q((P=this.toolbarSurface)==null?void 0:P.replyCommand,_.Ct),command:this.isVisiblyDisabled?_.Q((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand,
_.Ct):this.isSubscribersOnlyComments?_.Q((I=this.toolbarSurface)==null?void 0:I.subscribersOnlySnackbarCommand,_.Ct):void 0}}}});
Bc.prototype.onYtServiceRequestSent=Bc.prototype.onYtServiceRequestSent;Bc.prototype.hideReplyDialogDiv=Bc.prototype.hideReplyDialogDiv;_.f([_.c(),_.l("design:type",Object)],Bc.prototype,"commentStrings",void 0);_.f([_.c(),_.l("design:type",Boolean)],Bc.prototype,"isReply",void 0);_.f([_.c(),_.l("design:type",Object)],Bc.prototype,"toolbarData",void 0);_.f([_.c(),_.l("design:type",Object)],Bc.prototype,"toolbarSharedData",void 0);
_.f([_.c(),_.l("design:type",String)],Bc.prototype,"toolbarStateKey",void 0);_.f([_.c(),_.l("design:type",String)],Bc.prototype,"toolbarSurfaceKey",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Bc.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Bc.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.BM("#reply-dialog"),_.l("design:type",HTMLElement)],Bc.prototype,"replyDialogDiv",void 0);_.f([_.BM("#replybox"),_.l("design:type",Object)],Bc.prototype,"replyBox",void 0);_.f([_.BM("ytd-creator-heart-renderer"),_.l("design:type",Object)],Bc.prototype,"heartButton",void 0);_.f([_.c({selector:function(W,P){return _.Jb(W.entities,"engagementToolbarStateEntityPayload",P)},
selectorArgs:["toolbarStateKey"]}),_.l("design:type",Object)],Bc.prototype,"toolbarState",void 0);_.f([_.c({selector:gGS,selectorArgs:["toolbarSurfaceKey"]}),_.l("design:type",Object)],Bc.prototype,"toolbarSurface",void 0);_.f([_.c(),_.l("design:type",Object)],Bc.prototype,"buttonOverrides",void 0);_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bc.prototype,"hideReplyDialogDiv",null);
_.f([_.H("toolbarData","toolbarState"),_.l("design:type",String),_.l("design:paramtypes",[])],Bc.prototype,"likeCount",null);_.f([_.H("likeCount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bc.prototype,"showLikeCount",null);_.f([_.H("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bc.prototype,"isVisiblyDisabled",null);_.f([_.H("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bc.prototype,"isSubscribersOnlyComments",null);
_.f([_.H("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bc.prototype,"hasPrepareAccountCommand",null);_.f([_.H("toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bc.prototype,"likeToggleButtonRenderer",null);_.f([_.H("isReply","toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bc.prototype,"dislikeToggleButtonRenderer",null);
_.f([_.H("toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bc.prototype,"creatorHeartSupportedRenderer",null);_.f([_.H("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bc.prototype,"hasReplyCommand",null);_.f([_.H("toolbarSurface","commentStrings","isVisiblyDisabled"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bc.prototype,"replyButtonRenderer",null);
_.f([_.c(),_.l("design:type",Object)],Bc.prototype,"replyButtonOverrides",void 0);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],Bc.prototype,"onYtServiceRequestSent",null);Bc=_.f([_.U({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Bc);
_.X(Bc,"ytd-comment-engagement-bar",function(){if(n0p!==void 0)return n0p;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return n0p=W},{mode:1});var YOp;var nq=function(){return _.b.apply(this,arguments)||this};
_.A(nq,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nq.prototype,"data",void 0);nq=_.f([_.U({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],nq);
_.X(nq,"ytd-comment-inline-thumbnail-renderer",function(){if(YOp!==void 0)return YOp;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return YOp=W},{mode:1});var yiM;var YL=function(){return _.b.apply(this,arguments)||this};
_.A(YL,_.b);_.f([_.c(),_.l("design:type",Object)],YL.prototype,"data",void 0);YL=_.f([_.U({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],YL);
_.X(YL,"ytd-comment-pause-composer-renderer",function(){if(yiM!==void 0)return yiM;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return yiM=W},{mode:1});var KVZ;var Z9P;var yJ=function(){var W=_.b.apply(this,arguments)||this;W.isOpen=!1;return W};
_.A(yJ,_.b);_.J=yJ.prototype;_.J.dataChanged=function(){this.isOpen=!1};
_.J.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.J.focus=function(){this.JSC$13626_commentbox.focus()};
_.J.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.J.openDialog=function(){this.isOpen=!0;this.JSC$13626_commentbox.focus();this.JSC$13626_commentbox.maybeHeightChanged()};
yJ.prototype.onYtCommentboxDismiss=yJ.prototype.onYtCommentboxDismiss;yJ.prototype.dataChanged=yJ.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yJ.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],yJ.prototype,"isOpen",void 0);_.f([_.BM("#commentbox"),_.l("design:type",Object)],yJ.prototype,"JSC$13626_commentbox",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yJ.prototype,"dataChanged",null);_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],yJ.prototype,"onYtCommentboxDismiss",null);yJ=_.f([_.U({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],yJ);
_.X(yJ,"ytd-comment-reply-dialog-renderer",function(){if(Z9P!==void 0)return Z9P;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Z9P=W},{mode:1});var o0w;var Kq=function(){return _.b.apply(this,arguments)||this};
_.A(Kq,_.b);_.N1.Object.defineProperties(Kq.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.data)==null?void 0:(P=W.icon)==null?void 0:P.iconType;return x?"yt-icons:"+x.toLowerCase():null}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Kq.prototype,"data",void 0);_.f([_.c(),_.H("data.icon"),_.l("design:type",Object),_.l("design:paramtypes",[])],Kq.prototype,"icon",null);Kq=_.f([_.U({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Kq);
_.X(Kq,"ytd-pinned-comment-badge-renderer",function(){if(o0w!==void 0)return o0w;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return o0w=W},{mode:1});var SOi;var unz={},dyb={input:!0,meta:!0,br:!0,link:!0,img:!0},Zc=null;unz.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(){Zc==null&&(Zc=document.createElement("tp-yt-paper-tooltip"),Zc.offset=8,Zc.fitToVisibleBounds=!0)},
onMouseOver_:function(W){if(W=_.MT(W.target,function(O){return O==this||O.getAttribute&&O.getAttribute("shared-tooltip-text")}.bind(this),!0)){var P=W.getAttribute("shared-tooltip-text");
if(P){var x=this,I=null;W!=this&&(W.tagName.toLowerCase()in dyb?x=W.parentElement:x=W,W.id&&(I=W.id));this.polymerController.createTooltipIfRequired_();if(Zc.parentElement!=x||Zc.for!=I)(0,_.Fy)(Zc).textContent=P,_.g(x).appendChild(Zc),Zc.for=I,Zc.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Zc.position=this.polymerController.sharedTooltipPosition}}}};var oX=function(){return _.b.apply(this,arguments)||this};
_.A(oX,_.b);oX.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]]"}}}}}};
oX.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
oX.prototype.colorChanged=function(){var W,P,x,I=(W=this.data)==null?void 0:(P=W.color)==null?void 0:(x=P.basicColorPaletteData)==null?void 0:x.foregroundBodyColor;I&&(this.rgbBadgeColor=_.j9(I));_.g(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
oX.prototype.tooltipChanged=function(){var W;((W=this.data)==null?0:W.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
oX.prototype.tooltipChanged=oX.prototype.tooltipChanged;oX.prototype.colorChanged=oX.prototype.colorChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],oX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(unz.YtSharedTooltipBehavior),_.l("design:type",Object)],oX.prototype,"ytSharedTooltipBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],oX.prototype,"data",void 0);
_.f([_.c({value:"#4285F4"}),_.l("design:type",String)],oX.prototype,"rgbBadgeColor",void 0);_.f([_.OZ("data.color"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oX.prototype,"colorChanged",null);_.f([_.OZ("data.tooltip"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oX.prototype,"tooltipChanged",null);oX=_.f([_.U({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],oX);
_.X(oX,"ytd-sponsor-comment-badge-renderer",function(){if(SOi!==void 0)return SOi;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return SOi=W},{mode:1});var saw;var v03;var Sb=function(){return _.b.apply(this,arguments)||this};
_.A(Sb,_.b);Sb.prototype.computeState=function(W){switch(W==null?void 0:W.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"}};
Sb.prototype.updateStateIdentifier=function(W){if(this.viewModel.triStateKey){var P=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.$s("triStateButtonStateEntityPayload",P,{key:P,stateIdentifier:W}))}};
Sb.prototype.onClick=function(){var W=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(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.N1.Object.defineProperties(Sb.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 W;return((W=this.data)==null?void 0:W.buttonText)||""}}});
_.f([_.c(),_.l("design:type",Object)],Sb.prototype,"viewModel",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Sb.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Sb.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.f([_.c({selector:D8W,selectorArgs:["viewModel.triStateKey"]}),_.l("design:type",Object)],Sb.prototype,"triStateButtonStateEntity",void 0);
_.f([_.c({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.l("design:type",String)],Sb.prototype,"state",void 0);_.f([_.H("viewModel","state"),_.l("design:type",Object),_.l("design:paramtypes",[])],Sb.prototype,"data",null);_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],Sb.prototype,"buttonText",null);Sb=_.f([_.U({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Sb);
_.X(Sb,"ytd-tri-state-button-view-model",function(){if(v03!==void 0)return v03;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return v03=W},{mode:1});var myd;var V6k;var uj=function(){var W=_.b.apply(this,arguments)||this;W.defaultIconToFilled=!_.p("kevlar_fill_comment_chip_icon_killswitch");return W};
_.A(uj,_.b);uj.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
uj.prototype.dataChanged=function(){if(this.data){var W,P;((W=this.data.chipColorPalette)==null?0:W.backgroundColor)&&((P=this.data.chipColorPalette)==null?0:P.foregroundTitleColor)&&_.qa(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Qy(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Qy(this.data.chipColorPalette.foregroundTitleColor)});var x;((x=this.data)==null?0:x.command)?(_.qa(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.qa(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}};
uj.prototype.onTap=function(){var W;if(this.data&&(W=this.data)!=null&&W.command){var P;this.ytComponentBehavior.resolveCommand((P=this.data)==null?void 0:P.command)}};
uj.prototype.getIconSize=function(){return _.p("kevlar_fill_comment_chip_icon_killswitch")?24:12};
uj.prototype.onTap=uj.prototype.onTap;uj.prototype.dataChanged=uj.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],uj.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.tu),_.l("design:type",Object)],uj.prototype,"ironA11yKeysBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uj.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],uj.prototype,"basePriceText",void 0);_.f([_.c(),_.l("design:type",Object)],uj.prototype,"chipIcon",void 0);_.f([_.c(),_.l("design:type",Object)],uj.prototype,"defaultIconToFilled",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uj.prototype,"dataChanged",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uj.prototype,"onTap",null);
uj=_.f([_.jd({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],uj);
_.X(uj,"yt-pdg-comment-chip-renderer",function(){if(V6k===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;myd===void 0&&(myd=document.createElement("template"));var I=myd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);V6k=W}W=V6k;return W},{mode:2});var dd=function(){var W=_.b.apply(this,arguments)||this;W.useSmallAvatars=_.p("small_avatars_for_comments");W.webWatchCompactComments=_.p("web_watch_compact_comments");W.editDialog=null;return W};
_.A(dd,_.b);_.J=dd.prototype;_.J.onShow=function(){_.An("cmv",void 0,"wn_comments")};
_.J.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"}}}};
_.J.detached=function(){this.editDialog=null;this.expander.reset()};
_.J.updateBackgroundColor=function(){if(this.backgroundColor){var W={"--ytd-comment-paid-background-color":_.Qy(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.qa(this.hostElement,W)}else _.qa(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.J.resetExpander=function(){var W;(W=this.expander)==null||W.reset()};
_.J.openEditDialog=function(W){W.dialog&&(this.editDialog=W.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.J.onYtNavigate=function(W){var P=W.detail.endpoint;if(P=_.Q(P,_.Nll)||_.Q(P,_.lgA))W.stopPropagation(),this.openEditDialog(P)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null;_.qa(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.J.onAuthorThumbnailClicked=function(){var W=this;_.p("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(P,x){W.onAuthorThumbnailEndpointSuccess(x)},
onServerError:function(P,x){_.ge(new _.mW("Failed to resolve the command",x))}}})};
_.J.onAuthorThumbnailEndpointSuccess=function(W){if((W=W==null?void 0:W.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(W,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();W=W==null?void 0:W.clickTrackingParams;var P=_.G7();W&&P&&_.YY().graftServerVe(W,P)}};
_.J.logScreenVe=function(){_.JN(_.YY(),66557)};
_.J.onYtCommentboxResize=function(W){var P;(W==null?0:(P=W.detail)==null?0:P.height)&&_.qa(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":W.detail.height+"px"})};
_.N1.Object.defineProperties(dd.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 W,P=(W=this.commentEntity)==null?void 0:W.author;return P&&(P.isCreator||P.isVerified||P.isArtist)?{renderer:{authorEndpoint:P.channelPageEndpoint?_.Q(P.channelPageEndpoint,_.Ct):_.Q(P.channelCommand,_.Ct),authorText:{runs:[{text:P.displayName}]},color:P.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:P.isArtist?{iconType:"AUDIO_BADGE"}:
P.isVerified?{iconType:P.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:P.isArtist||P.isVerified?P.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var W,P=(W=this.commentEntity)==null?void 0:W.author;return P!=null&&P.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:P.sponsorBadgeUrl}]},tooltip:P.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return _.Q((W=this.commentSurfaceEntity)==null?void 0:W.pdgCommentChip,_.tYw)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&((W=this.voiceReplyContainerViewModel)==null?void 0:W.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return _.Q((W=this.commentSurfaceEntity)==null?void 0:W.voiceReplyContainerViewModel,BNA)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&(W=this.voiceReplyContainerViewModel)!=null&&W.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=(W=this.commentSurfaceEntity)==null?void 0:W.commentBackgroundColor)!=null?P:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.p("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var W,P;return(((W=this.commentEntity)==null?void 0:(P=W.properties)==null?void 0:P.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,P;if(_.p("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(P=W.author)==null?0:P.profileCardEndpoint)&&this.viewModel.allowProfileCard){var x,I;return _.Q((x=this.commentEntity)==null?void 0:(I=x.author)==null?void 0:I.profileCardEndpoint,_.Ct)}var O,B;return _.Q((O=this.commentEntity)==null?void 0:(B=O.avatar)==null?void 0:B.endpoint,_.Ct)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,P;if(_.p("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(P=W.author)==null?0:P.channelPageEndpoint)){var x,I;return _.Q((x=this.commentEntity)==null?void 0:(I=x.author)==null?void 0:I.channelPageEndpoint,_.Ct)}var O,B;return _.Q((O=this.commentEntity)==null?void 0:(B=O.avatar)==null?void 0:B.endpoint,_.Ct)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I,O=(W=this.commentEntity)==null?void 0:(P=W.avatar)==null?void 0:(x=P.image)==null?void 0:(I=x.sources)==null?void 0:I[0];return O?{thumbnails:[{url:O.url,width:O.width,height:O.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.commentEntity)==null?0:(P=W.author)==null?0:P.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.commentEntity)==null?void 0:(P=W.author)==null?void 0:P.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.commentEntity)==null?void 0:(P=W.properties)==null?void 0:P.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.Q((W=this.commentSurfaceEntity)==null?void 0:W.publishedTimeCommand,_.Ct)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var W,P;if(((W=this.commentEntity)==null?0:W.translatedContent)&&((P=this.translateButtonState)==null?void 0:P.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var x;if((x=this.voiceReplyContainerViewModel)==null?0:x.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var I,O;return((I=this.commentEntity)==null?void 0:(O=I.properties)==null?void 0:O.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.commentSharedEntity)==null?void 0:(P=W.strings)==null?void 0:P.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.commentSharedEntity)==null?void 0:(P=W.strings)==null?void 0:P.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentEntity)==null||!W.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var W,P,x=(P=_.Q((W=this.viewModel)==null?void 0:W.translateButton,J6k))!=null?P:{},I,O,B,Y,K,Z,d,v,m,t,C;return Object.assign({},x,{untoggledStateData:Object.assign({},x.untoggledStateData,{buttonText:(I=this.commentEntity)==null?void 0:(O=I.translateData)==null?void 0:O.text}),togglingStateData:Object.assign({},x.togglingStateData,{buttonText:(B=this.commentSharedEntity)==null?
void 0:(Y=B.strings)==null?void 0:Y.translatingText}),toggledStateData:Object.assign({},x.toggledStateData,{buttonText:(K=this.commentSharedEntity)==null?void 0:(Z=K.strings)==null?void 0:Z.seeOriginalText}),transitionCommand:((d=this.commentEntity)==null?0:d.translatedContent)?void 0:_.Q((v=this.commentEntity)==null?void 0:(m=v.translateData)==null?void 0:m.translateComment,_.Ct),triStateKey:(t=this.commentEntity)==null?void 0:(C=t.properties)==null?void 0:C.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((P=_.Q(_.Q((W=this.toolbarSurface)==null?void 0:W.menuCommand,_.Ct),Tlw))==null?void 0:(x=P.menu)==null?void 0:x.menuRenderer)||null}}});
dd.prototype.onYtCommentboxResize=dd.prototype.onYtCommentboxResize;dd.prototype.onYtCommentboxDismiss=dd.prototype.onYtCommentboxDismiss;dd.prototype.onYtNavigate=dd.prototype.onYtNavigate;dd.prototype.resetExpander=dd.prototype.resetExpander;dd.prototype.updateBackgroundColor=dd.prototype.updateBackgroundColor;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],dd.prototype,"ytdReduxBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],dd.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],dd.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("#author-thumbnail > button"),_.l("design:type",HTMLElement)],dd.prototype,"authorThumbnailAnchor",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dd.prototype,"linked",null);
_.f([_.H("viewModel","linked"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"linkedCommentBadge",null);_.f([_.c({reflectToAttribute:!0}),_.H("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dd.prototype,"pinned",null);_.f([_.H("viewModel","pinned"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"pinnedCommentBadge",null);
_.f([_.H("commentEntity","commentSharedEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"authorCommentBadge",null);_.f([_.c({reflectToAttribute:!0}),_.H("authorCommentBadge"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"hasAuthorBadge",null);_.f([_.H("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"sponsorCommentBadge",null);
_.f([_.c({reflectToAttribute:!0}),_.H("sponsorCommentBadge"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"hasSponsorBadge",null);_.f([_.H("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"pdgCommentChipRenderer",null);_.f([_.c({reflectToAttribute:!0}),_.H("voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"hasVoiceReply",null);
_.f([_.H("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"voiceReplyContainerViewModel",null);_.f([_.H("voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"voiceReplyUnavailableText",null);_.f([_.c(),_.l("design:type",Object)],dd.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"viewModel",null);
_.f([_.c({selector:function(W,P){return _.Jb(W.entities,"commentSharedEntityPayload",P)},
selectorArgs:["viewModel.sharedKey"]}),_.l("design:type",Object)],dd.prototype,"commentSharedEntity",void 0);_.f([_.c({selector:function(W,P){return _.Jb(W.entities,"commentEntityPayload",P)},
selectorArgs:["viewModel.commentKey"]}),_.l("design:type",Object)],dd.prototype,"commentEntity",void 0);_.f([_.c({selector:function(W,P){return _.Jb(W.entities,"commentSurfaceEntityPayload",P)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.l("design:type",Object)],dd.prototype,"commentSurfaceEntity",void 0);_.f([_.c({selector:gGS,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.l("design:type",Object)],dd.prototype,"toolbarSurface",void 0);_.f([_.c({selector:D8W,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.l("design:type",Object)],dd.prototype,"translateButtonState",void 0);
_.f([_.H("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"backgroundColor",null);_.f([_.c({reflectToAttribute:!0}),_.H("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dd.prototype,"optimalReadingWidthComments",null);_.f([_.BM("ytd-expander"),_.l("design:type",Object)],dd.prototype,"expander",void 0);
_.f([_.OZ("backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dd.prototype,"updateBackgroundColor",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],dd.prototype,"useSmallAvatars",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],dd.prototype,"webWatchCompactComments",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"isReply",null);
_.f([_.H("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"authorThumbnailEndpoint",null);_.f([_.H("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"authorNameEndpoint",null);_.f([_.H("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"authorThumbnail",null);_.f([_.H("commentEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],dd.prototype,"authorTextClass",null);
_.f([_.H("commentEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],dd.prototype,"authorChannelName",null);_.f([_.H("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"publishedTime",null);_.f([_.H("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"publishedTimeCommand",null);
_.f([_.H("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"contentText",null);_.f([_.OZ("contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dd.prototype,"resetExpander",null);_.f([_.H("commentEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dd.prototype,"shouldShowReadMoreInitially",null);
_.f([_.H("commentSharedEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],dd.prototype,"expandText",null);_.f([_.H("commentSharedEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],dd.prototype,"collapseText",null);_.f([_.H("commentEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dd.prototype,"shouldShowTranslateButton",null);
_.f([_.H("commentEntity","commentSharedEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"translateButton",null);_.f([_.H("toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],dd.prototype,"overflowMenuRenderer",null);_.f([_.c(),_.l("design:type",Object)],dd.prototype,"editDialog",void 0);_.f([_.BM("ytd-comment-dialog-renderer"),_.l("design:type",Object)],dd.prototype,"editCommentDialogContainer",void 0);
_.f([_.BM("ytd-comment-reply-dialog-renderer"),_.l("design:type",Object)],dd.prototype,"editReplyDialogContainer",void 0);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dd.prototype,"onYtNavigate",null);_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dd.prototype,"onYtCommentboxDismiss",null);
_.f([_.I7("yt-commentbox-resize"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dd.prototype,"onYtCommentboxResize",null);dd=_.f([_.U({disableElementRegistration:!0,is:"ytd-comment-view-model"})],dd);
_.X(dd,"ytd-comment-view-model",function(){if(saw!==void 0)return saw;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return saw=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var sd=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_modern_buttons");W.isWatchGrid=_.p("kevlar_watch_grid");W.buttonOverrides={style:"call-to-action"};W.JSC$13672_spinnerEl=null;return W};
_.A(sd,_.b);_.J=sd.prototype;_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.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]]"}}}}}};
_.J.attached=function(){this.isShowRepliesVisible=!0};
_.J.dataChanged=function(){var W=this.expanderContents;W&&(W.hidden=!0);this.isLoading=!1};
_.J.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.J.isLoadingChanged=function(){this.isLoading&&!this.JSC$13672_spinnerEl&&(this.JSC$13672_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.g(this.expanderContents).appendChild(this.JSC$13672_spinnerEl));this.JSC$13672_spinnerEl&&(this.JSC$13672_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var W;(W=this.contents)==null||W.classList.remove("reloading")}};
_.J.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var W=_.Q(this.data.viewReplies,_.w6);W&&this.ytRendererBehavior.logExplicitClick(W)};
_.J.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var W=_.Q(this.data.hideReplies,_.w6);W&&this.ytRendererBehavior.logExplicitClick(W)};
_.J.isShowMoreChanged=function(){var W=_.g(this.hostElement).querySelector("#expander-contents");W&&(W.hidden=this.isShowRepliesVisible)};
_.J.computeAlign=function(){if(this.modern){var W;return!((W=this.data)==null?0:W.viewRepliesCreatorThumbnail)}};
_.N1.Object.defineProperties(sd.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var W,P=(W=this.data)==null?void 0:W.contents;return!!P&&P.length>0&&!!P[P.length-1].continuationItemRenderer}}});
sd.prototype.isShowMoreChanged=sd.prototype.isShowMoreChanged;sd.prototype.isLoadingChanged=sd.prototype.isLoadingChanged;sd.prototype.triggerFirstContinuation=sd.prototype.triggerFirstContinuation;sd.prototype.dataChanged=sd.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.Dv),_.l("design:type",Object)],sd.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sd.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sd.prototype,"modern",void 0);_.f([_.c(),_.l("design:type",Boolean)],sd.prototype,"isLoading",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],sd.prototype,"isShowRepliesVisible",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],sd.prototype,"useNewFormatting",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sd.prototype,"isWatchGrid",void 0);_.f([_.c(),_.l("design:type",Object)],sd.prototype,"buttonOverrides",void 0);_.f([_.BM("#expander-contents"),_.l("design:type",HTMLElement)],sd.prototype,"expanderContents",void 0);_.f([_.BM("ytd-continuation-item-renderer"),_.l("design:type",Object)],sd.prototype,"continuationItemRenderer",void 0);_.f([_.BM("#contents"),_.l("design:type",HTMLElement)],sd.prototype,"contents",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sd.prototype,"dataChanged",null);_.f([_.H("data.contents"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],sd.prototype,"hasContinuation",null);_.f([_.I7("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sd.prototype,"triggerFirstContinuation",null);
_.f([_.OZ("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sd.prototype,"isLoadingChanged",null);_.f([_.OZ("isShowRepliesVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sd.prototype,"isShowMoreChanged",null);sd=_.f([_.U({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],sd);
_.X(sd,"ytd-comment-replies-renderer",function(){if(KVZ!==void 0)return KVZ;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return KVZ=W},{mode:1});var t6W;var vc=function(){var W=_.b.apply(this,arguments)||this;W.isOpen=!1;W.commentDialog=null;W.useSmallAvatars=_.p("small_avatars_for_comments");W.useSmallAvatarsEngagementPanelOnly=_.p("small_avatars_for_comments_ep");W.placeholderFocusListener=null;W.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return W};
_.A(vc,_.b);_.J=vc.prototype;_.J.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]]"}}}}}};
_.J.ready=function(){var W=this,P=_.g(this.hostElement).querySelector("#placeholder-area"),x=_.g(this.hostElement).querySelector("#simplebox-placeholder"),I=function(O){O.stopPropagation();O instanceof KeyboardEvent&&O.type==="keypress"&&O.keyCode!==13&&O.keyCode!==32||W.openDialog()};
this.placeholderFocusListener=I;x.addEventListener("focus",this.placeholderFocusListener);P.addEventListener("tap",I);P.addEventListener("keypress",I)};
_.J.maybeRemoveFocusEventListener=function(){var W;(W=this.data)!=null&&W.prepareAccountEndpoint&&!_.p("web_comments_simplebox_modal_focus_on_tap_ks")&&(W=_.g(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(W.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.J.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.J.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.p("web_comment_simplebox_resolve_polymer_command_ks")?_.Ix.instance.resolveCommand(this.data.prepareAccountEndpoint):_.O2(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.g(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.J.onYtCommentboxDismiss=function(W){W.stopPropagation();this.isOpen=!1};
_.J.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.isOpen=!1)};
_.J.computeCommentDialog=function(W){return{placeholderText:W.placeholderText,authorThumbnail:W.authorThumbnail,submitButton:W.submitButton,imageButton:W.imageButton,cancelButton:W.cancelButton,emojiButton:W.emojiButton,emojis:W.emojis,emojiPicker:W.emojiPicker,aadcGuidelinesStateEntityKey:W.aadcGuidelinesStateEntityKey,openAadcDialog:W.openAadcDialog,unicodeEmojisUrl:W.unicodeEmojisUrl}};
_.J.onHideIdentityChip=function(W){_.Q(W,FSi)&&this.set("data.placeholderText",_.Q(W,FSi).placeholderText)};
vc.prototype.onYtCommentboxDismiss=vc.prototype.onYtCommentboxDismiss;vc.prototype.dataChanged=vc.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],vc.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],vc.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],vc.prototype,"isOpen",void 0);_.f([_.c(),_.l("design:type",Object)],vc.prototype,"commentDialog",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],vc.prototype,"engagementPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],vc.prototype,"useSmallAvatars",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],vc.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],vc.prototype,"enableCreationBox",void 0);_.f([_.c(),_.l("design:type",Boolean)],vc.prototype,"showCreateDialog",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vc.prototype,"dataChanged",null);
_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],vc.prototype,"onYtCommentboxDismiss",null);vc=_.f([_.U({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],vc);
_.X(vc,"ytd-comment-simplebox-renderer",function(){if(t6W!==void 0)return t6W;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return t6W=W},{mode:1});var pYm;_.Ad("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var mC=function(){var W=_.b.apply(this,arguments)||this;W.addHoverEffect=_.p("swatcheroo_comments_hover_effect");return W};
_.A(mC,_.b);mC.prototype.onTap=function(W){if(this.addHoverEffect&&!this.engagementPanel&&!_.Nx(_.c5(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var P;((P=window.getSelection())==null?0:P.toString().length)||_.O2({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
mC.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.N1.Object.defineProperties(mC.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.commentViewModel)return _.Q(this.data.commentViewModel,Od3)}}});
mC.prototype.onTap=mC.prototype.onTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mC.prototype,"addHoverEffect",void 0);_.f([_.c(),_.l("design:type",Object)],mC.prototype,"data",void 0);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],mC.prototype,"commentViewModel",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],mC.prototype,"engagementPanel",void 0);_.f([_.I7("tap"),_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],mC.prototype,"onTap",null);mC=_.f([_.U({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],mC);
_.X(mC,"ytd-comment-thread-renderer",function(){if(pYm!==void 0)return pYm;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return pYm=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var ja3;var VJ=function(){var W=_.b.apply(this,arguments)||this;W.modernTypography=_.p("web_modern_typography");W.compactHeader=_.p("web_watch_compact_comments_header");W.hidePanelButton=!1;W.isPostSchedulingEnabled=_.p("enable_post_scheduling");W.hasFinishedStamping=!1;W.JSC$13690_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.A(VJ,_.b);_.J=VJ.prototype;
_.J.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"}}}};
_.J.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.J.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13690_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.onYtServiceRequestSent=function(W,P){if(!_.p("kevlar_command_handler")&&P.actions)for(W=0;W<P.actions.length;W++){var x=P.actions[W];_.Q(x,C9p)&&_.g(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.Q(x,C9p))}};
_.J.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var W;if(this.getPrefilledBackstagePostDialog((W=this.data)==null?void 0:W.actions)){_.g(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var P=_.g(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;P&&_.Xm(this,function(){P.focus();P.openDialog&&P.openDialog()})}}else this.hasActionsChange=!0};
_.J.computeIsBackstage=function(W){return W};
_.J.onYtCommentboxDismiss=function(){_.g(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.J.removePrefilledDialog=function(W){if(W==null?0:W.actions){for(var P=W.actions.length-1;P>=0;P--){var x=void 0;((x=_.Q(W.actions[P],Xpl))==null?0:x.dialog)&&delete W.actions[P]}this.set("data",void 0);this.set("data",W)}};
_.J.getPrefilledBackstagePostDialog=function(W){if(W)for(var P=0;P<W.length;P++){var x=W[P],I=void 0;if((I=_.Q(x,Xpl))==null?0:I.dialog)return _.Q(x,Xpl).dialog}return null};
_.J.computeBackstagePostDialog=function(W){return W&&(this.getPrefilledBackstagePostDialog(W.actions)||W.createRenderer)};
_.J.dataChanged=function(){if(this.data){var W=this.data.customEmojis,P=this.data.unicodeEmojisUrl;_.gy.clear();P&&_.dNl(_.gy,P);W&&_.gy.load(W)}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.g(this.hostElement).querySelector("ytd-comment-simplebox-renderer");W?W.openDialog():this.JSC$13690_handleOpenPostCommentDialogActionAfterStamp=!0};
_.N1.Object.defineProperties(VJ.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.p("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I,O,B,Y;return!this.hidePanelButton&&_.p("kevlar_watch_comments_panel_button")&&((Y=_.Q((W=this.data)==null?void 0:(P=W.sortMenu)==null?void 0:(x=P.sortFilterSubMenuRenderer)==null?void 0:(I=x.subMenuItems)==null?void 0:(O=I[0])==null?void 0:(B=O.serviceEndpoint)==null?void 0:B.commandMetadata,_.rU))==null?void 0:Y.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.KK("MINIPLAYER_EXPAND_LABEL"),text:_.bx(_.KK("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
VJ.prototype.dataChanged=VJ.prototype.dataChanged;VJ.prototype.onYtCommentboxDismiss=VJ.prototype.onYtCommentboxDismiss;VJ.prototype.observePrefilledBackstagePostDialog=VJ.prototype.observePrefilledBackstagePostDialog;VJ.prototype.onYtServiceRequestSent=VJ.prototype.onYtServiceRequestSent;VJ.prototype.onStampFinished=VJ.prototype.onStampFinished;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],VJ.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],VJ.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VJ.prototype,"modernTypography",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VJ.prototype,"compactHeader",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],VJ.prototype,"engagementPanel",void 0);_.f([_.c(),_.l("design:type",Object)],VJ.prototype,"hidePanelButton",void 0);_.f([_.c({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.l("design:type",Boolean)],VJ.prototype,"isBackstage",void 0);_.f([_.c({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.l("design:type",Object)],VJ.prototype,"backstagePostDialog",void 0);
_.f([_.c(),_.l("design:type",Object)],VJ.prototype,"isPostSchedulingEnabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data","showCommentsPanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],VJ.prototype,"useSpaceBetween",null);_.f([_.c({reflectToAttribute:!0}),_.H("data","hidePanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],VJ.prototype,"showCommentsPanelButton",null);
_.f([_.H("data","showCommentsPanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],VJ.prototype,"commentsPanelButtonData",null);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VJ.prototype,"onStampFinished",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],VJ.prototype,"onYtServiceRequestSent",null);
_.f([_.OZ("data.actions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VJ.prototype,"observePrefilledBackstagePostDialog",null);_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],VJ.prototype,"onYtCommentboxDismiss",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VJ.prototype,"dataChanged",null);
VJ=_.f([_.U({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],VJ);
_.X(VJ,"ytd-comments-header-renderer",function(){if(ja3!==void 0)return ja3;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ja3=W},{mode:1});var Qap;var ts=function(){return _.b.apply(this,arguments)||this};
_.A(ts,_.b);_.f([_.c(),_.l("design:type",Object)],ts.prototype,"data",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);ts=_.f([_.U({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],ts);
_.X(ts,"ytd-destination-button-renderer",function(){if(Qap!==void 0)return Qap;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Qap=W},{mode:1});var CQW;var pq=function(){var W=_.b.apply(this,arguments)||this;W.isRichGrid=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.modernTypography=_.p("web_modern_typography");return W};
_.A(pq,_.b);_.J=pq.prototype;_.J.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.J.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.J.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var W;if((W=this.data)==null||!W.isExpanded){W=this.hostElement.clientWidth;var P;if(W&&(P=this.data)!=null&&P.destinationButtons){P=Math.floor((W+4)/214);W=this.data.destinationButtons.length;var x=Math.ceil(W/P);this.fullyVisibleRows=W%P===1&&x===2?1:Math.min(x,2);this.isShowMoreVisible=this.fullyVisibleRows<x}}}};
_.J.updateRichGridDestinationButtonsVisibility=function(){var W,P;if(this.isRichGrid&&((W=this.data)==null||!W.isExpanded)&&(P=this.data)!=null&&P.destinationButtons){W=this.richGridItemsPerRow+1;P=this.data.destinationButtons.length;var x=Math.ceil(P/W);this.fullyVisibleRows=P%W===1&&x===2?1:Math.min(x,2);this.isShowMoreVisible=this.fullyVisibleRows<x}};
_.J.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
pq.prototype.updateRichGridDestinationButtonsVisibility=pq.prototype.updateRichGridDestinationButtonsVisibility;_.f([_.c(),_.l("design:type",Object)],pq.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Number)],pq.prototype,"fullyVisibleRows",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],pq.prototype,"isShowMoreVisible",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pq.prototype,"isRichGrid",void 0);
_.f([_.c({selector:_.CR,value:0}),_.l("design:type",Number)],pq.prototype,"richGridItemsPerRow",void 0);_.f([_.c(),_.l("design:type",Object)],pq.prototype,"gridStateActionMap",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],pq.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],pq.prototype,"ytdReduxBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pq.prototype,"modernTypography",void 0);_.f([_.OZ("data","richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pq.prototype,"updateRichGridDestinationButtonsVisibility",null);
pq=_.f([_.U({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],pq);
_.X(pq,"ytd-destination-shelf-renderer",function(){if(CQW!==void 0)return CQW;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return CQW=W},{mode:1});var Aik;var jb=function(){return _.b.apply(this,arguments)||this};
_.A(jb,_.b);jb.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jb.prototype,"data",void 0);jb=_.f([_.U({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],jb);
_.X(jb,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Aik!==void 0)return Aik;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Aik=W},{mode:1});var zPz;var QJ=function(){var W=_.b.apply(this,arguments)||this;W.disableAnimation=!1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;return W};
_.A(QJ,_.b);QJ.prototype.onTap=function(W){W.preventDefault();this.data&&_.Lf(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.N1.Object.defineProperties(QJ.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 W,P,x,I,O;return((W=this.data)==null?0:W.checked)?(P=this.data)==null?void 0:(x=P.onStateIcon)==null?void 0:x.iconType:(I=this.data)==null?void 0:(O=I.defaultStateIcon)==null?void 0:O.iconType}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],QJ.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],QJ.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],QJ.prototype,"disableAnimation",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],QJ.prototype,"isSlimlineSurvey",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],QJ.prototype,"isSlimlineSurveyFollowUp",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],QJ.prototype,"isShortsStyle",void 0);_.f([_.H("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QJ.prototype,"isAnimatedIcon",null);
_.f([_.H("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Number),_.l("design:paramtypes",[])],QJ.prototype,"iconSize",null);_.f([_.H("isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QJ.prototype,"isDarkTheme",null);_.f([_.H("data.checked"),_.l("design:type",Object),_.l("design:paramtypes",[])],QJ.prototype,"icon",null);QJ=_.f([_.U({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],QJ);
_.X(QJ,"ytd-rating-survey-option-renderer",function(){if(zPz!==void 0)return zPz;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return zPz=W},{mode:2});var God;var Cq=function(){var W=_.b.apply(this,arguments)||this;W.firstResponseText=null;W.lastResponseText=null;W.selectedNonStarOption=null;W.hideOptions=!1;W.hideUndoButton=!0;W.disableAnimation=!1;W.showResponseRangeText=!1;W.selectedRatingIndex=-1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.slimlineSurveyRatingSelectedIndex=-1;return W};
_.A(Cq,_.b);_.J=Cq.prototype;_.J.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.J.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.J.onOptionChange=function(W,P){var x=this;W=P.onStateIcon&&P.defaultStateIcon&&P.onStateIcon.iconType===P.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Y,K){Y.responseText===P.responseText?x.isSlimlineSurvey?(x.selectedRatingIndex=K,x.ytdReduxBehavior.dispatch(z9l(K))):(x.setSurveyOptionValue(K,!0,"checked"),x.setSurveyOptionValue(K,!0,"selected")):(x.setSurveyOptionValue(K,!1,"checked"),x.setSurveyOptionValue(K,
!1,"selected"))});
else if(W)this.selectedNonStarOption=P,this.hideOptions=!0;else{var I=this.ytRendererBehavior.getSimpleString(P.responseText),O=!0;this.getOptionRenderers().forEach(function(Y,K){x.setSurveyOptionValue(K,O,"checked");x.setSurveyOptionValue(K,!1,"selected");x.ytRendererBehavior.getSimpleString(Y.responseText)===I&&(O=!1,x.setSurveyOptionValue(K,!0,"selected"))})}W=P.responseEndpoint;
var B;P.followUpCommand&&(B=_.Q(P.followUpCommand,vfM));this.isSlimlineSurvey?(this.resetComponent(),_.W7(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.W7(this.hostElement,"ytd-inline-survey-rating-select-action",[W,B])};
_.J.showSelectedOption=function(){var W=this;_.Gr.addJob(function(){var P=W.getOptionRenderers()[W.slimlineSurveyRatingSelectedIndex];W.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),P)},8,100)};
_.J.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(W){var P;return(P=_.Q(W,V3Z))!=null?P:{}}):[]};
_.J.onUndoClick=function(){this.resetComponent();_.W7(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.J.setSurveyOptionValue=function(W,P,x){this.notifyPath("data.ratings."+W+".ratingSurveyOptionRenderer."+x);this.set("data.ratings."+W+".ratingSurveyOptionRenderer."+x,P)};
_.J.resetComponent=function(){var W=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var P=this.getOptionRenderers(),x,I;this.firstResponseText=(I=(x=P[0])==null?void 0:x.responseText)!=null?I:null;var O,B;this.lastResponseText=(B=(O=P[P.length-1])==null?void 0:O.responseText)!=null?B:null;P.forEach(function(Y,K){W.setSurveyOptionValue(K,!1,"checked");W.setSurveyOptionValue(K,!1,"selected")})};
_.N1.Object.defineProperties(Cq.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Cq.prototype.onOptionChange=Cq.prototype.onOptionChange;Cq.prototype.dataChanged=Cq.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Cq.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"firstResponseText",void 0);_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"lastResponseText",void 0);_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"selectedNonStarOption",void 0);_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"hideOptions",void 0);_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"hideUndoButton",void 0);_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"disableAnimation",void 0);
_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"showResponseRangeText",void 0);_.f([_.c(),_.l("design:type",Object)],Cq.prototype,"selectedRatingIndex",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cq.prototype,"isSlimlineSurvey",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cq.prototype,"isSlimlineSurveyFollowUp",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cq.prototype,"isShortsStyle",void 0);_.f([_.c({selector:function(W){return W.ui.slimlineSurveyRatingSelectedIndex}}),
_.l("design:type",Object)],Cq.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.f([_.H("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Cq.prototype,"isSingleSelect",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cq.prototype,"dataChanged",null);
_.f([_.I7("ytd-rating-survey-option-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Cq.prototype,"onOptionChange",null);Cq=_.f([_.U({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Cq);
_.X(Cq,"ytd-rating-survey-renderer",function(){if(God!==void 0)return God;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return God=W},{mode:1});var E0l;var g0l;var Dyw;var ngt=(Ga.FIRSTDAYOFWEEK+1)%7,M6z=function(W,P,x,I){var O="";if(I.selection&&I6d(I.selection))Co(W,I.selection)&&(O+=" selected");else if(I.selection&&OiC(I.selection)){var B=I.selection.selectionState||"START_DATE";Co(W,I.selection.start)&&(O+=" period-start ",B==="START_DATE"&&(O+="selected"));Co(W,I.selection.end)&&(O+=" period-end ",B==="END_DATE"&&(O+="selected"));A3(W,I.selection.start)||A3(I.selection.end,W)||(O+=" highlighted")}if(A3(P,I.start)||A3(I.end,P))O+=" disabled";I.circleToday&&
Co(P,x)&&(O+=" today");return O};var As=function(){return _.b.apply(this,arguments)||this};
_.A(As,_.b);_.J=As.prototype;_.J.attached=function(){var W=this;_.Xm(this,function(){W.JSC$13724_calendarMain.scrollHeight>0&&(W.calendarConfig.selection?W.scrollToDate(J4S(W.calendarConfig.selection)):W.scrollToDate(W.calendarConfig.end))})};
_.J.updateSelection=function(W){W=YGW(Object.assign({},this.calendarConfig,{selection:W}),M6z);this.splice.apply(this,["renderData.months",0,W.length].concat(_.ju(W)))};
_.J.scrollToDate=function(W){this.renderData&&(W=y4W(W,this.renderData),W!==void 0&&this.JSC$13724_calendarMain.scrollToIndex(W))};
_.J.scrollToNextMonth=function(){this.JSC$13724_calendarMain.scrollToIndex(this.JSC$13724_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$13724_calendarMain.firstVisibleIndex===0&&this.JSC$13724_calendarMain.scrollTo(0,0);this.JSC$13724_calendarMain.scrollToIndex(this.JSC$13724_calendarMain.firstVisibleIndex-1)};
_.J.handleDayClick=function(W){_.W7(this.hostElement,"ytd-calendar-date-clicked",[W.model.day.date])};
_.J.handleDayMouseDown=function(W){W.preventDefault();_.W7(this.hostElement,"ytd-calendar-date-mousedown",[W.model.day.date])};
_.J.handleDayMouseUp=function(W){_.W7(this.hostElement,"ytd-calendar-date-mouseup",[W.model.day.date])};
_.J.handleDayMouseEnter=function(W){W.preventDefault();_.W7(this.hostElement,"ytd-calendar-date-mouseenter",[W.model.day.date])};
_.J.handleDayMouseLeave=function(W){_.W7(this.hostElement,"ytd-calendar-date-mouseleave",[W.model.day.date])};
_.N1.Object.defineProperties(As.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var W=this.calendarConfig,P=M6z;P=P===void 0?M6z:P;for(var x=[],I=0;I<7;I++)x.push(Ga.NARROWWEEKDAYS[(I+ngt)%7]);return{months:YGW(W,P),daysOfWeekLabel:x}}}});
_.f([_.c(),_.l("design:type",Object)],As.prototype,"calendarConfig",void 0);_.f([_.BM("#calendar-main"),_.l("design:type",Object)],As.prototype,"JSC$13724_calendarMain",void 0);_.f([_.H("calendarConfig"),_.l("design:type",Object),_.l("design:paramtypes",[])],As.prototype,"renderData",null);As=_.f([_.U({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],As);
_.X(As,"ytd-scrollable-calendar",function(){if(Dyw!==void 0)return Dyw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Dyw=W},{mode:2});var $yP;var wYm;var zw=function(){var W=_.b.apply(this,arguments)||this;W.hideCharCounter=!1;W.hideLabel=!1;W.noLabelFloat=!1;W.autoValidate=!0;W.invalid=!1;W.disabled=!1;W.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return W};
_.A(zw,_.b);_.J=zw.prototype;_.J.reset=function(W){this.value=W&&this.data?this.data.value=W:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.J.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.J.focusTextInput=function(){this.input.focus()};
_.J.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()};
_.J.valueChanged=function(){var W,P;if(((W=this.data)==null?0:W.value)||((P=this.data)==null?void 0:P.value)==="")this.value=this.data.value;else{var x;((x=this.data)==null?void 0:x.value)!==void 0||this.value||(this.value="")}};
_.J.computeLabel=function(W,P){return P?"":_.kz(W)};
_.J.computeAriaLabel=function(W,P){return P?_.kz(W):""};
_.J.computeErrorMessage=function(W,P,x,I){!W&&P?W=x||this.strings.REQUIRED_LABEL:(W=_.kz(I),W=_.ZA(W,"&")?"document"in _.xW?GRW(W):EWm(W):W);return W};
_.J.computeType=function(W){return W==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.J.onTextValueChanged=function(W){this.value=W.detail.value;var P;(P=this.onValueChanged)==null||P.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.J.handleUpdateTextInputFormFieldRendererCommand=function(W){(W=_.Q(W,a9k))&&this.data&&this.data.id===W.id&&(W.invalid!==void 0&&(this.invalid=W.invalid),W.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",W.invalidValueErrorMessage))};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("value-changed",this.value))};
_.J.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.N1.Object.defineProperties(zw.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var W;return!((W=this.data)==null||!W.isMultiline)}}});
zw.prototype.valueChangedForBinding=zw.prototype.valueChangedForBinding;zw.prototype.valueChanged=zw.prototype.valueChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],zw.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],zw.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],zw.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],zw.prototype,"value",void 0);_.f([_.c(),_.l("design:type",String)],zw.prototype,"pattern",void 0);_.f([_.c(),_.l("design:type",String)],zw.prototype,"errorMessage",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],zw.prototype,"componentStyle",void 0);_.f([_.c(),_.l("design:type",Object)],zw.prototype,"hideCharCounter",void 0);
_.f([_.c(),_.l("design:type",Object)],zw.prototype,"hideLabel",void 0);_.f([_.c(),_.l("design:type",Object)],zw.prototype,"noLabelFloat",void 0);_.f([_.c(),_.l("design:type",Function)],zw.prototype,"onValueChanged",void 0);_.f([_.c(),_.l("design:type",Boolean)],zw.prototype,"isMultilineOverride",void 0);_.f([_.c(),_.l("design:type",Object)],zw.prototype,"autoValidate",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],zw.prototype,"invalid",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],zw.prototype,"disabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zw.prototype,"enableOverlayTheme",void 0);_.f([_.c({value:{REQUIRED_LABEL:_.KK("REQUIRED_LABEL",void 0,"Required")}}),_.l("design:type",Object)],zw.prototype,"strings",void 0);_.f([_.BM("#input"),_.l("design:type",Object)],zw.prototype,"input",void 0);
_.f([_.H("data","isMultilineOverride"),_.l("design:type",Object),_.l("design:paramtypes",[])],zw.prototype,"isMultiline",null);_.f([_.K_("data.value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zw.prototype,"valueChanged",null);_.f([_.OZ("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zw.prototype,"valueChangedForBinding",null);zw=_.f([_.jd({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],zw);
_.X(zw,"yt-text-input-form-field-renderer",function(){if(wYm===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;$yP===void 0&&($yP=document.createElement("template"));var I=$yP;x.call(P,I.content.cloneNode(!0),W.content.firstChild);wYm=W}W=wYm;return W},{mode:2});var Gw=function(){var W=_.b.apply(this,arguments)||this;W.data=void 0;W.selectionState="START_DATE";W.isStartDateInvalid=!1;W.isEndDateInvalid=!1;W.autoapply=!1;W.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 W};
_.A(Gw,_.b);_.J=Gw.prototype;_.J.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"}}}}};
_.J.focus=function(){this.startDateInput.focus()};
_.J.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:za(this.data.selection.start),end:za(this.data.selection.end)})};
_.J.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.n2(this.selectionState)}};
_.J.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.J.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.J.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,P=W.end;W=ZiC({start:W.start,end:this.endDate||P},this.startDateInput.value||"");this.isStartDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection=this.endDate?{start:W,end:this.endDate}:W,this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.J.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,P=W.start;W=ZiC({start:this.startDate||P,end:W.end},this.endDateInput.value||"");this.isEndDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection={start:this.startDate,end:W},this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.J.handleCalendarDateClicked=function(W){var P=this.selection&&J4S(this.selection),x=this.selection&&B2G(this.selection);P&&!A3(W,P)&&this.selectionState==="END_DATE"?(this.selection={start:P,end:W},this.selectionState="START_DATE"):(x&&!A3(x,W)?this.selection={start:W,end:x}:this.selection=W,this.selectionState="END_DATE")};
_.J.handleCalendarDateMouseDown=function(W){this.selection&&!I6d(this.selection)&&(this.dragPivot=Co(W,this.selection.start)?this.selection.end:Co(W,this.selection.end)?this.selection.start:W)};
_.J.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.J.handleCalendarDateMouseEnter=function(W){this.dragPivot&&(this.selection={start:function(P,x){return A3(P,x)?P:x}(this.dragPivot,W),
end:function(P,x){return A3(P,x)?x:P}(this.dragPivot,W)},this.dragPivot||(this.selectionState="START_DATE"))};
_.J.handleCalendarDateMouseLeave=function(){};
_.J.handleCalendarSubmitDateRange=function(){this.selection&&!I6d(this.selection)&&_.W7(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.J.updateInvalidState=function(){var W=function(P,x){x?P.setAttribute("invalid",""):P.removeAttribute("invalid")};
W(this.startDateInput,this.isStartDateInvalid);W(this.endDateInput,this.isEndDateInvalid)};
_.J.updateDateStrings=function(){this.selection&&(I6d(this.selection)?xDd(this.selection):(xDd(this.selection.start),xDd(this.selection.end)))};
_.J.updateCalendarSelection=function(W){this.calendar.updateSelection(Object.assign({},W,{selectionState:this.selectionState}))};
_.J.updateIsStartDateInvalidFromBinding=function(W){this.isStartDateInvalid=W.detail.value};
_.J.updateIsEndDateInvalidFromBinding=function(W){this.isEndDateInvalid=W.detail.value};
_.J.updateStartDateStringFromBinding=function(){};
_.J.updateEndDateStringFromBinding=function(){};
_.N1.Object.defineProperties(Gw.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:za(this.data.dateRangeStart),end:za(this.data.dateRangeEnd),selection:{start:za(this.data.selection.start),end:za(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&J4S(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&B2G(this.selection)}}});
Gw.prototype.resetTextboxes=Gw.prototype.resetTextboxes;Gw.prototype.observeSelection=Gw.prototype.observeSelection;Gw.prototype.dataChanged=Gw.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Gw.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("#calendar"),_.l("design:type",Object)],Gw.prototype,"calendar",void 0);
_.f([_.BM("#start-date"),_.l("design:type",Object)],Gw.prototype,"startDateInput",void 0);_.f([_.BM("#end-date"),_.l("design:type",Object)],Gw.prototype,"endDateInput",void 0);_.f([_.c(),_.l("design:type",Object)],Gw.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Gw.prototype,"selection",void 0);_.f([_.c(),_.l("design:type",String)],Gw.prototype,"selectionState",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gw.prototype,"calendarConfig",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gw.prototype,"errorMessage",null);_.f([_.H("selection"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gw.prototype,"startDate",null);_.f([_.H("selection"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gw.prototype,"endDate",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gw.prototype,"dataChanged",null);
_.f([_.OZ("selection","selectionState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gw.prototype,"observeSelection",null);_.f([_.OZ("selectionState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gw.prototype,"resetTextboxes",null);Gw=_.f([_.U({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Gw);
_.X(Gw,"ytd-date-period-picker-renderer",function(){if(g0l!==void 0)return g0l;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return g0l=W},{mode:1});var Ed=function(){var W=_.b.apply(this,arguments)||this;var P={};W.actionMap=(P["ytd-date-period-picker-apply"]="handleDateRangeUpdated",P);return W};
_.A(Ed,_.b);Ed.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Ed.prototype.handleDateRangeUpdated=function(){};
_.f([_.c(),_.l("design:type",Object)],Ed.prototype,"data",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Ed.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ed.prototype,"rendererstamperBehavior",void 0);Ed=_.f([_.U({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Ed);
_.X(Ed,"ytd-report-history-section-header-renderer",function(){if(E0l!==void 0)return E0l;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return E0l=W},{mode:1});var hPZ;var H9W;var ePb;var gd=function(){return _.b.apply(this,arguments)||this};
_.A(gd,_.b);_.N1.Object.defineProperties(gd.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?0:(P=W.icon)==null?0:P.iconType)?_.PW(this.data.icon.iconType):""}}});
_.f([_.c(),_.l("design:type",Object)],gd.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],gd.prototype,"icon",null);gd=_.f([_.U({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],gd);
_.X(gd,"ytd-report-history-table-text-cell-renderer",function(){if(ePb!==void 0)return ePb;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ePb=W},{mode:1});var Dc=function(){return _.b.apply(this,arguments)||this};
_.A(Dc,_.b);Dc.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Dc.prototype,"data",void 0);Dc=_.f([_.U({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Dc);
_.X(Dc,"ytd-report-history-table-reason-cell-renderer",function(){if(H9W!==void 0)return H9W;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return H9W=W},{mode:1});var MO=function(){return _.b.apply(this,arguments)||this};
_.A(MO,_.b);MO.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"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],MO.prototype,"rendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],MO.prototype,"data",void 0);MO=_.f([_.U({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],MO);
_.X(MO,"ytd-report-history-table-cell-renderer",function(){if(hPZ!==void 0)return hPZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return hPZ=W},{mode:1});var ciz;var $L=function(){var W=_.b.apply(this,arguments)||this;W.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 W};
_.A($L,_.b);$L.prototype.onDataChanged=function(){var W;if((W=this.data)==null?0:W.style)this.componentStyle=this.getStyleName(this.data.style)};
$L.prototype.getCellForColumn=function(W){return this.cells.find(function(P){var x;return((x=_.Q(P==null?void 0:P.cell,j1w)||_.Q(P==null?void 0:P.cell,p1b))==null?void 0:x.columnId)===W.type})};
$L.prototype.getClassForColumn=function(W){switch(W){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
$L.prototype.getStyleName=function(W){switch(W){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.N1.Object.defineProperties($L.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.cells)||[]).map(function(P){return _.Q(P,t3W)})}}});
$L.prototype.onDataChanged=$L.prototype.onDataChanged;_.f([_.c(),_.l("design:type",Object)],$L.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Array)],$L.prototype,"columnRenderData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],$L.prototype,"componentStyle",void 0);_.f([_.H("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],$L.prototype,"cells",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$L.prototype,"onDataChanged",null);$L=_.f([_.U({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],$L);
_.X($L,"ytd-report-history-table-row-renderer",function(){if(ciz!==void 0)return ciz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ciz=W},{mode:1});var aoz;var b9i;var ogW={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},SGA={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var wd=function(){return _.b.apply(this,arguments)||this};
_.A(wd,_.b);wd.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"}}}}}};
wd.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.N1.Object.defineProperties(wd.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.columns)?mDt(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return sLR(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var W=this.tableSpec,P=ogW;P=P===void 0?SGA:P;P=vgU(W.columnDimensions,W.columnsToShow||[],P);W=0;P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=x.value,W+=x.minWidth+x.paddingLeft+x.paddingRight;return W}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.f([_.h(_.Dv),_.l("design:type",Object)],wd.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wd.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],wd.prototype,"tableSpec",null);_.f([_.H("tableSpec"),_.l("design:type",Array),_.l("design:paramtypes",[])],wd.prototype,"columnRenderData",null);
_.f([_.H("tableSpec"),_.l("design:type",Number),_.l("design:paramtypes",[])],wd.prototype,"totalMinWidth",null);_.f([_.H("totalMinWidth"),_.l("design:type",String),_.l("design:paramtypes",[])],wd.prototype,"tableWidthStyle",null);wd=_.f([_.U({is:"ytd-table-renderer",disableElementRegistration:!0})],wd);
_.X(wd,"ytd-table-renderer",function(){if(b9i!==void 0)return b9i;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return b9i=W},{mode:1});var hs=function(){return _.b.apply(this,arguments)||this};
_.A(hs,_.b);hs.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}}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],hs.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],hs.prototype,"data",void 0);hs=_.f([_.U({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],hs);
_.X(hs,"ytd-report-reason-history-modal-renderer",function(){if(aoz!==void 0)return aoz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return aoz=W},{mode:1});var kok;var UyA;var XYl;var Hc=function(){return _.b.apply(this,arguments)||this};
_.A(Hc,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Hc.prototype,"data",void 0);Hc=_.f([_.U({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Hc);
_.X(Hc,"ytd-profile-column-stats-entry-renderer",function(){if(XYl!==void 0)return XYl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return XYl=W},{mode:1});var fow;var eb=function(){return _.b.apply(this,arguments)||this};
_.A(eb,_.b);eb.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eb.prototype,"data",void 0);eb=_.f([_.U({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],eb);
_.X(eb,"ytd-profile-column-stats-renderer",function(){if(fow!==void 0)return fow;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return fow=W},{mode:1});var Nzk;var cc=function(){return _.b.apply(this,arguments)||this};
_.A(cc,_.b);_.N1.Object.defineProperties(cc.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var P,x;W=(P=this.data)==null?void 0:(x=P.thumbnail)==null?void 0:x.thumbnails;var I;return W&&((I=W[0])==null?void 0:I.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var P,x;W=(P=this.data)==null?void 0:(x=P.thumbnail)==null?void 0:x.thumbnails;var I;return W&&((I=W[0])==null?void 0:I.height)||80}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cc.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],cc.prototype,"componentStyle",void 0);_.f([_.H("data.useThumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],cc.prototype,"thumbnailWidth",null);
_.f([_.H("data.useThumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],cc.prototype,"thumbnailHeight",null);cc=_.f([_.U({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],cc);
_.X(cc,"ytd-profile-column-user-info-renderer",function(){if(Nzk!==void 0)return Nzk;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Nzk=W},{mode:1});var aX=function(){return _.b.apply(this,arguments)||this};
_.A(aX,_.b);aX.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]]"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],aX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],aX.prototype,"componentStyle",void 0);aX=_.f([_.U({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],aX);
_.X(aX,"ytd-profile-column-renderer",function(){if(UyA!==void 0)return UyA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return UyA=W},{mode:1});var bj=function(){var W=_.b.apply(this,arguments)||this;W.componentStyle="NON_CENTERED_PROFILE";return W};
_.A(bj,_.b);bj.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
bj.prototype.getIcon=function(W){return W?"settings:"+W.toLowerCase():null};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bj.prototype,"data",void 0);bj=_.f([_.U({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],bj);
_.X(bj,"ytd-page-introduction-renderer",function(){if(kok!==void 0)return kok;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return kok=W},{mode:1});var loZ;var kL=function(){return _.b.apply(this,arguments)||this};
_.A(kL,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kL.prototype,"data",void 0);kL=_.f([_.U({is:"ytd-report-description-renderer",disableElementRegistration:!0})],kL);
_.X(kL,"ytd-report-description-renderer",function(){if(loZ!==void 0)return loZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return loZ=W},{mode:1});var Tzk;var riA;var Ud=function(){return _.b.apply(this,arguments)||this};
_.A(Ud,_.b);Ud.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ud.prototype,"data",void 0);Ud=_.f([_.U({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Ud);
_.X(Ud,"ytd-video-report-renderer",function(){if(riA!==void 0)return riA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return riA=W},{mode:1});var i9p;_.Ad("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Ad("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var X$=function(){return _.b.apply(this,arguments)||this};
_.A(X$,_.b);X$.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]]"}}}}}};
X$.prototype.computeMessageStyle=function(W){return W};
X$.prototype.computeButtonOverride=function(W){var P;if((W==null?0:(P=W.style)==null?0:P.value)&&W.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],X$.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],X$.prototype,"shelf",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],X$.prototype,"panel",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.l("design:type",Boolean)],X$.prototype,"componentStyle",void 0);_.f([_.c({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],X$.prototype,"buttonOverride",void 0);X$=_.f([_.U({is:"ytd-message-renderer",disableElementRegistration:!0})],X$);
_.X(X$,"ytd-message-renderer",function(){if(i9p!==void 0)return i9p;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return i9p=W},{mode:1});var fq=function(){return _.b.apply(this,arguments)||this};
_.A(fq,_.b);fq.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"}}}};
fq.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
fq.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.N1.Object.defineProperties(fq.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var W,P;return!!(((W=this.data)==null?0:W.header)&&((P=this.data)==null?0:P.table))}}});
fq.prototype.onRequestError=fq.prototype.onRequestError;_.f([_.h(_.Dv),_.l("design:type",Object)],fq.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],fq.prototype,"data",void 0);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],fq.prototype,"isUnifiedReportHistory",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fq.prototype,"onRequestError",null);fq=_.f([_.U({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],fq);
_.X(fq,"ytd-report-history-section-renderer",function(){if(Tzk!==void 0)return Tzk;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Tzk=W},{mode:1});var RPw;var NO=function(){var W=_.b.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.A(NO,_.b);NO.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],NO.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],NO.prototype,"answerExpanded",void 0);NO=_.f([_.U({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],NO);
_.X(NO,"ytd-handles-claiming-faq-renderer",function(){if(RPw!==void 0)return RPw;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return RPw=W},{mode:1});var FVz;var lj=function(){return _.b.apply(this,arguments)||this};
_.A(lj,_.b);_.f([_.c(),_.l("design:type",Object)],lj.prototype,"data",void 0);lj=_.f([_.U({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],lj);
_.X(lj,"ytd-handles-claiming-faq-section-renderer",function(){if(FVz!==void 0)return FVz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return FVz=W},{mode:1});var qOb;var Tw=function(){var W=_.b.apply(this,arguments)||this;W.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";W.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";W.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";W.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";W.leftSquiggly=W.leftSquigglyLight;W.rightSquiggly=W.rightSquigglyLight;
W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return W};
_.A(Tw,_.b);_.J=Tw.prototype;_.J.updateLeftSquigglyStyle=function(){_.qa(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.J.updateRightSquigglyStyle=function(){_.qa(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.J.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.J.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),W?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Tw.prototype.updateRightSquigglyStyle=Tw.prototype.updateRightSquigglyStyle;Tw.prototype.updateLeftSquigglyStyle=Tw.prototype.updateLeftSquigglyStyle;_.f([_.c(),_.l("design:type",Object)],Tw.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Tw.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",String)],Tw.prototype,"leftSquiggly",void 0);_.f([_.c(),_.l("design:type",String)],Tw.prototype,"rightSquiggly",void 0);
_.f([_.OZ("leftSquiggly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tw.prototype,"updateLeftSquigglyStyle",null);_.f([_.OZ("rightSquiggly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tw.prototype,"updateRightSquigglyStyle",null);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Tw.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Tw.prototype,"actionButtonOverride",void 0);Tw=_.f([_.U({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Tw);
_.X(Tw,"ytd-handles-claiming-header-renderer",function(){if(qOb!==void 0)return qOb;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return qOb=W},{mode:1});var LVl;var rd=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";W.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";W.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";W.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
W.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";W.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";W.image0SquigglyBackground=W.image0LightSquigglyBackground;W.image1SquigglyBackground=W.image1LightSquigglyBackground;W.image3SquigglyBackground=W.image3LightSquigglyBackground;return W};
_.A(rd,_.b);_.J=rd.prototype;_.J.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.J.onDataChanged=function(){this.updateTitleAndImages()};
_.J.onThemeChanged=function(){this.updateTitleAndImages()};
_.J.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.J.updateImage0SquigglyBackground=function(){_.qa(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.J.updateImage1SquigglyBackground=function(){_.qa(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.J.updateImage3SquigglyBackground=function(){_.qa(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.J.updateTitleAndImages=function(){var W,P;((W=this.data)==null?void 0:(P=W.titleImages)==null?void 0:P.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))};
rd.prototype.updateImage3SquigglyBackground=rd.prototype.updateImage3SquigglyBackground;rd.prototype.updateImage1SquigglyBackground=rd.prototype.updateImage1SquigglyBackground;rd.prototype.updateImage0SquigglyBackground=rd.prototype.updateImage0SquigglyBackground;rd.prototype.onThemeChanged=rd.prototype.onThemeChanged;rd.prototype.onDataChanged=rd.prototype.onDataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],rd.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],rd.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"title0",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"title1",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"title2",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"title3",void 0);
_.f([_.c(),_.l("design:type",Object)],rd.prototype,"title4",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"image0",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"image1",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"image2",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"image3",void 0);_.f([_.c(),_.l("design:type",Object)],rd.prototype,"image4",void 0);_.f([_.c(),_.l("design:type",String)],rd.prototype,"image0SquigglyBackground",void 0);
_.f([_.c(),_.l("design:type",String)],rd.prototype,"image1SquigglyBackground",void 0);_.f([_.c(),_.l("design:type",String)],rd.prototype,"image3SquigglyBackground",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rd.prototype,"onDataChanged",null);_.f([_.OZ("isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rd.prototype,"onThemeChanged",null);
_.f([_.OZ("image0SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rd.prototype,"updateImage0SquigglyBackground",null);_.f([_.OZ("image1SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rd.prototype,"updateImage1SquigglyBackground",null);
_.f([_.OZ("image3SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rd.prototype,"updateImage3SquigglyBackground",null);rd=_.f([_.U({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],rd);
_.X(rd,"ytd-handles-claiming-title-images-section-renderer",function(){if(LVl!==void 0)return LVl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return LVl=W},{mode:1});var W_W;var ij=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(ij,_.b);ij.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
ij.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
ij.prototype.onCopyButtonClick=function(){var W=this,P,x,I;return _.y(function(O){return(P=W.data)!=null&&P.primaryChannelUrl?_.S(O,navigator.clipboard.writeText(((x=W.data)==null?0:x.encodedChannelUrl)?W.data.encodedChannelUrl:"https://"+_.kz((I=W.data)==null?void 0:I.primaryChannelUrl)),0):O.jumpTo(0)})};
_.f([_.c(),_.l("design:type",Object)],ij.prototype,"data",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ij.prototype,"ytComponentBehavior",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ij.prototype,"isDarkTheme",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);ij=_.f([_.U({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],ij);
_.X(ij,"ytd-handles-claiming-update-social-renderer",function(){if(W_W!==void 0)return W_W;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return W_W=W},{mode:1});var Pap;var RX=function(){var W=_.b.apply(this,arguments)||this;W.JSC$13819_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";W.JSC$13819_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.squigglyBackground=W.JSC$13819_squigglyBackgroundLight;return W};
_.A(RX,_.b);RX.prototype.updateSquigglyBackgroundStyle=function(){_.qa(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
RX.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.squigglyBackground=W?this.JSC$13819_squigglyBackgroundDark:this.JSC$13819_squigglyBackgroundLight};
RX.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$13819_squigglyBackgroundDark:this.JSC$13819_squigglyBackgroundLight)};
RX.prototype.updateSquigglyBackgroundStyle=RX.prototype.updateSquigglyBackgroundStyle;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],RX.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],RX.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],RX.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",String)],RX.prototype,"squigglyBackground",void 0);_.f([_.OZ("squigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RX.prototype,"updateSquigglyBackgroundStyle",null);RX=_.f([_.U({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],RX);
_.X(RX,"ytd-handles-claiming-vanity-info-renderer",function(){if(Pap!==void 0)return Pap;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Pap=W},{mode:1});var xFp;var F$=function(){var W=_.b.apply(this,arguments)||this;W.JSC$13822_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";W.JSC$13822_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";W.squigglyBackground=W.JSC$13822_squigglyBackgroundLight;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(F$,_.b);_.J=F$.prototype;_.J.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.J.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$13822_squigglyBackgroundDark:this.JSC$13822_squigglyBackgroundLight)};
_.J.updateSquigglyBackgroundStyle=function(){_.qa(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.J.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.J.detached=function(){this.stop()};
_.J.stop=function(){this.playerElement.stop()};
_.J.setupVideoPlayer=function(){var W=this,P,x;return _.y(function(I){P=W.data.videoId;x="http://i1.ytimg.com/vi/"+P+"/maxresdefault.jpg";W.playerElement.loadVideoWithPlayerVars({video_id:P,iurlhq:x});_.Kl(I)})};
F$.prototype.onDataChanged=F$.prototype.onDataChanged;F$.prototype.updateSquigglyBackgroundStyle=F$.prototype.updateSquigglyBackgroundStyle;_.f([_.c({value:!1}),_.l("design:type",Boolean)],F$.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",String)],F$.prototype,"squigglyBackground",void 0);_.f([_.BM("#player"),_.l("design:type",Object)],F$.prototype,"playerElement",void 0);_.f([_.c(),_.l("design:type",Object)],F$.prototype,"data",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],F$.prototype,"ytActionHandlerBehavior",void 0);_.f([_.OZ("squigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F$.prototype,"updateSquigglyBackgroundStyle",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F$.prototype,"onDataChanged",null);
F$=_.f([_.U({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],F$);
_.X(F$,"ytd-handles-claiming-video-item-renderer",function(){if(xFp!==void 0)return xFp;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return xFp=W},{mode:1});var I4P;var Lq=function(){var W=_.Yl.apply(this,arguments)||this;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.containerWidthDiff=0;W.boundPrevClick=function(){W.set("offset",qO(W,W.offset-(W.scrollDistance||320)))};
W.boundNextClick=function(){W.set("offset",qO(W,W.offset+(W.scrollDistance||320)))};
W.boundScrollContainerMouseDown=function(P){W.dragMouseStart=P.clientX;W.dragOffsetStart=W.offset;W.dragging=!0};
W.boundScrollContainerDrag=function(P){W.dragging&&W.set("offset",qO(W,W.dragOffsetStart-(P.clientX-W.dragMouseStart)))};
W.boundMouseUp=function(){W.onMouseUp()};
W.boundWheelScroll=function(P){var x=0;Math.abs(P.deltaX)>=Math.abs(P.deltaY)?x=P.deltaX:P.shiftKey&&(x=P.deltaY);x!==0&&(W.offset+=x,P.stopPropagation(),P.preventDefault())};
W.boundChipCloudChipScrollIntoView=function(P){(P=P.detail)&&W.scrollChipIntoView(P)};
return W};
_.A(Lq,_.Yl);Lq.prototype.attached=function(){var W=_.g(this.hostElement).querySelector("#scroll-container");W.addEventListener("wheel",this.boundWheelScroll);W.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.style.touchAction="pan-y";W.addEventListener("pointerdown",this.boundScrollContainerMouseDown);W.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Lq.prototype.detached=function(){var W=_.g(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.boundWheelScroll);W.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);W.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Lq.prototype.reset=function(){this.set("offset",0);_.Xm(this,this.setContainerWidthDiff);WR(this)};
var qO=function(W,P){return Math.min(Math.max(P,0),W.containerWidthDiff)};
Lq.prototype.onMouseUp=function(){this.dragging=!1};
Lq.prototype.transformContainer=function(){this.offset=qO(this,this.offset);var W=_.$$("HTML_DIR")==="rtl"?"":"-";_.g(this.hostElement).querySelector("#chips").style.transform="translateX("+W+this.offset+"px)";WR(this)};
var WR=function(W){_.Xm(W,W.setButtonsState)};
Lq.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=qO(this,this.offset));this.atStart=this.offset<=0};
Lq.prototype.setContainerWidthDiff=function(){var W=_.g(this.hostElement).querySelector("#scroll-container"),P=_.g(this.hostElement).querySelector("#chips");W&&P&&(this.containerWidthDiff=P.clientWidth-W.clientWidth)};
Lq.prototype.scrollChipIntoView=function(W){var P=_.g(this.hostElement).querySelector("#scroll-container");if(P){var x=this.atStart?0:106,I=this.atEnd?0:106;W.offsetLeft<this.offset+x?this.offset=qO(this,W.offsetLeft-x):W.offsetLeft+W.clientWidth>this.offset+P.clientWidth-I&&(this.offset=qO(this,W.offsetLeft+W.clientWidth+I-P.clientWidth))}};
Lq.prototype.transformContainer=Lq.prototype.transformContainer;_.f([_.c({value:0}),_.l("design:type",Number)],Lq.prototype,"offset",void 0);_.f([_.c({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],Lq.prototype,"atStart",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Lq.prototype,"atEnd",void 0);_.f([_.c(),_.l("design:type",Number)],Lq.prototype,"scrollDistance",void 0);
_.f([_.OZ("offset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lq.prototype,"transformContainer",null);Lq=_.f([_.yL()],Lq);var OSc;var J$z;var Y9P=_.kl(function(W){var P=W.data;W=_.n(_.YV(!1,void 0,"icHmSe"));var x=W.next().value,I=W.next().value;W={};W=_.O4("ytChipShapeChip",function(){a:switch(P==null?void 0:P().state){case 0:var K="ytChipShapeActive";break a;case 1:K="ytChipShapeDisabled";break a;default:K="ytChipShapeInactive"}return K},function(){var K=P().type===1||P().type===2,Z=P();
return K||Z!=null&&Z.startIcon?Z==null||!Z.startIcon||Z!=null&&Z.text?K?"ytChipShapeEndIconPadding":(Z==null?0:Z.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(W.ytChipShapeFocused=function(){var K;
return x()&&((K=P())==null?void 0:K.state)!==1},W));
var O=function(K){if((P==null?void 0:P().state)!==1){var Z,d;(d=(Z=P()).onTap)==null||d.call(Z,K)}},B=_.yB(function(){var K=_.FY().resolve(_.Rl(_.jK));
if(K){I(K.isKeyBoardInUse());var Z,d;(d=(Z=P()).onFocusIn)==null||d.call(Z)}return!1}),Y=_.yB(function(){I(!1);
return!1});
return _.u("chip-shape",{class:"ytChipShapeHost","on:focusin":B,"on:focusout":Y},_.u(B5P,{shouldWrapInButton:function(){return P().type!==2},
selected:function(){return P().state===0},
onClick:O,isDropdown:function(){return P().type===1},
accessibilityLabel:function(){return P().accessibilityLabel}},_.u("div",{class:W},_.u(_.V,{cond:function(){return P().startIcon},
then:function(){return _.u(_.Sy,{icon:function(){var K;return(K=P())==null?void 0:K.startIcon},
className:function(){return P().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return P().text},_.u(nok,{shape:P,
onClick:O}))))},"ub");
Y9P.idomCompat=!0;var B5P=_.kl(function(W){var P=_.yB(function(x){W.onClick(x);return!1});
return _.u(_.V,{cond:W.shouldWrapInButton,then:function(){return _.u("button",{class:"ytChipShapeButtonReset","on:click":P,role:function(){return W.isDropdown()?"combobox":"tab"},
"aria-label":W.accessibilityLabel,"aria-selected":W.selected},W.children)},
else:function(){return W.children}})},"vb"),nok=_.kl(function(W){var P=W.shape;
var x=W.onClick;var I=_.yB(function(O){x(O);return!1});
return _.u(_.tQ,null,_.u(_.mk,{when:function(){return P().type===1}},function(){return _.u(_.Sy,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.u(_.mk,{when:function(){return P().type===2}},function(){return _.u("button",{class:"ytChipShapeButtonReset",
"on:click":I},_.u(_.Sy,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.u(_.mk,{when:function(){return P().type===0}},function(){return _.u(_.qS,null)}))},"wb");_.lq(Y9P,"chip-shape",{props:{data:_.cv}});var PR=function(){var W=_.b.apply(this,arguments)||this;W.disableDeselectEvent=!1;W.modern=_.p("web_modern_typography");W.useChipShape=_.p("web_chip_shape_defrag");W.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return W};
_.A(PR,_.b);_.J=PR.prototype;_.J.beforeRegister=function(){_.p("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.J.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.J.onSelectChipCommand=function(W){if(!this.selected&&this.data&&(W=_.Q(W,g_l),W.targetId&&W.targetId===this.data.targetId))this.onTap()};
_.J.onFilterChipTransformCommand=function(W){if(!this.selected&&this.data){var P;(W=(P=_.Q(W,wI3))==null?void 0:P.chipUniqueId)&&W===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.J.dataChanged=function(){var W=this;_.Xm(this,function(){W.data&&W.data.isSelected&&!W.selected&&(W.scrollChipIntoView(),W.onTap())})};
_.J.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.J.computeChipStyle=function(W){return W!=null?W:"STYLE_DEFAULT"};
_.J.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.W7(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.W7(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.J.onFocus=function(){var W=_.FY().resolve(_.Rl(_.jK));W&&W.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.J.scrollChipIntoView=function(){_.Lf(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.N1.Object.defineProperties(PR.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return ClA({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
PR.prototype.onFocus=PR.prototype.onFocus;PR.prototype.onTap=PR.prototype.onTap;PR.prototype.selectionChanged=PR.prototype.selectionChanged;PR.prototype.dataChanged=PR.prototype.dataChanged;_.f([_.h(_.QM),_.l("design:type",Object)],PR.prototype,"ironButtonState",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],PR.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],PR.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.tu),_.l("design:type",Object)],PR.prototype,"ironA11yKeysBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],PR.prototype,"disableDeselectEvent",void 0);_.f([_.c(),_.l("design:type",Object)],PR.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.icon"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],PR.prototype,"hasIcon",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data.uniqueId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],PR.prototype,"isGnomeChip",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],PR.prototype,"modern",void 0);_.f([_.c({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.l("design:type",String)],PR.prototype,"chipStyle",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],PR.prototype,"selected",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],PR.prototype,"useChipShape",void 0);_.f([_.H("data","selected"),_.l("design:type",Object),_.l("design:paramtypes",[])],PR.prototype,"chipShapeData",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PR.prototype,"dataChanged",null);_.f([_.OZ("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PR.prototype,"selectionChanged",null);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PR.prototype,"onTap",null);_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PR.prototype,"onFocus",null);PR=_.f([_.jd({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],PR);
_.X(PR,"yt-chip-cloud-chip-renderer",function(){if(J$z===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;OSc===void 0&&(OSc=document.createElement("template"));var I=OSc;x.call(P,I.content.cloneNode(!0),W.content.firstChild);J$z=W}W=J$z;return W},{mode:2});var xm=function(){var W=_.b.apply(this,arguments)||this;W.isDarkTheme=!1;W.notSticky=!1;W.transparentBackground=!1;W.shouldHide=!1;W.disableSticky=!1;W.fluidWidth=!1;W.isClipList=!1;W.defaultChipIndex=0;W.isPlaylist=!1;W.playlistVotingAnimationEnabled=_.p("web_enable_voting_animation");W.toolbarHeight=0;W.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return W};
_.A(xm,_.b);_.J=xm.prototype;
_.J.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.J.attached=function(){var W=this;document.addEventListener("scroll",_.WM(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var P;this.toolbarHeight=((P=document.querySelector("ytd-masthead"))==null?void 0:P.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(x){W.handleIntersect(x)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.J.detached=function(){var W;(W=this.intersectionObserver)==null||W.disconnect();var P;(P=this.resizeObserver)==null||P.disconnect();document.removeEventListener("scroll",_.WM(this,this.updateChipBarWidthAndTop))};
_.J.dataChanged=function(){var W=this,P,x,I;((I=_.Q((P=this.data)==null?void 0:(x=P.contents)==null?void 0:x[0],Fsl))==null?void 0:I.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var O=this.findSelectedChipIndex();this.selectedIndex!==O&&(this.selectedIndex=-1);_.Xm(this,function(){W.selectedIndex=O;W.updating=!1;W.ytScrollableChipCloudBehavior.reset()})};
_.J.findSelectedChipIndex=function(){var W;if((W=this.data)==null||!W.contents)return 0;W=this.data.contents;for(var P=0;P<W.length;P++){var x=void 0;if((x=_.Q(W[P],Fsl))==null?0:x.isSelected)return P}return 0};
_.J.computeStyle=function(W){return W};
_.J.handleChipCloudChipSelectAction=function(W){W=this.JSC$13841_chipsSelector.indexOf(W);W>-1&&this.JSC$13841_chipsSelector.selectIndex(W)};
_.J.handleChipCloudChipDeselectAction=function(){if(_.p("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var W,P,x,I=(x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],Fsl))==null?void 0:x.navigationEndpoint;I&&_.W7(this.hostElement,"yt-browse-section-list-reload-endpoint",[I]);this.JSC$13841_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.J.onGuideIsExpandedChanged=function(){var W=this.ytScrollableChipCloudBehavior;_.Xm(W,W.setContainerWidthDiff);WR(this.ytScrollableChipCloudBehavior)};
_.J.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.Xm(W,W.setContainerWidthDiff);WR(this.ytScrollableChipCloudBehavior)};
_.J.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.J.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.J.handleIntersect=function(W){_.p("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||W[0].intersectionRatio===1)};
_.J.updateDimensions=function(){var W=this.ytRendererBehavior.parentComponent;if(W){var P,x=(P=W.headerElement)!=null?P:W;_.qa(this.hostElement,{"--ytd-rich-grid-chips-bar-width":x.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.J.updateSelectedIndexFromBinding=function(W){this.selectedIndex=W.detail.value};
_.J.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var W;(W=this.sortFilterHeaderRendererElement)==null||W.setAttribute("is-playlist-page-with-filters","")}};
_.J.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.LK({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.N1.Object.defineProperties(xm.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 W,P,x=(W=this.data)==null?void 0:(P=W.contents)==null?void 0:P.find(function(I){return _.Q(I,B6l)});
return{sortFilterHeaderRenderer:_.Q(x,B6l)}}}});
xm.prototype.dispatchChipBarIsSticky=xm.prototype.dispatchChipBarIsSticky;xm.prototype.isPlaylistPageChanged=xm.prototype.isPlaylistPageChanged;xm.prototype.updateChipBarWidthAndTop=xm.prototype.updateChipBarWidthAndTop;xm.prototype.onResize=xm.prototype.onResize;xm.prototype.onGuideIsExpandedChanged=xm.prototype.onGuideIsExpandedChanged;xm.prototype.dataChanged=xm.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],xm.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.Db),_.l("design:type",Object)],xm.prototype,"ironResizableBehavior",void 0);_.f([_.h(),_.l("design:type",Lq)],xm.prototype,"ytScrollableChipCloudBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],xm.prototype,"ytdReduxBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],xm.prototype,"data",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],xm.prototype,"selectedIndex",void 0);_.f([_.c({value:320}),_.l("design:type",Number)],xm.prototype,"scrollDistance",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xm.prototype,"isDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xm.prototype,"notSticky",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xm.prototype,"transparentBackground",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.l("design:type",String)],xm.prototype,"componentStyle",void 0);_.f([_.c({selector:_.pAm}),_.l("design:type",Boolean)],xm.prototype,"guideIsExpanded",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xm.prototype,"shouldHide",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xm.prototype,"disableSticky",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xm.prototype,"fluidWidth",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xm.prototype,"isClipList",void 0);_.f([_.c(),_.l("design:type",Object)],xm.prototype,"defaultChipIndex",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xm.prototype,"isPlaylist",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],xm.prototype,"playlistVotingAnimationEnabled",void 0);_.f([_.BM("#chips"),_.l("design:type",Object)],xm.prototype,"JSC$13841_chipsSelector",void 0);_.f([_.BM("ytd-sort-filter-header-renderer"),_.l("design:type",HTMLElement)],xm.prototype,"sortFilterHeaderRendererElement",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],xm.prototype,"updating",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xm.prototype,"dataChanged",null);_.f([_.OZ("guideIsExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xm.prototype,"onGuideIsExpandedChanged",null);_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xm.prototype,"onResize",null);
_.f([_.K_("isChannelPageGrid","disableSticky","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xm.prototype,"updateChipBarWidthAndTop",null);_.f([_.H("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xm.prototype,"isChannelPageGrid",null);_.f([_.H("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xm.prototype,"isHashtagLandingPage",null);
_.f([_.OZ("isPlaylistPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xm.prototype,"isPlaylistPageChanged",null);_.f([_.H("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xm.prototype,"isPlaylistPage",null);_.f([_.H("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xm.prototype,"isDisableDeselectEvent",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],xm.prototype,"sortFilterHeaderRendererData",null);_.f([_.c({reflectToAttribute:!0,selector:_.EZG}),_.l("design:type",String)],xm.prototype,"frostedGlassMode",void 0);_.f([_.OZ("notSticky"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xm.prototype,"dispatchChipBarIsSticky",null);xm=_.f([_.U({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],xm);
_.X(xm,"ytd-feed-filter-chip-bar-renderer",function(){if(I4P!==void 0)return I4P;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return I4P=W},{mode:1});var y$Z;var K_i=_.kl(function(W){var P=W.data;var x=W.buttonIndex;var I=W.selectedIndex;var O=W.onSelect;var B=function(){return x()===I()},Y=function(){var Z,d;
return(d=(Z=P().text)==null?void 0:Z.content)!=null?d:""};
_.yB(function(){});
W=_.CfA();var K=_.yB(function(){O(P().onSubmitCommand);return!1});
return _.u("yt-toggleable-image-button-view-model",{class:function(){var Z={};Z=(Z["toggleable-image-button-view-model-wiz"]=!0,Z[""]=!0,Z["toggleable-image-button-view-model-wiz__semi-transparent"]=I()!==-1&&!B(),Z);return _.BF(Z)},
tabindex:0,"aria-label":Y,"aria-pressed":B,role:"button","on:keydown":W,"on:click":K},_.u(_.V,{cond:function(){return P().logo},
then:function(Z){return _.u(_.bq,{data:Z,className:function(){var d={};d=(d["toggleable-image-button-view-model-wiz__image"]=!0,d["toggleable-image-button-view-model-wiz__circular-radius"]=!(!P().backgroundColor||!P().backgroundColorDarkMode),d["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(B()&&P().backgroundColor&&P().backgroundColorDarkMode),d);return _.BF(d)},
alt:Y,useWidth:!1,style:function(){if(B()&&P().backgroundColor&&P().backgroundColorDarkMode){var d=CL(Number(P().backgroundColorDarkMode),"1");var v=CL(Number(P().backgroundColor),"1");d="background: linear-gradient(180deg,"+d+","+v+") border-box;"}else d="";return d}})}}),_.u(_.s4,{model:{borderRadius:"16px"}}),_.u("p",{class:function(){var Z={};
Z=(Z["toggleable-image-button-view-model-wiz__label"]=!0,Z["toggleable-image-button-view-model-wiz__bold-text"]=B(),Z);return _.BF(Z)}},_.u(_.mQ,{text:function(){return P().text}})))},"xb");
K_i.idomCompat=!0;var oop=_.kl(function(W){var P=W.data;W=_.n(_.YV({index:-1,command:{}},void 0,"Zcqtsb"));var x=W.next().value,I=W.next().value;return _.u("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.u("div",{class:"nudge-form-view-model-wiz__form-options"},_.u(_.Ea,{data:function(){return P().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(O,B){return _.u(K_i,{data:O.data,buttonIndex:B,selectedIndex:function(){return x().index},
onSelect:function(Y){I({index:B(),command:Y})}})}})),_.u(_.mQ,{text:function(){return P().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.u("div",{class:"nudge-form-view-model-wiz__submit"},_.u(_.Ea,{data:function(){return P().submitButton}},{buttonViewModel:function(O){return _.u(ZSA,{data:O.data,
isDisabled:function(){return x().index===-1},
onClick:function(){_.D1(x().command)}})}})))},"yb");
oop.idomCompat=!0;var ZSA=_.kl(function(W){var P=_.Sj(function(){return Object.assign({},W.data(),{state:W.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.u(_.cq,{data:P,onClick:W.onClick})},"zb");_.lq(oop,"yt-nudge-form-view-model",{props:{data:_.cv}});var Ij=function(){var W=_.b.apply(this,arguments)||this;W.roundedContainer=!0;W.buttonUpdate=_.p("web_modern_buttons");W.isDarkMode=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.A(Ij,_.b);_.J=Ij.prototype;_.J.computeNudgeStyle=function(W){return W?"modernized-nudge":""};
_.J.handleDarkModeToggledAction=function(W){this.isDarkMode=W};
_.J.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.J.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"}}}};
_.J.computeIsHorizontalButtons=function(W){return W?!!W.applyModernizedStyle&&!!W.enableHorizontalButtons&&!!W.secondaryButton:!1};
_.N1.Object.defineProperties(Ij.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=(W=this.data)==null?void 0:W.backgroundStyle)!=null?P:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=(W=this.data)==null?void 0:W.contentsLocation)!=null?P:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.lightIconImage)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],Ij.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Ij.prototype,"actionHandlerBehavior",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("isHideEnclosingAction"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ij.prototype,"isHidden",null);_.f([_.c(),_.l("design:type",Object)],Ij.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ij.prototype,"roundedContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ij.prototype,"buttonUpdate",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.l("design:type",String)],Ij.prototype,"nudgeStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.trimStyle"),_.l("design:type",String),_.l("design:paramtypes",[])],Ij.prototype,"trimStyle",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.backgroundStyle"),_.l("design:type",String),_.l("design:paramtypes",[])],Ij.prototype,"backgroundStyle",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data.contentsLocation"),_.l("design:type",String),_.l("design:paramtypes",[])],Ij.prototype,"contentsLocation",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.disableDropShadow"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ij.prototype,"noShadow",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.lightIconImage"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ij.prototype,"noIcon",null);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.l("design:type",Boolean)],Ij.prototype,"isHorizontalButtons",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],Ij.prototype,"isDarkMode",void 0);Ij=_.f([_.U({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Ij);
_.X(Ij,"ytd-feed-nudge-renderer",function(){if(y$Z!==void 0)return y$Z;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return y$Z=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var S9A;var uaz;var OH=function(){var W=_.b.apply(this,arguments)||this;W.collapsed=!1;W.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return W};
_.A(OH,_.b);OH.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"}}}};
OH.prototype.handleRatingSelect=function(){var W;((W=this.data)==null?0:W.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
OH.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],OH.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.gW),_.l("design:type",Object)],OH.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],OH.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],OH.prototype,"collapsed",void 0);OH=_.f([_.U({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],OH);
_.X(OH,"ytd-slimline-survey-renderer",function(){if(uaz!==void 0)return uaz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return uaz=W},{mode:1});var dFZ;var Ja=function(){return _.b.apply(this,arguments)||this};
_.A(Ja,_.b);Ja.prototype.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
Ja.prototype.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W&&(W==null?0:W.secondaryTitleColor)&&this.maybeGetBackgroundColor(W)?(this.hostElement.style.backgroundColor=_.j9(this.maybeGetBackgroundColor(W)),this.hostElement.style.color=_.j9(W.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Ja.prototype.colorPaletteChanged=Ja.prototype.colorPaletteChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],Ja.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ja.prototype,"data",void 0);_.f([_.c({selector:function(W){return W.ui.darkModeIsEnabled}}),
_.l("design:type",Boolean)],Ja.prototype,"isDarkMode",void 0);_.f([_.c(),_.l("design:type",Object)],Ja.prototype,"lightColorPalette",void 0);_.f([_.c(),_.l("design:type",Object)],Ja.prototype,"darkColorPalette",void 0);_.f([_.OZ("darkColorPalette","lightColorPalette","data","isDarkMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ja.prototype,"colorPaletteChanged",null);Ja=_.f([_.U({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Ja);
_.X(Ja,"ytd-endorsement-header-renderer",function(){if(dFZ!==void 0)return dFZ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return dFZ=W},{mode:1});_.lq(_.ml,"yt-decorated-avatar-view-model",{props:{data:_.cv,className:_.cv}});var BR=function(){var W=_.b.apply(this,arguments)||this;W.fullHeight=_.p("web_rich_grid_media_full_height");W.showChannelAvatar=!0;W.hasPlaylistThumbnail=!1;W.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};W.prepareThumbnailForPageTransition=function(){_.p("web_thumbnail_to_watch_transition")&&(W.thumbnail.style.viewTransitionName="thumbnail-to-watch",W.cleanupThumbnailAfterPageTransition(W.thumbnail))};
return W};
_.A(BR,_.b);_.J=BR.prototype;
_.J.configureRendererStamper=function(){return{lazyLoadMenu:JT,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"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.shouldLazyLoadMenu=function(){var W=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.p("kevlar_modern_downloads_page")||!W};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13867_inlinePreviewHoverListener=ir({mediaRenderer:this,lockupElement:this.JSC$13867_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.J.getVideoPreviewOpts=function(){var W={},P;if((P=this.data)==null?0:P.multipleInlinePlaybackEndpoint)W=K$Z;this.isRadio&&(W=yDM);return _.p("web_thumbnail_to_watch_transition")?Object.assign({},W,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):W};
_.J.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13867_inlinePreviewHoverListener)==null||no(W)};
_.J.getOwner=function(){var W,P,x;return((W=this.data)==null?void 0:(P=W.channelThumbnailSupportedRenderers)==null?void 0:P.channelThumbnailWithLinkRenderer)||_.Q((x=this.data)==null?void 0:x.showProviderChannelThumbnail,Ngc)};
_.J.updateLockupSize=function(){var W;((W=this.getOwner())==null?0:W.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.J.getFeedbackEndpoint=function(W){if(_.Q(W,_.hM))return W;var P,x;W=(x=(P=_.Q(W,_.B7))==null?void 0:P.commands)!=null?x:[];P=_.n(W);for(x=P.next();!x.done;x=P.next())if(x=this.getFeedbackEndpoint(x.value))return x;return null};
_.J.computeNavigationEndpoint=function(W){return qjt(W==null?void 0:W.navigationEndpoint)};
_.J.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var W=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(W)!==JSON.stringify(this.data)&&this.set("data",W)}};
_.J.onDataChanged=function(){var W=this,P=this.getOwner();if(P){this.set("data.owner",P);var x,I,O,B,Y,K=((x=this.data)==null?void 0:(I=x.shortBylineText)==null?void 0:(O=I.runs)==null?void 0:(B=O[0])==null?void 0:B.text)||((Y=P.name)==null?void 0:Y.simpleText);this.set("data.owner.title",K)}var Z,d,v,m,t,C;P=((Z=this.data)==null?void 0:(d=Z.thumbnailRenderer)==null?void 0:d.playlistVideoThumbnailRenderer)||((v=this.data)==null?void 0:(m=v.thumbnailRenderer)==null?void 0:m.playlistCustomThumbnailRenderer)||
((t=this.data)==null?void 0:(C=t.thumbnailRenderer)==null?void 0:C.showCustomThumbnailRenderer);var z;((z=this.data)==null?0:z.thumbnail)||!P||this.set("data.thumbnail",P.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){W.updateLockupSize()});
var D;if(Z=((D=this.data)==null?void 0:D.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Z);var w;((w=this.dismissActionToReplayEntity)==null?0:w.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.J.onHiddenChanged=function(){this.updateLockupSize()};
_.J.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.W7(this.hostElement,"yt-terminate-video-preview-action");else{var W;(W=this.videoTitleLink)==null||W.focus()}};
_.J.metadataColorChanged=function(){var W;if(this.metadataColor&&((W=this.videoTitle)==null?0:W.style))this.videoTitle.style.color=_.j9(this.metadataColor);else{var P,x;!this.metadataColor&&((P=this.videoTitle)==null?0:(x=P.style)==null?0:x.color)&&(this.videoTitle.style.color="")}};
_.J.onDetailsClick=function(W){var P=this.computedNavigationEndpoint;P&&(_.Nx(_.c5(W),this.hostElement,["A","BUTTON"])||_.Lf(this.hostElement,"yt-navigate",{endpoint:P}))};
_.J.cleanupThumbnailAfterPageTransition=function(W){_.iLC(document,"yt-page-type-changed",function(){W.style.viewTransitionName=""})};
_.J.onRendererTap=function(){this.prepareThumbnailForPageTransition();var W,P,x=((W=this.data)==null?void 0:W.serviceEndpoint)||this.getFeedbackEndpoint((P=this.data)==null?void 0:P.navigationEndpoint);x&&_.Q(x,_.hM)&&this.ytComponentBehavior.resolveCommand(x)};
_.J.onMouseDown=function(W){var P=W.target,x=this.computedNavigationEndpoint,I;W=P.href||((I=_.Q(x==null?void 0:x.commandMetadata,_.rU))==null?void 0:I.url);I=P.data||x;W&&I&&inU(W,I)};
_.J.computeVideoTitleText=function(){var W;if((W=this.data)==null?0:W.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.J.computeHasPlaylistThumbnail=function(W){var P,x,I,O,B;if((((P=W.thumbnailRenderer)==null?0:P.playlistVideoThumbnailRenderer)||((x=W.thumbnailRenderer)==null?0:x.playlistCustomThumbnailRenderer)||((I=W.thumbnailRenderer)==null?0:I.showCustomThumbnailRenderer)||((O=W.thumbnailRenderer)==null?0:O.playlistVideoThumbnailRenderer)||((B=W.thumbnailRenderer)==null?0:B.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(P=0;P<W.thumbnailOverlays.length;P++)if(x=void 0,(x=W.thumbnailOverlays[P])==
null?0:x.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.N1.Object.defineProperties(BR.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.p("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13867_inlinePreviewHoverListener)==null?0:jp(W))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Y3(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:W.videoId)||((P=this.data)==null?void 0:P.playlistId)||""}}});
BR.prototype.onMouseDown=BR.prototype.onMouseDown;BR.prototype.metadataColorChanged=BR.prototype.metadataColorChanged;BR.prototype.onIsDismissedChanged=BR.prototype.onIsDismissedChanged;BR.prototype.onHiddenChanged=BR.prototype.onHiddenChanged;BR.prototype.onDataChanged=BR.prototype.onDataChanged;BR.prototype.handleReloadDownloadsInfo=BR.prototype.handleReloadDownloadsInfo;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],BR.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],BR.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],BR.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],BR.prototype,"ytdReduxBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],BR.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],BR.prototype,"entitySelectorType",void 0);_.f([_.c(),_.l("design:type",Boolean)],BR.prototype,"noEndpoints",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],BR.prototype,"isRadio",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],BR.prototype,"miniMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],BR.prototype,"fullHeight",void 0);
_.f([_.c(),_.l("design:type",Boolean)],BR.prototype,"showDarkVideoMetadata",void 0);_.f([_.c(),_.l("design:type",Boolean)],BR.prototype,"showLightVideoMetadata",void 0);_.f([_.c(),_.l("design:type",Number)],BR.prototype,"metadataColor",void 0);_.f([_.c(),_.l("design:type",Object)],BR.prototype,"showChannelAvatar",void 0);_.f([_.c(),_.l("design:type",Boolean)],BR.prototype,"hidden",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],BR.prototype,"showYtInteraction",void 0);
_.f([_.c(),_.l("design:type",String)],BR.prototype,"dismissedContentId",void 0);_.f([_.c({selectorArgs:["dismissedContentId"],selector:wkm}),_.l("design:type",Object)],BR.prototype,"dismissActionToReplayEntity",void 0);
_.f([_.c({selectorArgs:["entitySelectorType","mediaId"],selector:function(W,P,x){if(_.p("kevlar_modern_downloads_page")&&x&&P&&P!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(P){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var I=$3C(W,x);if(I){P=_.GK(W,x);var O=gE(W,x),B=fy8(W,x);W=D5(W,x);var Y=tvm(I,P,O,B);O=Y.shortViewCountText;var K=Y.publishedTimeText;Y=Y.badges;var Z=W>0;B=mGd(I,P,B,W);I=_.ux(P)||P==="TRANSFER_STATE_FAILED"||P==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Sl(I.policyEntity)?
void 0:R2U(x,W,I.videoEntity.lengthSeconds);P==="TRANSFER_STATE_PAUSED_BY_USER"&&x&&!_.p("dl_resume_click_killswitch")&&(I={offlineVideoEndpoint:{videoId:x,action:"ACTION_RESUME"}});x={shortViewCountText:O,publishedTimeText:K,badges:Y,isWatched:Z,navigationEndpoint:I,thumbnailOverlays:B}}else x=void 0;return x;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(P=wA7(W,x))if(I=_.En(W,x),B=_.hER(W,x),I!=="TRANSFER_STATE_UNKNOWN"){x=Vvm(P,I,B,x,GNt(W));break a}x=void 0}return x;default:_.ge(new _.mW("Error: entitySelectorType defined but not matched in selector.",
W,P))}}}),
_.l("design:type",Object)],BR.prototype,"entityDrivenState",void 0);_.f([_.c({computed:"computeVideoTitleText(data)"}),_.l("design:type",Object)],BR.prototype,"videoTitleText",void 0);_.f([_.c({computed:"computeHasPlaylistThumbnail(data)"}),_.l("design:type",Object)],BR.prototype,"hasPlaylistThumbnail",void 0);_.f([_.c({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],BR.prototype,"computedNavigationEndpoint",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],BR.prototype,"typographyBump",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("typographyBump"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BR.prototype,"typographyBumpV2",null);_.f([_.BM("#video-title"),_.l("design:type",HTMLElement)],BR.prototype,"videoTitle",void 0);_.f([_.BM("#video-title-link"),_.l("design:type",HTMLElement)],BR.prototype,"videoTitleLink",void 0);
_.f([_.BM("#thumbnail"),_.l("design:type",HTMLElement)],BR.prototype,"thumbnail",void 0);_.f([_.BM("#dismissible"),_.l("design:type",HTMLElement)],BR.prototype,"JSC$13867_dismissibleMedia",void 0);_.f([_.H("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],BR.prototype,"lazyLoadMenu",null);_.f([_.H("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],BR.prototype,"immediateLoadMenu",null);
_.f([_.K_("entityDrivenState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BR.prototype,"handleReloadDownloadsInfo",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BR.prototype,"onDataChanged",null);_.f([_.K_("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BR.prototype,"onHiddenChanged",null);
_.f([_.OZ("isDismissed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BR.prototype,"onIsDismissedChanged",null);_.f([_.OZ("metadataColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BR.prototype,"metadataColorChanged",null);_.f([_.I7("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BR.prototype,"onMouseDown",null);
_.f([_.H("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BR.prototype,"isHovered",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BR.prototype,"useAvatar",null);_.f([_.H("data","entitySelectorType"),_.l("design:type",String),_.l("design:paramtypes",[])],BR.prototype,"mediaId",null);BR=_.f([_.U({is:"ytd-rich-grid-media",disableElementRegistration:!0})],BR);
var sNm=_.R7()(BR,"ytd-rich-grid-media",function(){if(S9A!==void 0)return S9A;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return S9A=W},{mode:_.F4("kevlar_poly_si_batch_j072")?1:2});var voZ;var nc=function(){var W=_.b.apply(this,arguments)||this;W.removeMaxWidth=!0;W.insetMetadata=!1;return W};
_.A(nc,_.b);_.J=nc.prototype;_.J.configureRendererStamper=function(){return{innerMenu:JT,outerMenu:Object.assign({},JT,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onDataChanged=function(){var W,P=((W=this.data)==null?void 0:W.trackingParams)||"";P&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(P));var x;((x=this.dismissActionToReplayEntity)==null?0:x.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13872_inlinePreviewHoverListener=ir({mediaRenderer:this,lockupElement:this.JSC$13872_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:IJ8})};
_.J.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13872_inlinePreviewHoverListener)==null||no(W)};
_.J.onRendererTap=function(){var W,P,x=(W=this.data)==null?void 0:(P=W.serviceEndpoints)==null?void 0:P[0];_.Q(x,_.hM)&&this.componentBehavior.resolveCommand(x)};
_.J.onDetailsClick=function(W){var P,x=(P=this.data)==null?void 0:P.navigationEndpoint;x&&(_.Nx(_.c5(W),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(x))};
_.J.onShow=function(){var W=this.data;W.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(W.onFirstVisibleCommand),delete W.onFirstVisibleCommand)};
_.N1.Object.defineProperties(nc.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?void 0:(W=this.data)==null?void 0:W.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?(W=this.data)==null?void 0:W.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var W=this.data;if(W!=null&&W.badge&&(W=_.Q(W.badge,fRi))){var P,x,I;return[{metadataBadgeRenderer:{label:((P=W.label)==null?void 0:(x=P.runs)==null?void 0:x[0].text)||((I=W.label)==null?void 0:I.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var W=this.data;return Object.assign({},W.headline,{accessibility:W.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return this.isSlimShort?(W=this.computedTitle)==null?void 0:(P=W.accessibility)==null?void 0:(x=P.accessibilityData)==null?void 0:x.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13872_inlinePreviewHoverListener)==null?0:jp(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
nc.prototype.onDataChanged=nc.prototype.onDataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],nc.prototype,"componentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],nc.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.gW),_.l("design:type",Object)],nc.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],nc.prototype,"ytdReduxBehavior",void 0);_.f([_.BM("ytd-thumbnail"),_.l("design:type",HTMLElement)],nc.prototype,"thumbnail",void 0);_.f([_.BM("#dismissible"),_.l("design:type",HTMLElement)],nc.prototype,"JSC$13872_dismissibleMedia",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],nc.prototype,"removeMaxWidth",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],nc.prototype,"insetMetadata",void 0);_.f([_.c(),_.l("design:type",String)],nc.prototype,"dismissedContentId",void 0);_.f([_.c({selectorArgs:["dismissedContentId"],selector:wkm}),_.l("design:type",Object)],nc.prototype,"dismissActionToReplayEntity",void 0);_.f([_.H("insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],nc.prototype,"thumbnailObjectFit",null);
_.f([_.H("data","insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],nc.prototype,"innerMenu",null);_.f([_.H("data","insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],nc.prototype,"outerMenu",null);_.f([_.c(),_.l("design:type",Object)],nc.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],nc.prototype,"miniMode",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nc.prototype,"onDataChanged",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],nc.prototype,"shortsBadges",null);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nc.prototype,"isShort",null);
_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nc.prototype,"isSlimShort",null);_.f([_.H("data","isShort"),_.l("design:type",Object),_.l("design:paramtypes",[])],nc.prototype,"computedTitle",null);_.f([_.H("isSlimShort","computedTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],nc.prototype,"computedAccessibilityLabel",null);
_.f([_.H("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nc.prototype,"isHovered",null);nc=_.f([_.U({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],nc);
_.X(nc,"ytd-rich-grid-slim-media",function(){if(voZ!==void 0)return voZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return voZ=W},{mode:_.F4("kevlar_poly_si_batch_j063")?1:2});var mFk;var VEi;var Ym=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(Ym,_.b);Ym.prototype.computeIcon=function(W){return W&&W.iconType?"yt-sys-icons:"+W.iconType.toLowerCase():""};
Ym.prototype.onMouseEnter=function(){this.isHovered=!0};
Ym.prototype.onMouseLeave=function(){this.isHovered=!1};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Ym.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ym.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Ym.prototype,"isHovered",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ym.prototype,"darkerDarkTheme",void 0);Ym=_.f([_.U({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Ym);
_.X(Ym,"ytd-expand-on-hover-card-renderer",function(){if(VEi!==void 0)return VEi;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return VEi=W},{mode:1});var tEp,p0A=function(){if(tEp!==void 0)return tEp;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return tEp=W};_.Ad("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var yC=function(){var W=_.b.apply(this,arguments)||this;W.compactStyle=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(yC,_.b);_.J=yC.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.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"}}}};
_.J.computeHideDot=function(W){return!(W&&W.subscriberCountText&&W.videoCountText)||this.compactStyle};
_.J.hasDualButtons=function(W){return W&&W.purchaseButton&&W.subscribeButton};
_.J.backgroundColorChanged=function(){if(this.data!==void 0){var W=this.data.backgroundColor;this.isDarkTheme&&(W=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=W!=null?_.j9(W):"transparent"}};
_.J.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.J.onTap=function(W){var P,x,I=((P=this.data)==null?void 0:P.navigationEndpoint)||((x=this.data)==null?void 0:x.serviceEndpoint);_.Q(I,_.BO)&&(I&&_.FY().resolve(_.qR).resolveCommand(I,{form:{element:this.hostElement}}),W.preventDefault())};
_.J.computeChannelEndpoint=function(W){return _.Q(W,_.BO)?null:W};
_.J.computeHrefEndpoint=function(W){return _.Q(W,_.BO)?null:this.componentBehavior.computeHref_(W)};
_.J.computeChannelRendererStyle=function(W){return W};
_.J.computeIconSize=function(W){return W?108:136};
_.N1.Object.defineProperties(yC,{template:{configurable:!0,enumerable:!0,get:function(){return p0A()}}});
yC.prototype.backgroundColorChanged=yC.prototype.backgroundColorChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],yC.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],yC.prototype,"componentBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],yC.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],yC.prototype,"isDarkTheme",void 0);_.f([_.c({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.l("design:type",String)],yC.prototype,"channelRendererStyle",void 0);_.f([_.c({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],yC.prototype,"dualButtons",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],yC.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],yC.prototype,"biggerThumbStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yC.prototype,"compactStyle",void 0);_.f([_.OZ("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yC.prototype,"backgroundColorChanged",null);yC=_.f([_.U({is:"ytd-channel-renderer",disableElementRegistration:!0})],yC);_.X(yC,"ytd-channel-renderer",function(){return p0A()},{mode:1});var jNZ;var QNW;_.Ad("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Kc=function(){var W=_.b.apply(this,arguments)||this;W.displayItemCount=2;W.collections=_.p("web_modern_collections_v2");W.hasPlaylistThumbnail=!1;W.stackThumbnailSize="large";return W};
_.A(Kc,_.b);_.J=Kc.prototype;_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.computeFirstVideos=function(W,P){return W&&P?W.slice(0,P):[]};
_.J.computeThumbnailWidth=function(W,P){return W?P==="BIG"?500:P==="MASSIVE"?600:P==="MEDIUM"?450:420:360};
_.J.computeThumbnailHeight=function(W,P){return W?P==="BIG"?280:P==="MASSIVE"?337:234:202};
_.J.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13885_inlinePreviewHoverListener)==null||no(W)};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13885_inlinePreviewHoverListener=ir({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:K$Z,thumbnailElement:this.thumbnail})};
_.J.computeHasPlaylistThumbnail=function(W){var P,x;if((((P=W.thumbnailRenderer)==null?0:P.playlistVideoThumbnailRenderer)||((x=W.thumbnailRenderer)==null?0:x.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(P=0;P<W.thumbnailOverlays.length;P++)if(x=void 0,(x=W.thumbnailOverlays[P])==null?0:x.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.N1.Object.defineProperties(Kc.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13885_inlinePreviewHoverListener)==null?0:jp(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Kc.prototype.dataChanged=Kc.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],Kc.prototype,"ytdLockupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Kc.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Kc.prototype,"displayItemCount",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],Kc.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],Kc.prototype,"biggerThumbsStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Kc.prototype,"collections",void 0);_.f([_.c({computed:"computeHasPlaylistThumbnail(data)"}),_.l("design:type",Object)],Kc.prototype,"hasPlaylistThumbnail",void 0);_.f([_.c(),_.l("design:type",String)],Kc.prototype,"stackThumbnailSize",void 0);_.f([_.BM("ytd-thumbnail"),_.l("design:type",HTMLElement)],Kc.prototype,"thumbnail",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Kc.prototype,"dataChanged",null);_.f([_.H("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Kc.prototype,"isHovered",null);Kc=_.f([_.U({is:"ytd-radio-renderer",disableElementRegistration:!0})],Kc);
_.X(Kc,"ytd-radio-renderer",function(){if(QNW!==void 0)return QNW;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return QNW=W},{mode:_.F4("kevlar_poly_si_batch_j058")?1:2});var Caz;_.Ad("itemSectionRenderer","showRenderer","ytd-show-renderer");var ZK=function(){return _.b.apply(this,arguments)||this};
_.A(ZK,_.b);ZK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ZK.prototype.computeThumbnailWidth=function(W){return W?360:246};
ZK.prototype.computeUseProminentThumbs=function(W){return W};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ZK.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],ZK.prototype,"isSearch",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.l("design:type",Boolean)],ZK.prototype,"useProminentThumbs",void 0);ZK=_.f([_.U({is:"ytd-show-renderer",disableElementRegistration:!0})],ZK);
_.X(ZK,"ytd-show-renderer",function(){if(Caz!==void 0)return Caz;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Caz=W},{mode:1});_.Ad("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var oj=function(){var W=_.b.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.A(oj,_.b);oj.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"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],oj.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],oj.prototype,"isRichGrid",void 0);oj=_.f([_.U({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],oj);
_.X(oj,"ytd-feed-entry-renderer",function(){if(jNZ!==void 0)return jNZ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return jNZ=W},{mode:1});var A$b;var Sq=function(){return _.b.apply(this,arguments)||this};
_.A(Sq,_.b);Sq.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.f([_.h(_.Gp),_.l("design:type",Object)],Sq.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Sq.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Sq.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.CR,value:3}),_.l("design:type",Number)],Sq.prototype,"itemsPerRow",void 0);
Sq=_.f([_.U({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Sq);
_.X(Sq,"ytd-link-card-renderer",function(){if(A$b!==void 0)return A$b;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return A$b=W},{mode:1});var zrl;var u0=function(){return _.b.apply(this,arguments)||this};
_.A(u0,_.b);_.J=u0.prototype;_.J.configureRendererStamper=function(){return{"data.menu":JT,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onRendererTap=function(W){if(!this.ytdDismissibleItemBehavior.isDismissed){var P,x=(P=this.data)==null?void 0:P.navigationEndpoint;x&&!_.Nx(_.c5(W),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(x)?_.Nx(_.c5(W),this.hostElement,["A"])||_.Lf(this.hostElement,"yt-navigate",{endpoint:x}):this.ytComponentBehavior.resolveCommand(x,{}))}};
_.J.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.J.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
_.J.isNavigationCommand=function(W){return W?_.Q(W,_.KL)||_.Q(W,_.U_)||_.Q(W,_.aR)?!0:!1:!1};
u0.prototype.onRendererTap=u0.prototype.onRendererTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],u0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],u0.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],u0.prototype,"ytComponentBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],u0.prototype,"data",void 0);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],u0.prototype,"onRendererTap",null);u0=_.f([_.U({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],u0);
_.X(u0,"ytd-lumiere-promo-item-image-renderer",function(){if(zrl!==void 0)return zrl;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zrl=W},{mode:1});var GU3;var dG=function(){return _.b.apply(this,arguments)||this};
_.A(dG,_.b);dG.prototype.computeLandscapeThumbnail=function(){var W;return((W=this.data)==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],dG.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dG.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],dG.prototype,"miniMode",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.CR}),_.l("design:type",Number)],dG.prototype,"itemsPerRow",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.l("design:type",Boolean)],dG.prototype,"landscapeThumbnail",void 0);dG=_.f([_.U({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],dG);
_.X(dG,"ytd-lumiere-shelf-details-renderer",function(){if(GU3!==void 0)return GU3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return GU3=W},{mode:_.F4("kevlar_poly_si_batch_j076")?1:2});var Eob;var sH=function(){return _.b.apply(this,arguments)||this};
_.A(sH,_.b);sH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sH.prototype,"data",void 0);sH=_.f([_.U({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],sH);
_.X(sH,"ytd-primetime-promo-details-renderer",function(){if(Eob!==void 0)return Eob;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Eob=W},{mode:1});var gol;var vR=function(){return _.b.apply(this,arguments)||this};
_.A(vR,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vR.prototype,"data",void 0);vR=_.f([_.U({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],vR);
_.X(vR,"ytd-panel-show-style-metadata-renderer",function(){if(gol!==void 0)return gol;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gol=W},{mode:1});var DFp;var mo=function(){return _.b.apply(this,arguments)||this};
_.A(mo,_.b);_.J=mo.prototype;_.J.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.J.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.J.computeThumbnail=function(W){if(W)return W.smallFormFactorBackgroundThumbnail||W.largeFormFactorBackgroundThumbnail};
_.J.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.J.isNavigationCommand=function(W){return W?_.Q(W,_.KL)||_.Q(W,_.U_)||_.Q(W,_.aR)?!0:!1:!1};
_.J.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
mo.prototype.onPanelTap=mo.prototype.onPanelTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],mo.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mo.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mo.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],mo.prototype,"roundedContainer",void 0);_.f([_.c({reflectToAttribute:!0,value:_.p("web_modern_buttons")}),_.l("design:type",Boolean)],mo.prototype,"modernButtons",void 0);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mo.prototype,"onPanelTap",null);mo=_.f([_.U({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],mo);
_.X(mo,"ytd-primetime-promo-panel-renderer",function(){if(DFp!==void 0)return DFp;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return DFp=W},{mode:1});_.lq(_.kl(function(W){W=_.bw(W,{data:{},useFullWidth:!1});var P=W.data,x=W.useFullWidth,I=function(){return P().caption},O=function(){return P().image},B=function(){return _.AF(P().onTap)};
W={};W=_.O4("ytTeaserCardViewModelHost",(W.ytTeaserCardViewModelUseFullWidth=function(){return x()},W));
return _.u("teaser-card-view-model",{class:W},_.u(_.V,{cond:function(){return B()},
then:function(){return _.u(rtz,{className:"ytTeaserCardViewModelLink",command:B,forceNewState:!0,useATagConfig:!0},_.u("div",{class:"ytTeaserCardViewModelImageContainer"},_.u(_.V,{cond:O,then:function(Y){return _.u(_.bq,{data:Y,className:"ytTeaserCardViewModelImage",alt:""})}})),_.u("p",{class:"ytTeaserCardViewModelCaption"},I))}}))},"Ab"),"teaser-card-view-model",{props:{data:_.cv,
useFullWidth:_.cv}});var MEc=new _.Lb("RICH_GRID_VIDEO_RENDERER_TOKEN");_.lq(_.kl(function(W){var P=W.data;var x=W.showYtInteractionInContent;var I=function(){return!!P().selectableFeedback};
W=_.n(_.YV(!1,void 0,"nblDw"));var O=W.next().value,B=W.next().value;_.AQ(function(){var t=_.Q(P().primaryButton,_.DZ);(t==null?0:t.isToggled)&&B(t.isToggled)});
W=_.yB(function(t){if(!I())return!1;if(O()){var C;var z=(C=P().selectableFeedback)==null?void 0:C.onDeselect}else{var D;z=(D=P().selectableFeedback)==null?void 0:D.onSelect}z&&_.D1(z,{form:{element:t.target}});B(!O());if(t=_.Q(P().primaryButton,_.DZ))t.isToggled=O();return!1});
var Y=function(){if(!I()){var t,C=(t=P().loggingDirectives)==null?void 0:t.trackingParams;C&&_.Kg(_.FY().resolve(_.ZF),C)}},K=_.Atx(),Z=function(){var t;
return I()?(t=P().selectableFeedback)==null?void 0:t.a11yLabel:void 0},d=function(){return I()?{toggled:O()}:{}},v=_.FY().resolve(_.Rl(MEc)),m={};
return _.u("yt-feedback-item-renderer",{class:_.O4("ytFeedbackItemRendererHost",(m.ytFeedbackItemRendererSelectableFeedback=I,m)),"on:click":W,"on:keydown":K,title:Z,"aria-label":Z,"aria-pressed":function(){return I()?O():void 0},
tabindex:function(){return I()?0:void 0},
role:function(){return I()?"button":void 0}},_.u("div",{class:"ytFeedbackItemRendererContentContainer"},_.u(_.Ea,{data:function(){return P().content}},{videoRenderer:function(t){return _.u(v,{data:t.data,
showYtInteraction:x})},
lockupViewModel:function(t){return _.u(_.R8,{data:t.data,containerType:2})}})),_.u("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.u(_.Ea,{data:function(){return P().primaryButton}},{toggleButtonViewModel:function(t){return _.u(_.MI,{data:t.data,
buttonShapeOverrides:d,disableExplicitClickLogging:!0,onToggle:Y})}})))},"Bb"),"yt-feedback-item-renderer",{props:{data:_.cv,
showYtInteractionInContent:_.cv}});var VC=function(){var W=_.b.apply(this,arguments)||this;W.isShortsGrid=!1;W.isCompactGrid=!1;W.isShortsPanelGrid=!1;W.renderedFromRichGrid=!1;W.isInFirstColumn=!1;W.noGutterMargins=!1;W.isInlineGroupItem=!1;W.insetMetadata=!1;W.noBottomMarginInAds=_.p("web_no_bottom_margin_for_home_ad_buttons");W.force16By9ThumbnailAspectRatio=!1;W.useCompactList=!1;W.containerType=2;W.thumbnailTargetWidth=9999;W.isResponsiveGrid=!1;W.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};W.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};W.hoverListener=W.hover.bind(W);W.leaveListener=W.leave.bind(W);W.highlighted=!1;W.JSC$13920_unsubscribeFromInlinePreviewIsActive=function(){};
return W};
_.A(VC,_.b);_.J=VC.prototype;_.J.computeContainerType=function(){return this.useCompactList?3:2};
_.J.computeThumbnailTargetWidth=function(){var W;return(W=this.itemWidth)!=null?W:9999};
_.J.updateIsInFirstColumn=function(){var W;this.isInFirstColumn=((W=this.data)==null?void 0:W.colIndex)===0};
_.J.observerContainerType=function(){if(this.lockup){var W=this.lockup;W.containerType=this.containerType;W.sizing=this.sizing;W.typographyBump=this.typographyBump;W.itemWidth=this.itemWidth}this.richGridMedia&&_.p("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.p("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.J.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.J.leave=function(W){W=W.relatedTarget;var P=document.querySelector("ytd-video-preview");W&&P&&_.rT(P).contains(W)||this.removeAndCleanupHighlight()};
_.J.hover=function(){var W;if(!this.highlighted&&(!_.p("web_enable_rich_item_on_focus_effect")||(W=this.data)!=null&&W.onFocusEffect)){var P,x;((P=this.data)==null?void 0:(x=P.onFocusEffect)==null?void 0:x.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(W=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:W,boxShadow:"0 0 0 10px "+W}));var I,O;((I=this.data)==null?void 0:(O=I.onFocusEffect)==null?void 0:
O.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.J.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};
_.J.registerHoverHighlightListeners=function(){var W=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13920_unsubscribeFromInlinePreviewIsActive=_.sx(_.Xe(),_.CGR,function(P){W.highlighted&&!P&&W.removeAndCleanupHighlight()})};
_.J.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13920_unsubscribeFromInlinePreviewIsActive()};
_.J.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.J.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.J.getBackgroundColor=function(){var W,P,x=(W=this.data)==null?void 0:(P=W.onFocusEffect)==null?void 0:P.onFocusColor;if(x){if(document.documentElement.hasAttribute("dark")&&(x==null?0:x.darkTheme))return _.j9(x==null?void 0:x.darkTheme);if(x==null?0:x.lightTheme)return _.j9(x==null?void 0:x.lightTheme)}};
_.J.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var W=_.E_(),P,x,I;W&&((P=this.data)==null?0:P.trackingParams)&&((x=this.data)==null?void 0:x.colIndex)!=null&&((I=this.data)==null?void 0:I.rowIndex)!=null&&_.UL(W,_.ox(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.J.isSlimMediaRenderer=function(W){return!!_.Q(W==null?void 0:W.content,_.t2l)||!!_.Q(W==null?void 0:W.content,V2p)||!!_.Q(W==null?void 0:W.content,_.$Z)||!!_.Q(W==null?void 0:W.content,kPk)};
_.J.isPostRenderer=function(){var W,P;return!!_.Q((W=this.data)==null?void 0:W.content,E5z)||!!_.Q((P=this.data)==null?void 0:P.content,g5l)};
_.J.computeIsGameCardShelf=function(){var W;return!!_.Q((W=this.data)==null?void 0:W.content,Efc)};
_.J.computeIsMiniGameCardShelf=function(){var W,P;return!!_.Q((W=this.data)==null?void 0:W.content,N0P)||!!_.Q((P=this.data)==null?void 0:P.content,lGc)};
_.J.computeIsTeaserCard=function(){var W;return!!_.Q((W=this.data)==null?void 0:W.content,lGc)};
_.J.computeIsSelectableFeedbackItem=function(){var W,P;return!((P=_.Q((W=this.data)==null?void 0:W.content,_.rWP))==null||!P.selectableFeedback)};
_.J.computeContainsLumierePosters=function(){var W,P;return((P=_.Q((W=this.data)==null?void 0:W.content,bWm))==null?void 0:P.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.computeIsExpandOnHoverCardShelf=function(){var W;return!!_.Q((W=this.data)==null?void 0:W.content,a2i)};
_.J.computeIsLinkCardShelf=function(){var W;return!!_.Q((W=this.data)==null?void 0:W.content,Nxp)};
_.J.computeIsReelItemStyleAvatarCircle=function(W){var P;return((P=_.Q(W==null?void 0:W.content,_.$Z))==null?void 0:P.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.J.computeIsLinkCardFullWidth=function(W,P){var x;return((x=_.Q(W==null?void 0:W.content,Nxp))==null?void 0:x.useFullWidth)||P<=2};
_.N1.Object.defineProperties(VC.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.p("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.p("web_enable_rich_item_on_focus_effect")||_.p("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.p("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.p("web_shorts_2_by_3_lockups_study")||_.p("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
VC.prototype.richGridHoverHighlightChanged=VC.prototype.richGridHoverHighlightChanged;VC.prototype.observerContainerType=VC.prototype.observerContainerType;VC.prototype.updateIsInFirstColumn=VC.prototype.updateIsInFirstColumn;_.f([_.h(_.Gp),_.l("design:type",Object)],VC.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],VC.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],VC.prototype,"ytdLockupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],VC.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.l("design:type",Boolean)],VC.prototype,"isPost",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.l("design:type",Boolean)],VC.prototype,"containsLumierePosters",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.l("design:type",Boolean)],VC.prototype,"isSlimMedia",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.l("design:type",Boolean)],VC.prototype,"isGameCardShelf",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.l("design:type",Boolean)],VC.prototype,"isMiniGameCardShelf",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.l("design:type",Boolean)],VC.prototype,"isTeaserCard",void 0);_.f([_.c({computed:"computeIsSelectableFeedbackItem(data)"}),_.l("design:type",Boolean)],VC.prototype,"isSelectableFeedbackItem",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"isShortsGrid",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],VC.prototype,"isSlimGrid",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"isCompactGrid",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"isShortsPanelGrid",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.l("design:type",Boolean)],VC.prototype,"isExpandOnHoverCardShelf",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.l("design:type",Boolean)],VC.prototype,"isLinkCardShelf",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.CR,value:3}),_.l("design:type",Number)],VC.prototype,"itemsPerRow",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"renderedFromRichGrid",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"isInFirstColumn",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"noGutterMargins",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"isInlineGroupItem",void 0);_.f([_.c(),_.l("design:type",Object)],VC.prototype,"insetMetadata",void 0);
_.f([_.c(),_.l("design:type",Object)],VC.prototype,"noBottomMarginInAds",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],VC.prototype,"isShelfItem",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.l("design:type",Boolean)],VC.prototype,"isReelItemStyleAvatarCircle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.l("design:type",Boolean)],VC.prototype,"isLinkCardFullWidth",void 0);
_.f([_.c(),_.l("design:type",Object)],VC.prototype,"force16By9ThumbnailAspectRatio",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"useCompactList",void 0);_.f([_.c(),_.l("design:type",String)],VC.prototype,"sizing",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],VC.prototype,"typographyBump",void 0);_.f([_.c(),_.l("design:type",Number)],VC.prototype,"itemWidth",void 0);_.f([_.c(),_.l("design:type",Boolean)],VC.prototype,"isHomeShelf",void 0);
_.f([_.c(),_.l("design:type",Boolean)],VC.prototype,"isHomeGrid",void 0);_.f([_.BM("yt-lockup-view-model"),_.l("design:type",HTMLElement)],VC.prototype,"lockup",void 0);_.f([_.BM("ytd-rich-grid-media"),_.l("design:type",HTMLElement)],VC.prototype,"richGridMedia",void 0);_.f([_.BM("ytd-ad-slot-renderer"),_.l("design:type",HTMLElement)],VC.prototype,"adSlotRenderer",void 0);_.f([_.c({computed:"computeContainerType(useCompactList)"}),_.l("design:type",Object)],VC.prototype,"containerType",void 0);
_.f([_.c({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.l("design:type",Object)],VC.prototype,"thumbnailTargetWidth",void 0);_.f([_.H("showYtInteractionOnRichItem"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VC.prototype,"showYtInteractionOnRichGridMedia",null);_.f([_.H("isSelectableFeedbackItem","richGridHoverHighlight"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VC.prototype,"showYtInteractionOnRichItem",null);
_.f([_.H("typographyBump","isHomeGrid"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VC.prototype,"richTypographyBump",null);_.f([_.c({reflectToAttribute:!0}),_.H("isShortsGrid","isCompactGrid"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VC.prototype,"richGridHoverHighlight",null);_.f([_.H("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.l("design:type",Number),_.l("design:paramtypes",[])],VC.prototype,"shortsLockupViewModelAspectRatio",null);
_.f([_.H("isInlineGroupItem"),_.l("design:type",Number),_.l("design:paramtypes",[])],VC.prototype,"shortsLockupViewModelScrimStyle",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VC.prototype,"updateIsInFirstColumn",null);_.f([_.OZ("containerType","sizing","typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VC.prototype,"observerContainerType",null);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],VC.prototype,"isResponsiveGrid",void 0);_.f([_.c(),_.l("design:type",Object)],VC.prototype,"lockupExperiments",void 0);_.f([_.OZ("richGridHoverHighlight"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VC.prototype,"richGridHoverHighlightChanged",null);VC=_.f([_.U({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],VC);
_.$Fi=_.R7()(VC,"ytd-rich-item-renderer",function(){if(mFk===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);mFk=W}W=mFk;return W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var wCm={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var UDW=_.bx(_.KK("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var w0A;var ta=function(){var W=_.b.apply(this,arguments)||this;W.useResponsiveGrid=!1;W.hidden=!1;W.standardShelfMargins=_.p("web_rich_grid_standard_shelf_margins");W.isShowMoreHidden=!1;W.isExpanded=!1;W.isInnerShelf=!1;W.allVideosCount=0;W.allPlaylistCount=0;W.haveSmartDownloadsCompleted=!1;W.isShowLessHidden=!0;W.restrictContentsOverflow=!1;W.firstShownIndex=0;W.horizontalOffset=0;W.atEnd=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};W.nextClick=function(){var P;(P=W.data)!=null&&P.contents&&(W.firstShownIndex+=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
W.previousClick=function(){var P;(P=W.data)!=null&&P.contents&&(W.firstShownIndex-=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
return W};
_.A(ta,_.b);_.J=ta.prototype;
_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.$$("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.J.attached=function(){this.requestElementsPerRow()};
_.J.refreshGridLayoutNew=function(){var W;if((W=this.data)!=null&&W.contents&&this.containerWidth){var P;((P=this.data.responsiveContainerConfiguration)==null?0:P.responsiveSize)?(W=_.N2R(this.data.responsiveContainerConfiguration,this.containerWidth),W=_.Fd(Object.assign({},W,{standardUnitMinWidth:this.standardUnitMinWidth}))):W=_.Fd({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=W.typographyBump;if(this.elementsPerRow!==
W.numItems||this.gutter!==W.gutter)this.elementsPerRow=W.numItems,this.gutter=W.gutter,this.itemWidth=W.itemWidth,_.qa(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.gutter+"px"})}};
_.J.computeSizing=function(){if(!this.isLumiere){var W=_.i88(this.data);if(W)return W;if(_.p("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.J.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.J.computeButton=function(W){var P=_.Q(W,_.w6);W=Object.assign({},_.Q(W,_.w6));return P?(W.text||(W.text={simpleText:W.tooltip}),W.style="STYLE_MONO_OUTLINE",W.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",W):P};
_.J.onRowIndexChange=function(){var W=_.E_(),P,x;((P=this.data)==null?0:P.trackingParams)&&((x=this.data)==null?void 0:x.rowIndex)!=null&&W&&_.UL(W,_.ox(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.J.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var W,P=((W=this.getRichItemRenderers()[0])==null?void 0:W.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*P;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.J.requestElementsPerRow=function(){_.Lf(this.hostElement,"yt-request-elements-per-row")};
_.J.onUpdateElementsPerRowAction=function(W,P,x,I,O,B){if(this.containerWidth!==B&&(this.containerWidth=B,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&W&&P&&x&&I&&O&&(this.elementsPerRow!==W||this.postsPerRow!==P||this.slimItemsPerRow!==x||this.gameCardsPerRow!==I||this.miniGameCardsPerRow!==O)&&(this.elementsPerRow=W,this.postsPerRow=P,this.slimItemsPerRow=x,this.gameCardsPerRow=I,this.miniGameCardsPerRow=O,this.updateItemVisibility())};
_.J.getRichItemRenderers=function(){return _.g(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.J.updateItemVisibility=function(){var W=this;if(this.data&&this.data.contents){var P=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(I,O){var B;((B=W.data)==null?0:B.isExpanded)?(I.hidden=O>P-1,I.ytRendererBehavior.markDirty()):I.hidden=O>W.currentElementsPerRow-1||O>P-1});
var x=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||x||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||x||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.J.setHeightToSingleRow=function(){var W=this.getRichItemRenderers(),P=Number.parseInt(getComputedStyle(W[0]).marginBottom,10)||0;W=W.slice(0,this.currentElementsPerRow).reduce(function(x,I){return Math.max(x,I.getBoundingClientRect().height+P)},0);
this.contents.style.height=W+"px"};
_.J.focusNextExpandedItem=function(){var W;((W=this.data)==null?0:W.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.J.focusItem=function(W,P){var x=this.getRichItemRenderers();if(x[W]&&(W=x[W].querySelector(".focus-on-expand"))){if(P){var I;(I=x[this.currentElementsPerRow])==null||I.scrollIntoView({behavior:"smooth",block:"center"})}W.focus({preventScroll:!0})}};
_.J.onDataChange=function(){var W=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.Xm(this,function(){W.updateItemVisibility()});
var P;if((P=this.data)==null?0:P.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.qa(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),P=0;P<this.data.contents.length;P++){var x=_.Q(this.data.contents[P],_.GN)||{};x.colIndex=P;x.rowIndex=this.data.rowIndex}};
_.J.handleRerenderDownloadsData=function(){_.p("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())};
_.J.blockInlinePreview=function(W){var P=this,x;return _.y(function(I){(x=P.inlinePreviewIsEnabled)&&P.ytdReduxBehavior.dispatch(_.EwA(!1));return I.return(new Promise(function(O){W(function(){x&&P.ytdReduxBehavior.dispatch(_.EwA(!0));O()})}))})};
_.J.expandShelf=function(){var W=this;if(this.data){var P,x=(P=_.Q(this.data.showMoreButton,_.w6))==null?void 0:P.trackingParams;x&&_.Kg(_.YY(),x);this.data.isExpanded=!0;this.blockInlinePreview(function(I){W.setHeightToSingleRow();W.updateItemVisibility();W.contents.style.height=W.contents.scrollHeight+"px";_.Gr.addJob(function(){W.contents.style.height="auto";W.focusNextExpandedItem();I()},2,200)})}};
_.J.collapseShelf=function(){var W=this;return _.y(function(P){if(P.nextAddress==1){if(!W.data)return P.return();W.data.isExpanded=!1;return _.S(P,W.blockInlinePreview(function(x){W.contents.style.height=W.contents.scrollHeight+"px";W.setHeightToSingleRow();_.Gr.addJob(function(){W.updateItemVisibility();W.contents.style.height="auto";x()},2,200)}),2)}_.Lf(W.hostElement,"yt-rich-shelf-renderer-collapse",W.data.trackingParams);
W.focusItem(0,!1);_.Kl(P)})};
_.J.updateArrowButtonStatus=function(){var W=this.getRichItemRenderers().length;if(!_.p("web_rich_shelf_renderer_use_data_contents_killswitch")){var P,x;W=((P=this.data)==null?void 0:(x=P.contents)==null?void 0:x.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=W};
_.J.onChildElementFocus=function(W){this.hasChevronButtons&&(W=W.target.closest("#contents > *"),this.contents.contains(W)&&(W.offsetLeft<this.horizontalOffset?this.previousClick():W.offsetLeft+W.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.J.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.$$("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.J.updateHorizontalOffset=function(){var W=this.getRichItemRenderers(),P=W.length;if(!_.p("web_rich_shelf_renderer_use_data_contents_killswitch")){var x,I;P=((x=this.data)==null?void 0:(I=x.contents)==null?void 0:I.length)||0}var O;W=((O=W[0])==null?void 0:O.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>P?this.firstShownIndex=P-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*W};
_.J.isSlimMediaShelfRenderer=function(){var W,P,x,I=(x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN))==null?void 0:x.content;return!!(_.Q(I,_.t2l)||_.Q(I,V2p)||_.Q(I,_.$Z)||_.Q(I,kPk))};
_.J.isGameCardShelf=function(){var W,P,x,I=(x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN))==null?void 0:x.content;return!!_.Q(I,Efc)};
_.J.isGnomeShelf=function(){var W,P,x,I=(x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN))==null?void 0:x.content;return!!_.Q(I,_.rWP)};
_.J.isMiniGameCardShelf=function(){var W,P,x,I=(x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN))==null?void 0:x.content;return!!_.Q(I,N0P)||!!_.Q(I,lGc)};
_.J.hasGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.J.hasRoundedGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.J.isShortsShelf=function(){var W,P,x,I=(x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN))==null?void 0:x.content;return!!_.Q(I,_.$Z)||!!_.Q(I,kPk)};
_.J.isPostShelfRenderer=function(){var W,P,x,I=(x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN))==null?void 0:x.content;return!(!_.Q(I,E5z)&&!_.Q(I,g5l))};
_.J.isLumiereShelf=function(){var W,P,x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN);return!!_.Q(x==null?void 0:x.content,bWm)};
_.J.isLumiereShelfWithPosters=function(){var W,P,x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN),I;return((I=_.Q(x==null?void 0:x.content,bWm))==null?void 0:I.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.isExpandOnHoverCardShelf=function(){var W,P,x,I=(x=_.Q((W=this.data)==null?void 0:(P=W.contents)==null?void 0:P[0],_.GN))==null?void 0:x.content;return!!_.Q(I,a2i)};
_.J.computeHasFeaturedBadge=function(){var W,P,x=_.Q((W=this.data)==null?void 0:(P=W.badges)==null?void 0:P[0],_.TNW);return x?x.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHasPaygatedFeaturedBadge=function(){var W,P,x=_.Q((W=this.data)==null?void 0:(P=W.badges)==null?void 0:P[0],_.TNW);return x?(x==null?void 0:x.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHeaderHidden=function(){var W,P,x,I,O,B;return!((W=this.data)==null?0:W.icon)&&!((P=this.data)==null?0:P.title)&&!((x=this.data)==null?0:x.subtitle)&&!((I=this.data)==null?0:I.thumbnail)&&!((O=this.data)==null?0:O.badges)&&!((B=this.data)==null?0:B.menu)};
_.J.showCtaButton=function(){var W;return!((W=this.data)==null||!W.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.J.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.J.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.J.computeForce16By9ThumbnailAspectRatio=function(){var W,P;return((W=this.data)==null?void 0:(P=W.responsiveContainerConfiguration)==null?void 0:P.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.J.onSectionReactiveDismissal=function(W,P,x){var I,O;var B=(I=this.data)==null?void 0:(O=I.targetingContext)==null?void 0:O.targetGroupId;this&&B&&P.targetGroupId&&B.includes(P.targetGroupId)?(I=this.rowIndex,W=I===void 0?!1:!(P.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&I<=W)):W=!1;W&&(this.hidden=x)};
_.N1.Object.defineProperties(ta.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var W=this.elementsPerRow;this.isPostShelfRenderer()?W=this.postsPerRow:this.isSlimMediaShelfRenderer()?W=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?W=this.slimItemsPerRow-1:this.isGameCardShelf()?W=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(W=this.miniGameCardsPerRow);return W}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.p("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.previousButton)&&!((P=this.data)==null||!P.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 W;return((W=_.FY().resolve(_.rL).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return!((W=this.data)==null?0:(P=W.thumbnail)==null?0:(x=P.accessibility)==null?0:(I=x.accessibilityData)==null?0:I.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
ta.prototype.onChildElementFocus=ta.prototype.onChildElementFocus;ta.prototype.handleRerenderDownloadsData=ta.prototype.handleRerenderDownloadsData;ta.prototype.onDataChange=ta.prototype.onDataChange;ta.prototype.onRowIndexChange=ta.prototype.onRowIndexChange;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.gW),_.l("design:type",Object)],ta.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],ta.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],ta.prototype,"ytdReduxBehavior",void 0);_.f([_.c({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.l("design:type",Object)],ta.prototype,"useResponsiveGrid",void 0);_.f([_.c(),_.l("design:type",Object)],ta.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Number)],ta.prototype,"standardUnitMinWidth",void 0);_.f([_.c({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],ta.prototype,"elementsPerRow",void 0);_.f([_.c({value:3}),_.l("design:type",Number)],ta.prototype,"postsPerRow",void 0);_.f([_.c({value:6}),_.l("design:type",Number)],ta.prototype,"slimItemsPerRow",void 0);_.f([_.c({value:6}),_.l("design:type",Number)],ta.prototype,"gameCardsPerRow",void 0);
_.f([_.c({value:6}),_.l("design:type",Number)],ta.prototype,"miniGameCardsPerRow",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ta.prototype,"hidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ta.prototype,"standardShelfMargins",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ta.prototype,"isShowMoreHidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ta.prototype,"isExpanded",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ta.prototype,"isInnerShelf",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.l("design:type",Boolean)],ta.prototype,"isShorts",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.l("design:type",Boolean)],ta.prototype,"isLumiere",void 0);_.f([_.c({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.l("design:type",Boolean)],ta.prototype,"hasBoxArtThumbnailStyle",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.l("design:type",Boolean)],ta.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.l("design:type",Boolean)],ta.prototype,"hasFeaturedBadge",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.l("design:type",Boolean)],ta.prototype,"hasPaygatedFeaturedBadge",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.l("design:type",Boolean)],ta.prototype,"isHeaderHidden",void 0);_.f([_.c({selector:_.MO7}),_.l("design:type",Object)],ta.prototype,"allVideosCount",void 0);_.f([_.c({selector:f6t}),_.l("design:type",Object)],ta.prototype,"allPlaylistCount",void 0);_.f([_.c({selector:U3m}),_.l("design:type",Object)],ta.prototype,"haveSmartDownloadsCompleted",void 0);
_.f([_.c({selectorArgs:["entitySelectorType"],selector:function(W,P){if(_.p("kevlar_modern_downloads_page")&&P&&P!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var x=W.entities;switch(P){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":P=_.tb(x);W=gn(P);var I=_.dE(P);x=_.jl(x);x=_.Ru(HiU(I,x,P.length));return{contents:W,subtitle:x};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return x=_.tb(x),{contents:gn(x)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return x=
_.pR(x),{contents:gn(x)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return x=_.ycW(x),{contents:gn(x)};default:_.ge(new _.mW("Error: entitySelectorType defined but not matched in selector.",W,P))}}}}),
_.l("design:type",Object)],ta.prototype,"entityDrivenRichShelfData",void 0);_.f([_.c({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.l("design:type",Boolean)],ta.prototype,"hasTopCtaButton",void 0);_.f([_.c({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.l("design:type",Boolean)],ta.prototype,"hasBottomCtaButton",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.l("design:type",Boolean)],ta.prototype,"force16By9ThumbnailAspectRatio",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ta.prototype,"isShowLessHidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ta.prototype,"restrictContentsOverflow",void 0);_.f([_.c({selector:_.Acd}),_.l("design:type",Boolean)],ta.prototype,"inlinePreviewIsEnabled",void 0);
_.f([_.c({computed:"computeSizing(data)"}),_.l("design:type",String)],ta.prototype,"sizing",void 0);_.f([_.c(),_.l("design:type",Boolean)],ta.prototype,"typographyBump",void 0);_.f([_.c(),_.l("design:type",Number)],ta.prototype,"itemWidth",void 0);_.f([_.c(),_.l("design:type",Object)],ta.prototype,"firstShownIndex",void 0);_.f([_.c(),_.l("design:type",Object)],ta.prototype,"horizontalOffset",void 0);_.f([_.c(),_.l("design:type",Object)],ta.prototype,"atEnd",void 0);
_.f([_.BM("#contents"),_.l("design:type",HTMLElement)],ta.prototype,"contents",void 0);_.f([_.OZ("data.rowIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ta.prototype,"onRowIndexChange",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ta.prototype,"onDataChange",null);
_.f([_.OZ("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ta.prototype,"handleRerenderDownloadsData",null);_.f([_.I7("focusin"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ta.prototype,"onChildElementFocus",null);_.f([_.c({reflectToAttribute:!0}),_.H("data","isHomePage"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ta.prototype,"isTruncated",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ta.prototype,"hideBottomDivider",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ta.prototype,"hasChevronButtons",null);_.f([_.H("firstShownIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],ta.prototype,"previousButtonOverride",null);
_.f([_.H("atEnd"),_.l("design:type",Object),_.l("design:paramtypes",[])],ta.prototype,"nextButtonOverride",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ta.prototype,"isHomePage",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ta.prototype,"thumbnailAriaHidden",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ta.prototype,"initiallyIsExpanded",null);
_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],ta.prototype,"entitySelectorType",null);ta=_.f([_.U({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],ta);
_.hri=_.R7()(ta,"ytd-rich-shelf-renderer",function(){if(w0A===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);w0A=W}W=w0A;return W},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var HSW;_.lq(opz,"yt-slimline-survey-view-model",{props:{data:_.cv}});var pc=function(){var W=_.b.apply(this,arguments)||this;W.tileLottieAnimationRef={};W.backgroundLottieAnimationRef={};W.isOnHoverBehaviorForLottieEnabled=!0;W.useBiggerShowcaseImage=_.p("enable_desktop_search_bigger_thumbs");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return W};
_.A(pc,_.b);_.J=pc.prototype;_.J.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.J.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.J.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var W=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);W!==this.hasTile&&this.set("hasTile",W);W=this.hasLogo(this.data)||!!this.data.badgeText;W!==this.hasMetadata&&this.set("hasMetadata",W);W=this.data.overflowButton?!1:W;W!==this.showLogoImage&&this.set("showLogoImage",W);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.J.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.J.currentColorChanged=function(){this.updateButtonPalette()};
_.J.computeBackgroundStyle=function(W){if(W&&this.data){var P=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var x=_.rc((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);x&&P.push('background-image: url("'+x+'");')}var I;((I=W.basicColorData)==null?void 0:I.backgroundColor)!==void 0&&P.push("background-color: "+_.Qy(W.basicColorData.backgroundColor)+";");return P.join("")}};
_.J.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
_.J.getCurrentLogo=function(W,P){if(W)return P?W.darkLogoImage:W.lightLogoImage};
_.J.getCurrentStaticTileImage=function(W,P){if(this.hasStaticTile(W))return W.darkTileImage?P?W.darkTileImage:W.tileImage:W.tileImage};
_.J.computeTitleStyle=function(W){if(this.data&&this.data.title&&W&&W.basicColorData&&W.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.j9(W.basicColorData.foregroundTitleColor)+";"};
_.J.computeSubtitleStyle=function(W){if(this.data&&this.data.subtitle&&W&&W.basicColorData&&W.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.j9(W.basicColorData.foregroundBodyColor)+";"};
_.J.computeSupplementalStyle=function(W){if(this.data&&this.data.supplementalText&&W&&W.supplementalTextColor!==void 0)return W=_.j9(W.supplementalTextColor),"color:"+W+";--yt-endpoint-color:"+W+";--yt-endpoint-hover-color:"+W+";--yt-endpoint-visited-color:"+W+";--yt-formatted-string-bold-font-weight:700;"};
_.J.computeBadgeStyle=function(W){if(this.data&&this.data.badgeText&&W&&W.basicColorData&&W.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.j9(W.basicColorData.foregroundActivatedColor)+";"};
_.J.computeDismissIconStyle=function(W){var P,x;if((W==null?0:(P=W.dismissButtonColorData)==null?0:P.foregroundTitleColor)&&(W==null?0:(x=W.dismissButtonColorData)==null?0:x.backgroundColor))return"--yt-button-color:"+_.Qy(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Qy(W.dismissButtonColorData.backgroundColor)+";"};
_.J.computeOverflowIconStyle=function(W){var P,x;if((W==null?0:(P=W.dismissButtonColorData)==null?0:P.foregroundTitleColor)&&(W==null?0:(x=W.dismissButtonColorData)==null?0:x.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Qy(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Qy(W.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Qy(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.J.computeBannerStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.J.computeLocation=function(W){switch(W==null?void 0:W.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.J.shouldShowTileSection=function(W,P,x){return!this.shouldExpandLogo(W,P,x)&&P};
_.J.shouldShowExpandedLogoSection=function(W,P,x){return this.shouldExpandLogo(W,P,x)&&W!==void 0&&this.hasLogo(W)};
_.J.shouldExpandLogo=function(W,P,x){return W&&P?!1:x>=2};
_.J.hasStaticTile=function(W){return!(W==null||!W.tileImage)};
_.J.hasTileLottie=function(W){var P;return!!(W==null?0:(P=W.tileLottie)==null?0:P.url)};
_.J.hasLogo=function(W){return this.getCurrentLogo(W,this.isDarkTheme)!==void 0};
_.J.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.J.getExpandedLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.J.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.J.hasBackgroundLottie=function(W){var P;return!!(W==null?0:(P=W.backgroundLottie)==null?0:P.url)};
_.J.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,P;(W=this.tileLottieAnimationRef)==null||(P=W.lottieEl)==null||P.play();var x,I;(x=this.backgroundLottieAnimationRef)==null||(I=x.lottieEl)==null||I.play()}};
_.J.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,P;(W=this.tileLottieAnimationRef)==null||(P=W.lottieEl)==null||P.pause();var x,I;(x=this.backgroundLottieAnimationRef)==null||(I=x.lottieEl)==null||I.pause()}};
_.J.pauseLottie=function(){var W,P;(W=this.tileLottieAnimationRef)==null||(P=W.lottieEl)==null||P.pause();var x,I;(x=this.backgroundLottieAnimationRef)==null||(I=x.lottieEl)==null||I.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.J.performPrimaryButtonAction=function(){var W,P,x;((W=this.data)==null?0:(P=W.primaryButton)==null?0:(x=P.buttonRenderer)==null?0:x.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.J.requestElementsPerRow=function(){_.Lf(this.hostElement,"yt-request-elements-per-row")};
_.J.updateButtonPalette=function(){if(this.data&&this.currentColorData){var W;((W=this.data.dismissButton)==null?0:W.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 P;if((P=this.data.primaryButton)==null?0:P.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var x;if((x=this.data.secondaryButton)==
null?0:x.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var I;((I=this.data.primaryButton)==null?0:I.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var O;((O=this.data.secondaryButton)==null?0:O.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.J.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var W=this.getTileLottieDataBasedOnTheme(),P,x;if(W.url!==((P=this.tileLottiePlayerProps)==null?void 0:(x=P.animationConfig)==null?void 0:x.path)){var I,O;(I=this.tileLottieAnimationRef)==null||(O=I.lottieEl)==null||O.destroy();var B;this.isOnHoverBehaviorForLottieEnabled=!((B=W.settings)==null?0:B.autoplay);var Y,K;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(K=(Y=W.settings)==null?void 0:Y.autoplay)!=null?K:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.tileLottiePlayerProps.animationConfig.path=W.url:this.tileLottiePlayerProps.animationConfig.animationData=W.url}}};
_.J.getOverflowButton=function(W){return _.Q(W.overflowButton,lRW)};
_.J.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var W=this.getBackgroundLottieDataBasedOnTheme(),P,x;if(W.url!==((P=this.backgroundLottiePlayerProps)==null?void 0:(x=P.animationConfig)==null?void 0:x.path)){var I,O;(I=this.backgroundLottieAnimationRef)==null||(O=I.lottieEl)==null||O.destroy();var B;this.isOnHoverBehaviorForLottieEnabled=!((B=W.settings)==null?0:B.autoplay);var Y,K;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(K=(Y=W.settings)==null?void 0:Y.autoplay)!=null?K:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=W.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
W.url}}};
_.J.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var W;((W=this.tileLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var P;((P=this.backgroundLottieAnimationRef)==null?void 0:P.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.J.getTileLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeTileLottie))return this.data.darkThemeTileLottie;var P;return((P=this.data)==null?0:P.tileLottie)?this.data.tileLottie:{}};
_.J.getBackgroundLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var P;return((P=this.data)==null?0:P.backgroundLottie)?this.data.backgroundLottie:{}};
_.J.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.J.getLottieLoopValue=function(W){return W?W.loop!==void 0?W.loop:W.loopCount?W.loopCount-1:!0:!0};
_.J.logoWithPadding=function(W){var P,x,I;return(W=(P=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(x=P.thumbnails)==null?void 0:(I=x[0])==null?void 0:I.height)&&W%31===0?!0:!1};
pc.prototype.currentColorChanged=pc.prototype.currentColorChanged;pc.prototype.themeChanged=pc.prototype.themeChanged;pc.prototype.dataChanged=pc.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],pc.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],pc.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],pc.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],pc.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],pc.prototype,"primaryButton",void 0);_.f([_.c(),_.l("design:type",Object)],pc.prototype,"secondaryButton",void 0);
_.f([_.c({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],pc.prototype,"elementsPerRow",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],pc.prototype,"isDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],pc.prototype,"hasTile",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],pc.prototype,"hasMetadata",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],pc.prototype,"showLogoImage",void 0);_.f([_.c(),_.l("design:type",Object)],pc.prototype,"currentColorData",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.l("design:type",String)],pc.prototype,"bannerStyle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.l("design:type",String)],pc.prototype,"location",void 0);
_.f([_.c(),_.l("design:type",Object)],pc.prototype,"tileLottiePlayerProps",void 0);_.f([_.c(),_.l("design:type",Object)],pc.prototype,"tileLottieAnimationRef",void 0);_.f([_.c(),_.l("design:type",Object)],pc.prototype,"backgroundLottiePlayerProps",void 0);_.f([_.c(),_.l("design:type",Object)],pc.prototype,"backgroundLottieAnimationRef",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pc.prototype,"useBiggerShowcaseImage",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],pc.prototype,"isHideEnclosingAction",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pc.prototype,"dataChanged",null);_.f([_.K_("isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pc.prototype,"themeChanged",null);
_.f([_.K_("currentColorData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pc.prototype,"currentColorChanged",null);pc=_.f([_.U({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],pc);
_.X(pc,"ytd-statement-banner-renderer",function(){if(HSW!==void 0)return HSW;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return HSW=W},{mode:1});var er3;var jq=function(){var W=_.b.apply(this,arguments)||this;W.isSearch=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.disableMouseScroll=!0;W.useFloorScrolling=!0;W.modernTypography=_.p("web_modern_typography");return W};
_.A(jq,_.b);jq.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.KK("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.KK("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
jq.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
jq.prototype.onDataChanged=jq.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jq.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],jq.prototype,"hideShelfHeader",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],jq.prototype,"engagementPanel",void 0);_.f([_.c(),_.l("design:type",Object)],jq.prototype,"disableMouseScroll",void 0);_.f([_.c(),_.l("design:type",Object)],jq.prototype,"useFloorScrolling",void 0);_.f([_.c(),_.l("design:type",Object)],jq.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],jq.prototype,"modernTypography",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jq.prototype,"onDataChanged",null);jq=_.f([_.U({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],jq);
_.X(jq,"ytd-reel-shelf-renderer",function(){if(er3!==void 0)return er3;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return er3=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var c$M;var a4Z=_.kl(function(W){var P=W.data;W=W.useSmallFont;var x={},I={};return _.u("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.u(_.V,{cond:function(){return P().favicon},
then:function(O){return _.u(_.bq,{data:O,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.u("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.u(_.mQ,{text:function(){return P().title},
className:_.O4("yt-channel-external-link-view-model-wiz__title",(x["yt-channel-external-link-view-model-wiz__title--title-small-font"]=W,x)),ellipsisTruncate:!0,userInput:!0}),_.u(_.mQ,{text:function(){return P().link},
className:_.O4("yt-channel-external-link-view-model-wiz__link",(I["yt-channel-external-link-view-model-wiz__link--link-small-font"]=W,I)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Cb");
a4Z.idomCompat=!0;_.lq(a4Z,"yt-channel-external-link-view-model",{props:{data:_.cv,useSmallFont:_.cv}});_.Ad("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var QC=function(){var W=_.b.apply(this,arguments)||this;W.revealButtonClass="button";W.businessEmailDisplayState="HIDE_SECTION";return W};
_.A(QC,_.b);_.J=QC.prototype;_.J.refit=function(){var W=this;_.gY(function(){_.P7(W.hostElement,"yt-refit-popups-action")});
_.Xm(this,function(){_.P7(W.hostElement,"yt-refit-popups-action")})};
_.J.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.h1("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.J.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"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.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"}}}};
_.J.computeEmailHref=function(W){return"mailto:"+W};
_.J.computeSafeUrl=function(W){if(W)return _.my(W)};
_.J.linkEndpoint=function(W){return _.Q(W.onTap,_.Ct)};
_.J.linkEndpointToHref=function(W){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(W))};
_.J.onYtServiceRequestCompleted=function(W){var P;if((P=W.detail.data)==null?0:P.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var x;if((x=W.detail.data)==null?0:x.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var W=this.JSC$14023_captchaTextarea.value;if(W){W={recaptcha_response_token:W,channel_id:this.metadata.channelId};var P=_.Q(this.metadata.onBusinessEmailRevealClickCommand,_.Ct);P&&this.ytComponentBehavior.resolveCommand(P,{form:W})}}};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.N1.Object.defineProperties(QC.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var W;return _.Q((W=this.data)==null?void 0:W.metadata,f2Z)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.metadata.businessEmailRevealButton,_.gp)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var W=new URL(this.metadata.canonicalChannelUrl);return W.host+W.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 _.Q(this.metadata.learnMoreOnTap,_.Ct)}}});
QC.prototype.onYtServiceRequestCompleted=QC.prototype.onYtServiceRequestCompleted;QC.prototype.businessEmailMetadataChanged=QC.prototype.businessEmailMetadataChanged;QC.prototype.refit=QC.prototype.refit;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],QC.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("#g-recaptcha-response"),_.l("design:type",HTMLTextAreaElement)],QC.prototype,"JSC$14023_captchaTextarea",void 0);_.f([_.c(),_.l("design:type",Object)],QC.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],QC.prototype,"revealButtonClass",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],QC.prototype,"metadata",null);
_.f([_.H("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],QC.prototype,"revealButton",null);_.f([_.H("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],QC.prototype,"channelDisplayUrl",null);_.f([_.K_("metadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QC.prototype,"refit",null);_.f([_.H("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],QC.prototype,"formattedDescription",null);
_.f([_.H("metadata","learnMoreCommand"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QC.prototype,"shouldRendereVerifiedPhoneStatus",null);_.f([_.H("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],QC.prototype,"learnMoreCommand",null);_.f([_.c(),_.l("design:type",String)],QC.prototype,"businessEmailDisplayState",void 0);_.f([_.c(),_.l("design:type",String)],QC.prototype,"businessEmail",void 0);
_.f([_.c(),_.l("design:type",String)],QC.prototype,"businessEmailErrorMessage",void 0);_.f([_.K_("metadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QC.prototype,"businessEmailMetadataChanged",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],QC.prototype,"onYtServiceRequestCompleted",null);
QC=_.f([_.U({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],QC);
_.X(QC,"ytd-about-channel-renderer",function(){if(c$M!==void 0)return c$M;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return c$M=W},{mode:1});var bSP;var Cc=function(){return _.b.apply(this,arguments)||this};
_.A(Cc,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Cc.prototype,"data",void 0);Cc=_.f([_.U({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Cc);
_.X(Cc,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(bSP!==void 0)return bSP;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return bSP=W},{mode:1});var kUw;var Aa=function(){return _.b.apply(this,arguments)||this};
_.A(Aa,_.b);Aa.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Aa.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Aa.prototype,"aligment",void 0);Aa=_.f([_.U({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Aa);
_.X(Aa,"ytd-channel-list-sub-menu-renderer",function(){if(kUw!==void 0)return kUw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return kUw=
W},{mode:1});var UFl;var zv=function(){return _.b.apply(this,arguments)||this};
_.A(zv,_.b);zv.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}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],zv.prototype,"data",void 0);zv=_.f([_.U({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],zv);
_.X(zv,"ytd-channel-sub-menu-renderer",function(){if(UFl!==void 0)return UFl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return UFl=W},{mode:1});var X0M;var f4i;var Gv=function(){var W=_.b.apply(this,arguments)||this;W.isCompact=!1;return W};
_.A(Gv,_.b);_.N1.Object.defineProperties(Gv.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var W,P;return((P=_.Q((W=this.data)==null?void 0:W.endpoint,_.aR))==null?void 0:P.target)==="TARGET_NEW_WINDOW"}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Gv.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Gv.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Gv.prototype,"isCompact",void 0);_.f([_.H("isCompact"),_.l("design:type",Number),_.l("design:paramtypes",[])],Gv.prototype,"thumbnailWidth",null);
_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Gv.prototype,"openNewWindow",null);Gv=_.f([_.U({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Gv);
_.X(Gv,"ytd-media-lockup-renderer",function(){if(f4i!==void 0)return f4i;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return f4i=W},{mode:1});var N5W;var EH=function(){return _.b.apply(this,arguments)||this};
_.A(EH,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],EH.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],EH.prototype,"data",void 0);EH=_.f([_.U({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],EH);
_.X(EH,"ytd-structured-description-channel-lockup-renderer",function(){if(N5W!==void 0)return N5W;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return N5W=W},{mode:1});var l4Z;var gG=function(){var W=_.b.apply(this,arguments)||this;W.isCompact=!1;W.collections=_.p("web_modern_collections_v2");W.collectionsStackColor=_.p("modernize_structured_description_playlist_lockups_v2");return W};
_.A(gG,_.b);gG.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:_.p("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.N1.Object.defineProperties(gG.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I,O,B;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(W=this.data)==null?void 0:(P=W.thumbnail)==null?void 0:P.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(x=this.data)==null?void 0:(I=x.thumbnail)==null?void 0:I.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(O=this.data)==null?void 0:(B=O.thumbnail)==
null?void 0:B.vibrantColorPalette:void 0}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],gG.prototype,"componentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],gG.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],gG.prototype,"showSidePanelThumbnailOverlay",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],gG.prototype,"isCompact",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],gG.prototype,"collections",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],gG.prototype,"collectionsStackColor",void 0);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gG.prototype,"twoLineTitle",null);
_.f([_.H("data","collections","collectionsStackColor"),_.l("design:type",Object),_.l("design:paramtypes",[])],gG.prototype,"collectionStack",null);gG=_.f([_.U({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],gG);
_.X(gG,"ytd-structured-description-playlist-lockup-renderer",function(){if(l4Z!==void 0)return l4Z;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return l4Z=W},{mode:1});var T5Z;var DK=function(){return _.b.apply(this,arguments)||this};
_.A(DK,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],DK.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],DK.prototype,"data",void 0);DK=_.f([_.U({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],DK);
_.X(DK,"ytd-structured-description-video-lockup-renderer",function(){if(T5Z!==void 0)return T5Z;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return T5Z=W},{mode:2});var MX=function(){return _.b.apply(this,arguments)||this};
_.A(MX,_.b);
MX.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}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],MX.prototype,"data",void 0);MX=_.f([_.U({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],MX);
_.X(MX,"ytd-compact-infocard-renderer",function(){if(X0M!==void 0)return X0M;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return X0M=W},{mode:1});var r$p;var $m=function(){var W=_.b.apply(this,arguments)||this;W.useModernCollectionsV2=_.p("web_modern_collections_v2");return W};
_.A($m,_.b);$m.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N1.Object.defineProperties($m.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.p("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.p("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.p("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],$m.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],$m.prototype,"ytdReduxBehavior",void 0);_.f([_.c({selector:_.br}),_.l("design:type",Object)],$m.prototype,"isGridViewEnabled",void 0);
_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$m.prototype,"watchFeedBigThumbs",null);_.f([_.H("isGridViewEnabled","data"),_.c({reflectToAttribute:!0,value:"168"}),_.l("design:type",String),_.l("design:paramtypes",[])],$m.prototype,"thumbnailWidth",null);_.f([_.H("isGridViewEnabled","data"),_.c({reflectToAttribute:!0,value:"94"}),_.l("design:type",String),_.l("design:paramtypes",[])],$m.prototype,"customThumbnailSize",null);
_.f([_.c(),_.l("design:type",Object)],$m.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$m.prototype,"useModernCollectionsV2",void 0);$m=_.f([_.U({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],$m);
_.X($m,"ytd-compact-playlist-renderer",function(){if(r$p!==void 0)return r$p;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return r$p=W},{mode:1});var iSw;var wG=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.roundedContainer=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.A(wG,_.b);_.J=wG.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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"}}}};
_.J.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.J.computeViewStyle=function(W){return W.style?W.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.J.onUpdateElementsPerRowAction=function(W){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&W===1};
_.J.requestElementsPerRow=function(){_.Lf(this.hostElement,"yt-request-elements-per-row")};
wG.prototype.dataChanged=wG.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],wG.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],wG.prototype,"actionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],wG.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],wG.prototype,"hideThumbnail",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.l("design:type",String)],wG.prototype,"viewStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],wG.prototype,"darkerDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],wG.prototype,"roundedContainer",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wG.prototype,"dataChanged",null);wG=_.f([_.U({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],wG);
_.X(wG,"ytd-compact-promoted-item-renderer",function(){if(iSw!==void 0)return iSw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return iSw=W},{mode:1});var Rrw;var ha=function(){var W=_.b.apply(this,arguments)||this;W.collections=_.p("web_modern_collections_v2");return W};
_.A(ha,_.b);ha.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
ha.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
ha.prototype.onYtNavigate=function(W,P){var x=this;if(P.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",P)){var I=this.get("watchEndpoint.videoId",P.endpoint),O=_.P7(this.hostElement,"yt-get-current-video-id-action")[0];_.p("kevlar_mix_handle_first_endpoint_different")&&I&&O&&I!==O||(W.stopPropagation(),_.F_().getPlayerPromise().then(function(B){if(B.getPlayerState()===0&&x.data.secondaryNavigationEndpoint)var Y=x.data.secondaryNavigationEndpoint;else{Y=
Object.assign({},P.endpoint);var K=_.Q(Y.commandMetadata,_.rU);K&&(B=Math.floor(B.getCurrentTime()),K.url=_.fX(K.url,{t:B}),!_.p("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(K=_.Q(Y,_.U_)))&&(K.startTimeSeconds=B)}_.Lf(x.hostElement,"yt-navigate",{endpoint:Y})}))}};
_.N1.Object.defineProperties(ha.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.p("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.p("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I,O,B;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(P=W.thumbnail)==null?void 0:P.sampledThumbnailColor,vibrantColorPalette:(x=this.data)==null?void 0:(I=x.thumbnail)==null?void 0:I.vibrantColorPalette,darkColorPalette:(O=this.data)==null?void 0:(B=O.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
ha.prototype.onYtNavigate=ha.prototype.onYtNavigate;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.IM.YtEndpointBehavior),_.l("design:type",Object)],ha.prototype,"ytEndpointBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],ha.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.h(_.eZ),_.l("design:type",Object)],ha.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],ha.prototype,"ytdReduxBehavior",void 0);_.f([_.c({selector:_.br}),_.l("design:type",Object)],ha.prototype,"isGridViewEnabled",void 0);_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ha.prototype,"watchFeedBigThumbs",null);
_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],ha.prototype,"thumbnailWidth",null);_.f([_.c(),_.l("design:type",Object)],ha.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ha.prototype,"collections",void 0);_.f([_.H("data","collections"),_.l("design:type",Object),_.l("design:paramtypes",[])],ha.prototype,"collectionStack",null);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],ha.prototype,"onYtNavigate",null);ha=_.f([_.U({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],ha);
_.X(ha,"ytd-compact-radio-renderer",function(){if(Rrw!==void 0)return Rrw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Rrw=W},{mode:1});var F_z;var HR=function(){return _.b.apply(this,arguments)||this};
_.A(HR,_.b);HR.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
HR.prototype.computeRendererStyle=function(W){return W.style?W.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.f([_.c(),_.l("design:type",Object)],HR.prototype,"data",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],HR.prototype,"rendererBehavior",void 0);_.f([_.c({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],HR.prototype,"rendererStyle",void 0);
HR=_.f([_.U({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],HR);
_.X(HR,"ytd-compact-text-promo-renderer",function(){if(F_z!==void 0)return F_z;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return F_z=W},{mode:1});var q93;var eq=function(){var W=_.b.apply(this,arguments)||this;W.isShortsStyle=!1;return W};
_.A(eq,_.b);_.J=eq.prototype;_.J.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"}}}};
_.J.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Lf(this.hostElement,"yt-disable-lockup-interaction"):_.Lf(this.hostElement,"yt-enable-lockup-interaction"))};
_.J.isMetaBlockEmpty=function(W){return!W||!W.longBylineText&&!W.shortBylineText&&!W.shortViewCountText&&!W.viewCountText};
_.J.computeHasOneLineTitle=function(W){return this.forceOneLineTitle||!(W==null||!W.buttons)};
_.J.computeDisableInteraction=function(){var W;return!((W=this.data)==null?0:W.navigationEndpoint)};
_.J.hasSingularTopStandaloneBadge=function(){var W;return!((W=this.data)==null||!W.topStandaloneBadge)};
_.N1.Object.defineProperties(eq.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.p("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.p("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 W;return this.hasSingularTopStandaloneBadge()?[(W=this.data)==null?void 0:W.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var W;return this.shouldShowTopBadges?((W=this.data)==null?void 0:W.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
eq.prototype.disableInteractionChanged=eq.prototype.disableInteractionChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],eq.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],eq.prototype,"ytdLockupBehavior",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],eq.prototype,"ytdReduxBehavior",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.l("design:type",Boolean)],eq.prototype,"metaBlockEmpty",void 0);_.f([_.c({selector:_.br}),_.l("design:type",Object)],eq.prototype,"isGridViewEnabled",void 0);_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eq.prototype,"watchFeedBigThumbs",null);
_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],eq.prototype,"thumbnailWidth",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],eq.prototype,"isShortsStyle",void 0);_.f([_.c(),_.l("design:type",Object)],eq.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.l("design:type",Boolean)],eq.prototype,"hasOneLineTitle",void 0);
_.f([_.c(),_.l("design:type",Boolean)],eq.prototype,"hideThumbnail",void 0);_.f([_.c(),_.l("design:type",Boolean)],eq.prototype,"forceOneLineTitle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.l("design:type",Boolean)],eq.prototype,"disableInteraction",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],eq.prototype,"musicMetadataVideoLockup",void 0);
_.f([_.OZ("disableInteraction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eq.prototype,"disableInteractionChanged",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eq.prototype,"shouldShowTopBadges",null);_.f([_.H("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],eq.prototype,"topBadges",null);
_.f([_.H("shouldShowTopBadges","data"),_.l("design:type",Array),_.l("design:paramtypes",[])],eq.prototype,"inlineMetadataBadges",null);_.f([_.H("shouldShowTopBadges"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eq.prototype,"shouldShowBadgesBelowMetadata",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],eq.prototype,"compactTitleClass",null);eq=_.f([_.U({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],eq);
_.X(eq,"ytd-compact-video-renderer",function(){if(q93!==void 0)return q93;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return q93=W},{mode:_.F4("kevlar_poly_si_batch_j067")?1:2});var L_b;_.Ad("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var cR=function(){return _.b.apply(this,arguments)||this};
_.A(cR,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cR.prototype,"data",void 0);cR=_.f([_.U({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],cR);
_.X(cR,"ytd-counterfactual-renderer",function(){if(L_b!==void 0)return L_b;var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return L_b=W},{mode:1});var W6M;var aj=function(){var W=_.b.apply(this,arguments)||this;W.hidden=!1;return W};
_.A(aj,_.b);aj.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.FY().resolve(_.qR).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
aj.prototype.computeHidden=function(W){return!!W};
_.N1.Object.defineProperties(aj.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}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],aj.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.l("design:type",Object)],aj.prototype,"hidden",void 0);_.f([_.H("data.label"),_.l("design:type",String),_.l("design:paramtypes",[])],aj.prototype,"label",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],aj.prototype,"value",null);
aj=_.f([_.U({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],aj);
_.X(aj,"ytd-dropdown-item-renderer",function(){if(W6M!==void 0)return W6M;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return W6M=W},{mode:1});var P$W;var x9Z;var b0=function(){return _.b.apply(this,arguments)||this};
_.A(b0,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],b0.prototype,"data",void 0);_.f([_.c({computed:"getSimpleString(data.label)"}),_.l("design:type",String)],b0.prototype,"label",void 0);b0=_.f([_.U({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],b0);
_.X(b0,"ytd-navigation-dropdown-item-renderer",function(){if(x9Z!==void 0)return x9Z;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return x9Z=W},{mode:1});var km=function(){var W=_.b.apply(this,arguments)||this;W.disabled=!1;W.value="";W.noLabelFloat=!1;W.noUnderline=!1;W.usePrimaryColor=!1;W.hasBackground=!1;W.verticalAlign="top";W.autosize=!1;W.minAutosizeWidth=100;W.autosizeFont="14px Roboto";return W};
_.A(km,_.b);_.J=km.prototype;_.J.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"}}}};
_.J.open=function(){this.inputEl.open()};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.J.dataChanged=function(){this.reset()};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("value-changed",this.value))};
_.J.stopPropagation=function(W){W.stopPropagation()};
_.J.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var W=this.canvas.getContext("2d");W&&(W.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(W.measureText(this.inputEl.value).width)+24)+"px")}};
_.J.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var W=0,P=this.data.entries.length;W<P;W++){var x=this.data.entries[W],I;for(I in x)if(x.hasOwnProperty(I)){var O=x[I];if("isSelected"in O&&O.isSelected)return"stringValue"in O?O.stringValue||"":"int32Value"in O?O.int32Value||0:0}}return null};
_.J.updateValueFromBinding=function(W){this.value=W.detail.value};
_.N1.Object.defineProperties(km.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 W=0,P=this.data.entries.length;W<P;W++){var x=this.data.entries[W],I;for(I in x)if(x.hasOwnProperty(I)){var O=x[I];if("isSelected"in O&&O.isSelected&&"label"in O)return this.ytRendererBehavior.getSimpleString(O.label)}}return null}}});
km.prototype.autoSizeLabel=km.prototype.autoSizeLabel;km.prototype.stopPropagation=km.prototype.stopPropagation;km.prototype.valueChangedForBinding=km.prototype.valueChangedForBinding;km.prototype.dataChanged=km.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],km.prototype,"ytRendererStamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],km.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],km.prototype,"disabled",void 0);_.f([_.c(),_.l("design:type",Object)],km.prototype,"value",void 0);_.f([_.c(),_.l("design:type",Object)],km.prototype,"noLabelFloat",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],km.prototype,"noUnderline",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],km.prototype,"theme",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],km.prototype,"usePrimaryColor",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],km.prototype,"hasBackground",void 0);_.f([_.c(),_.l("design:type",Object)],km.prototype,"verticalAlign",void 0);_.f([_.c(),_.l("design:type",Object)],km.prototype,"autosize",void 0);_.f([_.c(),_.l("design:type",Object)],km.prototype,"minAutosizeWidth",void 0);_.f([_.c(),_.l("design:type",Object)],km.prototype,"autosizeFont",void 0);
_.f([_.BM("#entries"),_.l("design:type",Object)],km.prototype,"entries",void 0);_.f([_.BM("#input"),_.l("design:type",Object)],km.prototype,"inputEl",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],km.prototype,"dataChanged",null);_.f([_.K_("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],km.prototype,"valueChangedForBinding",null);
_.f([_.I7("iron-overlay-opened"),_.I7("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],km.prototype,"stopPropagation",null);_.f([_.I7("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],km.prototype,"autoSizeLabel",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],km.prototype,"label",null);
km=_.f([_.U({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],km);
_.X(km,"ytd-dropdown-renderer",function(){if(P$W!==void 0)return P$W;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return P$W=W},{mode:1});var IQ3;var UH=function(){var W=_.b.apply(this,arguments)||this;W.isConstrainedList=!1;return W};
_.A(UH,_.b);UH.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"}}}};
UH.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
UH.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
UH.prototype.computeViewAllHidden=function(W,P){return W||!P.viewAllEndpoint};
UH.prototype.fillRestIfNoShowMore=UH.prototype.fillRestIfNoShowMore;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],UH.prototype,"ytLazyListBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UH.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],UH.prototype,"isConstrainedList",void 0);_.f([_.K_("data","canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UH.prototype,"fillRestIfNoShowMore",null);UH=_.f([_.U({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],UH);
_.X(UH,"ytd-expanded-shelf-contents-renderer",function(){if(IQ3!==void 0)return IQ3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return IQ3=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var O1w;var XH=function(){return _.b.apply(this,arguments)||this};
_.A(XH,_.b);XH.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}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],XH.prototype,"data",void 0);XH=_.f([_.U({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],XH);
_.X(XH,"ytd-feed-channel-filter-header-renderer",function(){if(O1w!==void 0)return O1w;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return O1w=W},{mode:1});var JUd;var BFM;var nxb;var fc=function(){return _.b.apply(this,arguments)||this};
_.A(fc,_.b);_.J=fc.prototype;_.J.onClick=function(W){var P,x=(P=this.data)==null?void 0:P.sectionEndpoint;!_.Nx(_.c5(W),this.hostElement,["A".toString()])&&x&&_.Lf(this.hostElement,"yt-navigate",{endpoint:x})};
_.J.computeHasSectionEndpoint=function(W){return(W==null?void 0:W.sectionEndpoint)!==void 0};
_.J.computeShowHeaderAsLink=function(W){return(W==null?void 0:W.header)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0};
_.J.computeShowSubheaderAsLink=function(W){return(W==null?void 0:W.subheader)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0&&(W==null?void 0:W.header)===void 0};
_.J.getHeaderAsLinkClass=function(W){var P=[],x;(W==null?0:(x=W.headerIcon)==null?0:x.iconType)&&P.push("header-link-active");return P.join(" ")};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],fc.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],fc.prototype,"data",void 0);
_.f([_.c({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],fc.prototype,"hasSectionEndpoint",void 0);_.f([_.c({computed:"computeShowHeaderAsLink(data)"}),_.l("design:type",Boolean)],fc.prototype,"showHeaderAsLink",void 0);_.f([_.c({computed:"computeShowSubheaderAsLink(data)"}),_.l("design:type",Boolean)],fc.prototype,"showSubheaderAsLink",void 0);fc=_.f([_.U({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],fc);
_.X(fc,"ytd-medical-panel-section-renderer",function(){if(nxb!==void 0)return nxb;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return nxb=W},{mode:1});var NX=function(){var W=_.b.apply(this,arguments)||this;W.isExpanded=!1;W.roundedContainer=!0;W.skipRoundingTop=!1;W.toggleExpandableSection=function(){W.isExpanded=!W.isExpanded};
return W};
_.A(NX,_.b);
NX.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]]"}}}}}};
NX.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
NX.prototype.dataChanged=NX.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],NX.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],NX.prototype,"isExpanded",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],NX.prototype,"roundedContainer",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],NX.prototype,"skipRoundingTop",void 0);_.f([_.c(),_.l("design:type",Object)],NX.prototype,"toggleExpandableSection",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],NX.prototype,"dataChanged",null);NX=_.f([_.U({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],NX);
_.X(NX,"ytd-medical-panel-content-renderer",function(){if(BFM!==void 0)return BFM;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return BFM=W},{mode:1});_.Ad("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var l0=function(){var W=_.b.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.p("enable_desktop_amsterdam_info_panels");W.hasTitle=!1;W.linkIcon="OPEN_IN_NEW";W.isDismissed=!1;return W};
_.A(l0,_.b);
l0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
l0.prototype.computeHasTitle=function(W){return!(W==null||!W.title)};
l0.prototype.onClick=function(W){var P,x=(P=this.data)==null?void 0:P.headerEndpoint;!_.Nx(_.c5(W),this.hostElement,["BUTTON".toString()])&&x&&this.ytComponentBehavior.resolveCommand(x)};
_.N1.Object.defineProperties(l0.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 W;return((W=this.data)==null?void 0:W.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:W.disableBottomDivider)||!((P=this.data)==null?0:P.title)}}});
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],l0.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],l0.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],l0.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],l0.prototype,"roundedContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],l0.prototype,"amsterdamEnabled",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.l("design:type",Object)],l0.prototype,"hasTitle",void 0);
_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.background"),_.l("design:type",Object),_.l("design:paramtypes",[])],l0.prototype,"background",null);_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.titleStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],l0.prototype,"titleStyle",null);
_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.H("data.titleStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],l0.prototype,"showLinkIcon",null);_.f([_.c(),_.l("design:type",String)],l0.prototype,"linkIcon",void 0);_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],l0.prototype,"hideDivider",null);
_.f([_.c({selectorArgs:["data.dismissStateEntityKey"],selector:function(W,P){W=_.Jb(W.entities,"dismissState",P);return(W==null?void 0:W.isDismissed)||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.l("design:type",Object)],l0.prototype,"isDismissed",void 0);l0=_.f([_.U({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],l0);
_.X(l0,"ytd-info-panel-container-renderer",function(){if(JUd!==void 0)return JUd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return JUd=W},{mode:1});var YqZ;_.Ad("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Tv=function(){var W=_.b.apply(this,arguments)||this;W.modernTypography=_.p("web_modern_typography");return W};
_.A(Tv,_.b);Tv.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Tv.prototype.computeStyle=function(W){return W?W:""};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Tv.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.l("design:type",String)],Tv.prototype,"titleStyle",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Tv.prototype,"modernTypography",void 0);Tv=_.f([_.U({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Tv);
_.X(Tv,"ytd-item-section-header-renderer",function(){if(YqZ!==void 0)return YqZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return YqZ=W},{mode:1});var yUA;var K6l,Z1Z=function(){return K6l!==void 0?K6l:K6l=document.createElement("template")};
document.head.appendChild(Z1Z().content);var oxl;_.rG=new _.Lb("VOTING_ANIMATION_CONTROLLER_TOKEN");var uAM=_.kl(function(W){var P=W.data;var x=_.fa(),I=_.fa();W=_.n(_.YV("VOTE_STATUS_NONE",void 0,"FVF7mc"));var O=W.next().value,B=W.next().value,Y=_.dp(l6o,function(){var t;return(t=P())==null?void 0:t.entityKey}),K=_.p("web_enable_voting_animation")||_.p("enable_music_web_cairo_voting_animation");
_.AQ(function(){var t;((t=P().initialState)==null?0:t.status)&&B(P().initialState.status)});
var Z=function(){var t,C,z=(C=(t=P().initialState)==null?void 0:t.votes)!=null?C:0,D;t=(D=P().initialState)==null?void 0:D.status;return t==="VOTE_STATUS_UPVOTED"?z-1:t==="VOTE_STATUS_DOWNVOTED"?z+1:z},d=function(){return O()==="VOTE_STATUS_UPVOTED"?Z()+1:O()==="VOTE_STATUS_DOWNVOTED"?Z()-1:Z()},v=function(t){var C=t?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
B(C);var z=d(),D=_.FY().resolve(_.Rl(_.rG)),w=Y();w&&(t&&(w==null?0:w.upvoteDefaultButtonOnTap)?_.D1(w.upvoteDefaultButtonOnTap,{form:{element:x.value},disableClickTracking:!0}):(w==null?0:w.upvoteToggledButtonOnTap)&&_.D1(w.upvoteToggledButtonOnTap,{form:{element:x.value},disableClickTracking:!0}));var a;t=(a=w==null?void 0:w.enableOptimisticReordering)!=null?a:P().enableOptimisticReordering;K&&D&&P().itemId&&t&&Sqd(D,P().itemId,z,C)},m=function(t){var C=t?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
B(C);var z=d(),D=_.FY().resolve(_.Rl(_.rG)),w=Y();w&&(t&&(w==null?0:w.downvoteDefaultButtonOnTap)?_.D1(w.downvoteDefaultButtonOnTap,{form:{element:I.value},disableClickTracking:!0}):(w==null?0:w.downvoteToggledButtonOnTap)&&_.D1(w.downvoteToggledButtonOnTap,{form:{element:I.value},disableClickTracking:!0}));var a;t=(a=w==null?void 0:w.enableOptimisticReordering)!=null?a:P().enableOptimisticReordering;K&&D&&P().itemId&&t&&Sqd(D,P().itemId,z,C)};
W={};W=_.O4("ytVotingViewModelVoteCount",(W.ytVotingViewModelVoteCountDisabled=function(){return P().isDisabled},W));
return _.u("voting-view-model",{class:"ytVotingViewModelHost"},_.u("div",{el:x},_.u(_.Ea,{data:function(){var t=_.Q(P().upvoteButton,_.DZ);return{toggleButtonViewModel:Object.assign({},t,{isToggled:O()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(t){return _.u(_.MI,{data:t.data,
onToggle:v})}})),_.u("div",{class:W},function(){var t,C,z;
return O()==="VOTE_STATUS_UPVOTED"?(t=P().initialState)==null?void 0:t.compactVotesUpvoted:O()==="VOTE_STATUS_DOWNVOTED"?(C=P().initialState)==null?void 0:C.compactVotesDownvoted:(z=P().initialState)==null?void 0:z.compactVotes}),_.u("div",{el:I},_.u(_.Ea,{data:function(){var t=_.Q(P().downvoteButton,_.DZ);
return{toggleButtonViewModel:Object.assign({},t,{isToggled:O()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(t){return _.u(_.MI,{data:t.data,
onToggle:m})}})))},"Db");_.lq(_.kl(function(W){var P=W.data;return _.u("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.u("div",{class:_.O4("ytEngagementBarViewModelEngagementBarWrapper",W.className)},_.u(_.Ea,{data:function(){return P().actions}},{votingViewModel:uAM})))},"Eb"),"engagement-bar-view-model",{props:{data:_.cv,
className:_.cv}});var i0=function(){var W=_.b.apply(this,arguments)||this;W.amsterdamPostMvp=_.p("web_amsterdam_post_mvp_playlists");W.cairoCollabPlaylistPostMvp=_.p("web_collab_playlist_thumbnail_size");W.playlistVotingAnimationEnabled=_.p("web_enable_voting_animation");W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;return W};
_.A(i0,_.b);_.J=i0.prototype;_.J.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"}}}};
_.J.canReorderChanged=function(){this.persistentDragHandle=_.p("kevlar_playlist_drag_handles")&&this.canReorder};
_.J.onDrag=function(){if(this.thumbnail){var W=_.g(this.thumbnail).querySelector("yt-image");W&&(W.shouldRenderLazy=!1)}};
_.J.onMenuOverlayChanged=function(W,P){this.menuOpened=P};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.J.onContentsTap=function(W){var P,x=(P=this.data)==null?void 0:P.serviceEndpoints;if(x&&x.length===1&&_.Q(x[0],W2U)&&!_.Nx(_.c5(W),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(x[0]);else{var I;(P=(I=this.data)==null?void 0:I.navigationEndpoint)&&_.p("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?d9M(_.FY().resolve(_.kc),P):(_.ug().playlistSuggestionsShelfActivation=
!0,_.syk(_.FY().resolve(_.kc),P)):P&&!_.Nx(_.c5(W),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.p("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Lf(this.hostElement,"yt-navigate",{endpoint:P}):this.ytComponentBehavior.resolveCommand(P))}};
_.J.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(W){return W==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.J.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=tvm(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))}};
_.J.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.dataChanged=function(){if(this.data){var W,P,x,I=((W=this.downloadRenderData)==null?void 0:W.badges)&&((P=this.downloadRenderData)==null?void 0:P.badges)!==((x=this.data)==null?void 0:x.badges),O,B,Y;W=((O=this.downloadRenderData)==null?void 0:O.thumbnailOverlays)&&((B=this.downloadRenderData)==null?void 0:B.thumbnailOverlays)!==((Y=this.data)==null?void 0:Y.thumbnailOverlays);(!this.downloadRenderData||I||W)&&this.downloadStateChanged()}};
_.J.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var W,P,x=(W=this.data.menu)==null?void 0:(P=W.menuRenderer)==null?void 0:P.items;if(x)for(W=_.n(x),P=W.next();!P.done;P=W.next())if(P=P.value,x=void 0,_.Q((x=P.menuServiceItemRenderer)==null?void 0:x.serviceEndpoint,_.Dy)){var I=x=void 0,O=void 0;P=(x=P)==null?void 0:(I=x.menuServiceItemRenderer)==null?void 0:(O=I.serviceEndpoint)==null?void 0:O.playlistEditEndpoint;O=I=void 0;if(x=(I=P)==null?void 0:(O=I.actions)==null?void 0:
O[0])I=void 0,x.setVideoId=(I=this.data)==null?void 0:I.setVideoId;O=I=x=void 0;if(P=(x=P)==null?void 0:(I=x.clientActions)==null?void 0:(O=I[0])==null?void 0:O.playlistRemoveVideosAction)x=void 0,P.setVideoIds=[(x=this.data)==null?void 0:x.setVideoId]}}};
_.N1.Object.defineProperties(i0.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
i0.prototype.setVideoIdChanged=i0.prototype.setVideoIdChanged;i0.prototype.dataChanged=i0.prototype.dataChanged;i0.prototype.downloadStateChanged=i0.prototype.downloadStateChanged;i0.prototype.onMenuOverlayChanged=i0.prototype.onMenuOverlayChanged;i0.prototype.canReorderChanged=i0.prototype.canReorderChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],i0.prototype,"ytdReduxBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],i0.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],i0.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],i0.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],i0.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],i0.prototype,"amsterdamPostMvp",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],i0.prototype,"canReorder",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],i0.prototype,"menuOpened",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],i0.prototype,"handleIsHovered",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],i0.prototype,"persistentDragHandle",void 0);
_.f([_.c(),_.l("design:type",Object)],i0.prototype,"downloadRenderData",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],i0.prototype,"styleType",void 0);_.f([_.c({computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],i0.prototype,"thumbnailWidth",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],i0.prototype,"isDownloads",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],i0.prototype,"cairoCollabPlaylistPostMvp",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],i0.prototype,"playlistVotingAnimationEnabled",void 0);_.f([_.c({selector:gE,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],i0.prototype,"downloadProgress",void 0);_.f([_.c(),_.l("design:type",Number)],i0.prototype,"relativeDateReference",void 0);
_.f([_.c({selector:_.GK,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],i0.prototype,"transferState",void 0);_.f([_.c({selector:fy8,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],i0.prototype,"downloadState",void 0);_.f([_.c({selector:gZS,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],i0.prototype,"offlinePolicyAction",void 0);_.f([_.c({selector:D3A,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],i0.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.f([_.c({selector:$3C,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],i0.prototype,"entityInfo",void 0);_.f([_.c({selector:_.Ab}),_.l("design:type",Boolean)],i0.prototype,"miniplayerIsActive",void 0);_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],i0.prototype,"playlistVideoId",null);_.f([_.BM("#thumbnail"),_.l("design:type",Object)],i0.prototype,"thumbnail",void 0);
_.f([_.K_("canReorder"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i0.prototype,"canReorderChanged",null);_.f([_.I7("yt-menu-overlay-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Boolean]),_.l("design:returntype")],i0.prototype,"onMenuOverlayChanged",null);
_.f([_.K_("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i0.prototype,"downloadStateChanged",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i0.prototype,"dataChanged",null);
_.f([_.K_("data.setVideoId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i0.prototype,"setVideoIdChanged",null);i0=_.f([_.U({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],i0);
_.X(i0,"ytd-playlist-video-renderer",function(){if(oxl!==void 0)return oxl;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);W.content.insertBefore(Z1Z().content.cloneNode(!0),W.content.firstChild);return oxl=W},{mode:1});var vxp;var Rj=function(){return _.b.apply(this,arguments)||this};
_.A(Rj,_.b);_.f([_.c(),_.l("design:type",Object)],Rj.prototype,"data",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Rj.prototype,"rendererBehavior",void 0);Rj=_.f([_.U({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Rj);
_.X(Rj,"ytd-premium-browse-footer-renderer",function(){if(vxp!==void 0)return vxp;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return vxp=W},{mode:1});var m9p;var FH=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.A(FH,_.b);_.J=FH.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.handleDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.J.computeHeaderLogoThumbnail=function(W,P){if(W)return P?W.darkLogo:W.lightLogo};
_.J.computeHeaderLogoHeight=function(W,P){var x,I,O;return(W=(x=this.computeHeaderLogoThumbnail(W,P))==null?void 0:(I=x.thumbnails)==null?void 0:(O=I[0])==null?void 0:O.height)&&W%31===0?"31":"24"};
_.J.computeHeaderLogoMarginBottom=function(W,P){return this.computeHeaderLogoHeight(W,P)==="24"?"0":"-7"};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],FH.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],FH.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],FH.prototype,"isDarkTheme",void 0);_.f([_.c({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.l("design:type",Object)],FH.prototype,"themeLogo",void 0);
_.f([_.c({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.l("design:type",String)],FH.prototype,"logoHeight",void 0);_.f([_.c({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.l("design:type",String)],FH.prototype,"logoMarginBottom",void 0);FH=_.f([_.U({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],FH);
_.X(FH,"ytd-primetime-promo-header-renderer",function(){if(m9p!==void 0)return m9p;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return m9p=W},{mode:1});var VRZ;_.ql(iiC);var tRA=_.kl(function(W){var P=W.text;var x=W.className;var I=W.tagLevel;return _.u(_.tQ,null,_.u(_.mk,{when:function(){return(I==null?void 0:I())===0}},function(){return _.u("h2",{class:x},P())}),_.u(_.mk,{when:function(){return(I==null?void 0:I())===1}},function(){return _.u("h3",{class:x},P())}),_.u(_.mk,{when:function(){return(I==null?void 0:I())===2}},function(){return _.u("h4",{class:x},P())}),_.u(_.Va,null,function(){return _.u("h2",{class:x},P())}))},"Fb"),phM=_.kl(function(W){var P=_.yB(function(O){var B;
(B=W.onClick)==null||B.call(W,O)}),x={},I={};
return _.u("yt-shelf-header-layout",{class:_.O4("shelf-header-layout-wiz",(x["shelf-header-layout-wiz--disable-horizontal-padding"]=W.disableHorizontalPadding,x["shelf-header-layout-wiz--disable-vertical-padding"]=W.disableVerticalPadding,x["shelf-header-layout-wiz--responsive"]=W.useResponsiveLayout,x["shelf-header-layout-wiz--narrow"]=function(){var O,B;return((O=W.useResponsiveLayout)==null?void 0:O.call(W))&&((B=W.forceSmallLayout)==null?void 0:B.call(W))},x["shelf-header-layout-wiz--is-overlay"]=
W.isOverlay,x["shelf-header-layout-wiz--tappable"]=!!W.onClick,x)),
"on:click":P,tabindex:W.onClick?0:void 0},_.u(_.V,{cond:W.leadingIcon,then:function(O){return _.u("div",{class:"shelf-header-layout-wiz__leading-icon"},_.u(_.Sy,{icon:O}))},
else:function(){return _.u(_.V,{cond:W.hasLeadingImage,then:function(){var O,B={};return _.u("div",{class:_.O4("shelf-header-layout-wiz__leading-image",(B["shelf-header-layout-wiz__leading-image--circular-image"]=W.circularImage,B))},(O=W.leadingImage)==null?void 0:O.call(W))}})}}),_.u("div",{class:"shelf-header-layout-wiz__label-container"},_.u(_.V,{cond:W.hasSuperlabel,
then:function(){var O;return _.u("div",{class:"shelf-header-layout-wiz__superlabel"},(O=W.superlabel)==null?void 0:O.call(W))}}),_.u("div",{class:"shelf-header-layout-wiz__title-row"},_.u(tRA,{text:W.title,
className:_.O4("shelf-header-layout-wiz__title",(I["shelf-header-layout-wiz__title--small-title"]=W.forceSmallLayout,I)),tagLevel:W.tagLevel}),_.u(_.V,{cond:W.hasDetail,then:function(){var O;return _.u("div",{class:"shelf-header-layout-wiz__detail"},(O=W.detail)==null?void 0:O.call(W))}})),_.u(_.V,{cond:W.hasSublabel,
then:function(){var O;return _.u("div",{class:"shelf-header-layout-wiz__sublabel"},(O=W.sublabel)==null?void 0:O.call(W))}})),_.u(_.V,{cond:W.hasTrailingActions,
then:function(){var O;return _.u("div",{class:"shelf-header-layout-wiz__trailing-actions"},(O=W.trailingActions)==null?void 0:O.call(W))}}))},"Gb"),xyo=_.p("web_enable_sink_section_header")?phM:iiC,jyA=_.p("web_enable_sink_section_header")?phM:_.nE(iiC,{callbacks:{title:!0,
detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}});phM.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};var PQS=_.CC({flexibleActionsViewModel:TjW});_.ql(IoR);var z7z;z7z=_.kl(function(W){var P=W.data;return _.u("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.oP({"background-color":function(){return T2S(P().backgroundColor)?_.Qy(T2S(P().backgroundColor)):void 0}})},_.u(jyA,{hasDetail:!1,
title:function(){return _.u(_.mQ,{text:function(){return P().headline}})},
hasTitle:!0,sublabel:function(){return _.u(Qyz,{data:P})},
hasSublabel:function(){return!!P().sublabel||!!P().bottomBadge},
superlabel:function(){return _.u(C$c,{data:P})},
hasSuperlabel:function(){return!!P().superlabel||!!P().topBadge},
leadingImage:function(){return _.u(AUi,{leadingAccessory:function(){return P().leadingAccessory}})},
hasLeadingImage:function(){return!!P().leadingAccessory},
trailingActions:function(){return _.u(_.Ea,{data:function(){return P().trailingActions}},{flexibleActionsViewModel:jg})},
hasTrailingActions:function(){return!!P().trailingActions},
disableHorizontalPadding:W.disableHorizontalPadding,disableVerticalPadding:W.disableVerticalPadding,forceSmallLayout:W.forceSmallLayout,useResponsiveLayout:W.useResponsiveLayout,isOverlay:W.isOverlay,onClick:function(x){if(_.fC(P().rendererContext)){var I=_.Xd(P().rendererContext);I&&_.zm(I,{form:{element:x.target,event:x}})}}}))},"Hb");
_.qX=_.p("web_enable_sink_section_header")?z7z:_.nE(IoR);z7z.idomCompat=!0;var AUi=_.kl(function(W){var P=W.leadingAccessory;return _.u(_.qS,null,_.u(_.V,{cond:function(){var x;return(x=P().image)!=null?x:_.LC(P().themedImage)},
then:function(x){return _.u(_.bq,{data:x,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.u(_.V,{cond:function(){return _.Q(P().avatar,_.rp)},
then:function(x){return _.u(_.DI,{data:x})}}))},"Ib"),Qyz=_.kl(function(W){var P=W.data;
return _.u(_.qS,null,_.u(_.V,{cond:function(){return _.Q(P().bottomBadge,FDR)},
then:function(x){var I={};return _.u(_.N0,{data:x,class:_.O4((I.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!x()&&!!P().sublabel},I))})}}),_.u(_.V,{cond:function(){return P().sublabel},
then:function(x){return _.u(_.mQ,{text:x})}}))},"Jb"),C$c=_.kl(function(W){var P=W.data;
return _.u(_.qS,null,_.u(_.V,{cond:function(){return _.Q(P().topBadge,FDR)},
then:function(x){var I={};return _.u(_.N0,{data:x,class:_.O4((I.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!x()&&!!P().superlabel},I))})}}),_.u(_.V,{cond:function(){return P().superlabel},
then:function(x){return _.u(_.mQ,{text:x})}}))},"Kb");_.lq(_.qX,"yt-section-header-view-model",{props:{data:_.cv,className:_.cv,disableHorizontalPadding:_.cv,disableVerticalPadding:_.cv,forceSmallLayout:_.cv,useResponsiveLayout:_.cv,isOverlay:_.cv}});_.Ad("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Lc=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.A(Lc,_.b);_.J=Lc.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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"}}}};
_.J.onDataChange=function(){var W=this;_.Xm(this,function(){W.updateItemVisibility()})};
_.J.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W,this.updateItemVisibility())};
_.J.updateItemVisibility=function(){var W=this;this.data&&this.data.panels&&_.g(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(P,x){P.hidden=x>W.elementsPerRow-1})};
_.J.requestElementsPerRow=function(){_.Lf(this.hostElement,"yt-request-elements-per-row")};
Lc.prototype.onDataChange=Lc.prototype.onDataChange;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],Lc.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Lc.prototype,"actionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Lc.prototype,"data",void 0);_.f([_.c({value:3}),_.l("design:type",Number)],Lc.prototype,"elementsPerRow",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lc.prototype,"onDataChange",null);Lc=_.f([_.U({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Lc);
_.X(Lc,"ytd-primetime-promo-renderer",function(){if(VRZ!==void 0)return VRZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return VRZ=W},{mode:1});var G9c;var WQ=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return W};
_.A(WQ,_.b);WQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
WQ.prototype.handleButtonRefreshAction=function(W){if(W=_.Q(W,o5c))this.set("data.button",W.membershipButton),this.notifyPath("data.button")};
_.N1.Object.defineProperties(WQ.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:(P=W.avatars)==null?void 0:P.slice(0,8))||[]}}});
_.f([_.c(),_.l("design:type",Object)],WQ.prototype,"data",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],WQ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],WQ.prototype,"rendererBehavior",void 0);_.f([_.H("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],WQ.prototype,"avatars",null);
WQ=_.f([_.U({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],WQ);
_.X(WQ,"ytd-recognition-shelf-renderer",function(){if(G9c!==void 0)return G9c;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return G9c=W},{mode:1});var Exw;var gxM;var PQ=function(){var W=_.b.apply(this,arguments)||this;W.modernButtons=_.p("web_modern_buttons");return W};
_.A(PQ,_.b);_.J=PQ.prototype;
_.J.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.J.dataChanged=function(){this.collapsed=!0};
_.J.computeVisibleItems=function(W,P){return W!==void 0&&W.items?P?W.items.slice(0,this.data.collapsedItemCount):W.items:[]};
_.J.computeHideShowMore=function(W,P,x){return W>=P||!x};
_.J.computeHideShowAll=function(W,P,x){return!(W&&P)||x};
_.J.onMoreClick=function(){this.collapsed=!1};
_.N1.Object.defineProperties(PQ.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.p("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
PQ.prototype.dataChanged=PQ.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],PQ.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],PQ.prototype,"isSearch",void 0);
_.f([_.c({computed:"computeVisibleItems(data,collapsed)"}),_.l("design:type",Array)],PQ.prototype,"visibleItems",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],PQ.prototype,"collapsed",void 0);_.f([_.c({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.l("design:type",Boolean)],PQ.prototype,"hideShowMore",void 0);
_.f([_.c({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.l("design:type",Boolean)],PQ.prototype,"hideShowAll",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],PQ.prototype,"modernButtons",void 0);_.f([_.H("isSearch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],PQ.prototype,"typographyBump",null);
_.f([_.H("isSearch"),_.l("design:type",String),_.l("design:paramtypes",[])],PQ.prototype,"thumbnailWidth",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PQ.prototype,"dataChanged",null);PQ=_.f([_.U({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],PQ);
_.X(PQ,"ytd-vertical-list-renderer",function(){if(gxM!==void 0)return gxM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gxM=W},{mode:1});var D9c=_.i4(["#"]);_.Ad("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var xq=function(){var W=_.b.apply(this,arguments)||this;W.isConstrainedList=!1;W.modernTypography=_.p("web_modern_typography");return W};
_.A(xq,_.b);_.J=xq.prototype;
_.J.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"}}}};
_.J.computeThumbnailStyle=function(W){return W||""};
_.J.computePlaceAnnotationUnderTitle=function(){var W;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((W=this.data)==null?void 0:W.thumbnailStyle)||"")};
_.J.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.pz(D9c)};
_.J.computeIsPromoShelf=function(W){var P;return(W=W==null?void 0:(P=W[0])==null?void 0:P.metadataBadgeRenderer)?W.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.J.computePlaceBadgeBesideTitle=function(W){var P;return(W==null?0:(P=W[0])==null?0:P.metadataBadgeRenderer)?!this.computeIsPromoShelf(W):!1};
_.J.computeMenuIcon=function(W){return this.computeIsPromoShelf(W)?"yt-icons:more_vert":"yt-icons:more"};
_.J.onDataChange=function(){var W,P;((W=this.data)==null?0:(P=W.content)==null?0:P.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.J.onLockupRequested=function(W){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&W.detail&&W.detail.videoIds){for(var P=this.data.content.gridRenderer.items,x=new Set,I=_.n(W.detail.videoIds),O=I.next();!O.done;O=I.next())x.add(O.value);W.detail.returnValue=P.filter(function(B){return B.gridVideoRenderer&&B.gridVideoRenderer.videoId&&x.has(B.gridVideoRenderer.videoId)}).map(function(B){return B.gridVideoRenderer})}};
_.J.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
xq.prototype.onLockupRequested=xq.prototype.onLockupRequested;xq.prototype.onDataChange=xq.prototype.onDataChange;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],xq.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],xq.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Db),_.l("design:type",Object)],xq.prototype,"ironResizableBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],xq.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],xq.prototype,"isSearch",void 0);_.f([_.c(),_.l("design:type",Object)],xq.prototype,"isConstrainedList",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("kevlar_fluid_dismiss")}}),
_.l("design:type",Boolean)],xq.prototype,"enableFluidDismiss",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.l("design:type",String)],xq.prototype,"thumbnailStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xq.prototype,"modernTypography",void 0);_.f([_.c({computed:"computeMenuIcon(data.badges)"}),_.l("design:type",String)],xq.prototype,"menuIcon",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xq.prototype,"onDataChange",null);_.f([_.I7("yt-lockup-requested"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xq.prototype,"onLockupRequested",null);xq=_.f([_.U({is:"ytd-shelf-renderer",disableElementRegistration:!0})],xq);
_.X(xq,"ytd-shelf-renderer",function(){if(Exw!==void 0)return Exw;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Exw=W},{mode:1});var MRM;var IA=function(){return _.b.apply(this,arguments)||this};
_.A(IA,_.b);IA.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.N1.Object.defineProperties(IA.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],IA.prototype,"data",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],IA.prototype,"isPlaylist",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],IA.prototype,"isClipList",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],IA.prototype,"isPlaylistPageWithFilters",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],IA.prototype,"hasTitle",null);_.f([_.c(),_.H("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.l("design:type",Object),_.l("design:paramtypes",[])],IA.prototype,"isRightAligned",null);
IA=_.f([_.U({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],IA);
_.X(IA,"ytd-sort-filter-header-renderer",function(){if(MRM!==void 0)return MRM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return MRM=W},{mode:1});var $9Z;var OI=function(){return _.b.apply(this,arguments)||this};
_.A(OI,_.b);
OI.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]]"}}}}}};
OI.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.N1.Object.defineProperties(OI.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.p("enable_creator_details_shelf_m2")){var W=[],P;((P=this.data)==null?0:P.creatorVideosButton)&&W.push(this.data.creatorVideosButton);var x;((x=this.data)==null?0:x.creatorAboutButton)&&W.push(this.data.creatorAboutButton);P=_.n(this.data.creatorCustomUrlButtons||[]);for(x=P.next();!x.done;x=P.next())W.push(x.value);return W}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.p("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.RO.YtdHorizontalListBehavior),_.l("design:type",Object)],OI.prototype,"ytdHorizontalListBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],OI.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],OI.prototype,"engagementPanel",void 0);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],OI.prototype,"creatorCustomUrlButtons",null);_.f([_.c({reflectToAttribute:!0}),_.H("data","creatorCustomUrlButtons"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],OI.prototype,"showCreatorCustomUrlButtons",null);_.f([_.H("showCreatorCustomUrlButtons"),_.l("design:type",Number),_.l("design:paramtypes",[])],OI.prototype,"channelAvatarSize",null);
OI=_.f([_.U({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],OI);
_.X(OI,"ytd-video-description-infocards-section-renderer",function(){if($9Z!==void 0)return $9Z;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return $9Z=W},{mode:_.F4("kevlar_poly_si_batch_j067")?1:2});var whz;var JG=function(){return _.b.apply(this,arguments)||this};
_.A(JG,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],JG.prototype,"data",void 0);_.f([_.c({computed:"computeIcon_(data.infoIcon)"}),_.l("design:type",Object)],JG.prototype,"infoIcon",void 0);JG=_.f([_.U({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],JG);
_.X(JG,"ytd-eom-settings-disclaimer-renderer",function(){if(whz!==void 0)return whz;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return whz=W},{mode:1});var h7i;var BQ=function(){return _.b.apply(this,arguments)||this};
_.A(BQ,_.b);_.N1.Object.defineProperties(BQ.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.suppressPaddingDisclaimer)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],BQ.prototype,"componentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],BQ.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BQ.prototype,"suppressPaddingDisclaimer",null);BQ=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],BQ);
_.X(BQ,"ytd-product-list-header-renderer",function(){if(h7i!==void 0)return h7i;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return h7i=W},{mode:1});var H1W;var nI=function(){return _.b.apply(this,arguments)||this};
_.A(nI,_.b);nI.prototype.computeThumbnailStyle=function(W){if(W&&(W=_.j9(W)))return"background-color:"+W+";"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nI.prototype,"rendererBehaviors",void 0);_.f([_.c(),_.l("design:type",Object)],nI.prototype,"data",void 0);nI=_.f([_.U({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],nI);
_.X(nI,"ytd-hashtag-tile-renderer",function(){if(H1W!==void 0)return H1W;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return H1W=W},{mode:1});var e7A;var Yq=function(){return _.b.apply(this,arguments)||this};
_.A(Yq,_.b);Yq.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}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Yq.prototype,"data",void 0);Yq=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Yq);
_.X(Yq,"ytd-sponsorships-alert-renderer",function(){if(e7A!==void 0)return e7A;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return e7A=W},{mode:1});var cUA;var yX=function(){return _.b.apply(this,arguments)||this};
_.A(yX,_.b);yX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.N1.Object.defineProperties(yX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.p("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.p("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.f([_.h(_.gW),_.l("design:type",Object)],yX.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],yX.prototype,"ytdLockupBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.f([_.c({selector:_.br}),_.l("design:type",Object)],yX.prototype,"isGridViewEnabled",void 0);
_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yX.prototype,"watchFeedBigThumbs",null);_.f([_.H("isGridViewEnabled"),_.c({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],yX.prototype,"thumbnailWidth",null);_.f([_.c(),_.l("design:type",Object)],yX.prototype,"data",void 0);yX=_.f([_.U({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],yX);
_.X(yX,"ytd-compact-movie-renderer",function(){if(cUA!==void 0)return cUA;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return cUA=W},{mode:1});var aQP;var b1A;var k9w=_.$$("HTML_DIR")==="rtl",KI=function(){var W=_.b.apply(this,arguments)||this;W.engagementPanel=!1;W.maxLines=2;W.expandButtonOffset=0;W.showExpandButton=!1;W.isTruncated=!1;W.isExpanded=!1;W.currentSnippetType=2;W.alwaysShowExpandButton=!1;W.JSC$14174_lastWidth=NaN;W.observer=null;W.left=0;W.right=0;W.mid=0;W.longestSnippetLength=0;W.isFinalSnippet=!1;W.isFirstMutation=!1;W.isResetMutation=!1;W.OVERFLOW_THRESHOLD=5;return W};
_.A(KI,_.b);_.J=KI.prototype;_.J.onClick=function(W){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Nx(_.c5(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var P;if((P=window.getSelection())==null||!P.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.J.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.J.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.J.updateTextOnSnippetTypeChange=function(){_.p("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.J.setUpBinarySearch=function(W){W=W*this.maxLines/8;this.left=0;var P,x;this.right=Math.min(W*2,(x=(P=this.simpleText)==null?void 0:P.length)!=null?x:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.J.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.J.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.ge(new _.mW("AttributedSnippet is empty when the description is not empty",this.text))};
_.J.mutationCallback=function(){if(this.observer!=null){var W=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var P=Math.floor(W*this.maxLines/8);this.setSnippetText(this.text,P);P!==0||this.attributedTextIsEmpty()||_.ge(new _.mW("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;W=W*this.maxLines/8;this.left=0;var x;this.right=Math.min(W*2,(x=(P=this.simpleText)==null?void 0:P.length)!=null?x:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.J.mutationObserve=function(W){var P=this;this.observer||(this.observer=new MutationObserver(function(){P.mutationCallback()}));
this.observer.observe(W,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.J.attached=function(){var W=this;_.Xm(this,function(){W.resize()})};
_.J.isExpandedChanged=function(){_.Lf(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.J.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)};
_.J.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var W="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((k9w?"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",W);this.snippetContainer.style.setProperty("mask-image",
W)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(k9w?"right":"left",this.expandButtonOffset+"px")};
_.J.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.J.setSnippetText=function(W,P){W||(W={});if(_.HW(W)){var x=icS(W,P);x.attachmentRuns||x.commandRuns||x.decorationRuns||x.styleRuns||x.alignment||x.lineBreakMode?this.attributedSnippetTextEl?(_.p("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=icS(W,P),this.attributedSnippetTextEl.headerRuns=ra8(P,this.headerRuns)):this.attributedSnippetText={data:icS(W,P),headerRuns:ra8(P,this.headerRuns)},this.currentSnippetType=0):_.ge(new _.mW("Tried to set snippet text when HTML element was null",
W)):(this.plainSnippetText.textContent=$Y(W.content||"",P),this.currentSnippetType=2)}else{a:{x=O9G(W,P);if(x.runs){x=_.n(x.runs);for(var I=x.next();!I.done;I=x.next())if(I=I.value,I.bold||I.deemphasize||I.italics||I.strikethrough||I.textColor||I.navigationEndpoint||_.Q(I,jS)){x=!0;break a}}x=!1}x?this.formattedSnippetText?(this.formattedSnippetText.text=O9G(W,P),this.currentSnippetType=1):_.ge(new _.mW("Tried to set snippet text when HTML element was null",W)):(this.plainSnippetText.textContent=
$Y(_.kz(W),P),this.currentSnippetType=2)}};
_.J.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.J.attributedTextIsEmpty=function(){var W=this.text;if(!_.HW(W))return!0;var P;return((P=W.content)==null?void 0:P.length)===0?!0:!1};
_.J.resize=function(W){if(this.snippetText){if(W===void 0?0:W)this.JSC$14174_lastWidth=NaN;var P=this.hostElement.offsetWidth;if(P!==this.JSC$14174_lastWidth&&!this.isExpanded)if(this.JSC$14174_lastWidth=P,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;W=0;var x,I;P=Math.min(P*this.maxLines/8*2,(I=(x=this.simpleText)==null?void 0:x.length)!=null?I:0)-1;for(x=0;W<=P;)I=Math.floor(W+(P-W)/2),this.setSnippetText(this.text,I),this.isOverflowing()?P=I-1:(W=I+1,x=I);this.setSnippetText(this.text,x);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.J.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.J.onExpandClick=function(){var W=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.p("inline_expander_reset_focus_killswitch")||_.Xm(this,function(){var P;((P=_.FY().resolve(_.Rl(_.jK)))==null?0:P.isKeyBoardInUse())&&_.XG(W.hostElement)});
_.Lf(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.J.onCollapseClick=function(){this.collapse();_.Lf(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.J.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.J.computeExpandButtonOffset=function(){var W=this.expandSizer;return W?k9w?W.offsetParent?W.offsetParent.offsetWidth-W.offsetWidth-W.offsetLeft:0:W.offsetLeft:0};
_.N1.Object.defineProperties(KI.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.HW(this.text)?this.text.content||"":_.kz(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 _.HW(this.text)?!0:this.text&&_.p("web_replace_formatted_with_attributed_string")&&sjR(this.text)?(this.text=_.pt(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}}});
KI.prototype.onTextChanged=KI.prototype.onTextChanged;KI.prototype.updateMaskAndExpandButtonOffset=KI.prototype.updateMaskAndExpandButtonOffset;KI.prototype.updateSnippetContainerMaxHeight=KI.prototype.updateSnippetContainerMaxHeight;KI.prototype.isExpandedChanged=KI.prototype.isExpandedChanged;KI.prototype.updateTextOnSnippetTypeChange=KI.prototype.updateTextOnSnippetTypeChange;KI.prototype.updateIsFormattedExpanded=KI.prototype.updateIsFormattedExpanded;KI.prototype.updateIsAttributedExpanded=KI.prototype.updateIsAttributedExpanded;
KI.prototype.onClick=KI.prototype.onClick;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],KI.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],KI.prototype,"text",void 0);_.f([_.c(),_.l("design:type",Array)],KI.prototype,"headerRuns",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KI.prototype,"engagementPanel",void 0);_.f([_.c(),_.l("design:type",Object)],KI.prototype,"maxLines",void 0);
_.f([_.c(),_.l("design:type",String)],KI.prototype,"expandLabel",void 0);_.f([_.c(),_.l("design:type",String)],KI.prototype,"collapseLabel",void 0);_.f([_.c(),_.l("design:type",Object)],KI.prototype,"expandCommand",void 0);_.f([_.c(),_.l("design:type",Object)],KI.prototype,"expandButtonOffset",void 0);_.f([_.H("text"),_.l("design:type",String),_.l("design:paramtypes",[])],KI.prototype,"simpleText",null);
_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KI.prototype,"onClick",null);_.f([_.H("text","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],KI.prototype,"expandedText",null);_.f([_.H("headerRuns","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],KI.prototype,"expandedHeaderRuns",null);
_.f([_.H("text"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KI.prototype,"hasAttributedStringText",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KI.prototype,"showExpandButton",void 0);_.f([_.H("collapseLabel","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],KI.prototype,"showCollapseButton",null);_.f([_.c(),_.l("design:type",Object)],KI.prototype,"isTruncated",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KI.prototype,"isExpanded",void 0);_.f([_.c(),_.l("design:type",Boolean)],KI.prototype,"isAttributedExpanded",void 0);_.f([_.OZ("isExpanded","hasAttributedStringText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KI.prototype,"updateIsAttributedExpanded",null);_.f([_.c(),_.l("design:type",Boolean)],KI.prototype,"isFormattedExpanded",void 0);
_.f([_.OZ("isExpanded","hasAttributedStringText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KI.prototype,"updateIsFormattedExpanded",null);_.f([_.c(),_.l("design:type",Number)],KI.prototype,"currentSnippetType",void 0);_.f([_.H("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],KI.prototype,"useAttributedSnippet",null);
_.f([_.H("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],KI.prototype,"useFormattedSnippet",null);_.f([_.H("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],KI.prototype,"usePlainSnippet",null);_.f([_.c(),_.l("design:type",Object)],KI.prototype,"alwaysShowExpandButton",void 0);_.f([_.OZ("currentSnippetType"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KI.prototype,"updateTextOnSnippetTypeChange",null);
_.f([_.c(),_.l("design:type",Object)],KI.prototype,"attributedSnippetText",void 0);_.f([_.BM("#snippet"),_.l("design:type",HTMLElement)],KI.prototype,"snippetContainer",void 0);_.f([_.BM("#snippet-text"),_.l("design:type",HTMLElement)],KI.prototype,"snippetText",void 0);_.f([_.BM("#plain-snippet-text"),_.l("design:type",HTMLElement)],KI.prototype,"plainSnippetText",void 0);_.f([_.BM("#formatted-snippet-text"),_.l("design:type",Object)],KI.prototype,"formattedSnippetText",void 0);
_.f([_.BM("#attributed-snippet-text"),_.l("design:type",Object)],KI.prototype,"attributedSnippetTextEl",void 0);_.f([_.BM("#expand"),_.l("design:type",HTMLElement)],KI.prototype,"expandButton",void 0);_.f([_.BM("#expand-sizer"),_.l("design:type",HTMLElement)],KI.prototype,"expandSizer",void 0);_.f([_.K_("isExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KI.prototype,"isExpandedChanged",null);
_.f([_.OZ("isExpanded","maxLines"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KI.prototype,"updateSnippetContainerMaxHeight",null);_.f([_.OZ("isTruncated","showExpandButton","expandButtonOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KI.prototype,"updateMaskAndExpandButtonOffset",null);
_.f([_.K_("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KI.prototype,"onTextChanged",null);KI=_.f([_.U({is:"ytd-text-inline-expander",disableElementRegistration:!0})],KI);
_.X(KI,"ytd-text-inline-expander",function(){if(b1A===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);b1A=W}W=b1A;return W},{mode:2});var ZO=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return W};
_.A(ZO,_.b);ZO.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
ZO.prototype.handleUpdateDescriptionAction=function(W){if(W=_.Q(W,_.smp))if(W.attributedDescription)this.set("data.attributedDescriptionBodyText",W.attributedDescription);else if(W.description){var P;((P=this.data)==null?0:P.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.pt(W.description)):this.set("data.descriptionBodyText",W.description)}};
_.N1.Object.defineProperties(ZO.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.attributedDescriptionBodyText)||!((P=this.data)==null||!P.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.collapsedLineCount){var P;return(P=this.data)==null?void 0:P.collapsedLineCount}W=_.Wi("web_watch_description_collapsed_default_lines",12);if(_.p("ww_desc_line_page_size_ks"))return W;P=Math.round(_.S9().height*_.Wi("web_watch_description_screen_height_percentage",.5)/20);return Math.max(P,W)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return(x=(W=this.data)==null?void 0:W.descriptionBodyText)!=null?x:(P=this.data)==null?void 0:P.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.sourceAttributions}}});
ZO.prototype.panelContentVisibleChanged=ZO.prototype.panelContentVisibleChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],ZO.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ZO.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ZO.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Boolean)],ZO.prototype,"panelContentVisible",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ZO.prototype,"engagementPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ZO.prototype,"shortsPanel",void 0);_.f([_.BM("#inline-expander"),_.l("design:type",Object)],ZO.prototype,"inlineExpander",void 0);
_.f([_.OZ("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZO.prototype,"panelContentVisibleChanged",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZO.prototype,"hasDescriptionText",null);_.f([_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],ZO.prototype,"collapsedLines",null);
_.f([_.H("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZO.prototype,"descriptionText",null);_.f([_.H("data","data.headerRuns"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZO.prototype,"headerRuns",null);_.f([_.H("data","data.sourceAttributions"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZO.prototype,"sourceAttributions",null);
ZO=_.f([_.U({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],ZO);
_.X(ZO,"ytd-expandable-video-description-body-renderer",function(){if(aQP!==void 0)return aQP;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return aQP=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var U9P;var XhP=_.kl(function(W){var P=W.data;return _.u("factoid-renderer",{class:"ytwFactoidRendererHost"},_.u("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return P().accessibilityText}},_.u("span",{class:"ytwFactoidRendererValue"},_.u(_.mQ,{text:function(){return P().value}})),_.u("span",{class:"ytwFactoidRendererLabel"},_.u(_.mQ,{text:function(){return P().label}}))))},"Lb");_.lq(XhP,"factoid-renderer",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;return _.u("upload-time-factoid-renderer",null,_.u(_.Ea,{data:function(){return P().factoid}},{factoidRenderer:XhP}))},"Mb"),"upload-time-factoid-renderer",{props:{data:_.Ng}});_.lq(_.kl(function(W){var P=W.data;return _.u("view-count-factoid-renderer",null,_.u(_.Ea,{data:function(){return P().factoid}},{factoidRenderer:XhP}))},"Nb"),"view-count-factoid-renderer",{props:{data:_.Ng}});var oA=function(){var W=_.b.apply(this,arguments)||this;W.shortsPanel=!1;W.engagementPanel=!1;W.watchWhileSdp=_.p("shorts_desktop_watch_while_sdp");return W};
_.A(oA,_.b);oA.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"}}}}};
_.N1.Object.defineProperties(oA.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var W;return(W=this.data)==null?void 0:W.channel}}});
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],oA.prototype,"componentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],oA.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],oA.prototype,"shortsPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],oA.prototype,"engagementPanel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],oA.prototype,"watchWhileSdp",void 0);_.f([_.H("shortsPanel","engagementPanel","data.channel"),_.l("design:type",Object),_.l("design:paramtypes",[])],oA.prototype,"showChannelInfo",null);oA=_.f([_.U({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],oA);
_.X(oA,"ytd-video-description-header-renderer",function(){if(U9P!==void 0)return U9P;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return U9P=W},{mode:1});var fQl;var SP=function(){return _.b.apply(this,arguments)||this};
_.A(SP,_.b);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],SP.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],SP.prototype,"noPadding",void 0);_.f([_.c(),_.l("design:type",Object)],SP.prototype,"data",void 0);SP=_.f([_.U({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],SP);
_.X(SP,"ytd-list-item-view-model",function(){if(fQl!==void 0)return fQl;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return fQl=W},{mode:1});var NFz;var lQl;var TFk;var rUp;var uU=function(){var W=_.b.apply(this,arguments)||this;W.adaptiveFullWidth=!1;W.modernButtons=_.p("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return W};
_.A(uU,_.b);uU.prototype.handleSetTimestamp_=function(W){this.data&&this.data.shortUrl&&(_.g(this.hostElement).querySelector("#share-url").value=W.isSet?_.UF(this.data.shortUrl,"t",W.timestamp):this.data.shortUrl)};
uU.prototype.handleSignalActionCopyShareUrl_=function(W,P){(_.p("killswitch_copy_link_target_check")||_.g(this.hostElement).querySelector("#copy-button")===P)&&this.copyUrlToClipboard()};
uU.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.g(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
uU.prototype.computeStyle_=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],uU.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uU.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.l("design:type",String)],uU.prototype,"rendererStyle",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uU.prototype,"adaptiveFullWidth",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uU.prototype,"modernButtons",void 0);_.f([_.c(),_.l("design:type",Object)],uU.prototype,"buttonOverrides",void 0);uU=_.f([_.jd({is:"yt-copy-link-renderer",disableElementRegistration:!0})],uU);
_.X(uU,"yt-copy-link-renderer",function(){if(rUp===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;TFk===void 0&&(TFk=document.createElement("template"));var I=TFk;x.call(P,I.content.cloneNode(!0),W.content.firstChild);rUp=W}W=rUp;return W},{mode:2});_.Ad("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var da=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return W};
_.A(da,_.b);_.J=da.prototype;_.J.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var W=_.FY().resolve(_.Rl(_.jK));W&&(this.keyboardFocused=W.isKeyBoardInUse())}};
_.J.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.J.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}};
_.J.onChange_=function(){if(this.data){var W=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;W&&this.ytComponentBehavior.resolveCommand(W);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.J.handleUpdateToggleAction_=function(W){(W=_.Q(W,A6Z))&&this.data&&W.targetId==this.data.targetId&&this.set("data.toggled",W.toggled)};
_.J.toBoolean_=function(W){return!!W};
_.J.reset=function(){};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("data-changed",this.data))};
_.J.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
da.prototype.dataChangedForBinding=da.prototype.dataChangedForBinding;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],da.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],da.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],da.prototype,"data",void 0);_.f([_.c({computed:"computeDescription_(data.*)"}),_.l("design:type",Object)],da.prototype,"description_",void 0);_.f([_.c({value:function(){return!!_.FY().resolve(_.Rl(_.jK))&&_.p("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.l("design:type",Boolean)],da.prototype,"useKeyboardFocused",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],da.prototype,"keyboardFocused",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],da.prototype,"dataChangedForBinding",null);da=_.f([_.jd({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],da);
_.X(da,"yt-toggle-form-field-renderer",function(){if(lQl===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;NFz===void 0&&(NFz=document.createElement("template"));var I=NFz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);lQl=W}W=lQl;return W},{mode:2});var i1w;var R7z;var sI=function(){var W=_.b.apply(this,arguments)||this;W.isDarkTheme=!1;W.isSearch=!1;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.noTopMargin=_.p("kevlar_watch_no_top_margin");W.maskFade=_.p("web_watch_chips_mask_fade");W.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 W};
_.A(sI,_.b);_.J=sI.prototype;_.J.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}}}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.J.dataChanged=function(){var W=this.getSelectedIndex();if(W>0)this.selected=W;else{this.selected=0;var P,x;(P=this.ytScrollableChipCloudBehavior)==null||(x=P.reset)==null||x.call(P)}};
_.J.getSelectedIndex=function(){var W;if((W=this.data)==null||!W.chips)return-1;W=-1;for(var P,x=0;x<((P=this.data)==null?void 0:P.chips.length);x++){var I=void 0,O=void 0;if((I=this.data)==null?0:(O=I.chips[x].chipCloudChipRenderer)==null?0:O.isSelected){W=x;break}}return W};
_.J.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.Xm(W,W.setContainerWidthDiff);WR(this.ytScrollableChipCloudBehavior)};
_.J.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.J.handleRelatedChipCommand=function(W,P){W=this.JSC$14201_chipsSelector.indexOf(P);W!==-1&&this.JSC$14201_chipsSelector.selectIndex(W)};
_.J.handleChipCloudChipSelectAction=function(W){W=this.JSC$14201_chipsSelector.indexOf(W);W>-1&&this.JSC$14201_chipsSelector.selectIndex(W)};
_.J.handleChipCloudChipDeselectAction=function(){var W=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14201_chipsSelector&&((W==null?0:W.continuationCommand)?_.Iu(this.hostElement,[W]):(W==null?0:W.searchEndpoint)?this.ytComponentBehavior.resolveCommand(W):W&&_.OL(this.hostElement,[W],this.hostElement),this.JSC$14201_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.J.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
sI.prototype.onResize=sI.prototype.onResize;sI.prototype.dataChanged=sI.prototype.dataChanged;sI.prototype.isSearchChanged=sI.prototype.isSearchChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],sI.prototype,"actionHandlerBehavior",void 0);
_.f([_.h(_.Db),_.l("design:type",Object)],sI.prototype,"ironResizableBehavior",void 0);_.f([_.h(),_.l("design:type",Lq)],sI.prototype,"ytScrollableChipCloudBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],sI.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sI.prototype,"data",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],sI.prototype,"selected",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sI.prototype,"isDarkTheme",void 0);_.f([_.c({value:160}),_.l("design:type",Number)],sI.prototype,"scrollDistance",void 0);_.f([_.c(),_.l("design:type",Object)],sI.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sI.prototype,"darkerDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sI.prototype,"noTopMargin",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sI.prototype,"maskFade",void 0);_.f([_.BM("#chips"),_.l("design:type",Object)],sI.prototype,"JSC$14201_chipsSelector",void 0);_.f([_.OZ("isSearch"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sI.prototype,"isSearchChanged",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sI.prototype,"dataChanged",null);
_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sI.prototype,"onResize",null);sI=_.f([_.jd({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],sI);
_.X(sI,"yt-chip-cloud-renderer",function(){if(R7z===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;i1w===void 0&&(i1w=document.createElement("template"));var I=i1w;x.call(P,I.content.cloneNode(!0),W.content.firstChild);R7z=W}W=R7z;return W},{mode:2});var F6l,qqm=function(){return F6l!==void 0?F6l:F6l=document.createElement("template")};
document.head.appendChild(qqm().content);var L6d;var Wbd=document.head,PTp=Wbd.appendChild,xPi;if(L6d===void 0){var IrA=document.createElement("template");_.G(IrA,"");IrA.content.insertBefore(qqm().content.cloneNode(!0),IrA.content.firstChild);L6d=IrA}xPi=L6d;PTp.call(Wbd,xPi.content);var OvZ=_.kl(function(W){var P=W.data;return _.u("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.u("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.u("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.u(_.V,{cond:function(){return _.LC(P().image)},
then:function(x){return _.u("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.u(_.bq,{data:x,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.u("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.u(_.mQ,{text:function(){return P().title}})),_.u("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.u(_.mQ,{text:function(){return P().subtitle}})))),_.u(_.V,{cond:function(){var x;
return(x=P())==null?void 0:x.hasBottomDivider},
then:function(){return _.u("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ob");var JPd=_.kl(function(W){var P=W.data;return _.u("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.u(_.Ea,{data:function(){var x;return(x=P().offerPlanDetailsItem)!=null?x:[]}},{offerPlanDetailsItemViewModel:function(x){return _.u("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.u(OvZ,{data:x.data}))}})),_.u("div",null,_.u(_.V,{cond:function(){return P().hasBottomDivider},
then:function(){return _.u("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.u("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.u("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Pb");var BRb=_.kl(function(W){var P=W.data;W=_.n(_.YV(!1,void 0,"SpEGQd"));var x=W.next().value,I=W.next().value,O=_.yB(function(){I(!x());return!1}),B=function(){var Y;
return(Y=P().offerPlanDetailsContainer)!=null?Y:[]};
return _.u("lp-complex-offer-card-details-view-model",null,_.u("div",null,_.u(_.V,{cond:function(){return x()},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.u("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":O,"aria-expanded":x},_.u(_.mQ,{text:function(){return P().expandedTitle}})),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.u(_.Ea,{data:B},{offerPlanDetailsContainerViewModel:function(Y){return _.u("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.u(JPd,{data:Y.data}))}})),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.u(_.mQ,{text:function(){return P().legalText}})))},
else:function(){return _.u("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":O,"aria-expanded":x},_.u(_.mQ,{text:function(){return P().collapsedTitle}}),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.u(_.Sy,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Qb");var nhz=_.kl(function(W){var P=W.data;return _.u("lp-complex-offer-card-option-view-model",null,_.u("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.u(_.V,{cond:function(){return P().topDividerText},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.u(_.mQ,{text:function(){return P().topDividerText}}))))}}),_.u(_.V,{cond:function(){return P().planPricingPrimary},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.u(_.mQ,{text:function(){return P().planPricingPrimary}}))}}),_.u(_.V,{cond:function(){return P().planPricingSecondary},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.u(_.mQ,{text:function(){return P().planPricingSecondary}}))}}),_.u(_.V,{cond:function(){return P().primaryButton},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.u(_.Ea,{data:function(){return P().primaryButton}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Rb");var Ypc=_.kl(function(W){var P=W.data;var x=function(){var B;return((B=P())==null?void 0:B.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var I={},O={};return _.u("ytm-lp-complex-offer-card-view-model",null,_.u("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.u("div",{class:_.O4((W.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=x,W),"ytmLpComplexOfferCardViewModelCardContainer")},_.u(_.V,{cond:function(){var B;return(B=P())==null?void 0:B.bannerText},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.u("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.u(_.mQ,{text:function(){return P().bannerText}})))}}),_.u(_.V,{cond:function(){return _.LC(P().logo)},
then:function(B){var Y={};return _.u("div",{class:_.O4((Y.ytmLpComplexOfferCardViewModelLogoAlignLeft=x,Y),"ytmLpComplexOfferCardViewModelLogo")},_.u(_.bq,{data:B,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.u("div",{class:_.O4((I.ytmLpComplexOfferCardViewModelTitleAlignLeft=x,I),"ytmLpComplexOfferCardViewModelTitle")},_.u(_.mQ,{text:function(){return P().title}})),_.u(_.V,{cond:function(){var B;
return(B=P())==null?void 0:B.subtitle},
then:function(){var B={};return _.u("div",{class:_.O4((B.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=x,B),"ytmLpComplexOfferCardViewModelSubtitle")},_.u(_.mQ,{text:function(){return P().subtitle}}))}}),_.u(_.V,{cond:function(){return P().planPricingPrimary},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.u(_.mQ,{text:function(){return P().planPricingPrimary}}))}}),_.u(_.V,{cond:function(){return P().planPricingSecondary},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.u(_.mQ,{text:function(){return P().planPricingSecondary}}))}}),_.u(_.V,{cond:function(){return P().purchaseButton},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.u(_.Ea,{data:function(){return P().purchaseButton}},{buttonViewModel:function(B){return _.u(_.cq,{data:B.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.u(_.V,{cond:function(){var B;
return(B=P())==null?void 0:B.offerOptions},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.u(_.Ea,{data:function(){return P().offerOptions}},{lpComplexOfferCardOptionViewModel:nhz}))}}),_.u("div",{class:_.O4((O.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=x,O),"ytmLpComplexOfferCardViewModelLegalText")},_.u(_.mQ,{text:function(){return P().legalText}})),_.u(_.V,{cond:function(){var B;
return(B=P())==null?void 0:B.offerCardDetails},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.u(_.Ea,{data:function(){return P().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:BRb}))}}))))},"Sb");var yPZ=_.kl(function(W){var P=W.data;var x=function(){var Y;return((Y=P())==null?void 0:Y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var I={},O={},B={};return _.u("ytm-lp-complex-offer-card-section-view-model",null,_.u("div",{class:_.O4("ytmLpComplexOfferCardSectionViewModelHost")},_.u("div",{class:_.O4((W.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=x,W),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.u("div",{class:_.O4((I.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=x,I),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.u("h2",{class:_.O4((O.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
x,O),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.u(_.mQ,{text:function(){return P().title}}))),_.u(_.V,{cond:function(){var Y;
return(Y=P())==null?void 0:Y.subtitle},
then:function(){var Y={},K={};return _.u("div",{class:_.O4((Y.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=x,Y),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.u("div",{class:_.O4((K.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=x,K),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.u(_.mQ,{text:function(){return P().subtitle}})))}}),_.u("div",{class:_.O4((B.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=x,B),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.u(_.Ea,{data:function(){var Y;
return(Y=P().offerPlans)!=null?Y:[]}},{lpComplexOfferCardViewModel:function(Y){return _.u("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.u(Ypc,{data:Y.data}))}})))))},"Tb");_.vQ=URm.getInstance();var Kbc=_.kl(function(W){return _.u("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":W.shouldAriaHideContent},_.u("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:W.questionId},_.u(_.mQ,{text:W.question})))},"Ub"),Zvl=_.kl(function(W){var P=W.data;
var x=W.themeOverride;W=_.n(_.YV(!1,void 0,"ljTVPd"));var I=W.next().value,O=W.next().value;W=_.yB(function(){O(!I());return!1});
var B=function(){return I()?"EXPAND_LESS":"EXPAND_MORE"},Y=("faq-container"+_.$1(_.vQ)).toString(),K="faq-question-and-answers-section-question"+_.$1(_.vQ),Z={},d={};
return _.u("faq-entry-view-model-c3",null,_.u("div",{class:_.O4("yt-lp-faq-entry-view-model",(Z["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return x==null?void 0:x().useDarkTheme},Z))},_.u("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":W,role:"button","aria-expanded":I,"aria-labelledby":K.toString(),"tab-index":"0"},_.u(Kbc,{question:function(){return P().question},
questionId:K,shouldAriaHideContent:!0}),_.u(_.V,{cond:function(){return I()!==void 0},
then:function(){return _.u("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.u(_.Sy,{icon:B,ariaHidden:!0}),_.u("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.u("div",{class:_.O4("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(d["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!I()},d))},_.u("div",{id:Y},_.u(_.sV,{each:function(){return P().answers||[]}},function(v){return _.u("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.u(_.mQ,{text:v}))})))))},"Vb");
Zvl.idomCompat=!0;var ohA=_.kl(function(W){var P=W.data;var x=W.themeOverride;W={};return _.u("lp-faq-section-view-model-c3",null,_.u("div",{class:_.O4("yt-lp-faq-section-view-model",(W["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return P().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(x==null||!x().useDarkTheme)},W))},_.u("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.u(_.V,{cond:function(){return P().header},
then:function(I){return _.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.u(_.mQ,{text:I}))}}),_.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.u(_.Ea,{data:function(){return P().faqs}},{faqEntryViewModel:function(I){return _.u(Zvl,{data:I.data,
themeOverride:x})}})),_.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.u(_.sV,{each:function(){return P().footers||[]}},function(I){return _.u(_.mQ,{text:I})})),_.u(_.V,{cond:function(){return P().legal},
then:function(I){return _.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.u(_.mQ,{text:I}))}}))))},"Wb");
ohA.idomCompat=!0;var SpZ=_.kl(function(W){var P=W.data;var x=W.themeOverride;_.AQ(function(){var Y=P().gtmId;Y&&_.db(Y,_.$$("GL",""))});
var I={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,K,Z;return(Z=(Y=P().logo)==null?void 0:(K=Y.accessibilityData)==null?void 0:K.label)!=null?Z:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},O=_.FY().resolve(_.Rl(_.hF)),B=function(){return O&&O()||(x==null?void 0:x().useDarkTheme)};
return _.u("lp-header-section-view-model",null,_.u("div",{class:function(){var Y=P().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",K=P().marginType==="LP_SECTION_MARGIN_TYPE_TOP",Z=x==null?void 0:x().useDarkTheme,d=["lp-header-section-view-model"];Y&&d.push("lp-header-section-view-model--ptc-layout-type");K&&d.push("lp-header-section-view-model__lp-header-section-margin");Z&&d.push("lp-header-section-view-model--premium-force-dark-mode");return d.join(" ")}},_.u(_.V,{cond:function(){return P().logo},
then:function(){return _.u("div",null,_.u(_.V,{cond:B,then:function(){return _.u(_.V,{cond:function(){var Y;return(Y=P().logo)==null?void 0:Y.imageDark},
then:function(Y){return _.u(_.bq,Object.assign({},{data:Y},I))}})},
else:function(){return _.u(_.V,{cond:function(){var Y;return(Y=P().logo)==null?void 0:Y.imageLight},
then:function(Y){return _.u(_.bq,Object.assign({},{data:Y},I))}})}}))}}),_.u(_.V,{cond:function(){return P().title},
then:function(Y){return _.u("div",{class:"lp-header-section-view-model__lp-header-title"},_.u(_.mQ,{text:Y}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.u(_.V,{cond:function(){return P().subtitles},
then:function(Y){return _.u(_.sV,{each:Y},function(K){return _.u("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.u(_.mQ,{text:K}))})}})),_.u(_.V,{cond:function(){return P().additionalInfo},
then:function(Y){return _.u("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.u(_.mQ,{text:Y}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.u(_.V,{cond:function(){return P().primaryButton},
then:function(Y){return _.u("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.u(_.Ea,{data:Y},{buttonViewModel:_.cq}))}}),_.u(_.V,{cond:function(){return P().secondaryButton},
then:function(Y){return _.u("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.u(_.Ea,{data:Y},{buttonViewModel:_.cq}))}})),_.u(_.V,{cond:function(){return P().otherOffersInfo},
then:function(Y){return _.u("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.u(_.mQ,{text:Y}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.u(_.V,{cond:function(){return P().billingInfo},
then:function(Y){return _.u(_.sV,{each:Y},function(K){return _.u("div",null,_.u(_.mQ,{text:K}))})}}))))},"Xb");
SpZ.idomCompat=!0;var ugd=_.kl(function(W){var P=W.data;var x=_.a7(W.themeOverride,{useDarkTheme:!1});W={};W=_.O4("ytm-lp-headline-section-view-model",(W["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return x().useDarkTheme},W));
return _.u("lp-headline-section-view-model",null,_.u("div",{class:W},_.u("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.u(_.mQ,{text:function(){return P().title}})),_.u(_.V,{cond:function(){return P().subtitle},
then:function(I){return _.u("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.u(_.mQ,{text:I}))}})))},"Yb");var dPp=_.kl(function(W){var P=W.data;var x=W.themeOverride;var I=_.FY().resolve(_.Rl(_.hF)),O=function(){return I&&I()||(x==null?void 0:x().useDarkTheme)},B=function(){var d,v;
var m=O()?(d=P().textBackgroundImage)==null?void 0:d.imageDark:(v=P().textBackgroundImage)==null?void 0:v.imageLight;return vqm((m==null?void 0:m.sources)||[])},Y=function(){var d,v;
return O()?(d=P().featureImage)==null?void 0:d.imageDark:(v=P().featureImage)==null?void 0:v.imageLight},K=function(){return P().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},Z=function(){var d,v;
return O()?(d=P().logo)==null?void 0:d.imageDark:(v=P().logo)==null?void 0:v.imageLight};
return _.u("ytm-lp-large-feature-section-view-model",null,_.u("div",{class:function(){var d=P().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",v=P().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",m=(P().index||0)%2===1,t=x==null?void 0:x().useDarkTheme,C=["yt-lp-large-feature-section-view-model"];d?C.push("yt-lp-large-feature-section-view-model--music-feature-type"):v?C.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):m||C.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
t&&C.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return C.join(" ")}},_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.u(_.V,{cond:Y,
then:function(){return _.u(_.bq,{data:function(){return Y()},
alt:function(){var d,v,m;return(m=(d=P().featureImage)==null?void 0:(v=d.accessibilityData)==null?void 0:v.label)!=null?m:""},
contentMode:K})}})),_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var d;return((d=B())==null?0:d.url)?"background-image: url("+_.my(B().url)+");":""}},_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.u(_.V,{cond:Z,
then:function(){return _.u(_.bq,{data:function(){return Z()},
alt:function(){var d,v,m;return(m=(d=P().logo)==null?void 0:(v=d.accessibilityData)==null?void 0:v.label)!=null?m:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.u(_.V,{cond:function(){return P().eyebrowText},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.u(_.mQ,{text:function(){return P().eyebrowText}}))}}),_.u(_.V,{cond:function(){return P().title},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.u(_.mQ,{text:function(){return P().title}}))}}),_.u(_.V,{cond:function(){return P().subtitles},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.u(_.sV,{each:function(){return P().subtitles||[]}},function(d){return _.u(_.mQ,{text:d})}))}})))))},"Zb");
dPp.idomCompat=!0;var s4M=_.kl(function(W){return _.u("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.u("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.u(_.Sy,{icon:function(){var P;return(P=W.data())==null?void 0:P.iconType},
className:function(){var P;return((P=W.data())==null?void 0:P.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.u("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.u(_.mQ,{text:function(){var P;
return(P=W.data())==null?void 0:P.text}}))))},"$b");var vhA=_.kl(function(W){W=_.bw(W,{config:void 0,themeOverride:void 0});var P=W.data,x=W.config,I=W.themeOverride;W={};W=_.O4("ytm-lp-offer-card-option-view-model",(W["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var Z;return(Z=I())==null?void 0:Z.useDarkTheme},W));
var O=_.yB(function(){var Z,d;(Z=x())==null||(d=Z.handleRadioButtonClick)==null||d.call(Z,P());return!1}),B=function(){var Z;
return(Z=x())==null?void 0:Z.shouldDisplayRadioButton},Y=_.yB(function(){if(B()){var Z,d;
(Z=x())==null||(d=Z.handleRadioButtonClick)==null||d.call(Z,P())}return!1}),K=function(){var Z;
return(Z=P().featureListItems)!=null?Z:[]};
return _.u("ytm-lp-offer-card-option-view-model",null,_.u("div",{class:W,"on:click":Y},_.u(_.V,{cond:B,then:function(){return _.u("div",null,_.u("input",{type:"radio","on:click":O,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var Z;return!((Z=x())==null||!Z.isOptionSelected)}}))}}),_.u("div",null,_.u("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.u(_.mQ,{text:function(){return P().eyebrowText}})),_.u("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.u(_.mQ,{text:function(){return P().title}})),_.u("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.u(_.mQ,{text:function(){return P().subtitle}})),_.u(_.V,{cond:function(){return K().length>0},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.u(_.Ea,{data:K},{lpFeatureListItemViewModel:s4M}))}}),_.u("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.u(_.mQ,{text:function(){return P().description}})))))},"ac");
vhA.idomCompat=!0;var mPi=_.kl(function(W){var P=W.data;var x=W.themeOverride;W=_.n(_.Zh(function(){var B,Y=(B=P().offerOptions)==null?void 0:B[0];return _.Q(Y,hKk)||{}}));
var I=W.next().value,O=W.next().value;W={};return _.u("ytm-lp-offer-card-view-model",null,_.u("div",{class:_.O4("ytm-lp-offer-card-view-model",(W["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(x==null||!x().useDarkTheme)},W))},_.u("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.u(_.V,{cond:function(){return P().titleIconType},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.u(_.Sy,{icon:function(){var B;return((B=P().titleIconType)==null?void 0:B.toString())||""}}))}}),_.u("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.u(_.mQ,{text:function(){return P().title}})),_.u(_.Ea,{data:function(){return P().titleBadge}},{badgeViewModel:function(B){return _.u("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.u(_.N0,{data:B.data}))}})),_.u("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.u(_.Ea,{data:function(){return P().offerOptions}},{lpOfferCardOptionViewModel:function(B){var Y=B.data;
return _.u(_.qS,null,_.u("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.u(vhA,{data:Y,config:function(){var K;return{shouldDisplayRadioButton:(P().offerOptions||[]).length>1,isOptionSelected:Y().id===((K=I())==null?void 0:K.id),handleRadioButtonClick:function(Z){return void O(Z)}}},
themeOverride:x}))}})),_.u("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.u(_.Ea,{data:function(){var B;
return(B=I())==null?void 0:B.purchaseButtonOverride}},{buttonViewModel:_.cq}))))},"bc");
mPi.idomCompat=!0;var VCi=_.kl(function(W){var P=W.data;var x=W.themeOverride;W={};W=_.O4("ytm-lp-offer-card-section-view-model",(W["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var I;return x==null?void 0:(I=x())==null?void 0:I.useDarkTheme},W));
return _.u("ytm-lp-offer-card-section-view-model",null,_.u("div",{class:W},_.u(_.V,{cond:function(){return P().title!==void 0},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.u("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.u(_.mQ,{text:function(){return P().title}})),_.u(_.V,{cond:function(){return P().subtitle},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.u(_.mQ,{text:function(){return P().subtitle}}))}}))}}),_.u("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.u(_.Ea,{data:function(){return P().offerCards}},{lpOfferCardViewModel:function(I){return _.u("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.u(mPi,{data:I.data,
themeOverride:x}))}})),_.u(_.V,{cond:function(){return P().footer},
then:function(){return _.u("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.u(_.mQ,{text:function(){return P().footer}}))}})))},"cc");var tCl=_.kl(function(W){var P=W.data;return _.u("lp-offer-table-cell-content-view-model",null,_.u("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.u(_.tQ,null,_.u(_.mk,{when:function(){return P().title}},function(){return _.u(_.mQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return P().title}})}),_.u(_.mk,{when:function(){return P().subTitle}},function(){return _.u(_.mQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return P().subTitle}})}),_.u(_.mk,{when:function(){return P().featureDescription}},function(){return _.u(_.mQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return P().featureDescription}})}),_.u(_.mk,{when:function(){return P().description}},function(){return _.u(_.mQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return P().description}})}),_.u(_.mk,{when:function(){return P().iconType}},function(){return _.u("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.u(_.Sy,{icon:function(){return P().iconType.toString()}}))}),_.u(_.mk,{when:function(){return P().purchaseButton}},function(){return _.u(_.Ea,{data:function(){return P().purchaseButton}},{buttonViewModel:function(x){return _.u("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.u(_.cq,{data:x.data}))}})}),_.u(_.mk,{when:function(){return P().note}},function(){return _.u(_.mQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return P().note}})}),_.u(_.mk,{when:function(){return P().featureDetail}},function(){return _.u(_.mQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return P().featureDetail}})}),_.u(_.mk,{when:function(){return P().badge}},function(){return _.u(_.Ea,{data:function(){return P().badge}},{badgeViewModel:_.N0})}))))},"dc");
tCl.idomCompat=!0;var pjm=_.kl(function(W){var P=W.data;return _.u("lp-offer-table-cell-view-model",null,_.u("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(P().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.u(_.Ea,{data:function(){return P().contents}},{lpOfferTableCellContentViewModel:tCl})))},
"ec");
pjm.idomCompat=!0;var j4m=_.kl(function(W){var P=W.data;var x=W.lpTableIsFirstRow;var I=W.lpTableIsLastRow;var O=function(){return(x==null?0:x())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},B=function(){return(x==null?0:x())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(I==null?0:I())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.u("ytm-lp-offer-table-row-view-model",null,_.u("div",{class:"yt-lp-offer-table-row-view-model"},_.u(_.Ea,{data:function(){return P().rowHeaderCell}},{lpOfferTableCellViewModel:function(Y){return _.u("div",{class:O},_.u(pjm,{data:Y.data}))}}),_.u(_.Ea,{data:function(){return P().contentCells}},{lpOfferTableCellViewModel:function(Y){return _.u("div",{class:B},_.u(pjm,{data:Y.data}))}})))},"fc");
j4m.idomCompat=!0;var Q4k=_.kl(function(W){var P=W.data;var x=W.themeOverride;var I=_.FY().resolve(_.Rl(_.hF)),O=function(){return _.Q(P().logo,TxM)||{}};
W={};return _.u("ytm-lp-offer-table-section-view-model",null,_.u("div",{class:"yt-lp-offer-table-view-model"},_.u(_.V,{cond:function(){var B,Y;return I&&I()||(x==null?0:x().useDarkTheme)?(B=O())==null?void 0:B.imageDark:(Y=O())==null?void 0:Y.imageLight},
then:function(B){return _.u(_.bq,{data:B,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,K,Z;return(Z=(Y=O())==null?void 0:(K=Y.accessibilityData)==null?void 0:K.label)!=null?Z:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.u(_.mQ,{text:function(){return P().title}})),_.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.u(_.mQ,{text:function(){return P().subtitle}})),_.u(_.V,{cond:function(){return P().disclaimers},
then:function(B){return _.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.u(_.sV,{each:B},function(Y){return _.u("div",null,_.u(_.mQ,{text:Y}))}))}}),_.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.u(_.Ea,{data:function(){return P().rows}},{lpOfferTableRowViewModel:function(B,Y){return _.u(j4m,{data:B.data,
lpTableIsFirstRow:function(){return Y()===0},
lpTableIsLastRow:function(){return Y()===P().rows.length-1}})}})),_.u("div",{class:_.O4((W["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return P().hasFooterBackground},W))},_.u(_.V,{cond:function(){return P().footer},
then:function(){return _.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.u(_.mQ,{text:function(){return P().footer}}))}}),_.u(_.V,{cond:function(){return P().footerTitle},
then:function(){return _.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.u(_.mQ,{text:function(){return P().footerTitle}}))}}),_.u(_.V,{cond:function(){return P().footerDescription},
then:function(){return _.u("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.u(_.mQ,{text:function(){return P().footerDescription}}))}}))))},"gc");
Q4k.idomCompat=!0;var CTc=_.kl(function(W){var P=W.data;var x=W.themeOverride;var I=_.FY().resolve(_.Rl(_.hF)),O=function(){var K;return x==null?void 0:(K=x())==null?void 0:K.useDarkTheme},B=function(){var K,Z;
return I&&I()||O()?(K=P().image)==null?void 0:K.imageDark:(Z=P().image)==null?void 0:Z.imageLight};
W={};W=_.O4("ytm-lp-small-feature-section-view-model",(W["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=O,W));var Y=function(){var K,Z,d;return(d=(K=P().image)==null?void 0:(Z=K.accessibilityData)==null?void 0:Z.label)!=null?d:""};
return _.u("ytm-lp-small-feature-section-view-model",{class:W},_.u(_.V,{cond:function(){return B()&&!A4C},
then:function(){return _.u("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.u(_.bq,{data:function(){return B()},
alt:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.u("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.u("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.u(_.V,{cond:function(){return P().title},
then:function(K){return _.u(_.mQ,{text:K})}})),_.u("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.u(_.mQ,{text:function(){return P().description}}))))},"hc");
CTc.idomCompat=!0;var APi=_.kl(function(W){var P=W.data;var x=W.themeOverride;W={};return _.u("ytm-lp-small-feature-section-group-view-model",null,_.u("div",{class:_.O4("ytm-lp-small-feature-section-group-view-model",(W["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(x==null||!x().useDarkTheme)},W))},_.u("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.u(_.Ea,{data:function(){return P().smallFeatures}},{lpSmallFeatureSectionViewModel:function(I){return _.u("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.u(CTc,{data:I.data,
themeOverride:x}))}}))))},"ic");
APi.idomCompat=!0;_.lq(_.kl(function(W){var P=W.data;var x=function(){return P().forcedTheme==="USER_INTERFACE_THEME_DARK"},I=function(){return P().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},O=function(){var Y="",K,Z;
var d=_.FY().resolve(_.Rl(_.hF));d=x()||(d==null?0:d())?(K=P().themedImageViewModel)==null?void 0:K.imageDark:(Z=P().themedImageViewModel)==null?void 0:Z.imageLight;(K=vqm((d==null?void 0:d.sources)||[]))&&K.url&&(Y=I()?"background-image: linear-gradient(to bottom, transparent, "+(P().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.my(K.url)+");":"background-image: url("+_.my(K.url)+");");return Y},B=function(){return{useDarkTheme:x()}};
W={};return _.u("yt-section-group-view-model",null,_.u("div",{class:_.O4("yt-lp-section-group-view-model",(W["yt-lp-section-group-view-model--premium-force-dark-mode"]=x,W["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return P().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W))},_.u(_.V,{cond:function(){return O().length},
then:function(){var Y={};return _.u("div",{class:_.O4("yt-lp-section-group-view-model__bg-image",(Y["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=I,Y)),style:O})}}),_.u("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.u(_.Ea,{data:function(){return P().sections}},{lpFaqSectionViewModel:function(Y){return _.u(ohA,{data:Y.data,
themeOverride:B})},
lpHeaderSectionViewModel:function(Y){return _.u(SpZ,{data:Y.data,themeOverride:B})},
lpHeadlineSectionViewModel:function(Y){return _.u(ugd,{data:Y.data,themeOverride:B})},
lpLargeFeatureSectionViewModel:function(Y){return _.u(dPp,{data:Y.data,themeOverride:B})},
lpOfferCardSectionViewModel:function(Y){return _.u(VCi,{data:Y.data,themeOverride:B})},
lpComplexOfferCardSectionViewModel:function(Y){return _.u(yPZ,{data:Y.data})},
lpOfferTableSectionViewModel:function(Y){return _.u(Q4k,{data:Y.data,themeOverride:B})},
lpSmallFeatureSectionGroupViewModel:function(Y){return _.u(APi,{data:Y.data,themeOverride:B})}}))))},"jc"),"yt-section-group-view-model",{props:{data:_.cv}});var n0C=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.z8i=_.kl(function(W){function P(){if(n0C.has(W.data().displayType)){var d=!I(),v;if((v=W.disableDeselection)==null||!v.call(W)||d){W.data().selected=d;v=Object.assign({},Y(),{selected:d});K(v);var m;(m=W.callback)==null||m.call(W,v,d)}}}
var x=_.fa(),I=function(){var d,v;return!!(((d=W.selected)==null?void 0:d.call(W))!==void 0?(v=W.selected)==null?0:v.call(W):Y().selected)},O=_.n(_.Zh(W.data)),B=O.next().value;
O=O.next().value;var Y=B,K=O,Z=_.dp(Bzm,function(){return W.data().chipEntityKey||""});
return _.u("chip-view-model",{class:"ytChipViewModelHost",el:x},_.u(Y9P,{data:function(){var d,v=Object.assign({},Y(),{selected:I()}),m=Z(),t=(d=W.disableDeselection)==null?void 0:d.call(W);a:switch(v.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":d=1;break a;default:d=0}return{text:(m==null?void 0:m.text)||v.text,state:v.disabled?1:v.selected?0:2,type:d,onTap:YOC(v,x,P,t),accessibilityLabel:v.accessibilityLabel||v.text}}}))},"kc");
_.z8i.idomCompat={callbacks:{callback:!0}};_.GHM=_.kl(function(W){var P=_.dp(Jid,function(){var Y;return(Y=W.data())==null?void 0:Y.chipBarStateEntityKey}),x=function(){return W.data().disableDeselection},I=_.n(_.Zh(function(){var Y;
if(((Y=P())==null?void 0:Y.selectedIndex)!=void 0)return P().selectedIndex;var K,Z;Y=_.n(((K=W.data())==null?void 0:(Z=K.chips)==null?void 0:Z.entries())||[]);for(K=Y.next();!K.done;K=Y.next()){K=_.n(K.value);Z=K.next().value;K=K.next().value;var d=void 0;if((d=_.Q(K,_.cA))==null?0:d.selected)return Z}return-1})),O=I.next().value,B=I.next().value;
return _.u("chip-bar-view-model",{class:_.O4("ytChipBarViewModelHost",W.className),role:"tablist"},_.u(_.Ea,{data:function(){return W.data().chips}},{chipViewModel:function(Y,K){return _.u("div",{class:"ytChipBarViewModelChipWrapper"},_.u(_.z8i,{data:Y.data,
selected:function(){return K()===O()},
callback:function(Z,d){Z=!!d;d=K();B(Z?d:-1);var v,m=(v=W.data())==null?void 0:v.chipBarStateEntityKey;m&&Z&&_.cM(_.mG("chipBarStateEntity",m,{key:m,selectedIndex:d}))},
disableDeselection:W.disableDeselection||x}))}}))},"lc");_.lq(_.GHM,"chip-bar-view-model",{props:{data:_.Ng,className:_.Ng,disableDeselection:_.Ng}});_.Ehd=_.kl(function(W){var P=W.data;W={};return _.u("divider-view-model",{class:_.O4("divider-view-model-wiz",(W["divider-view-model-wiz__inset-thin-padding"]=function(){return P().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},W))},_.u("div",{class:_.O4("divider-view-model-wiz__base-divider",function(){return yim(P().dividerStyle)}),
style:_.oP({"background-color":function(){return P().backgroundColor?_.j9(P().backgroundColor):void 0}})}))},"mc");
_.Ehd.idomCompat=!0;_.lq(_.Ehd,"divider-view-model",{props:{data:_.cv}});var $A=new Map,Mz=new Map,o0m=0,wn;var V6S=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],jaA={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var ghm,DP3;ghm=function(W){return function(P){return function(){return String(P())+W}}};
_.mq=ghm("px");DP3=ghm("s");var $Pk=_.kl(function(W){function P(N){return function(){var Io=C().numItemsPerGridRow,F=N()*Io;Io=F+Io;var nm,pm;return(pm=(nm=I().contents)==null?void 0:nm.slice(F,Io))!=null?pm:[]}}
var x=_.bw(W,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),I=x.data,O=x.layoutContainerWidth,B=x.shouldUseOwnContainerSize,Y=x.marginSettings;x=_.n(_.YV(!0,void 0,"qgr2Je"));var K=x.next().value,Z=x.next().value,d=function(){var N,Io=(N=_.Q(I().showMoreButton,_.gp))==null?void 0:N.trackingParams;Io&&_.Kg(_.YY(),Io);Z(!1)},v=function(){var N,Io=(N=_.Q(I().showLessButton,_.gp))==null?void 0:N.trackingParams;
Io&&_.Kg(_.YY(),Io);Z(!0)};
x=_.fa();var m=_.CQo(x,{canHaveZeroSize:!1}),t=function(){var N;return(N=I().contentAspectRatio)!=null?N:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},C=_.Sj(function(){var N=_.Fd({containerWidth:B()&&m.width()>0?m.width()||O():O(),
sizing:"EXTRA_COMPACT",marginSettings:Y(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:N.maxContainerWidth,numItemsPerGridRow:N.numItems,contentPadding:B()?N.margin:N.contentMargin,itemWidth:N.itemWidth,itemMargin:N.gutter/2}},void 0,"pqVdjc"),z=function(){if(I().enableVerticalExpansion){if(K())return 1;
var N,Io,F=(Io=(N=I().contents)==null?void 0:N.length)!=null?Io:0;return Math.ceil(F/C().numItemsPerGridRow)}return C().numItemsPerGridRow<=2?2:1},D=function(){return I().enableVerticalExpansion&&I().showLessButton&&!K()&&z()>1},w=function(){var N,Io;
return I().enableVerticalExpansion&&I().showMoreButton&&K()&&((Io=(N=I().contents)==null?void 0:N.length)!=null?Io:0)>C().numItemsPerGridRow},a=function(){return!D()},k=function(){return!w()},T={};
return _.u("grid-shelf-view-model",{class:_.O4("ytGridShelfViewModelHost",W.className,(T.ytGridShelfViewModelHostHasBottomButton=function(){return D()||w()},T)),
el:x,style:_.oP({"margin-left":(0,_.mq)(function(){return C().contentPadding}),
"margin-right":(0,_.mq)(function(){return C().contentPadding})})},_.u(_.V,{cond:function(){return _.Q(I().header,JNp)},
then:function(N){return _.u(_.qX,{data:N,disableHorizontalPadding:!0})}}),_.u("div",null,_.u(_.sV,{each:function(){return Array(z())}},function(N,Io){return _.u(MCA,{className:W.className,
items:P(Io),responsiveGridShelfLayout:C,contentAspectRatio:t})})),_.u("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.u(_.Ea,{data:function(){return I().showMoreButton}},{buttonViewModel:function(N){return _.u("div",{hidden:k},_.u(_.cq,{data:N.data,
onClick:d}))}}),_.u(_.Ea,{data:function(){return I().showLessButton}},{buttonViewModel:function(N){return _.u("div",{hidden:a},_.u(_.cq,{data:N.data,
onClick:v}))}})))},"nc");
$Pk.idomCompat=!0;var MCA=_.kl(function(W){var P=W.items;var x=W.responsiveGridShelfLayout;var I=W.contentAspectRatio;W=W.className;var O=_.fa();Z9R(O,function(){a:{var Y=O.value;for(var K=P(),Z=[],d=0;d<K.length;d++){var v=_.Q(K[d],kPk);if(!v||v==null||!v.inlinePlayerData){Y=null;break a}var m=Y.children.item(d);if(!m){Y=null;break a}Z.push({thumbnailElement:m,videoData:v})}Y={gridVideoPreviewData:{gridItems:Z}}}return Y});
var B=(0,_.mq)(function(){return-x().itemMargin});
return _.u("div",{el:O,class:_.O4("ytGridShelfViewModelGridShelfRow",W),style:_.oP({"margin-left":B,"margin-right":B})},_.u(_.Ea,{data:P,replacementWrapper:function(Y){return _.u(wjd,{responsiveGridShelfLayout:x},Y)}},{shortsLockupViewModel:function(Y){return _.u(wjd,{responsiveGridShelfLayout:x},_.u(mez,{data:Y.data,
aspectRatio:function(){return I()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"oc"),wjd=_.kl(function(W){return _.u("div",{style:_.oP({width:(0,_.mq)(function(){return W.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+W.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},W.children)},"pc");
$Pk.idomCompat=!0;_.lq($Pk,"grid-shelf-view-model",{props:{data:_.cv,layoutContainerWidth:_.cv,shouldUseOwnContainerSize:_.cv,marginSettings:_.cv,className:_.cv}});_.h8d=_.kl(function(W){var P=_.n(_.YV(!1,void 0,"YYtxR")),x=P.next().value,I=P.next().value;P={};return _.u("yt-alert-banner-view-model",{class:_.O4("ytAlertBannerViewModelHost",W.className,function(){var O;a:switch((O=W.data())==null?void 0:O.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":O="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":O="ytAlertBannerViewModelWarning";break a;default:O="ytAlertBannerViewModelInformational"}return O},(P.ytAlertBannerViewModelDismissed=
x,P.ytAlertBannerViewModelFullbleed=W.fullbleed,P.ytAlertBannerViewModelNarrow=W.narrow,P.ytAlertBannerViewModelIsInRichGrid=W.isInRichGrid,P))},_.u(_.V,{cond:function(){var O;
return!((O=W.data())==null?0:O.hideIcon)},
then:function(){return _.u("div",{class:"ytAlertBannerViewModelIcon"},_.u(_.Sy,{icon:function(){return"info_circle"}}))}}),_.u("div",{class:"ytAlertBannerViewModelOuterContainer"},_.u("div",{class:"ytAlertBannerViewModelContainer"},_.u("div",{class:"ytAlertBannerViewModelContent"},_.u("div",{class:"ytAlertBannerViewModelHeading"},_.u(_.mQ,{text:function(){var O;
return(O=W.data())==null?void 0:O.heading}})),_.u("div",{class:"ytAlertBannerViewModelBody"},_.u(_.mQ,{text:function(){var O;
return(O=W.data())==null?void 0:O.body}})))),_.u(_.Ea,{data:function(){var O;
return(O=W.data())==null?void 0:O.actionButton}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.u(_.Ea,{data:function(){var O;
return(O=W.data())==null?void 0:O.dismissButton}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var B;((B=W.data())==null?0:B.disableLocalDismissBehavior)||I(!0)}})}}))},"qc");_.lq(_.h8d,"yt-alert-banner-view-model",{props:{data:_.cv,fullbleed:_.cv,narrow:_.cv,isInRichGrid:_.cv,className:_.cv}});var AiS;AiS=_.CC({chipViewModel:_.z8i,buttonViewModel:_.cq});_.Hv3=_.nE(zP8,{callbacks:{callback:!0}});_.ql(zP8);_.lq(_.Hv3,"chips-shelf-view-model",{props:{data:_.cv,callback:_.Ng,enableSingleChipSelection:_.cv,disableChipsScrollAnimation:_.cv}});var e8c=_.kl(function(W){W=_.bw(W,{disabled:!1});var P=W.active,x=W.disabled;W={};W=_.O4("ytSwitchShapeTrack",(W.ytSwitchShapeTrackActive=function(){return P()},W.ytSwitchShapeTrackDisabled=function(){return x()},W));
var I={};I=_.O4("ytSwitchShapeKnob",(I.ytSwitchShapeKnobActive=function(){return P()},I));
return _.u("switch-shape",{class:"ytSwitchShapeHost"},_.u("div",{class:W}),_.u("div",{class:I}))},"rc");var cPA=_.kl(function(W){var P=_.bw(W,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),x=P.data;W=P.className;var I=P.handleOnTapEventInParent,O=P.parentActive;P=_.n(_.Zh(function(){var m;return(m=O())!=null?m:x().switchedOnByDefault||!1}));
var B=P.next().value,Y=P.next().value,K=function(){return x().isDisabled},Z=_.fa();
P=_.yB(function(m){return m.key==="Enter"?(m.preventDefault(),Z.value.click(),!1):!0});
var d=_.yB(function(m){if(x().handleOnTapEventInParent||I())return!0;if(K())return!1;E0t(x(),B(),m);Y(!B());return!1}),v={};
v=_.O4("ytSwitchButtonViewModelButton",(v.ytSwitchButtonViewModelTappable=function(){return!K()},v));
return _.u("switch-button-view-model",{class:_.O4("ytSwitchButtonViewModelHost",W)},_.u("button",{el:Z,class:v,"on:click":d,"on:keydown":P,"aria-label":function(){return B()?x().a11yLabelSwitchedOn:x().a11yLabelSwitchedOff},
"aria-pressed":B,"aria-disabled":K},_.u(e8c,{active:B,disabled:K})))},"sc");var bvZ=_.kl(function(W){var P=_.bw(W,{checked:!1});W=P.name;var x=P.onChange,I=P.onClick,O=P.checked,B=P.labelRenderable,Y=P.hasLeadingLabel,K=P.labelClass,Z=P.isCompact,d=P.selectElementClass;P=P.disableHorizontalPadding;var v="checkbox"+_.$1(_.vQ),m=_.yB(function(z){I==null||I(z);return!1}),t=_.yB(function(z){x==null||x(z);
return!1}),C={};
return _.u("checkbox-shape",null,_.u("label",{class:_.O4("checkbox-shape-wiz",K,(C["checkbox-shape-wiz--compact"]=Z,C["checkbox-shape-wiz--disable-horizontal-padding"]=P,C))},_.u("input",{class:"checkbox-shape-wiz__input",id:v,checked:O,name:W,type:"checkbox","prop:checked":O,"on:change":t,"on:click":m}),_.u(_.V,{cond:function(){return!(Y==null?0:Y())},
then:function(){return _.u(arp,{isLeading:!0,selectElementClass:d})}}),_.u(_.V,{cond:function(){return!!B},
then:function(){return _.u("div",{class:"checkbox-shape-wiz__label"},B==null?void 0:B())}}),_.u(_.V,{cond:Y,
then:function(){return _.u(arp,{isLeading:!1,selectElementClass:d})}})))},"tc");
bvZ.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var arp=_.kl(function(W){var P=W.selectElementClass;W={};return _.u("div",{class:_.O4("checkbox-shape-wiz__checkbox",P,(W["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(P==null?0:P())},W)),
"aria-hidden":"true"},_.u(_.Sy,{icon:_.p("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.u(_.Sy,{icon:_.p("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"uc");_.VX=_.kl(function(W){var P=W.name;var x=W.onChange;var I=W.onClick;var O=W.checked;var B=W.labelRenderable;var Y=W.useCheckIcon;var K=W.hasLeadingLabel;var Z=W.labelClass;var d=W.isCompact;var v=W.selectElementClass;var m=W.ariaLabel;W=W.className;var t="radio"+_.$1(_.vQ),C=_.yB(function(N){x==null||x(N);return!1}),z=_.yB(function(N){I==null||I(N);
return!1}),D=_.n(_.YV(!1,void 0,"DEwP5e")),w=D.next().value,a=D.next().value;
D=_.yB(function(){var N;((N=_.FY().resolve(_.Rl(_.jK)))==null?0:N.isKeyBoardInUse())&&a(!0)});
var k=_.yB(function(){a(!1)}),T={};
return _.u("radio-shape",{class:_.O4("radio-shape-wiz",W)},_.u("input",{class:"radio-shape-wiz__input",id:t,"prop:checked":O,name:P,type:"radio","on:change":C,"on:click":z,"aria-label":m,"on:focusin":D,"on:focusout":k}),_.u("label",{class:_.O4("radio-shape-wiz__label-container",Z,(T["radio-shape-wiz--compact"]=d,T["radio-shape-wiz__label-container--keyboard-focused"]=w,T)),for:t},_.u(_.V,{cond:function(){return!(K==null?0:K())},
then:function(){return _.u(kHk,{checked:O,useCheckIcon:Y,isLeading:!0,selectElementClass:v})}}),_.u(_.V,{cond:function(){return!!B},
then:function(){return _.u("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(m==null?0:m())?"true":"false"}},B==null?void 0:B())}}),_.u(_.V,{cond:K,
then:function(){return _.u(kHk,{checked:O,useCheckIcon:Y,isLeading:!1,selectElementClass:v})}})))},"vc");
_.VX.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var kHk=_.kl(function(W){var P=W.useCheckIcon;var x=W.selectElementClass;W=function(){return(P==null?0:P())?"CHECK":_.p("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var I={};return _.u("div",{class:_.O4("radio-shape-wiz__radio",x,(I["radio-shape-wiz__radio--check-icon"]=P,I["radio-shape-wiz__radio--radio-default-style"]=function(){return!(x==null?0:x())},I)),
"aria-hidden":"true"},_.u(_.Sy,{icon:W}),_.u(_.Sy,{icon:W,active:function(){return!(P==null?0:P())}}))},"wc");_.tG=_.kl(function(W){function P(){var iC;((iC=_.FY().resolve(_.Rl(_.jK)))==null?0:iC.isKeyBoardInUse())&&e8(!0)}
function x(){e8(!1)}
var I=W.data;var O=W.isMenuItem;var B=W.isCompact;var Y=W.onTap;var K=W.trailingAccessory;var Z=W.hideSelectionTextChevron;var d=W.disabled;var v=W.inPopup;var m=W.disableHorizontalPadding;W=W.isOverlay;var t=_.p("apply_button_role_to_list_item"),C=_.G4(function(iC){a:{var hw=I();if((hw==null?0:hw.entitySelectorType)&&(hw==null?0:hw.entityKey))switch(hw.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":iC=_.nI8(iC,hw.entityKey);iC=iC==null?void 0:
iC.value;hw=!1;iC==="CAPTIONS_UNAVAILABLE"&&(hw=!0,iC="");iC=Object.assign({},!!iC&&{selectionText:{content:iC}},{isSelected:!!iC},!!iC&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:hw});break a;default:iC={}}else iC={}}return iC}),z=function(){return _.p("enable_web_shorts_captions_language_command")?Object.assign({},I(),C()):I()},D=function(){return!(z().isSelected===void 0||!z().selectionStyle||z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
w=function(){return(_.fC(z().rendererContext)||Y)&&!D()},a=function(){return _.fC(z().rendererContext)||D()},k={};
W=_.O4("yt-list-item-view-model-wiz",(k["yt-list-item-view-model-wiz--is-overlay"]=W,k["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!t&&ao()},k));
k={};var T=_.O4("yt-list-item-view-model-wiz__label",(k["yt-list-item-view-model-wiz__container"]=function(){return!D()},k["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!z().isDisabled||!(d==null||!d())},k["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!z().subtitle},k["yt-list-item-view-model-wiz__container--compact"]=B,k["yt-list-item-view-model-wiz__container--tappable"]=w,k["yt-list-item-view-model-wiz__container--in-popup"]=v,k["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return t&&ao()},k["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(m==null?void 0:m())&&!D()},k));
k={};var N=_.O4("yt-list-item-view-model-wiz__container",(k["yt-list-item-view-model-wiz__container--tappable"]=a,k["yt-list-item-view-model-wiz__container--compact"]=B,k["yt-list-item-view-model-wiz__container--in-popup"]=v,k["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(m==null?void 0:m())&&D()},k)),Io=function(){return z().leadingImage||z().leadingAccessory},F=_.O4("yt-list-item-view-model-wiz__image-container",function(){return Io()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
v=_.fa();var nm=_.fa(),pm=t?nm:v,zR=_.kl(function(){return _.u(_.V,{cond:function(){return t},
then:function(){return _.u("div",{class:T,el:nm,role:function(){return a()||w()?"button":void 0},
tabindex:function(){return Y||w()?0:void 0},
"on:keydown":kW,"on:click":Am},_.u(UPm,{data:z,hideSelectionTextChevron:Z,trailingAccessory:K}))},
else:function(){return _.u("div",{class:T,el:nm},_.u(UPm,{data:z,hideSelectionTextChevron:Z,trailingAccessory:K}))}})},"xc");
zR.idomCompat=!0;_.NI(v,function(){return z().rendererContext});
var Am=_.yB(function(iC){return void(Y==null?void 0:Y(iC))}),kW=_.CfA(),$W=_.n(_.YV(!1,void 0,"inP9Dc"));
k=$W.next().value;$W=$W.next().value;var ao=k,e8=$W;_.AQ(function(){w()&&(pm.value.addEventListener("focusin",P),pm.value.addEventListener("focusout",x));_.C4(function(){pm.value&&w()&&(pm.value.removeEventListener("focusin",P),pm.value.removeEventListener("focusout",x))})});
k=_.yB(function(){return!1});
return _.u("yt-list-item-view-model",{el:v,class:W,role:function(){return(O==null?0:O())?"menuitem":"listitem"},
tabindex:function(){var iC=w();iC=t?void 0:Y||iC?0:void 0;return iC},
"on:keydown":t?k:kW,"on:click":t?k:Am},_.u(_.V,{cond:D,then:function(){return _.u(_.tQ,null,_.u(_.mk,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.u(bvZ,{labelRenderable:function(){return _.u(zR,null)},
isCompact:B,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Io()},
labelClass:N,selectElementClass:F,disableHorizontalPadding:m})}),_.u(_.mk,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.u(_.VX,{labelRenderable:function(){return _.u(zR,null)},
isCompact:B,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Io()},
labelClass:N,selectElementClass:F})}),_.u(_.mk,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.u(_.VX,{labelRenderable:function(){return _.u(zR,null)},
isCompact:B,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Io()},
labelClass:N,selectElementClass:F,useCheckIcon:!0})}),_.u(_.Va,null,function(){return _.u(zR,null)}))},
else:function(){return _.u(zR,null)}}))},"yc");
_.tG.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var UPm=_.kl(function(W){var P=W.data;var x=W.hideSelectionTextChevron;var I=W.trailingAccessory;return _.u(_.qS,null,_.u(Xjp,{data:P,isLeading:!0,hideSelectionTextChevron:function(){return!(x==null||!x())}}),_.u(frW,{data:P}),_.u(_.V,{cond:function(){return!!I},
then:function(){return _.u("div",{class:"yt-list-item-view-model-wiz__trailing"},I==null?void 0:I())},
else:function(){return _.u(Xjp,{data:P,isLeading:!1,hideSelectionTextChevron:function(){return!(x==null||!x())}})}}))},"zc"),Xjp=_.kl(function(W){var P=W.data;
var x=W.isLeading;var I=W.hideSelectionTextChevron;var O=_.O4("yt-list-item-view-model-wiz__button-container");W={};var B=_.O4("yt-list-item-view-model-wiz__image-container",(W["yt-list-item-view-model-wiz__leading"]=x,W["yt-list-item-view-model-wiz__trailing"]=function(){return!x()},W)),Y=function(){return x()?P().leadingImage:P().trailingImage},K=_.O4("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
W={};var Z=_.O4("yt-list-item-view-model-wiz__accessory",(W["yt-list-item-view-model-wiz__leading"]=x,W["yt-list-item-view-model-wiz__trailing"]=function(){return!x()},W)),d=function(){a:switch(P().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var v="expand_more";
break a;default:v="chevron_right"}return v};
return _.u(_.V,{cond:function(){var v=P(),m=x();return!!(m&&(v.leadingImage||v.leadingAccessory)||!m&&(v.trailingImage||v.trailingButton||v.trailingButtons||v.selectionText))},
then:function(){return _.u(_.qS,null,_.u(_.V,{cond:Y,then:function(v){return _.u("div",{class:B,"aria-hidden":"true"},_.u(_.bq,{data:v,alt:"",preserveWidth:!0,preserveHeight:!0,className:K}))}}),_.u(_.V,{cond:function(){return x()&&P().leadingAccessory},
then:function(){return _.u("div",{class:B},_.u(_.Ea,{data:function(){return P().leadingAccessory}},{avatarViewModel:function(v){return _.u(_.DI,{data:v.data,
avatarButtonCustomClassName:K})},
collectionThumbnailViewModel:YEZ}))}}),_.u(_.V,{cond:function(){return!x()&&P().trailingButton},
then:function(){return _.u("div",{class:O},_.u(_.Ea,{data:function(){return P().trailingButton}},{buttonViewModel:function(v){return _.u(_.cq,{data:v.data,
className:Z})}}))}}),_.u(_.V,{cond:function(){var v;
return!x()&&((v=P().trailingButtons)==null?void 0:v.buttons)},
then:function(){return _.u("div",{class:O},_.u(_.Ea,{data:function(){var v;return(v=P().trailingButtons)==null?void 0:v.buttons}},{buttonViewModel:function(v){return _.u(_.cq,{data:v.data,
className:Z})},
accountLinkButtonViewModel:function(v){return _.u(nRm,{data:v.data,className:function(){return Z()||""}})},
switchButtonViewModel:function(v){return _.u(cPA,{data:v.data,className:Z})},
subscribeButtonViewModel:function(v){return _.u(Xtz,{data:v.data,isOverlay:!1,animateWidth:!1,className:Z})},
toggleButtonViewModel:function(v){return _.u(_.MI,{data:v.data,className:Z})}}))}}),_.u(_.V,{cond:function(){return!x()&&!!P().selectionText},
then:function(){return _.u(_.qS,null,_.u(_.mQ,{text:function(){return P().selectionText},
className:_.O4("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.u(_.V,{cond:function(){return!I()},
then:function(){return _.u(_.Sy,{icon:d,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Ac"),frW=_.kl(function(W){var P=W.data;
return _.u(_.V,{cond:function(){return P().title||P().subtitle},
then:function(){return _.u("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.u("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.u(_.V,{cond:function(){return P().title},
then:function(x){return _.u(_.mQ,{text:x,className:"yt-list-item-view-model-wiz__title"})}})),_.u(_.V,{cond:function(){return P().subtitle},
then:function(x){return _.u(_.mQ,{text:x,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Bc");_.NR3=_.kl(function(W){var P=W.data;var x=W.onTap;var I=W.onSwitch;var O=W.overrideDisabled;W=W.disableHorizontalPadding;var B=_.n(_.Zh(function(){var m;return((m=Dym(v()))==null?void 0:m.switchedOnByDefault)||!1})),Y=B.next().value,K=B.next().value;
B=_.n(_.YV(!1,void 0,"ZHBkbb"));var Z=B.next().value,d=B.next().value,v=function(){var m;if(!(m=P().switchButton)){var t=P();m=O==null?void 0:O();t={switchOnCommand:t.switchOnCommand,switchOffCommand:t.switchOffCommand,switchedOnByDefault:t.switchedOnByDefault,isDisabled:t.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:t.a11yLabelSwitchedOn,a11yLabelSwitchedOff:t.a11yLabelSwitchedOff};m!==void 0&&(t.isDisabled=m);m={switchButtonViewModel:t}}return m};
return _.u("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.u(_.tG,{data:function(){return{title:P().title,subtitle:P().attributedSubtitle,leadingImage:P().leadingImage,leadingAccessory:P().leadingAccessory,isDisabled:P().isDisabled}},
onTap:function(m){var t=Dym(v());!t||t.isDisabled||P().ignoreTapUntilCommandCompletes&&Z()||(x==null||x(m),E0t(t,Y(),m,P().ignoreTapUntilCommandCompletes,d),K(!Y()),I==null||I(Y()))},
trailingAccessory:function(){return _.u(_.Ea,{data:v},{switchButtonViewModel:function(m){return _.u(cPA,{data:m.data,parentActive:Y,handleOnTapEventInParent:!!x})}})},
disableHorizontalPadding:W}))},"Cc");var lri=_.KK("DOWNLOAD",{},"Download"),TRM=_.KK("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),rPl=_.KK("RETRY",{},"Retry"),iv3=_.KK("PAUSE_DOWNLOADING",{},"Pause downloading"),R8W=_.KK("RESUME_DOWNLOAD",{},"Resume download"),M68={text:lri,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},h3={text:TRM,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},hPG={text:rPl,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
$yR={text:iv3,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},wYd={text:R8W,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var FbA=_.kl(function(W){var P=function(){var K=W.data();K=_.Xd(K.rendererContext);var Z;return(Z=_.Q(K,_.ZZ))==null?void 0:Z.videoId},x=_.G4(function(K){var Z=P(),d=ci8(W.data());
return Z?_.GK(K,Z):d?_.En(K,d):"TRANSFER_STATE_UNKNOWN"}),I=_.dp(_.XAx,P),O=_.G4(function(K){return _.eE7(K,P(),ci8(W.data()))}),B=function(){return eP7(x(),I(),_.Xd(W.data().rendererContext),!!ci8(W.data()))},Y=function(){return O()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.u("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Y},_.u(_.V,{cond:function(){return!Y()},
then:function(){return _.u(_.V,{cond:B,then:function(K){return _.u(_.sV,{each:K},function(Z){return _.u(_.tG,{data:Z,isCompact:W.isCompact,isMenuItem:W.isMenuItem,inPopup:W.inPopup,disableHorizontalPadding:W.disableHorizontalPadding})})}})}}))},"Dc");
FbA.idomCompat=!0;_.qpW=_.kl(function(W){var P=W.data;var x=W.isCompact;var I=W.hideSelectionTextChevron;var O=W.inPopup;var B=W.isOverlay;var Y=W.disableHorizontalPadding;var K=function(){return ao8(P())&&(O==null?void 0:O())};
W={};return _.u("yt-list-view-model",{class:_.O4("yt-list-view-model-wiz",(W["yt-list-view-model-wiz--kaios-spat-nav"]=A4C&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",W)),role:function(){return K()?"menu":"list"}},_.u(_.Ea,{data:function(){return P().listItems}},{listItemViewModel:function(Z){return _.u(_.tG,{data:Z.data,
isMenuItem:K,isCompact:x,hideSelectionTextChevron:I,inPopup:O,isOverlay:B,disableHorizontalPadding:Y})},
downloadListItemViewModel:function(Z){return _.u(FbA,{data:Z.data,isMenuItem:K,isCompact:x,inPopup:O,disableHorizontalPadding:Y})},
switchListItemViewModel:function(Z){return _.u(_.NR3,{data:Z.data,disableHorizontalPadding:Y})}}))},"Ec");
_.qpW.idomCompat=!0;var Lbc=_.kl(function(W){var P=W.data;var x=W.isOverlay;W={};return _.u("yt-course-perks-view-model",{class:_.O4("ytwCoursePerksViewModelHost",(W.ytwCoursePerksViewModelHostOverlay=x,W))},_.u("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u("div",null,_.u(_.V,{cond:function(){return P().perks},
then:function(I){return _.u(_.qpW,{data:function(){return{listItems:I()}},
isCompact:!0,isOverlay:x})}})))},"Fc");_.lq(Lbc,"yt-course-perks-view-model",{props:{data:_.Ng,isOverlay:_.Ng}});_.lq(_.kl(function(W){var P=W.data;return _.u("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.u("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.u(_.mQ,{text:function(){return P().progressSummary}})),_.u("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.u("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.oP({width:function(){return P().progressPercentage*100+"%"}})})))},"Gc"),"yt-course-progress-view-model",{props:{data:_.cv}});var WFP=_.kl(function(W){var P={};return _.u("yt-progress-view-model",{class:_.O4("ytwProgressViewModelHost",(P.ytwProgressViewModelHostOverlay=_.a7(W.isOverlay,!1),P))},_.u(_.V,{cond:function(){return W.data().progressSummary},
then:function(x){return _.u("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.u(_.mQ,{text:x}))}}),_.u("div",{class:"ytwProgressViewModelHostProgressContainer"},_.u(_.V,{cond:function(){return W.data().leadingLabel},
then:function(x){return _.u("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.u(_.mQ,{text:x}))}}),_.u("div",{class:"ytwProgressViewModelHostProgressBar"},_.u("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(W.data().progressPercentage||0)*100+"%"}}))))},"Hc");var pI=_.kl(function(W){var P=W.starNumber;var x=W.data;var I=function(){var O;return((O=x())==null?void 0:O.rating)||0};
return _.u(_.V,{cond:function(){return P()},
then:function(O){return _.u(_.tQ,null,_.u(_.mk,{when:function(){return I()>=O()-.25}},function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.Sy,{icon:"STAR_FILLED"}))}),_.u(_.mk,{when:function(){return I()>=O()-.75}},function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.Sy,{icon:"STAR_HALF"}))}),_.u(_.Va,null,function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.Sy,{icon:"STAR_BORDER"}))}))}})},"Ic"),PJd=_.kl(function(W){W=W.data;
return _.u("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.u(pI,{starNumber:1,data:W}),_.u(pI,{starNumber:2,data:W}),_.u(pI,{starNumber:3,data:W}),_.u(pI,{starNumber:4,data:W}),_.u(pI,{starNumber:5,data:W}))},"Jc");_.lq(_.kl(function(W){var P=_.bw(W,{}).data;return _.u("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.u("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.u(_.mQ,{text:function(){var x;return(x=P())==null?void 0:x.title}})),_.u("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.u(_.V,{cond:function(){return P().starProgressViewModels},
then:function(x){return _.u("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.u(_.Ea,{data:x},{progressViewModel:WFP}))}}),_.u("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.u("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.u(_.mQ,{text:function(){var x;
return(x=P())==null?void 0:x.averageRatingLabel}})),_.u(_.V,{cond:function(){return P().zeroStateText},
then:function(x){return _.u("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.u(_.mQ,{text:x}))}}),_.u(_.V,{cond:function(){return P().starRatingViewModel},
then:function(x){return _.u("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.u(_.Ea,{data:x},{starRatingViewModel:PJd}))}}),_.u("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.u(_.mQ,{text:function(){var x;
return(x=P())==null?void 0:x.totalRatingsCountLabel}})))))},"Kc"),"yt-course-ratings-view-model",{props:{data:_.Ng}});var xjZ;xjZ={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.IMi=_.kl(function(W){var P=_.fa(),x=_.Ys();_.Qa(function(){requestAnimationFrame(function(){var O;(O=x.lottieEl)==null||O.addEventListener("DOMLoaded",function(){var B;(B=W.onLottieLoaded)==null||B.call(W)})});
var I=W.data().browseEndpoint;I&&_.D1(I)});
return _.u("yt-learning-journey-loader-view-model",{class:_.O4("learningJourneyLoaderViewModelHost",W.className),"data-target-id":function(){var I;return((I=W.data)==null?void 0:I.call(W).targetId)||""},
el:P},_.u(_.Jd,{className:_.O4("learningJourneyLoaderViewModelLoader",W.className),animationName:function(){return xjZ.animationConfig.name},
data:xjZ,animationRef:x}))},"Lc");_.lq(_.IMi,"yt-learning-journey-loader-view-model",{props:{data:_.cv,className:_.Ng,onLottieLoaded:_.Ng}});var Opb=_.kl(function(W){var P=function(){return W.data()},x=_.n(_.YV(-1,void 0,"GvxRR")),I=x.next().value,O=x.next().value,B=function(d){return I()===d},Y=function(d){return P().correctAnswerIndex===d},K=function(){return I()!==-1},Z=_.yB(function(){O(-1);
return!1});
return _.u("learning-journey-quiz-view-model",{class:_.O4("learningJourneyQuizViewModelHost",W.className),style:_.oP({background:function(){return cO(HO(P())).backgroundColor}})},_.u(_.V,{cond:function(){return!!P().video},
then:function(){return _.u("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.oP({background:function(){return cO(HO(P())).videoBackgroundColor}})},_.u(_.Ea,{data:function(){return P().video}},{lockupViewModel:function(d){return _.u(_.R8,{data:d.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.u("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.u("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.u("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.u("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.u("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.oP({color:function(){return cO(HO(P())).primaryTextColor}})},_.u(_.mQ,{text:function(){var d=P(),v=K(),m=I()===P().correctAnswerIndex;
return v?m?d.successTitle:d.failureTitle:d.questionHeaderText}})),_.u("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.u(_.V,{cond:K,
then:function(){return _.u("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":Z,role:"button","aria-label":"Reset","tab-index":"0"},_.u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.oP({fill:function(){return cO(HO(P())).primaryTextColor}})},_.u("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.u(_.Ea,{data:function(){return P().overflowMenu}},{buttonViewModel:function(d){return _.u(_.cq,{data:d.data})}}))),_.u("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.oP({color:function(){return cO(HO(P())).secondaryTextColor}})},_.u(_.mQ,{text:function(){var d=P();
return K()?d.explanationText:d.questionSubheaderText}}))),_.u("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.u(_.sV,{each:function(){return P().optionsData||[]}},function(d,v){var m={};
return _.u("div",{class:_.O4("learningJourneyQuizViewModelHostQuizOptions",(m.learningJourneyQuizViewModelHostQuizHover=function(){return!K()},m.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return I()===P().correctAnswerIndex&&B(v())},m.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return I()!==P().correctAnswerIndex&&B(v())},m.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return K()&&!B(v())},m)),
"on:click":_.yB(function(){if(K())return!1;O(v());return!1}),
style:_.oP({background:function(){return K()&&B(v())?"":cO(HO(P())).optionColor}}),
role:"button","aria-disabled":K,"tab-index":"0"},_.u(_.V,{cond:K,then:function(){return _.u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var t=v();return Y(t)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.oP({fill:function(){return cO(HO(P())).primaryTextColor}})},_.u("path",{d:function(){var t=v();
return Y(t)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.u(_.mQ,{text:d.optionText}))})))))},"Mc");
Opb.idomCompat=!0;_.lq(Opb,"learning-journey-quiz-view-model",{props:{data:_.cv,className:_.cv}});var Jvm=_.kl(function(W){var P=_.fa();_.NI(P,function(){return W.data().rendererContext});
var x=_.bw(W,{palette:void 0,isLastItem:!1}),I=x.palette,O=x.isLastItem,B=function(){return W.data().isHighlighted},Y=function(){var d;
return b9W((d=I())==null?void 0:d.iconDisabledColor)},K=function(){var d;
return b9W((d=I())==null?void 0:d.primaryTitleColor)},Z=function(){var d;
return b9W((d=I())==null?void 0:d.secondaryTitleColor)};
x={};return _.u("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:P},_.u(_.Ea,{data:function(){return W.data().thumbnail}},{thumbnailViewModel:_.kt}),_.u("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.u("div",{class:_.O4("ytMacroMarkerListItemViewModelTimeDescription",(x.ytMacroMarkerListItemViewModelHighlighted=B,x)),
style:_.oP({"background-color":function(){return B()?K():Y()},
color:function(){return B()?"":Z()}})},_.u(_.mQ,{text:function(){return W.data().timestamp}})),_.u("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.oP({"background-color":function(){return O()?"transparent":Y()}})}),_.u("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(B()?K():Z())}},_.u(_.mQ,{text:function(){return W.data().title}}))))},"Nc");_.jP=_.kl(function(W){function P(Bm){a("transform:translateX("+(_.$$("HTML_DIR")==="rtl"?"":"-")+Bm+"px)")}
function x(Bm){return Math.min(Math.max(Bm,0),w()-F())}
function I(){var Bm=N()+Am();return O()?(Math.round(F()/Bm)||1)*Bm:0}
var O=function(){return W.data().items||[]},B=function(){return W.data().previousButton},Y=function(){return W.data().nextButton},K=function(){var Bm,GA;
return(GA=(Bm=W.disableArrows)==null?void 0:Bm.call(W))!=null?GA:!1},Z=function(){var Bm;
return!((Bm=W.forceNarrowLayout)==null||!Bm.call(W))},d=_.fa(),v=_.fa(),m=_.n(_.YV(0,void 0,"yngx7d")),t=m.next().value,C=m.next().value;
m=_.n(_.YV(0,void 0,"rUOyGb"));var z=m.next().value,D=m.next().value,w=z;z=_.n(_.YV("",void 0,"jv2kWc"));m=z.next().value;var a=z.next().value;z=_.n(_.YV(0,void 0,"Xb0f0d"));var k=z.next().value,T=z.next().value,N=k;z=_.n(_.YV(0,void 0,"pt5wQ"));k=z.next().value;var Io=z.next().value,F=k;z=_.n(_.YV(!1,void 0,"FfPefe"));var nm=z.next().value,pm=z.next().value;z=_.n(_.YV(0,void 0,"kB5mhb"));k=z.next().value;var zR=z.next().value,Am=k;z=_.n(_.YV(0,void 0,"dnDmUd"));var kW=z.next().value,$W=z.next().value,
ao=function(){var Bm,GA=(Bm=W.data())==null?void 0:Bm.responsiveContainerConfiguration,KM,PZ;return GA?rOt(GA==null?void 0:GA.responsiveSize):(PZ=(KM=W.sizing)==null?void 0:KM.call(W))!=null?PZ:"STANDARD"};
z=_.Sj(function(){return!K()&&t()>0},void 0,"ZIGxke");
k=_.Sj(function(){return!K()&&t()<w()-F()},void 0,"OJzhRd");
var e8=function(){C(x(t()-I()));P(t())},iC=function(){C(x(t()+I()));
P(t())},hw=function(){d.value!==null&&Oc()},dk;
_.AQ(function(){Oc();window.ResizeObserver?(dk=new ResizeObserver(_.t6(hw,0)),dk.observe(d.value)):window.addEventListener("resize",hw)});
_.C4(function(){if(window.ResizeObserver){var Bm;(Bm=dk)==null||Bm.disconnect()}else window.removeEventListener("resize",hw)});
var Oc=function(){var Bm=d.value.clientWidth,GA=W.includeMargin!==void 0?W.includeMargin():!1,KM;var PZ=W.hasPeek!==void 0?W.hasPeek():!((KM=W.data())==null||!KM.hasPeek);Bm=_.Fd({containerWidth:Bm,hasPeek:PZ,sizing:ao(),marginSettings:GA?Z()?4:1:0});zR(Bm.gutter);$W(Bm.margin);T(Bm.itemWidth);pm(Bm.maxContainerWidth<528||Z());Io(Bm.maxContainerWidth);O()&&D((Bm.itemWidth+Bm.gutter)*O().length-Bm.gutter)};
return _.u("horizontal-shelf-view-model",{class:_.O4("ytwHorizontalShelfViewModelHost",W.className),el:d},_.u(_.V,{cond:function(){return W.data().header},
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.oP({width:function(){return F()+"px"},
padding:function(){return"0 "+kW()+"px"}})},_.u(_.Ea,{data:function(){return W.data().header}},{sectionHeaderViewModel:function(Bm){return _.u(_.qX,{data:Bm.data,
disableHorizontalPadding:!0,forceSmallLayout:nm,useResponsiveLayout:!0})}}))}}),_.u("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.u("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.oP({width:function(){return F()+"px"},
padding:function(){return"0 "+kW()+"px"},
overflow:function(){return K()?"auto":"hidden"}})},_.u("div",{class:"ytwHorizontalShelfViewModelItems",
el:v,style:m},_.u(_.Ea,{data:O},{macroMarkerListItemViewModel:function(Bm,GA){return _.u("div",{style:_.oP({width:function(){return N()+"px"},
"margin-right":function(){return(GA()===O().length-1?0:Am())+"px"}})},_.u(Jvm,{data:Bm.data,
palette:_.a7(W.palette),isLastItem:function(){return GA()===O().length-1}}))},
lockupViewModel:function(Bm,GA){var KM=Bm.data;return _.u("div",{style:_.oP({width:function(){return N()+"px"},
"margin-right":function(){return(GA()===O().length-1?0:Am())+"px"}})},_.u(_.R8,{data:KM,
containerType:4,sizing:ao,protectBackground:W.protectBackground,thumbnailFixedWidth:function(){return koS(KM())+"px"},
thumbnailTargetWidth:function(){return koS(KM())}}))}}))),_.u(_.V,{cond:z,
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.u(_.Ea,{data:B},{buttonViewModel:function(Bm){return _.u(_.cq,{data:Bm.data,onClick:e8})}}))}}),_.u(_.V,{cond:k,
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.u(_.Ea,{data:Y},{buttonViewModel:function(Bm){return _.u(_.cq,{data:Bm.data,onClick:iC})}}))}})))},"Oc");
_.jP.idomCompat=!0;var B$p=_.kl(function(W){var P=function(){return W.data().targetId||""},x=function(){var t;
return((t=W.data())==null?void 0:t.expansionEntityKey)||""},I=_.dp(_.nI8,x),O=function(){var t;
return((t=I())==null?void 0:t.value)===P()},B=function(t){_.cM(_.mG("stringEntity",x(),{key:x(),
value:t?P():""}))};
_.Qa(function(){W.data().isExpanded&&B(!0)});
var Y=function(){if(O()){var t=!0;W.onCollapse!==void 0&&(t=W.onCollapse());t&&(B(!1),d.value.addEventListener("transitionend",function(){d.value.hidden=!0},{once:!0}))}else d.value.hidden=!1,requestAnimationFrame(function(){B(!0)})},K=_.yB(Y),Z=function(){var t;
return(((t=W.accordionStyle)==null?void 0:t.call(W))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},d=_.fa(),v={},m={};
return _.u("yt-accordion-item-view-model",{class:_.O4("ytAccordionItemViewModelHost",W.className,(v.ytAccordionItemViewModelExpanded=function(){return O()},v.ytAccordionItemViewModelHidden=function(){var t;
return(t=W.hideIfNotExpanded)==null?void 0:t.call(W)},v.ytAccordionItemViewModelMini=Z,v)),
"data-target-id":P},_.u("div",{class:"ytAccordionItemViewModelContainer"},_.u("div",{class:"ytAccordionItemViewModelLeftSection","on:click":K},_.u(_.mQ,{text:function(){return W.data().title},
className:"ytAccordionItemViewModelLabel"})),_.u("div",{class:"ytAccordionItemViewModelRightSection"},_.u(_.Ea,{data:function(){return O()?W.data().expandButton:W.data().collapseButton}},{buttonViewModel:function(t){return _.u(_.cq,{data:t.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Y})}}))),_.u("div",{class:"ytAccordionItemViewModelContainer"},_.u("div",{class:_.O4("ytAccordionItemViewModelContent",(m.ytAccordionItemViewModelExpandedSubtitle=function(){return O()},m)),
el:d,style:_.oP({"max-height":function(){return d.value?O()?d.value.scrollHeight+"px":"0":"auto"}})},_.u(_.V,{cond:function(){return!Z()},
then:function(){return _.u(_.mQ,{text:function(){return W.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.u(_.Ea,{data:function(){return W.data().content}},{horizontalShelfViewModel:function(t){return _.u(_.jP,{data:t.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Pc");_.nvi=_.kl(function(W){var P=_.n((0,_.Hyz)(W.data)).next().value,x=function(){return W.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},I=function(){return x()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},O=_.n(_.YV(!0,void 0,"nJGZI")),B=O.next().value,Y=O.next().value,K=function(){return I()&&B()},Z=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Y(!B())}}},d=_.yB(function(){P().onTitleTap&&_.D1(P().onTitleTap||{})});
O={};return _.u("yt-accordion-view-model",{class:_.O4("ytAccordionViewModelHost",(O.ytAccordionViewModelMinimized=function(){return K()},O)),
"data-target-id":function(){return W.data().targetId||""}},_.u(_.V,{cond:function(){return I()||!!P().title},
then:function(){return _.u("div",{class:"ytAccordionViewModelHeader"},_.u("div",{class:"ytAccordionViewModelTitleSection"},_.u("div",{class:"ytAccordionViewModelTitleWrapper"},_.u(_.V,{cond:function(){return!!W.data().headerIcon},
then:function(){return _.u(_.Sy,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var v;return(v=W.data().headerIcon)==null?void 0:v.iconType}})}}),_.u("div",{class:"ytAccordionViewModelTitle",
"on:click":d},_.u(_.mQ,{className:"ytAccordionViewModelTitleText",text:function(){return P().title}})))),_.u("div",{class:"ytAccordionViewModelButtonSection"},_.u(_.V,{cond:I,
then:function(){return _.u(PO,{data:Z,iconName:function(){return K()?"chevron_down":"chevron_collapse"}})}})))}}),_.u("div",{class:"ytAccordionViewModelContent"},_.u(_.Ea,{data:function(){return P().contents}},{accordionItemViewModel:function(v){return _.u(B$p,{data:v.data,
className:"ytAccordionViewModelRow",accordionStyle:x,hideIfNotExpanded:K,onCollapse:function(){return I()?(Y(!0),!1):!0}})}})),_.u("div",null,_.u(_.V,{cond:function(){return!I()},
then:function(){return _.u(_.mQ,{text:function(){return P().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Qc");_.lq(_.nvi,"yt-accordion-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P,x=(P=_.FY().resolve(_.Rl(_.hF)))==null?void 0:P(),I=_.n(_.YV(!1,void 0,"XM2Sxc"));P=I.next().value;var O=I.next().value;I=_.n(_.YV(!0,void 0,"Jgzg2d"));var B=I.next().value,Y=I.next().value,K=_.fa(),Z=function(z){O(!0);z={learningJourneyFormData:{query:z}};_.D1(W.data().searchEndpoint||{},{form:{formData:z}});return!1},d=_.yB(function(z){z.target.closest("button-view-model")&&O(!0)});
I=_.yB(function(){Y(K.value.value.length===0)});
var v=_.yB(function(z){if(z.key==="Enter"&&!z.shiftKey&&!B()){var D=z.target;z.preventDefault();Z(D.value)}}),m={},t={},C={};
return _.u("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.u("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.u(_.bq,{data:function(){return W.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.u("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.u("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.u("div",{class:_.O4("ytLearningJourneyZeroStateSearchBar",(m.ytLearningJourneyZeroStateSearchBarDark=x,m))},_.u("textarea",{class:_.O4("ytLearningJourneyZeroStateTextInput",(t.ytLearningJourneyZeroStateTextInputDark=x,t)),el:K,"on:keyup":I,"on:keydown":v,placeholder:"What do you want to learn?",
rows:1})),_.u("div",{class:_.O4("ytLearningJourneyZeroStateSearchButtonContainer",(C.ytLearningJourneyZeroStateSearchButtonContainerDark=x,C))},_.u(_.cq,{data:function(){return _.Q(W.data().searchButton,_.gp)},
className:"search-button",onClick:function(){return Z(K.value.value)},
buttonOverrides:function(){return{disabled:B(),style:x?"mono-inverse":"mono",size:"XL"}}}))),_.u(_.V,{cond:function(){return!!W.data().errorBanner},
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.u(_.Ea,{data:function(){return W.data().errorBanner}},{alertBannerViewModel:_.h8d}))}})),_.u(_.V,{cond:P,
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.u(_.Ea,{data:function(){return W.data().loader}},{learningJourneyLoaderViewModel:function(z){return _.u(_.IMi,{data:z.data})}}))},
else:function(){return _.u("div",null,_.u(_.V,{cond:function(){return!!W.data().learningJourneyShelf},
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.u("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().learningJourneySectionTitle}),_.u(_.Ea,{data:function(){return W.data().learningJourneyShelf}},{horizontalShelfViewModel:_.jP}))}}),_.u("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.u("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().suggestedJourneySectionTitle}),
_.u("div",{"on:click":d},_.u(_.Ea,{data:function(){return W.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(z){return _.u(jg,{data:z.data,
layout:1})}}))))}}))},"Rc"),"yt-learning-journey-zero-state",{props:{data:_.cv}});var Y6i=_.kl(function(W){var P=W.data;return _.u("ytvl-live-leaderboard-item-action-content-view-model",{class:_.O4("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.u(_.mQ,{text:function(){var x;return(x=P())==null?void 0:x.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.u(_.Ea,{data:function(){return P().actionButton}},{buttonViewModel:function(x){return _.u(_.cq,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:x.data})}}))},"Sc");var yvP=_.kl(function(W){var P=W.data;return _.u("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.O4("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.u(_.mQ,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var x;return(x=P())==null?void 0:x.displayName},
ellipsisTruncate:!0}),_.u(_.Ea,{data:function(){return P().badge}},{buttonViewModel:function(x){return _.u(_.cq,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:x.data})}}))},"Tc");_.lq(_.kl(function(W){var P=W.data;return _.u("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.u("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.u(_.mQ,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var x;return(x=P())==null?void 0:x.rank}})),_.u("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.u(_.Ea,{data:function(){return P().avatar}},{avatarViewModel:_.DI})),_.u("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.u(_.Ea,{data:function(){return P().content}},{liveLeaderboardItemChannelContentViewModel:yvP,
liveLeaderboardItemActionContentViewModel:Y6i})),_.u(_.mQ,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var x;return(x=P())==null?void 0:x.points}}))},"Uc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;return _.u("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.u(_.mQ,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var x,I;return(x=P())==null?void 0:(I=x.ranking)==null?void 0:I.rank}}),_.u("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.u(_.Ea,{data:function(){return P().avatar}},{avatarViewModel:_.DI})),_.u(_.mQ,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var x,I;return(x=P())==null?void 0:(I=x.channelContent)==null?void 0:I.channelName}}),_.u(_.mQ,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var x;return(x=P())==null?void 0:x.points}}))},"Vc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.cv}});var KFk=_.kl(function(W){W=_.bw(W,{wrapper:!1}).wrapper;return _.u(_.V,{cond:W,then:function(){return _.u("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.u("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.u("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Wc");
KFk.idomCompat=!0;var ZpM=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],ovM=_.kl(function(W){var P=W.data;var x=_.fa(),I=_.Sj(function(){return P().command},void 0,"CGDtVe");
_.jj(function(){I()&&_.zm(I(),{form:{element:x.value}})});
return _.u("div",{el:x,class:"YtQrCodeRendererHostContainer"},_.u(_.V,{cond:function(){return P().qrCodeImage},
then:function(O){return _.u(_.bq,{data:O,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.u(_.V,{cond:function(){return P().spinner},
then:function(){return _.u(KFk,null)}})}}),_.u(_.V,{cond:function(){return P().label},
then:function(O){return _.u(_.mQ,{text:O,className:"YtQrCodeRendererHostLabel"})}}),_.u(_.V,{cond:function(){return P().labels},
then:function(O){return _.u("div",{class:"YtQrCodeRendererHostLabels"},_.u(_.sV,{each:O},function(B){return _.u(_.mQ,{text:B})}))}}))},"Yc");_.lq(_.kl(function(W){var P=W.data;var x=_.Sj(function(){return P().qrEntityKey},void 0,"joYCxd"),I=_.Sj(function(){return P().deleteEntityOnDismiss},void 0,"x3yAde"),O=_.Sj(function(){return P().command},void 0,"dJe1Re"),B=_.dp(HZt,x);
W=_.Sj(function(){return P().style&&ZpM.includes(P().style)},void 0,"rGILzf");
var Y=_.fa();_.FL(Y,{visibilityCallback:function(K){K&&O()&&_.zm(O())},
showOption:{calledOnce:!0,state:"visible"}});_.AQ(function(){_.C4(function(){I()&&x()&&_.HM().dispatch(_.mG("qrCodeEntity",x()))})});
return _.u("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:Y},_.u(_.V,{cond:W,then:function(){return _.u(_.V,{cond:B,then:function(K){return _.u(ovM,{data:K})}})}}))},"Xc"),"yt-qr-code-renderer",{props:{data:_.cv}});_.S6z=_.kl(function(W){var P=W.data;var x=W.topbarOffset;var I,O=((I=_.FY().resolve(_.Rl(_.hF)))==null?void 0:I())||!1;return _.u("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var B=P();var Y,K,Z=O?(Y=B.config)==null?void 0:Y.darkThemeBackgroundColor:(K=B.config)==null?void 0:K.lightThemeBackgroundColor;B=Z?_.j9(Z):void 0;B="background-color: "+B+";";x!==void 0&&(B+="top: -"+x()+"px;");return B},
"aria-hidden":!0},_.u(_.V,{cond:function(){var B,Y,K;return!!((B=P().backgroundImageConfig)==null?0:(Y=B.image)==null?0:(K=Y.sources)==null?0:K.length)},
then:function(){return _.u(_.bq,{data:function(){var B;return(B=P().backgroundImageConfig)==null?void 0:B.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.u("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+UyR(O,P().gradientColorConfig)+";"}}))},"Zc");
_.S6z.idomCompat=!0;_.ql(XYt);var u2m=_.kl(function(W){var P=W.className;var x=W.data;var I=W.isOverlay;var O=W.maxLinesOverride;var B=W.useMediumText;W=_.fa();var Y=function(){return x().alwaysShowTruncationText},K=function(){return x().truncationText},Z=function(){return B!==void 0&&B()?"medium":"small"},d=function(){return I!==void 0&&I()?"overlay":"default"},v=function(){var D,w;
return(w=(D=_.Q(x().rendererContext,_.TS))==null?void 0:D.label)!=null?w:""},m=_.n(_.YV(!1,void 0,"zp50e")),t=m.next().value,C=m.next().value;
_.NI(W,function(){return x().rendererContext});
m=_.yB(function(){x().expandOnTap&&C(!t());return!1});
var z={};return _.u("yt-description-preview-view-model",{el:W,class:_.O4("yt-description-preview-view-model-wiz",P,(z["yt-description-preview-view-model-wiz--clickable"]=function(){var D;return!((D=_.Q(x().rendererContext,lr))==null||!D.onTap)},z["yt-description-preview-view-model-wiz--is-overlay"]=I,z)),
"on:click":m},_.u(_.V,{cond:function(){return x().description},
then:function(D){return _.u(_.V,{cond:t,then:function(){var w={};return _.u("div",{class:_.O4("yt-description-preview-view-model-wiz__description",(w["yt-description-preview-view-model-wiz__description--medium-text"]=B,w))},_.u(_.mQ,{text:D}))},
else:function(){return _.u(H8k,{text:D,alwaysShowTruncationText:Y,truncationText:K,maxLines:function(){var w;return(w=O==null?void 0:O())!=null?w:x().maxLines},
textStyle:d,accessibilityLabel:v,textSize:Z})}})}}))},"$c"),djk=_.p("web_enable_sink_yt_description_preview_view_model")?u2m:_.nE(XYt);
u2m.idomCompat=!0;var s3M=_.kl(function(W){var P=W.data;var x=W.isOverlay;return _.u("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.u("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.u(_.Ea,{data:function(){return P().header}},{sectionHeaderViewModel:function(I){return _.u(_.qX,{data:I.data,
isOverlay:x})}})),_.u("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.u(_.Ea,{data:function(){return P().channelInfoButtons}},{flexibleActionsViewModel:jg})),_.u("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.u(_.Ea,{data:function(){return P().description}},{descriptionPreviewViewModel:function(I){return _.u(djk,{data:I.data,
isOverlay:x})}})))},"ad");
s3M.idomCompat=!0;var vvw=_.kl(function(W){var P=W.data;var x={};return _.u("factoid-view-model",{class:_.O4("ytwFactoidViewModelHost",(x.ytwFactoidViewModelHostOverlay=W.isOverlay,x))},_.u(_.mQ,{text:function(){return P().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.u(_.mQ,{text:function(){return P().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bd");
vvw.idomCompat=!0;var mjM=_.kl(function(W){var P=W.data;var x=W.isOverlay;return _.u("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.u(_.Ea,{data:function(){return P().factoids}},{factoidViewModel:function(I){return _.u(vvw,{data:I.data,
isOverlay:x})}}))},"cd");
mjM.idomCompat=!0;_.VWp=_.kl(function(W){var P=W.data;var x=W.isOverlay;return _.u("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.u(_.Ea,{data:function(){return P().items}},{channelInfoViewModel:function(I){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(s3M,{data:I.data,
isOverlay:x}))},
coursePerksViewModel:function(I){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(Lbc,{data:I.data,isOverlay:x}))},
descriptionPreviewViewModel:function(I){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(djk,{data:I.data,isOverlay:x}))},
factoidsRowViewModel:function(I){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(mjM,{data:I.data,isOverlay:x}))},
progressViewModel:function(I){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(WFP,{data:I.data,isOverlay:x}))}}))},"dd");var tWc=_.kl(function(W){return _.u("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.u(_.Ea,{data:function(){return W.data().content}},{courseMetadataViewModel:function(P){return _.u(_.VWp,{data:P.data,
isOverlay:W.isOverlay})}}))},"ed");var p3d=_.kl(function(W){var P=W.data;W=W.className;var x=_.fa(),I=function(){var B;return _.fC((B=P())==null?void 0:B.rendererContext)},O={};
O=(O["dynamic-text-view-model-wiz"]=!0,O["dynamic-text-view-model-wiz--tappable"]=function(){return I()},O);
_.NI(x,function(){var B;return(B=P())==null?void 0:B.rendererContext});
return _.u("yt-dynamic-text-view-model",{el:x,role:function(){return I()?"link":void 0},
tabindex:function(){return I()?0:void 0},
class:_.O4(W,O)},_.u("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var B,Y,K;return(K=(Y=_.Q((B=P())==null?void 0:B.rendererContext,_.TS))==null?void 0:Y.label)!=null?K:""}},_.u(_.mQ,{text:function(){return P().text},
userInput:!0})))},"fd");
p3d.idomCompat=!0;_.j3k=_.kl(function(W){var P=W.data;var x=W.isPositionRelative;var I=_.Nl(),O=_.NzS("(max-width: 527.9px)"),B=function(){var Y,K;return(K=(Y=P())==null?void 0:Y.style)!=null?K:"IMAGE_BANNER_STYLE_FULL_BLEED"};
W={};W=(W["yt-image-banner-view-model-wiz"]=!0,W["yt-image-banner-view-model-wiz--inset"]=function(){return loG(B())},W["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.zB(!0)&&!(x==null?0:x())},W["yt-image-banner-view-model-wiz--small-inset"]=function(){return loG(B())&&O()},W["yt-image-banner-view-model-wiz--tappable"]=function(){var Y;
return _.zB(I.value)&&_.fC((Y=P())==null?void 0:Y.rendererContext)},W);
_.NI(I,function(){var Y;return(Y=P())==null?void 0:Y.rendererContext});
return _.u("yt-image-banner-view-model",{el:I,class:_.O4(W)},_.u(_.V,{cond:function(){var Y;return(Y=P())==null?void 0:Y.image},
then:function(){return _.u(_.bq,{data:function(){return P().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.u(_.Ea,{data:function(){var Y;
return(Y=P())==null?void 0:Y.overlays}},{thumbnailHoverOverlayViewModel:B4z}))},"gd");
_.j3k.idomCompat=!0;var Q33;Q33=_.kl(function(W){var P=W.condition;var x=W.content;return _.u(_.V,{cond:P,then:function(){return _.u("div",{class:"page-header-view-model-wiz__scroll-container"},x())},
else:function(){return x()}})},"hd");
_.CJw=_.kl(function(W){var P=W.data;var x=W.noPadding;var I=W.enableBanner;var O=W.cinematicContainerTopbarOffset;var B=W.allowCinematicContainerOverflow;var Y=W.displayAsSidebar;var K=W.displayAsPanel;var Z=TzS(),d=function(){return!!P().image||!!P().animatedImage},v=function(){return!!P().background},m=function(){return(Y==null?0:Y())||(K==null?0:K())?1:Z()},t=function(){return m()===1},C=function(){return t()||m()===2},z=function(){return m()===4},D=function(){var Am=P();
var kW=!!P().heroImage;var $W=m(),ao=riR(P()),e8=Y==null?void 0:Y(),iC=!Am.metadata,hw;if(hw=kW?_.Q(Am.heroImage,iwP):_.Q(Am.animatedImage||Am.image,iwP)){Am=hw.style;var dk=hw.layoutMode;hw=ZyR(K$G(hw));if(kW)kW=fom($W,Am,dk,hw,e8);else b:if(iC)kW=$W===1?{size:48}:{size:72};else switch($W){case 1:kW={size:72};break b;case 2:kW={size:120};break b;default:kW=ao<4?{size:120}:{size:160}}}else kW={size:0};return kW};
W={};W=_.O4((W["page-header-view-model-wiz"]=!0,W["page-header-view-model-wiz--no-padding"]=function(){return!(x==null||!x())},W["page-header-view-model-wiz--small-top-padding"]=function(){return t()&&!P().actions||m()===2&&!(d()||P().heroImage)},W["page-header-view-model-wiz--small-bottom-padding"]=function(){return C()&&!P().actions},W["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(B==null?0:B())},W["page-header-view-model-wiz--display-as-sidebar"]=Y,W["page-header-view-model-wiz--display-as-panel"]=
K,W));
var w={},a=_.O4((w["page-header-view-model-wiz__page-header-headline"]=!0,w["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return D().allowFullWidth},w)),k=function(){return t()&&(!!P().heroImage||d())&&riR(P())>0},T=function(){return k()&&(K==null?void 0:K())};
w={};var N=_.O4((w["page-header-view-model-wiz__page-header-title"]=!0,w["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!k()},w["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return k()&&!T()},w["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=T,w["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=v,w));
w={};var Io=_.O4((w["page-header-view-model-wiz__page-header-headline-image"]=!0,w["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!P().heroImage&&C()},w));
w={};var F=_.O4((w["page-header-view-model-wiz__page-header-banner-container"]=I,w["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Am;return(I==null?void 0:I())&&((Am=_.Q(P().banner,_.F4A))==null?void 0:Am.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},w));
w={};var nm=_.O4((w["page-header-view-model-wiz__page-header-content-metadata"]=!0,w["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=v,w));w={};var pm=_.O4((w["page-header-view-model-wiz__page-header-flexible-actions"]=!0,w["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!P().metadata||C()},w["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!C()},w));
w={};var zR=_.O4((w["page-header-view-model-wiz__page-header-attribution"]=!0,w["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=v,w));return _.u("yt-page-header-view-model",{class:W},_.u(_.V,{cond:v,then:function(){return _.u("div",{class:"page-header-view-model-wiz__page-header-background"},_.u(_.Ea,{data:function(){return P().background}},{cinematicContainerViewModel:function(Am){return _.u(_.S6z,{data:Am.data,
topbarOffset:O})}}))}}),_.u(Q33,{condition:function(){return!(Y==null||!Y())},
content:function(){return _.u("div",{class:"page-header-view-model-wiz__page-header-content"},_.u(_.V,{cond:function(){return(I==null?void 0:I())&&P().banner},
then:function(){return _.u("div",{class:F},_.u(_.Ea,{data:function(){return P().banner}},{imageBannerViewModel:_.j3k}))}}),_.u("div",{class:a},_.u(_.V,{cond:d,
then:function(){return _.u(_.Ea,{data:function(){var Am;if(!(Am=P().animatedImage)){Am=P();if(d()){var kW=Am=Object.assign({},Am),$W=m(),ao=riR(P()),e8=kW.image,iC=_.Q(e8,REw),hw=iC==null?void 0:iC.avatar,dk=_.Q(hw,_.rp);if(e8&&hw&&dk){switch($W){case 1:dk.avatarImageSize="AVATAR_SIZE_XL";break;case 2:dk.avatarImageSize="AVATAR_SIZE_XXL";break;default:ao<4?dk.avatarImageSize="AVATAR_SIZE_XXL":dk.avatarImageSize="AVATAR_SIZE_XXXL"}_.p("web_enable_sink_page_header_view_model")&&(_.tF(hw,_.rp,Object.assign({},
dk)),iC.avatar=Object.assign({},hw),_.tF(e8,REw,Object.assign({},iC)),kW.image=Object.assign({},e8))}}Am=Am.image}return Am}},{contentPreviewImageViewModel:function(Am){return _.u(_.lW,{data:Am.data,
className:Io,imageSizeConfig:D})},
decoratedAvatarViewModel:function(Am){return _.u(_.ml,{data:Am.data,className:Io})}})}}),_.u(_.V,{cond:function(){return!!P().heroImage&&!(C()&&!D().allowFullWidth)},
then:function(){return _.u(_.Ea,{data:function(){return P().heroImage}},{contentPreviewImageViewModel:function(Am){return _.u(_.lW,{data:Am.data,
className:Io,imageSizeConfig:D})}})}}),_.u("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.u(_.V,{cond:function(){return!!P().heroImage&&C()&&!D().allowFullWidth},
then:function(){return _.u("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.u(_.Ea,{data:function(){return P().heroImage}},{contentPreviewImageViewModel:function(Am){return _.u(_.lW,{data:Am.data,
className:Io,imageSizeConfig:D})}}))}}),_.u(_.Ea,{data:function(){return P().title}},{dynamicTextViewModel:function(Am){return _.u(p3d,{data:Am.data,
className:N})}}),_.u(_.Ea,{data:function(){return P().metadata}},{contentMetadataViewModel:function(Am){return _.u(_.QUm,{data:Am.data,
layout:function(){return t()?1:0},
className:nm,isOverlay:v,useMediumText:z})}}),_.u(_.V,{cond:function(){return P().description&&!t()},
then:function(){return _.u(_.Ea,{data:function(){return P().description}},{descriptionPreviewViewModel:function(Am){return _.u(djk,{data:Am.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:v,maxLinesOverride:function(){return t()?void 0:1},
useMediumText:z})}})}}),_.u(_.V,{cond:function(){return P().attribution&&!C()},
then:function(){return _.u(_.Ea,{data:function(){return P().attribution}},{attributionViewModel:function(Am){return _.u(T5,{data:Am.data,
className:zR,useMediumText:z})}})}}),_.u(_.V,{cond:function(){return P().actions&&!C()},
then:function(){return _.u(_.Ea,{data:function(){return P().actions}},{flexibleActionsViewModel:function(Am){return _.u(jg,{data:Am.data,
layout:function(){return i9C(m())},
className:pm})}})}}))),_.u("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.u(_.V,{cond:function(){return P().description&&t()},
then:function(){return _.u(_.Ea,{data:function(){return P().description}},{descriptionPreviewViewModel:function(Am){return _.u(djk,{data:Am.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:v,maxLinesOverride:function(){return t()?void 0:1},
useMediumText:z})}})}}),_.u(_.V,{cond:function(){return P().attribution&&C()},
then:function(){return _.u(_.Ea,{data:function(){return P().attribution}},{attributionViewModel:function(Am){return _.u(T5,{data:Am.data,
className:zR,useMediumText:z})}})}}),_.u(_.V,{cond:function(){return P().actions&&C()},
then:function(){return _.u(_.Ea,{data:function(){return P().actions}},{flexibleActionsViewModel:function(Am){return _.u(jg,{data:Am.data,
layout:function(){return i9C(m())},
className:pm})}})}})),_.u("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.u(_.Ea,{data:function(){return P().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Am){return _.u(tWc,{data:Am.data,
isOverlay:v})}})))}}))},"id");
_.CJw.idomCompat=!0;_.lq(_.kl(function(W){var P=_.n(_.YV(!1,void 0,"vVRl3b")),x=P.next().value,I=P.next().value;return _.u("yt-official-card-view-model",{class:_.O4("ytOfficialCardViewModelHost",W.className),style:_.oP({"background-color":function(){var O,B=T2S((O=W.data())==null?void 0:O.backgroundColor);return B?_.Qy(B):void 0}})},_.u(_.Ea,{data:function(){return W.data().header}},{pageHeaderViewModel:function(O){return _.u(_.CJw,{data:O.data,
noPadding:!0})}}),_.u("div",{class:"ytOfficialCardViewModelContents"},_.u(_.Ea,{data:function(){return W.data().contents}},{horizontalShelfViewModel:_.jP})),_.u(_.V,{cond:x,
then:function(){return _.u("div",{class:"ytOfficialCardViewModelExpandedContent"},_.u(_.Ea,{data:function(){return W.data().expandedContents}},{horizontalShelfViewModel:function(O){return _.u(_.jP,{data:O.data,
sizing:"MINI"})}}),_.u("div",{class:"ytOfficialCardViewModelCollapseButton"},_.u(_.Ea,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
onClick:function(){I(!x())}})}})))},
else:function(){return _.u("div",{class:"ytOfficialCardViewModelExpandButton"},_.u(_.Ea,{data:function(){return W.data().expandButton}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
onClick:function(){I(!x())}})}}))}}))},"jd"),"yt-official-card-view-model",{props:{data:_.cv,
className:_.cv}});var RPm=_.CC({buttonViewModel:_.cq});_.ql(FV8);_.WF(FV8,"ytw-search-friction-view-model",{propNames:["data"]});_.QX=_.kl(function(W){var P=_.fa(),x,I=(x=_.FY().resolve(_.Rl(_.hF)))==null?void 0:x();_.jj(function(){var O=P.value;var B=new Cpd,Y=new Map(B.JSC$7206_sanitizerTable.globalAttributePolicies);Y.set("style",{policyAction:4});B.JSC$7206_sanitizerTable=new pd(B.JSC$7206_sanitizerTable.allowedElements,B.JSC$7206_sanitizerTable.elementPolicies,B.JSC$7206_sanitizerTable.allowedGlobalAttributes,Y,B.JSC$7206_sanitizerTable.globallyAllowedAttributePrefixes);var K=["data-time"];if(K===void 0)Y=new Set(B.JSC$7206_sanitizerTable.globallyAllowedAttributePrefixes),
Y.add("data-"),B.JSC$7206_sanitizerTable=new pd(B.JSC$7206_sanitizerTable.allowedElements,B.JSC$7206_sanitizerTable.elementPolicies,B.JSC$7206_sanitizerTable.allowedGlobalAttributes,B.JSC$7206_sanitizerTable.globalAttributePolicies,Y);else{Y=new Set(B.JSC$7206_sanitizerTable.allowedGlobalAttributes);K=_.n(K);for(var Z=K.next();!Z.done;Z=K.next()){Z=Z.value;if(Z.indexOf("data-")!==0)throw Error("qa`"+Z);Y.add(Z)}B.JSC$7206_sanitizerTable=new pd(B.JSC$7206_sanitizerTable.allowedElements,B.JSC$7206_sanitizerTable.elementPolicies,
Y,B.JSC$7206_sanitizerTable.globalAttributePolicies,B.JSC$7206_sanitizerTable.globallyAllowedAttributePrefixes)}Y=new Set(B.JSC$7206_sanitizerTable.allowedGlobalAttributes);Y.add("class");B.JSC$7206_sanitizerTable=new pd(B.JSC$7206_sanitizerTable.allowedElements,B.JSC$7206_sanitizerTable.elementPolicies,Y,B.JSC$7206_sanitizerTable.globalAttributePolicies,B.JSC$7206_sanitizerTable.globallyAllowedAttributePrefixes);_.a$(O,_.VzP(B.build(),LVt(W.text())));W_o(P.value)});
x={};return _.u("div",null,_.u("markdown-div",{class:_.O4("ytwMarkdownDivHost",(x.ytwMarkdownDivDark=I,x.ytwMarkdownDivHostSmall=function(){var O;return((O=W.isSmallText)==null?void 0:O.call(W))||!1},x)),
el:P}))},"kd");
_.QX.idomCompat=!0;var AvZ=_.kl(function(W){var P=W.imageData;var x=_.a7(W.isInList,!1),I=function(){return x()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.u("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.u(_.V,{cond:function(){return P().image},
then:function(O){return _.u(_.bq,{data:O,alt:function(){return I().alt},
contentMode:function(){return I().contentMode},
targetWidth:function(){return I().targetWidth},
targetHeight:function(){return I().targetHeight},
className:function(){return I().className}})}}),_.u("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.u("div",{class:_.O4("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.u(_.mQ,{text:function(){return P().title}})),_.u(_.sV,{each:function(){var O;
return(O=P().description)!=null?O:[]}},function(O){return _.u("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.u(CI,{content:O}))})))},"ld"),zvi=_.kl(function(W){var P=W.list;
var x=function(){var I;return(I=P().items)!=null?I:[]};
return _.u("div",{class:"ytwGenAiRichTextViewModelListContent"},_.u(_.V,{cond:function(){return P().title},
then:function(I){return _.u("div",{class:_.O4("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.u(_.mQ,{text:I}))}}),_.u(_.V,{cond:function(){return P().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.u("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.u(_.sV,{each:x},function(I){return _.u("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.u(CI,{content:I,isInList:!0}))}))}}),_.u(_.V,{cond:function(){return P().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.u("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.u(_.sV,{each:x},function(I){return _.u("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.u(CI,{content:I,isInList:!0}))}))}}),_.u(_.V,{cond:function(){return P().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.u("div",{class:"ytwGenAiRichTextViewModelImageList"},_.u(_.sV,{each:x},function(I){return _.u("div",{class:"ytwGenAiRichTextViewModelListItem"},_.u(CI,{content:I,isInList:!0}))}))}}))},"md"),GJb=_.kl(function(W){var P=W.table;
return _.u("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.u("thead",null,_.u("tr",null,_.u(_.sV,{each:function(){var x,I;return(I=(x=P().header)==null?void 0:x.cells)!=null?I:[]}},function(x){return _.u("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.u(_.sV,{each:function(){return x.contents}},function(I){return _.u(CI,{content:I})}))}))),_.u("tbody",null,_.u(_.sV,{each:function(){var x;
return(x=P().rows)!=null?x:[]}},function(x){return _.u("tr",null,_.u(_.sV,{each:function(){return x.cells}},function(I){return _.u("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.u(_.sV,{each:function(){return I.contents}},function(O){return _.u(CI,{content:O})}))}))})))},"nd"),CI=_.kl(function(W){var P=W.content;
var x=_.a7(W.isInList,!1),I=function(){var O,B;return(B=(O=P().contentBlock)==null?void 0:O.contents)!=null?B:[]};
return _.u("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.u(_.V,{cond:function(){return P().text},
then:function(O){return _.u(_.mQ,{className:"ytwGenAiRichTextViewModelText",text:O})}}),_.u(_.V,{cond:function(){return P().image},
then:function(O){return _.u(AvZ,{imageData:O,isInList:x})}}),_.u(_.V,{cond:function(){return P().list},
then:function(O){return _.u(zvi,{list:O})}}),_.u(_.V,{cond:function(){return P().contentBlock},
then:function(){return _.u("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.u(_.sV,{each:I},function(O){return _.u(CI,{content:O,isInList:!1})}))}}),_.u(_.V,{cond:function(){return P().table},
then:function(O){return _.u(GJb,{table:O})}}))},"od"),EvW=_.kl(function(W){var P={};
P=_.BF("ytwGenAiRichTextViewModelHost",(P.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Pi("search_overview_link_style")),P));return _.u("gen-ai-rich-text-view-model",{class:P},_.u(CI,{content:function(){return W.data().content}}))},"pd");_.ql(PaC);_.ql(aq);_.gvc=_.kl(function(W){var P=W.data;var x=function(){var D;return((D=P().loadingUi)!=null?D:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},I=function(){return P().isLoading&&(x()==="UNSPECIFIED"||x()==="GHOST_CARD")},O=function(){return!P().isLoading},B=function(){return!!P().content&&!P().contents},Y=function(){return!!P().contents},K=function(){return!!P().nextQueryButtons},Z=function(){return P().isLoading&&x()==="INVISIBLE"},d=function(){var D,w;
return(w=(D=P().headerIcon)==null?void 0:D.iconType)!=null?w:""},v=function(){var D;
return(D=P().content)!=null?D:""},m=function(){return!!P().sourcesSection},t,C=!((t=_.FY().resolve(_.Rl(_.hF)))==null||!t()),z=_.Sj(function(){var D=[],w=P().contents;
if(w)for(var a=0;a<w.length;a++){var k=_.Q(w&&w[a],K4w);k&&D.push(k)}return D},void 0,"ycU97e");
_.AQ(function(){P().isLoading||_.CK("so_re",void 0,"search_overview_answer")});
return _.u("ytd-overview-answer-view-model",{class:function(){var D={};D=(D.ytdOverviewAnswerViewModelHost=!0,D.ytdOverviewAnswerViewModelDarkBackground=C&&!Z(),D.ytdOverviewAnswerViewModelLightBackground=!C&&!Z(),D);return _.BF(D)}},_.u(_.V,{cond:function(){return!Z()},
then:function(){return _.u(_.qS,null,_.u("h2",null,_.u("div",{class:"ytdOverviewAnswerViewModelHeader"},_.u(_.V,{cond:d,then:function(D){return _.u("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.u(_.Sy,{icon:D}))}}),_.u("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.u("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return P().headerText}),_.u("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.u(_.mQ,{text:function(){return P().headerSubtext}}))))),_.u(_.V,{cond:I,
then:function(){return PaC()}}),_.u(_.V,{cond:O,
then:function(){return _.u(_.qS,null,_.u(_.V,{cond:B,then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelText"},_.u(_.QX,{text:v,isSmallText:!0}))}}),_.u(_.V,{cond:Y,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelRichText"},_.u(_.sV,{each:z},function(D){return _.u(EvW,{data:D})}))}}),_.u(_.V,{cond:K,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.u(_.Ea,{data:function(){return P().nextQueryButtons}},{buttonViewModel:function(D){return _.u(_.cq,{data:D.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.jP}))}}),_.u("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.u("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.u(_.V,{cond:function(){return!!_.Q(P().likeButtonViewModel,_.wp)&&!!_.Q(P().dislikeButtonViewModel,_.hp)},
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.u(_.C7,{data:function(){return _.Q(P().likeButtonViewModel,_.wp)},
disableIconAnimation:!0}),_.u(_.Qz,{data:function(){return _.Q(P().dislikeButtonViewModel,_.hp)}}))}})),_.u(_.V,{cond:function(){var D;
return(D=P().sourcesSection)==null?void 0:D.headerText},
then:function(D){return _.u("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.u(_.mQ,{text:D}))}})),_.u(_.V,{cond:m,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelSources"},_.u(_.Ea,{data:function(){var D;return(D=P().sourcesSection)==null?void 0:D.sourcesShelf}},{buttonViewModel:_.cq,
horizontalShelfViewModel:function(D){return _.u(_.jP,{data:D.data,includeMargin:!0,hasPeek:!0})}}))}}),_.u(_.V,{cond:function(){return P().disclaimerText},
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.u(_.mQ,{text:function(){return P().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"qd");var Dji=_.kl(function(W){var P=W.data;var x=W.active;var I=_.fa();_.jj(function(){var O,B,Y,K=((O=_.FY().resolve(_.Rl(_.hF)))==null?0:O())?(B=P())==null?void 0:B.darkThemeColorPalette:(Y=P())==null?void 0:Y.lightThemeColorPalette;K&&(K.additiveBackground&&I.value.style.setProperty("--timestamp-active-background-color",_.Qy(K.additiveBackground)),K.textSecondary&&I.value.style.setProperty("--timestamp-active-color",_.j9(K.textSecondary)))},"KHcbwb");
W={};return _.u("transcript-segment-view-model",{class:_.O4("ytwTranscriptSegmentViewModelHost",(W.ytwTranscriptSegmentViewModelHostActive=x,W.ytwTranscriptSegmentViewModelHostModern=_.p("enable_timeline_view_modern_transcript")||_.p("enable_timeline_view_modern_transcript_fe"),W)),el:I},_.u(_.V,{cond:function(){var O;return(O=P())==null?void 0:O.timestamp},
then:function(O){var B={};return _.u("div",{class:_.O4("ytwTranscriptSegmentViewModelTimestamp",(B.ytwTranscriptSegmentViewModelTimestampActive=x,B))},O)}}),_.u(_.mQ,{text:function(){var O,B,Y;
return(Y=(O=P())==null?void 0:O.attributedText)!=null?Y:{content:(B=P())==null?void 0:B.simpleText}},
linkInheritColor:!0}))},"rd");var MWc=_.kl(function(W){var P=W.data;return _.u("div",{class:"yt-video-attributes-section-view-model__header"},_.u("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return P().headerTitle}),_.u(_.V,{cond:function(){return P().headerSubtitle},
then:function(){return _.u("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return P().headerSubtitle})}}))},"sd"),$jm=_.kl(function(W){function P(z){return Math.max(Math.min(z,0),d()-K())}
var x=W.data;var I=_.fa(),O=_.fa();W=_.n(_.YV(0,void 0,"ucDlDf"));var B=W.next().value,Y=W.next().value,K=B;W=_.n(_.YV(0,void 0,"lHzSub"));B=W.next().value;var Z=W.next().value,d=B;W=_.n(_.YV(0,void 0,"Q8fDIe"));var v=W.next().value,m=W.next().value;_.AQ(function(){var z=function(){Y(O.value.scrollWidth);Z(I.value.clientWidth)};
z();if(window.ResizeObserver){var D=new ResizeObserver(z);D.observe(I.value);_.C4(function(){D.disconnect()})}});
var t=function(){m(P(v()+d()))},C=function(){m(P(v()-d()))};
return _.u("yt-video-attributes-section-view-model",null,_.u("div",{class:"yt-video-attributes-section-view-model"},_.u(_.V,{cond:function(){return x().headerTitle},
then:function(){return _.u(MWc,{data:x})}}),_.u("div",{class:_.O4("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:I},_.u("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.oP({transform:function(){var z=v();_.$$("HTML_DIR")==="rtl"&&(z*=-1);return"translateX("+z+"px)"}}),
el:O},_.u(_.Ea,{data:function(){return x().videoAttributeViewModels}},{videoAttributeViewModel:eq3}))),_.u(_.Ea,{data:function(){return x().footerButton}},{buttonViewModel:function(z){return _.u(_.cq,{data:z.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.u(_.V,{cond:function(){return v()<0&&x().previousButton},
then:function(){return _.u("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.u(_.Ea,{data:function(){return x().previousButton}},{buttonViewModel:function(z){return _.u(_.cq,{data:z.data,
onClick:t})}}))}}),_.u(_.V,{cond:function(){return v()>d()-K()&&x().nextButton},
then:function(){return _.u("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.u(_.Ea,{data:function(){return x().nextButton}},{buttonViewModel:function(z){return _.u(_.cq,{data:z.data,
onClick:C})}}))}})))},"td");
$jm.idomCompat=!0;var w3b=_.kl(function(W){var P=W.data;var x=W.active;var I={},O={};return _.u("timeline-item-view-model",{class:_.O4("ytwTimelineItemViewModelHost",(I.ytwTimelineItemViewModelHostChapterChild=W.chapterChild,I.ytwTimelineItemViewModelModern=_.p("enable_timeline_view_modern_transcript")||_.p("enable_timeline_view_modern_transcript_fe"),I))},_.u("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.u("div",{class:_.O4("ytwTimelineItemViewModelTimestamp",(O.ytwTimelineItemViewModelTimestampActive=
x,O))},function(){return P().timestamp})),_.u("div",{class:"ytwTimelineItemViewModelContentItems"},_.u(_.Ea,{data:function(){return P().contentItems}},{transcriptSegmentViewModel:function(B){return _.u(Dji,{data:B.data,
active:x})},
videoAttributesSectionViewModel:$jm})))},"ud");var hvk=_.kl(function(W){var P=W.data;W={};return _.u("timeline-chapter-view-model",{class:_.O4("ytwTimelineChapterViewModelHost")},_.u("div",{class:_.O4("ytwTimelineChapterViewModelTitle",(W.ytwTimelineChapterViewModelModern=_.p("enable_timeline_view_modern_transcript")||_.p("enable_timeline_view_modern_transcript_fe"),W))},function(){return P().title}),_.u(_.Ea,{data:function(){return P().contents}},{timelineItemViewModel:function(x){return _.u(w3b,{data:x.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(x){return _.u($jm,{data:x.data})}}))},"vd");var Hpw=_.kl(function(W){var P=W.data;var x=_.fa(),I=_.dp(_.DNA,function(){var B;return(B=P().markersEngagementPanelSyncEntityKey)!=null?B:""}),O=function(){var B;
return((B=I())==null?void 0:B.activeItemIndex)===P().index};
W=_.yB(function(B){var Y,K,Z,d,v;return _.y(function(m){if(m.nextAddress==1)return B.stopPropagation(),_.zeC(_.Ua(B),x.value,["A".toString(),"BUTTON".toString()])?m.return():(Y=_.AF(P().onTap))?_.S(m,_.Bq(),2):m.return();K=m.yieldResult;d=(Z=_.Q(Y,_.U_))==null?void 0:Z.startTimeSeconds;d===void 0||(v=K)!=null&&v.seekTo(d,!0);_.Kl(m)})});
return _.u("macro-markers-panel-item-view-model",{class:_.O4("ytwMacroMarkersPanelItemViewModelHost",{"is-active":O}),el:x,"on:click":W,tabindex:0},_.u(_.Ea,{data:function(){var B;return(B=P())==null?void 0:B.item}},{timelineChapterViewModel:function(B){return _.u(hvk,{data:B.data,
active:O})},
timelineItemViewModel:function(B){return _.u(w3b,{data:B.data,active:O})},
videoAttributeViewModel:eq3}))},"wd");
Hpw.idomCompat=!0;_.lq(Hpw,"macro-markers-panel-item-view-model",{props:{data:_.cv}});_.lq($jm,"yt-video-attributes-section-view-model",{props:{data:_.cv}});var evM=_.kl(function(W){var P=function(){var x,I,O;return(O=(x=W.data().leadingLogoAccessibility)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label)!=null?O:""};
return _.u("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.u(_.V,{cond:function(){return W.data().leadingLogo},
then:function(x){return _.u(_.bq,{className:"ytwFantasySectionHeaderViewModelLogo",data:x,alt:P})}}),_.u("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.u(_.mQ,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return W.data().title}}),_.u(_.mQ,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return W.data().subtitle}})),_.u(_.Ea,{data:function(){return W.data().trailingButton}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xd");var cvl=_.kl(function(W){var P={};P=_.O4("ytwFantasyTeamViewModelHost",(P.ytwFantasyTeamViewModelCompact=function(){var O;return!((O=W.compact)==null||!O.call(W))},P.ytwFantasyTeamViewModelUser=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},P.ytwFantasyTeamViewModelOpponent=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},P));
var x=function(){var O,B,Y;return(Y=(O=W.data().teamLogoAccessibility)==null?void 0:(B=O.accessibilityData)==null?void 0:B.label)!=null?Y:""},I=_.dp($NG,function(){return W.data().teamEntityKey});
return _.u("ytw-fantasy-team-view-model",{class:P},_.u(_.V,{cond:function(){return W.data().teamLogo},
then:function(O){return _.u(_.bq,{className:"ytwFantasyTeamViewModelLogo",data:O,alt:x})}}),_.u("div",{class:"ytwFantasyTeamViewModelMetadata"},_.u("div",{class:"ytwFantasyTeamViewModelHeader"},_.u(_.mQ,{className:"ytwFantasyTeamViewModelScore",
text:function(){var O;return(O=I())==null?void 0:O.score}}),_.u(_.Sy,{icon:function(){var O;
return(O=I())==null?void 0:O.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.u(_.mQ,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var O;return(O=I())==null?void 0:O.projectedScore}})),_.u(_.mQ,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return W.data().primaryText}}),_.u(_.mQ,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return W.data().secondaryText}}),_.u(_.mQ,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return W.data().tertiaryText}})),_.u(_.mQ,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var O;return(O=I())==null?void 0:O.score}}))},"yd");_.lq(_.kl(function(W){return _.u("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.u("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.u(_.Ea,{data:function(){return W.data().summaryHeader}},{fantasySectionHeaderViewModel:evM})),_.u(_.Ea,{data:function(){return W.data().userTeam}},{fantasyTeamViewModel:cvl}),_.u(_.Ea,{data:function(){return W.data().opponentTeam}},{fantasyTeamViewModel:cvl}))},"zd"),"fantasy-league-summary-view-model",{props:{data:_.cv}});var aMz=_.kl(function(W){var P=_.bw(W,{shape:{},useCustomTabRenderable:!1}),x=P.shape;P=P.useCustomTabRenderable;var I=W.customTabRenderable,O=function(){return x().disabled},B=function(){return x().selected},Y=function(){return x().title},K=function(){return x().icon},Z=_.fa();
W=_.yB(function(m){var t;if(!O()&&((t=x().aTagConfig)==null?0:t.onclick))x().aTagConfig.onclick(m);return!1});
var d=_.yB(function(m){if(m.key==="Enter"||m.key==="ArrowUp"||m.key==="ArrowDown")m.preventDefault(),Z.value.click();return!1}),v={};
return _.u("yt-tab-shape",{class:_.O4("yt-tab-shape-wiz",function(){return x().className},(v["yt-tab-shape-wiz__tab--last-tab"]=function(){return x().isLastTab},v["yt-tab-shape-wiz--host-disabled"]=O,v["yt-tab-shape-wiz--host-clickable"]=!I,v)),
role:I?void 0:"tab","aria-selected":B!=null?B:!1,"aria-disabled":O,tabindex:I?void 0:0,"on:click":W,"on:keydown":d,el:Z,"tab-identifier":function(){return x().identifier},
"tab-title":Y},_.u(_.V,{cond:P,then:function(){return I()},
else:function(){var m={},t={};return _.u(_.qS,null,_.u("div",{class:_.O4("yt-tab-shape-wiz__tab",(m["yt-tab-shape-wiz__tab--tab-selected"]=B,m))},_.u(_.V,{cond:K,then:function(C){return _.u(_.Sy,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return C().iconType}})}}),Y),_.u("div",{class:_.O4("yt-tab-shape-wiz__tab-bar",(t["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=B,t))}))}}))},"Ad");
aMz.idomCompat={callbacks:{customTabRenderable:!0}};_.kJb=_.kl(function(W){var P=W.shape;W=_.n(_.YV(48,void 0,"r9IBlb"));var x=W.next().value,I=W.next().value;W=_.n(_.YV(0,void 0,"Bd7rmd"));var O=W.next().value,B=W.next().value,Y=function(){return P().tabs},K=_.fa(),Z=function(){var d,v;
return(v=(d=Y())==null?void 0:d.findIndex(function(m){return m.selected}))!=null?v:-1};
_.AQ(function(){var d=K.value.querySelectorAll("yt-tab-shape"),v=Z()>-1?d[Z()]:void 0;_.Gr.addJob(function(){I((v==null?void 0:v.getBoundingClientRect().width)||0)},8,0)});
_.jj(function(){var d=Z(),v=_.Gr.addJob(function(){var m,t=((m=K.value)==null?void 0:m.querySelectorAll("yt-tab-shape"))||[],C;I(((C=d>-1?t[d]:void 0)==null?void 0:C.getBoundingClientRect().width)||0);for(C=m=0;C<d;C++)m+=t[C].offsetWidth+24;_.$$("HTML_DIR")==="rtl"&&(m=-m);B(m)},8,0);
_.C4(function(){_.Gr.cancelJob(v)})});
W={};return _.u("yt-tab-group-shape",{class:_.O4("yt-tab-group-shape-wiz",(W["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return P().isOverflowHidden},W)),
el:K},_.u(_.V,{cond:Y,then:function(d){return _.u(_.qS,null,_.u("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.u(_.sV,{each:d},function(v,m){return _.u(aMz,{shape:function(){return Object.assign({},v,{isLastTab:m()===d().length-1})},
customTabRenderable:v.customTabRenderable,useCustomTabRenderable:!!v.customTabRenderable})})),_.u(bpd,{width:x,
sliderOffset:O}))}}))},"Bd");
_.kJb.idomCompat=!0;var bpd=_.kl(function(W){var P=_.a7(W.sliderOffset,0),x=W.width;return _.u("div",{class:"yt-tab-group-shape-wiz__slider",style:_.oP({width:function(){return x()+"px"},
transform:function(){return"translateX("+P()+"px)"}})})},"Cd");var Ujc=_.kl(function(W){var P=function(){var B,Y,K;return(K=(B=W.data().playerLogoAccessibility)==null?void 0:(Y=B.accessibilityData)==null?void 0:Y.label)!=null?K:""},x=_.dp(w_x,function(){return W.data().playerEntityKey}),I={};
I=_.O4("ytwFantasyPlayerViewModelHost",(I.ytwFantasyPlayerViewModelPlaying=function(){var B;return!((B=x())==null||!B.isPlayerPlaying)},I.ytwFantasyPlayerViewModelOnField=function(){var B;
return((B=x())==null?void 0:B.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},I.ytwFantasyPlayerViewModelRedZone=function(){var B;
return((B=x())==null?void 0:B.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},I));
var O=function(){var B,Y,K,Z=((B=_.FY().resolve(_.Rl(_.hF)))==null?0:B())?(Y=W.data().playerLogoBackgroundColor)==null?void 0:Y.darkTheme:(K=W.data().playerLogoBackgroundColor)==null?void 0:K.lightTheme;return Z===void 0?"":_.Qy(Z)};
return _.u("ytw-fantasy-player-view-model",{class:I},_.u(_.V,{cond:function(){return W.data().playerLogo},
then:function(B){return _.u("div",{class:"ytwFantasyPlayerViewModelLogo"},_.u("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.u(_.bq,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.oP({"background-color":O}),data:B,alt:P})),_.u("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.u(_.Sy,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.u("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.u("div",{class:"ytwFantasyPlayerViewModelHeader"},_.u(_.mQ,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var B;return(B=W.data())==null?void 0:B.playerNameText}}),_.u(_.mQ,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var B;return(B=W.data())==null?void 0:B.playerDescriptionText}})),_.u("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.u(_.mQ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=x())==null?void 0:B.gamePeriodText}}),_.u(_.mQ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=W.data())==null?void 0:B.opponentTeamText}}),_.u(_.mQ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=x())==null?void 0:B.gameStatusText}}),_.u(_.mQ,{className:_.O4("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var B;return(B=x())==null?void 0:B.playerStatusText}})),_.u("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.u(_.mQ,{text:function(){var B;
return(B=x())==null?void 0:B.playerStatsText}}))),_.u(_.mQ,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var B;return(B=x())==null?void 0:B.fantasyScore}}))},"Dd");var X3P=_.kl(function(W){return _.u("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.u(_.V,{cond:function(){return W.data().players},
then:function(P){return _.u(_.Ea,{data:P},{fantasyPlayerViewModel:Ujc})}}))},"Ed");var fM3=_.kl(function(W){var P=_.n(_.Zh(function(){var O;return(O=W.data().selectedTabIdentifierKey)!=null?O:""})),x=P.next().value,I=P.next().value;
_.Qa(function(){var O;(O=W.setSelectedTabSignal)==null||O.call(W,x)});
return _.u("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.u("div",{class:"ytTabbedViewModelTabGroup"},_.u(_.kJb,{shape:function(){var O=W.data(),B=[],Y={tabs:B};if(!O.tabs)return Y;O=_.n(O.tabs);for(var K=O.next(),Z={};!K.done;Z={tabViewModel:void 0},K=O.next())if(Z.tabViewModel=_.Q(K.value,Sxb),Z.tabViewModel){var d=K=void 0;B.push({aTagConfig:{onclick:function(v){return function(){var m;I((m=v.tabViewModel.tabIdentifier)!=null?m:"")}}(Z)},
identifier:Z.tabViewModel.tabIdentifier,selected:x()===Z.tabViewModel.tabIdentifier,title:(d=(K=Z.tabViewModel.title)==null?void 0:K.content)!=null?d:""})}return Y}})),_.u(_.Ea,{data:function(){var O,B=_.n((O=W.data().tabs)!=null?O:[]);
for(O=B.next();!O.done;O=B.next())if((O=_.Q(O.value,Sxb))&&O.tabIdentifier===x())return O.content}},{fantasyRosterViewModel:X3P}))},"Fd");_.lq(_.kl(function(W){var P=_.n(xFC()),x=P.next().value,I=P.next().value;return _.u("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.u(_.mQ,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return W.data().title}}),_.u(_.V,{cond:function(){return W.data().tabbedViewModel},
then:function(O){return _.u(_.Ea,{data:O},{tabbedViewModel:function(B){return _.u(fM3,{data:B.data,setSelectedTabSignal:I})}})}}),_.u(_.V,{cond:function(){var O,B=(O=_.Q(W.data().tabbedViewModel,uzp))==null?void 0:O.tabs;
O=_.Q(B==null?void 0:B[0],Sxb);B=_.Q(B==null?void 0:B[1],Sxb);var Y=O==null?void 0:O.tabIdentifier;if(x()===Y){var K,Z;if(!((K=_.Q(O==null?void 0:O.content,s1k))==null?0:(Z=K.players)==null?0:Z.length))return W.data().noUserTeamPlayersText}else{var d,v;if(!((d=_.Q(B==null?void 0:B.content,s1k))==null?0:(v=d.players)==null?0:v.length))return W.data().noOpponentTeamPlayersText}},
then:function(O){return _.u(_.mQ,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:O})}}))},"Gd"),"ytw-fantasy-matchup-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){return _.u("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.u(_.mQ,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return W.data().title}}),_.u(_.V,{cond:function(){return W.data().matchupTeamPairs},
then:function(P){return _.u(_.sV,{each:P,keyBy:"INDEX"},function(x){return _.u("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.u(_.Ea,{data:function(){return[x().firstTeam,x().secondTeam]}},{fantasyTeamViewModel:function(I){return _.u(cvl,{data:I.data,
compact:!0})}}))})}}))},"Hd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=function(){var O,B,Y;return(Y=(O=W.data().userLogoAccessibility)==null?void 0:(B=O.accessibilityData)==null?void 0:B.label)!=null?Y:""},x=function(){var O,B,Y;
return(Y=(O=W.data().opponentLogoAccessibility)==null?void 0:(B=O.accessibilityData)==null?void 0:B.label)!=null?Y:""},I=_.dp(Mho,function(){return W.data().entityKey});
return _.u("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.u("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.u(_.V,{cond:function(){return W.data().userLogo},
then:function(O){return _.u(_.bq,{className:"ytwFantasyWinProbabilityViewModelLogo",data:O,alt:P})}}),_.u("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.u(_.mQ,{text:function(){return W.data().title}})),_.u(_.V,{cond:function(){return W.data().opponentLogo},
then:function(O){return _.u(_.bq,{className:"ytwFantasyWinProbabilityViewModelLogo",data:O,alt:x})}})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.u("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.u(_.mQ,{text:function(){var O;
return(O=I())==null?void 0:O.userWinNumberLabel}})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.u("div",{class:_.O4("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.oP({flex:function(){var O,B;return(B=(O=I())==null?void 0:O.userWinNumber)!=null?B:50}})}),_.u("div",{class:_.O4("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.oP({flex:function(){var O,B;return(B=(O=I())==null?void 0:O.opponentWinNumber)!=null?B:50}})})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.u(_.mQ,{text:function(){var O;
return(O=I())==null?void 0:O.opponentWinNumberLabel}}))))},"Id"),"fantasy-win-probability-view-model",{props:{data:_.cv}});_.Ad("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var AG=function(){var W=_.b.apply(this,arguments)||this;W.darkerPanels=_.p("web_watch_darker_panels");W.commentsHidePanelButton=!1;W.isWatchGrid=!1;W.continuationShowButton=!1;W.isSearch=!1;W.isConstrainedList=!1;W.isWatch=!1;W.eligibleToSwitchToGrid=!1;W.epRestyle=!1;W.isCarouselInFeed=!0;W.topSpacingZero=!1;W.continuationIsInitialLoad=!0;W.enableSqueezebackPanels=_.p("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.p("desktop_shorts_v2_anchored_panel");W.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};W.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return W};
_.A(AG,_.b);_.J=AG.prototype;_.J.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var P;(P=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||P.forEach(function(x){x.containerType=W})}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.p("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.p("kevlar_low_priority_continuation")}}};
_.J.created=function(){this.JSC$14400_cachedViewportHeight=_.$$("initialInnerHeight")||window.innerHeight};
_.J.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var W=_.g(this.hostElement).querySelector("ytd-comments-header-renderer");W&&(W.hidePanelButton=this.commentsHidePanelButton)}};
_.J.onRetrieveLocation=function(W,P){this.containsComments()&&(this.firstCommentsLoaded=P.hasComments=!0)};
_.J.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.J.onLoadReloadContinuation=function(W,P){var x=this;W.stopPropagation();this.isReloading=!0;_.Lf(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(I){var O=_.FY().resolve(_.v5);I=P(I);O.postData(I).then(function(B){x.onReloadContinuationData(B)})}})};
_.J.onReloadContinuationData=function(W){if(W=this.get("response.continuationContents.itemSectionContinuation",W)||this.get("response.contents.itemSectionRenderer",W)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",W)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",W))this.set("data.contents",W.contents||W.results),W.header&&this.set("data.header",W.header),this.set("data.continuations",
W.continuations||[]);this.isReloading=!1};
_.J.computeContentsClass=function(W){return W?"reloading":""};
_.J.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.J.computeSectionIdentifier=function(W){return W==null?void 0:W.sectionIdentifier};
_.J.computeFitContainer=function(W){return(W==null?void 0:W.sectionIdentifier)==="youchat-item-section"};
_.J.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.p("kevlar_disable_comments_auto_load")};
_.J.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.J.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeHasDestinationShelfRenderer=function(W){var P,x;return!!(W==null?0:(P=W.contents)==null?0:(x=P[0])==null?0:x.destinationShelfRenderer)};
_.J.computeHasSectionGroupViewModel=function(W){var P,x;return!!(W==null?0:(P=W.contents)==null?0:(x=P[0])==null?0:x.sectionGroupViewModel)};
_.J.computeStaticCommentsHeader=function(W){return W&&this.containsComments()};
_.J.computeEpRestyle=function(W){return _.p("web_ep_restyling")&&W&&this.containsComments()};
_.J.computeIsContinuationCommentSection=function(W){return(W==null?void 0:W.targetId)==="shorts-engagement-panel-comments-section"||(W==null?void 0:W.targetId)==="comments-section"||(W==null?void 0:W.targetId)==="engagement-panel-comments-section"};
_.J.computeSuppressPaddingDisclaimer=function(){var W,P,x,I;return!!((W=this.data)==null?0:(P=W.contents)==null?0:(x=P[0])==null?0:(I=x.productListHeaderRenderer)==null?0:I.suppressPaddingDisclaimer)};
_.J.computeHeaderStyle=function(W){switch(W==null?void 0:W.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.J.dataChanged=function(){this.firstCommentsLoaded=!1};
_.J.observeDataContentsLength=function(){var W,P;((W=this.data)==null?0:(P=W.contents)==null?0:P.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.J.onYtDismissibleItemDismissedChange=function(W){this._setItemDismissed(W.type==="yt-dismissible-item-dismissed")};
_.J.triggerContinuations=function(){for(var W=_.g(this.hostElement).querySelector("#continuations").children,P=0;P<W.length;P++)W[P].trigger()};
_.J.triggerInitialContinuations=function(){for(var W=_.g(this.hostElement).querySelector("#continuations").children,P=0;P<W.length;P++)W[P].triggerIfNotPreviouslyTriggered()};
_.J.handleYtItemSectionContinuation=function(W,P){var x;P&&((x=this.data)==null?void 0:x.sectionIdentifier)!==P||(this.set("data.continuations",[W]),this.triggerContinuations())};
_.J.handleYtItemSectionReplace=function(W,P){var x;P&&((x=this.data)==null?void 0:x.sectionIdentifier)!==P||(this.set("data.contents",W),this.set("data.continuations",[]))};
_.J.computeUseHeightHack=function(W){return W&&!_.p("kevlar_disable_height_hack")};
_.J.computeTopSpacingZero=function(W){return W};
_.J.continuationShowButtonChanged=function(){var W=_.g(this.hostElement).querySelector("ytd-continuation-item-renderer");W&&(W.showButton=this.continuationShowButton)};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("data-changed",this.data))};
_.N1.Object.defineProperties(AG.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.p("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return!!((W=this.data)==null?0:(P=W.contents)==null?0:(x=P[0])==null?0:x.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I,O,B,Y;return!!((W=this.data)==null?0:(P=W.contents)==null?0:(x=P[0])==null?0:(I=x.shelfRenderer)==null?0:(O=I.content)==null?0:(B=O.gridRenderer)==null?0:(Y=B.targetId)==null?0:Y.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return!!((W=this.data)==null?0:(P=W.contents)==null?0:(x=P[0])==null?0:x.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return!!((W=this.data)==null?0:(P=W.contents)==null?0:(x=P[0])==null?0:x.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Pi("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.p("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.p("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14400_cachedViewportHeight-130)/150)},
set:function(){}}});
AG.prototype.dataChangedForBinding=AG.prototype.dataChangedForBinding;AG.prototype.continuationShowButtonChanged=AG.prototype.continuationShowButtonChanged;AG.prototype.onYtDismissibleItemDismissedChange=AG.prototype.onYtDismissibleItemDismissedChange;AG.prototype.observeDataContentsLength=AG.prototype.observeDataContentsLength;AG.prototype.dataChanged=AG.prototype.dataChanged;AG.prototype.onServiceRequestCompleted=AG.prototype.onServiceRequestCompleted;AG.prototype.onLoadReloadContinuation=AG.prototype.onLoadReloadContinuation;
AG.prototype.onRetrieveLocation=AG.prototype.onRetrieveLocation;AG.prototype.commentsHidePanelButtonChanged=AG.prototype.commentsHidePanelButtonChanged;AG.prototype.updateLockupContainerTypes=AG.prototype.updateLockupContainerTypes;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],AG.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],AG.prototype,"ytLazyListBehavior",void 0);_.f([_.h(_.M2.YtNextContinuationBehavior),_.l("design:type",Object)],AG.prototype,"ytNextContinuationBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],AG.prototype,"ytContinuationHandlerBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],AG.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],AG.prototype,"ytdReduxBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],AG.prototype,"darkerPanels",void 0);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],AG.prototype,"engagementPanel",void 0);
_.f([_.c(),_.l("design:type",Object)],AG.prototype,"commentsHidePanelButton",void 0);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"isWatchGrid",void 0);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"continuationShowButton",void 0);_.f([_.c({computed:"computeIsContinuationCommentSection(data)"}),_.l("design:type",Boolean)],AG.prototype,"continuationIsCommentsSection",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],AG.prototype,"autoFill",void 0);
_.f([_.c(),_.l("design:type",Boolean)],AG.prototype,"continuationDisablePrescanVisibility",void 0);_.f([_.c(),_.l("design:type",Boolean)],AG.prototype,"isReloading",void 0);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"isSearch",void 0);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"isConstrainedList",void 0);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"isWatch",void 0);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"eligibleToSwitchToGrid",void 0);
_.f([_.c({selector:_.br}),_.l("design:type",Object)],AG.prototype,"isGridViewEnabled",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.l("design:type",Object)],AG.prototype,"epRestyle",void 0);_.f([_.H("isWatch"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AG.prototype,"hideShortsShelfHeader",null);
_.f([_.H("isSearch","isWatch"),_.l("design:type",String),_.l("design:paramtypes",[])],AG.prototype,"thumbnailWidth",null);_.f([_.H("isSearch","isWatch"),_.l("design:type",String),_.l("design:paramtypes",[])],AG.prototype,"sizing",null);_.f([_.H("isWatch","isGridViewEnabled","data"),_.c({reflectToAttribute:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],AG.prototype,"lockupContainerType",null);
_.f([_.OZ("lockupContainerType","data"),_.l("design:type",Function),_.l("design:paramtypes",[Number]),_.l("design:returntype")],AG.prototype,"updateLockupContainerTypes",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],AG.prototype,"pageSubtype",void 0);_.f([_.c({computed:"computeContainerWidth()"}),_.l("design:type",Number)],AG.prototype,"containerWidth",void 0);_.f([_.c(),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AG.prototype,"isPlaylist",null);
_.f([_.c(),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AG.prototype,"isClipList",null);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"isCarouselInFeed",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AG.prototype,"isPlaylistVideoContainer",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AG.prototype,"isSearchFrictionPage",null);
_.f([_.c({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.l("design:type",Boolean)],AG.prototype,"useHeightHack",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.l("design:type",Object)],AG.prototype,"topSpacingZero",void 0);_.f([_.c({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.l("design:type",Boolean)],AG.prototype,"showButton",void 0);
_.f([_.c(),_.l("design:type",Boolean)],AG.prototype,"firstCommentsLoaded",void 0);_.f([_.c(),_.l("design:type",Object)],AG.prototype,"continuationIsInitialLoad",void 0);_.f([_.c(),_.l("design:type",Boolean)],AG.prototype,"isSearchDova",void 0);_.f([_.c({reflectToAttribute:!0,readOnly:!0}),_.l("design:type",Boolean)],AG.prototype,"itemDismissed",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.l("design:type",String)],AG.prototype,"sectionIdentifier",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.l("design:type",String)],AG.prototype,"fitContainer",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.l("design:type",Boolean)],AG.prototype,"hasDestinationShelfRenderer",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.l("design:type",Boolean)],AG.prototype,"staticCommentsHeader",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],AG.prototype,"enableSqueezebackPanels",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],AG.prototype,"enableAnchoredPanel",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.l("design:type",Boolean)],AG.prototype,"hasSectionGroupViewModel",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.l("design:type",Boolean)],AG.prototype,"suppressDisclaimerSeparator",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.l("design:type",String)],AG.prototype,"headerStyle",void 0);_.f([_.H("isSearch"),_.l("design:type",Object),_.l("design:paramtypes",[])],AG.prototype,"lockupExperiments",null);
_.f([_.H("isSearch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AG.prototype,"typographyBump",null);_.f([_.BM("#header"),_.l("design:type",HTMLElement)],AG.prototype,"header",void 0);_.f([_.OZ("commentsHidePanelButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AG.prototype,"commentsHidePanelButtonChanged",null);
_.f([_.I7("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],AG.prototype,"onRetrieveLocation",null);_.f([_.I7("yt-load-reload-continuation"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Function]),_.l("design:returntype")],AG.prototype,"onLoadReloadContinuation",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AG.prototype,"onServiceRequestCompleted",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AG.prototype,"dataChanged",null);_.f([_.K_("data.contents.length"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AG.prototype,"observeDataContentsLength",null);
_.f([_.I7("yt-dismissible-item-dismissed"),_.I7("yt-dismissible-item-undismissed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],AG.prototype,"onYtDismissibleItemDismissedChange",null);_.f([_.OZ("continuationShowButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AG.prototype,"continuationShowButtonChanged",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AG.prototype,"dataChangedForBinding",null);AG=_.f([_.U({is:"ytd-item-section-renderer",disableElementRegistration:!0})],AG);
_.X(AG,"ytd-item-section-renderer",function(){if(yUA!==void 0)return yUA;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return yUA=W},{mode:1});var N$c;var noS=_.bx(_.KK("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var I4R={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var lMz={},B5R=(lMz[0]={title:_.Ru(_.KK("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ru(_.KK("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:rw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},lMz[1]={title:_.Ru(_.KK("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:rw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},lMz);_.Ad("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var zy=function(){var W=_.b.apply(this,arguments)||this;W.allVideosCount=0;W.allPlaylistCount=0;W.shouldRenderDownloadsBanner=!1;W.hasOptedIntoSmartDownloads=!1;W.areAllSmartDownloadsDeleted=!1;W.smartDownloadsCompleted=!1;return W};
_.A(zy,_.b);zy.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
zy.prototype.attached=function(){this.downloadsToRenderChanged()};
zy.prototype.detached=function(){this.set("renderableData",{})};
zy.prototype.downloadsToRenderChanged=function(){var W=_.Xe().getState().entities,P=_.tb(W),x=_.p("kevlar_playlist_dl_page_killswitch")?m3U(W):_.pR(W),I=_.Stx(W),O=_.dE(P);W=_.jl(W);this.set("renderableData",y$G(x,P,I,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,O,W))};
zy.prototype.downloadsToRenderChanged=zy.prototype.downloadsToRenderChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],zy.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],zy.prototype,"renderableData",void 0);_.f([_.c({selector:_.MO7}),_.l("design:type",Object)],zy.prototype,"allVideosCount",void 0);_.f([_.c({selector:f6t}),_.l("design:type",Object)],zy.prototype,"allPlaylistCount",void 0);_.f([_.c({selector:_.ayd}),_.l("design:type",Object)],zy.prototype,"shouldRenderDownloadsBanner",void 0);_.f([_.c({selector:_.bwo}),_.l("design:type",Object)],zy.prototype,"hasOptedIntoSmartDownloads",void 0);
_.f([_.c({selector:_.kNG}),_.l("design:type",Object)],zy.prototype,"areAllSmartDownloadsDeleted",void 0);_.f([_.c({selector:U3m}),_.l("design:type",Object)],zy.prototype,"smartDownloadsCompleted",void 0);_.f([_.K_("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zy.prototype,"downloadsToRenderChanged",null);
zy=_.f([_.U({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],zy);
_.X(zy,"ytd-offline-item-section-renderer",function(){if(N$c!==void 0)return N$c;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return N$c=W},
{mode:1});var T$A;var rvl;var Gy=function(){return _.b.apply(this,arguments)||this};
_.A(Gy,_.b);
Gy.prototype.onDataChanged=function(){if(this.JSC$14427_lastData){var W=this.getFilterClass(this.JSC$14427_lastData.status);W&&this.hostElement.classList.remove(W)}var P;(W=this.getFilterClass((P=this.data)==null?void 0:P.status))&&this.hostElement.classList.add(W);W==="selected"?_.g(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.g(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");W==="disabled"?_.g(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.g(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14427_lastData=this.data};
Gy.prototype.getFilterClass=function(W){switch(W){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Gy.prototype.onDataChanged=Gy.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Gy.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gy.prototype,"onDataChanged",null);Gy=_.f([_.U({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Gy);
_.X(Gy,"ytd-search-filter-renderer",function(){if(rvl!==void 0)return rvl;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return rvl=W},{mode:_.F4("kevlar_poly_si_batch_j075")?1:2});var EI=function(){return _.b.apply(this,arguments)||this};
_.A(EI,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],EI.prototype,"data",void 0);EI=_.f([_.U({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],EI);
_.X(EI,"ytd-search-filter-group-renderer",function(){if(T$A!==void 0)return T$A;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return T$A=W},{mode:_.F4("kevlar_poly_si_batch_j075")?1:2});var ipk;var DO=function(){return _.b.apply(this,arguments)||this};
_.A(DO,_.b);DO.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.ZR());this.isCollapsed=!this.isCollapsed};
DO.prototype.navigateToAboutTheseResultsPage=function(){var W=s0("https://www.youtube.com/howyoutubeworks/product-features/search/");W?_.ME(window,W,"_blank"):_.hQ(Error("Qh"))};
DO.prototype.dataChanged=function(){this.isCollapsed=!0};
DO.prototype.computeShowBottomBorder=function(){var W,P,x;return!!((W=this.data)==null?0:(P=W.button)==null?0:P.toggleButtonRenderer)||!((x=this.data)==null||!x.aboutTheseResultsButton)};
DO.prototype.dataChanged=DO.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],DO.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.l("design:type",Boolean)],DO.prototype,"showBottomBorder",void 0);_.f([_.c(),_.l("design:type",Boolean)],DO.prototype,"renderCollapsibleMenu",void 0);
_.f([_.c(),_.l("design:type",Boolean)],DO.prototype,"isCollapsed",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DO.prototype,"dataChanged",null);DO=_.f([_.U({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],DO);
_.X(DO,"ytd-search-sub-menu-renderer",function(){if(ipk!==void 0)return ipk;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ipk=W},{mode:1});var Rvm;var FFb=new _.Lb("SECTION_LIST_RENDERER_TOKEN");var q6p;var Ms=function(){return _.b.apply(this,arguments)||this};
_.A(Ms,_.b);Ms.prototype.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ms.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],Ms.prototype,"headerStyle",void 0);Ms=_.f([_.U({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Ms);
_.X(Ms,"ytd-text-header-renderer",function(){if(q6p!==void 0)return q6p;var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return q6p=W},{mode:1});var LFb;var $q=function(){return _.b.apply(this,arguments)||this};
_.A($q,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$q.prototype,"data",void 0);$q=_.f([_.U({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],$q);
_.X($q,"ytd-minor-moment-header-renderer",function(){if(LFb!==void 0)return LFb;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return LFb=W},{mode:1});var WKc;var wa=function(){return _.b.apply(this,arguments)||this};
_.A(wa,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wa.prototype,"data",void 0);wa=_.f([_.U({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],wa);
_.X(wa,"ytd-minor-moment-setting-alert-renderer",function(){if(WKc!==void 0)return WKc;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return WKc=W},{mode:1});var P2M;var xAw;var hG=function(){var W=_.b.apply(this,arguments)||this;W.booleanSettingById=!1;W.smartDownloadsEnabledVE=_.td(128287);W.smartDownloadsDisabledVE=_.td(128286);W.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return W};
_.A(hG,_.b);_.J=hG.prototype;_.J.attachSmartDownloadsSettingVes=function(){var W;this.activeVeForLogging||((W=this.data)==null?void 0:W.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.BK(_.YY(),this.smartDownloadsEnabledVE),_.BK(_.YY(),this.smartDownloadsDisabledVE))};
_.J.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Lf(this.hostElement,"yt-settings-switch-ready")};
_.J.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.J.onSwitchChange=function(W){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(W=_.af(W).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.p("kevlar_settings_switch_resolve_command_killswitch")?_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(W)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.J.handleUpdateSettingsSwitch=function(W){(W=_.Q(W,eRm))&&this.data&&this.data.id===W.id&&this.set("data.enabled",!!W.enabled)};
_.J.onToggleSettingsSwitch=function(W,P){this.data&&this.data.id===W&&this.set("data.enabled",P!=null?P:!this.data.enabled)};
_.J.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.iG.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.J.maybeLogSmartDownloadsSettingVisibility=function(){var W=_.E_(),P;W&&((P=this.data)==null?void 0:P.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.c7(W,[this.smartDownloadsEnabledVE]),_.au(W,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.c7(W,[this.smartDownloadsDisabledVE]),_.au(W,[this.smartDownloadsEnabledVE])))};
_.J.maybeLogSmartDownloadsSettingClick=function(){var W;((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.yI(_.YY(),this.activeVeForLogging)};
_.J.updateDataEnabledFromBinding=function(W){this.set("data.enabled",W.detail.value)};
_.N1.Object.defineProperties(hG.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!W&&(W=this.ytRendererBehavior.getSimpleString(this.data.title));return W}}});
hG.prototype.dataChanged=hG.prototype.dataChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],hG.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],hG.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],hG.prototype,"ytComponentBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],hG.prototype,"data",void 0);_.f([_.c({selector:function(W,P){if(Object.keys(W==null?void 0:W.entities).length)switch(P){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return VOS(W.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.l("design:type",Object)],hG.prototype,"booleanSettingById",void 0);_.f([_.c(),_.l("design:type",_.z7)],hG.prototype,"activeVeForLogging",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],hG.prototype,"toggleAriaLabel",null);_.f([_.K_("data"),_.K_("booleanSettingById"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hG.prototype,"dataChanged",null);
hG=_.f([_.U({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],hG);
_.X(hG,"ytd-settings-switch-renderer",function(){if(xAw!==void 0)return xAw;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return xAw=W},{mode:1});var HQ=function(){return _.b.apply(this,arguments)||this};
_.A(HQ,_.b);HQ.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}}}}};
_.N1.Object.defineProperties(HQ.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var W=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(W+=" remove-left-margin");this.data.extraBottomSpace&&(W+=" extra-bottom-space");return W}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],HQ.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],HQ.prototype,"contentsClassName",null);HQ=_.f([_.U({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],HQ);
_.X(HQ,"ytd-minor-moment-setting-section-renderer",function(){if(P2M!==void 0)return P2M;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return P2M=W},{mode:1});var Imb;var eP=function(){return _.b.apply(this,arguments)||this};
_.A(eP,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],eP.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eP.prototype,"data",void 0);eP=_.f([_.U({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],eP);
_.X(eP,"ytd-empty-product-details-renderer",function(){if(Imb!==void 0)return Imb;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Imb=W},{mode:1});var OGp;var J5A;var cQ=function(){var W=_.b.apply(this,arguments)||this;W.expanded=!0;return W};
_.A(cQ,_.b);cQ.prototype.getBadgeRowClass=function(W,P,x){for(var I=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),O=I.next();!O.done;O=I.next())O.value.onShow();W=W.selected;return x?W!==-1?W===P?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(W!==void 0?W:0)===P?"badge-line":"badge-hidden"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cQ.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],cQ.prototype,"expanded",void 0);cQ=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],cQ);
_.X(cQ,"ytd-sponsorships-loyalty-badges-renderer",function(){if(J5A!==void 0)return J5A;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return J5A=W},{mode:1});var Bfi;var aA=function(){var W=_.b.apply(this,arguments)||this;W.expanded=!0;return W};
_.A(aA,_.b);aA.prototype.getContainerClasses=function(W,P){W=W?"expanded":"collapsed";P&&(W+=" item");return W};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],aA.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],aA.prototype,"expanded",void 0);aA=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],aA);
_.X(aA,"ytd-sponsorships-perk-renderer",function(){if(Bfi!==void 0)return Bfi;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Bfi=W},{mode:1});var nkk;var bU=function(){var W=_.b.apply(this,arguments)||this;W.expanded=!0;return W};
_.A(bU,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bU.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],bU.prototype,"expanded",void 0);bU=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],bU);
_.X(bU,"ytd-sponsorships-perks-renderer",function(){if(nkk!==void 0)return nkk;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return nkk=W},{mode:1});var kq=function(){var W=_.b.apply(this,arguments)||this;W.isCollapsed=!1;return W};
_.A(kq,_.b);kq.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
kq.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
kq.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var W;this.expandCollapseButton=_.Q((W=this.data)==null?void 0:W.expandButton,_.w6)}else{var P;this.expandCollapseButton=_.Q((P=this.data)==null?void 0:P.collapseButton,_.w6)}};
kq.prototype.updateExpandCollapseButton=kq.prototype.updateExpandCollapseButton;kq.prototype.onDataChanged=kq.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kq.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kq.prototype,"isCollapsed",void 0);_.f([_.c(),_.l("design:type",Object)],kq.prototype,"expandCollapseButton",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kq.prototype,"onDataChanged",null);_.f([_.K_("data","isCollapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kq.prototype,"updateExpandCollapseButton",null);kq=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],kq);
_.X(kq,"ytd-sponsorships-expandable-perks-renderer",function(){if(OGp!==void 0)return OGp;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return OGp=W},{mode:1});var YgZ;var UI=function(){return _.b.apply(this,arguments)||this};
_.A(UI,_.b);UI.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],UI.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UI.prototype,"data",void 0);UI=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],UI);
_.X(UI,"ytd-sponsorships-actionable-message-renderer",function(){if(YgZ!==void 0)return YgZ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return YgZ=W},{mode:1});var y5M;var XT=function(){return _.b.apply(this,arguments)||this};
_.A(XT,_.b);_.J=XT.prototype;_.J.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.J.getExpansionIcon=function(W){return W?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.J.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.computeMessageContainerStyle=function(W){var P=W.expandableItems?" style-clickable":"";return W.messageContainerStyle?W.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+P:"style-unspecified"+P};
_.J.isSinglePerk=function(W){return!!W.messageContainerStyle&&(W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.J.onExpandedChanged=function(){var W=this;if(this.expanded)for(var P=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),x=P.next();!x.done;x=P.next())x.value.onShow();_.Xm(this,function(){_.Lf(W.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
XT.prototype.onDataChanged=XT.prototype.onDataChanged;XT.prototype.onExpandedChanged=XT.prototype.onExpandedChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],XT.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],XT.prototype,"expanded",void 0);
_.f([_.OZ("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XT.prototype,"onExpandedChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XT.prototype,"onDataChanged",null);XT=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],XT);
_.X(XT,"ytd-sponsorships-expandable-message-renderer",function(){if(y5M!==void 0)return y5M;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return y5M=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var KKM;var fI=function(){return _.b.apply(this,arguments)||this};
_.A(fI,_.b);fI.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"}}}}};
fI.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.Q(this.data.endButton,_.w6).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
fI.prototype.onDataChanged=fI.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],fI.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fI.prototype,"onDataChanged",null);
fI=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],fI);
_.X(fI,"ytd-sponsorships-heading-renderer",function(){if(KKM!==void 0)return KKM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return KKM=W},{mode:1});var ZGm;var Ns=function(){return _.b.apply(this,arguments)||this};
_.A(Ns,_.b);_.f([_.c(),_.l("design:type",Object)],Ns.prototype,"data",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);Ns=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Ns);
_.X(Ns,"ytd-sponsorships-links-renderer",function(){if(ZGm!==void 0)return ZGm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ZGm=W},{mode:1});var oki;var lU=function(){return _.b.apply(this,arguments)||this};
_.A(lU,_.b);_.J=lU.prototype;_.J.onDataChanged=function(){if(this.data&&this.data.expandableItems){var W;(W=_.g(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.setAttribute("role","button")}else{var P;(P=_.g(this.hostElement).querySelector("tp-yt-paper-button"))==null||P.removeAttribute("role")}};
_.J.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.getExpansionIcon=function(W){return W?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.J.getTileClasses=function(W){return W?"tile expandable-tile":"tile"};
_.J.getButtonDisabled=function(W){return W?void 0:""};
lU.prototype.onDataChanged=lU.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],lU.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],lU.prototype,"expanded",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lU.prototype,"onDataChanged",null);
lU=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],lU);
_.X(lU,"ytd-sponsorships-list-tile-renderer",function(){if(oki!==void 0)return oki;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return oki=W},{mode:1});var Sgi;var uSM;var Ty=function(){return _.b.apply(this,arguments)||this};
_.A(Ty,_.b);Ty.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ty.prototype,"data",void 0);Ty=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Ty);
_.X(Ty,"ytd-sponsorships-promotion-renderer",function(){if(uSM!==void 0)return uSM;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return uSM=W},{mode:1});var dAl;var ra=function(){return _.b.apply(this,arguments)||this};
_.A(ra,_.b);ra.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ra.prototype,"data",void 0);ra=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ra);
_.X(ra,"ytd-sponsorships-purchase-option-renderer",function(){if(dAl!==void 0)return dAl;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return dAl=W},{mode:1});var swb;var vkc;var iU=function(){return _.b.apply(this,arguments)||this};
_.A(iU,_.b);_.f([_.c(),_.l("design:type",Object)],iU.prototype,"data",void 0);iU=_.f([_.U({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],iU);
_.X(iU,"ytd-ypc-offer-promo-renderer",function(){if(vkc!==void 0)return vkc;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return vkc=W},{mode:1});var RA=function(){return _.b.apply(this,arguments)||this};
_.A(RA,_.b);_.J=RA.prototype;
_.J.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"}}}}};
_.J.expansionCTA=function(W,P){return W&&(P?W.collapseCallToAction:W.expansionCallToAction)};
_.J.getExpansionIcon=function(W){return W?"arrow_drop_up":"arrow_drop_down"};
_.J.expansionCallToActionTap=function(){var W=this;this.expanded=!this.expanded;_.Xm(this,function(){_.Lf(W.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var W,P=(W=this.data)==null?void 0:W.onVisible;P&&this.ytComponentBehavior.resolveCommand(P)};
_.J.computeDisplayTitle=function(W){return!(!W||this.titledisplaystatus!=="show")};
_.J.computeDisplaySeparator=function(){return!1};
_.J.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
RA.prototype.onDataChanged=RA.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],RA.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],RA.prototype,"data",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],RA.prototype,"expanded",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],RA.prototype,"purchaseButtonClicked",void 0);_.f([_.c({reflectToAttribute:!0,value:"show"}),_.l("design:type",String)],RA.prototype,"titledisplaystatus",void 0);_.f([_.c({computed:"computeDisplayTitle(data.title)"}),_.l("design:type",Boolean)],RA.prototype,"displayTitle",void 0);
_.f([_.c({computed:"computeDisplaySeparator(data)"}),_.l("design:type",Boolean)],RA.prototype,"displaySeparator",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RA.prototype,"onDataChanged",null);RA=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],RA);
_.X(RA,"ytd-sponsorships-tier-renderer",function(){if(swb!==void 0)return swb;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return swb=W},{mode:2});var FT=function(){return _.b.apply(this,arguments)||this};
_.A(FT,_.b);
FT.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"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],FT.prototype,"data",void 0);FT=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],FT);
_.X(FT,"ytd-sponsorships-management-renderer",function(){if(Sgi!==void 0)return Sgi;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Sgi=W},{mode:1});var mAP;var qs=function(){return _.b.apply(this,arguments)||this};
_.A(qs,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qs.prototype,"data",void 0);qs=_.f([_.U({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],qs);
_.X(qs,"ytd-open-in-native-app-view-model",function(){if(mAP!==void 0)return mAP;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return mAP=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var VTW;var tTc;var pHk=_.i4(["top-"]),jwZ=_.i4(["bottom-"]),Qwb=_.i4(["left-"]),C23=_.i4(["right-"]),A5p={},zaw=function(W,P,x){W.removeAttribute("top-"+x);W.removeAttribute("bottom-"+x);W.removeAttribute("left-"+x);W.removeAttribute("right-"+x);P&&(P.top&&_.b5([_.qi(pHk)],W,"top-"+x,P.top),P.bottom&&_.b5([_.qi(jwZ)],W,"bottom-"+x,P.bottom),P.left&&_.b5([_.qi(Qwb)],W,"left-"+x,P.left),P.right&&_.b5([_.qi(C23)],W,"right-"+x,P.right))};
A5p.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(W){var P,x=_.g((P=this.hostElement)!=null?P:this),I;P=this.cardItemBoxBehaviorMarginTargetId&&x?x.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(I=this.hostElement)!=null?I:this;zaw(P,W,"margin")},
cardItemContainerPaddingChanged_:function(W){var P,x=_.g((P=this.hostElement)!=null?P:this),I;P=this.cardItemBoxBehaviorPaddingTargetId&&x?x.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(I=this.hostElement)!=null?I:this;zaw(P,W,"padding")}}];var LI={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 GVb;var EkM;var W_=function(){return _.b.apply(this,arguments)||this};
_.A(W_,_.b);W_.prototype.textColorChanged_=function(){this.hostElement.style.color=LI[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
W_.prototype.textColorChanged_=W_.prototype.textColorChanged_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.f([_.h(A5p.YtCardItemBoxBehavior),_.l("design:type",Object)],W_.prototype,"ytCardItemBoxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],W_.prototype,"data",void 0);_.f([_.OZ("data.textColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"textColorChanged_",null);
W_=_.f([_.jd({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],W_);
_.X(W_,"yt-card-item-text-renderer",function(){if(EkM===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;GVb===void 0&&(GVb=document.createElement("template"));var I=GVb;x.call(P,I.content.cloneNode(!0),W.content.firstChild);EkM=W}W=EkM;return W},{mode:2});var gkd;var DA3;var P_=function(){return _.b.apply(this,arguments)||this};
_.A(P_,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],P_.prototype,"data",void 0);P_=_.f([_.jd({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],P_);
_.X(P_,"yt-card-item-badge-renderer",function(){if(DA3===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;gkd===void 0&&(gkd=document.createElement("template"));var I=gkd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);DA3=W}W=DA3;return W},{mode:2});var MTp;var $AM;var x8=function(){return _.b.apply(this,arguments)||this};
_.A(x8,_.b);x8.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],x8.prototype,"data",void 0);x8=_.f([_.jd({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],x8);
_.X(x8,"yt-card-item-text-collection-renderer",function(){if($AM===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;MTp===void 0&&(MTp=document.createElement("template"));var I=MTp;x.call(P,I.content.cloneNode(!0),W.content.firstChild);$AM=W}W=$AM;return W},{mode:2});var wHW;var hac;var Ik=function(){return _.b.apply(this,arguments)||this};
_.A(Ik,_.b);Ik.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]]"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ik.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Number)],Ik.prototype,"iconSize",void 0);Ik=_.f([_.jd({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Ik);
_.X(Ik,"yt-card-item-text-with-button-renderer",function(){if(hac===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;wHW===void 0&&(wHW=document.createElement("template"));var I=wHW;x.call(P,I.content.cloneNode(!0),W.content.firstChild);hac=W}W=hac;return W},{mode:2});var OY=function(){return _.b.apply(this,arguments)||this};
_.A(OY,_.b);OY.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],OY.prototype,"data",void 0);OY=_.f([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],OY);
_.X(OY,"ytd-commerce-cart-summary-line-item-renderer",function(){if(tTc!==void 0)return tTc;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return tTc=W},{mode:1});_.Ad("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var JS=function(){var W=_.b.apply(this,arguments)||this;W.hidden=!1;return W};
_.A(JS,_.b);_.J=JS.prototype;_.J.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"}}}}};
_.J.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.J.updateSummary=function(){var W=this.commerceCartCheckoutButtonEntity,P;if(((P=this.data)==null?0:P.cartButton)&&W.checkoutSummaryText){var x,I=b6((x=this.data)==null?void 0:x.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",kA(W.checkoutSummaryText));if(W.checkoutDetailText){var O;x=b6((O=this.data)==null?void 0:O.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+x+".cardItemTextRenderer.text",kA(W.checkoutDetailText))}if(W.checkoutAdditionalMetadataText){var B;
O=b6((B=this.data)==null?void 0:B.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",kA(W.checkoutAdditionalMetadataText))}}else W.estimatedTotalPrice&&(B=b6((I=this.data)==null?void 0:I.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+B+".cardItemTextRenderer.text",kA(W.estimatedTotalPrice)))};
_.J.updateIsHidden=function(){var W,P=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;P!==void 0&&(this.hidden=P)};
_.J.updateCheckoutButton=function(){var W,P=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isDisabled;P!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",P);var x;W=(x=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:x.innertubeCommand;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",W);var I;x=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.checkoutButtonText;x!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:x})};
JS.prototype.entityChanged=JS.prototype.entityChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],JS.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],JS.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],JS.prototype,"fullWidth",void 0);_.f([_.c(),_.l("design:type",Object)],JS.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],JS.prototype,"compact",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],JS.prototype,"hidden",void 0);
_.f([_.c({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:MGR}),_.l("design:type",Object)],JS.prototype,"commerceCartCheckoutButtonEntity",void 0);_.f([_.OZ("commerceCartCheckoutButtonEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JS.prototype,"entityChanged",null);JS=_.f([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],JS);
_.X(JS,"ytd-commerce-cart-checkout-button-renderer",function(){if(VTW!==void 0)return VTW;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return VTW=W},{mode:2});var HGM;_.eaz={};
_.eaz.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",_.WM(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.WM(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(W){!this.tappableItemBehaviorTapEnabled||W.keyCode!==13&&W.keyCode!==32||W.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var W=this.data.onTap;W.ypcGetCartEndpoint?(_.Iu(this.hostElement,[W]),this.tappableItemBehaviorTapEnabled=!1):W.ypcOffersEndpoint?_.Iu(this.hostElement,[W]):_.OL(this.hostElement,[W],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(W){this.tappableItemBehaviorTapEnabled=!!W},
tappableItemBehaviorOnTapEnabledChanged_:function(){var W=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(W.setAttribute("tabIndex",0),W.setAttribute("role","button")):(W.removeAttribute("tabIndex"),W.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(W){W.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var c5m;var amk;var B_=function(){return _.b.apply(this,arguments)||this};
_.A(B_,_.b);B_.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.z4("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.z4("sharingToggleButtonAndDefaultButton")}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],B_.prototype,"data",void 0);B_=_.f([_.jd({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],B_);
_.X(B_,"yt-card-item-actions-renderer",function(){if(amk===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;c5m===void 0&&(c5m=document.createElement("template"));var I=c5m;x.call(P,I.content.cloneNode(!0),W.content.firstChild);amk=W}W=amk;return W},{mode:2});var bGW;var kVl;var UAl;var XHc;var fmp;var Nfw;var nZ=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return W};
_.A(nZ,_.b);nZ.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
nZ.prototype.handleDarkModeToggledAction_=function(W){this.isDarkTheme_=W};
nZ.prototype.computeThemeImage_=function(W,P){if(!W||!W.imageLight)return!1;this.isCircular_=W.isCircular;W.imageWidth&&(this.hostElement.style.width=W.imageWidth+"px");W.imageHeight&&(this.hostElement.style.height=W.imageHeight+"px");W.borderWidth&&(this.image.style.borderWidth=W.borderWidth+"px",this.image.style.borderStyle="solid");W.borderColor&&(this.image.style.borderColor=_.Qy(W.borderColor));return P&&W.imageDark?W.imageDark:W.imageLight};
nZ.prototype.computeThemeIcon_=function(W){var P,x;if(!(W==null?0:(P=W.themedIcon)==null?0:(x=P.icon)==null?0:x.iconType))return!1;this.icon.style.color=LI[W.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(W.imageWidth||18)+"px";this.icon.style.height=(W.imageHeight||18)+"px";return _.PW(W.themedIcon.icon.iconType)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(A5p.YtCardItemBoxBehavior),_.l("design:type",Object)],nZ.prototype,"ytCardItemBoxBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],nZ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nZ.prototype,"data",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],nZ.prototype,"fit",void 0);_.f([_.c(),_.l("design:type",Boolean)],nZ.prototype,"isDarkTheme_",void 0);_.f([_.c({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.l("design:type",Object)],nZ.prototype,"themeImage_",void 0);_.f([_.c({computed:"computeThemeIcon_(data)"}),_.l("design:type",Object)],nZ.prototype,"themeIcon_",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],nZ.prototype,"isCircular_",void 0);
_.f([_.BM("#image"),_.l("design:type",Object)],nZ.prototype,"image",void 0);_.f([_.BM("#icon"),_.l("design:type",Object)],nZ.prototype,"icon",void 0);nZ=_.f([_.jd({is:"yt-themed-image-renderer",disableElementRegistration:!0})],nZ);
_.X(nZ,"yt-themed-image-renderer",function(){if(Nfw===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;fmp===void 0&&(fmp=document.createElement("template"));var I=fmp;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Nfw=W}W=Nfw;return W},{mode:2});var Y8=function(){return _.b.apply(this,arguments)||this};
_.A(Y8,_.b);Y8.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"}}}}};
Y8.prototype.computeImagePlacement_=function(W){return W||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Y8.prototype,"data",void 0);_.f([_.c({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.l("design:type",String)],Y8.prototype,"imagePlacement",void 0);
Y8=_.f([_.jd({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Y8);
_.X(Y8,"yt-card-item-text-with-image-renderer",function(){if(XHc===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;UAl===void 0&&(UAl=document.createElement("template"));var I=UAl;x.call(P,I.content.cloneNode(!0),W.content.firstChild);XHc=W}W=XHc;return W},{mode:2});var yN=function(){return _.b.apply(this,arguments)||this};
_.A(yN,_.b);yN.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"}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yN.prototype,"data",void 0);yN=_.f([_.jd({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],yN);
_.X(yN,"yt-card-item-error-renderer",function(){if(kVl===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;bGW===void 0&&(bGW=document.createElement("template"));var I=bGW;x.call(P,I.content.cloneNode(!0),W.content.firstChild);kVl=W}W=kVl;return W},{mode:2});var lmz;var TfW;_.Ad("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var KZ=function(){return _.b.apply(this,arguments)||this};
_.A(KZ,_.b);_.J=KZ.prototype;
_.J.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"}}}}};
_.J.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.J.backgroundColorChanged_=function(){var W,P=(W=this.data)==null?void 0:W.backgroundColor;W=LI[P||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.g(this.hostElement).querySelector("#main-content").style.backgroundColor=W};
_.J.headerPromoBackgroundColorChanged_=function(){var W,P=(W=this.data)==null?void 0:W.headerPromoBackgroundColor;W=LI[P||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.g(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=W};
_.J.errorRendererVisibilityChanged_=function(){var W=this.isExpanded_,P;this.isErrorRendererVisible_=!((P=this.data)==null||!P.errorRenderer)&&!W};
_.J.onYtToggleButton_=function(W,P){this.isExpanded_=P.toggled};
KZ.prototype.onYtToggleButton_=KZ.prototype.onYtToggleButton_;KZ.prototype.errorRendererVisibilityChanged_=KZ.prototype.errorRendererVisibilityChanged_;KZ.prototype.headerPromoBackgroundColorChanged_=KZ.prototype.headerPromoBackgroundColorChanged_;KZ.prototype.backgroundColorChanged_=KZ.prototype.backgroundColorChanged_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],KZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(A5p.YtCardItemBoxBehavior),_.l("design:type",Object)],KZ.prototype,"ytCardItemBoxBehavior",void 0);_.f([_.h(_.eaz.YtTappableItemBehavior),_.l("design:type",Object)],KZ.prototype,"ytTappableItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],KZ.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],KZ.prototype,"isExpanded_",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],KZ.prototype,"isErrorRendererVisible_",void 0);_.f([_.OZ("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KZ.prototype,"backgroundColorChanged_",null);_.f([_.OZ("data.headerPromoBackgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KZ.prototype,"headerPromoBackgroundColorChanged_",null);
_.f([_.OZ("data.errorRenderer","isExpanded_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KZ.prototype,"errorRendererVisibilityChanged_",null);_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],KZ.prototype,"onYtToggleButton_",null);KZ=_.f([_.jd({is:"yt-card-item-renderer",disableElementRegistration:!0})],KZ);
_.X(KZ,"yt-card-item-renderer",function(){if(TfW===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;lmz===void 0&&(lmz=document.createElement("template"));var I=lmz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);TfW=W}W=TfW;return W},{mode:2});_.Ad("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var ZP=function(){var W=_.b.apply(this,arguments)||this;W.hidden=!1;return W};
_.A(ZP,_.b);_.J=ZP.prototype;_.J.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.J.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,P=(W=this.commerceCartHeaderEntity)==null?void 0:W.isHidden;P!==void 0&&(this.hidden=P)}};
_.J.updateTitle=function(){var W=this.commerceCartHeaderEntity.isDisabled,P,x,I=(x=_.Q((P=this.data)==null?void 0:P.item,UGW))==null?void 0:x.headingRenderer;I&&(P=b6(I,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+P+".0.cardItemTextRenderer.textColor",W?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.J.updateSummaryText=function(){var W=this.commerceCartHeaderEntity;if(this.compact){var P,x,I=(x=_.Q((P=this.data)==null?void 0:P.item,UGW))==null?void 0:x.headingRenderer;I&&(P=b6(I,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+P+".1.cardItemTextRenderer.text",W.shortHeaderSummaryText?kA(W.shortHeaderSummaryText):W.headerSummaryText?kA(W.headerSummaryText):""))}else{var O;if(P=(O=_.Q((I=this.data)==null?void 0:I.item,UGW))==null?void 0:O.additionalInfoRenderer)P=b6(P,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+P+".text",W.headerSummaryText?kA(W.headerSummaryText):"")}};
_.J.updateCheckoutButton=function(){var W=this.commerceCartHeaderEntity,P,x,I=(x=_.Q((P=this.data)==null?void 0:P.item,UGW))==null?void 0:x.additionalInfoRenderer;P=b6(I,"buttonRenderer");var O;x=(O=this.commerceCartHeaderEntity)==null?void 0:O.isButtonDisabled;var B;O=(B=this.commerceCartHeaderEntity)==null?void 0:B.isButtonHidden;x!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+P+".buttonRenderer.isDisabled",x);O!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
O);var Y;W=(Y=W.checkoutButtonCommand)==null?void 0:Y.innertubeCommand;W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+P+".buttonRenderer.command",W)};
ZP.prototype.entityChanged=ZP.prototype.entityChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],ZP.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ZP.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ZP.prototype,"compact",void 0);_.f([_.c({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(W,P){return _.Jb(W.entities,"commerceCartHeaderEntity",P)}}),
_.l("design:type",Object)],ZP.prototype,"commerceCartHeaderEntity",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ZP.prototype,"hidden",void 0);_.f([_.OZ("commerceCartHeaderEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZP.prototype,"entityChanged",null);ZP=_.f([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],ZP);
_.X(ZP,"ytd-commerce-cart-header-renderer",function(){if(HGM!==void 0)return HGM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return HGM=W},{mode:1});var r5p;var iGZ=_.t6(function(W,P){var x;return(x=W.onChangeCallback)==null?void 0:x.call(W,P)},1E3),RaP=_.kl(function(W){var P=W.data;
var x=W.iconMinus;W=W.iconPlus;var I=function(){return!!P().disabled},O=_.n(_.YV(0,void 0,"r56zNb")),B=O.next().value,Y=O.next().value;
O={};O=_.O4("yt-spec-quantity-incrementer-shape__icon",(O["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return I()||B()===(P().onRemoveCommand?0:1)},O));
var K={};K=_.O4("yt-spec-quantity-incrementer-shape__icon",(K["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return B()>=P().maxValue||I()},K));
var Z={};Z=_.O4("yt-spec-quantity-incrementer-shape__text",(Z["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return B()>P().maxValue},Z["yt-spec-quantity-incrementer-shape__text--text-disabled"]=I,Z));
var d=_.yB(function(){if(B()===1){var m,t;(t=(m=P()).onRemoveCommand)==null||t.call(m)}m=B()>P().maxValue?P().maxValue:B()-1;Y(m);iGZ(P(),m);return!1}),v=_.yB(function(){if(B()===P().maxValue)return!1;
var m=B()+1;Y(m);iGZ(P(),m);return!1});
_.Qa(function(){Y(P().value)});
return _.u("quantity-incrementer-shape",null,_.u("div",{class:"yt-spec-quantity-incrementer-shape"},_.u("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return B()===(P().onRemoveCommand?0:1)||I()},
"aria-label":function(){return B()!==1?P().minusLabel:P().minimumReachedLabel},
"on:click":d},_.u(_.s4,{model:{circular:!0}}),_.u("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.u("div",{class:O},x()))),_.u("div",{class:Z},B),_.u("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return B()>=P().maxValue||I()},
"aria-label":function(){return B()!==P().maxValue?P().plusLabel:P().maximumReachedLabel},
"on:click":v},_.u(_.s4,{model:{circular:!0}}),_.u("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.u("div",{class:K},W())))))},"Jd");_.lq(_.kl(function(W){function P(){x().onRemoveCommand&&_.D1(x().onRemoveCommand)}
var x=W.data;var I=_.dp(xhR,function(){return x().quantityIncrementerEntityKey});
return _.u("yt-quantity-incrementer-view-model",null,_.u(RaP,{data:function(){var O=x(),B;var Y=I()?!((B=I())==null||!B.disabled):!1;var K;B=I()?(K=I())==null?void 0:K.quantity:x().quantity;return ooC(O,Y,P,B)},
iconMinus:function(){return _.u(_.Sy,{icon:"BAR_HORIZONTAL",className:_.BF("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.u(_.Sy,{icon:"ADD",className:_.BF("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Kd"),"yt-quantity-incrementer-view-model",{props:{data:_.cv}});var ok=function(){var W=_.b.apply(this,arguments)||this;W.compact=!1;W.hasQuantityIncrementer=!1;return W};
_.A(ok,_.b);ok.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"}}}};
ok.prototype.computeHasQuantityIncrementer=function(){var W;return!!_.Q((W=this.data)==null?void 0:W.picker,lfi)};
ok.prototype.onLabelClick=function(){var W;(W=this.dropdownEl)==null||W.open()};
_.f([_.BM("ytd-dropdown-renderer"),_.l("design:type",Object)],ok.prototype,"dropdownEl",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ok.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],ok.prototype,"quantityColor",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ok.prototype,"compact",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.l("design:type",Object)],ok.prototype,"hasQuantityIncrementer",void 0);ok=_.f([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],ok);
_.X(ok,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(r5p!==void 0)return r5p;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return r5p=W},{mode:1});var FKW;var qgc;var Sh=function(){return _.b.apply(this,arguments)||this};
_.A(Sh,_.b);Sh.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Sh.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Sh.prototype.updateTitle=function(){var W=this.disabledCartItemEntity;W.disableActionName&&this.set("data.title",kA(W.disableActionName))};
Sh.prototype.updateButton=function(){var W,P=(W=this.disabledCartItemEntity.undoCommand)==null?void 0:W.innertubeCommand;P!==void 0&&(this.set("data.actionButton.buttonRenderer.command",P),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Sh.prototype.entityChanged=Sh.prototype.entityChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],Sh.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(W,P){return _.Jb(W.entities,"disabledCartItemEntity",P)}}),
_.l("design:type",Object)],Sh.prototype,"disabledCartItemEntity",void 0);_.f([_.c(),_.l("design:type",Object)],Sh.prototype,"data",void 0);_.f([_.OZ("disabledCartItemEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Sh.prototype,"entityChanged",null);Sh=_.f([_.U({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Sh);
_.X(Sh,"ytd-disabled-cart-item-renderer",function(){if(qgc!==void 0)return qgc;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return qgc=W},{mode:1});_.Ad("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var un=function(){var W=_.b.apply(this,arguments)||this;W.compact=!1;W.hidden=!1;W.errorHidden=!1;W.noOnTap=!1;return W};
_.A(un,_.b);_.J=un.prototype;
_.J.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"}}}};
_.J.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.J.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var W=this.firstButtonElement;W.alignByText=!0;W.iconAlignByText=!0}};
_.J.computeNoOnTap=function(W){return!W};
_.J.updateQuantityColor=function(){if(this.pickerElement){var W,P=(W=this.commerceCartItemEntity)==null?void 0:W.quantityColor;this.pickerElement.quantityColor=P}};
_.J.updateTotalPriceColor=function(){var W,P=(W=this.commerceCartItemEntity)==null?void 0:W.totalPriceColor;if(P){var x;W=_.Q((x=this.data)==null?void 0:x.quantityPicker,ffz);if(x=_.Q(W==null?void 0:W.price,XKi))x.textColor=P}};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,P=(W=this.commerceCartItemEntity)==null?void 0:W.isHidden;P!==void 0&&(this.hidden=P)}};
_.J.updateHideErrorMessage=function(){var W,P=(W=this.commerceCartItemEntity)==null?void 0:W.hideErrorMessage;P!==void 0&&(this.errorHidden=P)};
_.J.updateQuantity=function(){var W=this,P,x=(P=this.commerceCartItemEntity)==null?void 0:P.quantity,I;P=(I=this.commerceCartItemEntity)==null?void 0:I.totalPrice;if(x){this.updateTotalPriceColor();this.updateQuantityColor();var O;I=_.Q((O=this.data)==null?void 0:O.quantityPicker,ffz);if(O=_.Q(I==null?void 0:I.price,XKi))O.text=P?{simpleText:P.content}:void 0;if(P=_.Q(I==null?void 0:I.picker,lfi))P.quantity=x;var B;if(O=(B=_.Q(I==null?void 0:I.picker,q8W))==null?void 0:B.entries){B=!1;P=void 0;O=
_.n(O);for(I=O.next();!I.done;I=O.next())I=I.value,I.dropdownItemRenderer&&(P||(P=I.dropdownItemRenderer),I.dropdownItemRenderer.isSelected=!1,x===I.dropdownItemRenderer.int32Value&&(B=!0,I.dropdownItemRenderer.isSelected=!0));!B&&P&&(P.isSelected=!0)}_.Xm(this,function(){var Y;W.set("data.quantityPicker",_.jU.unsafeClone((Y=W.data)==null?void 0:Y.quantityPicker))})}};
un.prototype.onYtRendererstamperFinished=un.prototype.onYtRendererstamperFinished;un.prototype.entityChanged=un.prototype.entityChanged;_.f([_.c(),_.l("design:type",Object)],un.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],un.prototype,"compact",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],un.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],un.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(W,P){return _.Jb(W.entities,"commerceCartItemEntity",P)}}),
_.l("design:type",Object)],un.prototype,"commerceCartItemEntity",void 0);_.f([_.c(),_.l("design:type",Object)],un.prototype,"quantityPicker",void 0);_.f([_.c(),_.l("design:type",Object)],un.prototype,"compactQuantityPicker",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],un.prototype,"hidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],un.prototype,"errorHidden",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.l("design:type",Object)],un.prototype,"noOnTap",void 0);_.f([_.BM("ytd-commerce-cart-item-quantity-picker-renderer"),_.l("design:type",Object)],un.prototype,"pickerElement",void 0);_.f([_.BM("yt-button-renderer"),_.l("design:type",Element)],un.prototype,"firstButtonElement",void 0);
_.f([_.OZ("commerceCartItemEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],un.prototype,"entityChanged",null);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],un.prototype,"onYtRendererstamperFinished",null);un=_.f([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],un);
_.X(un,"ytd-commerce-cart-item-renderer",function(){if(FKW!==void 0)return FKW;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return FKW=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var LKz;var Wim;var dt=function(){return _.b.apply(this,arguments)||this};
_.A(dt,_.b);dt.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}}}}}};
dt.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
dt.prototype.updateCheckoutLineItems=function(){var W,P=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.checkoutLineItems;P&&(W=P.map(function(x){a:{var I=x.price,O=x.description;switch(x.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":x={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:kA(O),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:kA(I),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:x={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:kA(O),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:kA(I),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return x}),this.set("data.summaryLineItems",W))};
dt.prototype.updateIsHidden=function(){var W,P=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;P!==void 0&&(this.hostElement.hidden=P)};
dt.prototype.entityChanged=dt.prototype.entityChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],dt.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],dt.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],dt.prototype,"data",void 0);_.f([_.c({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:MGR}),_.l("design:type",Object)],dt.prototype,"commerceCartCheckoutButtonEntity",void 0);_.f([_.OZ("commerceCartCheckoutButtonEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dt.prototype,"entityChanged",null);dt=_.f([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],dt);
_.X(dt,"ytd-commerce-cart-summary-renderer",function(){if(Wim!==void 0)return Wim;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Wim=W},{mode:1});var PyW={};PyW.InjectBehavior=[BZt.InjectBehavior];var xZZ;var Iai;var sY=function(){return _.b.apply(this,arguments)||this};
_.A(sY,_.b);
sY.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:_.z4("menuRenderer")}}};
sY.prototype.onMenuTap=function(W){W.stopPropagation()};
_.N1.Object.defineProperties(sY.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 W,P;return!(((W=this.data)==null||!W.sectionHeading)&&((P=this.data)==null?void 0:P.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var W,P;return!(((W=this.data)==null||!W.image)&&((P=this.data)==null?void 0:P.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var W,P;return!(((W=this.data)==null||!W.menu)&&((P=this.data)==null?void 0:P.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.eaz.YtTappableItemBehavior),_.l("design:type",Object)],sY.prototype,"ytTappableItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sY.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data.accessibilityData"),_.l("design:type",String),_.l("design:paramtypes",[])],sY.prototype,"ariaLabel",null);_.f([_.H("data.sectionHeading","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],sY.prototype,"sectionHeadingVisible",null);_.f([_.H("data.image","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],sY.prototype,"imageVisible",null);
_.f([_.H("data.menu","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],sY.prototype,"menuVisible",null);sY=_.f([_.jd({is:"yt-activity-item-renderer",disableElementRegistration:!0})],sY);
_.X(sY,"yt-activity-item-renderer",function(){if(Iai===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;xZZ===void 0&&(xZZ=document.createElement("template"));var I=xZZ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Iai=W}W=Iai;return W},{mode:2});var O$b;var JBM;var BIZ;var nrW;var v_=function(){return _.b.apply(this,arguments)||this};
_.A(v_,_.b);
v_.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"}}}}};
v_.prototype.backgroundColorChanged_=function(){var W,P=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=LI[P||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
v_.prototype.backgroundColorChanged_=v_.prototype.backgroundColorChanged_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],v_.prototype,"data",void 0);
_.f([_.OZ("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v_.prototype,"backgroundColorChanged_",null);v_=_.f([_.jd({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],v_);
_.X(v_,"yt-offer-item-upsell-renderer",function(){if(nrW===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;BIZ===void 0&&(BIZ=document.createElement("template"));var I=BIZ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);nrW=W}W=nrW;return W},{mode:2});_.Ad("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var mt=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};W.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return W};
_.A(mt,_.b);_.J=mt.prototype;
_.J.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:_.z4("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.J.computeContainerStyle_=function(W){return W};
_.J.computeContainerIsHidden_=function(W){return W&&!!W.isHidden};
_.J.computeShowSpinner_=function(W,P){return W&&P==="in-progress"};
_.J.computeShowMoreContentsButton_=function(W,P,x,I,O){return!(!(I&&I.length||O&&O.length&&x)||!W||P)};
_.J.onToggleButton_=function(W){var P=this;W.stopPropagation();this.isExpanded_=W.detail&&W.detail.toggled;var x,I;this.isExpanded_&&!this.data.continuationSection.length&&((x=this.data)==null?0:(I=x.continuation)==null?0:I.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Lf(this.hostElement,"yt-load-next-continuation",function(O){return P.getContinuationUrl_(P.data.continuation.onClickContinuationData,O)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Iu(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.J.onShowMoreContentsButtonClicked_=function(W){var P=this;W.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Lf(this.hostElement,"yt-load-next-continuation",function(x){return P.getContinuationUrl_(P.data.continuations[0].nextContinuationData,x)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Iu(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.J.getContinuationUrl_=function(W,P){var x=W.continuation;W=W.clickTrackingParams;var I=_.E_();W&&I&&_.bB(I,_.ox(W));return _.fX(P,{continuation:x})};
_.J.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var W=_.g(this.hostElement).querySelector("#continuation-section");W&&(W=W.querySelectorAll("ytmusic-item-section-renderer"))&&W.forEach(function(P){return P.classList.add("memberships-and-purchases")})};
_.J.dataChanged_=function(){var W;this.isExpanded_=!((W=this.data)==null||!W.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.J.updateCardOnClickCommand_=function(W){W=_.Q(W,wKZ);var P,x;this.data&&((P=this.data)==null?0:P.targetId)&&W&&W.targetId===((x=this.data)==null?void 0:x.targetId)&&W.onClickCommand&&(this.data.onClickCommand=W.onClickCommand,this.isOnClickCommand_=!0)};
_.J.backgroundColorChanged_=function(){var W,P=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=LI[P||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
mt.prototype.backgroundColorChanged_=mt.prototype.backgroundColorChanged_;mt.prototype.dataChanged_=mt.prototype.dataChanged_;mt.prototype.nextContinuationDataUpdated_=mt.prototype.nextContinuationDataUpdated_;mt.prototype.onToggleButton_=mt.prototype.onToggleButton_;_.f([_.h(_.Dv),_.l("design:type",Object)],mt.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],mt.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.M2.YtNextContinuationBehavior),_.l("design:type",Object)],mt.prototype,"ytNextContinuationBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.f([_.h(PyW.InjectBehavior),_.l("design:type",Object)],mt.prototype,"injectBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mt.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],mt.prototype,"compact",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],mt.prototype,"isExpanded_",void 0);_.f([_.c({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.l("design:type",String)],mt.prototype,"containerStyle_",void 0);_.f([_.c({value:"not-started"}),_.l("design:type",String)],mt.prototype,"continuationStatus_",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.l("design:type",Boolean)],mt.prototype,"showSpinner_",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],mt.prototype,"isOnClickCommand_",void 0);_.f([_.c({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.l("design:type",Boolean)],mt.prototype,"showMoreContentsButton_",void 0);
_.f([_.c({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(W,P){return!P||W.entities?null:_.Jb(W.entities,"cardItemContainerEntity",P)}}),
_.l("design:type",Object)],mt.prototype,"cardItemContainerEntity_",void 0);_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],mt.prototype,"onToggleButton_",null);_.f([_.I7("yt-next-continuation-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mt.prototype,"nextContinuationDataUpdated_",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mt.prototype,"dataChanged_",null);_.f([_.OZ("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mt.prototype,"backgroundColorChanged_",null);mt=_.f([_.jd({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],mt);
_.X(mt,"yt-card-item-container-renderer",function(){if(JBM===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;O$b===void 0&&(O$b=document.createElement("template"));var I=O$b;x.call(P,I.content.cloneNode(!0),W.content.firstChild);JBM=W}W=JBM;return W},{mode:2});var VN=function(){return _.b.apply(this,arguments)||this};
_.A(VN,_.b);VN.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"}}}};
VN.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
VN.prototype.computeLoadingHidden=function(){var W;return!((W=this.commerceCartPageStateEntity)==null?0:W.cartActionInProgress)};
VN.prototype.updateNotification=function(){var W,P=(W=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:W.summaryText;P&&this.set("data.cartNotification",kA(P))};
VN.prototype.notificationEntityChanged=VN.prototype.notificationEntityChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],VN.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],VN.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],VN.prototype,"data",void 0);_.f([_.c({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(W,P){return _.Jb(W.entities,"commerceCartExpandableNotificationEntity",P)}}),
_.l("design:type",Object)],VN.prototype,"commerceCartExpandableNotificationEntity",void 0);_.f([_.c({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(W,P){return _.Jb(W.entities,"commerceCartPageStateEntity",P)}}),
_.l("design:type",Object)],VN.prototype,"commerceCartPageStateEntity",void 0);_.f([_.BM("#spinner"),_.l("design:type",HTMLElement)],VN.prototype,"spinner",void 0);_.f([_.OZ("commerceCartExpandableNotificationEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VN.prototype,"notificationEntityChanged",null);VN=_.f([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],VN);
_.X(VN,"ytd-commerce-cart-renderer",function(){if(LKz!==void 0)return LKz;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return LKz=W},{mode:1});var YDm;var tS=function(){var W=_.b.apply(this,arguments)||this;W.bigImage=!1;return W};
_.A(tS,_.b);_.N1.Object.defineProperties(tS.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.placeholderImageUrl}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],tS.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],tS.prototype,"bigImage",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],tS.prototype,"placeholderImageUrl",null);tS=_.f([_.U({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],tS);
_.X(tS,"ytd-empty-product-shelf-renderer",function(){if(YDm!==void 0)return YDm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return YDm=W},{mode:1});var yBZ;var pZ=function(){var W=_.b.apply(this,arguments)||this;W.itemStyle="link-item";W.watchMetadataRefresh=!1;W.skinnyMode=!1;W.metaPanel=!1;W.inStructuredDescription=!1;W.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};W.updateOnResizeDebouncer=null;return W};
_.A(pZ,_.b);_.J=pZ.prototype;_.J.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.J.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"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.J.attachVEs=function(W){W.trackingParams&&_.YY().graftServerVe(W.trackingParams)};
_.J.handleUpdateMerchShelfAction=function(W){var P=this,x=_.Q(W.updateMerchandiseShelfAction.merchandiseShelf,_.m_w);x&&(x.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){P.attachVEs(x);P.data=x},Number(x.renderDelayMs))):(this.attachVEs(x),this.data=x))};
_.J.updateOnResize=function(){if(this.JSC$14595_scrollContainer!==void 0&&this.JSC$14595_scrollContainer.clientWidth!==0&&this.items!==void 0){var W=this.JSC$14595_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_();var P;switch((P=this.data)==null?void 0:P.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var x,
I;((x=this.data)==null?void 0:(I=x.items)==null?void 0:I.length)===1?this.itemStyle="cta-item":this.itemStyle=W>=740?"large-item":"small-item"}}};
_.J.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Bz(this.updateOnResizeDebouncer,_.rl.after(100),this.updateOnResize)};
pZ.prototype.debouncedUpdateOnResize=pZ.prototype.debouncedUpdateOnResize;pZ.prototype.dataChanged=pZ.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.RO.YtdHorizontalListBehavior),_.l("design:type",Object)],pZ.prototype,"ytdHorizontalListBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],pZ.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],pZ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],pZ.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pZ.prototype,"itemStyle",void 0);_.f([_.c({value:6}),_.l("design:type",Number)],pZ.prototype,"initialCount",void 0);
_.f([_.c({value:"data.items"}),_.l("design:type",String)],pZ.prototype,"itemsPath",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pZ.prototype,"watchMetadataRefresh",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pZ.prototype,"skinnyMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pZ.prototype,"metaPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pZ.prototype,"inStructuredDescription",void 0);
_.f([_.BM("#items"),_.l("design:type",HTMLDivElement)],pZ.prototype,"items",void 0);_.f([_.BM("#scroll-container"),_.l("design:type",HTMLDivElement)],pZ.prototype,"JSC$14595_scrollContainer",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pZ.prototype,"dataChanged",null);_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pZ.prototype,"debouncedUpdateOnResize",null);
pZ=_.f([_.U({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],pZ);
_.X(pZ,"ytd-merch-shelf-renderer",function(){if(yBZ!==void 0)return yBZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return yBZ=W},{mode:2});var KiZ;var jh=function(){var W=_.b.apply(this,arguments)||this;W.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 W};
_.A(jh,_.b);_.J=jh.prototype;
_.J.addBackstagePostAction=function(W){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(W=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",W))&&(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:W}):this.set("data.contents",[{backstagePostThreadRenderer:W}]))};
_.J.addBackstageCommentAction=function(W){var P=this.get("addBackstageCommentAction.parentId",W);W=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",W);if(P&&W){P=this.postIdToIndices(P);for(var x=0;x<P.length;x++){var I=P[x];if(I<0)break;I="data.contents."+I+".backstagePostThreadRenderer.comments";this.get(I)&&(this.get(I+".backstageCommentsRenderer.contents")&&this.push(I+".backstageCommentsRenderer.contents",{commentThreadRenderer:W}),this.get(I+".backstageCommentsRenderer.teaserContents")?
this.push(I+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:W}):this.set(I+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:W}]))}}};
_.J.addBackstageReplyAction=function(W){var P=this.get("addBackstageReplyAction.parentId",W);W=this.get("addBackstageReplyAction.renderer.commentRenderer",W);P&&W&&this.setCreatorReply(P,W)};
_.J.banAuthorAction=function(W){var P=this.get("banAuthorAction.commentId",W);P&&(W=this.get("banAuthorAction.parentCommentId",W)||this.getParentPostId(P),this.removeFromStream(P,W))};
_.J.hideReportedCommentAction=function(W){var P=this.get("hideReportedCommentAction.commentId",W);P&&((W=this.get("hideReportedCommentAction.parentCommentId",W))||(W=this.getParentPostId(P)),this.removeFromStream(P,W))};
_.J.replaceBackstageCommentAction=function(W){var P=this.get("replaceBackstageCommentAction.commentId",W),x=this.get("replaceBackstageCommentAction.parentId",W);W=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",W);if(P&&x&&W){x=this.postIdToIndices(x);for(var I=0;I<x.length;I++){var O=x[I];if(O<0)break;var B=this.commentIdToIndex(P,O,!1);if(B>=0){var Y=this.get("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+B+".commentThreadRenderer.replies.commentRepliesRenderer");
Y&&(W.replies={commentRepliesRenderer:Y});this.splice("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",B,1,{commentThreadRenderer:W})}B=this.commentIdToIndex(P,O,!0);if(B>=0){if(Y=this.get("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(B+".commentThreadRenderer.replies.commentRepliesRenderer")))W.replies={commentRepliesRenderer:Y};this.splice("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
B,1,{commentThreadRenderer:W})}}}};
_.J.replaceBackstagePostAction=function(W){var P=this.get("replaceBackstagePostAction.itemId",W);if(P){P=this.postIdToIndices(P);for(var x=0;x<P.length;x++){var I=P[x];if(I<0)break;var O=this.getPostRendererType(I),B=this.get("replaceBackstagePostAction.renderer."+O,W);if(!B&&O!=="sharedPostRenderer")break;var Y=!1;B||(Y=!0,B=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",W));if(!B)break;var K={};Y?(_.tF(K,Gei,B),this.set("data.contents."+I+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
K)):(_.tF(K,new _.R(O),B),this.set("data.contents."+I+".backstagePostThreadRenderer.post",K))}}};
_.J.replaceBackstageReplyAction=function(W){var P=this.get("replaceBackstageReplyAction.replyId",W),x=this.get("replaceBackstageReplyAction.parentId",W);W=this.get("replaceBackstageReplyAction.renderer.commentRenderer",W);P&&W&&x&&this.setCreatorReply(x,W)};
_.J.removeCommentAction=function(W){var P=this.get("removeCommentAction.commentId",W);if(P){var x=this.get("removeCommentAction.parentCommentId",W);x&&this.get("removeCommentAction.isCreatorReply",W)?this.setCreatorReply(x,void 0):(x||(x=this.getParentPostId(P)),this.removeFromStream(P,x))}};
_.J.setCreatorReply=function(W,P){var x=this.getParentPostId(W);if(x){x=this.postIdToIndices(x);for(var I=0;I<x.length;I++){var O=x[I];if(O<0)break;var B=this.commentIdToIndex(W,O,!1);if(B>=0){var Y="data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+B;B=Y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Y+=".commentThreadRenderer.replies";P==void 0?(this.set(Y,{}),this.set(B,!1)):(this.set(Y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:P}]}}),
this.set(Y+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(B,!0))}B=this.commentIdToIndex(W,O,!0);B>=0&&(B="data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+B,O=B+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",B+=".commentThreadRenderer.replies",P==void 0?(this.set(B,{}),this.set(O,!1)):(this.set(B,{commentRepliesRenderer:{teaserContents:[{commentRenderer:P}]}}),this.set(O,!0)))}}};
_.J.removeFromStream=function(W,P){if(P){P=this.postIdToIndices(P);for(var x=0;x<P.length;x++){var I=P[x];if(I<0)break;var O=this.commentIdToIndex(W,I,!1);O>=0&&this.splice("data.contents."+I+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",O,1);O=this.commentIdToIndex(W,I,!0);O>=0&&this.splice("data.contents."+I+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",O,1);I="data.contents."+I+".backstagePostThreadRenderer.post.backstagePostRenderer";
O=I+".backstageAttachment.pollRenderer.votedCommentId";this.get(O)===W&&(this.set(O,null),this.set(I+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(P=this.postIdToIndices(W).reverse(),x=0;x<P.length;x++){I=P[x];if(I<0)break;O=this.getPostRendererType(I);var B=this.get("backstagePostThreadRenderer.post."+O,this.data.contents[I]);B.postId===W?this.splice("data.contents",I,1):O==="sharedPostRenderer"&&this.set("data.contents."+I+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);B.scheduledPublishTimeSec&&_.W7(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.J.postIdToIndices=function(W){for(var P=[],x=0;x<this.data.contents.length;x++){var I=this.getPostRendererType(x);this.get("backstagePostThreadRenderer.post."+I+".postId",this.data.contents[x])===W&&P.push(x);if(I==="sharedPostRenderer"){var O=this.get("backstagePostThreadRenderer.post."+I+".originalPost.backstagePostRenderer.postId",this.data.contents[x]);I=this.get("backstagePostThreadRenderer.post."+I+".originalPost.postRenderer.postId",this.data.contents[x]);O!==W&&I!==W||P.push(x)}}return P};
_.J.commentIdToIndex=function(W,P,x){if(P<0)return-1;var I,O,B,Y,K=_.Q((I=this.data)==null?void 0:(O=I.contents)==null?void 0:(B=O[P])==null?void 0:(Y=B.backstagePostThreadRenderer)==null?void 0:Y.comments,A8z);return(P=x?K==null?void 0:K.teaserContents:K==null?void 0:K.contents)&&P.length?P.findIndex(function(Z){return _.Q(Z,We3).comment.commentRenderer.commentId===W}):-1};
_.J.getParentPostId=function(W){W=W.split(".");if(W[1])return W[0]};
_.J.getPostRendererType=function(W){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[W])?"sharedPostRenderer":"backstagePostRenderer"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],jh.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jh.prototype,"data",void 0);jh=_.f([_.U({disableElementRegistration:!0,is:"ytd-backstage-items"})],jh);
_.X(jh,"ytd-backstage-items",function(){if(KiZ!==void 0)return KiZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return KiZ=
W},{mode:1});var Z$w;_.vM({is:"ytd-comments",_template:function(){if(Z$w!==void 0)return Z$w;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Z$w=W},
behaviors:[_.yTW.YtHostElementBehavior,_.aO.YtPlayerListenerBehavior,_.L.YtRendererBehavior,_.rb.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(W){W&&W.value&&W.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(W){W&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.QY("wn_comments");var W=_.E_();W&&_.jI({clientScreenNonce:W},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(W){W=S9R(W);var P,x,I;if(W=(P=W)==null?void 0:(x=P.createCommentAction)==null?void 0:(I=x.contents)==null?void 0:I.commentThreadRenderer){var O,B,Y,K,Z,d;!this.isBackstage&&((O=this.data)==null?0:(B=O.header)==null?0:(Y=B.commentsHeaderRenderer)==null?0:(K=Y.createRenderer)==null?0:(Z=K.commentSimpleboxRenderer)==null?0:(d=Z.zeroStep)==null?0:d.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var v,m,t,C;this.isBackstage&&((v=this.data)==null?0:(m=v.header)==null?0:(t=m.commentsHeaderRenderer)==null?0:(C=t.zeroStateMessage)==null?0:C.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(W)}},
doReplyInsert_:function(W,P,x,I){I?this.splice(W,I,0,P):this.push(W,P)},
getRepliesPath_:function(W){return"data.contents."+W+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(W,P){W=this.getRepliesPath_(W);return P?W+".commentRepliesRenderer.teaserContents":W+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(W){W=S9R(W);var P,x,I=(P=W)==null?void 0:(x=P.createCommentReplyAction)==null?void 0:x.parentCommentId,O,B;if(P=(O=W)==null?void 0:(B=O.createCommentReplyAction)==null?void 0:B.contents)if(I=this.commentIdToIndex_(I),!(I<0))if(O=this.getRepliesPath_(I),this.get(O)){var Y,K;W=(Y=W)==null?void 0:(K=Y.createCommentReplyAction)==null?void 0:K.replyToCommentId;Y=this.getRepliesContentsPath_(I,!1);this.get(Y)&&(K=this.get(Y).length,O=Y+"."+(K-1)+".continuationItemRenderer",
this.get(O+".button")?(O=this.replyIdToIndex_(W,I,!1),this.doReplyInsert_(Y,P,O,K-1)):this.get(O)||(K=this.replyIdToIndex_(W,I,!1),this.doReplyInsert_(Y,P,K,null)));Y=this.getRepliesContentsPath_(I,!0);this.get(Y)?(I=this.replyIdToIndex_(W,I,!0),(!W||I>=0)&&this.doReplyInsert_(Y,P,I,null)):this.set(Y,[P])}else this.set(O,{commentRepliesRenderer:{teaserContents:[P]}})},
hideReportedCommentAction_:function(W){var P,x=W==null?void 0:(P=W.hideReportedCommentAction)==null?void 0:P.commentId;if(x){var I;W=W==null?void 0:(I=W.hideReportedCommentAction)==null?void 0:I.parentCommentId;x=x.replace("#",".");W||(W=this.getParentCommentId_(x));this.remove_(x,W)}},
getParentCommentId_:function(W){W=W.split(".");if(W[1])return W[0]},
removeCommentAction_:function(W){var P,x=W==null?void 0:(P=W.removeCommentAction)==null?void 0:P.commentId;if(x){var I;W=W==null?void 0:(I=W.removeCommentAction)==null?void 0:I.parentCommentId;x=x.replace("#",".");W||(W=this.getParentCommentId_(x));this.remove_(x,W)}},
pinCommentAction_:function(W){W=S9R(W);var P,x,I=(P=W)==null?void 0:(x=P.pinCommentAction)==null?void 0:x.commentId;I&&(W=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",W))&&(this.remove_(I),this.insert_(W,!0))},
unpinCommentAction_:function(W){W=S9R(W);var P,x,I=(P=W)==null?void 0:(x=P.unpinCommentAction)==null?void 0:x.commentId;if(I){var O,B,Y;if(W=(O=W.unpinCommentAction)==null?void 0:(B=O.actionResult)==null?void 0:(Y=B.update)==null?void 0:Y.commentThreadRenderer)this.remove_(I),this.insert_(W)}},
banAuthorAction_:function(W){var P,x=W==null?void 0:(P=W.banAuthorAction)==null?void 0:P.commentId;if(x){var I;W=W==null?void 0:(I=W.banAuthorAction)==null?void 0:I.parentCommentId;x=x.replace("#",".");W||(W=this.getParentCommentId_(x));this.remove_(x,W)}},
commentIdToIndex_:function(W){var P;return W&&(P=this.data)!=null&&P.contents?this.data.contents.findIndex(function(x){var I,O;return W===((x==null?void 0:(I=x.commentThreadRenderer)==null?void 0:I.commentViewModel)&&((O=_.Q(x.commentThreadRenderer.commentViewModel,Od3))==null?void 0:O.commentId))}):-1},
insert_:function(W,P){var x,I;if((x=this.data)==null?0:(I=x.contents)==null?0:I.some(function(B){return!(B==null||!B.commentThreadRenderer)}))for(x=0,I=this.data.contents.length;x<I;x++){var O=this.data.contents[x].commentThreadRenderer;
if(this.RenderingPriority[W.renderingPriority]>=this.RenderingPriority[O.renderingPriority]){P&&this.RenderingPriority[W.renderingPriority]==this.RenderingPriority[O.renderingPriority]?this.splice("data.contents",x,1,{commentThreadRenderer:W}):this.splice("data.contents",x,0,{commentThreadRenderer:W});break}}else this.set("data.contents",[{commentThreadRenderer:W}])},
doReplyRemove_:function(W,P,x){W=this.replyIdToIndex_(W,P,x);W<0||(P=this.getRepliesContentsPath_(P,x),this.splice(P,W,1))},
remove_:function(W,P){P=this.commentIdToIndex_(P);P<0?(P=this.commentIdToIndex_(W),P<0||this.splice("data.contents",P,1)):(this.doReplyRemove_(W,P,!1),this.doReplyRemove_(W,P,!0))},
replyIdToIndex_:function(W,P,x){if(P<0)return-1;P=this.getRepliesContentsPath_(P,x);P=this.get(P);if(!P||!P.length)return-1;x=0;for(var I=P.length;x<I;x++){var O=void 0,B=void 0;if(((O=P[x])==null?void 0:(B=O.commentViewModel)==null?void 0:B.commentId)===W)return x}return-1},
computeIsBackstage_:function(W){return!!W},
tickForCommentsTimer_:function(W){_.An(W,void 0,"wn_comments")},
reloadComments_:function(W){W&&W.reloadCommentsCommand&&W.reloadCommentsCommand.command&&W.reloadCommentsCommand.command.continuationCommand&&_.Iu(this,[W.reloadCommentsCommand.command])}});var QN=function(){return _.Yl.apply(this,arguments)||this};
_.A(QN,_.Yl);_.J=QN.prototype;_.J.bindIf=function(W,P,x){return W?P:x};
_.J.bindIfDefined=function(W,P){return W!==void 0?W:P};
_.J.booleanString=function(W){return(!!W).toString()};
_.J.equals=function(){for(var W=_.tH.apply(0,arguments),P=W[0],x=1;x<W.length;x++)if(P!=W[x])return!1;return!0};
_.J.isGreaterThan=function(W,P){return W>P};
_.J.isLessThan=function(W,P){return W<P};
_.J.logicalAND=function(){for(var W=_.tH.apply(0,arguments),P=!!W[0],x=1;x<W.length;x++)P=P&&!!W[x];return P};
_.J.logicalOR=function(){for(var W=_.tH.apply(0,arguments),P=!!W[0],x=1;x<W.length;x++)P=P||!!W[x];return P};
_.J.toBool=function(W){return!!W};
QN.prototype.toBool=QN.prototype.toBool;QN.prototype.logicalOR=QN.prototype.logicalOR;QN.prototype.logicalAND=QN.prototype.logicalAND;QN.prototype.isLessThan=QN.prototype.isLessThan;QN.prototype.isGreaterThan=QN.prototype.isGreaterThan;QN.prototype.equals=QN.prototype.equals;QN.prototype.booleanString=QN.prototype.booleanString;QN.prototype.bindIfDefined=QN.prototype.bindIfDefined;QN.prototype.bindIf=QN.prototype.bindIf;QN=_.f([_.yL()],QN);_.ork=[QN.prototype];var SDP;var ukl;var CZ=function(){return _.b.apply(this,arguments)||this};
_.A(CZ,_.b);CZ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
CZ.prototype.onBackIconTap_=function(){window.history.back()};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],CZ.prototype,"data",void 0);CZ=_.f([_.jd({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],CZ);
_.X(CZ,"yt-header-with-back-renderer",function(){if(ukl===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;SDP===void 0&&(SDP=document.createElement("template"));var I=SDP;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ukl=W}W=ukl;return W},{mode:2});var dZ3;var sbk;var AS=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(AS,_.b);_.J=AS.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W,this.setUrl())};
_.J.dataChanged=function(){var W=this;if(this.data){var P=this.setUrl();P&&_.Wx({destination:window,iframe:this.iframe,origin:_.g4Z(P.toString()),channelName:"yt-iframe",onMessage:function(x){(x=W.getCommunicationCommand(x.data))&&W.ytComponentBehavior.resolveCommand(x)},
onEstablished:function(){}})}};
_.J.setUrl=function(){if(this.data&&this.data.iframeUrl){var W=_.Ez(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(W)return _.g9(this.iframe,W),W}};
_.J.getCommunicationCommand=function(W){var P;if((P=this.data)!=null&&P.onCommunicationCommandsMap){P=this.data.onCommunicationCommandsMap.find(function(O){return O.key===W});
if(P==null?0:P.value)return P==null?void 0:P.value;try{var x=CgM(_.up(W)),I=this.data.onCommunicationCommandsMap.find(function(O){return O.key===(x==null?void 0:_.MY(x,1))});
if(I==null?0:I.value)return I==null?void 0:I.value}catch(O){}}};
AS.prototype.dataChanged=AS.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],AS.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],AS.prototype,"actionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],AS.prototype,"data",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],AS.prototype,"isDarkTheme",void 0);_.f([_.BM("#iframe"),_.l("design:type",HTMLIFrameElement)],AS.prototype,"iframe",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AS.prototype,"dataChanged",null);AS=_.f([_.jd({is:"yt-iframe-renderer",disableElementRegistration:!0})],AS);
_.X(AS,"yt-iframe-renderer",function(){if(sbk===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;dZ3===void 0&&(dZ3=document.createElement("template"));var I=dZ3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);sbk=W}W=sbk;return W},{mode:2});_.zf=function(W){_.vn.call(this);this.callback=W;this.bezier=new nl3(0,0,.4,0,.2,1,1,1);this.delay=new _.r7(this.next,window,this);this.JSC$14626_animating=!1;_.nU(this,this.delay)};
_.A(_.zf,_.vn);_.zf.prototype.isAnimating=function(){return this.JSC$14626_animating};
_.zf.prototype.start=function(W,P,x){this.config={from:W,to:P,duration:x,startTime:(0,_.iA)()};this.JSC$14626_animating=!0;this.next()};
_.zf.prototype.stop=function(){this.delay.stop();this.JSC$14626_animating=!1;this.config=void 0};
_.zf.prototype.next=function(){if(this.config){var W=this.config,P=W.from,x=W.to,I=W.duration;W=W.startTime;var O=(0,_.iA)()-W;W=this.bezier;I=yEi(W,O/I);if(I==0)W=W.y0;else if(I==1)W=W.y3;else{O=jA(W.y0,W.y1,I);var B=jA(W.y1,W.y2,I);W=jA(W.y2,W.y3,I);O=jA(O,B,I);B=jA(B,W,I);W=jA(O,B,I)}W=_.HX(W,0,1);this.callback(P+(x-P)*W);W<1?this.delay.start():this.JSC$14626_animating=!1}};_.Gf=new _.Lb("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var vrP={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},VNm=function(W,P,x,I){_.vn.call(this);this.JSC$14634_miniAppId=W;this.localReleaseId=P;this.derivedDeviceInterface=x;this.isForeground=I;this.JSC$14634_playNonceResolver=new _.If;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Wi("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Wi("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.p("enable_displaying_ppn");this.JSC$14634_miniAppClientDataProvider=_.FY().resolve(_.Gf);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;mZA(this);var O=setTimeout(function(){_.ge(new _.mW("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14634_playNonceResolver.promise.then(function(){clearTimeout(O)})};
_.A(VNm,_.vn);var p8c=function(W,P){W.JSC$14634_playNonceResolver.resolve(P!=null?P:A1(8));W.enableDisplayingPpn&&tNZ(W).then(function(x){W.JSC$14634_miniAppClientDataProvider.clientData.set("post_play_nonce",x)})},tNZ=function(W){return _.y(function(P){return P.nextAddress==1?_.S(P,W.JSC$14634_playNonceResolver.promise,2):P.return(P.yieldResult)})},mZA=function(W){var P,x;
_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$14634_playNonceResolver.promise,2);P=I.yieldResult;x={miniAppInfo:{externalPostId:W.JSC$14634_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:P,derivedDeviceInterface:W.derivedDeviceInterface}};_.jI(x);_.Kl(I)})},Qbc=function(W){W.state!==0?_.ge(new _.mW("[MiniAppPlayLogger] recordPlayStart failed with state "+vrP[W.state])):(W.state=1,EY(W,"ma_cl"),gt(W,"PLAY_EVENT_TYPE_PLAY_START"),jbi(W))},Cym=function(W){W.isForeground=!1;
gt(W,"PLAY_EVENT_TYPE_PLAY_PAUSE")},ABA=function(W){W.state!==1&&W.state!==2?_.ge(new _.mW("[MiniAppPlayLogger] recordPlayEnd failed with state "+vrP[W.state])):(W.state=3,window.clearInterval(W.playPingTimerId),W.playPingTimerId=NaN,KaW(),gt(W,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},zgi=function(W,P){W.state===2&&W.gameReady&&(W.firstClickRecorded?Date.now()-W.clickRecordedMs<W.playClickIntervalMs||(W.clickRecordedMs=Date.now(),gt(W,"PLAY_EVENT_TYPE_PLAY_CLICK")):P&&(EY(W,"ma_fua"),gt(W,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),W.firstClickRecorded=!0,W.clickRecordedMs=Date.now()))};
VNm.prototype.logError=function(W){var P=this,x;_.y(function(I){if(I.nextAddress==1)return W.metadata.externalPostId=P.JSC$14634_miniAppId,x=W.metadata,_.S(I,Promise.race([P.JSC$14634_playNonceResolver.promise,new Promise(function(O){setTimeout(function(){O("")},3E4)})]),2);
x.postPlayNonce=I.yieldResult;W.metadata.localReleaseId=P.localReleaseId;W.loggingError.level="WARNING";_.G$(W.loggingError,W.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:W.metadata});_.Kl(I)})};
var G3W=function(W,P,x,I){var O,B,Y,K,Z,d;_.y(function(v){if(v.nextAddress==1)return _.S(v,W.JSC$14634_playNonceResolver.promise,2);O=v.yieldResult;B={externalPostId:W.JSC$14634_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:O,sdkVersion:x,api:P};I!==void 0&&(B.networkRequestsMeasurement={networkRequests:_.L5(I,1),cachedRequests:_.L5(I,2),transferredBytes:_.L5(I,3)},(Y=I)==null?0:_.Vo(Y,Fs,6))&&(B.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((K=_.qM(I,
Fs,6))==null?void 0:wg(K,1))||"0",cacheHits:((Z=_.qM(I,Fs,6))==null?void 0:wg(Z,2))||"0",cachedBytes:((d=_.qM(I,Fs,6))==null?void 0:wg(d,3))||"0"});_.Ay("miniAppSdkUsage",B);_.Kl(v)})},grW=function(W,P,x){var I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k;
_.y(function(T){if(T.nextAddress==1)return _.S(T,W.JSC$14634_playNonceResolver.promise,2);I=T.yieldResult;O={externalPostId:W.JSC$14634_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:I,sdkVersion:x,measurementWindow:{startTimestampMs:String(gg(P,1)),endTimestampMs:String(gg(P,2))},frameRate:{averageFrameTimeDeltaMs:D2(P,3),averageFrameIdleTimeMs:D2(P,4)}};_.Vo(P,qK,5)&&(O.networkRequests={networkRequests:(B=Jc(P))==null?void 0:_.L5(B,1),cachedRequests:(Y=Jc(P))==null?void 0:_.L5(Y,2),transferredBytes:(K=
Jc(P))==null?void 0:_.L5(K,3),sameOriginStatusCodeToCounts:Erw((Z=Jc(P))==null?void 0:P3A(Z,4)),crossOriginStatusCodeToCounts:Erw((d=Jc(P))==null?void 0:P3A(d,5))},(v=Jc(P))==null?0:_.Vo(v,Fs,6))&&(O.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((m=Jc(P))==null?void 0:(t=_.qM(m,Fs,6))==null?void 0:wg(t,1))||"0",cacheHits:((C=Jc(P))==null?void 0:(z=_.qM(C,Fs,6))==null?void 0:wg(z,2))||"0",cachedBytes:((D=Jc(P))==null?void 0:(w=_.qM(D,Fs,6))==null?void 0:wg(w,3))||"0"});_.Vo(P,
pXk,7)&&(O.gameCapture={averageFrameTimeDeltaMs:(a=_.qM(P,pXk,7))==null?void 0:D2(a,1),averageFrameIdleTimeMs:(k=_.qM(P,pXk,7))==null?void 0:D2(k,2)});_.Ay("miniAppPerformanceMetrics",O);_.Kl(T)})},DZW=function(W,P,x){var I,O;
return _.y(function(B){if(B.nextAddress==1)return _.S(B,W.JSC$14634_playNonceResolver.promise,2);I=B.yieldResult;O={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:W.JSC$14634_miniAppId,postPlayNonce:I,miniAppReleaseId:W.localReleaseId},derivedDeviceInterface:W.derivedDeviceInterface,adTriggerType:P};O.rejectedReason=x||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.Ay("miniAppAdEvent",O);_.Kl(B)})};
VNm.prototype.disposeInternal=function(){_.vn.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var gt=function(W,P,x,I){x=x===void 0?{}:x;I=I===void 0?!1:I;var O,B,Y,K;_.y(function(Z){if(Z.nextAddress==1)return O=W.isForeground,B=W.beforeReady,_.S(Z,W.JSC$14634_playNonceResolver.promise,2);Y=Z.yieldResult;K={externalPostId:W.JSC$14634_miniAppId,localReleaseId:W.localReleaseId,derivedDeviceInterface:W.derivedDeviceInterface,postPlayNonce:Y,type:P};x.sequenceGroup=Y;K.playState=B?"PLAY_STATE_NOT_READY":O?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Ay("miniAppPlayEvent",K,x);
I&&_.z$();_.Kl(Z)})},EY=function(W,P){var x;
_.y(function(I){if(I.nextAddress==1)return x=(0,_.iA)(),_.S(I,W.JSC$14634_playNonceResolver.promise,2);_.CK(P,x);_.Kl(I)})},jbi=function(W){isNaN(W.playPingTimerId)&&(W.playPingTimerId=_.JY(function(){W.state!==1&&W.state!==2?_.ge(new _.mW("[MiniAppPlayLogger] reportPlayPing failed with state "+vrP[W.state])):gt(W,"PLAY_EVENT_TYPE_PLAY_PING")},W.playPingIntervalMs))},Erw=function(W){return Array.from(W.entries()).map(function(P){var x=_.n(P);
P=x.next().value;x=x.next().value;return{key:P,value:x}})};var MNb=_.Wi("show_mini_app_ad_frequency_cap_ms",0),$Zd=function(){this.showAdIntervalMs=MNb;this.isRateLimited=!0},w8W=function(W,P){setTimeout(function(){return W.isRateLimited=!1},W.showAdIntervalMs);
W.showMiniAppAdCommand=P.showMiniAppAdCommand;W.isEmbeddedInWebview=P.isEmbeddedInWebview;W.playLogger=P.playLogger},H$l=function(W,P){var x;
return _.y(function(I){if(I.nextAddress==1){if(!W.showMiniAppAdCommand||!W.isEmbeddedInWebview)return I.return(hgP(W,P,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(W.isRateLimited)return I.return(hgP(W,P,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));W.adResolver=new _.If;x=Ump(new kQc,P);Xj(W.showMiniAppAdCommand,X1b(x));W.isRateLimited=!0;setTimeout(function(){return W.isRateLimited=!1},W.showAdIntervalMs);
return _.S(I,W.adResolver.promise,2)}return I.return(I.yieldResult)})};
$Zd.prototype.onAdFinished=function(W){W=L0w(W);var P;(P=this.adResolver)==null||P.resolve(W)};
var hgP=function(W,P,x){var I;return _.y(function(O){if(O.nextAddress==1)O=_.S(O,(I=W.playLogger)==null?void 0:DZW(I,VEW(P),x),2);else{var B=O.return;var Y=new qrc;Y=_.Lj(Y,1,2);O=B.call(O,Y)}return O})};var eg3=new _.Lb("INNERTUBE_MANAGER_TOKEN");var cBb=function(){this.callbacks={}};
cBb.prototype.initialize=function(W){var P=this;this.callbacks=W;window.youtubewebview?window.youtubewebview.onmessage=function(x){aap(P,x)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(x){aap(P,x)})};
var aap=function(W,P){if(P.data)try{var x=CgM(P.data);if(_.aG(_.mS(x,1))!=null){var I=h$P(_.MY(x,2));switch(_.MY(x,1)){case "yt-mini-app-load-audio-state":var O,B;(B=(O=W.callbacks).onAudioStateLoaded)==null||B.call(O,_.E1(I,de(I,Et,1)));break;case "yt-mute-mini-app":var Y,K;(K=(Y=W.callbacks).onMuteMiniApp)==null||K.call(Y);break;case "yt-unmute-mini-app":var Z,d;(d=(Z=W.callbacks).onUnmuteMiniApp)==null||d.call(Z);break;case "yt-playable-exit":var v,m;(m=(v=W.callbacks).onExit)==null||m.call(v);
break;case "yt-post-play-nonce":var t,C;(C=(t=W.callbacks).onPostPlayNonceReceived)==null||C.call(t,h8(I,2,Et));break;case "yt-confirm-exit-mini-app":var z,D;(D=(z=W.callbacks).confirmExitMiniApp)==null||D.call(z);break;case "yt-confirm-exit-mini-app-edu":var w,a;(a=(w=W.callbacks).confirmExitMiniAppEdu)==null||a.call(w);break;case "yt-benchmarking-response":var k,T;(T=(k=W.callbacks).onNativeBenchmarkingMessageReceived)==null||T.call(k,h8(I,2,Et));break;case "yt-mini-app-load-3p-consent-state":var N,
Io;(Io=(N=W.callbacks).multiplayer3pAckStateLoaded)==null||Io.call(N,_.E1(I,de(I,Et,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var F,nm;(nm=(F=W.callbacks).exitMiniAppSeenStateLoaded)==null||nm.call(F,_.E1(I,de(I,Et,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var pm,zR;(zR=(pm=W.callbacks).onNavigateToNewMiniApp)==null||zR.call(pm);break;case "yt-game-data-available":var Am,kW;(kW=(Am=W.callbacks).onGameDataAvailable)==null||kW.call(Am,h8(I,2,Et));break;case "yt-pause-mini-app":var $W,
ao;(ao=($W=W.callbacks).onPauseMiniApp)==null||ao.call($W);break;case "yt-resume-mini-app":var e8,iC;(iC=(e8=W.callbacks).onResumeMiniApp)==null||iC.call(e8);break;case "yt-playable-ad-finished":var hw,dk;(dk=(hw=W.callbacks).onAdFinished)==null||dk.call(hw,h8(I,2,Et))}}else _.ge(Error("Rh"))}catch(Oc){_.G$(Error("Sh"))}else _.ge(Error("Th"))};var p0R=function(W){this.rpcErrorCode=W};var DP=function(W,P,x){this.intervalMs=W;this.apiFunc=P;this.type=x;this.schedulerReady=!0};
DP.prototype.call=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1){if(P.type!==1&&W===P.cachedValue)return I.return();P.pendingApiRequestResolver||(P.pendingApiRequestResolver=new _.If);x=P.pendingApiRequestResolver.promise;P.cachedValue=W;return _.S(I,b$W(P),2)}return I.return(x)})};
DP.prototype.flush=function(W){W=W===void 0?!1:W;var P=this;return _.y(function(x){return P.cachedValue===void 0?x.return():_.S(x,P.apiFunc(P.cachedValue,W),0)})};
var b$W=function(W){var P,x,I;return _.y(function(O){switch(O.nextAddress){case 1:if(!W.schedulerReady||!W.pendingApiRequestResolver)return O.return();W.schedulerReady=!1;P=W.pendingApiRequestResolver;W.pendingApiRequestResolver=void 0;_.OT(O,2);if(W.cachedValue===void 0){O.jumpTo(4);break}return _.S(O,W.apiFunc(W.cachedValue),5);case 5:x=O.yieldResult,P.resolve(x);case 4:_.ci(O,3);break;case 2:I=_.yn(O),P.reject(I);case 3:setTimeout(function(){return _.y(function(B){W.schedulerReady=!0;return _.S(B,
b$W(W),0)})},W.intervalMs),_.Kl(O)}})};var Ca8=window.location.origin+"/miniapp_cloudsaves",jNG=[400,401],k3k=_.Wi("cloud_save_game_data_rate_limit_ms",3E3),faw=function(W){var P=this;this.JSC$14678_miniAppId=W;this.loadAttempts=0;this.cloudSaveIntervalMs=k3k;this.initialDownloadDataSucceeded=!1;this.JSC$14678_playNonceResolver=new _.If;this.scottyUploadRateLimiter=new DP(this.cloudSaveIntervalMs,function(x,I){return UZW(P,x,I)},2);
this.downloadDataPromise=X8i(this);this.downloadDataPromise.then(function(){P.initialDownloadDataSucceeded=!0}).catch(function(){})},NIZ=function(W,P){P.then(function(x){return W.JSC$14678_playNonceResolver.resolve(x)})},laP=function(W){return _.y(function(P){return W.cachedData===void 0?P.return(W.downloadDataPromise):P.return(W.cachedData)})},TIl=function(W,P){return _.y(function(x){W.cachedData=P;
if(!W.initialDownloadDataSucceeded)throw Error("Uh");return _.S(x,W.scottyUploadRateLimiter.call(P),0)})},rBk=function(){return new Promise(function(W){setTimeout(W,1E3,"")})},i$P=function(W,P){var x,I;
return _.y(function(O){if(O.nextAddress==1)return x=W.JSC$14678_miniAppId,_.S(O,Promise.race([W.JSC$14678_playNonceResolver.promise,rBk()]),2);I={"X-YouTube-MiniAppId":x,"X-YouTube-PostPlayNonce":O.yieldResult};"DELEGATED_SESSION_ID"in _.D$&&XfR(P,I);return O.return(I)})},UZW=function(W,P,x){x=x===void 0?!1:x;
return _.y(function(I){return tEC()?_.p("enable_cloud_save_error_popup_after_retry")?I.return(new Promise(function(O,B){var Y,K,Z,d,v;return _.y(function(m){switch(m.nextAddress){case 1:Y=0,K=!0,d=Z=null;case 2:if(!(K&&Y++<2)){m.jumpTo(4);break}_.OT(m,5);return _.S(m,Rgz(W,P,x),7);case 7:Z=m.yieldResult;K=Z.ok?!1:!jNG.includes(Z.status);_.ci(m,2);break;case 5:d=v=_.yn(m);K=QNo(d);m.jumpTo(2);break;case 4:Z?Z.ok?(MN(W,k3k),O()):(MN(W,W.cloudSaveIntervalMs*2),B(Error("Vh`"+String(Z.status),{cause:{rpcErrorCode:Z.status}}))):
(MN(W,W.cloudSaveIntervalMs*2),B(d||Error("Wh"))),_.Kl(m)}})})):I.return(new Promise(function(O,B){var Y,K;
return _.y(function(Z){if(Z.nextAddress==1){if(W.JSC$14678_miniAppId==="")return B(Error("Xh")),Z.return();_.OT(Z,2);return _.S(Z,Rgz(W,P,x),4)}if(Z.nextAddress!=2)return Y=Z.yieldResult,Y.ok?(MN(W,k3k),O()):(MN(W,W.cloudSaveIntervalMs*2),B(Error("Vh`"+String(Y.status),{cause:{rpcErrorCode:Y.status}}))),_.ci(Z,0);K=_.yn(Z);MN(W,W.cloudSaveIntervalMs*2);B(K);_.Kl(Z)})})):I.return()})},Rgz=function(W,P,x){x=x===void 0?!1:x;
var I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return I=_.L2((new TextEncoder).encode(P)),O=A$7(),_.S(Y,i$P(W,O),2);B=Y.yieldResult;return Y.return(fetch(O,{method:"POST",body:new Blob([I]),headers:B,keepalive:x}))})},X8i=function(W){var P,x;
return _.y(function(I){if(I.nextAddress==1){if(!tEC())return I.return("");if(W.JSC$14678_miniAppId==="")throw Error("Xh");if(W.loadAttempts>2)return I.return(W.downloadDataPromise);_.OT(I,2);return _.S(I,FiZ(W),4)}if(I.nextAddress!=2)return P=I.yieldResult,I.return(P);x=_.yn(I);if(QNo(x)&&++W.loadAttempts<2)return I.return(X8i(W));throw x;})},FiZ=function(W){var P,x,I,O,B;
return _.y(function(Y){switch(Y.nextAddress){case 1:return _.OT(Y,2),P=A$7(),_.S(Y,i$P(W,P),4);case 4:return x=Y.yieldResult,_.S(Y,fetch(P,{method:"GET",headers:x}),5);case 5:return I=Y.yieldResult,I.ok?_.S(Y,I.text(),6):Y.return(Promise.reject(Error("Yh`"+String(I.status),{cause:new p0R(I.status)})));case 6:return O=Y.yieldResult,Y.return((new TextDecoder).decode(_.up(O)));case 2:return B=_.yn(Y),Y.return(Promise.reject(B))}})},MN=function(W,P){W.cloudSaveIntervalMs=P;
W.scottyUploadRateLimiter.intervalMs=W.cloudSaveIntervalMs};
faw.prototype.flush=function(){var W=this;return _.y(function(P){return W.initialDownloadDataSucceeded?_.S(P,W.scottyUploadRateLimiter.flush(!0),0):P.return()})};var qDP=I9(xZ(1),WA(1)),Liz=I9(xZ(1),WA(3)),$8=function(W){this.callbacks=W};
_.J=$8.prototype;_.J.onAudioToggled=function(W,P){(P===void 0||P)&&_.Y9("yt-mini-app-is-audio-enabled",W,2592E3)};
_.J.onPause=function(){this.onAudioToggled(!1,!1)};
_.J.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.J.returnNativeBenchmarkingMessage=function(){};
_.J.sendGameData=function(){};
_.J.sendStartGameFrameCapture=function(){};
var zrt=function(W,P,x){this.callbacks=W;var I=this;this.sdkVersion=new _.If;this.channel=new bV7(_.Wx({destination:window,iframe:P,origin:(new URL(x.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var O=wt;var B=xZ(5);var Y=new Yew;Y=_.ee(Y,1,1E4);B=_.O0(B,4,szP,Y);O(I,B);I.onAudioToggled(I.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){I.sdkVersion.resolve("")},1E4)};
_.A(zrt,$8);_.J=zrt.prototype;_.J.onAudioToggled=function(W,P){$8.prototype.onAudioToggled.call(this,W,P===void 0?!0:P);P=wt;var x=xZ(2),I=new Bhl;W=_.IE(I,1,W);W=_.O0(x,3,szP,W);P(this,W)};
_.J.onPause=function(){$8.prototype.onPause.call(this);wt(this,xZ(3))};
_.J.onResume=function(){$8.prototype.onResume.call(this);wt(this,xZ(4))};
_.J.returnNativeBenchmarkingMessage=function(W){var P=wt,x=xZ(6);var I=WA(_.Vo(W,TT,1)?1:2);W=_.Vo(W,TT,1)?W:null;I=_.O0(I,5,PA,W);P(this,I9(x,I))};
_.J.sendGameData=function(W){var P=wt,x=xZ(7);W=_.O0(x,5,szP,W);P(this,W)};
_.J.sendStartGameFrameCapture=function(){wt(this,xZ(9))};
var hS=function(W,P,x){var I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return I=W.callbacks,O=I.onSdkCalled,B=P,_.S(Y,W.sdkVersion.promise,2);O.call(I,B,Y.yieldResult,x);_.Kl(Y)})};
zrt.prototype.onMessage=function(){var W=this;return XG8(BA,function(P){var x,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F,nm,pm,zR,Am,kW,$W,ao,e8,iC,hw,dk,Oc,Bm,GA,KM,PZ,j$,YW,QZ,ez,b3,D3,lp,TE,sc;return _.y(function(rS){switch(rS.nextAddress){case 1:if(!AMp(P.data))return _.ge(Error("Zh")),rS.return();x=_.$5(P.data,1);_.p("enable_iframe_message_get_type_via_fields")&&(I=P.data,x=O=_.$5(I,1));switch(x){case 8:if(P.data.hasMetadata()){var jz=W.sdkVersion,yf=jz.resolve;var CM=P.data.getMetadata();CM=_.MY(CM,
1);yf.call(jz,CM);clearTimeout(W.sdkVersionTimeoutId)}break;case 6:return rS.jumpTo(2);case 16:if(!_.t8(P.data,V_i,14,nw))return rS.return();B=_.HI(P.data,V_i,14,nw);(K=(Y=W.callbacks).onGameFrameReceived)==null||K.call(Y,B);return rS.return();case 17:if(!_.t8(P.data,m$P,15,nw))return rS.return();(d=(Z=W.callbacks).onGameAudioReceived)==null||d.call(Z,_.HI(P.data,m$P,15,nw));return rS.return();case 1:if(jz=_.HI(P.data,ZPZ,2,nw))switch(_.$5(jz,1)){case 1:W.callbacks.onFirstFrameReady();if(_.p("enable_network_request_logging_on_game_events")&&
_.Vo(jz,qK,4)){hS(W,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.qM(jz,qK,4));break}hS(W,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(CM=(yf=W.callbacks).onGameReady)==null||CM.call(yf);if(_.p("enable_network_request_logging_on_game_events")&&_.Vo(jz,qK,4)){hS(W,"MINI_APP_SDK_API_GAME_READY",_.qM(jz,qK,4));break}hS(W,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.t8(jz,LT,3,ocz))W.callbacks.onResourceLoaded(_.HI(jz,LT,3,ocz))}return rS.return();case 3:return rS.jumpTo(3);case 4:return rS.jumpTo(4);
case 2:return rS.jumpTo(5);case 9:return rS.jumpTo(6);case 10:return W.callbacks.onClick(),rS.return();case 5:return rS.jumpTo(7);case 11:if(!_.t8(P.data,i7,9,nw))return rS.return();v=_.HI(P.data,i7,9,nw);(t=(m=W.callbacks).onBenchmarkingMessageReceived)==null||t.call(m,v);jz=P.reply;yf=xZ(1);CM=WA(1);var Vf=new i7;var Kx=new Uint8Array(yKo(v,de(v,P4d,6))|0);Vf=Ka(Vf,5,P4d,_.Uc(Kx,!1));CM=_.O0(CM,5,PA,Vf);jz.call(P,I9(yf,CM));return rS.return();case 12:return rS.jumpTo(8);case 13:return rS.jumpTo(9);
case 15:if(!_.p("enable_open_yt_content"))return P.reply(Liz),rS.return();if(!_.t8(P.data,vcP,12,nw))return P.reply(I9(xZ(1),WA(2))),rS.return();jz=_.HI(P.data,vcP,12,nw);C=_.MY(jz,1);W.callbacks.onOpenYTContent(C);P.reply(qDP);return rS.return();case 14:return rS.jumpTo(10);default:return rS.return()}rS.jumpTo(0);break;case 2:if(!_.t8(P.data,Ot,5,nw))return rS.return();yf=P.data;jz=de(yf,nw,5);yf=yf.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(jz=gD(yf,yf[_.Ec]|0,Ot,jz))||(jz=Ot[f2])||
(jz=new Ot,$i(jz.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),jz=Ot[f2]=jz);z=jz;jz=_.RQ(z,Rn,1,_.qT());D=_.n(jz);w=D.next();case 12:if(w.done){rS.jumpTo(14);break}a=w.value;k=new _.mW;k.level=_.$5(a,2)===1?"WARNING":"ERROR";T=Eo7(a.getSource());return _.S(rS,W.sdkVersion.promise,15);case 15:N={source:T,sdkVersion:rS.yieldResult};_.jm(_.mS(a,6))!=null?(k.message=a.getMessage(),k.stack=_.MY(a,5),N.sdkErrorType=got(_.$5(a,6)),_.jm(_.mS(a,7))!=null&&(N.sdkApi=DFC(_.$5(a,7)))):k.stack=void 0;
F=Io=void 0;(F=(Io=W.callbacks).onError)==null||F.call(Io,{loggingError:k,metadata:N});w=D.next();rS.jumpTo(12);break;case 14:return rS.return();case 3:return _.OT(rS,16),jz=W.callbacks,yf=jz.onSave,CM=_.HI(P.data,ncZ,4,nw),CM=_.MY(CM,1),_.S(rS,yf.call(jz,CM),18);case 18:P.reply(qDP);_.ci(rS,17);break;case 16:return nm=_.yn(rS),pm=fo,zR=nm,Am=W.callbacks,kW="MINI_APP_SDK_API_SAVE_DATA",_.S(rS,W.sdkVersion.promise,19);case 19:pm(zR,Am,kW,rS.yieldResult),P.reply(Liz);case 17:return _.S(rS,hS(W,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return rS.return();case 4:return _.OT(rS,21),_.S(rS,W.callbacks.onLoad(),23);case 23:$W=rS.yieldResult;jz=P.reply;yf=xZ(1);CM=WA(1);Vf=new ncZ;Vf=_.SU(Vf,1,$W);CM=_.O0(CM,3,PA,Vf);jz.call(P,I9(yf,CM));_.ci(rS,22);break;case 21:return ao=_.yn(rS),e8=fo,iC=ao,hw=W.callbacks,dk="MINI_APP_SDK_API_LOAD_DATA",_.S(rS,W.sdkVersion.promise,24);case 24:e8(iC,hw,dk,rS.yieldResult),P.reply(Liz);case 22:return _.S(rS,hS(W,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return rS.return();case 5:_.OT(rS,
26);W.callbacks.onSendHighScore(zF(_.HI(P.data,Qz3,3,nw).getValue()));P.reply(I9(xZ(1),WA(1)));_.ci(rS,27);break;case 26:return Oc=_.yn(rS),Bm=fo,GA=Oc,KM=W.callbacks,PZ="MINI_APP_SDK_API_SEND_SCORE",_.S(rS,W.sdkVersion.promise,28);case 28:Bm(GA,KM,PZ,rS.yieldResult),P.reply(Liz);case 27:return _.S(rS,hS(W,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return rS.return();case 6:if(!_.t8(P.data,C4c,8,nw)){rS.jumpTo(30);break}jz=_.HI(P.data,C4c,8,nw);jz=_.$5(jz,1);return _.S(rS,hS(W,DFC(jz)),30);case 30:return rS.return();
case 7:return jz=P.reply,yf=xZ(1),CM=WA(1),Vf=W.callbacks.getLanguage(),CM=Ka(CM,4,PA,cy(Vf)),jz.call(P,I9(yf,CM)),_.S(rS,hS(W,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return rS.return();case 8:if(!_.t8(P.data,jzm,10,nw))return rS.return();j$=_.HI(P.data,jzm,10,nw);YW=W.callbacks;QZ=YW.onSdkPerformanceUpdate;return _.S(rS,W.sdkVersion.promise,33);case 33:return QZ.call(YW,j$,rS.yieldResult),rS.return();case 9:jz=P.data;yf=de(jz,nw,11);if(_.aG(_.mS(jz,yf))==null)return P.reply(I9(xZ(1),WA(2))),
rS.return();ez=h8(P.data,11,nw);W.callbacks.onShareInviteCode(ez);P.reply(qDP);return _.S(rS,hS(W,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return rS.return();case 10:if(_.t8(P.data,JMi,13,nw)){rS.jumpTo(35);break}return _.S(rS,W.callbacks.onShowMiniAppAd(2),36);case 36:return b3=rS.yieldResult,P.reply(I9(xZ(1),u3p(b3))),_.S(rS,hS(W,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return rS.return();case 35:jz=_.HI(P.data,JMi,13,nw);a:switch(_.$5(jz,1)){case 1:jz={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:jz={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:jz={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}D3=jz;lp=D3.adType;TE=D3.sdkApi;jz=W.callbacks;yf=jz.onShowMiniAppAd;CM=_.HI(P.data,JMi,13,nw);CM=_.MY(CM,2);return _.S(rS,yf.call(jz,lp,CM||void 0),38);case 38:return sc=rS.yieldResult,P.reply(I9(xZ(1),u3p(sc))),_.S(rS,hS(W,TE),39);case 39:return rS.return()}})})};
var wt=function(W,P){_.y(function(x){W.channel.send(P);_.Kl(x)})},Nz=function(W,P,x){this.callbacks=W;
var I=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;W=nTU(P,(new URL(x.toString())).origin);this.gameSnacks=new x7M(W);this.gameSnacks.page.onReady(function(){I.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){I.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var O,B;(B=(O=I.callbacks).onGameReady)==null||B.call(O)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(O,B){try{I.callbacks.onSendHighScore(B)}catch(Y){fo(Y,I.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(O,B){var Y;return _.y(function(K){if(K.nextAddress==1)return _.OT(K,2),_.S(K,I.callbacks.onSave(I.decoder.decode(B)),4);if(K.nextAddress!=2)return _.ci(K,0);Y=_.yn(K);fo(Y,I.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return K.return()})});
this.gameSnacks.storage.onLoad(function(){var O,B;return _.y(function(Y){if(Y.nextAddress==1)return _.OT(Y,2),_.S(Y,I.callbacks.onLoad(),4);if(Y.nextAddress!=2)return O=Y.yieldResult,Y.return(I.encoder.encode(O));B=_.yn(Y);fo(B,I.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Y.return(I.encoder.encode(""))})});
this.gameSnacks.init()};
_.A(Nz,$8);Nz.prototype.onAudioToggled=function(W,P){$8.prototype.onAudioToggled.call(this,W,P===void 0?!0:P);var x;(x=this.gameSnacks)==null||x.audio.update(W)};
Nz.prototype.onPause=function(){$8.prototype.onPause.call(this);var W;(W=this.gameSnacks)==null||W.game.pause()};
Nz.prototype.onResume=function(){$8.prototype.onResume.call(this);var W;(W=this.gameSnacks)==null||W.game.resume()};var WNz=MEU,PXc=_.kl(function(W){var P=W.data;var x=W.loadingProgress;W=_.n(_.YV("",void 0,"LYYTdd"));var I=W.next().value,O=W.next().value;W=_.n(_.YV(!1,void 0,"K0waae"));var B=W.next().value,Y=W.next().value,K=[],Z=function(){return"transform: scaleX("+(_.zB(x)||0)+")"},d=null,v=function(){var z;
return(z=P()&&d)!=null?z:d=P().showAnniversaryAnimation?6:WNz()};
_.jj(function(){var z;if(P().timeOutMessages&&((z=P().timeOutMessages)==null?0:z.length)){d=null;z=_.n(K);for(var D=z.next();!D.done;D=z.next())clearTimeout(D.value);K.length=0;$FW(P().timeOutMessages,K,O,Y)}});
var m=function(){return!!P().persistentErrorMessageTitle},t=function(){return x!==void 0},C=function(){return P().title};
return _.u("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.u("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.u("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var z,D=(z=P().backgroundImage)==null?void 0:z.sources,w;return(D==null?0:D.length)?"background-image: url("+((w=D[0])==null?void 0:w.url)+")":
""}}),_.u("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.u(_.V,{cond:function(){return!m()},
then:function(){var z={};return _.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.u(_.Jd,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+v()},
data:function(){var D="loading_animation_"+v();return{animationConfig:{name:D,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+D+".json",loop:!0,autoplay:!0}}}})),_.u("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.u(_.V,{cond:C,
then:function(){return _.u("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},C)}}),_.u("p",{class:_.O4("mini-app-splash-screen-view-model-wiz__timeout-message",(z["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return B()},z)),
"aria-live":"polite"},I),_.u(_.V,{cond:t,then:function(){return _.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.u("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:Z}))}})))}}),_.u(_.V,{cond:m,
then:function(){return _.u("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.u("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return P().persistentErrorMessageTitle}),_.u(_.V,{cond:function(){return!!P().persistentErrorMessageDescription},
then:function(){return _.u("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return P().persistentErrorMessageDescription})}}))}})))},"Ld");var x4Z=new _.Lb("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var I0z=f4;f4=function(W){function P(x){if(x){var I,O;(I=x.__spec)==null||(O=I.didUnmount)==null||O.call(I);for(I=0;I<x.childNodes.length;I++)P(x.childNodes[I])}}
I0z==null||I0z(W);vW(function(){for(var x=0;x<W.length;x++)P(W[x])})};var ONz=_.kl(function(W){var P=W.data;var x=W.score;var I=W.formattedScore;var O=W.onScoreChanged;var B=W.isEmbeddedInWebview;var Y=_.Nl(),K=function(){var C;return _.Q(P==null?void 0:(C=P())==null?void 0:C.buttonViewModel,_.gp)},Z=function(){var C;
return(x==null?void 0:x())||Number(P==null?void 0:(C=P())==null?void 0:C.lastScore)||0},d=function(){var C;
return(I==null?void 0:I())||((C=K())==null?void 0:C.title)||""},v,m=1;
if(W=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))W=Number(W),m=isNaN(W)?1:W/100;_.jj(function(){O==null||O(Z());var C;var z=_.AF((C=K())==null?void 0:C.onTap);if(z){C=_.Q(z,N6c);var D,w,a;C=_.Q(C==null?void 0:(D=C.panelLoadingStrategy)==null?void 0:(w=D.inlineContent)==null?void 0:(a=w.dialogViewModel)==null?void 0:a.customContent,fGP)}else C=void 0;if(D=C)D.score=d()});
W=_.yB(function(){var C,z,D=P==null?void 0:(C=P())==null?void 0:(z=C.loggingDirectives)==null?void 0:z.trackingParams;D&&_.Kg(_.FY().resolve(_.ZF),D);return!1});
_.AQ(function(){if(Y.value){var C=Y.value.querySelector("button"),z=K();C&&z&&w0R(C,z);is("yt-share-playable-with-high-score",function(){var D=Z().toString(),w=P==null?void 0:P().onShareHighScoreCommand,a=P==null?void 0:P().highScoreShareClientParamIdentifier,k=B==null?void 0:B();w&&(k?(a=new wAb,D=_.SU(a,2,D),Xj(w,D.JSC$10174_serializeBinary())):a&&(_.FY().resolve(x4Z).clientParams.set(a,{miniAppClientParams:{highScore:D}}),sNd(w,!1)))})}});
var t=function(){var C=K();C&&(x==null?0:x())&&C.accessibilityText&&(C.accessibilityText=C.accessibilityText.replace(v,d()));v=d();return{numberValue:Z(),numberText:d(),heightPx:36,fontSizeMultiplier:m,shouldAnimate:!(x==null||!x())&&!0}};
return _.u("yt-mini-app-score-button-view-model",{class:function(){var C={};return _.BF("mini-app-score-button-view-model-wiz",(C["mini-app-score-button-view-model-wiz--is-visible"]=Z()!==0,C))},
el:Y,"on:click":W},fU(!1,function(){return _.u("span",{style:"display:none;"},Z)}),_.u(_.Ea,{data:function(){var C;
return P==null?void 0:(C=P())==null?void 0:C.buttonViewModel}},{buttonViewModel:function(C){return _.u(_.cq,{data:C.data,
animatedTextProps:t})}}))},"Md");var yrl=_.kl(function(W){var P,x=(P=_.ye("yt-mini-app-is-theater-mode-enabled"))!=null?P:!1,I=_.p("enable_playable_container_save_button"),O=_.p("enable_play_next_destination_page_in_toolbar");P={};return _.u("ytm-mini-app-top-bar-view-model",null,_.u("div",{class:_.O4("yt-mini-app-top-bar-view-model",(P["yt-mini-app-top-bar-view-model--mobile"]=!1,P["yt-mini-app-top-bar-view-model--desktop"]=!0,P))},_.u("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.u(_.V,{cond:function(){var B;
return!!W.data().backButtonEdu&&!((B=W.isExitMiniAppSeen)==null?0:B.call(W))},
then:function(){return _.u(_.Ea,{data:function(){return W.data().backButtonEdu}},{buttonViewModel:_.cq})},
else:function(){return _.u(_.Ea,{data:function(){return W.data().backButton}},{buttonViewModel:_.cq})}}),_.u(_.V,{cond:function(){return W.data().viewAllButton&&!0},
then:function(){return _.u(_.Ea,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.cq})}}),_.u(_.V,{cond:function(){return W.data().title&&!0},
then:function(){return _.u("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return W.data().title})}})),_.u("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.u(_.V,{cond:function(){var B;
return(B=W.isDesktopPlayPage)==null?void 0:B.call(W)},
then:function(){return _.u(_.qS,null,_.u(Jrc,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview}),_.u(BAz,{enableSaveButton:function(){return _.zB(I)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.u(nSk,{menuButton:function(){return W.data().menuButton}}))},
else:function(){return _.u(_.V,{cond:function(){return!1},
then:function(){return _.u(_.Ea,{data:function(){return W.data().playPageButton}},{buttonViewModel:function(B){return _.u(_.cq,{data:B.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.u(Jrc,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview})}})}})),_.u("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.u(_.Ea,{data:function(){return W.data().muteButton}},{toggleButtonViewModel:function(B){var Y=B.data;
return _.u(_.MI,{data:function(){var K,Z;return Object.assign({},Y(),{isToggled:(Z=(K=W.isAudioEnabled)==null?void 0:K.call(W))!=null?Z:!0})},
onToggle:W.onAudioToggled,useOutlinedIcon:!0})}}),_.u(_.Ea,{data:function(){return W.data().theatreModeButton}},{toggleButtonViewModel:function(B){var Y=B.data;
return _.u("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.u(_.MI,{data:function(){return Object.assign({},Y(),{isToggled:x})},
useOutlinedIcon:!0}))}}),_.u(Ylc,{fullscreenButton:function(){return W.data().fullscreenButton}}),_.u(_.V,{cond:function(){return _.zB(O)&&W.data().viewAllButton&&!1},
then:function(){return _.u(_.Ea,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.cq})}}),_.u(_.V,{cond:function(){var B;
return!((B=W.isDesktopPlayPage)==null?0:B.call(W))},
then:function(){return _.u(_.qS,null,_.u(BAz,{enableSaveButton:function(){return _.zB(I)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.u(nSk,{menuButton:function(){return W.data().menuButton}}))}}))))},"Nd");
yrl.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var nSk=_.kl(function(W){return _.u(_.Ea,{data:W.menuButton},{buttonViewModel:_.cq})},"Od"),BAz=_.kl(function(W){var P=W.enableSaveButton;
var x=W.saveButton;var I=W.isSaved;var O=W.onSaveToggled;return _.u(_.V,{cond:function(){return P()&&!(x==null||!x())},
then:function(){return _.u(_.Ea,{data:function(){var B=_.Q(x==null?void 0:x(),_.DZ),Y;return{toggleButtonViewModel:Object.assign({},B,{isToggled:(Y=I==null?void 0:I())!=null?Y:!(B==null||!B.isToggled)})}}},{toggleButtonViewModel:function(B){return _.u(_.MI,{data:B.data,
onToggle:O})}})}})},"Pd"),Jrc=_.kl(function(W){var P=W.highScoreButton;
var x=W.score;var I=W.formattedScore;var O=W.onScoreChanged;var B=W.isEmbeddedInWebview;return _.u(_.Ea,{data:P},{miniAppScoreButtonViewModel:function(Y){return _.u(ONz,{data:Y.data,score:x,formattedScore:I,onScoreChanged:O,isEmbeddedInWebview:B})}})},"Qd"),Ylc=_.kl(function(W){W=W.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.u(_.qS,null):_.u(_.Ea,{data:W},{buttonViewModel:_.cq})},"Rd");_.KNM=new _.Lb("DESKTOP_CURRENT_PAGE");var s5z=_.kl(function(W){var P=W.data;var x=_.p("force_active_time_logging_webview"),I=_.p("skip_logs_after_end_event"),O=!1,B=new cBb,Y=void 0,K=void 0,Z=_.FY().resolve(eg3),d=new $Zd,v=void 0,m=void 0,t=[],C=void 0,z=void 0,D=!1,w=!1,a=!1,k=!1,T=new _.If,N=_.FY().resolve(x4Z),Io=_.FY().resolve(_.Gf),F=_.FY().resolve(_.Rl(yz)),nm,pm=(nm=_.FY().resolve(_.Rl(_.KNM)))==null?void 0:nm.getCurrentPage(),zR=!1,Am=0,kW=function(q7){q7.preventDefault();return q7.returnValue=""},$W;
W=_.n(_.YV(!(($W=_.ye("yt-mini-app-is-audio-enabled"))!=null&&!$W),void 0,"HPBZTb"));var ao=W.next().value,e8=W.next().value,iC;$W=_.n(_.YV(!((iC=_.ye("exit-mini-app-seen-state"))==null||!iC),void 0,"kLuFyc"));var hw=$W.next().value,dk=$W.next().value;iC=_.n(_.YV(!1,void 0,"o1PbLc"));var Oc=iC.next().value,Bm=iC.next().value;iC=_.n(_.YV(void 0,void 0,"YlqNme"));var GA=iC.next().value,KM=iC.next().value;iC=_.n(_.YV(void 0,void 0,"AeYJne"));var PZ=iC.next().value,j$=iC.next().value;iC=_.n(_.YV(!0,void 0,
"aEz9qb"));var YW=iC.next().value,QZ=iC.next().value;iC=_.n(_.YV(!1,void 0,"bcquyc"));var ez=iC.next().value,b3=iC.next().value;iC=_.n(_.YV(void 0,void 0,"FMAC5b"));var D3=iC.next().value,lp=iC.next().value;iC=_.n(_.YV(0,void 0,"HUGJEb"));var TE=iC.next().value,sc=iC.next().value,rS=_.fa(),jz=function(){return P().isEmbeddedInWebview},yf=function(){return P().hasPlayNextShelf};
is("yt-page-type-changed",function(q7){if(_.p("enable_is_mini_app_page_active_bugfix"))q7.detail.newPageSubtype!=="mini_app"&&YW()&&Kx();else if(q7=_.Pvx()==="mini_app",q7!==YW())if(QZ(q7),q7){var dM;q7=(dM=P().playableId)==null?void 0:dM.toString();q7!==void 0&&window.location.href.includes(q7)&&!w&&(k=!0,CM(),Yi(oG.value))}else q7||Kx()});
is("yt-action",function(q7){q7.detail.actionName==="yt-engagement-panel-visible-changed"&&q7.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&q7.detail.args[2]==="PAmini_app_panel"&&Kx();_.p("enable_is_mini_app_page_active_bugfix")?q7.detail.actionName==="yt-history-load"&&!YW()&&(pm==null?0:pm.active)?(QZ(!0),CM(),Yi(oG.value)):q7.detail.actionName==="yt-history-load"&&YW()&&!P().isEmbeddedInWebview&&QE():YW()&&q7.detail.actionName==="yt-history-load"&&(k?k=!1:P().isEmbeddedInWebview||QE())});
_.C4(function(){Vf()});
_.jj(function(){CM()});
var CM=function(){var q7=P().playableId,dM=P().localReleaseId,$4=P().derivedDeviceInterface;if(w)_.ge(new _.mW("[MiniAppContainerViewModel] onEnter was called more than once"));else{w=!0;Y=new VNm(q7,dM,$4,document.visibilityState==="visible");Qbc(Y);K=new faw(q7);ZNz(Z,q7);w8W(d,{showMiniAppAdCommand:P().showMiniAppAdCommand,isEmbeddedInWebview:P().isEmbeddedInWebview,playLogger:Y});Eam()&&(z=document.body.style.backgroundColor,_.Hx(document.body,"background-color","black"));cZ();vm();T=new _.If;
if(P().isEmbeddedInWebview){if(q7=(new URLSearchParams(window.location.search)).get("postPlayNonce"))p8c(Y,q7),zR=!0;B.initialize({onAudioStateLoaded:function(h2){to(h2)},
onMuteMiniApp:function(){to(!1)},
onUnmuteMiniApp:function(){to(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(h2){zR||(p8c(Y,h2),zR=!0)},
confirmExitMiniApp:function(){var h2,ut,J2;return _.y(function(Uw){if(Uw.nextAddress==1)return P().confirmExitMiniAppCommand?_.S(Uw,Promise.race([T.promise,Promise.resolve(!1)]),2):Uw.return();(h2=Uw.yieldResult)?!P().confirmExitMiniAppCommandEdu||(J2=(ut=hw)==null?void 0:ut())!=null&&J2?c9(P().confirmExitMiniAppCommand):(c9(P().confirmExitMiniAppCommandEdu),_.Y9("exit-mini-app-seen-state","true",2592E6)):c9(P().closeMiniAppCommand);_.Kl(Uw)})},
onNativeBenchmarkingMessageReceived:function(h2){h2=Isk(_.d9m(h2));if(_.t8(h2,_.Ur,3,WfP)){var ut=_.HI(h2,_.Ur,3,WfP),J2=voG();var Uw=zF(J2.getSeconds())-zF(ut.getSeconds());ut=_.L5(J2,2)-_.L5(ut,2);Uw<0&&ut>0?(Uw+=1,ut-=1E9):Uw>0&&ut<0&&(--Uw,ut+=1E9);Uw=(new TT).setSeconds(Uw);Uw=_.A2(Uw,2,_.Qf(ut),0);_.I$(h2,1,Uw)}var je;(je=m)==null||je.returnNativeBenchmarkingMessage(h2)},
multiplayer3pAckStateLoaded:function(h2){QE(h2)},
exitMiniAppSeenStateLoaded:function(h2){P().confirmExitMiniAppCommandEdu&&dk(h2)},
onNavigateToNewMiniApp:function(){c9(P().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(h2){h2=new URLSearchParams(h2);var ut=void 0;h2.has("invite_code")&&(ut=new Kfd,h2=h2.get("invite_code"),ut=_.SU(ut,1,h2));if(h2=ut){var J2;(J2=m)==null||J2.sendGameData(h2)}},
onPauseMiniApp:function(){O=!0;SV()},
onResumeMiniApp:function(){O=!0;k4()},
onAdFinished:function(h2){d.onAdFinished(h2)}});
P().showMultiplayer3pConsentDialogCommand||T.resolve(!0);c9(P().onContainerReadyCommand)}else p8c(Y),T.resolve(!0);NIZ(K,tNZ(Y));tNZ(Y).then(function(h2){h2={miniAppPlayData:{postPlayNonce:h2}};var ut,J2=(ut=P().loggingDirectives)==null?void 0:ut.trackingParams;J2&&_.YY().stateChanged(J2,h2)});
q7=P().showSignInDialogCommand;!tEC()&&q7&&(_.Y9("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),c9(q7));P().confirmExitMiniAppCommand&&F&&(q7=ua8(P().confirmExitMiniAppCommand))&&(F.customConfirmationCommand=q7)}},Vf=function(){if(!I||w)z&&_.Hx(document.body,"background-color",z),D=!1,C&&C.release(),K.flush().catch(function(q7){_.ge(q7)}),Z.flush().catch(function(q7){_.ge(q7)}),ABA(Y),RE(),m=void 0,I&&(w=!1),oSl(N)},Kx=function(){QZ(!1);
Vf();Bm(!1);lp(void 0);KM(void 0);j$(void 0);Am=0;sc(0);I||(w=!1)},SV=function(){var q7;
(q7=m)==null||q7.onPause();C&&C.release();K.flush().catch(function(dM){_.ge(dM)});
Z.flush().catch(function(dM){_.ge(dM)});
Cym(Y)},k4=function(){var q7;
(q7=m)==null||q7.onResume();vm();q7=Y;q7.isForeground=!0;gt(q7,"PLAY_EVENT_TYPE_PLAY_RESUME")},to=function(q7){var dM;
(dM=m)==null||dM.onAudioToggled(q7);e8(q7)},QE=function(q7){P().showMultiplayer3pConsentDialogCommand&&(P().isEmbeddedInWebview&&q7!==void 0&&T.resolve(q7),!q7&&_.Pvx()==="mini_app"&&c9(P().showMultiplayer3pConsentDialogCommand))},Xl=function(){var q7,dM,$4,h2;
return _.y(function(ut){if(ut.nextAddress==1){if(I&&!w)return ut.return();!P().isLivestream||P().disableVideoCapture||(q7=m)!=null&&q7.sendStartGameFrameCapture();dM=(new URL(window.location.href)).searchParams;if(dM.has("invite_code")){var J2=new Kfd,Uw=dM.get("invite_code");$4=_.SU(J2,1,Uw);(h2=m)==null||h2.sendGameData($4)}Oc()||(Bm(!0),J2=Y,J2.state!==1?_.ge(new _.mW("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+vrP[J2.state])):(_.xO("mini_app_ids_without_game_ready").includes(J2.JSC$14634_miniAppId)&&
(J2.gameReady=!0),J2.state=2,J2.beforeReady=!1,EY(J2,"ma_ffr"),gt(J2,"PLAY_EVENT_TYPE_PLAY_READY")));return _.S(ut,T.promise,2)}c9(P().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();P().isEmbeddedInWebview||QE();_.Kl(ut)})},t9=function(){var q7=Y;
q7.gameReady=!0;EY(q7,"ma_gr")},RG=function(q7){var dM;
return _.y(function($4){if($4.nextAddress==1)return _.OT($4,2),_.S($4,TIl(K,q7),4);if($4.nextAddress!=2)return _.ci($4,0);dM=_.yn($4);c9(P().showSavingErrorPopupCommand);throw dM;})},F6=function(){var q7,dM;
return _.y(function($4){if($4.nextAddress==1)return _.OT($4,2),_.S($4,laP(K),4);if($4.nextAddress!=2)return q7=$4.yieldResult,$4.return(q7);dM=_.yn($4);c9(P().showLoadingErrorDialogCommand);throw dM;})},EW=function(q7){Y.logError(q7)},pl=function(q7,dM,$4){G3W(Y,q7,dM,$4)},uE=function(q7,dM){grW(Y,q7,dM)},Bi=function(){!x&&P().isEmbeddedInWebview||_.qt();
zgi(Y,!0);D||(window.addEventListener("beforeunload",kW,{capture:!0}),D=!0)},i5=function(q7){var dM,$4,h2,ut,J2,Uw,je;
return _.y(function(fE){if(fE.nextAddress==1)return Z&&(!v||v<q7)&&q7>0?_.S(fE,Sld(Z,q7),3):fE.jumpTo(0);dM=fE.yieldResult;$4=_.n(dM);h2=$4.next().value;ut=$4.next().value;J2=h2;Uw=ut;((je=J2)==null?0:je.displayString)&&Uw&&(KM(Uw),j$(J2.displayString));_.Kl(fE)})},uO=function(q7){var dM=P().onBenchmarkingMessageReceivedCommand;
if(dM){var $4=voG();_.O0(q7,3,WfP,$4);Xj(dM,OPi(q7))}},tm=function(q7){var dM=P().onGameFrameReceivedCommand;
if(dM){var $4=new kQc;var h2=new e$p;var ut=gg(q7,1);h2=_.vB(h2,1,ut);q7=_.MY(q7,2);q7=_.SU(h2,2,q7);$4=_.I$($4,2,q7);Xj(dM,X1b($4))}},wS=function(q7){var dM=P().onGameAudioDataReceivedCommand;
if(dM){var $4=new kQc;var h2=new aG3;q7=_.MY(q7,1);h2=_.SU(h2,1,q7);$4=_.I$($4,4,h2);Xj(dM,X1b($4))}},Xt=function(){var q7=new URLSearchParams(window.location.search);
if(P().isEmbeddedInWebview&&q7&&q7.get("override_hl")==="true"&&q7.get("hl"))return q7.get("hl");q7=document.documentElement.lang;return q7!==""?q7:_.MB},VZ=function(q7){var dM=P().onShareInviteCodeCommand;
if(dM)if(P().isEmbeddedInWebview){var $4=new wAb;q7=_.SU($4,1,q7);Xj(dM,HwA(q7))}else $4=P().inviteCodeShareClientParamIdentifier,N.clientParams.set($4,{miniAppClientParams:{inviteCode:q7}}),c9(dM)},Ov=function(q7){var dM,$4,h2;
return _.y(function(ut){if(ut.nextAddress==1)return dM=P().onMiniAppOpenYtContentRequested,Z&&_.p("enable_open_yt_content")&&dM?_.S(ut,uwd(Z,q7),3):ut.jumpTo(0);$4=ut.yieldResult;if($4==="OK")if(P().isEmbeddedInWebview){var J2=new $m3;h2=Ka(J2,2,Et,cy(q7));Xj(dM,HAM(h2))}else Io.clientData.set("video_id",q7),c9(dM);_.Kl(ut)})},M5=function(q7){Am+=_.L5(q7,3);
q7=Math.min(Math.log(1+Am/15E6*9)/Math.log(10),.99);sc(q7);ZB(q7)},ZB=_.t6(function(q7){var dM=P().updateLoadingProgressCommand;
if(dM){var $4=new $m3;q7=Ka($4,3,Et,_.Y4(q7));Xj(dM,HAM(q7))}},100),tw=function(q7){return H$l(d,q7)},vm=function(){var q7,dM;
((q7=_.UPd())==null?void 0:(dM=q7.wakeLock)==null?void 0:dM.request)!=null&&_.UPd().wakeLock.request("screen").then(function($4){C=$4}).catch(function(){})},oG=_.fa();
_.jj(function(){P().isSupportedCountry&&(tEC()||_.p("enable_sign_in_promo")||!P().showSignInDialogCommand?Yi(oG.value):c9(P().onMiniAppReadyCommand))});
var zk=function(){return _.u("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Oc()?0:-1},
el:oG})},Yi=function(q7,dM){dM=dM===void 0?!1:dM;
var $4=j5();$4&&(dM||$4.toString()!==q7.getAttribute("src"))&&(m=GUA(P().source,{isAudioEnabled:ao,onFirstFrameReady:Xl,onGameReady:t9,onSave:RG,onLoad:F6,onError:EW,onSdkCalled:pl,onSdkPerformanceUpdate:uE,onClick:Bi,onSendHighScore:i5,onBenchmarkingMessageReceived:uO,getLanguage:Xt,onShareInviteCode:VZ,onResourceLoaded:M5,onOpenYTContent:Ov,onShowMiniAppAd:tw,onGameFrameReceived:tm,onGameAudioReceived:wS},q7,$4),Kt(q7,"load",function(){EY(Y,"ma_il");Kt(q7,"load",function(){Yi(q7,!0)})}),_.g9(q7,
$4))},j5=function(){var q7=P().url;
if(q7&&(q7=_.Ez(q7),q7!==null)){if(P().source&&P().source==="MINI_APP_SOURCE_GAMESNACKS")q7=_.P9(q7,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.p("enable_origin_query_parameter_bugfix")){var dM=_.gh(_.oGU(q7.toString()));dM=new URLSearchParams(dM||"");dM.set("origin",window.location.origin);dM=dM.toString();q7=_.y4(q7).toString();q7=_.YH(Awz.exec(q7)[0]+(dM.trim()?"#"+dM:""))}return q7}},m9=function(){var q7={};
q7=_.O4("yt-mini-app-container-view-model__loading-screen",(q7["yt-mini-app-container-view-model__loading-screen--fade-out"]=Oc,q7));var dM=function(){return Oc()?1:TE()};
return _.u("div",{class:q7},_.u(_.Ea,{data:function(){return P().splashScreen}},{miniAppSplashScreenViewModel:function($4){return _.u(PXc,{data:$4.data,
loadingProgress:dM})}}))},cZ=function(){t=[];
t.push(_.uq(window,"visibilitychange",function(){a||O&&jz()||(document.visibilityState==="visible"?k4():SV())}));
t.push(_.uq(window,"pagehide",function(){Vf()}));
t.push(_.uq(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&rS.value.dispatchEvent(new Event("tap"))},0)}));
t.push(_.uq(rS.value,"pointerdown",function(){zgi(Y,!1)},!0));
t.push(_.uq(rS.value,"pause",function(){a=!0;SV()}));
t.push(_.uq(rS.value,"play",function(){a=!1;k4()}));
t.push(_.uq(rS.value,"exit",function(){Vf()}));
var q7=navigator.keyboard,dM=q7&&q7.lock;t.push(_.uq(window,AbP,function(){b3(GKM());GKM()?(P().hasPlayNextShelf&&FP("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),X_("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),dM&&q7.lock(["Escape"])):(P().hasPlayNextShelf&&X_("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),FP("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),dM&&q7.unlock())}));
P().showMultiplayer3pConsentDialogCommand&&t.push(_.uq(window,"yt-playables-ack-3p-data-usage",function(){d4l(Z)}));
P().confirmExitMiniAppCommandEdu&&t.push(_.uq(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Y9("exit-mini-app-seen-state","true",2592E6)}))},RE=function(){t.forEach(function(q7){Z1(q7)});
window.removeEventListener("beforeunload",kW,{capture:!0})},c9=function(q7){q7&&sNd(q7,P().isEmbeddedInWebview||!1)},X_=function(q7,dM){q7=_.n(rS.value.getElementsByClassName(q7));
for(var $4=q7.next();!$4.done;$4=q7.next())$4.value.classList.add(dM)},FP=function(q7,dM){q7=_.n(rS.value.getElementsByClassName(q7));
for(var $4=q7.next();!$4.done;$4=q7.next())$4.value.classList.remove(dM)};
return function(){var q7={};q7=_.O4("yt-mini-app-container-view-model",(q7["yt-mini-app-container-view-model--desktop"]=!0,q7["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return P().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},q7["yt-mini-app-container-view-model--ios-web-view"]=Eam(),q7["yt-mini-app-container-view-model--no-top-bar"]=function(){return!P().topBar},q7["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return P().hasPlayNextShelf},q7["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return P().hasPlayNextShelf},q7["yt-mini-app-container-view-model--show-peek-below"]=function(){return!ez()&&P().hasPlayNextShelf},q7));
var dM={};dM=_.O4("yt-mini-app-container-view-model__content",(dM["yt-mini-app-container-view-model__content--desktop-content"]=!0,dM["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return P().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},dM["yt-mini-app-container-view-model--desktop-play-page"]=function(){return P().hasPlayNextShelf},dM));
return _.u("mini-app-container-view-model",{el:rS},_.u("div",{class:q7},_.u(_.V,{cond:function(){return P().topBar&&!ez()},
then:function(){return _.u(_.Ea,{data:function(){return P().topBar}},{miniAppTopBarViewModel:function($4){return _.u(yrl,{data:$4.data,
isAudioEnabled:ao,onAudioToggled:function(h2){to(h2)},
score:GA,formattedScore:PZ,onScoreChanged:function(h2){v=h2},
isEmbeddedInWebview:jz,isSaved:D3,onSaveToggled:function(h2){lp(h2)},
isExitMiniAppSeen:hw,isDesktopPlayPage:yf})}})}}),_.u("div",{class:dM},_.u(_.V,{cond:YW,
then:function(){return zk()}}),_.u(_.V,{cond:function(){return!P().isEmbeddedInWebview},
then:function(){return m9()}}))))}()},"Sd");
s5z.idomCompat=!0;_.lq(s5z,"mini-app-container-view-model",{props:{data:_.cv}});var vSM=_.kl(function(W){var P=W.data;return _.u("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.u("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.yB(function(){var x=P().onTap;x&&_.D1(x)})},_.u(_.V,{cond:function(){return P().icon},
then:function(x){return _.u(_.Sy,{icon:function(){return x().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.u("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return P().title})))},"Td");
vSM.idomCompat=!0;var m4m=_.kl(function(W){var P=_.fa(),x=_.n(_.YV(void 0,void 0,"kFCJ0c")),I=x.next().value,O=x.next().value;x=_.n(_.YV(void 0,void 0,"PIPgWd"));var B=x.next().value,Y=x.next().value;x=_.n(_.YV(void 0,void 0,"rV66ob"));var K=x.next().value,Z=x.next().value,d=function(){var a=I();return a!==void 0?Math.abs(a):void 0},v=function(){var a=d();
return a===void 0||a<=3},m=function(){var a=d();
var k=B(),T=K();a=a!==void 0&&k!==void 0&&T!==void 0?k-T-a:void 0;return a===void 0||a<=3},t=function(a){P.value&&P.value.scrollBy({top:0,
left:(_.$$("HTML_DIR")==="rtl"?-1:1)*a*P.value.clientWidth,behavior:"smooth"})},C=function(){var a;
O((a=P.value)==null?void 0:a.scrollLeft);var k;Y((k=P.value)==null?void 0:k.scrollWidth);var T;Z((T=P.value)==null?void 0:T.clientWidth)},z=function(){t(-.5)},D=function(){t(.5)};
x=_.yB(function(){C()});
_.Qa(function(){C();if(P.value){var a=new ResizeObserver(C);a.observe(P.value);_.C4(function(){a.disconnect()})}});
var w={};return _.u("yt-sponsorships-scrollable-shelf",{class:_.O4("ytdSponsorshipsScrollableShelfHost",W.className)},_.u("div",{class:_.O4("ytdSponsorshipsScrollableShelfContent",(w.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return W.data().previousButton&&W.data().nextButton&&!v()&&!m()},w.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return W.data().previousButton&&!v()&&m()},w.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return W.data().nextButton&&
v()&&!m()},w)),
el:P,"on:scroll":x},W.children),_.u(_.V,{cond:function(){return!v()},
then:function(){return _.u(_.Ea,{data:function(){return W.data().previousButton}},{buttonViewModel:function(a){return _.u(_.cq,{data:a.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:z})}})}}),_.u(_.V,{cond:function(){return!m()},
then:function(){return _.u(_.Ea,{data:function(){return W.data().nextButton}},{buttonViewModel:function(a){return _.u(_.cq,{data:a.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:D})}})}}))},"Ud");
m4m.idomCompat=!0;var t1z=_.kl(function(W){var P=W.data;W={};return _.u("yt-sponsorships-hub",{class:_.O4("ytdSponsorshipsHubHost",(W.ytdSponsorshipsHubHostIndented=function(){return P().indented},W))},_.u("div",{class:"ytdSponsorshipsHubHeader"},_.u("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.u("div",{class:"ytdSponsorshipsHubAvatar"},_.u(_.Ea,{data:function(){return P().avatar}},{avatarViewModel:_.DI})),_.u(_.V,{cond:function(){return P().badgeImage},
then:function(x){return _.u("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.u("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.u("div",{class:"ytdSponsorshipsHubBadge"},_.u(_.bq,{data:x,targetWidth:24,targetHeight:24,alt:""}))))}})),_.u("div",{class:"ytdSponsorshipsHubDetails"},_.u("div",{class:"ytdSponsorshipsHubTierName"},function(){return P().tierName}),_.u("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return P().membershipType}),_.u("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return P().membershipDurationOrExpiry})),_.u("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.u(_.Ea,{data:function(){return P().manageButton}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.u(_.Ea,{data:function(){return P().actionMenuButton}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.u("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return P().perksTitle}),_.u(m4m,{data:function(){return{previousButton:P().previousPerkButton,
nextButton:P().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.u("div",{class:"ytdSponsorshipsHubPerkCards"},_.u(_.Ea,{data:function(){return P().perkCards}},{sponsorshipsHubPerkCardViewModel:vSM}),_.u(_.V,{cond:function(){return P().viewAllPerksButton},
then:function(x){return _.u(V1z,{data:x})}}))))},"Vd");
t1z.idomCompat=!0;var V1z=_.kl(function(W){var P=W.data;return _.u("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.u(_.Ea,{data:function(){return P().button}},{buttonViewModel:_.cq}),_.u("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.u("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return P().title}),_.u("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return P().subtitle})))},"Wd");
V1z.idomCompat=!0;_.lq(t1z,"yt-sponsorships-hub",{props:{data:_.cv}});_.pEW=_.kl(function(W){var P=W.data;return _.u("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.oP({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var x;return((x=P().badgeCutoutRadius)!=null?x:14)+"px"}})},_.u("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.u(_.Ea,{data:function(){return P().startAvatar}},{avatarViewModel:_.DI}),_.u(_.Ea,{data:function(){return P().endAvatar}},{avatarViewModel:_.DI})),_.u(_.Ea,{data:function(){return P().badge}},{contentPreviewImageViewModel:function(x){return _.u("div",
{class:"ytDualAvatarViewModelBadge"},_.u(_.lW,{data:x.data}))}}))},"Xd");
_.pEW.idomCompat=!0;var Q5k=_.kl(function(W){var P=W.data;var x,I=!((x=_.FY().resolve(_.Rl(_.hF)))==null||!x());W=_.Sj(function(){var v,m,t=I?(v=P().header)==null?void 0:v.backgroundColorDarkMode:(m=P().header)==null?void 0:m.backgroundColorLightMode;if(t!==void 0)return _.Qy(t)},void 0,"UX2G6c");
x=_.Sj(function(){var v,m;return I?(v=P().header)==null?void 0:v.backgroundImagePart1Dark:(m=P().header)==null?void 0:m.backgroundImagePart1Light},void 0,"GPAi1d");
var O=_.Sj(function(){var v,m;return I?(v=P().header)==null?void 0:v.backgroundImagePart2Dark:(m=P().header)==null?void 0:m.backgroundImagePart2Light},void 0,"nboJld"),B=_.Sj(function(){return _.$$("HTML_DIR")==="rtl"},void 0,"LGJceb"),Y=_.fa(),K=!1,Z=function(){var v=Y.value;
if(v&&!K){var m,t=(m=v.parentElement)==null?void 0:m.parentElement;if(t)for(v=v.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),m=0;m<v.length;++m){var C=v[m];if(C instanceof HTMLElement){t.scrollTo({top:C.offsetTop+C.clientHeight/2-t.clientHeight/2,behavior:"smooth"});K=!0;break}}}};
_.AQ(function(){var v=Y.value;if(v){var m=new ResizeObserver(Z);m.observe(v);_.C4(function(){m.disconnect()})}});
var d={};return _.u("yt-sponsorships-perks-list",{el:Y,class:_.O4("ytdSponsorshipsPerksListHost",(d.ytdSponsorshipsPerksListHorizontalPadding=function(){return P().horizontalPaddingEnabled},d))},_.u("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.u("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.oP({"background-color":W})},_.u("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.u(_.V,{cond:x,then:function(v){var m={};return _.u("div",{class:_.O4((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=I,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!I,m.ytdSponsorshipsPerksListFlipped=B,m))},_.u(_.bq,{data:v,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.u("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.u(_.V,{cond:O,
then:function(v){var m={};return _.u("div",{class:_.O4((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=I,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!I,m.ytdSponsorshipsPerksListFlipped=B,m))},_.u(_.bq,{data:v,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.u("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.u(_.Ea,{data:function(){var v;
return(v=P().header)==null?void 0:v.dualAvatar}},{dualAvatarViewModel:_.pEW})))),_.u("div",{class:"ytdSponsorshipsPerksListBody"},_.u("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return P().title}),_.u(_.V,{cond:function(){return P().perks},
then:function(v){return _.u(_.sV,{each:v},function(m,t){var C={};return _.u("div",{class:_.O4("ytdSponsorshipsPerksListPerkContainer",(C.ytdSponsorshipsPerksListSelectedPerk=function(){var z=t(),D=P().selectedPerkIndex;return z===D},C))},_.u(_.V,{cond:function(){return t()>0},
then:function(){return _.u("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.u("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.u(_.V,{cond:function(){return m.icon},
then:function(z){return _.u(_.Sy,{icon:function(){return z().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.u("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.u("div",{class:"ytdSponsorshipsPerksListPerkTitle"},m.title),_.u("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.u(_.mQ,{text:m.description})),_.u(_.V,{cond:function(){return m.instructions},
then:function(){var z,D;return _.u("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.u("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(z=m.instructions)==null?void 0:z.title),_.u("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.u(_.mQ,{text:(D=m.instructions)==null?void 0:D.text})))}}))),_.u(_.V,{cond:function(){return m.emoji},
then:function(z){return _.u("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.u(_.sV,{each:function(){return z()}},function(D){return _.u(_.bq,{data:D,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.u(j5b,{data:m}))})}})))},"Yd");
Q5k.idomCompat=!0;var j5b=_.kl(function(W){var P=W.data;var x=function(Y,K){return Y===K},I=function(){var Y=P();
Y=_.Q(Y==null?void 0:Y.badgesShelf,bwW);return Y!==void 0&&Y!==null?Y:{previousButton:{},nextButton:{}}},O=_.Nl(),B=function(){var Y=O.value;
if(Y){var K=Y.parentElement;if(K){Y=Y.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var Z=0;Z<Y.length;++Z){var d=Y[Z];if(d instanceof HTMLElement){K.scrollTo({left:d.offsetLeft+d.clientWidth/2-K.clientWidth/2,behavior:"instant"});break}}}}};
_.AQ(function(){var Y=O.value;if(Y){var K=new ResizeObserver(B);K.observe(Y);_.C4(function(){K.disconnect()})}});
return _.u("div",null,_.u(_.V,{cond:function(){return P().badges},
then:function(Y){return _.u(m4m,{data:I},_.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:O},_.u(_.sV,{each:function(){return Y()}},function(K,Z){var d={},v={},m={};
return _.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.u(_.V,{cond:function(){return Z()>0},
then:function(){return _.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.u("div",{class:_.O4("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(d.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return x(Z(),P().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!x(Z(),P().currentBadgeIndex)},d))},_.u("div",{class:_.O4("ytdSponsorshipsPerksListLoyaltyBadge",(v.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return x(Z(),
P().currentBadgeIndex)},v.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!x(Z(),P().currentBadgeIndex)},v))},_.u(_.V,{cond:function(){return K.image},
then:function(t){var C={};return _.u("div",{class:_.O4((C.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return x(Z(),P().currentBadgeIndex)},C.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!x(Z(),P().currentBadgeIndex)},C))},_.u(_.bq,{data:t,
alt:""}))}})),_.u("div",{class:_.O4("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(m.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return x(Z(),P().currentBadgeIndex)},m))},K.title)))})))}}))},"Zd");
j5b.idomCompat=!0;_.lq(Q5k,"yt-sponsorships-perks-list",{props:{data:_.cv}});_.lq(_.kl(function(W){return _.u("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.u(_.V,{cond:function(){return W.data().image},
then:function(P){return _.u(_.bq,{className:"ytwFantasyEmptyStateViewModelImage",data:P,ariaHidden:!0,alt:""})}}),_.u(_.mQ,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return W.data().title}}),_.u(_.mQ,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return W.data().subtitle}}),_.u(_.Ea,{data:function(){return W.data().primaryButton}},{buttonViewModel:function(P){return _.u(_.cq,{data:P.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$d"),"ytw-fantasy-empty-state-view-model",{props:{data:_.cv}});var CXl;var hrW=_.CC({buttonRenderer:_.wZ});_.ql(HSo);_.WF(HSo,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var H_=function(){var W=_.b.apply(this,arguments)||this;W.hideJoinButtonBeforeSubscribed=_.p("hide_join_button_before_subscribed");W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return W};
_.A(H_,_.b);_.J=H_.prototype;
_.J.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"}}}};
_.J.updateJoinButtonOverrides=function(){var W,P;(W=_.g(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(P=W.polymerController)==null||P.set("overrides",this.joinButtonOverrides);if(W=_.g(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))W.overrides=this.joinButtonOverrides};
_.J.handleButtonRefreshAction=function(W){if(W=_.Q(W,o5c))this.set("data.membershipButton",W.membershipButton),this.notifyPath("data.membershipButton")};
_.J.onYtServiceRequestError=function(W){_.Iq(this.hostElement,W.detail.error.message)};
_.J.handleUnsubscribeAction=function(){var W,P,x;((W=this.data)==null?void 0:(P=W.membershipButton)==null?void 0:(x=P.buttonRenderer)==null?void 0:x.style)==="STYLE_PRIMARY"&&_.g(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.N1.Object.defineProperties(H_.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.subscriptionStateEntity)==null||!W.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var W,P=(W=this.data)==null?void 0:W.membershipButton,x;W=(P==null?void 0:P.buttonRenderer)||_.Q(P==null?void 0:(x=P.timedAnimationButtonRenderer)==null?void 0:x.buttonRenderer,_.w6);return(W==null?void 0:W.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(W==null?void 0:W.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(W==null?void 0:W.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
H_.prototype.onYtServiceRequestError=H_.prototype.onYtServiceRequestError;H_.prototype.updateJoinButtonOverrides=H_.prototype.updateJoinButtonOverrides;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],H_.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],H_.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],H_.prototype,"data",void 0);_.f([_.H("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],H_.prototype,"hideJoin",null);_.f([_.c(),_.l("design:type",String)],H_.prototype,"subscribeKey",void 0);_.f([_.c({selectorArgs:["subscribeKey"],selector:Jp}),_.l("design:type",Object)],H_.prototype,"subscriptionStateEntity",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],H_.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.f([_.H("subscriptionStateEntity"),_.c({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],H_.prototype,"subscribed",null);_.f([_.H("subscribed","data.membershipButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],H_.prototype,"joinButtonOverrides",null);
_.f([_.OZ("joinButtonOverrides"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],H_.prototype,"updateJoinButtonOverrides",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],H_.prototype,"onYtServiceRequestError",null);H_=_.f([_.U({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],H_);
var ArA=_.R7()(H_,"ytd-video-owner-renderer",function(){if(CXl===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);CXl=W}W=CXl;return W},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.lq(_.kl(function(W){var P=W.data;var x;W=_.n(_.YV(!((x=_.ye("yt-mini-app-is-theater-mode-enabled"))==null||!x),void 0,"IXxLcc"));var I=W.next().value,O=W.next().value,B;x=(B=_.FY().resolve(_.Rl(FFb)))!=null?B:function(){return _.u("div",null)};
_.XL("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){O(!0);_.Y9("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.XL("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){O(!1);_.Y9("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
B={};W={};var Y={};return _.u("mini-app-play-page-renderer",{class:_.O4("miniAppPlayPageRendererHost",(B.miniAppPlayPageRendererHostDetailsView=function(){return!I()},B))},_.u("div",{class:_.O4("miniAppPlayPageRendererGameContainer",(W.miniAppPlayPageRendererGameContainerDetailsView=function(){return!I()},W))},_.u(_.Ea,{data:function(){return P().containerViewModel}},{miniAppContainerViewModel:s5z}),_.u(_.Ea,{data:function(){return P().channel}},{videoOwnerRenderer:function(K){return _.u("div",{class:"miniAppPlayPageRendererVideoOwnerRenderer"},
_.u(ArA,{data:K.data}))}}),_.u(_.V,{cond:function(){return!I()&&P().description},
then:function(){return _.u("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.u("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return P().description}))}})),_.u("div",{class:_.O4("miniAppPlayPageRendererPlayNextContainer",(Y.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!I()},Y))},_.u(_.Ea,{data:function(){return P().sectionList}},{sectionListRenderer:x})))},"ae"),"mini-app-play-page-renderer",{props:{data:_.cv}});var eh=function(){var W=_.b.apply(this,arguments)||this;W.isSearch=!1;W.isConstrainedList=!1;W.hasChipsBar=!1;W.inReplyPanel=!1;W.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"}};W.monitorScroll=!0;W.SCROLL_ANIMATION_DURATION_MS=300;W.nextContinuation={continuationType:"sectionListContinuation"};return W};
_.A(eh,_.b);_.J=eh.prototype;
_.J.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(W){switch(W.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.p("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.p("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.J.created=function(){var W=this;this.JSC$14771_scrollAnimation=new _.zf(function(P){W.hostElement.scrollTop=P})};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.replacePrimaryContent=function(W){this.set("data.contents",W)};
_.J.computeHasSortFilter=function(W){return!!W&&!!W.sortFilterSubMenuRenderer};
_.J.computeShouldScrollInPanel=function(W){var P;return!!(W==null?0:(P=W.scrollPaneStyle)==null?0:P.scrollable)};
_.J.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.iS(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.J.scrollToTop=function(){this.hostElement.scrollTop=0};
_.J.scrollToItemSection=function(W){if(W=this.getItemByIdentifier(W))W=this.getScrollPositionForItem(W),this.hostElement.scrollTop!==W&&this.JSC$14771_scrollAnimation.start(this.hostElement.scrollTop,W,this.SCROLL_ANIMATION_DURATION_MS)};
_.J.getItemByIdentifier=function(W){var P=this.contents.querySelectorAll("ytd-item-section-renderer");if(P&&P.length!==0){var x=Array.from(P).findIndex(function(I){return I.sectionIdentifier===W});
return P[x===-1?0:x]}};
_.J.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===W)return 0;W=_.gJ(W).y+this.hostElement.scrollTop-_.gJ(this.hostElement).y;return Math.min(W,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.N1.Object.defineProperties(eh.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.targetId)==="browse-feedFEclips"}}});
eh.prototype.onScroll=eh.prototype.onScroll;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],eh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],eh.prototype,"ytLazyListBehavior",void 0);_.f([_.h(_.M2.YtNextContinuationBehavior),_.l("design:type",Object)],eh.prototype,"ytNextContinuationBehavior",void 0);
_.f([_.h(_.ork),_.l("design:type",Object)],eh.prototype,"ytBooleanLogicBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],eh.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eh.prototype,"data",void 0);_.f([_.c({value:2}),_.l("design:type",Number)],eh.prototype,"initialCount",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],eh.prototype,"autoFill",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.l("design:type",Boolean)],eh.prototype,"hasSortFilter",void 0);_.f([_.c({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.l("design:type",Boolean)],eh.prototype,"hideBottomSeparator",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.l("design:type",Boolean)],eh.prototype,"shouldScrollInPanel",void 0);
_.f([_.c(),_.l("design:type",Object)],eh.prototype,"isSearch",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],eh.prototype,"isConstrainedList",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],eh.prototype,"responsiveSizing",void 0);_.f([_.c(),_.l("design:type",Object)],eh.prototype,"hasChipsBar",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],eh.prototype,"pageSubtype",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],eh.prototype,"engagementPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],eh.prototype,"liveChatEngagementPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],eh.prototype,"inReplyPanel",void 0);_.f([_.BM("#action-button"),_.l("design:type",HTMLElement)],eh.prototype,"actionButton",void 0);_.f([_.c(),_.l("design:type",Object)],eh.prototype,"scrollUpButtonData",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],eh.prototype,"engagementPanelDropdown",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],eh.prototype,"engagementPanelDialog",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],eh.prototype,"isClipList",null);_.f([_.BM("#contents"),_.l("design:type",HTMLElement)],eh.prototype,"monitorScrollElement",void 0);_.f([_.BM("#contents"),_.l("design:type",HTMLElement)],eh.prototype,"contents",void 0);
_.f([_.I7("scroll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eh.prototype,"onScroll",null);eh=_.f([_.U({is:"ytd-section-list-renderer",disableElementRegistration:!0})],eh);
var zGm=_.R7()(eh,"ytd-section-list-renderer",function(){if(Rvm===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);Rvm=W}W=Rvm;return W},{mode:1});var Ggd;var ESZ;var gSc;var D4w;var c_=function(){return _.b.apply(this,arguments)||this};
_.A(c_,_.b);c_.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
c_.prototype.onLikeButtonClick=function(W){W.stopPropagation();W.preventDefault()};
_.N1.Object.defineProperties(c_.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.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)})}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],c_.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],c_.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],c_.prototype,"ytRendererStamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],c_.prototype,"data",void 0);
_.f([_.c({selectorArgs:["data.likeStatusEntityKey"],selector:E4}),_.l("design:type",Object)],c_.prototype,"likeStatusEntity",void 0);_.f([_.H("data","likeStatusEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],c_.prototype,"likeButtonRenderer",null);c_=_.f([_.U({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],c_);
_.X(c_,"ytd-slim-metadata-toggle-button-renderer",function(){if(D4w!==void 0)return D4w;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return D4w=W},{mode:1});var ak=function(){var W=_.b.apply(this,arguments)||this;W.minimizePipBreakages=_.p("web_pip_minimize_breakages");W.showEqualizer=_.p("web_enable_playlist_video_lockup_equalizer");W.watchColorUpdate=_.p("kevlar_watch_color_update");W.actionMap={};return W};
_.A(ak,_.b);_.J=ak.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.J.computeEditableClass=function(W){return W&&W.menu?"editable":""};
_.J.computeSelected=function(W){return!(W==null||!W.selected)};
_.J.computeUseColorPalette=function(W){return!!((W==null?0:W.lightColorPalette)&&(W==null?0:W.darkColorPalette))};
_.J.computeLargerPlaylistThumbs=function(W,P){return _.p("web_enable_playlist_bigger_thumbnails")&&!P};
_.J.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.J.onYtServiceRequestSent=function(W,P){P.endpoint&&this.isHideEnclosingAction(P.endpoint)&&!this.selected&&nti(_.am(),this.data.videoId)};
_.J.isHideEnclosingAction=function(W){var P=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",W);W=this.get("likeEndpoint.status",W)==="INDIFFERENT";return P||W};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.N1.Object.defineProperties(ak.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.p("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.withinMiniplayer&&((W=this.data)==null?0:W.actionButtons))}}});
ak.prototype.onYtServiceRequestSent=ak.prototype.onYtServiceRequestSent;ak.prototype.canReorderChanged=ak.prototype.canReorderChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],ak.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.eZ),_.l("design:type",Object)],ak.prototype,"ytdLockupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ak.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ak.prototype,"withinMiniplayer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ak.prototype,"minimizePipBreakages",void 0);_.f([_.c({computed:"computeSelected(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ak.prototype,"selected",void 0);
_.f([_.c({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ak.prototype,"useColorPalette",void 0);_.f([_.c({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ak.prototype,"largerPlaylistThumbs",void 0);_.f([_.c(),_.l("design:type",Object)],ak.prototype,"showEqualizer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ak.prototype,"canReorder",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ak.prototype,"touchPersistentDragHandle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ak.prototype,"handleIsHovered",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ak.prototype,"watchColorUpdate",void 0);_.f([_.c(),_.l("design:type",String),_.l("design:paramtypes",[])],ak.prototype,"reorderIcon",null);
_.f([_.H("largerPlaylistThumbs"),_.l("design:type",Number),_.l("design:paramtypes",[])],ak.prototype,"thumbnailWidth",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ak.prototype,"showActionButtons",null);_.f([_.K_("canReorder"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ak.prototype,"canReorderChanged",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],ak.prototype,"onYtServiceRequestSent",null);ak=_.f([_.U({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],ak);
_.X(ak,"ytd-playlist-panel-video-renderer",function(){if(gSc!==void 0)return gSc;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gSc=W},{mode:2});var bn=function(){return _.b.apply(this,arguments)||this};
_.A(bn,_.b);bn.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bn.prototype,"data",void 0);bn=_.f([_.U({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],bn);
_.X(bn,"ytd-playlist-panel-supported-items",function(){if(ESZ!==void 0)return ESZ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return ESZ=
W},{mode:1});zkz=!0;XFM("\\P{N}");var erA;var M1A=_.KK("END_OF_PLAYLIST",void 0,"End of playlist"),$4b=_.KK("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),k8=function(){var W=_.b.apply(this,arguments)||this;W.minimizePipBreakages=_.p("web_pip_minimize_breakages");W.updatedCoursePanel=_.p("move_three_dot_menu_to_playlist_panel_header_for_courses");W.reducedPlaylistHeight=_.p("web_playlist_mini_playlist_height");W.hideHeaderText=!1;W.useColorPalette=!1;W.collapsed=!1;W.collapsedPreServerOverride="not_tracked";
W.isHovered=!1;W.modernPanels=_.p("kevlar_watch_modern_panels");W.expandLabel=_.KK("MINIPLAYER_EXPAND_LABEL");W.collapseLabel=_.KK("MINIPLAYER_COLLAPSE_LABEL");W.isFloating=!1;W.metaPanel=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};W.currentIndex=void 0;return W};
_.A(k8,_.b);_.J=k8.prototype;
_.J.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"}}}};
_.J.created=function(){this.scrollThrottle=new _.WO(this.onThrottledScroll,1E3,this)};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.computeOverflowMenuData=function(W){return W&&W.menu?W.menu:null};
_.J.computeCollapsible=function(W){return!W};
_.J.computeHasPlaylistButtons=function(W){return!(!W||!W.playlistButtons)};
_.J.computeHasSeparateSaveButton=function(W){return!(!W||!W.saveButton)};
_.J.computeHasToolbarButton=function(W,P){return!(!W||!(P||W.saveButton||W.menu))};
_.J.computePlaylistType=function(W){if(W&&W.playlistId)return W.playlistId.substring(0,4)};
_.J.computeCanReorder=function(W){return W?W.playlistId&&W.playlistId.startsWith("TLPQ")?!0:!!W.isEditable&&!W.isInfinite:!1};
_.J.attached=function(){var W=this;try{_.FY().resolve(_.wx).setPlaylistComponent(this.hostElement)}catch(P){if(_.p("kevlar_park_on_playlist_token_killswitch"))throw P;_.HK().parkOrScheduleJob(function(){_.FY().resolve(_.wx).setPlaylistComponent(W.hostElement)},2,"ci")}_.Fu(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.J.detached=function(){_.qV(this.hostElement)};
_.J.computeTrailingIcon=function(W,P,x){return x?P?"yt-icons:collapse":"yt-icons:close":P?"yt-icons:expand":_.p("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.J.computeIndexMessage=function(W,P){return bSR(W+1)+" / "+bSR(P)};
_.J.onRenderStamperFinished=function(){if(this.scrollForStampDom){var W=!0;this.isHovered&&(W=!1);if(this.collapsed||this.hidden)W=!1;W&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.J.collapseChanged=function(){var W=this;this.collapsed||(_.GS(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.J.hiddenChanged=function(){var W=this;this.hidden||_.GS(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()})};
_.J.setupReordering=function(){var W=_.g(this.hostElement).querySelector("#items");EJd?_.uXA(this.ytReorderableBehavior,W,W,"playlist-drag-handle"):_.uXA(this.ytReorderableBehavior,W,W)};
_.J.scrollToCurrentVideo=function(){var W=this;_.Gr.addJob(function(){var P=_.g(W.hostElement).querySelector("#items");if(P){P.style.setProperty("padding-bottom","");var x=_.g(W.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(x){P=x.parentElement||_.A6(document);var I=P||_.A6(document);var O=_.gJ(x),B=_.gJ(I),Y=_.sGw(I);if(I==_.A6(document)){var K=O.x-I.scrollLeft;O=O.y-I.scrollTop}else K=O.x-B.x-Y.left,O=O.y-B.y-Y.top;x=o4P(x);B=I.clientHeight-
x.height;Y=I.scrollLeft;var Z=I.scrollTop;Y+=K-(I.clientWidth-x.width)/2;I=new _.Al(Y,Z+(O-B/2));P.scrollLeft=I.x;P.scrollTop=I.y}}},8)};
_.J.dataChanged=function(){var W=this;_.SRM(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Xm(this,function(){_.VE(W.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty();W.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.J.updateNowPlayingOverlay=function(){_.p("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.J.onPlaylistLockupNowPlaying=function(W,P){P&&(this.activeNowPlayingRenderer=P);this.updateNowPlayingOverlay()};
_.J.onScroll=function(){this.scrollThrottle.fire()};
_.J.onThrottledScroll=function(){var W=this;_.VE(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty()})};
_.J.onToggleExpanded=function(W){this.collapsible&&_.af(W).tagName!=="A"&&!_.Nx(_.c5(W),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.J.setCollapsed=function(W){this.collapsible&&(this.collapsed=W,_.P7(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.J.handleCollapsedFromData=function(W){if(W){var P=W.playlistPanelCollapseState;P==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||P==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),P=P==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==P&&this.setCollapsed(P)):this.currentPlaylistId!==W.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(P=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==P&&this.setCollapsed(P),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=W.playlistId}};
_.J.handleDrop=function(W){var P=W.currDragItem;W=P.data.playlistSetVideoId;var x=_.fm(P.parentNode.childNodes,P),I=void 0;x>0&&(I=P.parentNode.childNodes[x-1].data.playlistSetVideoId);P=_.am();if(P.responsePlaylistData&&P.responsePlaylistData.contents){var O=Bbt(W,P.responsePlaylistData);P.responsePlaylistData=(0,_.jU.unsafeClone)(P.responsePlaylistData);Qox(P.responsePlaylistData.contents,O,x);P.queueProxy?e9M(P.queueProxy,O,x,W,I):P.playlistProxy&&e9M(P.playlistProxy,O,x,W,I);_.bg(P,_.kP(P,P.response?
P.response.autoplayRenderer:void 0))}};
_.J.handleDarkModeChange=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.J.colorPaletteChanged=function(){var W,P=((W=this.data)==null?void 0:W.contents)||[],x;W=_.n(P);for(P=W.next();!P.done;P=W.next()){P=P.value;var I=void 0;if((I=P.playlistPanelVideoRenderer)==null?0:I.selected){W=P.playlistPanelVideoRenderer;I=P=void 0;(x=this.isDarkTheme?(P=W)==null?void 0:P.darkColorPalette:(I=W)==null?void 0:I.lightColorPalette)&&_.QB(this.hostElement,x);break}}this.useColorPalette=!!x};
_.N1.Object.defineProperties(k8.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.playlistId)&&!((P=this.data)==null||!P.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var W=_.FY().resolve(_.Rl(_.wx)),P;if(((P=this.data)==null?0:P.contents)&&(W==null?0:W.hasAutoplayData())){var x;if(((x=this.playlistLoopStateEntity)==null?void 0:x.state)==="PLAYLIST_LOOP_STATE_ONE"){if(W=this.data.currentIndex,W!==void 0){var I,O;var B=(I=this.data.contents[W])==null?void 0:(O=I.playlistPanelVideoRenderer)==null?void 0:O.title}}else{var Y,K=(Y=_.Q(W.getAutoplayEndpoint(),_.U_))==null?void 0:Y.videoId,Z,d;B=(Z=this.data.contents.find(function(v){var m;
return((m=v.playlistPanelVideoRenderer)==null?void 0:m.videoId)===K}))==null?void 0:(d=Z.playlistPanelVideoRenderer)==null?void 0:d.title}return B}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.nextVideoLabel?this.nextVideoTitle?_.kz(this.data.nextVideoLabel)+":":M1A:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.bx($4b);var P;return(P=this.data)==null?void 0:P.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I=(W=this.data)==null?void 0:(P=W.playlistButtons)==null?void 0:(x=P.menuRenderer)==null?void 0:x.topLevelButtons;if(I)for(W=_.n(I),P=W.next();!P.done;P=W.next())if(P=P.value,P.playlistLoopButtonRenderer)return P.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.collapsed&&((W=this.data)==null?0:W.nextVideoLabel))}}});
k8.prototype.colorPaletteChanged=k8.prototype.colorPaletteChanged;k8.prototype.onPlaylistLockupNowPlaying=k8.prototype.onPlaylistLockupNowPlaying;k8.prototype.updateNowPlayingOverlay=k8.prototype.updateNowPlayingOverlay;k8.prototype.dataChanged=k8.prototype.dataChanged;k8.prototype.hiddenChanged=k8.prototype.hiddenChanged;k8.prototype.collapseChanged=k8.prototype.collapseChanged;k8.prototype.onRenderStamperFinished=k8.prototype.onRenderStamperFinished;k8.prototype.onMouseLeave=k8.prototype.onMouseLeave;
k8.prototype.onMouseEnter=k8.prototype.onMouseEnter;_.f([_.h(_.Db),_.l("design:type",Object)],k8.prototype,"ironResizableBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(Z3w.YtPlaylistPanelBehavior),_.l("design:type",Object)],k8.prototype,"ytPlaylistPanelBehavior",void 0);
_.f([_.h(_.XU.YtTaskEmitterBehavior),_.l("design:type",Object)],k8.prototype,"ytTaskEmitterBehavior",void 0);_.f([_.h(_.d8w),_.l("design:type",Object)],k8.prototype,"ytReorderableBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],k8.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],k8.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],k8.prototype,"actionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],k8.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],k8.prototype,"autoplayData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],k8.prototype,"withinMiniplayer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"minimizePipBreakages",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"updatedCoursePanel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"reducedPlaylistHeight",void 0);_.f([_.c({computed:"setMenuData_(data)"}),_.l("design:type",Object)],k8.prototype,"menuRendererData",void 0);_.f([_.c({computed:"computeOverflowMenuData(data)"}),_.l("design:type",Object)],k8.prototype,"overflowMenuDataTopRow",void 0);_.f([_.c({computed:"computeOverflowMenuData(data)"}),_.l("design:type",Object)],k8.prototype,"overflowMenuData",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"hideHeaderText",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"useColorPalette",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.l("design:type",Boolean)],k8.prototype,"collapsible",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"collapsed",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],k8.prototype,"hidden",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.l("design:type",Boolean)],k8.prototype,"hasPlaylistButtons",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.l("design:type",Boolean)],k8.prototype,"hasSeparateSaveButton",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.l("design:type",Boolean)],k8.prototype,"hasToolbar",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.l("design:type",String)],k8.prototype,"playlistType",void 0);_.f([_.c(),_.l("design:type",Object)],k8.prototype,"isHovered",void 0);_.f([_.c({selectorArgs:["playlistLoopStateEntityKey"],selector:_.$8C}),_.l("design:type",Object)],k8.prototype,"playlistLoopStateEntity",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"modernPanels",void 0);_.f([_.c({value:56}),_.l("design:type",Number)],k8.prototype,"scrollMargin",void 0);_.f([_.c({computed:"computeCanReorder(data)"}),_.l("design:type",Boolean)],k8.prototype,"canReorder",void 0);_.f([_.c(),_.l("design:type",Object)],k8.prototype,"expandLabel",void 0);_.f([_.c(),_.l("design:type",Object)],k8.prototype,"collapseLabel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"isFloating",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],k8.prototype,"metaPanel",void 0);_.f([_.c({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.l("design:type",String)],k8.prototype,"trailingIcon",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],k8.prototype,"isDarkTheme",void 0);
_.f([_.c({selector:_.Ab}),_.l("design:type",Boolean)],k8.prototype,"miniplayerIsActive",void 0);_.f([_.c({selector:function(W){return W.watch.playerState}}),
_.l("design:type",Number)],k8.prototype,"playerState",void 0);_.f([_.c(),_.l("design:type",Object)],k8.prototype,"activeNowPlayingRenderer",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],k8.prototype,"moveThreeDotMenuToTopRow",null);_.f([_.H("data","autoplayData","playlistLoopStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],k8.prototype,"nextVideoTitle",null);
_.f([_.H("data","nextVideoTitle"),_.l("design:type",String),_.l("design:paramtypes",[])],k8.prototype,"nextVideoLabel",null);_.f([_.H("collapsed"),_.l("design:type",String),_.l("design:paramtypes",[])],k8.prototype,"buttonAriaLabel",null);_.f([_.H("data","playlistId","longBylineText"),_.l("design:type",Object),_.l("design:paramtypes",[])],k8.prototype,"mixLongByLine",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],k8.prototype,"playlistLoopStateEntityKey",null);
_.f([_.I7("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"onMouseEnter",null);_.f([_.I7("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"onMouseLeave",null);_.f([_.c({reflectToAttribute:!0}),_.H("data","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],k8.prototype,"showNextVideoHeader",null);
_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"onRenderStamperFinished",null);_.f([_.OZ("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"collapseChanged",null);_.f([_.OZ("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"hiddenChanged",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"dataChanged",null);_.f([_.OZ("playerState","miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"updateNowPlayingOverlay",null);_.f([_.I7("yt-playlist-lockup-now-playing-active"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],k8.prototype,"onPlaylistLockupNowPlaying",null);
_.f([_.OZ("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"colorPaletteChanged",null);k8=_.f([_.U({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],k8);
_.wEd=_.R7()(k8,"ytd-playlist-panel-renderer",function(){if(Ggd===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);Ggd=W}W=Ggd;return W},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var hGc;var UY=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_button_rework");return W};
_.A(UY,_.b);UY.prototype.computeShouldButtonBeVertical=function(W,P){return W||P};
UY.prototype.onYtServiceRequestSent=function(W,P){(W=_.Q(P.endpoint,_.i6))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.mG("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:W.status})):this.handleLikeEndpoint(W))};
UY.prototype.computelikeStatusEntityKey=function(W){return W==null?void 0:W.likeStatusEntityKey};
UY.prototype.handleLikeEndpoint=function(W){W.status==="LIKE"?this.JSC$14796_ytdDislikeToggleButtonRenderer.toggle(!1):W.status==="DISLIKE"?this.JSC$14796_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14796_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14796_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.N1.Object.defineProperties(UY.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var W;return f4W(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var W;if(this.data&&((W=this.data)==null||!W.hideDislikeButton)){var P;return f4W(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(P=this.likeStatusEntity)==null?void 0:P.likeStatus)}}}});
UY.prototype.onYtServiceRequestSent=UY.prototype.onYtServiceRequestSent;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],UY.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UY.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],UY.prototype,"vertical",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],UY.prototype,"textTransform",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],UY.prototype,"useShortsIcon",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],UY.prototype,"underIconLabel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],UY.prototype,"modern",void 0);_.f([_.c({value:"left"}),_.l("design:type",String)],UY.prototype,"buttonTooltipPosition",void 0);
_.f([_.c(),_.l("design:type",Object)],UY.prototype,"overrides",void 0);_.f([_.BM("#like-button"),_.l("design:type",Object)],UY.prototype,"JSC$14796_ytdLikeToggleButtonRenderer",void 0);_.f([_.BM("#dislike-button"),_.l("design:type",Object)],UY.prototype,"JSC$14796_ytdDislikeToggleButtonRenderer",void 0);_.f([_.H("data","likeStatusEntity.likeStatus"),_.l("design:type",Object),_.l("design:paramtypes",[])],UY.prototype,"likeButton",null);
_.f([_.H("data","likeStatusEntity.likeStatus"),_.l("design:type",Object),_.l("design:paramtypes",[])],UY.prototype,"dislikeButton",null);_.f([_.c({computed:"computelikeStatusEntityKey(data)"}),_.l("design:type",String)],UY.prototype,"likeStatusEntityKey",void 0);_.f([_.c({selectorArgs:["likeStatusEntityKey"],selector:E4}),_.l("design:type",Object)],UY.prototype,"likeStatusEntity",void 0);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],UY.prototype,"onYtServiceRequestSent",null);UY=_.f([_.U({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],UY);
var HNm=_.R7()(UY,"ytd-like-button-renderer",function(){if(hGc===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);hGc=W}W=hGc;return W},{mode:1});_.eGp={};
_.eGp.YtConditionalRendererBehavior=[_.L.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(W,P){var x=this,I,O;return _.y(function(B){switch(B.nextAddress){case 1:if(!P)return x.hidden=!0,x.showSpinner=!1,B.return();if((I=W)==null?0:(O=I.visibilityCondition)==null?0:O.mode)switch(W.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return B.jumpTo(5);default:return B.jumpTo(6)}x.showSpinner=
!1;x.hidden=!0;return _.S(B,x.shouldShow_(W),4);case 4:x.hidden=!B.yieldResult;B.jumpTo(0);break;case 5:return _.S(B,x.shouldShow_(W),8);case 8:x.showSpinner=B.yieldResult;x.hidden=!1;B.jumpTo(0);break;case 6:return x.showSpinner=!1,_.S(B,x.shouldShow_(W),9);case 9:x.hidden=!B.yieldResult,_.Kl(B)}})},
shouldShow_:function(W){return W&&W.supportedDatas&&W.supportedDatas.rendererVisibilityConditionData&&W.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(W.supportedDatas.rendererVisibilityConditionData.showIf):W&&W.visibilityCondition&&W.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(W.visibilityCondition.showIf):W&&W.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(W.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(W){switch(W){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(W){switch(W){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var W=_.W7(this.hostElement,"yt-get-mdx-status");return W.length==1&&W[0].connected},
isLocationPermissionGranted_:function(){var W;return _.y(function(P){return P.nextAddress==1?navigator.permissions?_.S(P,navigator.permissions.query({name:"geolocation"}),3):P.jumpTo(2):P.nextAddress!=2?(W=P.yieldResult,P.return(Promise.resolve(W.state==="granted"))):P.return(Promise.resolve(!1))})}}];var crl=function(W,P){P=P===void 0?{}:P;return function(x){var I=document.createElement(W),O;var B=(O=I.polymerController)!=null?O:I;ROA(I,B,x,P);return I}}("yt-icon");var a0c=function(W){var P=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];F77();_.lA("ytglobal.ytUtilActivityCallback_",function(){_.P7(W,"yt-user-activity")});
new iE(function(){return P.JSC$14808_onMouseMove});
document.addEventListener("scroll",function(){return P.onScroll});
window.addEventListener("resize",function(){return P.onResize})},bNz=function(W,P,x){P in W.eventJobIds||(x=_.Ds().addLowPriorityJob(function(){_.qt();
delete W.eventJobIds[P]},x),W.eventJobIds[P]=x)};
a0c.prototype.onScroll=function(W){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):W.target===document&&bNz(this,"scroll",200)};
a0c.prototype.onResize=function(){bNz(this,"resize",200)};
a0c.prototype.JSC$14808_onMouseMove=function(){bNz(this,"mousemove",100)};
_.lL=function(W){W.scrollEventsToIgnore+=1;W.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){W.scrollEventsToIgnore--},500))};var kgA=function(W){this.element=W;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
kgA.prototype.showFeedbackDialog=function(W,P,x,I){var O=U4p();if(!O)return!1;var B=x9G();B.productId=O;P&&(B.flow="submit",B.report={description:P});x&&(U4p()==="59"?B.callback=_.Ho(function(){_.Ay("userFeedbackEvent",{});x()}):B.callback=_.Ho(x));
B.bucket=I||_.$$("GOOGLE_FEEDBACK_BUCKET","Other");XEA(B);W=f0d(this,"GFEEDBACK",W);try{_.WSW(B,W)}catch(Y){return _.hQ(Y),!1}return!0};
kgA.prototype.showHelpDialog=function(W,P,x){var I=this,O=U4p();if(!O)return!1;var B={helpCenterPath:"/youtube",productData:f0d(this,"GUIDED_HELP",x)};XEA(B);var Y=x9G();Y.context=W||B.productData.context||"default";Y.defaultHelpArticleId=P;Y.enableSendFeedback=!0;(_.eL("gapi.load")||function(K,Z){return Z()})("client",function(){try{var K=kDb(O,B);
if(_.p("web_always_load_chat_support")&&!I.chatSupportLoaded)try{K.JSC$7877_loadChatSupport(Y),I.chatSupportLoaded=!0}catch(Z){}K.startHelp(Y)}catch(Z){_.hQ(Z)}})};
var U4p=function(){var W=_.$$("GOOGLE_FEEDBACK_PRODUCT_ID");W||_.hQ(Error("ci"));return W},XEA=function(W){W&&(W.locale=_.p("kevlar_help_use_locale")?_.$$("INNERTUBE_CONTEXT_HL","en"):_.$$("HTML_LANG","en"))},f0d=function(W,P,x){var I=W.productData;
delete I.origin;I.device=_.sU();var O;a:{if(O=document.createElement("canvas")){var B=O.getContext("experimental-webgl",{stencil:!0});if(B){var Y=B.getExtension("WEBGL_debug_renderer_info");if(Y){O=B.getParameter(Y.UNMASKED_RENDERER_WEBGL);break a}}if(B=O.getContext("webgl")){O=B.getParameter(B.RENDERER);break a}}O=null}I.gpu=O;I.isSDC=!!_.$$("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(O=_.$$("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.jU.extend(I,O);_.W6m(P,I);_.P$o(I);(W=_.P7(W.element,"yt-get-autonav-pause-debug-state"))&&
W.length&&(I.autonav_pause_state=W[0]);W=_.K5();I.browser_resolution=W.width+"\u00d7"+W.height+"@"+(window.devicePixelRatio||1)+"x";x&&_.jU.extend(I,x);return I};
kgA.prototype.resetProductData=function(){this.productData={}};var NAi=function(W){this.feedbackManager=new kgA(W)};
NAi.prototype.showFeedbackDialog=function(W,P,x,I){return this.feedbackManager.showFeedbackDialog(W,P,x,I)};
NAi.prototype.showHelpDialog=function(W,P,x){return this.feedbackManager.showHelpDialog(W,P,x)};var l0l=function(){this.baseUrl="";this.aTag=document.createElement("a")},jkl=function(W,P,x){x=x===void 0?{}:x;
x.pbj||(x.pbj=1);x=_.Ht8(P,x);W.baseUrl&&x&&!_.NR(x)[1]&&!_.lP(x)&&(P=W.baseUrl,yG(P,"/")&&(P=P.slice(0,-1)),_.Bd(x,"/")&&(x=x.slice(1)),x=P+"/"+x);AH(W.aTag,s0(x||""));return W.aTag.href};
l0l.prototype.fetchData=function(W){return _.r$C(W)};
l0l.prototype.postData=function(W,P){var x={method:"POST"};if(P){for(var I=_.n(Object.keys(P)),O=I.next();!O.done;O=I.next()){O=O.value;var B=P[O];_.Jw(B)&&(P[O]=JSON.stringify(B))}x.postParams=P}return _.r$C(W,x)};
_.QkA=function(W,P,x,I,O){W=jkl(W,P,x);if(!W)throw I=Error("di"),Object.assign(I,{params:P}),I;return _.r$C(W,O,I)};
l0l.prototype.requestDataForServiceEndpoint=function(W,P){if(_.Q(W,_.QJU))return this.fetchData("/getAccountSwitcherEndpoint");P=P||{};var x=_.Q(W,upi);x?P.se=x.base64EncodedServiceEndpoint:P.sej=JSON.stringify(W);(x=_.E_())&&_.p("enable_service_ajax_csn")&&(P.csn=x);P.theme=_.gT();_.Q(W,pl7)&&_.$$("DELEGATION_CONTEXT")&&(P.delegation_context=JSON.stringify(_.$$("DELEGATION_CONTEXT")));x=null;for(var I in W)if(yG(I,"Endpoint")||yG(I,"Command")){x=I;break}if(!x){var O=Error("ei");Object.assign(O,{params:W});
_.$go(O,"WARNING");return new _.yE(function(Y,K){K(O)})}I={name:x};
var B;(x=(B=_.Q(W,_.Y6))==null?void 0:B.signal)&&(I.signal=x);(B=_.UV(window.location.href))&&B.internalcountrycode&&(I.internalcountrycode=B.internalcountrycode);B="/service_ajax";_.p("debug_forward_web_query_parameters")&&(B=_.T7R(B,window.location.search));B=_.fX(B,I);W.clickTrackingParams&&_.lO(B,{itct:W.clickTrackingParams});return this.postData(B,P)};_.TA3=new _.Lb("GFEEDBACK_TOKEN");var rrm;var iNp;var RGz;var FNp;var XC=function(){var W=_.b.apply(this,arguments)||this;W.compact=!1;return W};
_.A(XC,_.b);XC.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
XC.prototype.computeHasIcon_=function(W){return!!W};
XC.prototype.isSignInIcon_=function(W){return W=="yt-icons:prompted_sign_in"};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.eGp.YtConditionalRendererBehavior),_.l("design:type",Object)],XC.prototype,"ytConditionalRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],XC.prototype,"data",void 0);
_.f([_.c({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],XC.prototype,"icon_",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.l("design:type",Boolean)],XC.prototype,"hasIcon_",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.l("design:type",Boolean)],XC.prototype,"signInIcon_",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],XC.prototype,"compact",void 0);
XC=_.f([_.jd({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],XC);
_.X(XC,"yt-player-error-message-renderer",function(){if(FNp===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;RGz===void 0&&(RGz=document.createElement("template"));var I=RGz;x.call(P,I.content.cloneNode(!0),W.content.firstChild);FNp=W}W=FNp;return W},{mode:2});var qll;var LNW;var fZ=function(){return _.b.apply(this,arguments)||this};
_.A(fZ,_.b);fZ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fZ.prototype.computeIcon_=function(W){return W?"yt-icons:"+W.iconType.toLowerCase():"error_outline"};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],fZ.prototype,"data",void 0);_.f([_.c({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],fZ.prototype,"icon_",void 0);fZ=_.f([_.jd({is:"yt-player-kav-renderer",disableElementRegistration:!0})],fZ);
_.X(fZ,"yt-player-kav-renderer",function(){if(LNW===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;qll===void 0&&(qll=document.createElement("template"));var I=qll;x.call(P,I.content.cloneNode(!0),W.content.firstChild);LNW=W}W=LNW;return W},{mode:2});_.lq(_.kl(function(W){var P=_.fa(),x=_.n(_.YV(0,void 0,"gCmSbf")),I=x.next().value,O=x.next().value;x=_.n(_.YV(null,void 0,"Rj9zMe"));var B=x.next().value,Y=x.next().value;_.AQ(function(){JUx(P.value,O,Y);P.value.scrollIntoView()});
x=BFm.bind(null,W.data,I);is("resize",function(){var K=B();if(I()===1&&K!==null){var Z;(Z=window.grecaptcha)==null||Z.reset(K)}});
return _.u("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.u("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.u("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var K,Z;return(K=W.data().accessibility)==null?void 0:(Z=K.accessibilityData)==null?void 0:Z.label}),_.u(_.mQ,{text:x,
className:_.O4("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.u("div",{el:P,class:"ytwPlayerCaptchaViewModelGridItem"})))},"be"),"yt-player-captcha-view-model",{props:{data:_.Ng}});var nx7=!1;_.Wvk=_.kl(function(W){var P=W.data;return _.u("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.u(_.V,{cond:function(){return P().icon},
then:function(x){return _.u("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.u(_.bq,{data:x,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.u(_.V,{cond:function(){return P().title},
then:function(x){return _.u("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.u(_.mQ,{text:x}))}}),_.u(_.V,{cond:function(){return P().description},
then:function(x){return _.u("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.u(_.mQ,{text:x}))}}),_.u(_.Ea,{data:function(){return P().primaryButton}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.u(_.Ea,{data:function(){return P().secondaryButton}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ce");
_.Wvk.idomCompat=!0;var PMZ=_.kl(function(W){var P=W.data;_.Lo();return _.u("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.u("div",{class:"player-interstitial-renderer-wiz__scrim"},_.u(_.Ea,{data:function(){return P().content}},{interstitialViewModel:_.Wvk})))},"de");
PMZ.idomCompat=!0;_.lq(PMZ,"yt-player-interstitial-renderer",{props:{data:_.cv}});var NN=function(){var W=_.b.apply(this,arguments)||this;W.noBackground=!1;W.compact=!1;W.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return W};
_.A(NN,_.b);NN.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"}}}};
NN.prototype.onUpdatePlayerErrorMessageCommand_=function(W){if(_.Q(W,Cez)){var P;if(W=(P=_.Q(W,Cez))==null?void 0:P.newPlayerErrorMessageRenderer)this.data=W}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],NN.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],NN.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],NN.prototype,"status",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],NN.prototype,"noBackground",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],NN.prototype,"compact",void 0);NN=_.f([_.jd({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],NN);
var xub=_.R7()(NN,"yt-playability-error-supported-renderers",function(){if(iNp===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;rrm===void 0&&(rrm=document.createElement("template"));var I=rrm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);iNp=W}W=iNp;return W},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var YqG=void 0,K6t=void 0;var Sqx=new Alm;var S_=new _.Lb("ENTITY_STATE_TOKEN"),ln=new _.Lb("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var I_c=function(W){this.store=W;this.sbp=new _.EKW},VNd=function(W,P,x){var I,O;
if(!(O=((I=P.playabilityStatus)==null?void 0:I.status)!=="OK")){W=W.store;var B;O=P.offlineState&&((B=P.videoDetails)==null?0:B.videoId)?_.p("enable_pl_r_c_cd")?BKo(W.getState().entities,P.videoDetails.videoId):!!K4m(W.getState().entities,P.videoDetails.videoId):!1}if(O)return!0;O=m9C(P);if(O===1){if(_.p("ab_v_vid_sig")){var Y,K=(Y=P.videoDetails)==null?void 0:Y.videoId;if(!K||!x||K!==x){var Z;P=new _.mW("282054944_vid",{z8Q:x,tKa:(Z=P.videoDetails)==null?void 0:Z.videoId});_.G$(P)}}return!0}UHx=
0;var d,v;Z=(K=P.auxiliaryUi)==null?void 0:(d=K.messageRenderers)==null?void 0:(v=d.bkaEnforcementMessageViewModel)==null?void 0:v.displayType;if(O!==3&&(Z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||Z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;Z={reason:_.Ru(_.KK("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.p("ks_something_wrong_learn_more")?ggA("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Ru(_.KK("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:_.Ru("282054944")};Ouk(P,{playerErrorMessageRenderer:Z});return!1},tNG=function(W,P){if(Ok8(P)){_.nL(1,!0);
var x=(x=Ok8(P))&&_.yUR()?x:void 0;x?(Ouk(P,{enforcementMessageViewModel:x}),W.sbp.increment("IN_PLAYER"),_.nL(5)):(W.sbp.increment("SKIP_DISPLAY"),_.nL(2))}},Ouk=function(W,P){W.playabilityStatus=Object.assign({},W.playabilityStatus,{status:"ERROR",
errorScreen:P});W.videoDetails=void 0};
I_c.prototype.handleResponse=function(W,P){if(W.playabilityStatus){var x,I,O,B=(P==null?void 0:(x=P.innerTubeRequest)==null?void 0:x.videoId)||(P==null?void 0:(I=P.innerTubeRequest)==null?void 0:(O=I.playerRequest)==null?void 0:O.videoId);VNd(this,W,B)&&tNG(this,W)}};
I_c[qC]=[S_];var vrR=new _.Lb("ADBLOCK_DETECTION_SERVICE_TOKEN");var Iz=function(W){this.ghd=W};
Iz.prototype.bindInnertubeChallengeFetcher=function(W){this.ghd.bicf(W)};
Iz.prototype.registerChallengeFetchedCallback=function(W){this.ghd.bcr(W)};
Iz.prototype.getLatestChallengeResponse=function(){return this.ghd.blc()};var YXd;_.Tf=function(W,P,x){var I=this;this.network=W;this.options=P;this.networkStatusManager=x;this.kZ=null;if(P.useBotguardEverywhere){var O=new _.If;this.kZ=O.promise;_.xW.ytAtRC&&_.pC(_.Gr,function(){var B,Y;return _.y(function(K){if(K.nextAddress==1){if(!_.xW.ytAtRC)return K.return();B=JKZ(null);return _.S(K,I.dn(B),2)}Y=K.yieldResult;_.xW.ytAtRC&&_.xW.ytAtRC(JSON.stringify(Y));_.Kl(K)})});
Qy8().then(function(B){var Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1)return B.bindInnertubeChallengeFetcher(function(m){return I.dn(JKZ(m))}),_.S(v,$pC(),2);
Y=v.yieldResult;K=B.getLatestChallengeResponse();Z=K.challenge;if(!Z)throw Error("fi");d={challenge:Z,wl:xc(Z),vx:Y,bgChallenge:new WX};O.resolve(d);B.registerChallengeFetchedCallback(function(m){m=m.challenge;if(!m)throw Error("gi");m={challenge:m,wl:xc(m),vx:Y,bgChallenge:new WX};I.kZ=Promise.resolve(m)});
_.Kl(v)})})}else P.preload&&BXM(this,new Promise(function(B){_.VE(_.Gr,function(){B(nFP(I))},0)}))};
YXd=function(W){var P={preload:!0,useBotguardEverywhere:_.p("attmusi")},x=!1;if(typeof P==="boolean")var I={preload:P};else typeof P==="undefined"?I={preload:!0}:(I=P,x=!!P.ias);P=x?void 0:new _.bE;_.Tf.instance=new _.Tf(W,I,P);return _.Tf.instance};
_.Tf.prototype.j0M=function(){var W=this;return _.y(function(P){return P.nextAddress==1?_.S(P,Promise.race([W.kZ,null]),2):P.return(!!P.yieldResult)})};
_.Tf.prototype.t8s=function(W,P,x){var I=this,O,B,Y;return _.y(function(K){I.kZ===null&&BXM(I,nFP(I));O=!1;B={};Y=function(){var Z,d,v;return _.y(function(m){switch(m.nextAddress){case 1:return _.S(m,I.kZ,2);case 2:Z=m.yieldResult;B.challenge=Z.challenge;if(!Z.vx){"c1a"in Z.wl&&(B.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");m.jumpTo(3);break}d=Object.assign({},{c:Z.challenge,e:W},P);_.OT(m,4);O=!0;if(_.p("attbs")&&!_.p("attmusi")){v=_.zYw(Z.vx,{za:d});m.jumpTo(6);break}return _.S(m,Z.vx.snapshot({za:d}),
7);case 7:v=m.yieldResult;case 6:v?B.webResponse=v:B.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.ci(m,3);break;case 4:_.yn(m),B.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(W==="ENGAGEMENT_TYPE_PLAYBACK"){var t=Z.wl,C={};if(t.c6a){var z=Number(_.$$("DCLKSTAT",0));C.reportingStatus=String(Number(t.c)^(isNaN(z)?0:z))}t.c6b&&(C.broadSpectrumDetectionResult=String(Number(t.c)^Number(_.$$("CATSTAT",0))));B.adblockReporting=C}return m.return(B)}})};
return K.return(Promise.race([Y(),yKW(x,function(){var Z=Object.assign({},B);O&&(Z.error="ATTESTATION_ERROR_VM_TIMEOUT");return Z})]))})};
var JKZ=function(W){var P={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};W&&(P.interpreterHash=W);return P},nFP=function(W,P){P=P===void 0?0:P;
var x,I,O,B,Y,K,Z,d,v,m,t,C;return _.y(function(z){switch(z.nextAddress){case 1:x=JKZ(EDZ().okJ);if(_.p("att_fet_ks"))return _.OT(z,7),_.S(z,W.dn(x),9);_.OT(z,4);return _.S(z,Kvp(W,x),6);case 6:Y=z.yieldResult;O=Y.oyu;B=Y.cXd;I=Y;_.ci(z,3);break;case 4:return _.yn(z),_.ge(Error("hi`"+P)),ZuM(W,864E5),z.return({challenge:"",wl:{},vx:void 0,bgChallenge:void 0});case 9:I=z.yieldResult;if(!I)throw Error("ii");if(!I.challenge)throw Error("ji");O=I.challenge;B=xc(O);if("c1a"in B&&(!I.bgChallenge||!I.bgChallenge.program))throw Error("ki");
_.ci(z,3);break;case 7:K=_.yn(z);_.ge(K);P++;if(P>=5)return _.ge(Error("hi`"+P)),ZuM(W,864E5),z.return({challenge:"",wl:{},vx:void 0,bgChallenge:void 0});Z=1E3*Math.pow(2,P-1)+Math.random()*1E3;return z.return(new Promise(function(D){_.VE(_.Gr,function(){D(nFP(W,P))},Z)}));
case 3:d=jyR(B);ZuM(W,d*1E3);v=void 0;if(!("c1a"in B&&I.bgChallenge)){z.jumpTo(10);break}m=phm(I.bgChallenge);_.OT(z,11);return _.S(z,Dip(EDZ(),m),13);case 13:_.ci(z,12);break;case 11:return t=_.yn(z),_.ge(t),z.return({challenge:O,wl:B,vx:v,bgChallenge:m});case 12:return _.OT(z,14),v=new _.$f({challenge:m,gU:{cD:"aGIf"}}),_.S(z,v.fPT,16);case 16:_.ci(z,10);break;case 14:C=_.yn(z),_.ge(C),v=void 0;case 10:return z.return({challenge:O,wl:B,vx:v,bgChallenge:m})}})};
_.Tf.prototype.dn=function(W){var P=this,x;return _.y(function(I){x=P.networkStatusManager;if(!x||x.isNetworkAvailable())return I.return(P.network.dn(W));_.zZ("att_pna",void 0,"attestation_challenge_fetch");return I.return(new Promise(function(O){x.listenOnce("publicytnetworkstatus-online",function(){P.network.dn(W).then(O)})}))})};
var oFm=function(W){if(!W)throw Error("ii");if(!W.challenge)throw Error("ji");var P=W.challenge,x=xc(P);if("c1a"in x&&(!W.bgChallenge||!W.bgChallenge.program))throw Error("ki");return Object.assign({},W,{oyu:P,cXd:x})},Kvp=function(W,P){var x,I,O,B,Y;
return _.y(function(K){switch(K.nextAddress){case 1:x=void 0,I=0,O={};case 2:if(!(I<5)){K.jumpTo(4);break}if(!(I>0)){K.jumpTo(5);break}O.ijW=1E3*Math.pow(2,I-1)+Math.random()*1E3;return _.S(K,new Promise(function(Z){return function(d){_.VE(_.Gr,function(){d(void 0)},Z.ijW)}}(O)),5);
case 5:return _.OT(K,7),_.S(K,W.dn(P),9);case 9:return B=K.yieldResult,K.return(oFm(B));case 7:x=Y=_.yn(K),Y instanceof Error&&_.ge(Y);case 8:I++;O={ijW:void 0};K.jumpTo(2);break;case 4:throw x;}})},BXM=function(W,P){W.kZ=P},SXc=function(W){var P,x,I;
return _.y(function(O){if(O.nextAddress==1)return _.S(O,Promise.race([W.kZ,null]),2);P=O.yieldResult;var B=nFP(W);W.kZ=B;(x=P)==null||(I=x.vx)==null||I.dispose();_.Kl(O)})},ZuM=function(W,P){var x=Date.now()+P,I=function(){var O;
return _.y(function(B){O=x-Date.now();return O<1E3?_.S(B,SXc(W),0):(_.VE(_.Gr,I,Math.min(O,6E4)),B.jumpTo(0))})};
I()},yKW=function(W,P){return new Promise(function(x){_.VE(_.Gr,function(){x(P())},W)})};var uDp=function(){};
uDp.prototype.processContext=function(W){var P=_.Tf.instance;if(!P)return _.Xp();var x=Exm(W);return x?new Ut(P.t8s(x,z78(W),500).then(function(I){var O;(W==null?0:(O=W.innerTubeRequest)==null?0:O.context)||(W.innerTubeRequest.context={});O=W.innerTubeRequest.context;O.request||(O.request={});O.request.attestationResponseData=I})):_.Xp()};var dup=function(W){this.innertubeTransportService=W};
dup.prototype.dn=function(W){_.zZ("att_fsr",void 0,"attestation_challenge_fetch");return _.$P(this.innertubeTransportService,W,_.fR(_.pvb)).then(function(P){_.zZ("att_frr",void 0,"attestation_challenge_fetch");return P})};_.sgc=function(W){this.innertubeTransportService=W};var vFd=new _.Lb("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var muW=function(){},t0P=function(W,P,x,I,O){var B=_.$$("YPC_MB_URL");
_.nh8(B).then(function(){V0z(B,W,P,x,I,O)})},V0z=function(W,P,x,I,O,B){try{var Y=payments.business.integration,K=payments.business.integration.Style.create().withMaterialDesignStyle(),Z=Y.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.p("enable_window_constrained_buy_flow_dialog")&&(Z=Z.usingPopupStyle("windowConstrained"));B&&(Z=Z.usingCloseCallback(B));var d=x?x:_.$$("YPC_GB_LANGUAGE"),v=_.$$("SESSION_INDEX");Y.bootstrap.fromPaymentsUrl(W);Y.bootstrap.asMashupMode(Z).usingGaiaIndex(v).usingLocale(d).usingStyle(K).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Y.standaloneContextAuthId.forGaia()).purchaseManager(P,function(m){I&&I(m)}).load(void 0,O)}catch(m){throw O&&O(m),_.G$(m),m;
}};var pDZ=new _.Lb("PURCHASE_MANAGER_TOKEN");var jgl=function(){var W=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return W.videos},
getContinuationsPresent:function(){return W.continuationsPresent},
setVideos:function(P){W.videos=P},
getRecommendedVideos:function(){return W.recommendedVideos},
setRecommendedVideos:function(P){W.recommendedVideos=P}}};
jgl.prototype.addVideos=function(W){W&&(this.videos=W.filter(function(P){return!!_.D9U(P)}).map(function(P){var x=_.D9U(P);
a:{var I;if(P.playlistVideoRenderer&&((I=P.playlistVideoRenderer)==null?0:I.voteSortTiebreaker))var O=P.playlistVideoRenderer.voteSortTiebreaker;else{if(_.Q(P,JM)){var B;if(I=(O=_.Q(P,JM))==null?void 0:(B=O.playlistItemData)==null?void 0:B.voteSortTiebreaker){O=I;break a}}O=""}}return{itemId:x,videoId:_.wh8(P),voteCount:_.h7W(P),voteSortTiebreaker:O}}),this.continuationsPresent=!!_.Q(W[W.length-1],_.Yc))};
var Qgb=function(W,P){return W.videos.findIndex(function(x){return x.itemId===P})},CMp=function(W,P){return W.recommendedVideos.findIndex(function(x){return x.itemId===P})},AKk=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:W}}}}};_.FY().resolve(_.qR).resolveCommand(W)};var zBM=function(){jgl.apply(this,arguments)};
_.A(zBM,jgl);
var Sqd=function(W,P,x,I){if(!W.parentElem)throw Error("pi");var O=Qgb(W,P);O===-1&&(O=CMp(W,P),O=O!==-1?O+W.videos.length:-1);if(O===-1)throw Error("qi");var B=O>=W.videos.length?W.recommendedVideos[O-W.videos.length]:W.videos[O];B.voteCount=x;B.voteSortTiebreaker=Date.now().toString();O>=W.videos.length?W.recommendedVideos.splice(O-W.videos.length,1):W.videos.splice(O,1);var Y=W.videos;for(var K=0,Z=Y.length-1;K<=Z;){var d=Math.floor((K+Z)/2);if(Y[d].voteCount<B.voteCount)Z=d-1;else if(Y[d].voteCount>B.voteCount)K=
d+1;else{a:{var v=B.voteSortTiebreaker;var m=Y[d].voteSortTiebreaker;if(v.length!==m.length)v=v.length>m.length;else{for(var t=0;t<v.length;t++){var C=v.charCodeAt(t),z=m.charCodeAt(t);if(C>z){v=!0;break a}if(C<z)break}v=!1}}v?Z=d-1:K=d+1}}Y=K;if(Y===-1)throw Error("ri");W.videos.splice(Y,0,B);O!==Y&&G8l(W,O,Y,P,x,I)},G8l=function(W,P,x,I,O,B){var Y,K=(Y=W.parentElem)==null?void 0:Y.children,Z=Math.min(P,x),d=Math.max(P,x);
if(K)for(Y=Z;Y<=d;Y++)K[Y].style.viewTransitionName="item-"+String(Y);document.startViewTransition(function(){if(W.parentElem){var v=W.parentElem.children;if(!(!v||P<0||P>=v.length||x<0||x>=v.length)){var m=v[P];if(m){m.remove();W.showRefreshPill=x>=W.videos.length-1&&W.continuationsPresent;if(!W.showRefreshPill){v=v[x]||null;var t;(t=W.parentElem)==null||t.insertBefore(m,v)}_.Lf(W.parentElem,"yt-update-video-data-voting-animation",{toIdx:x,itemId:I,newVoteCount:O,voteStatus:B,hideItem:W.showRefreshPill})}}}}).finished.then(function(){if(K)for(var v=
Z;v<=d;v++)K[v].style.viewTransitionName="";
if(W.showRefreshPill)AKk(_.KK("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var m;if(m=v=(m=W.parentElem)==null?void 0:m.children[x])m=v.getBoundingClientRect(),v=m.bottom,m=!(m.top>=0&&v<=W.clientHeight);m&&(m=_.ZE(P>x?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(P-x)),AKk(m))}})};var Dul=function(W,P){var x=this;W?this.innertubeTransportServicePromise=Promise.resolve(W):P&&(this.innertubeTransportServicePromise=P(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new DP(3E3,function(I){return EFA(x,I)},0);
this.validateMiniAppVideoIdRateLimiter=new DP(3E3,function(I){return gF3(x,I)},1)},ZNz=function(W,P){W.JSC$14922_miniAppId=P;
W.reportMiniAppValueRateLimiter=new DP(3E3,function(x){return EFA(W,x)},0);
W.validateMiniAppVideoIdRateLimiter=new DP(3E3,function(x){return gF3(W,x)},1)},Sld=function(W,P){var x;
return _.y(function(I){if(I.nextAddress==1)return _.S(I,W.reportMiniAppValueRateLimiter.call(P),2);x=I.yieldResult;return I.return([x,P])})},EFA=function(W,P){var x,I,O,B,Y,K,Z;
return _.y(function(d){switch(d.nextAddress){case 1:return _.S(d,W.innertubeTransportServicePromise,2);case 2:return x=d.yieldResult,I=_.fR(EXl),O=Date.now(),B={externalPostId:W.JSC$14922_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(O/1E3),nanos:Math.round(O%1E3*1E6)},intValue:""+P}},_.OT(d,3),_.S(d,_.$P(x,B,I),5);case 5:Y=d.yieldResult;_.ci(d,4);break;case 3:throw K=_.yn(d),K;case 4:if(Y){if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("si`"+
Y.errorMetadata.status);if(Z=Y.userStatResult)return d.return(Z);throw Error("ti");}throw Error("ui");}})},d4l=function(W){var P,x,I,O,B;
_.y(function(Y){switch(Y.nextAddress){case 1:return _.S(Y,W.innertubeTransportServicePromise,2);case 2:return P=Y.yieldResult,x=_.fR(EXl),I={externalPostId:W.JSC$14922_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.OT(Y,3),_.S(Y,_.$P(P,I,x),5);case 5:O=Y.yieldResult;_.ci(Y,4);break;case 3:throw B=_.yn(Y),B;case 4:if(O==null)throw Error("ui");if("error"in O&&O.error)throw O.error;if(O.errorMetadata)throw Error("si`"+O.errorMetadata.status);_.Kl(Y)}})};
Dul.prototype.flush=function(){var W=this;return _.y(function(P){return P.nextAddress==1?_.S(P,W.reportMiniAppValueRateLimiter.flush(),2):_.S(P,W.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var uwd=function(W,P){return _.y(function(x){return x.nextAddress==1?_.S(x,W.validateMiniAppVideoIdRateLimiter.call(P),2):x.return(x.yieldResult)})},gF3=function(W,P){var x,I,O,B,Y,K;
return _.y(function(Z){switch(Z.nextAddress){case 1:return _.S(Z,W.innertubeTransportServicePromise,2);case 2:return x=Z.yieldResult,I=_.fR(tfb),O={videoId:P},_.OT(Z,3),_.S(Z,_.$P(x,O,I),5);case 5:B=Z.yieldResult;_.ci(Z,4);break;case 3:throw Y=_.yn(Z),Y;case 4:if(B){if("error"in B&&B.error)throw B.error;if(B.errorMetadata)throw Error("si`"+B.errorMetadata.status);if(K=B.playabilityStatus)return Z.return(K.status);throw Error("vi");}throw Error("ui");}})};
Dul[qC]=[_.Rl(_.m7),_.Rl(qfP)];var M03=function(){this.clientData=new Map};
M03.prototype.getData=function(W){return this.clientData.get(W)};var $ul=function(W){this.store=W};
$ul.prototype.handleResponse=function(W){(W=_.Q(W.frameworkUpdates,kC))&&_.KR(W,this.store)};
$ul[qC]=[_.Ae];var wDb=new _.Lb("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var hBP={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var HuA=new _.Lb("ICON_SET_TOKEN"),eBM=new _.Lb("ICON_URL_PROVIDER_TOKEN"),cKd=new _.Lb("PREFETCH_ICONS_TOKEN"),a_Z=new _.Lb("ICON_MAP_FN_TOKEN");var rt={},buZ=(rt.ACCESS_TIME="clock",rt.ACCOUNT_BOX="person_account",rt.ACCOUNT_BOX_CAIRO="person_account_cairo",rt.ACCOUNT_CIRCLE="person_circle",rt.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",rt.ACCOUNT_LINKED="account_link_success",rt.ACCOUNT_UNLINKED="account_link",rt.ADD_FRIEND="people",rt.ADD_TO_LIBRARY=nP("add"),rt.ADD_TO_PLAYLIST="add",rt.ADD_TO_QUEUE_TAIL="list_queue",rt.ADD_TO_REMOTE_QUEUE="list_music",rt.ADD_TO_WATCH_LATER="clock",rt.ADD_VIDEO_LINK="film_strip_add",rt.ALERT_WARN_RED="alert_triangle",
rt.ARROW_BACK="arrow_left",rt.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",rt.ARROW_DROP_DOWN="chevron_down",rt.ARROW_DROP_UP="chevron_up",rt.ARROW_FORWARD="arrow_right",rt.AUDIOTRACK="audio",rt.AUTO_AWESOME="sparkle",rt.AVATAR_ANONYMOUS="person_circle",rt.AVATAR_LOGGED_OUT="person_circle",rt.BACK="arrow_left",rt.BAR_CHART="bar_graph",rt.BLOCK="slash_circle_left",rt.BLOCK_USER="slash_circle_left",rt.BOOKMARK_BORDER="bookmark",rt.BREAKING_NEWS_ALT_1="article_alert",rt.BROADCAST_CAIRO="podcast_cairo",
rt.BUG_REPORT="bug",rt.CAMERA_ALT="camera",rt.CAMPAIGN="megaphone",rt.CANCEL="x_circle",rt.CAPTIONS="closed_caption",rt.CAST_OUTLINE="chromecast",rt.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",rt.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",rt.CHAT="message_bubble_left",rt.CHAT_BUBBLE="message_bubble_empty",rt.CHECK_BOX_OUTLINE_BLANK="box_empty",rt.CHECK_CIRCLE_OUTLINE="check_circle",rt.CHECK_CIRCLE_THICK="check_circle",rt.CLARIFY="article_clarify",rt.CLOSED_CAPTION_SELECTED="closed_caption",rt.CLOSE=
"x_mark",rt.CLOUD_UPLOAD="cloud_arrow_up",rt.COLLAPSE="chevron_up",rt.COLLAPSE_CAIRO="chevron_up_cairo",rt.COLLECTION="layers",rt.COLOR_LENS="palette",rt.COMMENT="message_bubble_right",rt.CONSENT_SHIELD="person_shield",rt.CONTENT_CUT="scissors",rt.CONTENT_CUT_CAIRO="scissors_cairo",rt.COURSE=_.p("web_enable_course_icon_update")?"creator_academy":"lightbulb",rt.COURSE_CAIRO=_.p("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",rt.CREATION_LIVE="radar_live",rt.CREATION_UPLOAD=
"my_videos",rt.CREATION_UPLOAD_RED="upload",rt.CREATOR_STUDIO="youtube_studio",rt.DELETE="trash_can",rt.DELETE_SWEEP="trash_can",rt.DESKTOP="laptop",rt.DISLIKE="thumb_down",rt.DISLIKE_SELECTED="thumb_down",rt.DISMISSAL="x_mark",rt.DISMISS_QUEUE="list_remove",rt.DOWN_ARROW="arrow_down",rt.DO_NOT_DISTURB="slash_circle_left",rt.DRAFT="paper_corner_folded",rt.DRAG_HANDLE="bars_2",rt.EDIT="pencil",rt.EMOJI="face_very_happy",rt.EMOJI_FLAGS="flag",rt.EMOJI_OBJECTS="lightbulb",rt.EMOJI_PEOPLE="face_very_happy",
rt.EMOJI_RECENT="clock",rt.EMPTY_HEART="heart",rt.EMPTY_LIKE="thumb_up",rt.ERROR_BLACK="alert_circle",rt.ERROR_OUTLINE="alert_circle",rt.EXIT_APP="arrow_in",rt.EXIT_TO_APP="arrow_in",rt.EXPAND="chevron_down",rt.EXPAND_ALL="chevron_expand",rt.EXPAND_CAIRO="chevron_down_cairo",rt.EXPAND_LESS="chevron_up",rt.EXPAND_MORE="chevron_down",rt.EXPLORE="compass",rt.EXPLORE_DESTINATION="compass",rt.EXTERNAL_LINK="open_new",rt.FAB_UPLOAD="upload",rt.FACE_HAPPY_OUTLINE="face_happy",rt.FACT_CHECK="article_check",
rt.FASHION_LOGO="fashion",rt.FASHION_LOGO_CAIRO="fashion_cairo",rt.FAVORITE="heart",rt.FEEDBACK="message_bubble_alert",rt.FEEDBACK_CAIRO="message_bubble_alert_cairo",rt.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",rt.FILL_ARROW_SOLID_UP_16="arrow_solid_up",rt.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",rt.FLAG="flag",rt.FULL_HEART="heart",rt.GAME_CONSOLE_DPAD="game_console_dpad",rt.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",rt.GAMING_LOGO="gaming",rt.GAMING_LOGO_CAIRO="gaming_cairo",rt.GO_TO_PAGE=
"arrow_right",rt.GROUPS="people_group",rt.HAPPY="face_happy",rt.HEALTH_AND_SAFETY="shield_plus",rt.HELP="question_circle",rt.HELP_CAIRO="question_circle_cairo",rt.HELP_OUTLINE="question_circle",rt.HIDE="slash_circle_left",rt.IMAGE="image",rt.INFINITY_ICON="infinity",rt.INFO="info_circle",rt.INFO_OUTLINE="info_circle",rt.INSERT_CHART_OUTLINED="bar_graph_box_vertical",rt.INSERT_PHOTO="image",rt.KEEP="pin",rt.KEEP_OFF="pin_off",rt.KEYBOARD="keyboard",rt.KEYBOARD_ARROW_DOWN="chevron_down",rt.KEYBOARD_ARROW_UP=
"chevron_up",rt.KIDS_BLOCK="slash_circle_left",rt.LANGUAGE="globe",rt.LAUNCH="open_new",rt.LEARNING="lightbulb",rt.LEARNING_CAIRO="lightbulb_cairo",rt.LIBRARY_ADD=nP("library_add"),rt.LIBRARY_OUTLINE="library",rt.LIBRARY_REMOVE=nP(),rt.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",rt.LIKES_PLAYLIST="thumb_up",rt.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",rt.LIKE="thumb_up",rt.LIKE_SELECTED="thumb_up",rt.LIVE="radar_live",rt.LIVE_CAIRO="radar_live_cairo",rt.LIVE_UNLISTED="link",rt.LOCATION_ON="location_point",
rt.LOCATION_PIN="location_point",rt.LOOP="arrow_repeat",rt.LOOP_ACTIVE="arrow_repeat",rt.LOOP_ONE="arrow_repeat_1",rt.LOOP_ONE_ACTIVE="arrow_repeat_1",rt.MEH="face_meh",rt.MEMBERS_ONLY_MODE_OFF="message_bubble_left",rt.MESSAGE="message_bubble_left",rt.MICROPHONE_ON="mic",rt.MIX="youtube_mix",rt.MONETIZATION_ON="dollar_sign_circle",rt.MONEY_FILL="dollar_sign_container",rt.MONEY_FILL_JPY="yen_sign_container",rt.MONEY_HEART="dollar_sign_heart",rt.MORE_HORIZ="overflow_horizontal",rt.MORE_VERT="overflow_vertical",
rt.MUSIC="audio",rt.MUSIC_CAIRO="audio_cairo",rt.MUSIC_NOTE_SYMBOL="music",rt.MUSIC_SHUFFLE="arrow_shuffle",rt.MY_CHANNEL="person_circle",rt.MY_LOCATION="location_point",rt.NEWS_STORY="news",rt.NEXT="chevron_right",rt.NOTIFICATIONS="bell",rt.NOTIFICATIONS_ACTIVE="bell_on",rt.NOTIFICATIONS_CAIRO="bell_cairo",rt.NOTIFICATIONS_DONE_CHECKMARK="check",rt.NOTIFICATIONS_INBOX="bell",rt.NOTIFICATIONS_NONE="bell",rt.NOTIFICATIONS_OFF="bell_off",rt.NOT_INTERESTED="slash_circle_left",rt.OFFICIAL_ARTIST_BADGE=
"audio",rt.OFFLINE_CLOUD="cloud_off",rt.OFFLINE_DOWNLOAD="download",rt.OFFLINE_DOWNLOAD_CAIRO="download_cairo",rt.OFFLINE_PAUSE="pause",rt.OPEN_IN_NEW="open_new",rt.OUTLINE_ADJUST="adjust",rt.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",rt.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",rt.OUTLINE_BAG="bag",rt.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",rt.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",rt.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",rt.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
rt.PAID="dollar_sign",rt.PAUSE_OUTLINED="pause",rt.PAYMENT="credit_card",rt.PERSON_RADAR_FILLED="person_radar",rt.PHONE_DOWNLOAD="mobile_download",rt.PLAYABLES_LOGO="tic_tac_toe",rt.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",rt.PLAYLISTS="list_play_arrow",rt.PLAYLISTS_CAIRO="list_play_arrow_cairo",rt.PLAYLIST_ADD=nP("list_add"),rt.PLAYLIST_ADD_CHECK=nP("list_check"),rt.PLAY_ALL="play_arrow",rt.PLAY_CIRCLE="play_arrow_circle",rt.PLAY_OUTLINED="play_arrow_circle",rt.PRIVACY_INFO="shield",rt.PRIVACY_PRIVATE=
"lock",rt.PRIVACY_PUBLIC="earth",rt.PRIVACY_UNLISTED="link",rt.PROMOTE="megaphone",rt.PURCHASES="price_tag",rt.PURCHASE_SUPER_CHAT="super_chat",rt.PURCHASE_SUPER_STICKER="super_sticker",rt.QUESTION_ANSWER="message_bubble_question",rt.QUEUE_PLAY_LAST="list_queue_last",rt.QUEUE_PLAY_NEXT="list_play_arrow",rt.REMIX_FILLED="youtube_shorts_remix",rt.REMOVE="bar_circle",rt.REMOVE_CIRCLE="bar_circle",rt.REMOVE_CIRCLE_OUTLINE="bar_circle",rt.REMOVE_FROM_HISTORY="bar_circle",rt.REMOVE_FROM_PLAYLIST="bar_circle",
rt.REPLAY="arrow_circle",rt.REPORT_PROBLEM="alert_triangle",rt.SAD="face_sad",rt.SAVE_PLAYLIST=nP("library_add"),rt.SCHEDULE="clock",rt.SCHOOL="creator_academy",rt.SCREEN_FULLSCREEN="screen_full",rt.SEARCH_HISTORY="arrow_time",rt.SELL="price_tag",rt.SETTINGS="gear",rt.SETTINGS_CAIRO="gear_cairo",rt.SETTINGS_LIGHT="gear",rt.SETTINGS_MATERIAL="gear",rt.SHARE_ARROW="share",rt.SHIELD_WITH_AVATAR="person_shield",rt.SHOPPING_BAG="bag",rt.SHOPPING_BAG_CAIRO="bag_cairo",rt.SHOPPING_CART="cart",rt.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",rt.SHORTS_DISLIKE="youtube_shorts_thumb_down",rt.SHORTS_LIKE="youtube_shorts_thumb_up",rt.SHORTS_SHARE="youtube_shorts_share",rt.SHUFFLE="arrow_shuffle",rt.SLOW_MODE_OFF="message_bubble_left",rt.SOCIAL="people",rt.SORT="menu_sort",rt.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",rt.SPEED_1X="1x",rt.SPEED_1_POINT_2X="1_point_2x",rt.SPEED_1_POINT_5X="1_point_5x",rt.SPEED_1_POINT_8X="1_point_8x",rt.SPEED_2X="2x",rt.SPEED_POINT_2X="point_2x",rt.SPEED_POINT_8X="point_8x",
rt.SPONSORSHIP_STAR=_.p("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",rt.STAFF_PICK="spotlight",rt.START_DVR="add",rt.STAR_BORDER="star",rt.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",rt.STICKER_EMOTICON="face_happy",rt.STOP_DVR="stop",rt.SUBSCRIBE="youtube_logo_icon",rt.SUBSCRIBE_PLUS="add_cairo",rt.SUBSCRIPTION_MANAGER="gear",rt.SUPERVISOR_ACCOUNT="people",rt.SWAP_HORIZ="arrow_swap_horizontal",rt.SWITCH_ACCOUNTS="person_account",rt.TAB_ACCOUNT="person",rt.TAB_ACTIVITY=
"bell",rt.TAB_EXPLORE="compass",rt.TAB_HOME="home",rt.TAB_HOME_CAIRO="home_cairo",rt.TAB_INBOX="mail",rt.TAB_LIKED="thumb_up",rt.TAB_MUSIC_PREMIUM="youtube_music",rt.TAB_SHORTS="youtube_shorts",rt.TAB_SHORTS_CAIRO="youtube_shorts_cairo",rt.TAB_SUBSCRIPTIONS="subscriptions",rt.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",rt.TAB_TRENDING="fire",rt.TIMER="stopwatch",rt.TRENDING="fire",rt.TRENDING_CAIRO="fire_cairo",rt.TRENDING_UP="rating_up",rt.TROPHY="trophy",rt.TROPHY_CELEBRATIONS="fireworks",rt.TUNE=
"adjust",rt.UNBLOCK_USER="bar_circle",rt.UNLIMITED="youtube_logo_icon",rt.UNPLUGGED_LIVE_GUIDE="radar_live",rt.UNPLUGGED_SPORTS="eye_off",rt.UPLOADS="library",rt.UP_ARROW="arrow_up",rt.VERTICAL_ALIGN_BOTTOM="download",rt.VERY_HAPPY="face_very_happy",rt.VERY_SAD="face_very_sad",rt.VIDEOS="play_arrow_circle",rt.VIDEO_CALL="video_camera_add",rt.VIDEO_LIBRARY_WHITE="library",rt.VIDEO_YOUTUBE="youtube_logo_icon",rt.VIEW_LIST="list_view",rt.VIEW_LIST_CAIRO="list_view_cairo",rt.VISIBILITY="eye",rt.VISIBILITY_OFF=
"eye_off",rt.VOLUME_MUTE="volume_off",rt.VOLUME_UP="volume_on",rt.WALLPAPER="image",rt.WARNING="alert_triangle",rt.WATCH_HISTORY="arrow_time",rt.WATCH_HISTORY_CAIRO="arrow_time_cairo",rt.WATCH_LATER="clock",rt.WATCH_LATER_CAIRO="clock_cairo",rt.WATCH_RELATED_MIX="youtube_mix",rt.WHAT_TO_WATCH="home",rt.YOUTUBE_MUSIC_MONOCHROME="youtube_music",rt.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",rt.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",rt.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",rt.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",rt.YT_OUTLINE_MUSIC_24="music",rt);var Rk={},k8b=(Rk.ACCESS_TIME="clock",Rk.ACCOUNT_BOX="person2_rectangle",Rk.ACCOUNT_BOX_CAIRO="person_square_stack",Rk.ACCOUNT_CIRCLE="person_circle",Rk.ACCOUNT_CIRCLE_CAIRO="person_circle",Rk.ACCOUNT_UNLINKED="account_link",Rk.ADD_CIRCLE="add_circle",Rk.ADD_FRIEND="person_child",Rk.ADD_TO_LIBRARY="bookmark",Rk.ADD_TO_PLAYLIST="add",Rk.ADD_TO_QUEUE_TAIL="queue",Rk.ADD_TO_REMOTE_QUEUE="playlist_audio",Rk.ADD_TO_WATCH_LATER="clock",Rk.ADD_VIDEO_LINK="film_strip_add",Rk.ADMIN_PANEL_SETTINGS="gear",Rk.ALERT_WARN_RED=
"alert_triangle",Rk.ALIGN_LEFT="text_align_left",Rk.ARROWS_ALERT="arrow_split_alert",Rk.ARROW_BACK="arrow_left",Rk.ARROW_CIRCLE="arrow_counterclockwise",Rk.ARROW_CIRCLE_PLAY="replay",Rk.ARROW_CIRCLE_RIGHT="arrow_clockwise",Rk.ARROW_DIAGONAL="arrow_up_left",Rk.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Rk.ARROW_DROP_DOWN="chevron_down",Rk.ARROW_DROP_UP="chevron_up",Rk.ARROW_FORWARD="arrow_right",Rk.ARROW_PAUSE="pause_history",Rk.ARROW_UNDO="undo",Rk.ARTICLE="text_page",Rk.ARTICLE_ALERT="text_page_alert",
Rk.ARTICLE_CHECK="text_page_check",Rk.ARTICLE_CLARIFY="text_page_info",Rk.AUDIOTRACK="audio",Rk.AUDIO_BADGE="audio_badge",Rk.AUDIO_SURROUND="surround_sound",Rk.AVATAR_ANONYMOUS="person_circle",Rk.AVATAR_LOGGED_OUT="person_circle",Rk.BACK="arrow_left",Rk.BAR_CHART="chart_bar",Rk.BAR_CIRCLE="minus_circle",Rk.BAR_HORIZONTAL="minus",Rk.BLOCK="circle_slash",Rk.BLOCK_USER="circle_slash",Rk.BOOKMARK_BORDER="bookmark",Rk.BOX_OPEN_CHECK="quiz",Rk.BOX_PENCIL="square_pencil",Rk.BREAKING_NEWS_ALT_1="text_page_alert",
Rk.BROADCAST="podcast",Rk.BROADCAST_CAIRO="podcast",Rk.BUG_REPORT="bug",Rk.CAMERA_ALT="camera",Rk.CAMPAIGN="megaphone",Rk.CANCEL="x_circle",Rk.CAPTIONS="closed_captions",Rk.CAST_OUTLINE="chromecast",Rk.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Rk.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Rk.CHAT="text_bubble",Rk.CHAT_BUBBLE="bubble",Rk.CHECK_CIRCLE_OUTLINE="check_circle",Rk.CHECK_CIRCLE_THICK="check_circle",Rk.CHECK_DOUBLE="check_done",Rk.CHECK_DOUBLE_OFF="check_done_slash",Rk.CHEVRON_RIGHT_CAIRO=
"chevron_right",Rk.CIRCLES_OVERLAP="account_link",Rk.CLAPPERBOARD_CAIRO="clapperboard",Rk.CLARIFY="text_page_info",Rk.CLOCK_ARROWS="clock_split",Rk.CLOCK_ARROWS_ALERT="clock_split_alert",Rk.CLOSED_CAPTION="closed_captions",Rk.CLOSED_CAPTION_SELECTED="closed_captions",Rk.CLOSE="x",Rk.CLOUD_UPLOAD="cloud_arrow_up",Rk.COLLAPSE="chevron_up",Rk.COLLAPSE_CAIRO="chevron_up",Rk.COLLECTION="square3d_stack",Rk.COLOR_LENS="paint_palette",Rk.COMMENT="text_bubble",Rk.CONSENT_SHIELD="person_shield",Rk.CONTENT_CUT=
"scissors",Rk.CONTENT_CUT_CAIRO="scissors",Rk.COURSE="graduation_cap",Rk.COURSE_CAIRO="graduation_cap",Rk.CREATION_LIVE="live",Rk.CREATION_POST="square_pencil",Rk.CREATION_UPLOAD="video",Rk.CREATION_UPLOAD_RED="upload",Rk.CREATOR_ACADEMY="graduation_cap",Rk.CREATOR_STUDIO="youtube_studio",Rk.DARK_THEME="theme",Rk.DELETE="trash_can",Rk.DELETE_SWEEP="trash_can",Rk.DESKTOP="laptop",Rk.DISLIKE="thumb_down",Rk.DISLIKE_SELECTED="thumb_down",Rk.DISMISSAL="x",Rk.DOGFOOD="pawprint",Rk.DOLLAR_SIGN="dollar_sign_circle",
Rk.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Rk.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Rk.DOWN_ARROW="arrow_down",Rk.DO_NOT_DISTURB="circle_slash",Rk.DRAFT="document",Rk.EARTH="globe",Rk.EDIT="pencil",Rk.EMOJI="face_very_happy",Rk.EMOJI_FLAGS="flag",Rk.EMOJI_OBJECTS="lightbulb",Rk.EMOJI_PEOPLE="face_very_happy",Rk.EMOJI_RECENT="clock",Rk.EMPTY_HEART="heart",Rk.EMPTY_LIKE="thumb_up",Rk.ERROR_BLACK="alert_circle",Rk.ERROR_OUTLINE="alert_circle",Rk.EXIT_APP="arrow_in",Rk.EXIT_TO_APP="arrow_in",
Rk.EXPAND="chevron_down",Rk.EXPAND_ALL="chevron_expand",Rk.EXPAND_CAIRO="chevron_down",Rk.EXPAND_LESS="chevron_up",Rk.EXPAND_MORE="chevron_down",Rk.EXPLORE="compass",Rk.EXPLORE_DESTINATION="compass",Rk.EXTERNAL_LINK="arrow_up_right",Rk.EYE_OFF="eye_slash",Rk.FAB_UPLOAD="upload",Rk.FACE_HAPPY_OUTLINE="face_happy",Rk.FACE_MEH="face_neutral",Rk.FACT_CHECK="text_page_check",Rk.FASHION_LOGO="fashion",Rk.FASHION_LOGO_CAIRO="fashion",Rk.FEEDBACK="alert_bubble",Rk.FEEDBACK_CAIRO="alert_bubble",Rk.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Rk.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Rk.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Rk.FLAG_CAIRO="flag",Rk.FLASH_OFF="flash_slash",Rk.FLASH_ON="flash",Rk.FULL_HEART="heart",Rk.GAMING_LOGO="gaming",Rk.GAMING_LOGO_CAIRO="gaming",Rk.GO_TO_PAGE="arrow_right",Rk.GROUPS="person3",Rk.HAND_SWIPE_LEFT="gesture_swipe_left",Rk.HAND_SWIPE_RIGHT="gesture_swipe_right",Rk.HAPPY="face_happy",Rk.HEALTH_AND_SAFETY="shield_health",Rk.HEART_BOX="heart_cube",Rk.HELP="help_circle",Rk.HELP_CAIRO=
"help_circle",Rk.HELP_OUTLINE="help_circle",Rk.HIDE="circle_slash",Rk.INCOGNITO_CAIRO="incognito",Rk.INFINITY_ICON="infinity",Rk.INFO="info_circle",Rk.INFO_OUTLINE="info_circle",Rk.INSERT_PHOTO="image",Rk.KEEP="pin",Rk.KEEP_OFF="pin_slash",Rk.KEYBOARD="keyboard",Rk.KEYBOARD_ARROW_DOWN="chevron_down",Rk.KEYBOARD_ARROW_UP="chevron_up",Rk.KIDS_BLOCK="circle_slash",Rk.LANGUAGE="globe",Rk.LAUNCH="arrow_up_right",Rk.LEARNING="lightbulb",Rk.LEARNING_CAIRO="lightbulb",Rk.LIBRARY_ADD="bookmark",Rk.LIBRARY_IMAGE=
"image_stack",Rk.LIBRARY_MUSIC="audio_square_stack",Rk.LIBRARY_OUTLINE="play_square_stack",Rk.LIBRARY_REMOVE="bookmark",Rk.LIKES_PLAYLIST="thumb_up",Rk.LIKES_PLAYLIST_CAIRO="thumb_up",Rk.LIKE="thumb_up",Rk.LIKE_SELECTED="thumb_up",Rk.LIST_QUEUE="queue",Rk.LIVE_CAIRO="live",Rk.LIVE_UNLISTED="link",Rk.LOCATION_ON="location_pin",Rk.LOCATION_PIN="location_pin",Rk.LOCATION_POINT="location_pin",Rk.LOOP="repeat",Rk.LOOP_ACTIVE="repeat",Rk.LOOP_ONE="repeat1",Rk.LOOP_ONE_ACTIVE="repeat1",Rk.MEET="google_meet",
Rk.MEH="face_neutral",Rk.MEMBERSHIPS="memberships",Rk.MEMBERS_ONLY_MODE_OFF="text_bubble",Rk.MENU_FILTER="filter",Rk.MESSAGE="text_bubble",Rk.MESSAGE_BUBBLE_GEAR="bubble_gear",Rk.MESSAGE_BUBBLE_LEFT="text_bubble",Rk.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Rk.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Rk.MESSAGE_BUBBLE_QUESTION="help_bubble",Rk.MICROPHONE_ON="mic",Rk.MONETIZATION_ON="dollar_sign_circle",Rk.MONEY_FILL="dollar_sign_rectangle",Rk.MONEY_FILL_JPY="yen_sign_rectangle",Rk.MONEY_HAND="dollar_sign_circle_hand",
Rk.MONEY_HEART="dollar_sign_heart",Rk.MOON_Z="sleep_timer",Rk.MORE_HORIZ="overflow_horizontal",Rk.MORE_VERT="overflow_vertical",Rk.MUSIC="audio",Rk.MUSIC_CAIRO="audio",Rk.MUSIC_NOTE_SYMBOL="audio",Rk.MUSIC_SCISSORS="audio_scissors",Rk.MUSIC_SHUFFLE="shuffle",Rk.MY_CHANNEL="person_circle",Rk.MY_LOCATION="location_pin",Rk.MY_VIDEOS="video",Rk.MY_VIDEOS_CAIRO="video",Rk.NEWS_CAIRO="news",Rk.NEWS_STORY="news",Rk.NEXT="chevron_right",Rk.NOTE_ADD="bubble_pencil",Rk.NOTIFICATIONS="bell",Rk.NOTIFICATIONS_ACTIVE=
"bell_waves",Rk.NOTIFICATIONS_CAIRO="bell",Rk.NOTIFICATIONS_DONE_CHECKMARK="check",Rk.NOTIFICATIONS_INBOX="bell",Rk.NOTIFICATIONS_NONE="bell",Rk.NOTIFICATIONS_OFF="bell_slash",Rk.NOT_INTERESTED="circle_slash",Rk.OFFICIAL_ARTIST_BADGE="audio",Rk.OFFLINE_CLOUD="cloud_slash",Rk.OFFLINE_DOWNLOAD="download",Rk.OFFLINE_DOWNLOAD_CAIRO="download",Rk.OFFLINE_PAUSE="pause",Rk.OPEN_IN_NEW="arrow_up_right",Rk.OUTLINE_ADJUST="adjust",Rk.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Rk.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",Rk.OUTLINE_BAG="bag",Rk.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Rk.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Rk.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Rk.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Rk.PAID="dollar_sign_circle",Rk.PAUSE_OUTLINED="pause",Rk.PAYMENT="credit_card",Rk.PEOPLE="person_child",Rk.PEOPLE_2="person2_rectangle",Rk.PEOPLE_GROUP="person3",Rk.PEOPLE_NOTE="bubble_asterisk",Rk.PERSON_2="person2",Rk.PERSON_ACCOUNT="person_square_stack",Rk.PERSON_MINUS=
"person_x",Rk.PERSON_MUSIC="person_audio",Rk.PERSON_RADAR="person_waves",Rk.PERSON_RADAR_FILLED="person_waves",Rk.PERSON_SETTING="person_gear",Rk.PHONE="phone",Rk.PHONE_DOWNLOAD="mobile_arrow_down",Rk.PICTURE_IN_PICTURE="picture_in_picture",Rk.PLAYABLES_LOGO="playables",Rk.PLAYABLES_LOGO_CAIRO="playables",Rk.PLAYLISTS="playlist",Rk.PLAYLISTS_CAIRO="playlist",Rk.PLAYLIST_ADD="bookmark",Rk.PLAYLIST_ADD_CHECK="bookmark",Rk.PLAY_ALL="play",Rk.PLAY_ARROW="play",Rk.PLAY_ARROW_CIRCLE="play_circle",Rk.PLAY_ARROW_HALF_CIRCLE=
"play_circle_half_dashed",Rk.PLAY_CIRCLE="play_circle",Rk.PLAY_OUTLINED="play_circle",Rk.PODCAST_ADD="podcast_add",Rk.PODCAST_CHECK="podcast_check",Rk.PRIVACY_PRIVATE="lock",Rk.PRIVACY_PUBLIC="globe",Rk.PRIVACY_UNLISTED="link",Rk.PROMOTE="megaphone",Rk.PURCHASES="price_tag",Rk.PURCHASE_SUPER_CHAT="super_chat",Rk.PURCHASE_SUPER_STICKER="super_sticker",Rk.QUESTION_ANSWER="help_bubble",Rk.QUESTION_CIRCLE="help_circle",Rk.QUEUE_PLAY_LAST="queue_last",Rk.QUOTATION_MARK="quote",Rk.RADAR_LIVE="live",Rk.REMOVE=
"minus_circle",Rk.REMOVE_CIRCLE="minus_circle",Rk.REMOVE_CIRCLE_OUTLINE="minus_circle",Rk.REMOVE_FROM_HISTORY="minus_circle",Rk.REMOVE_FROM_PLAYLIST="minus_circle",Rk.REPLAY="arrow_counterclockwise",Rk.REPLAY_ARROW="replay",Rk.REPORT_PROBLEM="alert_triangle",Rk.RSS_OFF="rss_slash",Rk.SAD="face_sad",Rk.SAVE_PLAYLIST="bookmark",Rk.SCHEDULE="clock",Rk.SCHOOL="graduation_cap",Rk.SCREEN_DEFAULT="player_default",Rk.SCREEN_FULLSCREEN="player_full_enter",Rk.SCREEN_LIGHT="ambient_mode",Rk.SCREEN_SWITCH="player_switch",
Rk.SEARCH_CAIRO="search",Rk.SEARCH_HISTORY="history",Rk.SELL="price_tag",Rk.SETTINGS="gear",Rk.SETTINGS_CAIRO="gear",Rk.SETTINGS_LIGHT="gear",Rk.SETTINGS_MATERIAL="gear",Rk.SETTINGS_REMOTE="remote_waves",Rk.SHARE="share",Rk.SHARE_ARROW="share",Rk.SHARE_CAIRO="share",Rk.SHIELD="shield_x",Rk.SHIELD_OFF="shield_slash",Rk.SHIELD_WITH_AVATAR="person_shield",Rk.SHOPPING_BAG="bag",Rk.SHOPPING_BAG_CAIRO="bag",Rk.SHOPPING_CART="cart",Rk.SHORTS_COMMENT="text_bubble",Rk.SHORTS_DISLIKE="thumb_down",Rk.SHORTS_LIKE=
"thumb_up",Rk.SHORTS_SHARE="share",Rk.SLASH_CIRCLE_RIGHT="circle_slash",Rk.SLOW_MODE_OFF="text_bubble",Rk.SOCIAL="person_child",Rk.SPARKLE="sparkles",Rk.SPARK_IMAGE="image_spark",Rk.SPARK_RADAR="spark_waves",Rk.SPARK_VIDEO="video_spark",Rk.SPEAKER_GROUP="speaker_stack",Rk.SPEAKER_OFF="speaker_slash",Rk.SPEED_1X="n1x",Rk.SPEED_1_POINT_2X="n1point2x",Rk.SPEED_1_POINT_5X="n1point5x",Rk.SPEED_1_POINT_8X="n1point8x",Rk.SPEED_2X="n2x",Rk.SPONSORSHIP_STAR="memberships",Rk.SPORTS="basketball",Rk.SPOTLIGHT=
"spotlight",Rk.STAFF_PICK="spotlight",Rk.START_DVR="add",Rk.STAR_BORDER="star",Rk.STAR_HALF="star_half_filled",Rk.STAR_SHOOTING="hype",Rk.STICKER="sticker",Rk.STICKER_EMOTICON="face_happy",Rk.STOP_DVR="stop",Rk.SUBSCRIBE="youtube",Rk.SUBSCRIBE_PLUS="add",Rk.SUBSCRIPTION_MANAGER="gear",Rk.SUPERSTAR="super_star",Rk.SUPERVISOR_ACCOUNT="person_child",Rk.SWAP_HORIZ="arrow_swap_horizontal",Rk.SWITCH_ACCOUNTS="person_square_stack",Rk.TAB_ACCOUNT="person",Rk.TAB_ACTIVITY="bell",Rk.TAB_EXPLORE="compass",Rk.TAB_HOME=
"home",Rk.TAB_HOME_CAIRO="home",Rk.TAB_INBOX="mail",Rk.TAB_LIKED="thumb_up",Rk.TAB_MUSIC_PREMIUM="youtube_music",Rk.TAB_SHORTS="shorts",Rk.TAB_SHORTS_CAIRO="shorts",Rk.TAB_SUBSCRIPTIONS="subscriptions",Rk.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Rk.TAB_TRENDING="trending",Rk.TARGET="target",Rk.TARGET_ADD="target_add",Rk.TEMPLATE_ADD="template_add",Rk.TEXT="font",Rk.TIMER="stopwatch",Rk.TRENDING_CAIRO="trending",Rk.TRENDING_UP="arrow_trend_up",Rk.TROPHY_CAIRO="trophy",Rk.TROPHY_CELEBRATIONS="fireworks",
Rk.TROPHY_STAR="star_trophy",Rk.TUNE="adjust",Rk.UNBLOCK_USER="minus_circle",Rk.UNLIMITED="youtube",Rk.UNPLUGGED_LIVE_GUIDE="live",Rk.UNPLUGGED_SPORTS="eye_slash",Rk.UPLOADS="play_square_stack",Rk.UP_ARROW="arrow_up",Rk.VERTICAL_ALIGN_BOTTOM="download",Rk.VERY_HAPPY="face_very_happy",Rk.VERY_SAD="face_very_sad",Rk.VIDEOS="play_circle",Rk.VIDEO_CALL="video_camera_add",Rk.VIDEO_LIBRARY_WHITE="play_square_stack",Rk.VIDEO_QUALITY_4K="n4k",Rk.VIDEO_QUALITY_8K="n8k",Rk.VIDEO_YOUTUBE="youtube",Rk.VIEW_LIST_CAIRO=
"view_list",Rk.VIEW_MODULE="view_column3_row2",Rk.VISIBILITY="eye",Rk.VISIBILITY_OFF="eye_slash",Rk.VOLUME_DOWN="volume_min",Rk.VOLUME_MUTE="volume_mute",Rk.VOLUME_OFF="volume_mute",Rk.VOLUME_STABLE="stable_volume",Rk.VOLUME_UP="volume_max",Rk.WALLPAPER="image",Rk.WARNING="alert_triangle",Rk.WATCH_HISTORY="history",Rk.WATCH_HISTORY_CAIRO="history",Rk.WATCH_LATER="clock",Rk.WATCH_LATER_CAIRO="clock",Rk.WATCH_RELATED_MIX="mix",Rk.WHAT_TO_WATCH="home",Rk.YOUTUBE_LINKED_TV="tv_mobile",Rk.YOUTUBE_MUSIC_MONOCHROME=
"youtube_music",Rk.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Rk.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Rk.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Rk.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Rk.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Rk.YOUTUBE_SHORTS_OUTLINE_24="shorts",Rk);var Uul={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],
arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,
1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,
6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,
1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,
2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,
1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var XDb={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var f_p={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT"},FC=function(W){this.iconUrlProvider=W};
FC.prototype.resolveIcon=function(W,P){var x=f_p[W.iconName.toUpperCase()];x&&(W.iconName=x);var I=W.iconName;I=I.replace(/-/g,"_");W=Object.assign({},W,{iconName:this.mapIconTypeToStandardName(I,!!x)||I.toLowerCase()});if(_.p("enable_web_delhi_icons")||x){var O;return e7R(XDb,W,((O=this.iconUrlProvider)==null?void 0:O.getYtStandardUrl)||b1R,P)}var B;return e7R(Uul,W,((B=this.iconUrlProvider)==null?void 0:B.getYtStandardUrl)||aQR,P)};
FC.prototype.mapIconTypeToStandardName=function(W,P){return _.p("enable_web_delhi_icons")||P?k8b[W.toUpperCase()]:buZ[W.toUpperCase()]};
FC[qC]=[_.Rl(eBM)];var NXl=function(W){this.urlProvider=this.iconUrlProvider=W};
_.A(NXl,FC);
NXl.prototype.resolveIcon=function(W,P){W.iconName==="youtube_logo"&&(W.iconName="yt-logo-updated");if(W.iconName==="youtube_premium_logo"||W.iconName==="youtube_red_logo")W.iconName="yt-logo-red-updated";var x=Object.assign({},W);W.iconName==="menu"&&(_.p("enable_web_delhi_icons")||(x.iconName="bars_3"),x.iconStyle="youtube_outline");W.iconName==="youtube_music"&&(x.iconStyle="youtube_fill");W.iconName==="mail"&&W.iconSetName==="socialNetworksRound"&&(x.iconName="email");W.iconName==="more"&&(x.iconName=
"overflow_horizontal");W.iconName==="fullscreen"&&(x.iconName="screen_full");if(W.iconName==="play_all"||W.iconName==="play_arrow")x.iconStyle="youtube_fill";W.iconName==="premium_standalone"&&(x.iconName="premium_standalone_cairo");_.p("enable_connect_icon_update_web")&&W.iconName==="account_linked"&&(x.iconName="circles_overlap_check",x.iconStyle="youtube_fill");_.p("enable_connect_icon_update_web")&&W.iconName==="account_unlinked"&&(x.iconName="circles_overlap",x.iconStyle="youtube_outline");W=
Object.assign({},x,{iconName:(FC.prototype.mapIconTypeToStandardName.call(this,x.iconName)||x.iconName).toLowerCase()});var I;return(W=e7R(hBP,W,((I=this.urlProvider)==null?void 0:I.getUrl)||k9m,P))?W:FC.prototype.resolveIcon.call(this,x,P)};
NXl[qC]=[_.Rl(eBM)];_.l_m=1;var qN=function(){};
_.A(qN,zi);qN.prototype.resolveCommand=function(W){var P,x;return _.y(function(I){P=_.Q(W,S1d);if(!P)return I.return();x=Number(P.enableDelayedPacfLoggingTvMs);if(isNaN(x)){var O=LO();tFp(O,P,0)}else tFp(LO(),P,x);_.Kl(I)})};_.LZ=function(){};
_.A(_.LZ,zi);
_.LZ.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d;return _.y(function(v){I=_.Q(W,u0M);B=(O=P.form)==null?void 0:O.element;K=(Y=B)==null?void 0:Y.closest("ytd-enforcement-message-view-model");if(!I||!K)return v.return();x.allowAdsAction||(Z=I.fundingChoiceInstructionPageUrl,x.allowAdsAction=new XnW(window,_.Ez(Z)));var m=x.allowAdsAction;m.wallElement=K;m.allowAdsPopup.style.setProperty("display","flex","important");var t=m.scrollManager;t.originalBodyOverflow=t.JSC$7901_domHelper.JSC$7231_document_.body.style.overflow;t.JSC$7901_domHelper.JSC$7231_document_.body.style.overflow=
"hidden";m.wallElement.style.setProperty("display","none","important");PZl(m.accessibilityManager,m.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((d=x.allowAdsAction.allowAdsPopup)&&d instanceof HTMLElement)for(m=_.n(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),t=m.next();!t.done;t=m.next()){var C=_.n(t.value);t=C.next().value;C=C.next().value;d.style.setProperty(t,C)}_.Kl(v)})};
_.LZ.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Ws=function(){};
_.A(Ws,zi);Ws.prototype.resolveCommand=function(W){var P;return _.y(function(x){P=_.Q(W,Q9A);if(!P)return x.return();wRx(W);_.Kl(x)})};var Ps=function(W){this.JSC$14962_commandHandler=W};
_.A(Ps,zi);
Ps.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1){x=_.Q(W,i0A);if((I=x)==null||!I.text||!navigator.clipboard)return v.return();_.OT(v,2);return _.S(v,navigator.clipboard.writeText(x.text),4)}if(v.nextAddress!=2){if(!x.successActions||x.successActions.length===0)return v.return();O=_.n(x.successActions);for(B=O.next();!B.done;B=O.next())Y=B.value,P.JSC$14962_commandHandler.resolveCommand(Y);return _.ci(v,0)}_.yn(v);if(!x.failureActions||x.failureActions.length===
0)return v.return();K=_.n(x.failureActions);for(Z=K.next();!Z.done;Z=K.next())d=Z.value,P.JSC$14962_commandHandler.resolveCommand(d);_.Kl(v)})};
Ps[qC]=[_.qR];var x2=function(W){this.JSC$14966_commandHandler=W};
_.A(x2,zi);
x2.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t;return _.y(function(C){switch(C.nextAddress){case 1:I=_.Q(W,D33);if(!I)return C.return();_.OT(C,2);if(!I.imageBytes&&!I.imageUrl)throw Error("wi");if(!I.imageUrl){if(I.imageBytes){B=I.imageBytes;Y=B.replace(/-/g,"+").replace(/_/g,"/");var z=XhR(Y);O=_.V4(z)}C.jumpTo(4);break}return _.S(C,fetch(I.imageUrl),5);case 5:return K=C.yieldResult,_.S(C,K.blob(),6);case 6:Z=C.yieldResult,O=_.V4(Z);case 4:m=(d=P)==null?void 0:(v=d.form)==
null?void 0:v.element;t=document.createElement("a");AH(t,O);m.appendChild(t);t.download="";t.click();m.removeChild(t);URL.revokeObjectURL(_.u5(O));I.successCommand&&x.JSC$14966_commandHandler.resolveCommand(I.successCommand);_.ci(C,0);break;case 2:_.yn(C),I.errorCommand&&x.JSC$14966_commandHandler.resolveCommand(I.errorCommand),_.Kl(C)}})};
x2[qC]=[_.qR];var I0=function(W){this.store=W};
_.A(I0,zi);I0.prototype.resolveCommand=function(W){var P=this,x,I,O;return _.y(function(B){I=(x=_.Q(W,_.yWd))==null?void 0:x.entityBatchUpdate;if(!I)return B.jumpTo(0);O=Object.assign({},I,{mutations:[].concat(_.ju(I.mutations||[]))});return _.S(B,_.KR(O,P.store),0)})};var TXd=function(W){this.JSC$14973_commandHandler=W;this.feedbackDialogMap=new Map};
TXd.prototype.openDialog=function(W,P){(W=this.feedbackDialogMap.get(W))&&this.JSC$14973_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:W}},P)};
TXd[qC]=[_.qR];var Ou=new _.Lb("FEEDBACK_CONTROLLER_TOKEN");var Jk=new _.Lb("APP_STORE_TOKEN");var Bs=function(W,P){this.store=W;this.controller=P};
_.A(Bs,zi);Bs.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T;return _.y(function(N){if(N.nextAddress==1){I=_.Q(W,_.hM);if(B=(O=I)==null?void 0:O.contentId)for(K=_.n(((Y=I)==null?void 0:Y.actions)||[]),Z=K.next();!Z.done;Z=K.next())d=Z.value,rKk(x,d,B);t=(v=P)==null?void 0:(m=v.form)==null?void 0:m.element;return _.S(N,_.Iu(t,[W]).catch(function(){}),2)}C=N.yieldResult;
((z=C)==null?0:(D=z.data)==null?0:(w=D.feedbackResponses)==null?0:w.length)&&(k=(a=C.data.feedbackResponses[0])==null?void 0:a.followUpDialog)&&B&&(T=x.controller)!=null&&T.feedbackDialogMap.set(B,k);_.Kl(N)})};
var rKk=function(W,P,x){var I=_.Q(P,_.B7);if(I){I=_.n(I.commands||[]);for(var O=I.next();!O.done;O=I.next())rKk(W,O.value,x)}_.Q(P,_.tc)&&W.store.dispatch(_.mG("commandEntity",EEd(x),{key:x,command:P}));_.Q(P,ZWP)&&W.store.dispatch(_.mG("commandEntity",EEd(x),{key:x,command:P}))};
Bs[qC]=[Jk,Ou];var nn=function(W){this.controller=W};
_.A(nn,zi);nn.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y;return _.y(function(K){I=_.Q(W,_.eo);B=(O=I)==null?void 0:O.targetId;if(((Y=I)==null?void 0:Y.signal)!=="TELL_US_WHY"||!B)return K.return();x.controller.openDialog(B,P);_.Kl(K)})};
nn[qC]=[Ou];var Y2=function(W){this.store=W};
_.A(Y2,zi);Y2.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d;return _.y(function(v){I=_.Q(W,P2m);B=(O=I)==null?void 0:O.contentId;Z=(Y=P)==null?void 0:(K=Y.form)==null?void 0:K.element;d=_.Iu(Z,[W]);B&&x.undo(B);return _.S(v,d,0)})};
Y2.prototype.undo=function(W){this.store.dispatch(_.mG("commandEntity",EEd(W),{key:W,command:void 0}))};
Y2[qC]=[Jk];var yP=function(W){this.JSC$14988_commandHandler=W};
_.A(yP,zi);yP.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d;return _.y(function(v){x=_.Q(W,AWl);I=x.flowStateKey;O=x.validationFailureCommand;B=x.submitValidFormCommand;Y=ed(_.BX,[I||""]);K=_.Q(Y,GQA);((Z=K)==null?0:Z.isValid)&&B&&P.JSC$14988_commandHandler.resolveCommand(B);((d=K)==null?0:d.isValid)||!O||P.JSC$14988_commandHandler.resolveCommand(O);_.Kl(v)})};
yP[qC]=[_.qR];var Kn=function(W){this.innertubeTransportService=W};
_.A(Kn,zi);Kn.prototype.resolveCommand=function(W,P){var x=this,I;return _.y(function(O){return _.S(O,_.cF(x.innertubeTransportService,W,(I=P)==null?void 0:I.form).then(function(B){var Y,K;P==null||(Y=P.commandController)==null||(K=Y.onSuccess)==null||K.call(Y,W,B)},function(B){var Y,K;
P==null||(Y=P.commandController)==null||(K=Y.onServerError)==null||K.call(Y,W,B)}),0)})};
Kn[qC]=[_.m7];var Zk=function(){};
_.A(Zk,zi);Zk.prototype.resolveCommand=function(W){var P,x,I,O;return _.y(function(B){if(P=_.Q(W,_.$G3)){if(x=P.gtmId)I=_.$$("GL",""),_.db(x,I);(O=P.gtmData)&&_.s3(O)}_.Kl(B)})};var o0=function(W,P){this.innertubeTransportService=W;this.JSC$14999_actionRouter=P};
_.A(o0,zi);o0.prototype.resolveCommand=function(W){var P=this,x,I;return _.y(function(O){x=_.Q(W,hwc);if(!x)return O.return();I=x.command;if(!I)return O.return();P.JSC$14999_actionRouter.triggerAction("yt-insert-rich-section-action",x);return _.S(O,_.cF(P.innertubeTransportService,I,{disableCache:!0}),0)})};
o0[qC]=[_.m7,r6];NF8.bind(null,Gi);var iuA=NF8.bind(null,cDc);TFS.bind(null,Gi);var RBA=TFS.bind(null,cDc);i1m.bind(null,Gi);var Fvp=i1m.bind(null,cDc);var Sw=function(){};
_.A(Sw,zi);
Sw.prototype.resolveCommand=function(W){var P,x,I,O,B,Y,K,Z,d,v;return _.y(function(m){P=_.Q(W,KeW);if(!P)return m.return();I=((x=P.operations)==null?void 0:x.operations)||[];O=_.n(I);for(B=O.next();!B.done;B=O.next())if(Y=B.value,Y.insertItemSectionContent){var t=Y.insertItemSectionContent,C=t.contents||[];t.insertByPositionInSection?iuA(t.insertByPositionInSection.sectionTargetId,C,t.insertByPositionInSection.position):t.insertByRelativePositionInSection&&t.insertByRelativePositionInSection.sectionTargetId&&t.insertByRelativePositionInSection.itemTargetId&&
RBA(t.insertByRelativePositionInSection.sectionTargetId,t.insertByRelativePositionInSection.itemTargetId,C,t.insertByRelativePositionInSection.relativePosition)}else Y.replaceSection?(t=Y.replaceSection,C={},t.replaceByTargetId?C=t.replaceByTargetId:t.replaceByGroupId&&(C={targetId:t.replaceByGroupId.groupId,newContent:t.replaceByGroupId.newContent,undoKey:""}),C.newContent&&kxl(C.targetId,{continuationItems:[C.newContent]})):Y.removeItem?(t=Y.removeItem,t.removeByTargetId&&t.sectionTargetId&&Fvp(t.sectionTargetId,
t.removeByTargetId.targetIds||[])):Y.removeSection&&(Y.removeSection.removeByTargetId?(K=void 0,qXP(((K=Y.removeSection)==null?void 0:K.removeByTargetId.targetIds)||[])):Y.removeSection.removeByGroupId&&(Z=void 0,qXP(((Z=Y.removeSection)==null?void 0:Z.removeByGroupId.groupIds)||[])));v=((d=P.operations)==null?void 0:d.scrollConfig)||{};Lvd(v);_.Kl(m)})};
var qXP=function(W){W=_.n(W);for(var P=W.next();!P.done;P=W.next())kxl(P.value,{continuationItems:[]})},Lvd=function(W){if(W.scrollToItem){var P=W.scrollToItem.item||{},x=P.itemTargetId;
P=P.sectionTargetId;if(x&&P){var I=document.querySelector("[data-target-id="+P+"]"),O=I==null?void 0:I.querySelector("[data-target-id="+x+"]");I&&O&&setTimeout(function(){var B=O.offsetTop-I.offsetTop,Y;if(((Y=W.scrollToItem)==null?void 0:Y.scrollPosition)==="SCROLL_POSITION_CENTER")B-=I.offsetHeight/2,B+=O.offsetHeight/2;else{var K;((K=W.scrollToItem)==null?void 0:K.scrollPosition)==="SCROLL_POSITION_END"&&(B-=I.offsetHeight,B+=O.offsetHeight)}I.scroll({top:B,behavior:"smooth"})},100)}}};var uo=new _.Lb("CLIENT_NAME_TOKEN");var WLk=new _.Lb("DEFAULT_STORE_EXPIRATION_TOKEN");var mZR=new _.Lb("CLIENT_LOCATION_SERVICE_TOKEN");var d8=function(W,P,x){this.clientName=W||_.$$("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=P||_.$3.getInstance();this.JSC$15027_commandHandler=x||_.Ix.instance};
_.A(d8,zi);d8.prototype.resolveCommand=function(W){var P=this,x,I;return _.y(function(O){I=(x=_.Q(W,mCb))==null?void 0:x.onComplete;P.clientLocationService.clearLocationPlayabilityToken(P.clientName);I&&P.JSC$15027_commandHandler.resolveCommand(I);_.Kl(O)})};
d8[qC]=[uo,mZR,_.qR];var su=function(W){this.innertubeTransportService=W};
_.A(su,zi);su.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y;return _.y(function(K){B=(I=P)==null?void 0:(O=I.form)==null?void 0:O.element;return _.S(K,_.cF(x.innertubeTransportService,W,(Y=P)==null?void 0:Y.form).then(function(Z){bnW(B,new CustomEvent("yt-service-request-completed"),{data:Z},_.$$("openPopupConfig"))}),0)})};
su[qC]=[_.m7];var vs=function(){};
_.A(vs,zi);vs.prototype.resolveCommand=function(W){var P,x;return _.y(function(I){P=_.Q(W,M3p);x=document.querySelector("mini-app-container-view-model");if(!P||!x)return I.return();P.isPlaying?x.dispatchEvent(new Event("play")):x.dispatchEvent(new Event("pause"));_.Kl(I)})};var mE=function(){};
_.A(mE,zi);mE.prototype.resolveCommand=function(W){var P,x,I,O,B,Y,K;return _.y(function(Z){P=_.Q(W,zlk);if((x=P)==null||!x.paramKeys)return Z.return();I=P.paramKeys;O=_.ea(window.location.href);B=_.n(I);for(Y=B.next();!Y.done;Y=B.next())K=Y.value,O.JSC$7933_queryData_.remove(K);window.history.replaceState(window.history.state,document.title,O.toString());_.Kl(Z)})};var Pi3=function(){this.dropdownMap=new Map};_.xJA=new _.Lb("DROPDOWN_CONTROLLER_TOKEN");var VP=function(W){this.controller=W};
_.A(VP,zi);VP.prototype.resolveCommand=function(W){var P=this,x,I,O,B;return _.y(function(Y){x=_.Q(W,Bxz);if(!x)return Y.return();I=x;O=I.dropdownId;B=I.selectedOptionIndex;if(O===void 0||B===void 0)return Y.return();var K=P.controller.dropdownMap.get(O);K&&K(B);_.Kl(Y)})};
VP[qC]=[_.xJA];var tk=function(W){this.controller=W};
_.A(tk,zi);tk.prototype.resolveCommand=function(W){var P=this,x;return _.y(function(I){return(x=_.Q(W,zs3))?_.S(I,P.controller.closeDialog(),0):I.return()})};
tk[qC]=[_.tf];var pn=function(W){this.controller=W};
_.A(pn,zi);pn.prototype.resolveCommand=function(W){var P=this,x,I;return _.y(function(O){x=_.Q(W,nUc);if(!x)return O.return();var B,Y=x.panelIdentifier||((B=x.identifier)==null?void 0:B.tag);if(!Y)throw Error("xi");return(I=Y)?_.S(O,P.controller.hidePanel(I),0):O.jumpTo(0)})};
pn[qC]=[_.m3];var jw=function(W,P){this.innertubeTransportService=W;this.controller=P};
_.A(jw,zi);jw.prototype.resolveCommand=function(W){var P=this,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return x=_.Q(W,Yjm),(I=x)!=null&&I.panelId?_.S(Y,P.controller.getReloadContinuation(x.panelId),2):Y.return();if(Y.nextAddress!=3)return(O=Y.yieldResult)?_.S(Y,_.cF(P.innertubeTransportService,W,{continuation:O}),3):Y.return();B=Y.yieldResult;return _.S(Y,P.controller.updatePanel(x.panelId,B.content,!1),0)})};
jw[qC]=[_.m7,_.m3];var QP=function(W,P,x){this.innertubeTransportService=W;this.JSC$15063_screenManager=P;this.JSC$15063_commandHandler=x};
_.A(QP,zi);
QP.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1){x=_.Q(W,_.qjl);if(!x)return Z.return();if(x.commands)for(I=_.n(x.commands),O=I.next();!O.done;O=I.next())B=O.value,P.JSC$15063_commandHandler.resolveCommand(B,{disableClickTracking:!0});Y=_.ox(W.clickTrackingParams);_.JN(P.JSC$15063_screenManager,21760,Y,{layer:7,parentLayer:0});return _.S(Z,_.cF(P.innertubeTransportService,W),2)}K=Z.yieldResult;if(!K)return Z.return();P.JSC$15063_screenManager.graftServerVe(K.trackingParams,Y,
7);_.Kl(Z)})};
QP[qC]=[_.m7,_.ZF,_.qR];var Cn=new _.Lb("PANEL_LOADING_STRATEGY_TOKEN");var Ak=function(W,P){this.controller=W;this.panelLoadingStrategy=P};
_.A(Ak,zi);
Ak.prototype.resolveCommand=function(W,P){var x=this,I,O,B;return _.y(function(Y){I=_.Q(W,N6c);if((O=I)==null||!O.panelLoadingStrategy)return Y.return();B=function(K){var Z,d,v,m,t,C,z,D,w;return _.y(function(a){d=_.Q((Z=K.dialogViewModel)==null?void 0:Z.header,nPz);v={viewModel:K.dialogViewModel};m={};if(z=_.p("web_enable_dialog_header_label")?(t=d)==null?void 0:(C=t.headline)==null?void 0:C.content:void 0)m.ariaLabel=z;I.dismissOnBackgroundTap===!1&&(m.isModal=!0);return K.dialogViewModel?_.S(a,
x.controller.openDialog(v,(D=P)==null?void 0:(w=D.form)==null?void 0:w.element,m),0):a.return()})};
return _.S(Y,x.panelLoadingStrategy.execute({command:W,data:I.panelLoadingStrategy,renderFn:B,createScreenConfig:{layer:4}}),0)})};
Ak[qC]=[_.tf,Cn];var z2=function(W,P,x){this.innertubeTransportService=W;this.controller=P;this.JSC$15083_screenManager=x};
_.A(z2,zi);
z2.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t,C,z;return _.y(function(D){switch(D.nextAddress){case 1:I=_.Q(W,_.wh);if(!I)return D.return();var w,a=I.panelIdentifier||((w=I.identifier)==null?void 0:w.tag);if(!a)throw Error("xi");O=a;return _.S(D,x.controller.isVisible(O,!0),2);case 2:if((B=D.yieldResult)&&I.blockIfPanelOpen)return D.return();Z=(K=(Y=x.controller).getPanelContent)==null?void 0:K.call(Y,O);if(!(w=Z))if(I){var k;w=((k=I.globalConfiguration)==null?void 0:k.initialState)||
I.engagementPanel;if(k=!w)k=!!(I==null?0:(a=I.engagementPanelPresentationConfigs)==null?0:a.engagementPanelPopupPresentationConfig);k&&(w=_.R78(I.panelIdentifier,I.identifier))}else w=void 0;d=w;v=I.engagementPanelPresentationConfigs;m=I.engagementPanelExtras;return _.S(D,x.controller.showPanel(O,d,v,m,(t=P)==null?void 0:(C=t.form)==null?void 0:C.element),3);case 3:if(!I.globalConfiguration){D.jumpTo(0);break}_.JN(x.JSC$15083_screenManager,32633);return _.S(D,_.cF(x.innertubeTransportService,W),5);
case 5:return z=D.yieldResult,x.JSC$15083_screenManager.graftServerVe(z.trackingParams),_.S(D,x.controller.updatePanel(O,z.content,!0,m,void 0,z.updatePanelContinuationData),0)}})};
z2[qC]=[_.m7,_.m3,_.ZF];var G2=function(W,P){this.controller=W;this.panelLoadingStrategy=P};
_.A(G2,zi);G2.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z;return _.y(function(d){I=_.Q(W,_.V2);if((O=I)==null||!O.panelLoadingStrategy)return d.return();K=I7i(x.controller,(B=P)==null?void 0:(Y=B.form)==null?void 0:Y.element);Z=function(v){return _.y(function(m){return v.sheetViewModel?_.S(m,x.controller.openSheet({viewModel:v.sheetViewModel},K),0):m.return()})};
return _.S(d,x.panelLoadingStrategy.execute({command:W,data:I.panelLoadingStrategy,renderFn:Z,createScreenConfig:{layer:0}}),0)})};
G2[qC]=[_.Vz,Cn];var Eu=function(W,P){this.controller=W;this.JSC$15091_commandHandler=P};
_.A(Eu,zi);Eu.prototype.resolveCommand=function(W,P){var x=this,I,O,B;return _.y(function(Y){if(Y.nextAddress==1){I=_.Q(W,oUZ);var K=_.Q(I.showCommand,_.wh),Z,d,v=(d=K==null?void 0:K.panelIdentifier)!=null?d:K==null?void 0:(Z=K.identifier)==null?void 0:Z.tag;if(!v)throw Error("yi");O=v;return _.S(Y,x.controller.isVisible(O),2)}return(B=Y.yieldResult)?_.S(Y,x.controller.hidePanel(O),0):_.S(Y,x.JSC$15091_commandHandler.resolveCommand(I.showCommand,P),0)})};
Eu[qC]=[_.m3,_.qR];var g8=function(W,P,x){this.innertubeTransportService=W;this.controller=P;this.JSC$15094_screenManager=x};
_.A(g8,zi);
g8.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F,nm;return _.y(function(pm){switch(pm.nextAddress){case 1:return I=x=_.Q(W,S8b),O=I.targetPanelIdentifier,B=I.contentSourcePanelIdentifier,Y=I.globalConfiguration,((K=O)==null?0:K.tag)&&((Z=B)==null?0:Z.tag)?Y?_.S(pm,P.controller.showPanel(O.tag,_.R78(O.tag,O),void 0,void 0,void 0),5):_.S(pm,(t=(m=P.controller).getPanel)==null?void 0:t.call(m,B.tag),4):pm.return();case 4:C=pm.yieldResult;d=(z=C)==null?void 0:
(w=(D=z).getPanelContent)==null?void 0:w.call(D);pm.jumpTo(3);break;case 5:return _.S(pm,_.cF(P.innertubeTransportService,W),6);case 6:a=pm.yieldResult,((k=a)==null?0:k.trackingParams)&&P.JSC$15094_screenManager.graftServerVe(a.trackingParams),d=(T=a)==null?void 0:T.content,v=(N=a)==null?void 0:N.updatePanelContinuationData;case 3:if(F=(Io=d)==null?void 0:Io.engagementPanelSectionListRenderer)return _.S(pm,P.controller.showPanel(O.tag,void 0,void 0,void 0,void 0,{content:F.content,secondaryHeaderContent:(nm=
F.header)!=null?nm:{},targetId:F.targetId},v),0);pm.jumpTo(0)}})};
g8[qC]=[_.m7,_.m3,_.ZF];var Dk=function(W,P){this.JSC$15102_commandHandler=W;this.store=P};
_.A(Dk,zi);Dk.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y;return _.y(function(K){if(K.nextAddress==1)return(x=_.Q(W,Cmb))?_.S(K,_.Bq(),2):K.return();I=K.yieldResult;if(!I)return K.return();L6x(I,P.store,(O=x)==null?void 0:O.languageCode);B=I.isSubtitlesOn()?_.KK("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.KK("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Y=_.lx(B);P.JSC$15102_commandHandler.resolveCommand(Y);_.Kl(K)})};
Dk[qC]=[_.qR,S_];var Mr=function(W,P){this.shortsPlayerPromise=W;this.JSC$15106_commandHandler=P};
_.A(Mr,zi);
Mr.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1)return(x=_.Q(W,b0p))?_.S(v,P.shortsPlayerPromise,2):v.return();I=v.yieldResult;var m=Wbx(I);m!=null&&m.length||(I.loadModule("captions"),m=Wbx(I));O=m;if((B=O)==null||!B.length)return Y=_.KK("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),K=_.lx(Y),P.JSC$15106_commandHandler.resolveCommand(K),v.return();I.toggleSubtitles();Z=I.isSubtitlesOn()?_.KK("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.KK("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");d=_.lx(Z);P.JSC$15106_commandHandler.resolveCommand(d);_.Kl(v)})};
Mr[qC]=[_.jV3,_.qR];var $2=function(W){this.JSC$15109_playerPromise=W};
_.A($2,zi);$2.prototype.resolveCommand=function(W){var P=this,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return(x=_.Q(W,Kai))?_.S(Y,P.JSC$15109_playerPromise,2):Y.return();I=Y.yieldResult;O=I.getVideoData().video_id;x.videoId===O&&(B=Number(x.offsetFromVideoStartMilliseconds),B>=0&&I.seekTo(B/1E3));_.Kl(Y)})};
$2[qC]=[_.Pq];var OVp=_.On("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),w8=function(W){this.store=W};
_.A(w8,zi);
var J_i=function(W){var P,x,I,O;return _.y(function(B){if(B.nextAddress==1)return P=_.$$("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,x=_.$$("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,I=P||x,W.mainAppPlayer=new ky(I),_.S(B,W.mainAppPlayer.api,2);O=B.yieldResult;O.addEventListener("onStateChange",W.JSC$15113_playerStateChangeListener.bind(W));document.addEventListener("yt-page-data-updated",W.pauseOnNavigation.bind(W));window.addEventListener("state-navigatestart",
W.pauseOnNavigation.bind(W));_.Kl(B)})};
w8.prototype.JSC$15113_playerStateChangeListener=function(W){switch(W){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"}BHl(this)};
var BHl=function(W){W.store.dispatch(_.mG("sfvAudioItemCurrentlyPlayingEntity",OVp,{key:OVp,externalVideoId:W.externalVideoId,sfvAudioItemPlaybackState:W.playbackState,nowPlayingEntityValue:W.nowPlayingEntityValue}))};
w8.prototype.pauseOnNavigation=function(){var W=this,P,x,I,O;return _.y(function(B){if(B.nextAddress==1){if(!W.mainAppPlayer){var Y=new _.mW("Error: mainAppPlayer is unavailable",W.mainAppPlayer);_.G$(Y);return B.return()}return _.S(B,W.mainAppPlayer.api,2)}P=B.yieldResult;I=(x=P)==null?void 0:x.getPlayerState();I!==1||(O=P)!=null&&O.pauseVideo();_.Kl(B)})};
w8.prototype.playVideo=function(W,P,x){var I=this,O,B;return _.y(function(Y){if(Y.nextAddress==1)return _.S(Y,(O=I.mainAppPlayer)==null?void 0:O.api,2);B=Y.yieldResult;if(!I.mainAppPlayer||!B){var K=new _.mW("Error: mainAppPlayer is unavailable",I.mainAppPlayer);_.G$(K);return Y.return()}return _.S(Y,I.mainAppPlayer.loadVideoWithPlayerVars({videoId:I.externalVideoId,audio_only:"1",start:W/1E3,end:W/1E3+P,player_params:x}),0)})};
w8.prototype.pauseVideo=function(){var W=this,P,x;return _.y(function(I){if(I.nextAddress==1){if(!W.mainAppPlayer){var O=new _.mW("Error: mainAppPlayer is unavailable",W.mainAppPlayer);_.G$(O);return I.return()}return _.S(I,W.mainAppPlayer.api,2)}P=I.yieldResult;(x=P)==null||x.pauseVideo();_.Kl(I)})};
w8.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N;return _.y(function(Io){if(Io.nextAddress==1)return x=_.Q(W,Hhc),O=(I=x)==null?void 0:I.nowPlayingEntityValue,Y=(B=x)==null?void 0:B.externalVideoId,m=Number((v=(K=x)==null?void 0:(Z=K.defaultStartPoints)==null?void 0:(d=Z[0])==null?void 0:d.offsetMs)!=null?v:"0"),a=Number((w=(t=x)==null?void 0:(C=t.defaultStartPoints)==null?void 0:(z=C[0])==null?void 0:(D=z.duration)==null?void 0:D.seconds)!=null?w:"15"),N=(T=
(k=x)==null?void 0:k.playerParams)!=null?T:"",O&&Y?P.mainAppPlayer?Io.jumpTo(2):_.S(Io,J_i(P),2):Io.return();if(Io.nextAddress!=6){if(P.nowPlayingEntityValue&&O===P.nowPlayingEntityValue)return P.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.S(Io,P.pauseVideo(),0):_.S(Io,P.playVideo(m,a,N),0);P.externalVideoId=Y;P.nowPlayingEntityValue=O;P.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.S(Io,P.playVideo(m,a,N),6)}BHl(P);return Io.jumpTo(0)})};
w8[qC]=[S_];var hk=function(W){this.JSC$15130_commandHandler=W};
_.A(hk,zi);hk.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1)return(I=_.Q(W,AVA))?_.S(Z,_.Bq(),2):Z.return();O=Z.yieldResult;if(!O)return Z.return();(B=OvG(O))?x.JSC$15130_commandHandler.resolveCommand(B,P):(Y=_.KK("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),K=_.lx(Y),x.JSC$15130_commandHandler.resolveCommand(K));_.Kl(Z)})};
hk[qC]=[_.qR];var Hs=function(W){this.JSC$15133_playerPromise=W};
_.A(Hs,zi);Hs.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y;return _.y(function(K){if(K.nextAddress==1){x=_.Q(W,Z0c);if(!x)return K.return();I=x.overlayRenderer;return I?(O=_.Q(I,pKk))?_.S(K,P.JSC$15133_playerPromise,3):K.jumpTo(0):K.return()}B=K.yieldResult;B.renderChapterSeekingAnimation(1,_.kz(O.text),(Y=O.icon)==null?void 0:Y.iconType);_.Kl(K)})};
Hs[qC]=[_.Pq];var ew=function(W){this.store=W};
_.A(ew,zi);
ew.prototype.resolveCommand=function(W){var P=this,x,I,O;return _.y(function(B){if(B.nextAddress==1){x=_.Q(W,GTP);if(!x)return B.return();I="";(O=P.store.getState().collabInviteLink)&&x.id===O.playlistId?I=O.inviteLinkURL:x.shortUrl&&(I=x.shortUrl);return I?_.S(B,navigator.clipboard.writeText(I),3):B.jumpTo(0)}var Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.KK("COPY_LINK_SUCCESS_TOAST")}}}}};_.FY().resolve(_.qR).resolveCommand(Y);_.Kl(B)})};
ew[qC]=[Jk];var cs=function(W,P){this.innertubeTransportService=W;this.JSC$15143_commandHandler=P};
_.A(cs,zi);cs.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t;return _.y(function(C){if(C.nextAddress==1)return(I=_.Q(W,_.eO))?_.S(C,_.cF(x.innertubeTransportService,W,(O=P)==null?void 0:O.form),2):C.return();(B=C.yieldResult)&&B.errorMetadata&&(Y=B,K=_.lx(Y.error.message),x.JSC$15143_commandHandler.resolveCommand(K));Z=B;if((d=Z)==null?0:d.actions)for(v=_.n(Z.actions),m=v.next();!m.done;m=v.next())t=m.value,x.JSC$15143_commandHandler.resolveCommand(t);_.Kl(C)})};
cs[qC]=[_.m7,_.qR];var a0=function(){};
_.A(a0,zi);a0.prototype.resolveCommand=function(W){var P;return _.y(function(x){P=_.Q(W,VAP);if(!P)return x.return();(new oJz(P)).show();_.Kl(x)})};_.bo=new _.Lb("PLAYLIST_EDIT_CONTROLLER_TOKEN");var k2=function(W,P,x,I){this.store=W;this.innertubeTransportService=P;this.controller=x;this.JSC$15151_commandHandler=I};
_.A(k2,zi);
k2.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F,nm,pm,zR,Am,kW,$W;return _.y(function(ao){if(ao.nextAddress==1){I=_.Q(W,_.Dy);if(!I)return ao.return();if(I.clientActions){O=_.n(I.clientActions);for(B=O.next();!B.done;B=O.next())Y=B.value,x.JSC$15151_commandHandler.resolveCommand(Y);var e8,iC=P==null?void 0:(e8=P.form)==null?void 0:e8.element;iC&&_.Lf(iC,"yt-dismissible-item-action",I.clientActions)}return _.S(ao,_.cF(x.innertubeTransportService,W,(K=P)==
null?void 0:K.form),2)}if(Z=ao.yieldResult)Z.errorMetadata?(d=Z,v=_.lx(d.error.message),x.JSC$15151_commandHandler.resolveCommand(v),"error"in Z&&((m=P)==null?0:(t=m.commandController)==null?0:t.onServerError)&&((C=P)==null||(z=C.commandController)==null||z.onServerError(W,Z))):(D=P)==null||(w=D.commandController)==null||(k=(a=w).onSuccess)==null||k.call(a,W,Z);T=Z;((N=T)==null?0:N.collaborationInviteLink)&&I.playlistId&&(_.p("web_enable_invite_collaborators_link")||_.p("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
x.store.dispatch(_.LK({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:I.playlistId,inviteLinkUrl:T.collaborationInviteLink}}));((Io=T)==null?0:Io.redirectEndpoint)&&x.JSC$15151_commandHandler.resolveCommand(T.redirectEndpoint);((F=T)==null?0:(nm=F.newHeader)==null?0:nm.playlistHeaderRenderer)?nbp(x.controller,T.newHeader.playlistHeaderRenderer):((pm=T)==null?0:(zR=pm.newHeader)==null?0:zR.musicEditablePlaylistDetailHeaderRenderer)&&nbp(x.controller,T.newHeader.musicEditablePlaylistDetailHeaderRenderer);
x.controller.playlistVideoListElement&&((Am=T)==null?0:(kW=Am.playlistEditResults)==null?0:($W=kW[0])==null?0:$W.playlistEditVideoAddedResultData)&&((iC=x.controller.playlistVideoListElement)==null||iC.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:T.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Kl(ao)})};
k2[qC]=[Jk,_.m7,_.bo,_.qR];var Uu=function(W,P){this.controller=W;this.JSC$15161_commandHandler=P};
_.A(Uu,zi);Uu.prototype.resolveCommand=function(W,P){var x=this,I,O,B;return _.y(function(Y){I=_.Q(W,E_z);x.controller.showRefreshPill&&((O=I)==null?0:O.command)&&(x.JSC$15161_commandHandler.resolveCommand((B=I)==null?void 0:B.command,P),x.controller.showRefreshPill=!1);_.Kl(Y)})};
Uu[qC]=[_.rG,_.qR];var fn=function(W,P){this.store=W;this.JSC$15165_commandHandler=P||_.Ix.instance};
_.A(fn,zi);fn.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t;return _.y(function(C){I=_.Q(W,UQb);O=x.store.getState().radioButtonGroup;if((B=I)==null?0:B.command)x.JSC$15165_commandHandler.resolveCommand((Y=I)==null?void 0:Y.command,P);else if(((K=I)==null?void 0:K.formId)===O.currentFormId)for(Z=Object.values(O.commandsMap),d=_.n(Z),v=d.next();!v.done;v=d.next()){m=v.value;t=_.AF(m);if(!t)return C.return();x.JSC$15165_commandHandler.resolveCommand(t,P)}_.Kl(C)})};
fn[qC]=[Jk];var Nr=new _.Lb("USER_PREFS");var lo=function(W){this.JSC$15169_prefCookie=W};
_.A(lo,zi);lo.prototype.resolveCommand=function(W){var P=this,x;return _.y(function(I){(x=_.Q(W,Zdk))&&typeof x.useListView==="boolean"&&(_.uB(0,155,x.useListView),P.JSC$15169_prefCookie.save());_.Kl(I)})};
lo[qC]=[Nr];var T2=function(W){this.JSC$15173_prefCookie=W};
_.A(T2,zi);T2.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y;return _.y(function(K){x=_.Q(W,pxb);if((I=x)==null||!I.gl)return K.return();O=x.gl;B={persist_gl:"1",gl:O};P.JSC$15173_prefCookie.set("gl",O);P.JSC$15173_prefCookie.save();Y=eQZ(B);_.G1(Y);_.Kl(K)})};
T2[qC]=[Nr];var r8=function(W){this.JSC$15177_prefCookie=W};
_.A(r8,zi);r8.prototype.resolveCommand=function(W){var P=this,x,I;return _.y(function(O){x=_.Q(W,DQd);if(!x)return O.return();I=!1;x.flagNum&&typeof x.value==="boolean"?(_.uB(0,x.flagNum,x.value),I=!0):x.key&&typeof x.stringValue==="string"&&(P.JSC$15177_prefCookie.set(x.key,x.stringValue),I=!0);I&&P.JSC$15177_prefCookie.save();_.Kl(O)})};
r8[qC]=[Nr];var io=new _.Lb("PREF_STORAGE_PROMISE_TOKEN");var R0=function(W){this.JSC$15181_prefStoragePromise=W};
_.A(R0,zi);R0.prototype.resolveCommand=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1)return(x=_.Q(W,$Qp))?_.S(O,P.JSC$15181_prefStoragePromise,2):O.return();I=O.yieldResult;return I===void 0||x.key===void 0||x.value===void 0?O.return():_.S(O,I.set(x.key,x.value),0)})};
R0[qC]=[io];var Y5m=function(W){this.innertubeTransportService=W};
_.A(Y5m,zi);Y5m.prototype.resolveCommand=function(W,P){var x=this,I,O;return _.y(function(B){(I=_.Q(W,_.yci))&&I&&I.isFirstRequest&&(_.QY("search_overview_answer"),_.CK("so_rq",void 0,"search_overview_answer"));return _.S(B,_.cF(x.innertubeTransportService,W,(O=P)==null?void 0:O.form),0)})};
Y5m[qC]=[_.m7];var y_k=function(){};
_.A(y_k,zi);
y_k.prototype.resolveCommand=function(W){var P,x,I,O,B,Y,K,Z,d;return _.y(function(v){P=_.Q(W,yZl);if((x=P)==null?0:x.sectionIdentifier){if(P.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(O=(I=document.getElementsByTagName(P.sectionIdentifier))==null?void 0:I.item(0))O.scrollIntoView({behavior:"smooth"}),(B=X5t(O))&&B.focus({preventScroll:!0});return v.return()}Y=document.querySelector("[section-identifier="+P.sectionIdentifier+"]");K=document.querySelector("[section-identifier="+P.referenceSectionIdentifier+
"]");if(!Y)return v.return();Z=P.verticalScrollOffsetDp?P.verticalScrollOffsetDp:0;K&&(Z-=K.offsetTop);window.scrollTo({top:Y.offsetTop+Z,behavior:"smooth"});(d=X5t(Y))&&d.focus({preventScroll:!0})}_.Kl(v)})};var FR=function(){};
_.A(FR,zi);
FR.prototype.resolveCommand=function(W){var P,x,I,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1){P=_.Q(W,MOb);if(!P||!P.imageBytes||!navigator.clipboard)return Z.return();if(P.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.G$(Error("zi")),Z.return();_.OT(Z,2);I=(x=P)==null?void 0:x.imageBytes;O=I.replace(/-/g,"+").replace(/_/g,"/");B=XhR(O);Y={};K=[new ClipboardItem((Y[B.type]=B,Y))];return _.S(Z,navigator.clipboard.write(K),4)}if(Z.nextAddress!=2)return _.ci(Z,0);
_.yn(Z);_.Kl(Z)})};var qr=function(W,P){this.innertubeTransportService=W;this.JSC$15196_commandHandler=P};
_.A(qr,zi);qr.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1)return(I=_.Q(W,$3p))?_.S(Z,_.cF(x.innertubeTransportService,W,(O=P)==null?void 0:O.form),2):Z.return();(B=Z.yieldResult)&&B.errorMetadata&&I.onFailureCommand&&x.JSC$15196_commandHandler.resolveCommand(I.onFailureCommand);Y=B;((K=Y)==null?0:K.shareCommand)&&x.JSC$15196_commandHandler.resolveCommand(Y.shareCommand,P);_.Kl(Z)})};
qr[qC]=[_.m7,_.qR];var Ln=function(){};
_.A(Ln,zi);Ln.prototype.resolveCommand=function(W){var P,x;return _.y(function(I){P=_.Q(W,zRi);if(!P||!navigator.share)return I.return();x={url:P.url};try{return I.return(navigator.share(x))}catch(O){}_.Kl(I)})};var Wl=function(){};
_.A(Wl,zi);Wl.prototype.resolveCommand=function(){return _.y(function(W){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Kl(W)})};var Pl=function(W){this.JSC$15206_navigationConfirmationService=W};
_.A(Pl,zi);Pl.prototype.resolveCommand=function(){var W=this;return _.y(function(P){W.JSC$15206_navigationConfirmationService.cancelPendingNavigation();_.Kl(P)})};
Pl[qC]=[yz];var xI=function(W){this.JSC$15209_screenManager=W};
_.A(xI,zi);xI.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d;return _.y(function(v){O=(I=P.form)==null?void 0:I.event;Y=(B=P.form)==null?void 0:B.element;if(!O)throw new _.mW("Event not passed in when resolving command");K=_.n(O.composedPath());for(Z=K.next();!Z.done;Z=K.next())if(d=Z.value,d.tagName==="YT-COPY-LINK-RENDERER")return d.copyUrlToClipboard(),Y&&_.hd(x.JSC$15209_screenManager,Y),v.return();_.Kl(v)})};
xI[qC]=[_.ZF];var IJ=function(){this.JSC$15213_miniAppClientDataProvider=_.FY().resolve(_.Gf)};
_.A(IJ,zi);IJ.prototype.resolveCommand=function(){var W=this,P,x;return _.y(function(I){if(W.JSC$15213_miniAppClientDataProvider.clientData.has("video_id")){var O=W.JSC$15213_miniAppClientDataProvider,B=O.clientData.get("video_id");B&&O.clientData.delete("video_id");P="https://youtube.com/watch?v="+B;x=s0(P);if(x===void 0)throw Error("Ai`"+P);_.ME(window,x)}_.Kl(I)})};var OC=function(){};
_.A(OC,zi);OC.prototype.resolveCommand=function(){return _.y(function(W){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Kl(W)})};var JI=function(){};
_.A(JI,zi);JI.prototype.resolveCommand=function(){var W;return _.y(function(P){if(P.nextAddress==1)return _.S(P,_.dCo(window.document.documentElement),2);(W=document.querySelector("mini-app-container-view-model iframe"))&&W.focus();_.Kl(P)})};var Bl=function(W){this.JSC$15220_navigationConfirmationService=W};
_.A(Bl,zi);
Bl.prototype.resolveCommand=function(){var W=this;return _.y(function(P){var x=W.JSC$15220_navigationConfirmationService,I=_.FY().resolve(_.Je),O;if(((O=x.navigateParams)==null?void 0:O.data)!==void 0){var B;_.Ybi(I,x.navigateParams.endpoint,x.navigateParams.data,(B=x.navigateParams.navigationType)!=null?B:1,x.navigateParams.tempData,x.navigateParams.isMiniplayer,void 0,!0);x.navigateParams=void 0;x.customConfirmationCommand=void 0}else x.navigateParams&&(I.navigate(x.navigateParams.endpoint,x.navigateParams.reload,
x.navigateParams.params,x.navigateParams.tempData,x.navigateParams.requestType,x.navigateParams.createScreenConfig,!0),x.navigateParams=void 0,x.customConfirmationCommand=void 0);_.Kl(P)})};
Bl[qC]=[yz];var ne=function(){};
_.A(ne,zi);ne.prototype.resolveCommand=function(){return _.y(function(W){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Kl(W)})};var YI=function(W){this.JSC$15225_prefStorage=W};
_.A(YI,zi);YI.prototype.resolveCommand=function(){var W=this,P,x;return _.y(function(I){switch(I.nextAddress){case 1:return _.S(I,W.JSC$15225_prefStorage,2);case 2:return(P=I.yieldResult)?_.S(I,P.set("sfvle",!1),3):I.return();case 3:return _.S(I,P.set("sfvles",!0),4);case 4:x=_.SI(),_.uB(0,203,!1),_.uB(0,204,!0),x.save(),_.Kl(I)}})};
YI[qC]=[io];var yW=function(W){this.JSC$15228_prefStorage=W};
_.A(yW,zi);yW.prototype.resolveCommand=function(){var W=this,P,x;return _.y(function(I){switch(I.nextAddress){case 1:return _.S(I,W.JSC$15228_prefStorage,2);case 2:return(P=I.yieldResult)?_.S(I,P.set("sfvle",!0),3):I.return();case 3:return _.S(I,P.set("sfvles",!0),4);case 4:x=_.SI(),_.uB(0,203,!0),_.uB(0,204,!0),x.save(),_.Kl(I)}})};
yW[qC]=[io];var KLm=new _.Lb("SNACKBAR_CONTROLLER_TOKEN");var Ke=function(W){this.controller=W};
_.A(Ke,zi);Ke.prototype.resolveCommand=function(W){var P=this,x,I,O;return _.y(function(B){x=_.Q(W,lyi);if(!x)return B.return();I=_.Q(x.content,Ifz);if(!I)return B.return();var Y=P.controller,K=I,Z=(O=x.animationStyle)!=null?O:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(Y.showSnackbarFn)Y.showSnackbarFn({snackbarViewModel:K,animationStyle:Z,durationMs:x.durationSeconds*1E3});else throw Error("ij");_.Kl(B)})};
Ke[qC]=[KLm];var Zp=function(){};
_.A(Zp,zi);Zp.prototype.resolveCommand=function(W){var P;return _.y(function(x){P=_.Q(W,MAd);if(!P||typeof P.key!=="string"||typeof P.value!=="string")return x.return();window.localStorage.setItem(P.key,P.value);_.Kl(x)})};var oJ=function(W){this.store=W};
_.A(oJ,zi);oJ.prototype.resolveCommand=function(W){var P=this,x;return _.y(function(I){x=_.Q(W,WKU);if(!x||!x.stepId||!x.token)return I.return();P.store.dispatch(CRw({stepId:x.stepId,token:x.token,isSelected:!1}));_.Kl(I)})};
oJ[qC]=[Jk];var Sc=function(W,P,x){this.innertubeTransportService=W;this.store=P;this.JSC$15244_screenManager=x};
_.A(Sc,zi);
Sc.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io,F,nm,pm;return _.y(function(zR){x=_.Q(W,HWM);if(!x||(I=x.stepIds)==null||!I.length)return zR.return();O=P.store.getState().talkToRecs;B=[];Y=[];K=_.n(x.stepIds);for(Z=K.next();!Z.done;Z=K.next())for(d=Z.value,v=void 0,(m=(v=O.stepStates[d])==null?void 0:v.userQuery)&&Y.push({userQuery:m.userQuery,userQueryToken:m.token}),t=void 0,C=(t=O.stepStates[d])==null?void 0:t.selectionStates,z=_.n(Object.entries(C)),D=
z.next();!D.done;D=z.next())w=D.value,a=_.n(w),k=a.next().value,T=a.next().value,N=k,Io=T,Io.isSelected&&B.push(N);F={selectedChipTokens:B,userQueries:Y,submittedStepIds:x.stepIds};nm={browseTalk2recsFormData:F};x.browseEndpoint?(pm=W,_.tF(pm,_.KL,x.browseEndpoint)):x.command&&(pm=x.command);return pm?_.S(zR,_.cF(P.innertubeTransportService,pm,{formData:nm,disableCache:!0}).then(function(Am){(Am==null?0:Am.trackingParams)&&P.JSC$15244_screenManager.graftServerVe(Am==null?void 0:Am.trackingParams)}),
0):zR.return()})};
Sc[qC]=[_.m7,Jk,_.ZF];var uH=function(W){this.store=W};
_.A(uH,zi);uH.prototype.resolveCommand=function(W){var P=this,x;return _.y(function(I){x=_.Q(W,LF7);if(!x||!x.stepId||!x.token)return I.return();P.store.dispatch(CRw({stepId:x.stepId,token:x.token,isSelected:!0}));_.Kl(I)})};
uH[qC]=[Jk];var dV=function(W){this.store=W};
_.A(dV,zi);dV.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K;return _.y(function(Z){I=_.Q(W,ewM);if(!I||!I.stepId||!I.userQueryToken)return Z.return();K=(Y=(O=P)==null?void 0:(B=O.form)==null?void 0:B.userQuery)!=null?Y:"";x.store.dispatch(_.LK({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:I.stepId,userQueryToken:I.userQueryToken,userQuery:K}}));_.Kl(Z)})};
dV[qC]=[Jk];_.ZVw=new _.Lb("TIMELY_ACTIONS_CONTROLLER_TOKEN");var sC=function(W){this.controller=W};
_.A(sC,zi);sC.prototype.resolveCommand=function(W){var P=this,x,I,O,B;return _.y(function(Y){x=_.Q(W,Bl3);if(!x)return Y.return();I=x;O=I.id;B=I.isVisible;if(O===void 0||B===void 0)return Y.return();var K;(K=P.controller.timelyActionsMap.get(O))==null||K(O,B);_.Kl(Y)})};
sC[qC]=[_.ZVw];var obp=function(){this.timelyActionsMap=new Map};var vl=function(W){this.JSC$15271_commandHandler=W};
_.A(vl,zi);vl.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y;return _.y(function(K){x=_.Q(W,_.KS3);if(!x)return K.return();B=(I=x.item)==null?void 0:(O=I.notificationTextRenderer)==null?void 0:O.successResponseText;if(!B)return K.return();Y=_.NB(B);P.JSC$15271_commandHandler.resolveCommand(Y);_.Kl(K)})};
vl[qC]=[_.qR];var mg=function(W,P){this.innertubeTransportService=W;this.JSC$15276_playerApiPromise=P};
_.A(mg,zi);
mg.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d,v;return _.y(function(m){if(m.nextAddress==1)return _.S(m,P.JSC$15276_playerApiPromise,2);x=m.yieldResult;I=x.getOption("captions","track");O=Object.assign({},_.Q(W,_.Lez));(Y=(B=x.getVideoData())==null?void 0:B.video_id)?O.externalVideoId=Y:_.co(Error("Bi"));if((K=I)==null?0:K.languageCode)O.languageCode=I.languageCode;if((Z=I)==null?0:Z.kind)O.kind=I.kind;if((d=I)==null?0:d.name)O.name=I.name;v=Object.assign({},W,{getTranscriptEndpoint:O});return _.S(m,
_.cF(P.innertubeTransportService,v),0)})};
mg[qC]=[_.m7,_.Pq];var VW=function(){};
_.A(VW,zi);VW.prototype.resolveCommand=function(W){var P,x,I,O,B,Y,K,Z;return _.y(function(d){P=_.Q(W,kTA);if((x=P)==null||!x.paramKeyValuePairs)return d.return();I=window.location.href;O=_.n(P.paramKeyValuePairs);for(B=O.next();!B.done;B=O.next())Y=B.value,Y.key&&Y.value&&(K={},I=_.XY(I,(K[Y.key]=Y.value,K)));Z=_.FY().resolve(_.Bw);_.Jf(Z,I);_.Kl(d)})};var tI=function(W,P){this.JSC$15283_commandHandler=W;this.innertubeTransportService=P};
_.A(tI,zi);
tI.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T;return _.y(function(N){switch(N.nextAddress){case 1:return(B=(I=P)==null?void 0:(O=I.form)==null?void 0:O.element)&&_.Fj(B),Y=_.SI().get("hl"),K="",_.OT(N,2),_.S(N,YpU(Y),4);case 4:K=N.yieldResult;_.ci(N,3);break;case 2:return _.yn(N),B&&_.qz(B),_.G$(Error("Di"),"ERROR"),N.return();case 3:Z=_.Q(W,gPp);if(!Z)return B&&_.qz(B),N.return();(m=(d=Z.commerceActionConfig)==null?void 0:(v=d.commandLifeCycleConfig)==null?
void 0:v.onStartCommand)&&x.JSC$15283_commandHandler.resolveCommand(m);return _.S(N,_.cF(x.innertubeTransportService,W,{client_data:{paymentsClientToken:{token:K}}}),5);case 5:(t=N.yieldResult)?(B&&_.qz(B),((w=t)==null?0:w.command)&&x.JSC$15283_commandHandler.resolveCommand(t.command),(T=(a=Z.commerceActionConfig)==null?void 0:(k=a.commandLifeCycleConfig)==null?void 0:k.onSuccessCommand)&&x.JSC$15283_commandHandler.resolveCommand(T)):(B&&_.qz(B),_.G$(Error("Ei")),(D=(C=Z.commerceActionConfig)==null?
void 0:(z=C.commandLifeCycleConfig)==null?void 0:z.onFailureCommand)&&x.JSC$15283_commandHandler.resolveCommand(D)),_.Kl(N)}})};
tI[qC]=[_.qR,_.m7];var pe=function(W,P,x){this.store=W;this.JSC$15299_commandHandler=P;this.innertubeTransportService=x};
_.A(pe,zi);
pe.prototype.resolveCommand=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m;return _.y(function(t){I=_.Q(W,DGP);O=I.googlePaymentPayload;I.onStartCommand&&x.JSC$15299_commandHandler.resolveCommand(I.onStartCommand);B=O.encryptedPurchaseParams;Y=O.ypcLogWalletAnalyticDataEndpoint;K=I.serializedTransactionFlowLoggingParams;Z=O.serializedPaymentsClientParams;d=I.ypcCujContext;m=Zvt(x.innertubeTransportService,(v=P)==null?void 0:v.form,B,Y,K,Z,d);return t.return(m.then(function(C){yPG(P==null?void 0:P.form,
!1);var z=x.store,D=x.JSC$15299_commandHandler,w=C.integratorData;w==null||w===""||C.error!=null?(String(C.error)==="-1"&&I.onDismissCommand?D.resolveCommand(I.onDismissCommand):String(C.error)!=="-1"&&I.onFailureCommand&&D.resolveCommand(I.onFailureCommand),String(C.error)!=="-1"&&String(C.error)!=="132"&&_.G$(Error("Fi"),"ERROR")):(I.googlePaymentEntityKey&&z.dispatch(_.mG("commerceAcquisitionClientPayloadEntity",I.googlePaymentEntityKey,{key:I.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:w,
fundsGuaranteeCallbackClientData:C.integratorClientCallbackData}}})),I.onSuccessCommand&&D.resolveCommand(I.onSuccessCommand));_.Jn()},function(C){yPG(P==null?void 0:P.form,!1);
_.G$(C,"ERROR");I.onFailureCommand&&x.JSC$15299_commandHandler.resolveCommand(I.onFailureCommand)}))})};
pe[qC]=[S_,_.qR,_.m7];var jc=function(W,P){this.JSC$15303_commandHandler=W;this.purchaseManager=P};
_.A(jc,zi);
jc.prototype.resolveCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d,v;return _.y(function(m){x=_.Q(W,MvP);((I=x)==null?0:(O=I.commandLifeCycleConfig)==null?0:O.onStartCommand)&&P.JSC$15303_commandHandler.resolveCommand(x.commandLifeCycleConfig.onStartCommand);if(!((B=x)==null?0:(Y=B.googlePaymentPurchaseManagerPayload)==null?0:Y.securePayloadBytes))return _.G$(Error("Gi"),"ERROR"),m.return();K=WBZ(_.up(x.googlePaymentPurchaseManagerPayload.securePayloadBytes));Z=_.SI().get("hl");d=_.aP();t0P(K.serialize(),
Z,function(t){d.resolve(t)},function(t){d.reject(t)},d.resolve);
v=d.promise;return m.return(v.then(function(t){if(t)if(t==null?0:t.errorCode){_.G$(Error("Hi`"+t.errorCode),"ERROR");var C,z;((C=x)==null?0:(z=C.commandLifeCycleConfig)==null?0:z.onFailureCommand)&&P.JSC$15303_commandHandler.resolveCommand(x.commandLifeCycleConfig.onFailureCommand)}else if(t==null?0:t.isCancelled){var D,w;((D=x)==null?0:(w=D.commandLifeCycleConfig)==null?0:w.onCancelCommand)&&P.JSC$15303_commandHandler.resolveCommand(x.commandLifeCycleConfig.onCancelCommand)}else{var a,k;((a=x)==
null?0:(k=a.commandLifeCycleConfig)==null?0:k.onSuccessCommand)&&P.JSC$15303_commandHandler.resolveCommand(x.commandLifeCycleConfig.onSuccessCommand)}},function(t){_.G$(t,"ERROR");
var C,z;((C=x)==null?0:(z=C.commandLifeCycleConfig)==null?0:z.onFailureCommand)&&P.JSC$15303_commandHandler.resolveCommand(x.commandLifeCycleConfig.onFailureCommand)}))})};
jc[qC]=[_.qR,pDZ];var S5i=function(W,P){this.JSC$15311_commandHandler=W;this.commandAllowlistOverride=P;var x;this.commandAllowlist=(x=this.commandAllowlistOverride)!=null?x:bh};
S5i.prototype.handleResponse=function(W,P,x){var I,O=P==null?void 0:(I=P.config)==null?void 0:I.command;if(!O||this.commandAllowlist.some(function(B){return!!_.Q(O,B)})){P=void 0;
x!==void 0&&(P={form:{element:x}});W.onResponseReceivedCommand&&this.JSC$15311_commandHandler.resolveCommand(W.onResponseReceivedCommand,P);W.onResponseReceivedAction&&this.JSC$15311_commandHandler.resolveCommand(W.onResponseReceivedAction,P);W.onResponseReceivedEndpoint&&this.JSC$15311_commandHandler.resolveCommand(W.onResponseReceivedEndpoint,P);W.command&&this.JSC$15311_commandHandler.resolveCommand(W.command,P);if(W.onResponseReceivedCommands)for(x=_.n(W.onResponseReceivedCommands),I=x.next();!I.done;I=
x.next())this.JSC$15311_commandHandler.resolveCommand(I.value,P);if(W.onResponseReceivedActions)for(x=_.n(W.onResponseReceivedActions),I=x.next();!I.done;I=x.next())this.JSC$15311_commandHandler.resolveCommand(I.value,P);if(W.onResponseReceivedEndpoints)for(x=_.n(W.onResponseReceivedEndpoints),I=x.next();!I.done;I=x.next())this.JSC$15311_commandHandler.resolveCommand(I.value,P);if(W.actions)for(W=_.n(W.actions),x=W.next();!x.done;x=W.next())this.JSC$15311_commandHandler.resolveCommand(x.value,P)}};
S5i[qC]=[_.qR,_.Rl(GLm)];var uWk=new _.Lb("INNERTUBE_TOKEN_SERVICE");var dJz=new _.Lb("SCHEDULER_TOKEN");var sTA=function(W){this.scheduler=W;W={};this.tokenMap=(W.app={},W.user={},W)};
sTA.prototype.handleResponse=function(W,P){if(!P)throw Error("Ii");var x;if(W=(x=W.responseContext)==null?void 0:x.innertubeTokenJar){if(W.appTokens){var I,O,B;x=(I=P.innerTubeRequest.context)==null?void 0:(O=I.request)==null?void 0:(B=O.innertubeTokenJar)==null?void 0:B.appTokens;vbw(this,W.appTokens,this.tokenMap.app,x)}if(W.userTokens){var Y,K,Z;P=(Y=P.innerTubeRequest.context)==null?void 0:(K=Y.request)==null?void 0:(Z=K.innertubeTokenJar)==null?void 0:Z.userTokens;vbw(this,W.userTokens,this.tokenMap.user,
P)}}};
sTA.prototype.processContext=function(W){W.request||(W.request={});var P=Object.keys(this.tokenMap.app).length,x=Object.keys(this.tokenMap.user).length;if(P||x)W.request.innertubeTokenJar={},P&&(W.request.innertubeTokenJar.appTokens=[].concat(_.ju(Object.values(this.tokenMap.app).flat()))),x&&(W.request.innertubeTokenJar.userTokens=[].concat(_.ju(Object.values(this.tokenMap.user).flat())))};
var vbw=function(W,P,x,I){P=_.n(P);for(var O=P.next(),B={};!O.done;B={token$jscomp$137:void 0},O=P.next()){B.token$jscomp$137=O.value;if(B.token$jscomp$137.type===void 0)throw new _.mW("InnerTube token has no type",B.token$jscomp$137);if(B.token$jscomp$137.clearTokens)x[B.token$jscomp$137.type]=[];else if(B.token$jscomp$137.value!==void 0){x[B.token$jscomp$137.type]||(x[B.token$jscomp$137.type]=[]);if(I!==void 0&&I.length){O=_.n(I);for(var Y=O.next(),K={};!Y.done;K={requestToken:void 0},Y=O.next())K.requestToken=
Y.value,Y=x[B.token$jscomp$137.type].findIndex(function(Z){return function(d){return d===Z.requestToken||(0,_.jU.equals)(d,Z.requestToken)}}(K)),Y>-1&&x[B.token$jscomp$137.type].splice(Y,1)}x[B.token$jscomp$137.type].push(B.token$jscomp$137);
B.token$jscomp$137.maxAgeSeconds&&Number(B.token$jscomp$137.maxAgeSeconds)>0&&W.scheduler.addLowPriorityJob(function(Z){return function(){var d=x[Z.token$jscomp$137.type].indexOf(Z.token$jscomp$137);d>-1&&x[Z.token$jscomp$137.type].splice(d,1)}}(B),Number(B.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.mW("InnerTube token has no value",B.token$jscomp$137);
}};
sTA[qC]=[dJz];var mJA=new _.Lb("LOCAL_INNERTUBE_ROUTER_TOKEN"),VDd=new _.Lb("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var QW=function(W){this.serviceMap=W};
QW.prototype.shouldPreferLocalResponse=function(W,P){return(W=tDd(this,W))?W.shouldPreferLocalResponse(P):!1};
QW.prototype.localInnertubeResponse=function(W,P){var x=this,I;return _.y(function(O){return(I=tDd(x,W))?O.return(I.localInnertubeResponse(P)):O.return(Promise.reject(Error("Ji")))})};
QW.prototype.canProvideFallbackResponse=function(W,P){return(W=tDd(this,W))?W.canProvideFallbackResponse(P):!1};
QW.prototype.localFallbackInnertubeResponse=function(W,P){var x=this,I;return _.y(function(O){return(I=tDd(x,W))?O.return(I.localFallbackInnertubeResponse(P)):O.return(Promise.reject(Error("Ji")))})};
var tDd=function(W,P){P=_.YO(P);return P?(W=W.serviceMap[P])?W:null:null};
QW[qC]=[VDd];var AM=function(){};
AM.prototype.shouldPreferLocalResponse=function(){return!1};
AM.prototype.localInnertubeResponse=function(){return _.y(function(W){return W.return(Promise.reject(Error("Ki")))})};
AM.prototype.canProvideFallbackResponse=function(){return!0};
AM.prototype.localFallbackInnertubeResponse=function(){var W,P,x;return _.y(function(I){W=Er("CLOSE_POPUP");P={openPopupAction:SpG()};x={actions:[W,P]};return I.return(x)})};var fMA=function(W,P){this.JSC$15361_upliftPromise=W;this.store=P};
_.J=fMA.prototype;_.J.shouldPreferLocalResponse=function(W){var P=W.videoId,x;if(x=P)x=BKo(this.store.getState().entities,W.videoId);return x&&nuA(this.store.getState().entities,P)?dPC(this.store.getState().entities,W.playlistId):!1};
_.J.localInnertubeResponse=function(W){var P=this,x;return _.y(function(I){return(x=P.getPlayerResponse(W))?I.return(Promise.resolve(x)):I.return(Promise.reject(Error("Li")))})};
_.J.canProvideFallbackResponse=function(W){return!!W.videoId};
_.J.localFallbackInnertubeResponse=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,P.JSC$15361_upliftPromise,2);x=P.getPlayerResponse(W);var O;x?O=I.return(Promise.resolve(x)):O=vu(P.store.getState().entities,W.videoId)?I.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Ru(_.KK("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:DDd()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
I.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Ru(_.KK("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:ggA()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return O})};
_.J.getPlayerResponse=function(W){return K4m(this.store.getState().entities,W.videoId)};var CP=function(W,P){this.localPlayerService=W;this.localWatchNextService=P};
CP.prototype.shouldPreferLocalResponse=function(W){var P=W.playerRequest;W=W.watchNextRequest;return!!(P&&this.localPlayerService.shouldPreferLocalResponse(P)&&W&&this.localWatchNextService.shouldPreferLocalResponse(W))};
CP.prototype.localInnertubeResponse=function(W){var P=this,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1){x=W.playerRequest;I=W.watchNextRequest;if(!x||!I)throw new _.mW("Missing streaming request",W);return _.S(Y,P.localPlayerService.localInnertubeResponse(x),2)}if(Y.nextAddress!=3)return O=Y.yieldResult,_.S(Y,P.localWatchNextService.localInnertubeResponse(I),3);B=Y.yieldResult;return Y.return({playerResponse:O,watchNextResponse:B})})};
CP.prototype.canProvideFallbackResponse=function(W){var P=W.playerRequest;W=W.watchNextRequest;return!!(P&&this.localPlayerService.canProvideFallbackResponse(P)&&W&&this.localWatchNextService.canProvideFallbackResponse(W))};
CP.prototype.localFallbackInnertubeResponse=function(W){var P=this,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return x=W.playerRequest,I=W.watchNextRequest,x&&I?_.S(Y,P.localPlayerService.localFallbackInnertubeResponse(x),2):Y.return(Promise.reject(new _.mW("Missing streaming request",W)));if(Y.nextAddress!=3)return O=Y.yieldResult,_.S(Y,P.localWatchNextService.localFallbackInnertubeResponse(I),3);B=Y.yieldResult;return Y.return({playerResponse:O,watchNextResponse:B})})};var pP=function(W){this.JSC$15371_persistentStorePromiseAccessor=W};
pP.prototype.shouldPreferLocalResponse=function(){return!1};
pP.prototype.localInnertubeResponse=function(){return _.y(function(W){return W.return(Promise.reject(Error("Mi")))})};
pP.prototype.canProvideFallbackResponse=function(){return!0};
pP.prototype.localFallbackInnertubeResponse=function(){var W=this,P,x;return _.y(function(I){return I.nextAddress==1?_.S(I,W.JSC$15371_persistentStorePromiseAccessor(),2):I.nextAddress!=3?(P=I.yieldResult)?_.S(I,P.get("service:guide:fallback"),3):I.return(Promise.reject(Error("Ni"))):(x=I.yieldResult)&&_.Zs(x)?I.return(s4m(_.Zs(x))):I.return(Promise.reject(Error("Oi")))})};var zc=function(){};
zc.prototype.shouldPreferLocalResponse=function(){return!1};
zc.prototype.localInnertubeResponse=function(){return _.y(function(W){return W.return(Promise.reject(Error("Pi")))})};
zc.prototype.canProvideFallbackResponse=function(){return!0};
zc.prototype.localFallbackInnertubeResponse=function(){var W,P,x;return _.y(function(I){W=Er("CLOSE_POPUP");P={openPopupAction:SpG()};x={actions:[W,P]};return I.return(x)})};var tM=function(){this.urlMap=pG3;this.fallbackCommand=_.dx};
tM.prototype.shouldPreferLocalResponse=function(W){return(W=W.url)?!!jTP(this,W):!1};
tM.prototype.localInnertubeResponse=function(W){var P=this,x;return _.y(function(I){return(x=W.url)?I.return(QTl(W,jTP(P,x))):I.return(Promise.reject(Error("Qi")))})};
tM.prototype.canProvideFallbackResponse=function(){return!0};
tM.prototype.localFallbackInnertubeResponse=function(W){var P=this,x,I,O,B,Y,K,Z;return _.y(function(d){x=W.url;if(!x)return d.return(QTl(W,P.fallbackCommand));if(I=jTP(P,x))return d.return(QTl(W,I));O=void 0;B=_.YO(x);B==="/watch"&&(Y=_.hz(x,"v"))&&(Z=(K=_.hz(x,"list"))!=null?K:void 0,O=_.iB(Y,Z));O||(O=P.fallbackCommand);return d.return(QTl(W,O))})};
var jTP=function(W,P){if(P)return W.urlMap[_.en(P)]},QTl=function(W,P){P&&W.parentTrackingParams&&(P.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:W.parentTrackingParams}},P.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:P})};var j_=function(W,P,x){this.JSC$15381_upliftPromise=W;this.store=P;this.JSC$15381_persistentStorePromiseAccessor=x};
j_.prototype.shouldPreferLocalResponse=function(){return!1};
j_.prototype.localInnertubeResponse=function(){return _.y(function(W){return W.return(Promise.reject(Error("Ri")))})};
j_.prototype.canProvideFallbackResponse=function(){return!0};
j_.prototype.localFallbackInnertubeResponse=function(){var W=this;return _.y(function(P){return P.return(CiA(W))})};
var CiA=function(W){var P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,KP(W.JSC$15381_upliftPromise,W.store),2);P=I.yieldResult;x={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[ugx(P)]}}}};return I.return(A_k(W,x))})},A_k=function(W,P){var x,I;
return _.y(function(O){if(O.nextAddress==1)return _.S(O,W.JSC$15381_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return x=O.yieldResult,_.S(O,oz(x),3);I=O.yieldResult;return O.return({responseContext:{},contents:P,topbar:I})})};var mf=function(W,P,x){this.JSC$15388_upliftPromise=W;this.store=P;this.JSC$15388_persistentStorePromiseAccessor=x};
mf.prototype.shouldPreferLocalResponse=function(W){var P=W.videoId;return P&&BKo(this.store.getState().entities,P)&&nuA(this.store.getState().entities,P)?dPC(this.store.getState().entities,W.playlistId):!1};
mf.prototype.localInnertubeResponse=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1)return(x=W.videoId)?_.S(O,P.JSC$15388_upliftPromise,2):O.return(Promise.reject(Error("Si")));if(O.nextAddress!=3)return _.S(O,zAi(P,W,x),3);I=O.yieldResult;return O.return(G_k(P,I,x))})};
mf.prototype.canProvideFallbackResponse=function(W){return W.videoId?!0:!1};
mf.prototype.localFallbackInnertubeResponse=function(W){var P=this,x,I,O,B;return _.y(function(Y){switch(Y.nextAddress){case 1:return(x=W.videoId)?_.S(Y,P.JSC$15388_upliftPromise,2):Y.return(Promise.reject(Error("Si")));case 2:return _.S(Y,zAi(P,W,x),3);case 3:I=Y.yieldResult;if(vu(P.store.getState().entities,x)){Y.jumpTo(4);break}return _.S(Y,KP(P.JSC$15388_upliftPromise,P.store),5);case 5:return O=Y.yieldResult,Y.return(Ebi(I,O));case 4:return BKo(P.store.getState().entities,x)&&nuA(P.store.getState().entities,
x)?Y.return(G_k(P,I,x)):(B={title:_.Ru(_.KK("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:DDd()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Y.return(Ebi(I,B)))}})};
var zAi=function(W,P,x){var I,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1)return I=P.playlistId,O=_.iB(x,I),_.S(Z,W.JSC$15388_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return B=Z.yieldResult,_.S(Z,oz(B),3);Y=Z.yieldResult;K={responseContext:{},currentVideoEndpoint:O,topbar:Y};return Z.return(K)})},G_k=function(W,P,x){if(W=vu(W.store.getState().entities,x)){var I;
x=W.videoEntity;var O,B={title:FB(x.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.qU((I=x.localizedStrings)==null?void 0:I.viewCount),viewCount:_.qU((O=x.localizedStrings)==null?void 0:O.viewCount)}}};x.publishedTimestampMillis&&(B.dateText=_.qU(qtR(new Date(Number(x.publishedTimestampMillis)))));I={videoPrimaryInfoRenderer:B};O=W.videoEntity;W=W.channelEntity;W={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:FB(_.KK("SHOW_MORE",void 0,"Show more")),
showLessText:FB(_.KK("SHOW_LESS",void 0,"Show less")),description:O.formattedDescription,owner:{videoOwnerRenderer:{title:FB(W.title),thumbnail:W.avatar}}}};P.contents={twoColumnWatchNextResults:{results:{results:{contents:[I,W]}}}}}return P},Ebi=function(W,P){W.contents={singleColumnWatchNextResults:{results:{results:{contents:[ugx(P)]}}}};
return W};var QV=function(W,P,x){this.JSC$15394_upliftPromise=W;this.store=P;this.JSC$15394_persistentStorePromiseAccessor=x};
QV.prototype.shouldPreferLocalResponse=function(){return!1};
QV.prototype.localInnertubeResponse=function(){return _.y(function(W){return W.return(Promise.reject(Error("Ti")))})};
QV.prototype.canProvideFallbackResponse=function(){return!0};
QV.prototype.localFallbackInnertubeResponse=function(){var W=this,P,x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:return _.S(B,W.JSC$15394_persistentStorePromiseAccessor(),2);case 2:return P=B.yieldResult,_.S(B,oz(P),3);case 3:return x=B.yieldResult,I={responseContext:{},topbar:x},_.S(B,W.JSC$15394_upliftPromise,4);case 4:return _.S(B,KP(W.JSC$15394_upliftPromise,W.store),5);case 5:return O=B.yieldResult,I.watchStatus={backgroundPromoRenderer:O},B.return(I)}})};var gbz=new _.Lb("ENDPOINT_MAP");var DJc=function(){var W=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return W.sequenceMap}}},YYk=function(W,P,x){var I,O=(I=P.config)==null?void 0:I.sequenceStrategy;
if(!O)return x();W.sequenceMap.has(O.sequenceKey)||W.sequenceMap.set(O.sequenceKey,[]);W=W.sequenceMap.get(O.sequenceKey);switch(O.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return MDZ(W,P,x);case "REQUEST_SEQUENCE_TYPE_REPLACE":return $Jw(W,P,x);default:throw new _.mW("Request could not be sequenced",P);}},MDZ=function(W,P,x){var I,O,B;
return _.y(function(Y){W.length>0?(O=W[W.length-1],I=O.responsePromise.then(function(){return x()})):I=x();
B={request:P,responsePromise:I};W.push(B);wG3(W,B);return Y.return(B.responsePromise)})},$Jw=function(W,P,x){x=x();
if(W.length>0)for(var I=_.n(W),O=I.next();!O.done;O=I.next())O.value.responsePromise=x;var B={request:P,responsePromise:x};W.push(B);wG3(W,B);return Promise.resolve().then(function(){return W.indexOf(B)>0?B.responsePromise.then(function(Y){return Object.assign({},Y,{sequenceMetaData:{skipProcessing:!0}})}):B.responsePromise})},wG3=function(W,P){P.responsePromise.then(function(){var x=W.indexOf(P);
x>-1&&W.splice(x,1)})};var hAb=new _.Lb("REQUEST_SEQUENCING");var Ce=function(){};
_.A(Ce,QR);Ce.prototype.getApiPaths=function(){return[]};
Ce.prototype.getExtension=function(W){return _.Q(W,xYA)};
Ce.prototype.JSC$11808_buildRequest=function(W,P){W.recaptchaToken=P.recaptchaToken};
Ce.prototype.getApiUrl=function(){return"/das_captcha"};var AI=function(){};
_.A(AI,QR);AI.prototype.getApiPaths=function(){return E9A};
AI.prototype.getExtension=function(W){return _.Q(W,DYk)};
AI.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.createBackstagePostParams&&(W.createBackstagePostParams=P.createBackstagePostParams);x.comment_text&&(W.commentText=x.comment_text);if(x.attached_video_id)W.videoAttachment={videoId:x.attached_video_id};else if(x.image_poll_options)W.pollAttachmentData={options:x.image_poll_options};else if(x.poll_options)W.pollAttachment={choices:x.poll_options};else if(x.quiz_options)W.quizAttachmentData={options:x.quiz_options};else if(x.image_blob_id)W.imageAttachment=
{encryptedBlobId:x.image_blob_id},x.source_video_id&&(W.imageAttachment.sourceExternalVideoId=x.source_video_id),x.image_preview_coordinates&&(W.imageAttachment.previewCoordinates=JSON.parse(x.image_preview_coordinates));else if(x.images_data)W.imagesAttachment={imagesData:x.images_data};else if(x.clip_external_video_id!==void 0||x.clip_offset_ms!==void 0||x.clip_duration_ms!==void 0){var I,O,B,Y,K;W.clipAttachment={externalVideoId:(B=x.clip_external_video_id)!=null?B:"",offsetMs:(Y=(I=x.clip_offset_ms)==
null?void 0:I.toString())!=null?Y:"",durationMs:(K=(O=x.clip_duration_ms)==null?void 0:O.toString())!=null?K:""}}else x.shared_post_id&&(W.sharedPostAttachment={postId:x.shared_post_id});x.tagged_video_id&&(W.postCreationData={taggedVideoId:x.tagged_video_id});x.access_restrictions&&(typeof x.access_restrictions==="number"&&(P=x.access_restrictions,W.accessRestrictions={restriction:P!==1&&P===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof x.access_restrictions==="string"&&
(W.accessRestrictionsParams=x.access_restrictions));x.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=x.scheduled_publish_time_sec.toString())};var zL=function(){};
_.A(zL,QR);zL.prototype.getApiPaths=function(){return H6M};
zL.prototype.getExtension=function(W){return _.Q(W,wzk)};
zL.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.decorateMessageParams&&(W.params=P.decorateMessageParams);x.text&&(W.text=x.text)};var GL=function(){};
_.A(GL,QR);GL.prototype.getApiPaths=function(){return xoP};
GL.prototype.getExtension=function(W){return _.Q(W,Mez)};
GL.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;x.video_id&&(W.videoId=x.video_id)};var EC=function(){};
_.A(EC,QR);EC.prototype.getApiPaths=function(){return YNm};
EC.prototype.getExtension=function(W){return _.Q(W,_.Y6)};
EC.prototype.JSC$11808_buildRequest=function(W,P,x){x.suggestions_query&&(W.input=x.suggestions_query)};var gV=function(){};
_.A(gV,QR);gV.prototype.getApiPaths=function(){return khP};
gV.prototype.getExtension=function(W){return _.Q(W,$YZ)};
gV.prototype.JSC$11808_buildRequest=function(W,P,x){x.comment_text!==void 0&&(W.commentText=x.comment_text);x.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=x.scheduled_publish_time_sec.toString());W.updateBackstagePostParams=P.updateBackstagePostParams};var Dp=function(){};
_.A(Dp,QR);Dp.prototype.getApiPaths=function(){return Oe};
Dp.prototype.getExtension=function(W){return _.Q(W,_.gL)};
Dp.prototype.JSC$11808_buildRequest=function(W,P,x){x.formData&&(W.formData=x.formData);P.token?W.continuation=P.token:P.continuationTokenKey&&(x=_.Xe().getState(),P=_.Jb(x.entities,"continuationTokenEntity",P.continuationTokenKey))&&(W.continuation=String(P.continuationToken))};
var HVp=function(){};
_.A(HVp,QR);_.J=HVp.prototype;_.J.getApiPaths=function(){return Oe};
_.J.getExtension=function(W){return _.Q(W,_.KL)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$11815_getStoreKey=function(W){if((W=this.getExtension(W))&&W.browseId){var P={browseId:W.browseId};W.browseEndpointContextSupportedConfigs&&(P.browseEndpointContextSupportedConfigs=JSON.stringify(W.browseEndpointContextSupportedConfigs));W.params&&(P.params=W.params);W.query&&(P.query=W.query);return _.ka("browse",P)}};
_.J.JSC$11808_buildRequest=function(W,P,x){P.browseId&&(W.browseId=P.browseId);P.params&&(W.params=P.params);P.query&&(W.query=P.query);x.formData?W.formData=x.formData:P.formData&&(W.formData=P.formData);P.browseId==="FEsubscriptions"&&_.SI().getFlag(155)&&(W.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");P.browseId==="SPaccount_playback"&&(x=_.SI(),W.formData||(W.formData={}),W.formData.accountSettingsFormData={flagCaptionsDefaultOff:x.getFlag(65),flagAutoCaptionsDefaultOn:x.getFlag(66),
flagDisableInlinePreview:x.getFlag(186),flagAudioDescriptionDefaultOn:x.getFlag(198)});if(P.browseId==="FEwhat_to_watch"){x=_.SI();var I=x.getFlag(196);x.getFlag(197)&&(W.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:I}}})}P.browseId==="FEwhat_to_watch"&&(P=_.SI().getFlag(186),W.inlineSettingStatus=P?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.J.getRequestConfig=function(W,P){P=P===void 0?{}:P;var x={};if(W=this.JSC$11815_getStoreKey(W,P))x.storeStrategy={storeKey:W,disableCache:P.disableCache};_.p("web_log_browse_ticks_ks")||(x.requestTick="br_s",x.responseTick="br_r");return x};var M6=function(){};
_.A(M6,QR);M6.prototype.getApiPaths=function(){return jsm};
M6.prototype.getExtension=function(W){return _.Q(W,RRk)};
M6.prototype.JSC$11808_buildRequest=function(W,P,x){W.legacyYoutubeChannelUsername=x.legacyYouTubeChannelUsername||"";W.legacyYoutubeChannelPassword=x.legacyYouTubeChannelPassword||""};var $I=function(){};
_.A($I,QR);$I.prototype.getApiPaths=function(){return Doi};
$I.prototype.getExtension=function(W){return _.Q(W,kep)};
$I.prototype.JSC$11808_buildRequest=function(W,P,x){x.recaptcha_response_token&&(W.recaptchaResponseToken=x.recaptcha_response_token);x.channel_id&&(W.channelId=x.channel_id)};var wV=function(){};
_.A(wV,QR);wV.prototype.getApiPaths=function(){return Uob};
wV.prototype.getExtension=function(W){return _.Q(W,Tgw)};
wV.prototype.JSC$11808_buildRequest=function(W,P,x){P.externalChannelId&&(W.externalChannelId=P.externalChannelId);x.handle&&(W.handleUpdate={handle:x.handle},P.handleEditSource&&(W.handleUpdate.handleEditSource=P.handleEditSource))};var hI=function(){};
_.A(hI,QR);hI.prototype.getApiPaths=function(){return lFZ};
hI.prototype.getExtension=function(W){return _.Q(W,n_Z)};
hI.prototype.JSC$11808_buildRequest=function(W,P,x){P.request&&(W.channelId=P.request.channelId);var I;if(x==null?0:(I=x.uploadDefaults)==null?0:I.emojiReactionSet)W.uploadDefaultsRequest||(W.uploadDefaultsRequest={}),W.uploadDefaultsRequest.emojiReactionSet=x.uploadDefaults.emojiReactionSet};var Hl=function(){};
_.A(Hl,QR);Hl.prototype.getApiPaths=function(){return ikm};
Hl.prototype.getExtension=function(W){return _.Q(W,UYl)};
Hl.prototype.JSC$11808_buildRequest=function(W,P,x){P.externalChannelId&&(W.externalChannelId=P.externalChannelId);P.channelHandleEntityKey&&(W.channelHandleEntityKey=P.channelHandleEntityKey);P.handleEditSource&&(W.handleEditSource=P.handleEditSource);x.handle?W.handle=x.handle:x.name&&(W.name=x.name)};var ec=function(){};
_.A(ec,QR);ec.prototype.getApiPaths=function(){return AeM};
ec.prototype.getExtension=function(W){return _.Q(W,vZd)};
ec.prototype.JSC$11808_buildRequest=function(W,P){P.actions?W.actions=P.actions:P.action&&(W.actions=[P.action])};var cl=function(){};
_.A(cl,QR);cl.prototype.getApiPaths=function(){return zTZ};
cl.prototype.getExtension=function(W){return _.Q(W,_.gL)};
cl.prototype.JSC$11808_buildRequest=function(W,P){P.token&&(W.continuation=P.token)};var aJ=function(){};
_.A(aJ,QR);aJ.prototype.getApiPaths=function(){return WAA};
aJ.prototype.getExtension=function(W){return _.Q(W,_.gL)};
aJ.prototype.JSC$11808_buildRequest=function(W,P){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";P.token&&(W.fetchCommentsParams={continuation:P.token})};var bH=function(){};
_.A(bH,QR);bH.prototype.getApiPaths=function(){return MxP};
bH.prototype.getExtension=function(W){return _.Q(W,s9W)};
bH.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.createReplyParams&&(W.createReplyParams=P.createReplyParams);P.commentText&&(W.commentText=_.kz(P.commentText));x.comment_text&&(W.commentText=x.comment_text);x.image_blob_id&&(W.imageAttachment={encryptedBlobId:x.image_blob_id});x.botguard_response&&(W.botguardResponse=x.botguard_response)};
_.N1.Object.defineProperties(bH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kI=function(){};
_.A(kI,QR);kI.prototype.getApiPaths=function(){return $HM};
kI.prototype.getExtension=function(W){return _.Q(W,_.d3Z)};
kI.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.createCommentParams&&(W.createCommentParams=P.createCommentParams);P.commentText&&(W.commentText=_.kz(P.commentText));P.videoPositionMention&&(W.videoPositionMention=P.videoPositionMention);P.sources&&(W.sources=P.sources);x.comment_text&&(W.commentText=x.comment_text);x.attached_video_id?W.videoAttachment={videoId:x.attached_video_id}:x.poll_options?W.pollAttachment={choices:x.poll_options}:x.image_blob_id?W.imageAttachment=
{encryptedBlobId:x.image_blob_id}:x.shared_post_id&&(W.sharedPostAttachment={postId:x.shared_post_id});x.access_restrictions&&typeof x.access_restrictions==="number"&&(P=x.access_restrictions,W.accessRestrictions={restriction:P!==1&&P===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});x.botguard_response&&(W.botguardResponse=x.botguard_response)};
_.N1.Object.defineProperties(kI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UC=function(){};
_.A(UC,QR);UC.prototype.getApiPaths=function(){return XUP};
UC.prototype.getExtension=function(W){return _.Q(W,VOk)};
UC.prototype.JSC$11808_buildRequest=function(W,P,x){P.commentText&&(W.replyText=_.kz(P.commentText));x.comment_text&&(W.replyText=x.comment_text);W.updateReplyParams=P.updateReplyParams};
_.N1.Object.defineProperties(UC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Xr=function(){};
_.A(Xr,QR);Xr.prototype.getApiPaths=function(){return fFb};
Xr.prototype.getExtension=function(W){return _.Q(W,m3c)};
Xr.prototype.JSC$11808_buildRequest=function(W,P,x){P.commentText&&(W.commentText=_.kz(P.commentText));x.comment_text&&(W.commentText=x.comment_text);W.updateCommentParams=P.updateCommentParams};
_.N1.Object.defineProperties(Xr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fe=function(){};
_.A(fe,QR);fe.prototype.getApiPaths=function(){return Ny3};
fe.prototype.getExtension=function(W){return _.Q(W,I9i)};
fe.prototype.JSC$11808_buildRequest=function(W,P){P.settings&&(W.settings=P.settings)};var N6=function(){};
_.A(N6,QR);N6.prototype.getApiPaths=function(){return Tbb};
N6.prototype.getExtension=function(W){return _.Q(W,XIm)};
N6.prototype.JSC$11808_buildRequest=function(W,P){P.channelCreationToken&&(W.channelCreationToken=P.channelCreationToken);P.source&&(W.source=P.source)};var lH=function(){};
_.A(lH,QR);lH.prototype.getApiPaths=function(){return DHM};
lH.prototype.getExtension=function(W){return _.Q(W,l2Z)};
lH.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;if(x.name&&(x.given_name||x.family_name))W=new _.mW("channel creation cannot set both GAIA and YouTube names",P),_.G$(W);else{if(P.zeroStepChannelCreationParams){if(!x.comment_text){W=new _.mW("zero_step_create_comment_params but no zero_step_texts",P);_.G$(W);return}W.zeroStepChannelCreationParams=P.zeroStepChannelCreationParams;W.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
x.comment_text,x.botguard_response&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=x.botguard_response))}W.channelCreationToken=P.channelCreationToken;x.given_name&&(W.givenName=x.given_name);x.family_name&&(W.familyName=x.family_name);P.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(W.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(x.name||x.handle||x.avatar_url||x.encryptedBlobId||x.isNameChanged!==void 0||x.isHandleChanged!==void 0||x.isDefaultProfilePhoto!==
void 0||x.obakeImageSource)W.overrideChannelCreationParams={},x.name&&(W.overrideChannelCreationParams.name=x.name),x.handle&&(W.overrideChannelCreationParams.handle=x.handle),x.avatar_url&&(W.overrideChannelCreationParams.avatarUrl=x.avatar_url),x.encryptedBlobId&&(W.overrideChannelCreationParams.blobEncryptionId=x.encryptedBlobId),x.enableIdentityForAllChannelCreationDialog&&(x.encryptedBlobId?W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
x.isDefaultProfilePhoto!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=x.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),x.isNameChanged!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationNameTag=x.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),x.isHandleChanged!==
void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=x.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),x.obakeImageSource&&(W.overrideChannelCreationParams.obakeImageSourceType=x.obakeImageSource))}};var TL=function(){};
_.A(TL,QR);TL.prototype.getApiPaths=function(W){return(W=this.getExtension(W))&&W.status==="DISLIKE"?b6m:W&&W.status==="INDIFFERENT"?AJw:SNp};
TL.prototype.getExtension=function(W){return _.Q(W,_.i6)};
TL.prototype.JSC$11808_buildRequest=function(W,P){P.target&&(W.target=P.target);if(P=this.getParams(P))W.params=P};
TL.prototype.getParams=function(W){switch(W==null?void 0:W.status){case "DISLIKE":return W.dislikeParams;case "INDIFFERENT":return W.removeLikeParams;default:return W==null?void 0:W.likeParams}};var rV=function(){};
_.A(rV,QR);rV.prototype.getApiPaths=function(){return HkW};
rV.prototype.getExtension=function(W){return _.Q(W,Acm)};
rV.prototype.JSC$11808_buildRequest=function(W,P){P.settingItemId&&(W.settingItemId=P.settingItemId);P.stringValue!=null&&P.stringValue!==void 0?W.newValue={stringValue:P.stringValue}:P.intValue?W.newValue={intValue:P.intValue}:P.boolValue!==null&&P.boolValue!==void 0?W.newValue={boolValue:P.boolValue}:(W=new _.mW("Unknown value type for SetSettingEndpoint.",P),_.G$(W))};var iH=function(){};
_.A(iH,QR);iH.prototype.getApiPaths=function(){return cJm};
iH.prototype.getExtension=function(W){return _.Q(W,XAd)||void 0};
iH.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.channelIds&&(W.channelIds=P.channelIds);P.siloName&&(W.siloName=P.siloName);P.params&&(W.params=P.params);x.botguardResponse&&(W.botguardResponse=x.botguardResponse);x.feature&&(W.clientFeature=x.feature)};
_.N1.Object.defineProperties(iH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RJ=function(){};
_.A(RJ,QR);RJ.prototype.getApiPaths=function(){return bkw};
RJ.prototype.getExtension=function(W){return _.Q(W,zEA)||void 0};
RJ.prototype.JSC$11808_buildRequest=function(W,P){P.channelIds&&(W.channelIds=P.channelIds);P.siloName&&(W.siloName=P.siloName);P.params&&(W.params=P.params)};
_.N1.Object.defineProperties(RJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fr=function(W){this.shareClientParamsProvider=W};
_.A(Fr,QR);Fr.prototype.getApiPaths=function(){return Okz};
Fr.prototype.getExtension=function(W){return _.Q(W,Fad)||_.Q(W,_.qjl)||_.Q(W,R2c)};
Fr.prototype.JSC$11808_buildRequest=function(W,P){P.serializedShareEntity&&(W.serializedSharedEntity=P.serializedShareEntity);if(P.clientParamIdentifier){var x;if((x=this.shareClientParamsProvider)==null?0:x.clientParams.has(P.clientParamIdentifier)){x=this.shareClientParamsProvider;P=P.clientParamIdentifier;var I=x.clientParams.get(P);I&&x.clientParams.delete(P);W.clientParams=I}}};
Fr[qC]=[x4Z];var q6=function(){};
_.A(q6,QR);q6.prototype.getApiPaths=function(){return VxA};
q6.prototype.getExtension=function(W){return _.Q(W,B0Z)};
q6.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var Le=function(){};
_.A(Le,QR);Le.prototype.getApiPaths=function(){return kCp};
Le.prototype.getExtension=function(W){return _.Q(W,IGc)};
Le.prototype.JSC$11808_buildRequest=function(W,P){P.dismissal&&(W.items=[P.dismissal])};
_.N1.Object.defineProperties(Le.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wk=function(){};
_.A(Wk,QR);Wk.prototype.getApiPaths=function(){return ZkA};
Wk.prototype.getExtension=function(W){return _.Q(W,_.hM)||void 0};
Wk.prototype.JSC$11808_buildRequest=function(W,P,x){W.feedbackTokens=[];P.feedbackToken&&W.feedbackTokens.push(P.feedbackToken);if(P=P.cpn||x.cpn)W.feedbackContext={cpn:P};W.isFeedbackTokenUnencrypted=!!x.is_feedback_token_unencrypted;W.shouldMerge=!1;x.extra_feedback_tokens&&(W.shouldMerge=!0,W.feedbackTokens=W.feedbackTokens.concat(x.extra_feedback_tokens))};
_.N1.Object.defineProperties(Wk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pk=function(){};
_.A(Pk,QR);Pk.prototype.getApiPaths=function(){return ZkA};
Pk.prototype.getExtension=function(W){return _.Q(W,_.Y6)};
Pk.prototype.JSC$11808_buildRequest=function(W,P,x){x.feedback_tokens&&(W.feedbackTokens=x.feedback_tokens,W.shouldMerge=!0)};
_.N1.Object.defineProperties(Pk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xG=function(){};
_.A(xG,QR);xG.prototype.getApiPaths=function(){return ZkA};
xG.prototype.getExtension=function(W){return _.Q(W,P2m)};
xG.prototype.JSC$11808_buildRequest=function(W,P){P.undoToken&&(W.feedbackTokens=[P.undoToken]);P.isUndoTokenUnencrypted&&(W.isFeedbackTokenUnencrypted=P.isUndoTokenUnencrypted)};
_.N1.Object.defineProperties(xG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ic=function(){};
_.A(Ic,QR);Ic.prototype.getApiPaths=function(){return RfW};
Ic.prototype.getExtension=function(W){return _.Q(W,WzA)};
Ic.prototype.JSC$11808_buildRequest=function(W,P){P.nextEndpoint&&_.Q(P.nextEndpoint,_.aR)?W.nextEndpoint={urlEndpoint:_.Q(P.nextEndpoint,_.aR)}:P.nextEndpoint&&_.Q(P.nextEndpoint,_.U_)&&(W.nextEndpoint={watchEndpoint:_.Q(P.nextEndpoint,_.U_)});P.setRacy&&(W.setRacy=P.setRacy);P.setControvercy&&(W.setControvercy=P.setControvercy)};var OR=function(W){this.JSC$15576_storeWithEntities=W};
_.A(OR,QR);OR.prototype.getApiPaths=function(){return Xvd};
OR.prototype.getExtension=function(W){return _.Q(W,Ckp)};
OR.prototype.JSC$11808_buildRequest=function(W,P){P.flowId&&(W.flowId=P.flowId);P.targetId&&(W.targetId=P.targetId);P.continuation&&(W.continuation=P.continuation);var x=P.flowStateEntityKey;if(P.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&x&&this.JSC$15576_storeWithEntities){var I;if(P=(I=this.JSC$15576_storeWithEntities.getState())==null?void 0:I.entities)if(I=_.Pu(x).entityType,I=_.Jb(P,I,x))W.flowState=I,W.flowStateEntityKey=x}};
_.N1.Object.defineProperties(OR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
OR[qC]=[S_];var eAm=function(){};
_.A(eAm,QR);_.J=eAm.prototype;_.J.getApiPaths=function(){return KAb};
_.J.JSC$11815_getStoreKey=function(){return _.ka("guide")};
_.J.getRequestConfig=function(){var W=this.JSC$11815_getStoreKey(),P;W&&(P={storeStrategy:{storeKey:W}});return P};
_.J.isNavigationCommand=function(){return!0};
_.J.getExtension=function(W){return _.Q(W,_.Y6)};
_.J.JSC$11808_buildRequest=function(W){W.fetchLiveState=!0};var JX=function(){};
_.A(JX,QR);JX.prototype.getApiPaths=function(){return QsP};
JX.prototype.getExtension=function(W){return _.Q(W,oZl)};
JX.prototype.JSC$11808_buildRequest=function(){};var Bk=function(){};
_.A(Bk,QR);Bk.prototype.getApiPaths=function(){return Ccl};
Bk.prototype.getExtension=function(W){return _.Q(W,Std)};
Bk.prototype.JSC$11808_buildRequest=function(){};var n3=function(){};
_.A(n3,QR);n3.prototype.getApiPaths=function(){return mH3};
n3.prototype.getExtension=function(W){return _.Q(W,_.gL)};
n3.prototype.JSC$11808_buildRequest=function(W,P){P.token&&(W.continuation=P.token);var x,I;W==null||(x=W.context)==null||(I=x.user)==null||delete I.onBehalfOfUser};
n3.prototype.getRequestConfig=function(W){var P={},x;if(((x=this.getExtension(W))==null?void 0:x.sessionIndex)!==void 0){var I;P={authStrategy:{sessionIndex:(I=this.getExtension(W))==null?void 0:I.sessionIndex}}}return P};var du=function(){};
_.A(du,QR);du.prototype.JSC$11808_getRequest=function(W){var P=this.getExtension(W),x=W="";if(P==null?0:P.popup)W="true";if(P==null?0:P.disableSignout)x="true";P={};return{input:"/getAccountSwitcherEndpoint",requestShell:bO("/getAccountSwitcherEndpoint","GET",(P["X-YouTube-Delegation-Context"]=_.$$("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),P["X-YouTube-Account-Switcher-Popup"]=W,P["X-YouTube-Account-Switcher-Disable-Signout"]=x,P)),innerTubeRequest:{}}};
du.prototype.getApiPaths=function(){return[]};
du.prototype.getExtension=function(W){return _.Q(W,_.QJU)};
du.prototype.JSC$11808_buildRequest=function(){};var sR=function(){};
_.A(sR,QR);sR.prototype.JSC$11808_getRequest=function(W){var P="/cross_account_channel_transfer";(W=this.getExtension(W))&&(P=CVd(P,{target_session:W.targetSessionIndex,source_rapt:W.sourceRapt,rapt:W.targetRapt}));return{input:P,requestShell:bO(P,"GET"),innerTubeRequest:{}}};
sR.prototype.getApiPaths=function(){return[]};
sR.prototype.getExtension=function(W){return _.Q(W,Y1z)};
sR.prototype.JSC$11808_buildRequest=function(){};var vk=function(){};
_.A(vk,QR);vk.prototype.getApiPaths=function(){return fip};
vk.prototype.isNavigationCommand=function(){return!0};
vk.prototype.getExtension=function(W){return _.Q(W,_.Y6)};
vk.prototype.JSC$11808_buildRequest=function(W){var P=_.SI().get("gsml","");P&&(W.safetyModeLockerObfuscatedGaiaId=P);W.userInterfaceTheme=_.gT(!0);_.Dz()?W.deviceTheme="DEVICE_THEME_SELECTED":_.pbx()?W.deviceTheme="DEVICE_THEME_SUPPORTED":W.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var m5=function(){};
_.A(m5,QR);m5.prototype.getApiPaths=function(){return mH3};
m5.prototype.getExtension=function(W){return _.Q(W,y8c)};
m5.prototype.JSC$11808_buildRequest=function(W,P){if(P&&P.requestType&&(W.requestType=P.requestType,P.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||P.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var x=P.nextUrl;x&&(_.zyA(x)||ro(x))&&(W.nextNavendpoint={urlEndpoint:{url:x}})}P&&P.channelSwitcherQuery&&(W.channelSwitcherQuery=P.channelSwitcherQuery);P&&P.triggerChannelCreation&&(W.triggerChannelCreation=P.triggerChannelCreation);var I;if(P==null?0:(I=P.contentOwnerConfig)==
null?0:I.externalContentOwnerId)W.contentOwnerConfig=P.contentOwnerConfig;W.callCircumstance=P&&P.requestType&&P.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var O,B;P=W==null?void 0:(O=W.context)==null?void 0:(B=O.user)==null?void 0:B.onBehalfOfUser;if(P!==void 0){W.obfuscatedSelectedGaiaId=P;var Y,K;W==null||(Y=W.context)==null||(K=Y.user)==null||delete K.onBehalfOfUser}var Z,d;if(O=W==null?void 0:(Z=W.context)==null?void 0:(d=Z.user)==null?
void 0:d.serializedDelegationContext)W.selectedSerializedDelegationContext=O};var V_=function(){};
_.A(V_,QR);V_.prototype.getApiPaths=function(){return IFc};
V_.prototype.getExtension=function(W){return _.Q(W,OWM)};
V_.prototype.JSC$11808_buildRequest=function(W,P){P.profileOwnerExternalChannelId&&(W.profileOwnerExternalChannelId=P.profileOwnerExternalChannelId);P.profileCardContext&&(W.profileCardContext=P.profileCardContext)};var tX=function(){};
_.A(tX,QR);tX.prototype.getApiPaths=function(){return txZ};
tX.prototype.getExtension=function(W){return _.Q(W,Lap)};
tX.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var p3=function(){};
_.A(p3,QR);p3.prototype.getApiPaths=function(){return g9w};
p3.prototype.getExtension=function(W){return _.Q(W,_.Sjz)};
p3.prototype.JSC$11808_buildRequest=function(W,P){if(P=P.createBroadcastRequest)W.useMasks=P.useMasks,W.broadcastType=P.broadcastType,W.broadcastSource=P.broadcastSource,W.broadcastMetadata=P.broadcastMetadata,W.broadcastMetadataMask=P.broadcastMetadataMask,W.videoMetadata=P.videoMetadata,W.videoMetadataMask=P.videoMetadataMask,W.liveChatSettingsUpdate=P.liveChatSettingsUpdate,W.liveChatSettingsUpdateMask=P.liveChatSettingsUpdateMask,W.cloneVideoId=P.cloneVideoId,W.cloneWithOverrides=P.cloneWithOverrides,
W.targetEntity=P.targetEntity,W.scheduledRedirectMetadata=P.scheduledRedirectMetadata};var jG=function(){};
_.A(jG,QR);jG.prototype.getApiPaths=function(){return wvl};
jG.prototype.getExtension=function(W){return _.Q(W,SPd)};
jG.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.params&&(W.params=P.params);x.questionText&&(W.questionText=x.questionText);x.optionText&&x.optionText.length>0&&(W.optionText=x.optionText)};var Q_=function(){};
_.A(Q_,QR);Q_.prototype.getApiPaths=function(){return eTl};
Q_.prototype.getExtension=function(W){return _.Q(W,Zbl)};
Q_.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var C3=function(){};
_.A(C3,QR);C3.prototype.getApiPaths=function(){return i6l};
C3.prototype.getExtension=function(W){return _.Q(W,n1m)};
C3.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var AX=function(){};
_.A(AX,QR);AX.prototype.getApiPaths=function(){return FXi};
AX.prototype.getExtension=function(W){return _.Q(W,YPd)};
AX.prototype.JSC$11808_buildRequest=function(W,P,x){P.params&&(W.params=P.params);P.continuation&&(W.continuation=P.continuation);x.currentPlayerState&&x.currentPlayerState.playerOffsetMs&&(W.currentPlayerState={playerOffsetMs:x.currentPlayerState.playerOffsetMs.toString()})};var z0=function(){};
_.A(z0,QR);z0.prototype.getApiPaths=function(){return q3m};
z0.prototype.getExtension=function(W){return _.Q(W,Bik)};
z0.prototype.JSC$11808_buildRequest=function(W,P,x){P.params&&(W.params=P.params);x.continuation&&(W.continuation=x.continuation);"hidden"in x&&(W.webClientInfo={isDocumentHidden:x.hidden});x.isInvalidationTimeoutRequest&&(W.isInvalidationTimeoutRequest=x.isInvalidationTimeoutRequest);x.invalidationPayload&&(P=JVc(_.up(iP(x.invalidationPayload))),W.invalidationPayloadLastPublishAtUsec=wg(P,2));x.reloadActionPanel&&(W.reloadActionPanel=x.reloadActionPanel);x.fullReload&&(W.fullReload=x.fullReload);
x.currentPlayerState&&(W.currentPlayerState=x.currentPlayerState)};var G0=function(){};
_.A(G0,QR);G0.prototype.getApiPaths=function(){return uOi};
G0.prototype.getExtension=function(W){return _.Q(W,o1Z)};
G0.prototype.JSC$11808_buildRequest=function(W,P){W.params=P.params};var ER=function(){};
_.A(ER,QR);ER.prototype.getApiPaths=function(){return RTl};
ER.prototype.getExtension=function(W){return _.Q(W,dcM)};
ER.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var gu=function(){};
_.A(gu,QR);gu.prototype.getApiPaths=function(){return LXk};
gu.prototype.getExtension=function(W){return _.Q(W,sId)};
gu.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var Dj=function(){};
_.A(Dj,QR);Dj.prototype.getApiPaths=function(){return doA};
Dj.prototype.getExtension=function(W){return _.Q(W,uqM)};
Dj.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var M8=function(){};
_.A(M8,QR);M8.prototype.getApiPaths=function(){return vXZ};
M8.prototype.getExtension=function(W){return _.Q(W,dCW)};
M8.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var $G=function(){};
_.A($G,QR);$G.prototype.getApiPaths=function(){return zfw};
$G.prototype.getExtension=function(W){return _.Q(W,xcA)};
$G.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var wu=function(){};
_.A(wu,QR);wu.prototype.getApiPaths=function(){return wUd};
wu.prototype.getExtension=function(W){return _.Q(W,_.spz)};
wu.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.params&&(W.params=P.params);x.client_message_id&&(W.clientMessageId=x.client_message_id);x.recaptcha_token&&(W.recaptchaToken=x.recaptcha_token);x.rich_message&&x.rich_message.text_segments?(P=x.rich_message.text_segments.map(function(I){var O={};I.text&&(O.text=I.text);I.emoji_id&&(O.emojiId=I.emoji_id);return O}),W.richMessage={textSegments:P}):x.message&&(W.message=x.message);
x.currentPlayerState&&(W.currentPlayerState=x.currentPlayerState)};var hX=function(){};
_.A(hX,QR);hX.prototype.getApiPaths=function(){return hfW};
hX.prototype.getExtension=function(W){return _.Q(W,v1P)};
hX.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var Hk=function(){};
_.A(Hk,QR);Hk.prototype.getApiPaths=function(){return aFA};
Hk.prototype.getExtension=function(W){return _.Q(W,Vtb)};
Hk.prototype.JSC$11808_buildRequest=function(W,P,x){P.isUserInitiated&&(W.isUserInitiated=P.isUserInitiated);P.initiationSource&&(W.initiationSource=P.initiationSource);x.locationInfo&&(W.context.client.locationInfo=x.locationInfo)};var eG=function(){};
_.A(eG,QR);eG.prototype.getApiPaths=function(){return sMi};
eG.prototype.getExtension=function(W){return _.Q(W,ucW)};
eG.prototype.JSC$11808_buildRequest=function(W,P,x){P.metadataUpdateRequest&&(P=P.metadataUpdateRequest,W.encryptedVideoId=P.encryptedVideoId,P.liveChat&&(P=P.liveChat,W.liveChat||(W.liveChat={}),P.performAsExternalChannelId&&(W.liveChat.performAsExternalChannelId=P.performAsExternalChannelId),P.source&&(W.liveChat.source=P.source)));var I;if(x==null?0:(I=x.liveChat)==null?0:I.liveChatSettings)W.liveChat||(W.liveChat={}),x=x.liveChat.liveChatSettings,W.liveChat.newLiveChatSettings=x,W.liveChat.newLiveChatSettingsMask||
(W.liveChat.newLiveChatSettingsMask={}),x.emojiReactionSet&&(W.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ck=function(){};
_.A(ck,QR);ck.prototype.getApiPaths=function(){return rJA};
ck.prototype.getExtension=function(W){return _.Q(W,_.GNl)};
ck.prototype.JSC$11808_buildRequest=function(W,P,x){x.continuation?W.continuation=x.continuation:P.videoId&&(W.videoId=P.videoId);x.clientParams&&(W.clientParams=x.clientParams)};var ac=function(){};
_.A(ac,QR);ac.prototype.getApiPaths=function(){return WAA};
ac.prototype.getExtension=function(W){return _.Q(W,_.g6)};
ac.prototype.JSC$11808_buildRequest=function(W,P){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.fetchCommentsParams={};P.videoId&&(W.fetchCommentsParams.encryptedVideoId=P.videoId);P.postId&&(W.fetchCommentsParams.postId=P.postId);P.externalChannelId&&(W.fetchCommentsParams.externalChannelId=P.externalChannelId);P.linkedCommentId&&(W.fetchCommentsParams.linkedCommentId=P.linkedCommentId);(0,_.jU.isEmpty)(W.fetchCommentsParams)&&delete W.fetchCommentsParams};var bu=function(){};
_.A(bu,QR);bu.prototype.getApiPaths=function(){return Oe};
bu.prototype.JSC$11808_buildRequest=function(W){W.browseId="FEnotifications_inbox"};
bu.prototype.getExtension=function(W){return _.Q(W,_.Y6)};var kG=function(){};
_.A(kG,QR);kG.prototype.getApiPaths=function(){return WAA};
kG.prototype.JSC$11808_buildRequest=function(W,P){P.signal==="GET_NOTIFICATIONS_MENU"&&(W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");P.ctoken&&(W.ctoken=P.ctoken)};
var c_m=function(){};
_.A(c_m,kG);c_m.prototype.getExtension=function(W){return _.Q(W,_.Y6)};
var a7M=function(){};
_.A(a7M,kG);a7M.prototype.getExtension=function(W){return _.Q(W,Fep)};var UR=function(){};
_.A(UR,QR);UR.prototype.getApiPaths=function(){return nXW};
UR.prototype.getExtension=function(W){return _.Q(W,_.Y6)};
UR.prototype.JSC$11808_buildRequest=function(){};var XX=function(){};
_.A(XX,QR);XX.prototype.getApiPaths=function(){return moW};
XX.prototype.getExtension=function(W){return _.Q(W,j9W)||void 0};
XX.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params);P.secondaryParams&&(W.secondaryParams=P.secondaryParams)};var f3=function(){};
_.A(f3,QR);f3.prototype.getApiPaths=function(){return Vfw};
f3.prototype.getExtension=function(W){return _.Q(W,WsP)};
f3.prototype.JSC$11808_buildRequest=function(W,P){P.undo&&(W.undo=P.undo);P.serializedOptOut&&(W.serializedOptOut=P.serializedOptOut);P.serializedRecordInteractionsRequest&&(W.serializedRecordInteractionsRequest=P.serializedRecordInteractionsRequest)};var N8=function(){};
_.A(N8,QR);N8.prototype.getApiPaths=function(){return jMl};
N8.prototype.getExtension=function(W){return _.Q(W,Ped)};
N8.prototype.JSC$11808_buildRequest=function(W,P){P.serializedInteractionsRequest&&(W.serializedRecordNotificationInteractionsRequest=P.serializedInteractionsRequest)};var lu=function(){};
_.A(lu,QR);lu.prototype.getApiPaths=function(){return G9U};
lu.prototype.getExtension=function(W){return _.Q(W,Mco)};
lu.prototype.JSC$11808_buildRequest=function(W,P,x){P=P===void 0?{}:P;x=x===void 0?{}:x;P.videoId?W.videoId=P.videoId:P.playlistId&&(W.playlistId=P.playlistId);var I,O=(I=P.offlineWebClientEligibility)!=null?I:x.offlineWebClientEligibility;O&&(W.offlineWebClientEligibility=O);var B;if(I=(B=P.preferredFormatType)!=null?B:x.preferredFormatType)W.preferredFormatType=I;var Y;if(B=(Y=P.lastOfflineQualitySettingsSavedMs)!=null?Y:x.lastOfflineQualitySettingsSavedMs)W.lastOfflineQualitySettingsSavedMs=B;
P.params&&(W.params=P.params)};var T0=function(){};
_.A(T0,QR);T0.prototype.getApiPaths=function(){return TN};
T0.prototype.getExtension=function(W){return _.Q(W,_.gL)};
T0.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.token&&(W.continuation=P.token);x.formData&&(W.formData=x.formData)};var ru=function(){};
_.A(ru,QR);ru.prototype.getApiPaths=function(){return TN};
ru.prototype.getExtension=function(W){return _.Q(W,Yjm)};
ru.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;W.continuation=x.continuation};var iu=function(){};
_.A(iu,QR);iu.prototype.getApiPaths=function(){return TN};
iu.prototype.getExtension=function(W){return _.Q(W,_.wh)};
iu.prototype.JSC$11808_buildRequest=function(W,P){var x,I=P.panelIdentifier||((x=P.identifier)==null?void 0:x.tag);I&&(W.panelId=I);var O;if((O=P.globalConfiguration)==null?0:O.params){var B;W.params=(B=P.globalConfiguration)==null?void 0:B.params}};
_.N1.Object.defineProperties(iu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Rc=function(){};
_.A(Rc,QR);Rc.prototype.getApiPaths=function(){return TN};
Rc.prototype.getExtension=function(W){return _.Q(W,N6c)};
Rc.prototype.JSC$11808_buildRequest=function(W,P){P.panelLoadingStrategy&&tCt(W,P.panelLoadingStrategy)};var FX=function(){};
_.A(FX,QR);FX.prototype.getApiPaths=function(){return TN};
FX.prototype.getExtension=function(W){return _.Q(W,oBk)};
FX.prototype.JSC$11808_buildRequest=function(W,P){P.loadingStrategy&&tCt(W,P.loadingStrategy)};var q8=function(){};
_.A(q8,QR);q8.prototype.getApiPaths=function(){return TN};
q8.prototype.getExtension=function(W){return _.Q(W,_.V2)};
q8.prototype.JSC$11808_buildRequest=function(W,P){P.panelLoadingStrategy&&tCt(W,P.panelLoadingStrategy)};var L3=function(){};
_.A(L3,QR);L3.prototype.getApiPaths=function(){return TN};
L3.prototype.getExtension=function(W){return _.Q(W,S8b)};
L3.prototype.JSC$11808_buildRequest=function(W,P){var x,I=(x=P.contentSourcePanelIdentifier)==null?void 0:x.tag;I&&(W.panelId=I);var O;if((O=P.globalConfiguration)==null?0:O.params){var B;W.params=(B=P.globalConfiguration)==null?void 0:B.params}};var Wt=function(){};
_.A(Wt,QR);Wt.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Wt.prototype.getExtension=function(W){return _.Q(W,uhl)};
Wt.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var Pt=function(){};
_.A(Pt,QR);Pt.prototype.getApiPaths=function(){return Tyc};
Pt.prototype.getExtension=function(W){return _.Q(W,vBi)};
Pt.prototype.JSC$11808_buildRequest=function(W,P){P.externalChannelId&&(W.externalChannelId=P.externalChannelId);P.superChatAction&&(W.superChatAction=P.superChatAction);P.superStickersAction&&(W.superStickersAction=P.superStickersAction)};var xe=function(){};
_.A(xe,QR);xe.prototype.getApiPaths=function(){return NbA};
xe.prototype.getExtension=function(W){return _.Q(W,ZwA)||_.Q(W,wlx)};
xe.prototype.JSC$11808_buildRequest=function(W,P){P.videoIds?W.videoIds=P.videoIds:P.videoId&&(W.videoIds=[P.videoId]);P.playlistId&&(W.playlistId=P.playlistId);P.params&&(W.params=P.params);W.excludeWatchLater=!1};var IF=function(){};
_.A(IF,QR);IF.prototype.getApiPaths=function(){return hTP};
IF.prototype.getExtension=function(W){return _.Q(W,_.eO)};
IF.prototype.JSC$11808_buildRequest=function(W,P,x){x.create_playlist_title?W.title=x.create_playlist_title:P.title&&(W.title=P.title);if(x.create_playlist_privacy_status&&typeof x.create_playlist_privacy_status==="number"){a:{var I=x.create_playlist_privacy_status;if(I!==0){if(I===1){I="PUBLIC";break a}if(I===2){I="UNLISTED";break a}}I="PRIVATE"}W.privacyStatus=I}else P.privacyStatus&&(W.privacyStatus=P.privacyStatus);x.create_playlist_description&&(W.description=x.create_playlist_description);P.videoIds&&
(W.videoIds=P.videoIds);P.params&&(W.params=P.params);P.sourcePlaylistId&&(W.sourcePlaylistId=P.sourcePlaylistId)};var Ob=function(){};
_.A(Ob,QR);Ob.prototype.getApiPaths=function(){return ceA};
Ob.prototype.getExtension=function(W){return _.Q(W,tOm)};
Ob.prototype.JSC$11808_buildRequest=function(W,P){W.playlistId=P.playlistId};var JA=function(){};
_.A(JA,QR);JA.prototype.getApiPaths=function(){return Pbz};
JA.prototype.getExtension=function(W){return _.Q(W,rZl)};
JA.prototype.JSC$11808_buildRequest=function(W,P){P.playlistId&&(W.playlistId=P.playlistId);P.params&&(W.params=P.params)};var Bt=function(){};
_.A(Bt,QR);Bt.prototype.getApiPaths=function(){return pUZ};
Bt.prototype.getExtension=function(W){return _.Q(W,_.Dy)||void 0};
Bt.prototype.JSC$11808_buildRequest=function(W,P){P.actions&&(W.actions=P.actions);P.params&&(W.params=P.params);P.playlistId&&(W.playlistId=P.playlistId)};var nF=function(){};
_.A(nF,QR);_.J=nF.prototype;_.J.getApiPaths=function(){return QMz};
_.J.getExtension=function(W){return _.Q(W,_.uS)};
_.J.JSC$11808_buildRequest=function(W,P){P.videoId&&(W.playerRequest={videoId:P.videoId},P.playerParams&&(W.playerRequest.params=P.playerParams),P.racyCheckOk&&(W.playerRequest.racyCheckOk=!!P.racyCheckOk),P.contentCheckOk&&(W.playerRequest.contentCheckOk=!!P.contentCheckOk));P.params&&(W.params=P.params);P.inputType&&(W.inputType=P.inputType);W.disablePlayerResponse=!0};
_.J.getRequestConfig=function(W){var P;(W=this.JSC$11815_getStoreKey(W))&&(P={storeStrategy:{storeKey:W}});_.p("web_log_reels_ticks")&&(P=P||{},P.requestTick="r_wrs",P.responseTick="r_wrr");return P};
_.J.JSC$11815_getStoreKey=function(W){W=this.getExtension(W);if(_.p("shorts_controller_retrieve_seedless_sequence_v2")){if((W==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.ka("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.p("web_prefetch_riw_for_next_video")||_.p("web_shorts_prefetch_service_enabled"))&&W!=null&&W.videoId){var P={videoId:W.videoId};W.params&&(P.params=W.params);return _.ka("reel_item_watch",P)}};var Ye=function(){};
_.A(Ye,QR);_.J=Ye.prototype;_.J.getApiPaths=function(){return CbM};
_.J.getExtension=function(W){return _.Q(W,_.uS)};
_.J.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;W.sequenceParams=P.sequenceParams;var I;((I=x)==null?0:I.contentPlaybackContext)&&_.p("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:x.contentPlaybackContext})};
_.J.JSC$11815_getStoreKey=function(W){if(_.p("shorts_controller_retrieve_seedless_sequence_v2")&&(W=this.getExtension(W),W==null?0:W.sequenceParams))return _.ka("reel_watch_sequence",{sequenceParams:W.sequenceParams})};
_.J.getRequestConfig=function(W){W=this.JSC$11815_getStoreKey(W);var P;W&&(P={storeStrategy:{storeKey:W}});_.p("reel_watch_sequence_request_log_ticks")&&(P=P||{},P.requestTick="r_wsrs",P.responseTick="r_wsrr",P.processorTick="r_wsrp");return P};
var ym=function(){};
_.A(ym,QR);ym.prototype.getApiPaths=function(){return CbM};
ym.prototype.getExtension=function(W){return _.Q(W,_.gL)};
ym.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.token&&(W.continuation=P.token);var I;((I=x)==null?0:I.contentPlaybackContext)&&_.p("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:x.contentPlaybackContext})};
ym.prototype.getRequestConfig=function(W){W=this.JSC$11815_getStoreKey(W);var P;W&&(P={storeStrategy:{storeKey:W}});_.p("reel_watch_sequence_request_log_ticks")&&(P=P||{},P.requestTick="r_wsrs",P.responseTick="r_wsrr",P.processorTick="r_wsrp");return P};var KF=function(){};
_.A(KF,QR);KF.prototype.getApiPaths=function(){return UHd};
KF.prototype.getExtension=function(W){return _.Q(W,_.Q1c)};
KF.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.flagAction&&(W.action=P.flagAction);P.flagRequestType&&(W.flagRequestType=P.flagRequestType);P.additionalDetailCheckboxChecked&&(W.additionalDetailCheckboxChecked=P.additionalDetailCheckboxChecked);P.legalCheckboxChecked&&(W.legalCheckboxChecked=P.legalCheckboxChecked);P={};x.flag_issue_type!==void 0&&(P.issue=x.flag_issue_type);x.flag_affiliation!==void 0&&(P.affiliation=x.flag_affiliation);x.flag_full_name&&(P.fullName=x.flag_full_name);
Object.keys(P).length&&(W.legalReportDetails=P);if(x.flag_description||x.text)W.userComments=x.flag_description||x.text;P={};x.minutes!==void 0&&x.seconds!==void 0&&(P.minutes=x.minutes,P.seconds=x.seconds);x.vss_id&&(P.vssId=x.vss_id);Object.keys(P).length&&(W.videoReportDetails=P);P={};x.video_ids&&(P.videoIds=x.video_ids);x.impersonated_channel_url&&(P.impersonatedChannelUrl=x.impersonated_channel_url);Object.keys(P).length&&(W.channelAbuseReportDetails=P)};
_.N1.Object.defineProperties(KF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ZU=function(){};
_.A(ZU,QR);ZU.prototype.getApiPaths=function(){return reP};
ZU.prototype.getExtension=function(W){return _.Q(W,Fzk)};
ZU.prototype.JSC$11808_buildRequest=function(W,P){P.blockedForKidsContent&&(W.blockedForKidsContent=P.blockedForKidsContent)};var oF=function(){};
_.A(oF,QR);oF.prototype.getApiPaths=function(){return Ghb};
oF.prototype.getExtension=function(W){return _.Q(W,$6t)};
oF.prototype.JSC$11808_buildRequest=function(W,P,x){W.params=P.params;x.impersonated_channel_url&&(W.impersonatedChannelUrl=x.impersonated_channel_url)};var S4=function(){};
_.A(S4,QR);S4.prototype.getApiPaths=function(){return oXl};
S4.prototype.getExtension=function(W){return _.Q(W,_.q7A)};
S4.prototype.JSC$11808_buildRequest=function(W,P){P.items&&(W.items=P.items);P.kidGaiaId&&(W.kidGaiaId=P.kidGaiaId)};var u1=function(){};
_.A(u1,QR);u1.prototype.getApiPaths=function(){return lim};
u1.prototype.getExtension=function(W){return _.Q(W,_.yci)};
u1.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params);P.targetId&&(W.targetId=P.targetId)};var dj=function(){};
_.A(dj,QR);dj.prototype.getApiPaths=function(){return Mfb};
dj.prototype.getExtension=function(W){return _.Q(W,qFb)};
dj.prototype.JSC$11808_buildRequest=function(W,P){P.externalVideoId&&(W.externalVideoId=P.externalVideoId);P.query&&(W.query=P.query);P.sourceTimelines&&(W.sourceTimelines=P.sourceTimelines)};var sb=function(){};
_.A(sb,QR);sb.prototype.getApiPaths=function(){return $oM};
sb.prototype.getExtension=function(W){return _.Q(W,_.gL)||void 0};
sb.prototype.JSC$11808_buildRequest=function(W,P){P.token&&(W.continuation=P.token)};
_.bVb=function(){};
_.A(_.bVb,QR);_.J=_.bVb.prototype;_.J.getApiPaths=function(){return $oM};
_.J.getExtension=function(W){return _.Q(W,_.Zz)||void 0};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$11815_getStoreKey=function(W,P){P=P===void 0?{}:P;if(!P.disableCache&&(W=this.getExtension(W))&&W.query)return P={query:W.query},W.params&&(P.params=W.params),_.ka("search",P)};
_.J.JSC$11808_buildRequest=function(W,P,x){P.query&&(W.query=P.query);P.params&&(W.params=P.params);if(!_.p("web_forward_suggest_stats_killswitch")){var I=_.Q(P,kXm);I&&(W.suggestStats=I)}var O;!_.p("kevlar_searchbox_stats_killswitch")&&((O=x.tempData)==null?0:O.gs_l)&&!_.Q(P,kXm)&&(W.webSearchboxStatsUrl="/search?oq="+(x.tempData.oq||"")+"&gs_l="+x.tempData.gs_l);var B;if((B=x.tempData)==null?0:B.entityMid)P=W.suggestionSearchParams||{},P.entityMid=x.tempData.entityMid,W.suggestionSearchParams=P};
_.J.getRequestConfig=function(W,P){P=P===void 0?{}:P;W=this.JSC$11815_getStoreKey(W,P);var x;W&&(x={storeStrategy:{storeKey:W}});_.p("web_log_search_ticks_ks")||(x=x||{},x.requestTick="sr_s",x.responseTick="sr_r");return x};var vt=function(){};
_.A(vt,QR);vt.prototype.getApiPaths=function(){return JJ3};
vt.prototype.getExtension=function(W){return _.Q(W,$3p)};
vt.prototype.JSC$11808_buildRequest=function(W,P){P.serializedGetSharingProviderDataParams&&(W.serializedGetSharingProviderDataParams=P.serializedGetSharingProviderDataParams)};var mM=function(){};
_.A(mM,QR);mM.prototype.getApiPaths=function(){return Byw};
mM.prototype.getExtension=function(W){return _.Q(W,mmz)};
mM.prototype.JSC$11808_buildRequest=function(W,P){P.endpoint&&(W.endpoint=P.endpoint);P.action&&(W.action=P.action)};var Vm=function(){};
_.A(Vm,QR);Vm.prototype.getApiPaths=function(){return aid};
Vm.prototype.getExtension=function(W){return _.Q(W,pAM)};
Vm.prototype.JSC$11808_buildRequest=function(W,P){W.videoId=P.videoId;P.scheduledRedirectMetadataSourceVideoId&&(W.scheduledRedirectMetadata={sourceVideoId:P.scheduledRedirectMetadataSourceVideoId})};var k_w=XMLHttpRequest.prototype.fetch,UJb=k_w&&k_w.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!fj?!0:!1;var tA=function(W){this.JSC$15844_storeWithEntities=W};
_.A(tA,QR);_.J=tA.prototype;_.J.getApiPaths=function(){return tfb};
_.J.getExtension=function(W){return _.Q(W,_.U_)||_.Q(W,_.uS)||_.Q(W,QIP)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$11815_getStoreKey=function(W){if((_.p("kevlar_cache_on_ttl_player")||_.p("mweb_enable_shorts_innertube_player_prefetch")||_.p("mweb_use_new_history_manager")||_.p("web_shorts_prefetch_service_enabled"))&&(W=this.getExtension(W))&&W.videoId){var P={videoId:W.videoId};W.playlistId&&(P.playlistId=W.playlistId);W.playerParams&&(P.params=W.playerParams);return _.ka("player",P)}};
_.J.JSC$11808_getClientScreen=function(W){var P;return((P=W.contentPlaybackContext)==null?void 0:P.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$11808_buildRequest=function(W,P,x){if(_.p("enable_interstitial_entity_check")){var I=this.JSC$15844_storeWithEntities;if(P.videoId)for(var O=_.n(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),B=O.next();!B.done;B=O.next()){B=B.value;var Y;var K=void 0,Z=void 0,d=P.videoId,v=B;(Y=I)?(d=_.On(d+v,"interstitialInteractionStateEntity"),Y=(K=(Z=_.Jb(Y.getState().entities,"interstitialInteractionStateEntity",d))==null?void 0:Z.primaryButtonClicked)!=null?K:!1):Y=!1;if(Y)switch(B){case "CONTENT_CHECK_REQUIRED":P.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":P.racyCheckOk=!0}}}P.videoId&&(W.videoId=P.videoId);P.playlistId&&(W.playlistId=P.playlistId);P.index!==void 0&&(W.playlistIndex=P.index+1);P.playerParams&&(W.params=P.playerParams);"startTimeSeconds"in P&&P.startTimeSeconds&&(_.p("enable_player_request_builder_start_time_floor")?W.startTimeSecs=Math.floor(P.startTimeSeconds):W.startTimeSecs=P.startTimeSeconds);x.contentPlaybackContext&&(W.playbackContext={contentPlaybackContext:x.contentPlaybackContext});x.prefetchPlaybackContext&&
(W.playbackContext=Object.assign({},W.playbackContext,{prefetchPlaybackContext:x.prefetchPlaybackContext}),W.context.request||(W.context.request={}),W.context.request.isPrefetch=!0);W.playbackContext||(W.playbackContext={});I=lWM();W.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!I,supportXhr:UJb};x.overrideMutedAtStart&&(W.overrideMutedAtStart=x.overrideMutedAtStart);W.racyCheckOk=!!P.racyCheckOk;W.contentCheckOk=!!P.contentCheckOk;!_.p("captions_prefs_killswitch")&&(x=(x=_.ye("yt-player-caption-language-preferences"))?
x:[],x==null?0:x.length)&&(W.captionParams={viewerSelectedCaptionLangs:x})};
_.J.getRequestConfig=function(W){W=this.JSC$11815_getStoreKey(W);var P;W&&(P={storeStrategy:{storeKey:W}});_.p("web_log_player_watch_next_ticks")&&(P=P||{},P.requestTick="ps_s",P.responseTick="ps_r");return P};
tA[qC]=[S_];var pF=function(){};
_.A(pF,QR);pF.prototype.getApiPaths=function(){return efw};
pF.prototype.getExtension=function(W){return _.Q(W,_.Zgd)};
pF.prototype.JSC$11808_buildRequest=function(W,P){W.params=P.params;W.correctionText=P.correctionText};var j4=function(){};
_.A(j4,QR);j4.prototype.getApiPaths=function(){return AUW};
j4.prototype.getExtension=function(W){return _.Q(W,_.Lez)};
j4.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params);W.searchQuery=P.searchQuery;W.languageCode=P.languageCode;W.kind=P.kind;W.name=P.name;W.externalVideoId=P.externalVideoId};var Qm=function(){};
_.A(Qm,QR);_.J=Qm.prototype;_.J.getApiPaths=function(){return FAc};
_.J.getExtension=function(W){return _.Q(W,_.U_)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$11815_getStoreKey=function(W){if((W=this.getExtension(W))&&W.videoId){var P={videoId:W.videoId};W.playlistId&&(P.playlistId=W.playlistId);W.index&&(P.index=W.index);W.params&&(P.params=W.params);return _.ka("next",P)}};
_.J.JSC$11808_getClientScreen=function(W){var P;return((P=W.contentPlaybackContext)==null?void 0:P.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$11808_buildRequest=function(W,P,x){P.videoId&&(W.videoId=P.videoId);P.playlistId&&(W.playlistId=P.playlistId);P.params&&(W.params=P.params);P.index!==void 0&&(W.playlistIndex=P.index);W.racyCheckOk=!(!x.racyCheckOk&&!P.racyCheckOk);W.contentCheckOk=!!P.contentCheckOk;x.contentPlaybackContext&&(W.autonavState=x.contentPlaybackContext.autonavState,W.playbackContext={vis:x.contentPlaybackContext.vis,lactMilliseconds:x.contentPlaybackContext.lactMilliseconds});x.prefetchPlaybackContext&&(W.context.request||
(W.context.request={}),W.context.request.isPrefetch=!0);_.p("captions_hats_killswitch")||(P=_.SI().getFlag(65),P=P!=null?!P:!1,x=!!_.ye("yt-player-sticky-caption"),W.captionsRequested=P&&x)};
_.J.getRequestConfig=function(W){W=this.JSC$11815_getStoreKey(W);var P;W&&(P={storeStrategy:{storeKey:W}});_.p("web_log_player_watch_next_ticks")&&(P=P||{},P.requestTick="wn_s",P.responseTick="wn_r");return P};
var CF=function(){};
_.A(CF,QR);CF.prototype.getApiPaths=function(){return FAc};
CF.prototype.getExtension=function(W){return _.Q(W,_.gL)};
CF.prototype.JSC$11808_buildRequest=function(W,P){P.token&&(W.continuation=P.token)};var AA=function(W,P){this.playerRequestBuilder=W;this.watchNextRequestBuilder=P};
_.A(AA,QR);AA.prototype.getApiPaths=function(){return yJP};
AA.prototype.getExtension=function(W){return _.Q(W,_.U_)};
AA.prototype.isNavigationCommand=function(){return!0};
AA.prototype.JSC$11808_buildRequest=function(W,P,x){W.playerRequest={};this.playerRequestBuilder.JSC$11808_buildRequest(W.playerRequest,P,x);_.p("web_streaming_watch")&&(W.watchNextRequest={},this.watchNextRequestBuilder.JSC$11808_buildRequest(W.watchNextRequest,P,x))};
AA[qC]=[tA,Qm];var zt=function(){};
_.A(zt,QR);zt.prototype.getApiPaths=function(){return qNm};
zt.prototype.getExtension=function(W){return _.Q(W,ANW)};
zt.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.params=P.params)};var Gt=function(W){this.JSC$15871_storeWithEntities=W};
_.A(Gt,QR);Gt.prototype.getApiPaths=function(){return GCi};
Gt.prototype.getExtension=function(W){return _.Q(W,Gsz)||_.Q(W,gPp)};
Gt.prototype.JSC$11808_buildRequest=function(W,P,x){x.client_data&&(W.clientData=x.client_data);if(P.commerceActionConfig){var I=P.commerceActionConfig;P=I.actionId;I=I.commerceActionParams;P&&(W.actionId=P);I&&(W.commerceActionParams=I)}else{var O=P.actionId,B=P.commerceActionParams;x=P.entityKeys;O&&(W.actionId=O);B&&(W.commerceActionParams=B);var Y;P=(I=this.JSC$15871_storeWithEntities)==null?void 0:(Y=I.getState())==null?void 0:Y.entities;if(x&&P){I=[];Y=_.n(x);for(x=Y.next();!x.done;x=Y.next())if(O=
x.value,x=_.Pu(O).entityType,O=_.Jb(P,x,O))B={},I.push((B[x]=O,B));W.entityMutationPayloads=I}}};
Gt.prototype.getRequestConfig=function(W){var P,x=(P=_.Q(W,Gsz))==null?void 0:P.requestSequenceType;if(x&&W.clickTrackingParams&&x!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:W.clickTrackingParams,sequenceType:x}}};
Gt[qC]=[S_];var Eb=function(){};
_.A(Eb,QR);Eb.prototype.getApiPaths=function(){return LAm};
Eb.prototype.getExtension=function(W){return _.Q(W,_.rNp)};
Eb.prototype.JSC$11808_buildRequest=function(W,P){P.feedbackData&&(W.feedbackData=P.feedbackData);P.params&&(W.itemParams=P.params)};
_.N1.Object.defineProperties(Eb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gj=function(){};
_.A(gj,QR);gj.prototype.getApiPaths=function(){return WId};
gj.prototype.getExtension=function(W){return _.Q(W,igM)};
gj.prototype.JSC$11808_buildRequest=function(W,P,x){x.payments_payload&&(W.paymentsPayload=x.payments_payload);x.offer_params&&(W.offerParams=x.offer_params);P.transactionParams&&(W.transactionParams=P.transactionParams)};var DU=function(){};
_.A(DU,QR);DU.prototype.getApiPaths=function(){return PLk};
DU.prototype.getExtension=function(W){return _.Q(W,_.Rlw)};
DU.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.buybucketParams&&(W.buybucketData={params:P.buybucketParams},P.stickerParams?W.buybucketData.stickerParams=P.stickerParams:(x.rich_chat_message?W.buybucketData.richChatMessage=x.rich_chat_message:x.chat_message_text&&(W.buybucketData.chatMessageText=x.chat_message_text),x.purchase_price_micros&&(W.buybucketData.purchasePriceMicros=x.purchase_price_micros.toString())));P.donationAmountMicros&&(W.tipAmountMicros=P.donationAmountMicros,
P.tipParams&&(W.tipParams=P.tipParams));P.offerParams&&(W.offerParams=P.offerParams);P.productData&&(W.productData=P.productData);P.transactionParams&&(W.transactionParams=P.transactionParams)};var Mw=function(){};
_.A(Mw,QR);Mw.prototype.getApiPaths=function(){return xWb};
Mw.prototype.getExtension=function(W){return _.Q(W,L8i)};
Mw.prototype.JSC$11808_buildRequest=function(W,P){P.updateFopParams&&(W.updateFopParams=P.updateFopParams)};var $e=function(){};
_.A($e,QR);$e.prototype.getApiPaths=function(){return Ixi};
$e.prototype.getExtension=function(W){return _.Q(W,_.BO)};
$e.prototype.JSC$11808_buildRequest=function(W,P){P.couponCode&&(W.couponCode=P.couponCode);P.params&&(W.itemParams=P.params)};var wj=function(){};
_.A(wj,QR);wj.prototype.getApiPaths=function(){return OBd};
wj.prototype.getExtension=function(W){return _.Q(W,_.EPW)};
wj.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;P.params&&(W.params=P.params);x.ctk&&(W.clientToken=x.ctk)};var hA=function(W){this.JSC$15906_storeWithEntities=W};
_.A(hA,QR);hA.prototype.getApiPaths=function(){return JxA};
hA.prototype.getExtension=function(W){return _.Q(W,_.a9)};
hA.prototype.JSC$11808_buildRequest=function(W,P,x){x.purchase_price_micros&&(W.productData={pdgData:{purchasePriceMicros:x.purchase_price_micros.toString()}},x.rich_chat_message&&(W.productData.pdgData.richChatMessage=x.rich_chat_message),x.currency_code&&(W.productData.pdgData.currencyCode=x.currency_code));P.transactionParams&&(W.transactionParams=P.transactionParams);P.clientLocationContext&&(W.clientLocationContext=P.clientLocationContext);x.payments_payload&&(W.paymentsPayload=x.payments_payload);
x.funds_guarantee_callback_client_data&&(W.fundsGuaranteeCallbackClientData=x.funds_guarantee_callback_client_data);var I,O;x=(I=this.JSC$15906_storeWithEntities)==null?void 0:(O=I.getState())==null?void 0:O.entities;if(P.entityKeys&&x){I=[];P=_.n(P.entityKeys);for(O=P.next();!O.done;O=P.next()){var B=O.value;O=_.Pu(B).entityType;if(B=_.Jb(x,O,B)){var Y={};I.push((Y[O]=B,Y))}}W.entityMutationPayloads=I}};
hA[qC]=[S_];var Ht=function(){};
_.A(Ht,QR);Ht.prototype.getApiPaths=function(){return BWZ};
Ht.prototype.getExtension=function(W){return _.Q(W,F8z)};
Ht.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;x.backend_analytics&&(W.serializedBackendAnalyticsEvent=x.backend_analytics);P.offerParams&&(W.offerParams=P.offerParams)};var e4=function(){};
_.A(e4,QR);e4.prototype.getApiPaths=function(){return Ixi};
e4.prototype.getExtension=function(W){return _.Q(W,W2U)};
e4.prototype.JSC$11808_buildRequest=function(W,P){P.params&&(W.itemParams=P.params)};var ct=function(){};
_.A(ct,QR);ct.prototype.getApiPaths=function(){return nyc};
ct.prototype.getExtension=function(W){return _.Q(W,_.hlw)};
ct.prototype.JSC$11808_buildRequest=function(W,P,x){x.resume_time_ms&&(W.resumeTimeMs=x.resume_time_ms);P.pauseParams&&(W.pauseParams=P.pauseParams)};var aF=function(){};
_.A(aF,QR);aF.prototype.getApiPaths=function(){return YmW};
aF.prototype.getExtension=function(W){return _.Q(W,_.qxl)};
aF.prototype.JSC$11808_buildRequest=function(W,P,x){x=x===void 0?{}:x;x.c&&(W.redeemCode=x.c);x.rd&&(W.riskData=x.rd);x.ctk&&(W.clientToken=x.ctk)};var b1=function(){};
_.A(b1,QR);b1.prototype.getApiPaths=function(){return yxl};
b1.prototype.getExtension=function(W){return _.Q(W,_.Hgm)};
b1.prototype.JSC$11808_buildRequest=function(W,P){P.resumeParams&&(W.resumeParams=P.resumeParams)};var ke=function(W,P){this.clientName=W;this.defaultExpirationDelayMs=P};
ke.prototype.put=function(W,P){var x=this,I;return _.y(function(O){I=Object.assign({},P.data);I.key=W;I.clientName=x.clientName;I.expireTimestampMs===void 0&&(I.expireTimestampMs=(Math.round((0,_.iA)())+x.defaultExpirationDelayMs).toString());return O.return(x.putInternal(W,I))})};
ke[qC]=[uo,WLk];var XGz=function(){ke.apply(this,arguments);this.JSC$15936_responseStore=new Map};
_.A(XGz,ke);_.J=XGz.prototype;_.J.get=function(W){var P=this;return _.y(function(x){return x.return(IV(P,W))})};
_.J.putInternal=function(W,P){var x=this,I,O,B;return _.y(function(Y){I=x.defaultExpirationDelayMs;P.expireTimestampMs&&(I=Number(P.expireTimestampMs)-Math.round((0,_.iA)()),O=_.Wi("mweb_override_response_store_expiration_ms"),O>0&&O<I&&(I=O));B=setTimeout(function(){x.remove(W)},I);
x.JSC$15936_responseStore.set(W,{entryData:P,timer:B});_.Kl(Y)})};
_.J.remove=function(W){var P=this;return _.y(function(x){f7p(P,W);_.Kl(x)})};
_.J.removeAll=function(){var W=this;return _.y(function(P){W.JSC$15936_responseStore.forEach(function(x){clearTimeout(x.timer)});
W.JSC$15936_responseStore.clear();_.Kl(P)})};
_.J.has=function(W){return!!this.JSC$15936_responseStore.get(W)};
_.J.getKeys=function(){return this.JSC$15936_responseStore.keys()};
var IV=function(W,P){if(W=W.JSC$15936_responseStore.get(P))return new _.xw(W.entryData)},f7p=function(W,P){var x=W.JSC$15936_responseStore.get(P);
x&&(clearTimeout(x.timer),W.JSC$15936_responseStore.delete(P))};var pjd;var CTU=function(W,P,x){ke.call(this,W,P);this.token=x};
_.A(CTU,ke);_.J=CTU.prototype;_.J.get=function(W){var P=this,x,I;return _.y(function(O){return O.nextAddress==1?_.S(O,Q4S(P.token),2):O.nextAddress!=3?(x=O.yieldResult,_.S(O,x.get("ResponseStore",[W,P.clientName]),3)):(I=O.yieldResult)?O.return(new _.xw(I)):O.return(void 0)})};
_.J.putInternal=function(W,P){var x=this,I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,Q4S(x.token),2);I=O.yieldResult;return _.S(O,I.put("ResponseStore",P),0)})};
_.J.remove=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,Q4S(P.token),2);x=I.yieldResult;return I.return(x.delete("ResponseStore",[W,P.clientName]))})};
_.J.removeAll=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,Q4S(W.token),2);P=x.yieldResult;return _.S(x,Psd(P,IDBKeyRange.only(W.clientName)),0)})};
_.J.has=function(){throw Error("Ui");};_.Ub=new _.Lb("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var NHW=function(W){var P;this.stateTagsData=(P=W.responseContext)==null?void 0:P.stateTags},l7k=function(W){var P;
return((P=W.stateTagsData)==null?void 0:P.stateTagsModified)||[]};var TH3;TH3=function(W){this.JSC$15949_responseStore=W};
_.N$=function(W,P,x){if(!_.p("state_tags_killswitch")){var I=new NHW(P);if(l7k(I).length>0){var O=W.JSC$15949_responseStore.getKeys();O=_.n(O);for(var B=O.next();!B.done;B=O.next()){B=B.value;var Y=IV(W.JSC$15949_responseStore,B);if(Y){var K=_.Zs(Y);a:{var Z=void 0;Y=l7k(I);K=((Z=(new NHW(K)).stateTagsData)==null?void 0:Z.relevantStateTags)||[];Z=_.n(K);for(K=Z.next();!K.done;K=Z.next())if(K=K.value,K.stateTag!=null&&Y.includes(K.stateTag)&&K.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Y=
!0;break a}Y=!1}Y&&f7p(W.JSC$15949_responseStore,B)}}}}var d;I=(d=P.responseContext)==null?void 0:d.maxAgeSeconds;_.p("web_prefetch_riw_for_next_video")&&!I&&P.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(I=3600);x&&I&&Number(I)>0&&(P=IS(P,I),W.JSC$15949_responseStore.put(x,new _.xw(P)))};
TH3.prototype.handleResponse=function(W,P){if(!P)throw Error("Vi");var x,I;P=(x=P.config)==null?void 0:(I=x.storeStrategy)==null?void 0:I.storeKey;_.N$(this,W,P)};
TH3[qC]=[_.Pw];_.ukt=new _.Lb("STORE_RESPONSE_PROCESSOR_TOKEN");var r_Z=function(W){this.JSC$15952_responseStore=W};
r_Z.prototype.handleResponse=function(W,P){if(P.input.match(_.fR(CbM))){var x;if(W==null?0:(x=W.entries)==null?0:x.length)for(W=_.n(W.entries),P=W.next();!P.done;P=W.next()){x=P.value.command;var I=void 0;P=(I=_.Q(x,_.uS))==null?void 0:I.unserializedPrefetchData;if(!x||!P)break;I=(new nF).JSC$11815_getStoreKey(x);var O=_.Q(P,Xzl),B=void 0,Y=void 0,K=void 0,Z=_.Wi("web_shorts_prefetch_service_ttl_seconds")>0?_.Wi("web_shorts_prefetch_service_ttl_seconds"):Number((K=(B=O)==null?void 0:(Y=B.responseContext)==
null?void 0:Y.maxAgeSeconds)!=null?K:3600);I&&Z>0&&(O=IS(O,Z),this.JSC$15952_responseStore.put(I,new _.xw(O)));x=(new tA).JSC$11815_getStoreKey(x);P=_.Q(P,zKA);B=O=I=void 0;Y=_.Wi("web_shorts_prefetch_service_ttl_seconds")>0?_.Wi("web_shorts_prefetch_service_ttl_seconds"):Number((B=(I=P)==null?void 0:(O=I.responseContext)==null?void 0:O.maxAgeSeconds)!=null?B:3600);x&&Y>0&&(P=IS(P,Y),this.JSC$15952_responseStore.put(x,new _.xw(P)))}}};
r_Z[qC]=[_.Pw];var iVi=function(W){this.innertubeTransportService=W};
iVi[qC]=[_.m7];var RAP=new _.Lb("SUBMIT_API_SERVICE_TOKEN");var Xi=function(){this.scheduler=_.Ds()},FLz;
Xi.prototype.pause=function(){throw Error("Wi");};
Xi.prototype.resume=function(){throw Error("Wi");};
Xi.prototype.queue=function(W){var P=this,x=_.aP(),I=_.VE(this.scheduler,function(){try{var O;if(_.Ix.instance)var B=_.Ix.instance;else{var Y=new _.mW("Error: Unexpected uninitialized CommandHandler.");_.G$(Y);B=void 0}(O=B)==null||O.resolveCommand(W.command);x.resolve()}catch(K){x.reject(K)}});
x.promise.thenCatch(function(O){O instanceof _.Rq&&P.scheduler.cancelJob(I)});
return x.promise};
Xi.prototype.queueAll=function(W){var P=new Map;W=_.n(W);for(var x=W.next();!x.done;x=W.next())x=x.value,P.set(x.id,this.queue(x));return P};var LLi=function(W,P){var x=this;this.taskModel=W;this.onTaskCancelledCallback=P;this.resolver=_.aP();W=W.proto.prefetchConfig;if(!W)throw Error("Xi");if(!W.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(I){I instanceof _.Rq&&(q53(x,x.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),x.onTaskCancelledCallback(x.taskModel.id,x.jobId),x.tick("pcc"));
throw I;});
this.timerName=this.taskModel.id;_.QY(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},WR3=function(W){switch(W.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},q53=function(W,P){_.jI({prefetchInfo:{cancellationReason:P}},W.timerName)};
LLi.prototype.tick=function(W){_.CK(W,void 0,this.timerName)};var Nw=function(){var W=this;this.scheduler=_.Ds();this.maxInflightTasks=_.Wi("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Wi("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Q7i;this.onTaskCancelled=function(P,x){x&&W.scheduler.cancelJob(x);PC4(W,P);fF(W,3)}},x72=function(){Nw.instance||(Nw.instance=new Nw);
return Nw.instance};
Nw.prototype.pause=function(){this.prefetchCoordinatorState=0};
Nw.prototype.resume=function(){fF(this,0)};
Nw.prototype.queue=function(W){W=IA6(this,W);fF(this,1);return W};
Nw.prototype.queueAll=function(W){var P=new Map;W=_.n(W);for(var x=W.next();!x.done;x=W.next())x=x.value,P.set(x.id,IA6(this,x));fF(this,1);return P};
var IA6=function(W,P){var x=W.allPrefetchTasks.get(P.id);if(x)return x.cancellablePromise;try{var I=new LLi(P,W.onTaskCancelled)}catch(B){return _.s2(B)}x=I;x.tick("pcq");var O={prefetchInfo:{taskId:x.taskModel.id,isPrefetch:!0,fetchAction:x.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:x.taskModel.command.clickTrackingParams}};x.taskModel.csn&&(O.clientScreenNonce=x.taskModel.csn);_.jI(O,x.timerName);W.allPrefetchTasks.set(P.id,I);W.drainingHeap.insert(-WR3(I),I);return I.cancellablePromise},
fF=function(W,P){W.prefetchCoordinatorState===P&&(W.prefetchCoordinatorState=2,Om4(W))},Om4=function(W){for(var P={};W.prefetchCoordinatorState!==0;P={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(W.inflightPrefetchTasks.size>=W.maxInflightTasks){W.prefetchCoordinatorState=3;break}P.prefetchTask$jscomp$1=W.drainingHeap.remove();if(!P.prefetchTask$jscomp$1){W.prefetchCoordinatorState=1;break}P.taskId$jscomp$3=P.prefetchTask$jscomp$1.taskModel.id;if(W.allPrefetchTasks.has(P.taskId$jscomp$3)){var x=-1;W.coordinatorTimeoutMs>0&&(x=_.VE(W.scheduler,function(I){return function(){l1(W,I.taskId$jscomp$3,Error("Zi"))}}(P),W.coordinatorTimeoutMs));
W.inflightPrefetchTasks.set(P.taskId$jscomp$3,x);if(!W.JSC$15970_commandHandler){if(!_.Ix.instance){l1(W,P.taskId$jscomp$3,Error("$i"));continue}W.JSC$15970_commandHandler=_.Ix.instance}a:switch(P.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":x=1;break a;default:x=0}P.prefetchTask$jscomp$1.jobId=W.scheduler.addJob(function(I){return function(){I.prefetchTask$jscomp$1.tick("pcr");try{W.JSC$15970_commandHandler.resolveCommand(I.prefetchTask$jscomp$1.taskModel.command)||
l1(W,I.taskId$jscomp$3,Error("aj"))}catch(O){l1(W,I.taskId$jscomp$3,O)}}}(P),x,0)}}},Jm3=function(W,P){(P=PC4(W,P))!=null&&(P.resolver.resolve(),P.tick("pce"));
fF(W,3)},l1=function(W,P,x){(P=PC4(W,P,x))!=null&&(P.resolver.reject(x),P.tick("pcc"),q53(P,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Wi("prefetch_coordinator_error_logging_sampling_rate")&&(x=new _.mW("Prefetch Command failed.",P.taskModel.id,x.message),_.G$(x)));
fF(W,3)},PC4=function(W,P,x){var I=W.allPrefetchTasks.get(P);
I?((x=W.inflightPrefetchTasks.get(P))&&x!==-1&&W.scheduler.cancelJob(x),W.inflightPrefetchTasks.delete(P),W.allPrefetchTasks.delete(P)):_.ge(new _.mW("Unexpected missing prefetch task when deleting task.",P,x==null?void 0:x.message));return I};var BSB=function(W,P,x,I,O){this.id=W;this.triggerOn=P;this.cancelOn=x;this.command=I;this.proto=O};
_.N1.Object.defineProperties(BSB.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var nW4=function(){this.JSC$15975_prefetchCoordinator=x72();FLz||(FLz=new Xi);this.defaultCoordinator=FLz},YUf;
nW4.getInstance=function(){YUf||(YUf=new nW4);return YUf};
nW4.prototype.get=function(W){switch(W){case 0:return this.JSC$15975_prefetchCoordinator;default:return this.defaultCoordinator}};var Tt=function(){this.coordinatorSupplier=nW4.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},Zm6=function(W){var P=_.E_()||void 0,x=Object.keys(ymL)[0];
if(x){var I=W.taskIdByTriggerId.get(x);if(I!=null){W.taskIdByTriggerId.delete(x);x=[];I=_.n(I);for(var O=I.next();!O.done;O=I.next())if(O=W.tasks.get(O.value))P!=="UNDEFINED_CSN"&&(O.csn=P),x.push(O);x=GHm(x);P=[];x=_.n(x);for(I=x.next();!I.done;I=x.next()){O=_.n(I.value);I=O.next().value;O=O.next().value;I=W.coordinatorSupplier.get(I).queueAll(O);I=_.n(I);var B=I.next();for(O={};!B.done;O={taskId$jscomp$9:void 0},B=I.next()){var Y=_.n(B.value);B=Y.next().value;Y=Y.next().value;O.taskId$jscomp$9=
B;B=Y;P.push(O.taskId$jscomp$9);W.queuedPromisesByTask.set(O.taskId$jscomp$9,_.CA(B,function(K){return function(){KRG(W,K.taskId$jscomp$9)}}(O)))}}}}else _.ge(new _.mW("Unexpected malformed TriggerEvent."))};
Tt.prototype.trigger=function(W,P){var x=this,I=this.tasks.get(W);if(!I||this.queuedPromisesByTask.has(W))return!1;oW4(this,W,I.triggerOn);P!=="UNDEFINED_CSN"&&(I.csn=P);P=this.coordinatorSupplier.get(I.taskType).queue(I);this.queuedPromisesByTask.set(W,_.CA(P,function(){KRG(x,W)}));
return!0};
Tt.prototype.cancel=function(W){var P=this.queuedPromisesByTask.get(W);if(P)P.cancel();else return KRG(this,W)};
var KRG=function(W,P){W.queuedPromisesByTask.delete(P);var x=W.tasks.get(P);if(!x)return!1;W.tasks.delete(P);oW4(W,P,x.triggerOn);(x=z8W(x.cancelOn))&&(W=W.taskIdByCancelId.get(x))&&W.delete(P);return!0},oW4=function(W,P,x){(x=Object.keys(x)[0])&&(W=W.taskIdByTriggerId.get(x))&&W.delete(P)};var ymL={taskRegistered:{}},rj=function(){Tt.instance||(Tt.instance=new Tt);this.JSC$15984_taskManager=Tt.instance};
_.A(rj,zi);
rj.prototype.resolveCommand=function(W){var P=this,x,I;return _.y(function(O){x=_.Q(W,fyz);if((I=x)==null||!I.tasks){var B=new _.mW("RegisterTasksCommand is missing tasks.");_.G$(B);return O.return()}B=P.JSC$15984_taskManager;for(var Y=_.n(x.tasks),K=Y.next();!K.done;K=Y.next())if(K=K.value,K=K.id&&K.triggerOn&&K.cancelOn&&K.command?new BSB(K.id,K.triggerOn,K.cancelOn,K.command,K):void 0,K){var Z=Object.keys(K.triggerOn)[0];if(Z){var d=z8W(K.cancelOn);d?(B.tasks.set(K.id,K),B.taskIdByTriggerId.has(Z)||B.taskIdByTriggerId.set(Z,
new Set),B.taskIdByTriggerId.get(Z).add(K.id),B.taskIdByCancelId.has(d)||B.taskIdByCancelId.set(d,new Set),B.taskIdByCancelId.get(d).add(K.id)):_.ge(new _.mW("Unexpected malformed cancelOn field."))}else _.ge(new _.mW("Unexpected malformed triggerOn field."))}else _.ge(new _.mW("Unexpected malformed Task proto."));Zm6(P.JSC$15984_taskManager);_.Kl(O)})};var SUG={},ut4=(SUG.rendered={priority:0,callback:function(){var W={};W.numCpu=navigator.hardwareConcurrency;var P={};P.ramGb=_.xW.navigator.deviceMemory;var x={staticContext:{}};P.ramGb&&Ehx(P.ramGb)&&(x.staticContext.memoryTotalKbytes=(P.ramGb*1048576).toString());W.numCpu&&Ehx(W.numCpu)&&(x.staticContext.cpuCores=W.numCpu);if(_.p("web_enable_adaptive_appl_signal")){W={};P=_.gw("rses_dpj");var I=_.gw("rsef_dpj");P&&P>0&&I&&I>0&&(P=Math.ceil(I-P),P>0&&(W.loadLatency=P));W.loadLatency&&Ehx(W.loadLatency)&&
(x.appL=W.loadLatency.toString())}_.Ay("applicationStarted",x)}},SUG);var d73=new _.Lb("WINDOW_ON_ERROR"),sod=new _.Lb("ERROR_WEIGHT_MAPS"),vWB=new _.Lb("INIT_ERROR");var m7G={},V8O=(m7G.initialized={priority:10,callback:function(W){W.injector.resolve(vWB)()}},m7G);var t86=function(){},pdv=function(){var W=_.eL("meta_logger_impl");
W||(W=new t86,_.lA("meta_logger_impl",W));return W},jo9=function(){pdv().csiSubscriptionKey=Vl8("meta_logging_csi_event",function(W){var P=W.timerName;
if(W=W.timelineData){_.QY(P,{startTime:W.startTime},P);W.infos&&_.jI(W.infos,P);for(var x=_.n(Object.keys(W.ticks)),I=x.next();!I.done;I=x.next())I=I.value,_.CK(I,W.ticks[I],P)}})};
t86.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&jYA(this.csiSubscriptionKey)};var QoQ={},CCQ=(QoQ.initialized={priority:10,callback:function(){jo9()}},QoQ);var Am2=function(W,P){this.innertubeClientName=W;this.JSC$16000_prefCookie=P};
Am2.prototype.record=function(){if(_.p("web_li_record_binary_eval_tick")){var W=_.gw("rsef_dpj");var P=_.gw("rses_dpj");W=W!==void 0&&P!==void 0?Math.round(W-P):void 0;if(W!==void 0&&W>0){P=_.ye(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var x=this.poolSize;if(!(P.valuesSeen>=1E9)){if(P.valuesSample.length<x)P.valuesSample.push(W);else{var I=Math.floor(Math.random()*(P.valuesSeen+1));I<x&&(P.valuesSample[I]=W)}P.valuesSeen+=1}_.Y9(this.storagePrefix+"-"+this.innertubeClientName,
P,2592E3);W=P.valuesSample;P=ghd(W);W=W.length<5?void 0:P<400?1:P<1700?2:3;W!==void 0&&(this.JSC$16000_prefCookie.set(this.cookiePrefix+this.innertubeClientName,W),this.JSC$16000_prefCookie.save())}}else _.K6(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16000_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16000_prefCookie.save()};
Am2[qC]=[uo,Nr];var zxO=function(){Am2.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.A(zxO,Am2);var GRG=new _.Lb("PAGE_LOAD_TIME_TOKEN");var EWy=new _.Lb("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var i1=function(W,P){this.JSC$16021_storeWithEntities=W;this.JSC$16021_commandHandler=P;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
i1.prototype.start=function(){this.JSC$16021_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
i1.prototype.observeDownloadingEntities=function(){var W=_.P7U(this.JSC$16021_storeWithEntities.getState().entities).map(function(I){return xKA(I)});
if(W.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var P={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Mi7()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Ru(_.KK("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16021_commandHandler.resolveCommand(P)}this.downloadingEntities=W}else if(this.downloadingEntities.length){var x=WwA(this.JSC$16021_storeWithEntities.getState().entities).map(function(I){return xKA(I)});
this.downloadingEntities.filter(function(I){return x.includes(I)}).length&&(W={openPopupAction:ohR()},this.JSC$16021_commandHandler.resolveCommand(W));
this.downloadingEntities=[]}};
i1[qC]=[S_,_.qR];var gW2;_.RF=function(W,P,x,I,O,B,Y,K){this.JSC$16024_playerApiPromise=W;this.JSC$16024_commandHandler=P;this.JSC$16024_screenManager=x;this.offlineWebClientEligibility=I;this.JSC$16024_prefStorage=O;this.JSC$16024_actionRouter=B;this.entityTypeMap=Y;this.JSC$16024_persistentStorePromiseAccessor=K;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
gW2=function(){var W=_.FY().resolve(_.RF),P;_.y(function(x){if(x.nextAddress==1)return W.downloadFailureListenerBound?x.return():_.S(x,W.JSC$16024_playerApiPromise,2);P=x.yieldResult;P.addEventListener("onOfflineOperationFailure",function(I){if(I.failureReason&&I.entityKey&&I.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(I.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var O=_.Pu(I.entityKey).entityId;O&&W.JSC$16024_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
O)}else if(_.p("kevlar_woffle")){O=W.JSC$16024_commandHandler;var B=O.resolveCommand;I=I.failureReason;var Y=_.KK("TRANSFER_FAILED",void 0,"Download failed");I==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Y=_.KK("STORAGE_FULL",void 0,"Storage full"));B.call(O,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ru(Y),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
W.downloadFailureListenerBound=!0;_.Kl(x)})};
_.RF.prototype.deleteVideo=function(W,P){var x=this,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return _.S(Y,x.JSC$16024_playerApiPromise,2);I=Y.yieldResult;B={offlineLoggingData:{offlineDeleteReason:(O=P)!=null?O:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.S(Y,I.queueOfflineAction(W,x.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",B),0)})};
_.RF.prototype.pauseVideoDownload=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,P.JSC$16024_playerApiPromise,2);x=I.yieldResult;x.pauseVideoDownload(W);_.Kl(I)})};
_.RF.prototype.resumeVideoDownload=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,P.JSC$16024_playerApiPromise,2);x=I.yieldResult;return _.S(I,x.resumeVideoDownload(W),0)})};
_.RF[qC]=[_.Pq,_.qR,_.ZF,EWy,io,r6,SfZ,ln];var D7L=new _.Lb("DOWNLOAD_STATE_STORE_TOKEN");var M8v=function(W,P){this.JSC$16043_persistentStorePromiseAccessor=W;this.store=P;this.upliftCompletionResolver=new _.If},hxv=function(){var W=_.FY().resolve($7L),P;
_.y(function(x){switch(x.nextAddress){case 1:if(W.upliftImplPromise)return x.return(W.upliftImplPromise);_.OT(x,2);W.upliftImplPromise=wdB(W);return _.S(x,W.upliftImplPromise,4);case 4:W.upliftCompletionResolver.resolve();_.ci(x,3);break;case 2:throw P=_.yn(x),W.upliftCompletionResolver.reject(P),P;case 3:return x.return(W.upliftImplPromise)}})},wdB=function(W){var P,x,I;
return _.y(function(O){switch(O.nextAddress){case 1:return _.wo("LOGGED_IN")?_.S(O,W.JSC$16043_persistentStorePromiseAccessor(),2):O.return();case 2:P=O.yieldResult;if(!P)return _.CK("vdeur"),O.return();_.CK("vdeus");_.OT(O,3);return _.S(O,HmO(P),5);case 5:x=O.yieldResult;W.store.dispatch(bhA(x));P.observe(function(B){kPS(W.store,B)});
_.ci(O,4);break;case 3:throw I=_.yn(O),_.CK("vdeur"),I;case 4:_.CK("vdeuc"),_.Kl(O)}})},HmO=function(W){var P;
return _.y(function(x){if(x.nextAddress==1)return _.S(x,e8U(W),2);P=x.yieldResult;return x.return(P.reduce(function(I,O){if(!O.data||!O.key||!O.entityType)return I;I[O.entityType]||(I[O.entityType]={});I[O.entityType][O.key]=O.data;return I},{}))})};
M8v[qC]=[ln,_.Ae];var $7L;$7L=new _.Lb("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Fi=new _.Lb("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var qw=function(W,P){this.JSC$16046_persistentStorePromiseAccessor=W;this.transportService=P};
qw.prototype.refresh=function(){var W=this,P,x,I,O;return _.y(function(B){if(B.nextAddress==1)return _.wo("LOGGED_IN")?_.S(B,W.JSC$16046_persistentStorePromiseAccessor(),2):B.return();if(B.nextAddress!=3)return(P=B.yieldResult)?_.S(B,mPW(P),3):B.return();if((x=B.yieldResult)&&!(Number(x.data.refreshTimestampMs||0)<(0,_.iA)()))return B.return();I={browseId:"SPaccount_downloads"};O=_.fR(Oe);_.$P(W.transportService,I,O).then(function(Y){var K;if(P&&(Y==null?void 0:(K=Y.responseContext)==null?void 0:
K.maxAgeSeconds)!==0){var Z;K=(Y==null?void 0:(Z=Y.responseContext)==null?void 0:Z.maxAgeSeconds)||604800;Z=String(Math.floor((0,_.iA)())+K*1E3);P.put("service:downloads_settings:fallback",new _.xw({innertubeResponse:Y,refreshTimestampMs:Z}))}});
_.Kl(B)})};
qw[qC]=[_.Ub,_.m7];var LF=function(W,P){this.JSC$16050_playerPromise=W;this.store=P;this.started=!1};
LF.prototype.start=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return W.started?x.return():_.S(x,W.JSC$16050_playerPromise,2);P=x.yieldResult;P.addEventListener("onOrchestrationBecameLeader",W.updateIsLeader.bind(W,!0));P.addEventListener("onOrchestrationLostLeader",W.updateIsLeader.bind(W,!1));if(P.isOrchestrationLeader)W.updateIsLeader(P.isOrchestrationLeader());else{var I=new _.mW("Function isOrchestrationLeader is undefined",{"player.isReady":P.isReady(),"player.playVideo":P.playVideo?
"defined":"undefined"});_.G$(I);W.updateIsLeader(!1)}W.started=!0;_.Kl(x)})};
LF.prototype.updateIsLeader=function(W){this.store.dispatch(_.LK({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:W}}))};
LF[qC]=[_.Pq,_.Ae];var ex3=function(W,P){this.networkStatusManager=W;this.JSC$16053_prefStoragePromise=P;this.redirectsToPreload=["https://youtube.com"]},cmd=function(){var W=_.FY().resolve(ex3),P,x,I,O,B,Y;
_.y(function(K){switch(K.nextAddress){case 1:return _.S(K,W.JSC$16053_prefStoragePromise,2);case 2:P=K.yieldResult;if(!(x=P)){K.jumpTo(3);break}return _.S(K,P.get("yt-redirect-prefetch-id"),4);case 4:x=K.yieldResult;case 3:if(x||!W.networkStatusManager.isNetworkAvailable())return K.return();I={cache:"reload",redirect:"manual"};O=_.n(W.redirectsToPreload);B=O.next();case 5:if(B.done){if(!P){K.jumpTo(0);break}return _.S(K,P.set("yt-redirect-prefetch-id",!0,86400),0)}Y=B.value;_.OT(K,8);return _.S(K,
_.xW.fetch(Y,I),10);case 10:_.ci(K,6);break;case 8:_.yn(K);case 6:B=O.next(),K.jumpTo(5)}})};var W4=function(W){W?(this.container=W,this.containerWasInjected=!0):this.containerWasInjected=!1};
W4.prototype.openDialog=function(W,P,x){var I=this,O;return _.y(function(B){(O=I.container)==null||O.openDialog(W,P,x);_.Kl(B)})};
W4.prototype.closeDialog=function(){var W=this,P;return _.y(function(x){(P=W.container)==null||P.closeDialog();_.Kl(x)})};
W4.prototype.isDialogOpen=function(){var W=this,P,x;return _.y(function(I){return I.return((x=(P=W.container)==null?void 0:P.isDialogOpen())!=null?x:!1)})};
W4[qC]=[_.Rl(M4P)];_.aAv=new _.Lb("POPUP_CONTROLLER_TOKEN");var bm6=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
bm6.prototype.registerPanel=function(W,P){if(W){this.panelMap.set(W,P);var x=this.pendingPanelResolvers.get(W);x&&(x.resolve(P),this.pendingPanelResolvers.delete(W))}};
bm6.prototype.getPanel=function(W){var P=this,x;return _.y(function(I){return(x=P.panelMap.get(W))?I.return(x):I.return(kRO(P,W))})};
var kRO=function(W,P){var x,I;return _.y(function(O){if(x=W.pendingPanelResolvers.get(P))return O.return(x.promise);I=new _.If;W.pendingPanelResolvers.set(P,I);return O.return(I.promise)})},U7O=function(W){bm6.call(this);
var P=this;this.popupController=W;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return P.panelMap.size}}};
_.A(U7O,bm6);_.J=U7O.prototype;_.J.getReloadContinuation=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,P.getPanel(W),2);x=I.yieldResult;return I.return(x.getReloadContinuation())})};
_.J.showPanel=function(W,P,x,I,O,B,Y){var K=this,Z,d,v,m;return _.y(function(t){if(t.nextAddress==1){Y&&K.updatePanelContinuationDatas.set(W,Y);if((Z=x)==null?0:(d=Z.engagementPanelPopupPresentationConfig)==null?0:d.popupType){v=x.engagementPanelPopupPresentationConfig.popupType;O===void 0&&(O=document.body);var C=t.return,z=K.popupController,D=z.openPopup;a:switch(v){case "PANEL_POPUP_TYPE_DIALOG":var w="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":w="DROPDOWN";break a;default:throw Error("cj`"+
v);}return C.call(t,D.call(z,W,P,w,O))}return _.S(t,K.getPanel(W),2)}m=t.yieldResult;(P||B)&&m.updatePanel(P,!1,I,B);m.showPanel(I);_.Kl(t)})};
_.J.hidePanel=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,P.getPanel(W),2);x=I.yieldResult;x.hidePanel();P.popupController.closePopup(W);_.Kl(I)})};
_.J.isVisible=function(W,P){var x=this,I;return _.y(function(O){if(O.nextAddress==1)return P&&!x.panelMap.has(W)?O.return(!1):_.S(O,x.getPanel(W),2);I=O.yieldResult;return O.return(I.isVisible())})};
_.J.updatePanel=function(W,P,x,I,O,B){x=x===void 0?!1:x;var Y=this,K;return _.y(function(Z){if(Z.nextAddress==1){if(!P&&!O)return Z.return();B&&Y.updatePanelContinuationDatas.set(W,B);return _.S(Z,Y.getPanel(W),2)}K=Z.yieldResult;K.updatePanel(P,x,I,O);_.Kl(Z)})};
_.J.registerPanelContent=function(W,P){W&&this.panelContentMap.set(W,P)};
_.J.getPanelContent=function(W){return this.panelContentMap.get(W)};
_.J.getUpdatePanelContinuationData=function(W){return this.updatePanelContinuationDatas.get(W)};
U7O[qC]=[_.aAv];var P4=function(W,P){this.innertubeTransportService=W;this.JSC$16069_screenManager=P},Xd4=function(W){var P;
return!((P=W.panelLoadingStrategy)==null||!P.requestTemplate)};
P4.prototype.makeRequest=function(W){var P=this,x,I;return _.y(function(O){switch(O.nextAddress){case 1:if(!Xd4(P)){O.jumpTo(2);break}_.OT(O,3);return _.S(O,_.cF(P.innertubeTransportService,W),5);case 5:return x=O.yieldResult,x?O.return(x.content):(_.G$(Error("dj")),O.return(void 0));case 3:I=_.yn(O),_.G$(I);case 2:return O.return(void 0)}})};
P4.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
P4.prototype.execute=function(W){var P=this,x,I,O,B,Y,K,Z,d,v,m;return _.y(function(t){if(t.nextAddress==1){x=W;I=x.data;O=x.fallbackVe;B=x.parentVe;Y=x.createScreenConfig;K=x.renderFn;Z=x.command;P.panelLoadingStrategy=I;var C,z,D=((C=P.panelLoadingStrategy)==null?0:C.screenVe)?(z=P.panelLoadingStrategy)==null?void 0:z.screenVe:O;D&&_.JN(P.JSC$16069_screenManager,D,B,Y);return(d=P.getContent())?_.S(t,K(d),2):t.jumpTo(2)}return t.nextAddress!=4?Xd4(P)?_.S(t,P.makeRequest(Z),4):t.return():(m=v=t.yieldResult)?
_.S(t,K(m),0):t.return()})};
P4[qC]=[_.m7,_.ZF];var x7=function(){};
x7.prototype.getContainer=function(){return _.iO()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
x7.prototype.openSheet=function(W,P){var x=this,I,O,B,Y,K,Z;return _.y(function(d){switch(d.nextAddress){case 1:return I={stack:[],error:void 0,hasError:!1},_.OT(d,2,3),O=Np,_.S(d,x.isSheetOpen(),5);case 5:B=d.yieldResult;onS(I,hiS(O));if(B&&!_.p("delay_sheet_open_killswitch")){if(P&&x.currentTarget===P)return(Y=x.getContainer())==null||Y.closeSheet(),d.return();x.pendingData={data:W,target:I7i(x,P)};return d.return()}W.viewModel&&(W={viewModel:W.viewModel});(K=x.getContainer())==null||K.openSheet(W,
P);x.currentTarget=P;case 3:_.Jo(d);svW(I);_.YD(d,0);break;case 2:Z=_.yn(d),I.error=Z,I.hasError=!0,d.jumpTo(3)}})};
x7.prototype.closeSheet=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,(P=W.getContainer())==null?void 0:P.closeSheet(),2);if(x.nextAddress!=4)return W.currentTarget=void 0,!W.pendingData||_.p("delay_sheet_open_killswitch")?x.jumpTo(0):_.S(x,W.openSheet(W.pendingData.data,W.pendingData.target),4);W.pendingData=void 0;_.Kl(x)})};
x7.prototype.isSheetOpen=function(){var W=this,P,x;return _.y(function(I){return I.return((x=(P=W.getContainer())==null?void 0:P.isSheetOpen())!=null?x:!1)})};
var I7i=function(W,P){if(!_.p("web_parent_target_for_sheets"))return P;var x,I;return(I=(x=W.getContainer())==null?void 0:x.getParentTarget(P))!=null?I:P};var u4=window.documentPictureInPicture;var ivA=_.i4(["dark"]),R8o=_.i4(["system-icons"]),FbR=_.i4(["typography"]),qpo=_.i4(["lang"]),LbU=_.i4(["style"]),NRA=_.i4(["dir"]),lrW=_.i4(["rounded-container"]),TRm=_.i4(["style"]),PJx=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],IZ=function(W){this.JSC$16081_clientRoot=W;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
IZ.prototype.openWindow=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1)return window.documentPictureInPicture&&_.DA()&&!P.currentPipWindow?_.S(O,(x=u4?u4:null)==null?void 0:x.requestWindow(W),2):O.return(!1);if(O.nextAddress!=3){I=O.yieldResult;if(!I)return O.return(!1);I.addEventListener("pagehide",function(){fA2(P)});
I.addEventListener("resize",P.handlePipWindowResize);P.pipWindowResizeDelay=new _.r7(function(){P.currentPipWindow&&_.W7(P.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.y7(P.currentPipWindow.innerWidth,P.currentPipWindow.innerHeight)])},I);
WFR(I);IMW(I);return _.S(O,fro(I),3)}if(!kHS())return O.return(!1);P.currentPipWindow=I;P.JSC$16081_eventForwarder=xjG(I,P.JSC$16081_clientRoot);P.pipWindowResizeDelay.start();return O.return(!0)})};
IZ.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var fA2=function(W){if(W.currentPipWindow){var P,x;(P=u4?u4:null)==null||(x=P.window)==null||x.close();W.currentPipWindow.removeEventListener("resize",W.handlePipWindowResize);var I;(I=W.pipWindowResizeDelay)==null||I.dispose();W.pipWindowResizeDelay=void 0;var O;(O=W.JSC$16081_eventForwarder)==null||O.stop();W.JSC$16081_eventForwarder=void 0;P=_.n(W.onCloseCallbacks);for(x=P.next();!x.done;x=P.next())x=x.value,x();W.onCloseCallbacks=[];W.currentPipWindow=null}};
IZ.prototype.getWindow=function(){return this.currentPipWindow};
var NSQ=function(W,P){var x;(x=W.onCloseCallbacks)==null||x.push(P)};
IZ.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.DA()};
_.N1.Object.defineProperties(IZ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
IZ[qC]=[F5w];var lA2=new _.Lb("PICTURE_IN_PICTURE_CONTROLLER");var Op7=function(W,P){this.lengthY=this.lengthX=0;this.lengthX=P.x-W.x;this.lengthY=P.y-W.y};var TSv=function(){},nbp=function(W,P){var x;
(x=W.headerElement)==null||x.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:P}))};var rmQ=function(){};
rmQ.prototype.openPopup=function(W,P,x,I){var O=this,B;return _.y(function(Y){if(!O.container)return Y.return();B={openPopupAction:{popup:P,popupType:x,uniqueId:W}};return Y.return(O.container.handleOpenPopupAction(B,I))})};
rmQ.prototype.closePopup=function(W){this.container&&this.container.closePopup(W)};var imM=function(){this.openTunnels=new Map},m8m=function(W,P,x){if(KFS(x)){var I=_.hz(x,"gclid");
x={handleEvent:function(K){P&&!P.closed&&typeof P.postMessage==="function"&&K&&K.origin&&K.source===P&&K.data&&K.data.action==="gcl_setup"&&P.postMessage(Object.assign({},{action:"gcl_transfer"},I&&{gclid:I},{gadSource:2}),K.origin)}};
for(var O=_.n(W.openTunnels),B=O.next();!B.done;B=O.next()){var Y=_.n(B.value);B=Y.next().value;Y=Y.next().value;if(B.closed)try{window.removeEventListener("message",Y),W.openTunnels.delete(B)}catch(K){_.G$(K)}}P&&W.openTunnels.size<15&&(W.openTunnels.set(P,x),window.addEventListener("message",x))}};var Rxf=function(){this.clientParams=new Map},oSl=function(W){for(var P=_.n(W.clientParams.keys()),x=P.next();!x.done;x=P.next())x=x.value,x.startsWith("yt-mini-app-share")&&W.clientParams.delete(x)};var FRL=function(W,P){_.vn.call(this);var x=this;this.shortsController=W;this.storeWithShorts=P;W=_.sx(this.storeWithShorts,_.gdm,function(I){if(I){var O,B=(O=x.shortsController.getRoot())==null?void 0:O.getPlayer(),Y;(O=(Y=x.shortsController.alternativePlayerContainerElement)==null?void 0:Y.getPlayerContainer())&&(B==null||B.appendTo(O))}else{var K;Y=(K=x.shortsController.alternativePlayerContainerElement)==null?void 0:K.getPlayerContainer().querySelector("#player");O=x.shortsController.activeIndex;
(K=(B=x.shortsController.getRoot())==null?void 0:B.querySelector('ytd-reel-video-renderer[id="'+O+'"] #player-container'))&&(Y==null||Y.appendTo(K,void 0,!0))}});
this.addOnDisposeCallback(W)};
_.A(FRL,_.vn);var OM=function(W,P,x,I,O){var B=this;this.storeWithShorts=W;this.ephemeralResponseStore=P;this.store=x;this.innertubeTransportService=I;this.innertubeTransportLoader=O;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.G4(_.vO);this.isShortsPipActive=_.G4(_.m0);this.nextReelVe=_.td(56921);this.prevReelVe=_.td(56922);this.backButtonVe=_.td(22156);this.TEST_ONLY={getActiveModules:function(){return B.activeModules}}},YBb,yL3,qU3;
OM.prototype.initOrDisposeActiveModules=function(W){W?this.activeModules.push(new FRL(this,this.storeWithShorts)):(_.rJ(this.activeModules),this.activeModules.length=0)};
OM.prototype.getRoot=function(){return this.rootElement};
OM.prototype.setActiveIndex=function(W){this.activeIndex=W};
_.x2c=function(W,P){var x,I,O,B,Y,K,Z;return _.y(function(d){switch(d.nextAddress){case 1:return x=new nF,(I=x.JSC$11815_getStoreKey(P))&&W.ephemeralResponseStore.has(I)?_.S(d,W.ephemeralResponseStore.get(I),7):_.S(d,qU3(W,P),4);case 4:O=d.yieldResult;if(!I){d.jumpTo(3);break}B=IS(O,3600);return _.S(d,W.ephemeralResponseStore.put(I,new _.xw(B)),3);case 7:O=(Y=d.yieldResult)==null?void 0:_.Zs(Y);case 3:return((K=O)==null?0:K.replacementEndpoint)&&(Z=_.Q(O.replacementEndpoint,_.uS))&&O.sequenceContinuation&&
(Z.sequenceParams=O.sequenceContinuation),d.return(O)}})};
YBb=function(W,P){P=(new Ye).JSC$11815_getStoreKey(P);return!!P&&W.ephemeralResponseStore.has(P)};
yL3=function(W,P,x){var I,O,B,Y,K;_.y(function(Z){if(Z.nextAddress==1){I=new Ye;O=I.JSC$11815_getStoreKey(P);if(!O)return Z.return();if(x.reelWatchSequenceResponse)return B=IS(x.reelWatchSequenceResponse,3600),W.ephemeralResponseStore.put(O,new _.xw(B)),Z.jumpTo(0);if(!W.ephemeralResponseStore.has(O))return Z.jumpTo(0);K=x;return _.S(Z,W.ephemeralResponseStore.get(O),4)}K.reelWatchSequenceResponse=(Y=Z.yieldResult)==null?void 0:_.Zs(Y);_.Kl(Z)})};
qU3=function(W,P){var x=x===void 0?{}:x;var I,O,B;return _.y(function(Y){switch(Y.nextAddress){case 1:if(W.innertubeTransportService){I=W.innertubeTransportService;Y.jumpTo(2);break}if(!W.innertubeTransportLoader){_.hQ(Error("fj"));Y.jumpTo(2);break}return _.S(Y,W.innertubeTransportLoader(),4);case 4:I=Y.yieldResult;case 2:return _.S(Y,(O=I)==null?void 0:_.cF(O,P,x),5);case 5:return B=Y.yieldResult,Y.return(B)}})};
_.N1.Object.defineProperties(OM.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
OM[qC]=[TZZ,_.Pw,S_,_.Rl(_.m7),_.Rl(qfP)];_.LR4=new _.Lb("STORAGE_MANAGER_TOKEN");var s3m=new Set(["touchmove","scroll"]);var WPG=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},PpB;
WPG.prototype.enqueue=function(W,P){P===1?this.currentPersistentToast=W:this.queue.push(W);this.openToast()};
WPG.prototype.openToast=function(){var W;(W=this.currentToast)!=null&&W.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.xbf=new _.Lb("TOAST_MANAGER_TOKEN");var I3M;_.OMf=_.kl(function(W){return _.u("basic-content-view-model",{class:_.O4("ytBasicContentViewModelHost",_.a7(W.className))},_.u(_.V,{cond:function(){return W.data().headline},
then:function(P){return _.u("div",{class:"ytBasicContentViewModelHeadline"},_.u(_.mQ,{text:P}))}}),_.u(_.sV,{each:function(){return W.data().paragraphs||[]},
keyBy:"INDEX"},function(P){return _.u("div",{class:"ytBasicContentViewModelParagraph"},_.u(_.V,{cond:function(){var x=P();return!!(x.header||x.customHeader||x.headline)},
then:function(){return _.u(I3M,{paragraph:P})}}),_.u(_.V,{cond:function(){return P().asset||P().text},
then:function(){return _.u("div",{class:"ytBasicContentViewModelParagraphContent"},_.u(_.V,{cond:function(){return P().asset},
then:function(x){return _.u("div",{class:"ytBasicContentViewModelParagraphAsset"},_.u(_.Ea,{data:x},{contentPreviewImageViewModel:_.lW}))}}),_.u(_.V,{cond:function(){return P().text},
then:function(x){return _.u("div",{class:"ytBasicContentViewModelParagraphText"},_.u(_.mQ,{text:x}))}}))}}))}))},"ee");
I3M=_.kl(function(W){var P=W.paragraph;return _.u(_.qS,null,_.u(_.V,{cond:function(){return P().headline},
then:function(x){return _.u(_.mQ,{text:x,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.u(_.Ea,{data:function(){return P().header||P().customHeader}},{sectionHeaderViewModel:function(x){return _.u(_.qX,{data:x.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"fe");var Bkv=_.kl(function(W){return _.u("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.u(_.V,{cond:function(){return W.expanded()},
then:function(){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.u("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.u(_.V,{cond:function(){return W.data().expandedTitleImage},
then:function(P){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.u(_.bq,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:P}))}}),_.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.u(_.mQ,{text:function(){return W.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.u(_.mQ,{text:function(){return W.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.u(_.mQ,{text:function(){return W.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.u("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.u(_.Ea,{data:function(){return W.data().infoButton}},{buttonViewModel:_.cq}),_.u(_.Ea,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(P){return _.u(_.cq,{data:P.data,
onClick:function(){var x;(x=W.expandedCallback)==null||x.call(W,!1)}})}})))},
else:function(){return _.u(JwL,Object.assign({},W))}}))},"ge"),ni2=_.kl(function(W){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.u(_.V,{cond:function(){return W.data().collapsedLabelImage},
then:function(P){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.u(_.bq,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:P,alt:""}))}}),_.u(_.mQ,{text:function(){return W.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"he"),JwL=_.kl(function(W){var P=_.yB(function(){var x;
return void((x=W.expandedCallback)==null?void 0:x.call(W,!0))});
return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":P},_.u("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.u(_.V,{cond:function(){return W.data().collapsedImage},
then:function(x){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.u(_.bq,{width:16,height:16,data:x,alt:""}))}}),_.u(_.V,{cond:function(){return W.data().showLeadingCollapsedLabel},
then:function(){return _.u(ni2,Object.assign({},W))}}),_.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.u(_.mQ,{text:function(){return W.data().collapsedTitle}}))),_.u("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.u(_.V,{cond:function(){return!W.data().showLeadingCollapsedLabel},
then:function(){return _.u(ni2,Object.assign({},W))}}),_.u(_.Ea,{data:function(){return W.data().infoButton}},{buttonViewModel:_.cq}),_.u(_.Ea,{data:function(){return W.data().expandButton}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
onClick:function(){var I;(I=W.expandedCallback)==null||I.call(W,!0)}})}})))},"ie");var YcB=_.kl(function(W){var P=_.n(_.Zh(function(){return W.data().initiallyExpanded})),x=P.next().value,I=P.next().value,O,B=(O=_.FY().resolve(_.Rl(_.hF)))==null?void 0:O(),Y=function(){var K=W.data().colorData;
if(K)return B?K==null?void 0:K.darkColorPalette:K==null?void 0:K.lightColorPalette};
return _.u("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.oP({"background-color":function(){var K=Y();return(K==null?0:K.section2Color)?_.Qy(K.section2Color):""}})},_.u(_.Ea,{data:function(){return W.data().header}},{expandableMetadataHeaderViewModel:function(K){return _.u(Bkv,{data:K.data,
expanded:function(){return!!x()},
expandedCallback:function(Z){I(Z)}})}}),_.u(_.V,{cond:function(){return x()},
then:function(){return _.u("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.u(_.Ea,{data:function(){return W.data().expandedContent}},{horizontalShelfViewModel:function(K){return _.u(_.jP,{data:K.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Y})},
videoSummaryContentViewModel:function(K){return _.u(b8A,{data:K.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(K){return _.u(_.R8,{data:K.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(K){return _.u(_.OMf,{data:K.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.u(_.Ea,{data:function(){return W.data().expandedBottomButtons}},{buttonViewModel:function(K){return _.u("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.u(_.cq,{data:K.data}))}}))}}))},"je");var ywO=_.kl(function(W){var P=W.text;var x=W.marqueeSpacing;var I=W.scrollDelay;var O=W.scrollDuration;var B=W.enableMarqueeScroll;W=W.large;var Y=_.n(_.YV(!1,void 0,"kfNqfd")),K=Y.next().value,Z=Y.next().value,d=_.n(_.YV(0,void 0,"bYgZbf"));Y=d.next().value;var v=d.next().value,m=_.fa();d=_.fa();var t=_.fa(),C=_.FY().resolve(_.eS);_.jj(function(){if(B()){var w=t.value.getBoundingClientRect().width,a=m.value.getBoundingClientRect().width;if(w>a){var k=(C==="ltr"?-1:1)*(w+(x?x():16));Promise.resolve().then(function(){Z(!0);
v(k)})}}});
var z={},D={};return _.u("marquee-scroll",{class:_.O4("ytMarqueeScrollHost",(z.ytMarqueeScrollHostLarge=W,z)),el:m},_.u("div",{id:"marquee-scroll-inner-container",class:_.O4("ytMarqueeScrollInnerContainer",(D.ytMarqueeScrollAnimationEnabled=function(){return K()},D)),
el:d,style:_.oP({gap:x?(0,_.mq)(x):"16px","animation-duration":O?DP3(O):"16s","animation-delay":I?DP3(I):"3s","--marquee-translate":(0,_.mq)(Y)})},_.u("span",{el:t,dir:"auto"},_.u(_.mQ,{text:P,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.u(_.V,{cond:K,then:function(){return _.u("span",{"aria-hidden":"true",dir:"auto"},_.u(_.mQ,{text:P,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ke");_.KPv=_.kl(function(W){var P=W.data;var x=W.overlayDensity;W=_.yB(function(){P().onTapCommand&&_.D1(P().onTapCommand);return!1});
var I=_.CfA(),O={};return _.u("reel-sound-metadata-view-model",{class:_.O4("ytReelSoundMetadataViewModelHost",(O.ytReelSoundMetadataViewModelHostLarge=function(){return(x==null?void 0:x())===1},O)),
"on:click":W,tabindex:0,role:"button","on:keydown":I},_.u("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.u(_.V,{cond:function(){return P().musicIcon},
then:function(B){return _.u(_.bq,{data:B,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.u("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.u(ywO,{text:function(){return P().soundMetadata},
enableMarqueeScroll:function(){return!!P().enableMarqueeScroll},
large:function(){return(x==null?void 0:x())===1}}))))},"le");var ZMf,oi3,JR,sWd,mbQ,dbO,pm6,tz2;ZMf=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];oi3=_.Wi("wil_icon_max_concurrent_fetches",Infinity);
JR=function(W,P,x){var I=this;this.iconSet=W;this.appDirection=P;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.xW.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.p("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.p("wil_icon_network_first");this.renderWhenIdle=_.p("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.p("wil_icon_load_immediately");this.isPurging=!1;W=function(){I.cacheStorageAvailable&&(I.cacheStorageAsync=_.xW.caches.open("yt-icons").then(function(B){return I.cacheStorageSync=B}).catch(function(){I.cacheStorageAvailable=!1}))};
x=(x==null?void 0:x())||{};x=_.n(Object.entries(x));for(P=x.next();!P.done;P=x.next()){var O=_.n(P.value);P=O.next().value;O=O.next().value;O=ya(O);Sc2(O);this.iconCache[P]=O.cloneNode(!0)}this.isPurging=ulG(this);this.isPurging instanceof Promise?this.isPurging.then(W):W()};
_.iZC=function(W,P){var x=W.resolveIcon(P);return x?W.renderingMode===1?dbO(W,x,W.renderingMode):(P=W.iconCache[x.url])?(P=P.cloneNode(!0),sWd(W,P),dbO(W,x,W.renderingMode,P)):_.viM(W,x).then(function(I){var O=I?0:1;sWd(W,I);return dbO(W,x,O,I)}):(_.EA(new _.mW("Icon not found",{iconShape:P})),function(){})};
sWd=function(W,P){if(P){W.counter+=1;W="_yt"+W.counter;P=[P].concat(_.ju(P.getElementsByTagName("*")));P=_.n(P);for(var x=P.next();!x.done;x=P.next())if(x=x.value,x.tagName==="style"&&x.textContent)x.textContent=mbQ(x.textContent,W,!0);else for(var I=_.n(x.attributes),O=I.next();!O.done;O=I.next()){O=O.value;O.name==="id"&&(O.value+=W);["mask","fill","clip-path"].includes(O.name)&&(O.value=mbQ(O.value,W));if(O.name==="style"){var B=x.style;try{B.cssText=mbQ(B.cssText,W,!0)}catch(v){var Y=void 0,K=
void 0,Z=void 0,d=void 0;B4({error:((Y=v)==null?void 0:(Z=(K=Y).toString)==null?void 0:Z.call(K))||"",el:x.outerHTML,style:!!B,cssText:(d=B)==null?void 0:d.cssText})}}O.name==="xlink:href"&&(O.value=O.value.replace(/#(.*)/,"#$1"+W))}}};
mbQ=function(W,P,x){var I=/url\(["']?#(.*?)["']?\)/;(x===void 0?0:x)&&(I=/url\(["']?#(.*?)["']?\)/g);return W.replace(I,"url(#$1"+P+")")};
dbO=function(W,P,x,I){return function(O,B){var Y=Object.assign({},{iconColor:"currentcolor",iconWidth:P.size+"px",iconHeight:P.size+"px",iconDisplay:"block"},B);B=_.ZV("DIV");var K=Y.iconColor,Z=Y.iconFilter;Y="width: "+Y.iconWidth+"; height: "+Y.iconHeight+"; display: "+Y.iconDisplay+";";Z&&(Y+=" filter: "+Z+";");x===0&&(Y+=" fill: "+K+";");x===1&&(Z=P.url,Y+=" -webkit-mask: url("+Z+") no-repeat center / cover; mask: url("+(Z+") no-repeat center / cover; background-color: ")+K);P.allowMirroring&&
W.appDirection==="rtl"&&(Y+=" transform: scale(-1, 1); transform-origin: center center;");B.setAttribute("style",Y);x===0&&I&&B.appendChild(I);O.appendChild(B)}};
_.viM=function(W,P){var x,I,O;return _.y(function(B){x=function(Y){return GI(Y)};
I=P.url;if(!VzO(I))throw Error("gj");O=tz2(W,I);return B.return(O.then(function(Y){return Y.clone().text()}).then(function(Y){var K=x(Y);
Y=P.size;var Z=_.ZV("DIV");_.a$(Z,K);K=_.oE(Z.firstElementChild!==void 0?Z.firstElementChild:_.l3i(Z.firstChild,!0));Y=Sc2(K,Y);W.iconCache[I]=Y.cloneNode(!0);delete W.responsePromises[I];return Y}).catch(function(){}))})};
pm6=function(W){var P,x=(P=W.requestAninmationFrameResolver)==null?void 0:P.promise;x||(W.requestAninmationFrameResolver=new _.If,x=W.requestAninmationFrameResolver.promise,_.xW.requestAnimationFrame(function(){var I;(I=W.requestAninmationFrameResolver)==null||I.resolve();W.requestAninmationFrameResolver=null}));
return x};
tz2=function(W,P){var x,I;return _.y(function(O){if(O.nextAddress==1)return W.waitForAnimationFrame?_.S(O,pm6(W),2):O.jumpTo(2);x=W.responsePromises[P];x||(I=function(){var B,Y,K;return _.y(function(Z){switch(Z.nextAddress){case 1:if(!W.cacheStorageAvailable){B=void 0;Z.jumpTo(2);break}if(Y=W.cacheStorageSync){Z.jumpTo(3);break}return _.S(Z,W.cacheStorageAsync,4);case 4:Y=Z.yieldResult;case 3:B=Y;case 2:return K=B,W.isNetworkFirstStrategy?Z.return(W.fetchAndUpdateCache(P,K).catch(W.getCacheStorageResponse.bind(W,
P,K))):Z.return(W.getCacheStorageResponse(P,K).catch(W.fetchAndUpdateCache.bind(W,P,K)))}})},x=W.renderWhenIdle?new Promise(function(B,Y){_.VE(_.Gr,function(){I().then(B).catch(Y)},10)}):I(),W.responsePromises[P]=x);
return O.return(x.catch(function(B){delete W.responsePromises[P];B4({error:(B==null?0:B.toString)?B.toString():"",url:P});throw B;}))})};
JR.prototype.fetchAndUpdateCache=function(W,P){var x=this;return _.y(function(I){return I.return(jWO(x,W).then(function(O){QWQ(x,W,O,P);return O}))})};
var jWO=function(W,P){var x;return _.y(function(I){if(W.numFetches<oi3)return W.numFetches+=1,I.return(CpQ(W,P).finally(function(){--W.numFetches;if(Object.keys(W.queuedResponseResolvers).length){var O=Object.keys(W.queuedResponseResolvers)[0],B=W.queuedResponseResolvers[O];delete W.queuedResponseResolvers[O];B.resolve(jWO(W,O))}}));
x=new _.If;W.queuedResponseResolvers[P]=x;return I.return(x.promise)})},CpQ=function(W,P,x){x=x===void 0?2:x;
var I;return _.y(function(O){I={credentials:"same-origin",priority:"low"};return O.return(_.xW.fetch(P,I).then(function(B){return B.ok?B:Promise.reject(Error("hj`"+B.status+"`"+B.statusText))}).catch(function(B){if(x>0)return CpQ(W,P,x-1);
throw B;}))})},QWQ=function(W,P,x,I){_.y(function(O){return I?O.return(new Promise(function(B){_.VE(_.Gr,function(){var Y,K;
return _.y(function(Z){switch(Z.nextAddress){case 1:if(!W.isNetworkFirstStrategy){Y=void 0;Z.jumpTo(2);break}return _.S(Z,I.match(P).catch(function(){}),3);
case 3:Y=Z.yieldResult;case 2:if(K=Y){Z.jumpTo(4);break}return _.S(Z,I.put(P,x.clone()).catch(function(d){B4({error:(d==null?0:d.toString)?d.toString():"",url:P})}),4);
case 4:B(),_.Kl(Z)}})},50)})):O.return()})};
JR.prototype.getCacheStorageResponse=function(W,P){return _.y(function(x){return P?x.return(P.match(W).then(function(I){return I&&I.ok?I:Promise.reject()})):x.return(Promise.reject())})};
var Sc2=function(W,P){P===void 0||W.getAttribute("viewBox")||W.setAttribute("viewBox","0 0 "+P+" "+P);W.setAttribute("focusable","false");W.setAttribute("aria-hidden","true");try{W.style.pointerEvents="none",W.style.display="inherit",W.style.width="100%",W.style.height="100%"}catch(O){var x;B4({error:((x=O)==null?0:x.toString)?O.toString():""});try{W.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(B){var I;B4({error:((I=B)==null?0:I.toString)?B.toString():
""})}}return W},VzO=function(W){for(var P=_.n(ZMf),x=P.next();!x.done;x=P.next())if(W.startsWith(x.value)&&W.endsWith(".svg"))return!0;
return!1};
JR.prototype.resolveIcon=function(W){return this.iconSet.resolveIcon(W)};
var B4=function(W){_.ge(new _.mW("Error in IconManager",W))},ulG=function(W){if(_.p("wil_icons_cache_purge_killswitch"))return!1;
try{var P=_.xW.localStorage}catch(B){return!1}if(!P||!W.cacheStorageAvailable)return!1;var x=function(B){try{var Y;(Y=P)==null||Y.setItem("yt-icons-last-purged",B.toString())}catch(Z){var K;B4({error:((K=Z)==null?0:K.toString)?Z.toString():""})}},I=Number(P.getItem("yt-icons-last-purged"));
if(!I)return I=new Date,I=I.setDate(I.getDate()-Math.floor(Math.random()*90+1)),x(I),!1;if(function(B,Y){B=new Date(B);Y=new Date(Y);return Y.getMonth()-B.getMonth()+12*(Y.getFullYear()-B.getFullYear())}(I,Date.now())<3)return!1;
try{return _.xW.caches.delete("yt-icons").then(function(B){B&&x(Date.now());return B}).catch(function(){return!1}).finally(function(){W.isPurging=!1})}catch(B){var O;
B4({error:((O=B)==null?0:O.toString)?B.toString():""});return!1}};
JR[qC]=[HuA,_.eS,_.Rl(a_Z)];_.nQ=function(W,P){this.iconManager=W;this.iconsToFetch=P};
_.nQ[qC]=[_.xY,_.Rl(cKd)];var Awm=function(){};var zdm=function(W,P,x){this.requestKey=W;this.cMP=P;this.afd=x;this.uBC=function(){return new XMLHttpRequest};
this.fmR=void 0;this.rkW=[]};
zdm.prototype.getLatestChallengeResponse=function(){return this.afd};
var fui=function(W,P,x){var I,O,B,Y;return _.y(function(K){if(K.nextAddress==1){_.QY("attestation_challenge_fetch");_.CK("att_fs",void 0,"attestation_challenge_fetch");if(!W.fmR)throw new _.zQ(9,"Missing fetcher");return _.S(K,W.fmR(P,x),2)}I=K.yieldResult;B=(O=I)==null?void 0:O.bgChallenge;if(!B)throw new _.zQ(15,"Missing field");W.afd=I;W.rkW.forEach(function(Z){Z(I)});
Y=phm(B);_.CK("att_fc",void 0,"attestation_challenge_fetch");yZt("attestation_challenge_fetch");return K.return(Y)})},Shz=function(W,P){var x,I,O,B,Y;
return _.y(function(K){switch(K.nextAddress){case 1:x=new OW(100,3E5,.25,2),I=void 0;case 2:if(!(x.currBackoffCount_<10)){K.jumpTo(4);break}_.OT(K,5);if(!(x.currBackoffCount_>0)){K.jumpTo(7);break}return _.S(K,vvm(x.getValue()),7);case 7:return _.S(K,GAO(W,P),9);case 9:return O=K.yieldResult,K.return(O);case 5:B=_.yn(K);B instanceof _.zQ?I=B:(Y=B instanceof Error?B.message:"Unknown",I=new _.zQ(9,Y));WyZ(x);K.jumpTo(2);break;case 4:if(I)throw I;throw new _.zQ(9,"Unknown error");}})},GAO=function(W,
P){P=$ip(wrP(new MuW,P),W.requestKey);
var x=new _.If,I=W.uBC();I.open("POST",W.cMP);I.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");I.setRequestHeader("Content-Type","application/json+protobuf");I.onload=function(){if(_.aNd(I)){var O=X9z(I.responseText);x.resolve(O)}else x.reject(new _.zQ(_.Lx7(_.I6(I)),I.statusText))};
I.onerror=function(){x.reject(new _.zQ(_.Lx7(_.I6(I)),I.statusText))};
I.send(P.serialize());return x.promise};var gi2=function(W){this.networkStatusManager=W;this.isDownloaded=VCW===void 0?function(){return!1}:VCW;
this.isReady=!1;this.s8s=Eiy(this)},Eiy=function(W){var P;
return _.y(function(x){if(x.nextAddress==1)return _.S(x,$pC(),2);if(x.nextAddress!=3)return P=x.yieldResult,_.S(x,y2A(P),3);W.mg=x.yieldResult;VWC(W.mg).then(function(){W.isReady=!0});
return x.return(W.mg)})},Dbf=function(W,P,x){W.mg?(W=W.mg.x0({za:x,
tJF:!0,bFW:!0}),P.serviceIntegrityDimensions={poToken:W}):_.G$(Error("jj"))};
gi2.prototype.processContext=function(W){var P=this;if(!W.input.match(_.fR(tfb)))return _.Xp();var x=W.innerTubeRequest,I=x.videoId;return!I||this.isDownloaded(x)||this.networkStatusManager&&!this.mg&&!this.networkStatusManager.isNetworkAvailable()?_.Xp():this.mg?this.isReady?(Dbf(this,x,I),_.Xp()):new Ut(VWC(this.mg).then(function(){Dbf(P,x,I)})):new Ut(this.s8s.then(function(O){return _.y(function(B){if(B.nextAddress==1)return _.S(B,VWC(O),2);
Dbf(P,x,I);_.Kl(B)})}))};var Mz9=new _.Lb("WEB_PO_CONTEXT_PROCESSOR");var $by=function(W,P){var x=this;this.gkP=0;var I;this.fAK=(I=P==null?void 0:P.fAK)!=null?I:window;this.networkStatusManagerPromise=P==null?void 0:P.networkStatusManagerPromise;var O;this.requestKey=(O=P==null?void 0:P.requestKey)!=null?O:_.Pi("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var B;this.yGd=(B=P==null?void 0:P.yGd)!=null?B:function(Z){return new w0(Z)};
var Y;I=(Y=P==null?void 0:P.s35)!=null?Y:function(Z,d,v){return new zdm(Z,d,v)};
this.bgChallenge=phm(W.bgChallenge);this.ttlSeconds=jyR(xc(W.challenge||""));this.cu=I(this.requestKey,_.p("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.xW.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",W);mjm(this.cu);var K;this.ufP=(K=P==null?void 0:P.ufP)!=null?K:function(Z){_.uq(x.fAK.document,"visibilitychange",function(){x.fAK.document.visibilityState===
"visible"&&Z()})}},hdB=function(W){if(!W.vx){var P={maxAttempts:5,
r2R:W.ttlSeconds*1E3};tWU(W.fAK);W.vx=W.yGd({cu:W.cu,gU:{disable:_.p("html5_web_po_disable_remote_logging"),cD:"aGIf",zVG:wfW("html5_web_po_experiment_ids"),a2b:_.p("wpo_dis_lfdms")?0:1E3,pU:_.p("wpo_gel_strz")?function(I){var O=m0d.get(I);O||(O=new vtW(I),O=new Yj(O),m0d.set(I,O));return O}:void 0},
wlT:P,fV1:W.bgChallenge,p9M:p3x});W.gkP=Date.now();auz(W.vx,function(){W.gkP=Date.now()});
eIm(W.vx,function(){return _.y(function(I){return I.return(wmM(W))})});
var x=W.xh5.bind(W);W.networkStatusManagerPromise&&W.ttlSeconds>0&&W.networkStatusManagerPromise.then(function(I){I.listen("publicytnetworkstatus-online",x)});
W.ufP(x)}};
$by.prototype.xh5=function(){if(Date.now()>this.gkP+this.ttlSeconds*1E3){var W;(W=this.vx)==null||com(W)}};
var wmM=function(W){if(W.lkJ)return W.lkJ;if(!W.vx)throw Error("kj");W.lkJ=new c1({vx:W.vx,cu:W.cu,nfR:!0,onError:p3x});return W.lkJ},Q3A=function(W,P){W=new $by(W,P);
hdB(W);wmM(W)};var Y7=function(W,P){this.store=W;this.queue=[];this.supportsFocus=_.p("web_ephemeral_actions_focus");P==null||P.addEventListener("yt-navigate-start",this.reset.bind(this))};
Y7.prototype.enqueue=function(W){var P=W.command,x=W.durationMs,I=W.elementToFocus;var O=W.label;var B=W.elementToFocus;W.command?O=_.KK("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:O,shortcut:_.KK("SHIFT_PLUS_ENTER")}):B&&this.supportsFocus&&(W=O+". "+_.KK("SHIFT_PLUS_ENTER")+" for more information.",O=_.KK("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:O,shortcut:_.KK("SHIFT_PLUS_ENTER")},W));x={announcement:O,durationMs:x!=null?x:this.supportsFocus?8E3:void 0};P?x.command=P:I&&this.supportsFocus&&(I.classList.add("ephemeral-action-focusable-element"),
x.selector=I.tagName+".ephemeral-action-focusable-element");this.queue.push(x);HM2(this)};
Y7.prototype.activate=function(W){var P=_.wjx(this.store.getState());if(P){if(P==null?0:P.command)_.zm(P.command),this.store.dispatch(dfi(null));(P==null?0:P.selector)&&this.supportsFocus&&(P=document.querySelector(P.selector),_.Bom(P));W.preventDefault()}};
var HM2=function(W){if(!_.wjx(W.store.getState())&&W.queue.length){var P=W.queue.shift();P&&(W.previousAnnouncement===P.announcement&&(P.announcement+="\u00a0"),W.store.dispatch(dfi(P)),W.previousAnnouncement=P.announcement,W.timeoutId=setTimeout(function(){if(P.selector&&W.supportsFocus){var x;(x=document.querySelector(P.selector))==null||x.classList.remove("ephemeral-action-focusable-element")}W.store.dispatch(dfi(null));HM2(W)},P.durationMs))}};
Y7.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(dfi(null));this.queue.length=0;this.timeoutId=void 0};
Y7[qC]=[_.Ae,_.Je];_.y9=new _.Lb("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var edO=new _.Lb("AUTH_SERVICE_TOKEN");var zvW=_.i4(["about:blank"]),AvG;var cwy=new _.Lb("API_IFRAME_TOKEN"),a3v=new _.Lb("FETCH_FN_TOKEN"),bMM=new _.Lb("PARSE_FN_TOKEN"),kAM=new _.Lb("WINDOW_REQUEST_TOKEN");var NJw;NJw=new _.Lb("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.UbO=new _.Lb("MISC_UI_SHARED_FLAGS_TOKEN");var Xm2=function(){};
Xm2.prototype.getFlag=function(W){if(W.configType!==2)throw Error("lj");return f3v(W)};
var f3v=function(W){switch(W.flagType){case "bool":return _.p(W.flagName);case "int":return _.Fl(_.Wi(W.flagName));case "double":return _.Wi(W.flagName);case "string":return _.Pi(W.flagName);case "int32_list":return wfW(W.flagName);case "int64_list":return wfW(W.flagName).map(function(P){return _.Fl(P)});
case "string_list":return _.xO(W.flagName);default:throw Error("mj");}};var KQ=function(W,P,x){P=P===void 0?{}:P;M_.call(this,x===void 0?"uninitialized":x);this.env=W;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}];P.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=P.shouldWaitOnAsyncImmediate)};
_.A(KQ,M_);KQ.prototype.init=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return P.processPluginOptions.shouldWaitOnAsyncImmediate?_.S(I,W(P.env),2):(W(P.env),I.jumpTo(2));if(I.nextAddress!=4)return P.jobSet?_.S(I,P.jobSet.completedResolver.promise,4):I.jumpTo(4);x=_.HK();x.parkOrScheduleJob(function(){P.transition("rendering")},10,"ci");
_.Kl(I)})};
KQ.prototype.initialRender=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return P.processPluginOptions.shouldWaitOnAsyncImmediate?_.S(I,W(P.env),2):(W(P.env),I.jumpTo(2));if(I.nextAddress!=4)return P.jobSet?_.S(I,P.jobSet.completedResolver.promise,4):I.jumpTo(4);x=_.HK();x.parkOrScheduleJob(function(){P.transition("rendered")},10,"cr");
_.Kl(I)})};
KQ.prototype.afterRenderImmediate=function(W){var P=this,x;return _.y(function(I){if(I.nextAddress==1)return P.processPluginOptions.shouldWaitOnAsyncImmediate?_.S(I,W(P.env),2):(W(P.env),I.jumpTo(2));if(I.nextAddress!=4)return P.jobSet?_.S(I,P.jobSet.completedResolver.promise,4):I.jumpTo(4);x=_.HK();x.parkOrScheduleJob(function(){P.transition("after-render-deferred")},10,"carml");
_.Kl(I)})};
KQ.prototype.afterRenderDeferred=function(W){var P=this;return _.y(function(x){W(P.env);_.Kl(x)})};var NkO={},l34=(NkO.rendered={priority:0,callback:function(W){pBp(W.injector.resolve(ty))}},NkO);var Tkv=!1,Hpm=0,MWU=null,hvS=null;var rwG=new _.Lb("NETWORK_SLI_TOKEN");var iM3=function(W,P,x,I){this.networkSli=W;this.fetchFn=P;this.parseFn=x;this.requestFn=I};
iM3.prototype.fetch=function(W,P,x){var I=this,O,B,Y;return _.y(function(K){O=Rdd(I,W,P);Y=(B=I.fetchFn)!=null?B:fetch;return K.return(Y(O).then(function(Z){return I.handleResponse(Z,x)}).catch(function(Z){_.ge(Z);
if((x==null?0:x.expectJsonStrict)&&Z instanceof x9&&Z.errorType===1)return Promise.reject(Z)}))})};
var n8i=function(W,P,x,I){var O,B,Y,K,Z,d;return _.y(function(v){switch(v.nextAddress){case 1:return O=Rdd(W,P,x),_.OT(v,2),_.S(v,fetch(O),4);case 4:B=v.yieldResult;_.ci(v,3);break;case 2:throw _.yn(v),new x9(2,"Failed to parse streaming response",O.url);case 3:if(!B.redirected&&!B.ok)throw(Y=W.networkSli)==null||Y.failure(),new _.mW("Streaming fetch request not ok",O.url);if(!B.body)throw new _.mW("No response body in streaming response",O.url);K=B.body.pipeThrough(new TextDecoderStream).getReader();
Z=new _.Ok;d={};return v.return(FPy(W,K,Z,oIC,d,I))}})},Rdd=function(W,P,x){if(W.networkSli){var I=_.YO(_.T7(P,"key"))||"/UNKNOWN_PATH";
W.networkSli.start(I)}I=x;_.p("wug_networking_gzip_request")&&(I=TEW(x));var O;return new ((O=W.requestFn)!=null?O:window.Request)(P,I)},FPy=function(W,P,x,I,O,B){var Y,K,Z,d,v,m,t,C,z;
return _.y(function(D){if(D.nextAddress==1)return _.S(D,P.read(),2);Y=D.yieldResult;K=Y.value;if(Z=Y.done)return(d=W.networkSli)==null||d.success(),D.return(O);try{v=x.parse(K)}catch(w){throw new x9(1,"Failed to parse streaming response",K);}if(v!=null)for(m=_.n(v),t=m.next();!t.done;t=m.next())C=t.value,I(O,C),z=void 0,(z=B)==null||z(O,C);return D.return(FPy(W,P,x,I,O,B))})};
iM3.prototype.handleResponse=function(W,P){var x,I=(x=this.parseFn)!=null?x:JSON.parse;x=W.text().then(function(O){if((P==null?0:P.jspbResponseCtor)&&W.ok)return ISW(P.jspbResponseCtor,O);O=O.replace(")]}'","");if((P==null?0:P.expectJsonStrict)&&O)try{var B=I(O)}catch(K){throw new x9(1,"JSON parsing failed after fetch");}var Y;return(Y=B)!=null?Y:I(O)});
W.redirected||W.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),x=x.then(function(O){_.ge(new _.mW("Error: API fetch failed",W.status,W.url,O));return Object.assign({},O,{errorMetadata:{status:W.status}})}));
return x};
iM3[qC]=[_.Rl(rwG),_.Rl(a3v),_.Rl(bMM),_.Rl(kAM)];var qcm=new _.Lb("NETWORK_MANAGER_TOKEN");var LPy=[1,2,4,8,16,30],P3B=function(W){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=W.maxTimeMs;this.maxFrameCount=W.maxFrameCount===void 0?Math.ceil(60*W.maxTimeMs/1E3):W.maxFrameCount;W=_.n(LPy);for(var P=W.next();!P.done;P=W.next())this.brokenFrameSummarizers.push(new WOQ(P.value/60*1E3))},xL2=function(W){var P=W.frameCountInternal>=W.maxFrameCount;
return W.elapsedTimeMs>=W.maxTimeMs||P},IBL=function(W){for(var P=[],x=_.n(W.brokenFrameSummarizers),I=x.next();!I.done;I=x.next())I=I.value,I=I.brokenFrameCount!==0?{severityMs:Math.round(I.targetFrameTimeMs),
eventCount:I.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(I.averageDurationBetweenEventsMs)}:void 0,I&&P.push(I);return{summaries:P,monitoringDurationMs:Math.round(W.elapsedTimeMs)}};
_.N1.Object.defineProperties(P3B.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 WOQ=function(W){this.targetFrameTimeMs=W;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.N1.Object.defineProperties(WOQ.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var O22=function(){};
O22.prototype.start=function(W,P){var x=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var I=new P3B({maxTimeMs:W});this.monitor=I;this.lastSummaryInternal=void 0;this.metadataToLog=P;return new Promise(function(O){var B=function(Y){if(Y===void 0)x.stop(),O(void 0);else if(x.monitor!==I)Y=Object.assign({},IBL(I),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),O(Y);else{var K=x.monitor;if(!xL2(K)){K.frameCountInternal++;if(K.prevTime===void 0)K.startTime=
Y;else for(var Z=Y-K.prevTime,d=_.n(K.brokenFrameSummarizers),v=d.next();!v.done;v=d.next()){v=v.value;var m=v.currTimeMs;v.currTimeMs+=Z;Z>v.targetFrameTimeMs+2&&(v.brokenFrameCount++,v.timeOfFirstBrokenFrameMs===void 0&&(v.timeOfFirstBrokenFrameMs=m),v.timeOfLastBrokenFrameMs=m)}K.prevTime=Y}xL2(x.monitor)?O(x.stop()):_.Gr.addJob(B,5,0)}};
_.Gr.addJob(B,5,0)})};
O22.prototype.stop=function(W){if(!this.monitor)return this.lastSummaryInternal;var P=Object.assign({},IBL(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(P.monitoringDurationMs){W=W!=null?W:this.metadataToLog;var x={droppedFramesSummary:P,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};W&&(x[W.type]=W.data);_.Ay("manualSmoothnessMeasurement",x)}this.monitor=void 0;this.lastSummaryInternal=P;this.metadataToLog=void 0;return P};_.J9d=new _.Lb("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var BMy;BMy=function(W){this.JSC$16205_expiringStorage=new tY(W)};
_.n42=function(W){if(_.evm()&&(W=_.ji8(_.sy()+"::"+W)))return new BMy(W)};
BMy.prototype.set=function(W,P,x){x=x!==void 0?Date.now()+x:void 0;this.JSC$16205_expiringStorage.set(W,P,x)};
BMy.prototype.get=function(W){return this.JSC$16205_expiringStorage.get(W)};
BMy.prototype.remove=function(W){this.JSC$16205_expiringStorage.remove(W)};var Yv2=new _.Lb("SESSION_STORAGE");_.ZD=function(){};
_.ZD.getInstance=function(){var W=_.eL("ytglobal.storage_");W||(W=new _.ZD,_.lA("ytglobal.storage_",W));return W};
_.ZD.prototype.estimate=function(){var W,P,x;return _.y(function(I){W=navigator;return((P=W.storage)==null?0:P.estimate)?I.return(W.storage.estimate()):((x=W.webkitTemporaryStorage)==null?0:x.queryUsageAndQuota)?I.return(cvt()):I.return()})};
_.lA("ytglobal.storageClass_",_.ZD);var y92=!1;var KOy=_.i4(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Z2v=_.i4(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var pG3={"/":_.dx,"/?feature=ytca":_.dx,"/feed/downloads":_.GGC};var VV=function(W,P,x){this.JSC$16218_upliftPromise=W;this.store=P;this.JSC$16218_persistentStorePromiseAccessor=x};
VV.prototype.shouldPreferLocalResponse=function(W){return W.browseId==="FEdownloads"||W.browseId==="FEsmart_downloads"&&_.p("kevlar_modern_downloads_page")?!0:!1};
VV.prototype.localInnertubeResponse=function(W){var P=this;return _.y(function(x){return W.browseId==="FEdownloads"?_.p("kevlar_modern_downloads_page")?x.return(o4O(P)):x.return(Svy(P)):W.browseId==="FEsmart_downloads"&&_.p("kevlar_modern_downloads_page")?x.return(u6O(P)):x.return(Promise.reject(Error("oj")))})};
VV.prototype.canProvideFallbackResponse=function(){return!0};
VV.prototype.localFallbackInnertubeResponse=function(W){var P=this,x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:return _.S(B,P.JSC$16218_persistentStorePromiseAccessor(),2);case 2:x=B.yieldResult;if(W.browseId!=="SPaccount_downloads"||!x){B.jumpTo(3);break}return _.S(B,mPW(x),4);case 4:if(I=B.yieldResult)return B.return(_.Zs(I));case 3:return W.browseId==="FEwhat_to_watch"?B.return(dL9(P)):(O=_.p("web_offline_continuation_automatic_retry")||_.p("web_offline_continuation_retry_button"))&&
W.continuation?B.return(sG9(P)):B.return(v43(P))}})};
var dL9=function(W){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,W.JSC$16218_upliftPromise,2);P=_.ycW(W.store.getState().entities);return P.length?x.return(mL4(W,P)):x.return(v43(W))})},Svy=function(W){var P,x;
return _.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$16218_upliftPromise,2);if(I.nextAddress!=3)return P=Vm2([{offlineItemSectionRenderer:{}}]),_.S(I,tmQ(W,P),3);x=I.yieldResult;x.onResponseReceivedActions=[Er("REFRESH_DOWNLOADS")];return I.return(x)})},o4O=function(W){var P,x,I,O,B,Y,K,Z,d,v,m,t,C;
return _.y(function(z){if(z.nextAddress==1)return _.S(z,W.JSC$16218_upliftPromise,2);if(z.nextAddress!=3)return P=W.store.getState(),x=P.entities,I=_.tb(x),O=_.pR(x),B=_.bwo(P),Y=_.ayd(P),K=_.kNG(P),Z=_.Stx(x),d=_.dE(I),v=_.jl(x),m={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.c48(I,O,Z,B,Y,d,v,K),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},t=_.KK("DOWNLOADS",void 0,"Downloads"),_.S(z,py2(W,m,t),3);C=z.yieldResult;
C.onResponseReceivedActions=[Er("REFRESH_DOWNLOADS")];return z.return(C)})},u6O=function(W){var P,x,I,O,B,Y,K,Z,d;
return _.y(function(v){if(v.nextAddress==1)return _.S(v,W.JSC$16218_upliftPromise,2);if(v.nextAddress!=3)return P=W.store.getState(),x=P.entities,I=_.tb(x),O=_.dE(I),B=_.jl(x),Y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.bi8(I),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},K=_.KK("SMART_DOWNLOADS",void 0,"Smart downloads"),Z=HiU(O,B),_.S(v,py2(W,Y,K,Z),3);d=v.yieldResult;d.onResponseReceivedActions=[Er("REFRESH_DOWNLOADS")];
return v.return(d)})},v43=function(W){var P,x;
return _.y(function(I){if(I.nextAddress==1)return _.S(I,KP(W.JSC$16218_upliftPromise,W.store),2);P=I.yieldResult;x=Vm2([ugx(P)]);return I.return(tmQ(W,x))})},sG9=function(W){var P,x,I,O;
return _.y(function(B){if(B.nextAddress==1)return P={},x=W.store.getState().continuation.continuationCommand,_.tF(P,_.gL,x),_.S(B,KP(W.JSC$16218_upliftPromise,W.store,P,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);I=B.yieldResult;O={};_.tF(O,_.YFz,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:I}}}],targetId:"browse-feedFEwhat_to_watch"});return B.return({responseContext:{},onResponseReceivedActions:[O]})})},Vm2=function(W){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:W}}}}]}}},mL4=function(W,P){var x,I;
return _.y(function(O){var B={contents:gn(P)};x=B&&B.contents?B:{};_.p("kevlar_modern_downloads_page")&&(x=Object.assign({},_.kGt(P),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));I={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:x}}}]}};return O.return(tmQ(W,I))})},tmQ=function(W,P){var x,I;
return _.y(function(O){if(O.nextAddress==1)return _.S(O,W.JSC$16218_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return x=O.yieldResult,_.S(O,oz(x),3);I=O.yieldResult;return O.return({responseContext:{},contents:P,topbar:I})})},py2=function(W,P,x,I){var O,B;
return _.y(function(Y){if(Y.nextAddress==1)return _.S(Y,W.JSC$16218_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return O=Y.yieldResult,_.S(Y,oz(O),3);B=Y.yieldResult;var K=Y.return;var Z=I;Z=Z===void 0?"":Z;Z={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:x}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.KK("SETTINGS",void 0,"Settings"),accessibilityText:_.KK("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:rw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:Z}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:x};
return K.call(Y,{responseContext:{},contents:P,topbar:B,header:{pageHeaderRenderer:Z}})})};var jGy=function(){this.moduleRegistry={};this.fetchCount=0};
jGy.prototype.isFetching=function(){return this.fetchCount>0};
var Ue=function(W,P){W.moduleRegistry[P.toString()]={asyncId:P,isFetching:!1};return W};
jGy.prototype.JSC$16229_loadModules=function(){for(var W=this,P=new Map,x=[],I=_.n(_.tH.apply(0,arguments)),O=I.next();!O.done;O=I.next()){O=O.value;var B=this.moduleRegistry[O];B?B.resolver?P.set(O,B.resolver):(B.resolver=new _.If,P.set(O,B.resolver),x.push(B.asyncId),B.isFetching=!0):(B=new _.If,P.set(O,B),B.resolve(void 0))}x.length&&(this.fetchCount+=1,_.CA(_.jf.getMultipleAsync.apply(_.jf,_.ju(x)).then(function(Y){for(var K=0;K<x.length;K++){var Z=Y[K],d=W.moduleRegistry[x[K].toString()];d.isFetching=
!1;d.resolver.resolve(Z)}}).catch(function(Y){for(var K=_.n(x),Z=K.next();!Z.done;Z=K.next()){Z=Z.value;
var d=W.moduleRegistry[Z.toString()];d.resolver=void 0;d.isFetching=!1;P.get(Z.toString()).reject(Y)}}),function(){--W.fetchCount}));
return Promise.all([].concat(_.ju(P.values())).map(function(Y){return Y.promise}))};_.X3=new _.Lb("MODULE_REGISTRY_TOKEN");var QGy={},C3M=(QGy.rendered={priority:0,callback:function(W){a:{var P=void 0;try{var x;b:{if(_.IxW()){var I=_.pVx(_.sy()+"::pom");if(I){var O=new Zi(I);break b}}O=void 0}var B=(x=O)==null?void 0:x.get("role_text");if(!B)break a;P={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:B}]}}}}}}catch(Z){}P&&W.injector.resolve(_.qR).resolveCommand(P)}try{var Y=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Y){var K=JSON.parse(Y);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
K&&W.injector.resolve(_.qR).resolveCommand(K)}}catch(Z){}}},QGy);var A9O,zQO={},Gdy=(zQO.initialized={priority:10,callback:function(){A9O=Ee()}},zQO.rendering={callback:function(W){var P;
return _.y(function(x){if(x.nextAddress==1)return _.S(x,A9O,2);P=x.yieldResult;if(!P.endpoint)throw Error("qj`"+_.xW.location.href);$c(W,P);_.Kl(x)})}},zQO);var E4d={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.ju(_.p("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(W){var P=W.stack;if(P.includes("chrome://")||P.includes("chrome-extension://")||W.message.includes("chrome-extension://")||P.includes("moz-extension://")||P.includes("local.adguard.org")||P.includes("auctioneer3.50million.club")||P.includes("youtubedownloader")||P.includes("youtube_home_page")||P.includes("is_youtube_video_no_longer_available")||
P.includes("switchScreenSizeHack")||P.includes("yt_main_big_banner.js")||P.includes("YouTubeCenter.js")||P.includes("/mytube.js")||P.includes("JSON.parseWrapper")||P.includes("/inj_js/common.js")||P.includes("firebug-lite")||P.includes(".repl.co/")||P.includes("linkfix")||P.includes("playAfterAd")||W.message.includes("Access is denied for this document")&&P.includes("<anonymous>")||W.fileName==="user-script"||W.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
P.includes("<anonymous>"))return!0;if(P.includes("https://www.youtube.com"))return!1;W=P.split("\n");if(!W.length)return!1;if(W.length<=3&&P.includes("s.onloadeddata"))return!0;P=0;for(var x=_.n(W),I=x.next();!I.done;I=x.next())I=I.value,(I.includes("https://")||I.includes("http://"))&&P++;return P/W.length>.95},
weight:0},{callback:function(W){return W.message==="Unknown Error"&&W.name.indexOf("NS_")===0},
weight:100},{callback:function(W){if(!_.yo)return!1;var P=W.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||W.message.includes("available to complete this operation"),x=W.stack.includes("webcomponents")&&W.message==="Object doesn't support this action";W=W.message.includes("object that does not implement interface Element");return P||x||W},
weight:0},{callback:function(W){return W.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(W){return W.message==="Operation is not supported"&&(W.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(W){return W.stack.includes("eval code (eval (code:1:1)")||W.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(W){return W.message.includes("Permission denied")&&W.stack.includes("this.domHandler")?!0:W.name.includes("TypeError")&&W.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(W){if(!W.stack)return!1;var P=W.stack.trim().split("\n");P.length&&P[0].endsWith("Error: "+W.message)&&P.shift();P.length&&P[P.length-1].includes("at window.onerror (")&&P.pop();if(!P.length)return!0;if(W.message==="Script error.")return P[0].includes("www.youtube.com")||P.length>=2&&P[0].startsWith("at new")&&P[1].startsWith("at window.onerror");if(W.message==="Unexpected token")return!0;W=_.n(P);for(P=W.next();!P.done;P=W.next())if(P=P.value,!(P.includes("<anonymous>")||
P.startsWith("load@")||P.startsWith("global code@")||P.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(W){return W.message==="Cannot read property 'experiments'"&&W.stack.includes("/s/player/")},
weight:500},{callback:function(W){return W.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(W){return W.stack.includes("/embed.js")?(W.params&&W.params&&(W.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.p("use_error_suppression"))var W=_.$$("SUPPRESS_CLIENT_ERRORS",!1);else{if(W=_.u9)W=/Chrome\/(\d+)/.exec(_.sU()),W=(W?parseFloat(W[1]):NaN)>=66;W=!(W||_.Se&&_.od(65)||_.MM&&_.od(12.1)||fj&&_.od(79))}return W},
weight:500}]};var g4f={},DLd=(g4f.initialized={priority:10,callback:function(W){W.injector.addProvider({provide:F5w,useValue:W.root});W.injector.addProvider({provide:d73,useValue:mgt});W.injector.addProvider({provide:sod,useValue:E4d});var P={};W.injector.addProvider((P.provide=vWB,P.useFactory=function(x,I){return function(){$PS(x,I)}},P[qC]=[d73,
sod],P));W.injector.addProvider({provide:n7,useClass:n7})}},g4f);var MmG={},$LG=(MmG.initialized={priority:3,callback:function(){var W;if(W=uuR()){W=W.replace("/",".");var P=_.SI();P.set("tz",W);P.save();W=!0}else W=!1;W||(W=_.SI(),W.set("utco",-Math.floor((new Date).getTimezoneOffset())),W.save())}},MmG);var wy6={},hQ3=(wy6.initialized={priority:10,callback:function(W){W.injector.resolve(n7).start();W=_.wT();var P=_.wo("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.wo("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.wo("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.wo("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.se(_.kQU(),{mainAppWeb:Object.assign({},W,{pageType:P})});_.se(X17(),{mainAppWeb:Object.assign({},W,{pageType:P})});
_.se(fGR(),{mainAppWeb:W});_.se(N0R(),{mainAppWeb:W});wP3(function(){_.vX(fGR(),"FAILURE");_.vX(N0R(),"FAILURE")});
FF7();q6C();TyU()}},wy6);var H2M={},eQf=(H2M.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.CK("dl"),_.HK().processSignal("pcl");else{var W=function(){_.CK("dl");_.HK().processSignal("pcl");window.removeEventListener("load",W)};
window.addEventListener("load",W)}}},H2M);var c9Q={},aBO=(c9Q.rendering={priority:0,callback:function(){var W=_.HK();W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor",5E3)}},c9Q);var b29=function(){};
_.A(b29,zi);
b29.prototype.resolveCommand=function(W,P){var x,I,O,B,Y,K,Z,d;return _.y(function(v){O=(x=_.Q(W,_.fgm))==null?void 0:(I=x.dialog)==null?void 0:I.commentReplyDialogRenderer;if(!O)throw new _.mW("No dialog in createCommentReplyDialogEndpoint");Y=(B=P.form)==null?void 0:B.event;if(!Y)throw new _.mW("Event not passed in when resolving command");K=_.n(Y.composedPath());for(Z=K.next();!Z.done;Z=K.next())if(d=Z.value,d.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||d.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return d.showReplyDialog(O),v.return();
_.Kl(v)})};var oZ=function(W){this.pageRequestService=W;this.JSC$16244_prefetchCoordinator=x72()};
_.A(oZ,zi);oZ.prototype.resolveCommand=function(W){var P=this,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1){x=_.Q(W,QIP);if((I=x)==null||!I.taskId)throw Error("rj");O=x.taskId;_.OT(Y,2);return _.S(Y,_.BC3(P.pageRequestService,W,{},"").then(function(K){if(!K)throw Error("sj");},function(K){throw Error("tj`"+K);
}),4)}if(Y.nextAddress!=2)return Jm3(P.JSC$16244_prefetchCoordinator,O),_.ci(Y,0);
B=_.yn(Y);l1(P.JSC$16244_prefetchCoordinator,O,B);_.Kl(Y)})};
oZ[qC]=[Gc];var SH=function(W){this.innertubeTransportService=W};
_.A(SH,zi);SH.prototype.resolveCommand=function(W){var P=this,x,I;return _.y(function(O){x=_.Q(W,Acm);if(x.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||x.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")I=x.boolValue?2:1,_.iG.getInstance().setState(I,!0,!0);return _.S(O,_.cF(P.innertubeTransportService,W),0)})};
SH[qC]=[_.m7];var uD={},kdm=(uD.addToPlaylistEndpoint=TZ(su),uD.addToToastAction=TZ(vl),uD.adsControlFlowOpportunityReceivedCommand=TZ(qN),uD.captionLanguageSelectActionCommand=TZ(Dk),uD.captionPickerEndpoint=TZ(Mr),uD.changeMiniAppPlayStateCommand=TZ(vs),uD.changeTimelyActionVisibilityCommand=TZ(sC),uD.channelCreationFormEndpoint=TZ(Kn),uD.clearLocationCommand=TZ(d8),uD.clearUrlParamCommand=TZ(mE),uD.copyLinkCommand=TZ(ew),uD.copyTextEndpoint=TZ(Ps),uD.createCommentReplyDialogEndpoint=rZt(b29),uD.createPlaylistServiceEndpoint=
TZ(cs),uD.dismissDialogEndpoint=TZ(tk),uD.entityUpdateCommand=TZ(I0),uD.feedbackEndpoint=TZ(Bs),uD.getAnswerCommand=TZ(Y5m),uD.getPaymentsClientTokenCommand=TZ(tI),uD.getTranscriptEndpoint=TZ(mg),uD.googlePaymentBillingCommand=TZ(pe),uD.googlePaymentPurchaseManagerCommand=TZ(jc),uD.hideEngagementPanelEndpoint=TZ(pn),uD.insertRichSectionCommand=TZ(o0),uD.listMutationCommand=TZ(Sw),uD.logGtmCommand=TZ(Zk),uD.notifyDropdownOptionSelectedCommand=TZ(VP),uD.openAdAllowlistInstructionCommand=TZ(_.LZ),uD.openOnePickAddVideoModalCommand=
TZ(a0),uD.persistSubscriptionsDisplayPreferencesCommand=TZ(lo),uD.pingingEndpoint=TZ(Ws),uD.playlistEditEndpoint=TZ(k2),uD.playlistVotingRefreshPopupCommand=TZ(Uu),uD.refreshPanelEndpoint=TZ(jw),uD.saveImageToDeviceEndpoint=TZ(x2),uD.scrollToSectionEndpoint=rZt(y_k),uD.seekToVideoTimestampCommand=TZ($2),uD.selectCountryCommand=TZ(T2),uD.setCookieCommand=TZ(r8),uD.setLocalStorageCommand=TZ(Zp),uD.setPrefStorageEntryCommand=TZ(R0),uD.setSettingEndpoint=TZ(SH),uD.sfvAudioItemPlaybackCommand=TZ(w8),uD.shareImageCommand=
TZ(FR),uD.sharingProviderDataCommand=TZ(qr),uD.showCaptionLanguageSelectActionCommand=TZ(hk),uD.showDialogCommand=TZ(Ak),uD.showEngagementPanelEndpoint=TZ(z2),uD.showSheetCommand=TZ(G2),uD.showSnackbarCommand=TZ(Ke),uD.showTransientPlayerScrimOverlayCommand=TZ(Hs),uD.submitFormWithValidationFlowCommand=TZ(yP),uD.talkToRecsDeselectCommand=TZ(oJ),uD.talkToRecsNextCommand=TZ(Sc),uD.talkToRecsSelectCommand=TZ(uH),uD.talkToRecsUpdateTextCommand=TZ(dV),uD.toggleEngagementPanelCommand=TZ(Eu),uD.undoFeedbackEndpoint=
TZ(Y2),uD.updateEngagementPanelContentCommand=TZ(g8),uD.updateUrlParamCommand=TZ(VW),uD.verifyCommand=TZ(Kn),uD.webNativeShareCommand=TZ(Ln),uD.webSubmitFormCommand=TZ(fn),uD.ACK_PLAYABLES_3P_DATA_CONSENT=TZ(Wl),uD.CANCEL_NAVIGATION=TZ(Pl),uD.COPY_SHARE_URL=TZ(xI),uD.MINI_APP_EXIT_DIALOG_SEEN=TZ(OC),uD.MINI_APP_OPEN_URL=TZ(IJ),uD.REQUEST_MINI_APP_FULLSCREEN=TZ(JI),uD.RESUME_NAVIGATION=TZ(Bl),uD.SHARE_PLAYABLE_WITH_HIGH_SCORE=TZ(ne),uD.TELL_US_WHY=TZ(nn),uD);
_.p("web_enable_prefetching_videos_on_home")&&(kdm.prefetchWatchCommand=TZ(oZ),kdm.registerTasksCommand=TZ(rj));_.p("enable_share_panel_navigation_logging_fix_on_web")&&(kdm.shareEntityServiceEndpoint=TZ(QP));var QOp=Object.assign({},kdm);var UL4={},Xym=(UL4.initialized={priority:10,callback:Im7},UL4);var fBm={},NMm=(fBm.initialized={callback:function(W){var P={},x={};O3x().install((P.document_disposed={callback:function(){_.p("finalize_all_timelines")?KaW():pK();$jd("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.d8m();var I=W.injector.resolve(n7);I.intervalId!==void 0&&(I.intervalId&&_.Gr.cancelJob(I.intervalId),I.intervalId=void 0,--I.currentPartitionIndex,I=ajd(I),I>0&&KXm({mainAppWeb:_.wT(),survivalSli:{partitionMinute:I,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Pck(bG);kZ!=null&&
kZ.flush();qB&&qB.snapshotAndFlush();I=_.n(m0d.values());for(var O=I.next();!O.done;O=I.next())O.value.snapshotAndFlush()}},P),(x.flush_logs={callback:function(){_.z$()}},x))}},fBm);var lBM={},TMG=(lBM.rendered={priority:0,callback:function(){var W=new QQw;W.increment("STARTED");if(_.$$("LOGGED_IN")&&_.$$("SERVER_VERSION")!=="test"&&_.$$("SERVER_VERSION")!=="dev"&&!Yc3()&&!niM()){W.increment("EXECUTING");var P=document.createElement("iframe");P.style.display="none";_.V$G(P,2,_.my("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.$$("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(P);W.increment("DONE")}}},lBM);var r9O={},i26=(r9O.rendered={callback:function(){x72().resume()}},r9O);var RQm={acknowledgeChannelTouStrikeCommand:Dh(q6),addToPlaylistServiceEndpoint:Dh(xe),addToPlaylistEndpoint:Dh(xe),addUpcomingEventReminderEndpoint:Dh(tX),browseEndpoint:Dh(HVp),channelCreationFormEndpoint:Dh(N6),channelCreationServiceEndpoint:Dh(lH),claimLegacyYoutubeChannelEndpoint:Dh(M6),clearSearchHistoryEndpoint:Dh(JX),clearWatchHistoryEndpoint:Dh(Bk),commerceActionCommand:Mx(Gt),createBackstagePostEndpoint:Dh(AI),createBroadcastCommand:Dh(p3),createCommentEndpoint:Dh(kI),createCommentReplyEndpoint:Dh(bH),
createLiveChatPollEndpoint:Dh(jG),createPlaylistServiceEndpoint:Dh(IF),crossAccountChannelTransferEndpoint:Dh(sR),deleteLiveChatMessageCommand:Dh(Q_),deletePlaylistEndpoint:Dh(Ob),deleteVideoEndpoint:Dh(Vm),dismissalEndpoint:Dh(Le),feedbackEndpoint:Dh(Wk),flagEndpoint:Dh(KF),getAccountSwitcherEndpoint:Dh(du),verifyCommand:Dh(Ce),getAccountsListInnertubeEndpoint:Dh(m5),getCommentsFromInboxCommand:Dh(ac),getDownloadActionCommand:Dh(lu),getFlowCommand:Mx(OR),getKidsBlocklistPickerCommand:Dh(ZU),getNotificationMenuEndpoint:Dh(a7M),
getPaymentInstrumentsParamsCommand:Dh(wj),getPaymentsClientTokenCommand:Mx(Gt),getPdgBuyFlowCommand:Dh(Wt),getReportFormEndpoint:Dh(oF),getSearchInVideoCommand:Dh(dj),getAnswerCommand:Dh(u1),getSurveyCommand:Dh(mM),getTranscriptEndpoint:Dh(j4),getPostVideoPreviewEndpoint:Dh(GL),decorateMessageEndpoint:Dh(zL),likeEndpoint:Dh(TL),liveChatActionEndpoint:Dh(G0),liveChatEndpoint:Dh(z0),liveChatItemContextMenuEndpoint:Dh(C3),liveChatPurchaseMessageEndpoint:Dh(ER),liveChatReplayEndpoint:Dh(AX),manageLiveChatUserEndpoint:Dh(Dj),
metadataUpdateCommand:Dh(eG),moderateLiveChatEndpoint:Dh(M8),modifyChannelNotificationPreferenceEndpoint:Dh(XX),notificationOptOutEndpoint:Dh(f3),openSuperStickerBuyFlowCommand:Dh(gu),performCommentActionEndpoint:Dh(ec),playlistEditEndpoint:Dh(Bt),playlistEditorEndpoint:Dh(JA),profileCardCommand:Dh(V_),recordNotificationInteractionsEndpoint:Dh(N8),reelWatchEndpoint:Dh(nF),refreshPanelEndpoint:Dh(ru),removeUpcomingEventReminderEndpoint:Dh($G),resolveLocationCommand:Dh(Hk),revealBusinessEmailCommand:Dh($I),
searchEndpoint:Dh(_.bVb),sendLiveChatMessageEndpoint:Dh(wu),sendLiveChatVoteEndpoint:Dh(hX),setSettingEndpoint:Dh(rV),shareEntityServiceEndpoint:Mx(Fr),sharingProviderDataCommand:Dh(vt),showEngagementPanelEndpoint:Dh(iu),showMoreDrawerCommand:Dh(FX),showSheetCommand:Dh(q8),showDialogCommand:Dh(Rc),subscribeEndpoint:Dh(iH),transcriptSubmitCaptionCorrectionCommand:Dh(pF),undoFeedbackEndpoint:Dh(xG),unsubscribeEndpoint:Dh(RJ),updateBackstagePostEndpoint:Dh(gV),updateCommentEndpoint:Dh(Xr),updateCommentReplyEndpoint:Dh(UC),
updateCommentsSettingsEndpoint:Dh(fe),updateCreatorChannelInnertubeCommand:Dh(hI),updateKidsBlacklistEndpoint:Dh(S4),updateEngagementPanelContentCommand:Dh(L3),updatePdgFeatureEnablementCommand:Dh(Pt),updatedMetadataEndpoint:Dh(ck),validateChannelHandleCommand:Dh(Hl),updateChannelPageSettingsEndpoint:Dh(wV),verifyAgeEndpoint:Dh(Ic),watchEndpoint:Mx(tA),whitelistEditEndpoint:Dh(zt),ypcCancelRecurrenceEndpoint:Dh(Eb),ypcCompleteTransactionEndpoint:Dh(gj),ypcFixInstrumentEndpoint:Dh(Mw),ypcGetCartEndpoint:Dh(DU),
ypcGetOffersEndpoint:Dh($e),ypcHandleTransactionEndpoint:Mx(hA),ypcLogWalletAnalyticDataEndpoint:Dh(Ht),ypcOffersEndpoint:Dh(e4),ypcPauseSubscriptionCommand:Dh(ct),ypcRedeemCodeEndpoint:Dh(aF),ypcResumeSubscriptionCommand:Dh(b1),ypcUpdateFopEndpoint:Dh(Mw)},dm={},FO2=(dm.GET_ACCOUNT_MENU=Dh(vk),dm.GET_NOTIFICATIONS_MENU=Dh(c_m),dm.GET_NOTIFICATIONS_INBOX=Dh(bu),dm.GET_UNSEEN_NOTIFICATION_COUNT=Dh(UR),dm.GET_USER_MENTION_SUGGESTIONS=Dh(EC),dm.LOAD_GUIDE=Dh(eAm),dm.SUBMIT_FEEDBACK=Dh(Pk),dm),sM={},
qvG=(sM.CONTINUATION_REQUEST_TYPE_BROWSE=Dh(Dp),sM.CONTINUATION_REQUEST_TYPE_SEARCH=Dh(sb),sM.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Dh(CF),sM.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Dh(n3),sM.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Dh(aJ),sM.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Dh(cl),sM.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Dh(ym),sM.CONTINUATION_REQUEST_TYPE_GET_PANEL=Dh(T0),sM),LOm={player:_.p("web_streaming_player")?Mx(AA):Mx(tA),watchNext:Dh(Qm)},Wuy={player:Mx(tA),reelItemWatch:Dh(nF),
reelWatchSequence:Dh(Ye)},PIG={watchEndpoint:Mx(AA)},x5M={commandEndpointMap:RQm,signalEndpointMap:FO2,continuationEndpointMap:qvG,watchEndpointMap:LOm,reelWatchEndpointMap:Wuy,streamingEndpointMap:PIG};var IS4,Oxd,J2v,BDf={disableAllTransitions:(Oxd=(IS4=window).matchMedia)==null?void 0:(J2v=Oxd.call(IS4,"(prefers-reduced-motion: reduce)"))==null?void 0:J2v.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var nTv=new _.Lb("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.v4=new _.Lb("VIEW_TRANSITION_MANAGER_TOKEN");var Yif=function(W){this.config=W;this.transitionTasksMap=new Map;W=_.n(W.transitionConfigs);for(var P=W.next();!P.done;P=W.next())P=_.n(P.value).next().value,this.transitionTasksMap.set(P,[])};
Yif[qC]=[nTv];var OGC={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 BfW=["videoPrimaryInfoRenderer","title"],nkS=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var y2d;y2d=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Kuf=_.kl(function(W){W=_.bw(W,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var P=W.data,x=W.playlistData,I=W.expanded,O=W.onExpandClick,B=W.isReadyToResume,Y=function(){var v;return!((v=x())==null||!v.contents)},K=function(){var v=x();
return v&&v.totalVideos&&v.currentIndex!==void 0?v.currentIndex+1+" / "+v.totalVideos:""};
W=_.yB(function(){_.mH(_.FY().resolve(_.kc))});
var Z=_.yB(function(){Y()&&O&&O()}),d={};
return _.u("ytd-miniplayer-info-bar",{class:_.O4("ytdMiniplayerInfoBarHost",(d.ytdMiniplayerInfoBarHasPlaylistData=Y,d)),"on:click":Z},_.u("div",{class:"ytdMiniplayerInfoBarContent"},_.u("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":W},_.u(_.mQ,{text:function(){var v=P();var m=x();if(m==null?0:m.contents){var t;v=(t=_.yem(m))==null?void 0:t.title}else v=v==null?void 0:v.miniplayerTitle;return y5m(v)},
noEndpoints:!0,ellipsisTruncate:!0})),_.u("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.u("h1",null,_.u(_.mQ,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var v=P();var m=x();v=B()?{simpleText:_.KK("CONTINUE_WATCHING",void 0,"Continue watching")}:(m==null?0:m.contents)?m.titleText:v==null?void 0:v.miniplayerSubtitle;return y5m(v)},
noEndpoints:!0,ellipsisTruncate:!0})),_.u(_.V,{cond:function(){return!!K()&&!B()},
then:function(){return _.u("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.u("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.u("span",null,K))}}),_.u(_.V,{cond:B,
then:function(){return _.u(xdl,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:y2d})}}))),_.u(_.V,{cond:Y,
then:function(){return _.u("div",{class:"ytdMiniplayerInfoBarExpand"},_.u(PO,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(v){O&&(O(),v.stopPropagation())}}},
iconName:function(){return I()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"me");var Zxf;Zxf=_.kl(function(W){return _.u("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.u(PO,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:W.onTap}},
iconName:"yt-icons:close"}))},"ne");
_.oTf=_.kl(function(W){W=_.bw(W,{playabilityStatus:void 0,isDisabled:!1});var P=W.size,x=W.playabilityStatus,I=W.isDisabled,O=_.fa();W=_.n(_.YV(void 0,void 0,"bJr0Se"));var B=W.next().value,Y=W.next().value;W=_.G4(_.m0);var K=!1,Z=function(){return P().height<=0};
_.jj(function(){var t=P(),C=Z(),z=B();z&&!C&&z.setInternalSize(t.width,t.height)});
_.Qa(function(){var t,C,z;return _.y(function(D){if(D.nextAddress==1){t=_.FY().resolve(_.kc);C=t.getPlayerElement();if(!t.isMiniplayerActive()||!C||!O.value)return D.return();C.appendTo(O.value);return _.S(D,C.getPlayerPromise(),2)}z=D.yieldResult;z.setSizeStyle(!1,!0);Y(z);_.Kl(D)})});
_.C4(function(){d()});
_.jj(function(){var t=B();if(t)if(I()){var C=t.getPlayerState();(K=C===-1||C===1||C===3)&&t.pauseVideo()}else d()});
var d=function(){if(K){K=!1;var t;(t=B())==null||t.playVideo()}},v=_.yB(function(){_.mH(_.FY().resolve(_.kc))}),m={};
return _.u("ytd-miniplayer-player-container",{class:_.O4("ytdMiniplayerPlayerContainerHost",(m.ytdMiniplayerPlayerContainerHidden=Z,m.ytdMiniplayerPlayerContainerHostShortsPip=W,m)),style:_.oP({width:function(){return P().width+"px"},
height:function(){return P().height+"px"}})},_.u("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:O}),_.u(_.V,{cond:function(){return!!x()&&!_.nvW(x())},
then:function(){return _.u(xub,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var t;return((t=x())==null?void 0:t.errorScreen)||null},
status:function(){var t;return((t=x())==null?void 0:t.status)||null}})}}),_.u(_.V,{cond:I,
then:function(){return _.u("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":v},_.u(Zxf,{onTap:function(){_.FY().resolve(_.kc).close()}}))}}))},"oe");_.Si6=_.kl(function(W){var P=W.toastData;var x=_.fa();W=_.n(_.Zh(function(){return!!P()}));
var I=W.next().value,O=W.next().value;W=_.n(_.YV(!1,void 0,"xkrBze"));var B=W.next().value,Y=W.next().value,K=function(){var v;return _.kz((v=P())==null?void 0:v.data.title)};
_.AQ(function(){_.b7.requestAvailability();P()&&O(!1)});
var Z,d;_.jj(function(){I()&&(_.Lf(x.value,"iron-announce",{text:P().label+" "+K()}),Z&&_.Gr.cancelJob(Z),Z=_.Gr.addLowPriorityJob(function(){Y(!0)},2500))});
_.jj(function(){B()&&(d&&_.Gr.cancelJob(d),d=_.Gr.addLowPriorityJob(function(){O(!1);Y(!1)},300))});
W={};return _.u("ytd-miniplayer-toast",{el:x,class:_.O4("ytdMiniplayerToastHost",(W.ytdMiniplayerToastOpening=function(){return I()},W.ytdMiniplayerToastClosing=function(){return B()},W))},_.u(_.V,{cond:function(){var v;
return(v=P())==null?void 0:v.data},
then:function(v){return _.u(u1k,{className:"ytdMiniplayerToastThumbnail",data:v,width:78})}}),_.u("div",{class:"ytdMiniplayerToastInfo"},_.u("div",{class:"ytdMiniplayerToastLabel"},function(){var v;
return(v=P())==null?void 0:v.label}),_.u("div",{class:"ytdMiniplayerToastTitle"},K)))},"pe");var VTo;var Qw7=new Set,jwG=null;var A5C=null;var d5v=_.kl(function(W){var P=W.progressState;var x=W.multiMarkersPlayerBarRenderer;var I=W.progressBarWidth;var O=function(){return gkx(x())},B=function(){return $Am(P())},Y=function(){return I()*(P().playedTime/P().videoDuration)};
return _.u("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.u(_.sV,{each:O},function(K,Z){return _.u(u52,{modifiedProps:B,chapters:O,index:Z,playedProgressWidth:Y,backgroundGradientPosition:function(){var d=B(),v=O(),m=Z(),t=Y();return(d.playedTime-az(_.Q(v[m],cX)))/d.playedTime*t}})}))},"qe"),u52=_.kl(function(W){var P=W.modifiedProps;
var x=W.chapters;var I=W.index;var O=W.playedProgressWidth;var B=W.backgroundGradientPosition;W={};W=_.O4("ytChapteredProgressBarChapteredPlayerBarChapter",(W.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Y().isScrubbing},W.ytChapteredProgressBarHoveredMacroMarker=function(){return Y().scrubberHovering},W.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Y().videoPosition==="seen"},W));
var Y=function(){return wHo(P(),x(),I())},K=function(){var Z=P();
var d=x(),v=I();if(wHo(Z,d,v).videoPosition!=="active")Z=0;else{var m=az(_.Q(d[v],cX));Z=(Z.playedTime-m)/((az(_.Q(d[v+1],cX))||Z.videoDuration)-m)}return Z};
return _.u("div",{class:W,style:_.oP({width:function(){var Z=P(),d=x(),v=I(),m=_.Q(d[v],cX);d=_.Q(d[v+1],cX);return(d?az(d)-az(m):Z.videoDuration-az(m))/Z.videoDuration*100+"%"},
"background-color":function(){a:{var Z=Y();switch(Z.videoPosition){case "pending":Z=Z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":Z=Z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:Z=""}}return Z},
"background-size":function(){return(haU(Y())?O():"")+"px"},
"background-position-x":function(){return(haU(Y())?B():"")+"px"}})},_.u("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var Z=P(),d=x(),v=I();if(wHo(Z,d,v).videoPosition==="seen")var m=0;else m=az(_.Q(d[v],cX)),d=az(_.Q(d[v+1],cX))||Z.videoDuration,Z=Z.videoDuration*Z.percentLoaded,m=d<=Z?1:m>=Z?0:(Z-m)/(d-m);return"width: "+m*100+"%"}}),_.u("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.oP({width:function(){return K()*100+"%"},
"background-size":function(){return(haU(Y(),K())?O():"")+"px"},
"background-position-x":function(){return(haU(Y(),K())?B():"")+"px"}})}))},"re");var sK9=function(W,P){P=P===void 0?Ugi:P;var x,I=[],O,B=!1;return function(){var Y=_.tH.apply(0,arguments);if(B&&x===this&&P(Y,I))return O;O=W.apply(this,Y);B=!0;x=this;I=Y;return O}}(function(W){var P=W.heatMarkers,x=W.minHeightDp===void 0?0:W.minHeightDp,I=W.maxHeightDp===void 0?60:W.maxHeightDp;
var O=O===void 0?!1:O;var B=1E3/P.length;W=[];W.push({x:0,y:100});for(var Y=0;Y<P.length;Y++){var K=void 0,Z=((K=_.Q(P[Y],tvw))==null?void 0:K.heatMarkerIntensityScoreNormalized)||0;K=(Y+.5)*B;Z=100-_.HX(Z*100,x/321*100,I/321*100);Y!==0||O||W.push({x:0,y:Z});W.push({x:K,y:Z});Y===P.length-1&&W.push({x:1E3,y:Z})}W.push({x:1E3,y:100});P="";for(x=0;x<W.length;x++)O=W[x],x===0?O="M "+O.x.toFixed(1)+","+O.y.toFixed(1):(I=Jvd(W[x-1],W[x-2],O),B=Jvd(O,W[x-1],W[x+1],!0),O=" C "+(I.x.toFixed(1)+","+I.y.toFixed(1)+
" "+B.x.toFixed(1)+","+B.y.toFixed(1)+" "+O.x.toFixed(1)+","+O.y.toFixed(1))),P+=O;return P});var vTy=_.kl(function(W){var P=W.progressBarProps;var x=W.config;var I={};W=_.O4("ytHeatSeekerHost",(I.ytHeatSeekerHighContrast=W.highContrast,I));var O=function(){return uSm(x().chapterData)};
return _.u("yt-progress-bar-heatseeker",{class:W,style:function(){var B;return"height: 320px; display: "+(P().isDragging&&((B=O())==null?0:B.heatMarkers)?"block":"none")}},_.u(_.V,{cond:O,
then:function(B){return _.u(_.V,{cond:function(){return B().heatMarkers},
then:function(){return _.u("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.u("path",{d:function(){return sK9(B())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"se");var m5f=_.kl(function(W){var P=W.progressBarProps;var x=W.config;W={};W=_.O4("ytProgressBarLineProgressBarLine",(W.ytProgressBarLineProgressBarLineRounded=function(){return x().rounded},W.ytProgressBarLineProgressBarLineBottomInset=function(){return x().position===2},W));
return _.u("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.u("div",{class:W},_.u("div",{class:"ytProgressBarLineProgressBarBackground"}),_.u("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+P().percentLoaded*100+"%"}}),_.u("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var I=P();return"width: "+(I.videoDuration?_.HX(I.hoveredTime/I.videoDuration,0,1):0)*100+"%"}}),_.u("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+ZGd(P())*100+"%"}})))},"te");
m5f.idomCompat=!0;var V$f=_.kl(function(W){var P=W.progressBarProps;var x=W.playheadData;var I=W.interpolateDotPosition;var O=W.hidePlayhead;W={};var B=_.O4("ytProgressBarPlayheadProgressBarPlayheadDot",(W.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return P().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!P().isDragging&&O()},W));
return _.u("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.oP({"margin-left":function(){return okW(P())*100+"%"},
transform:function(){return"translateX(-"+(I()?okW(P())*12:6)+"px)"}})},_.u(_.V,{cond:function(){var Y;
return(Y=_.a7(x)())==null?void 0:Y.playheadImage},
then:function(Y){var K={};return _.u("div",{class:_.O4("ytProgressBarPlayheadProgressBarPlayheadCustom",(K.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return P().isDragging},K.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!P().isDragging&&O()},K)),
style:_.oP({"transform-origin":function(){return(I()?okW(P())*20:10)+"px center"}})},_.u(_.bq,{data:Y,
alt:"","aria-hidden":"true"}))},
else:function(){return _.u("div",{class:B,style:_.oP({"transform-origin":function(){return(I()?okW(P())*12:6)+"px center"}})})}}))},"ue");
V$f.idomCompat=!0;var V9=function(W,P,x,I,O,B){this.getProgressBarRect=W;this.updateProgressBarRect=P;this.getFilmstripYPosition=x;this.setFineScrubbingDraggedTime=I;this.updateFilmStripDraggedYDistance=O;this.resetFilmStripYOffset=B;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.WO(this.onThrottledSeek,100,this)},t$d=function(W,P,x){return function(I){W.handleClick(I,P(),x())}},QK3=function(W,P){return function(x){pZv(W,
x,jKB(x),P())}},CIy=function(W,P){return function(x){pZv(W,x,{x:x.clientX,
y:x.clientY},P())}},zX6=function(W,P,x){return function(I){var O=P(),B=x();
A2M(W,I,jKB(I),O,B,!0);if(B.onTouchMove)B.onTouchMove(O)}},ETf=function(W,P,x){return function(I){GkL(W,I,P(),x())}},gTG=function(W,P){return function(){W.handleMouseLeave(P())}},D5m=function(W,P,x){return function(){var I=P(),O=x();
tR(W,I,O);if(O.onTouchEnd)O.onTouchEnd(I)}},M$y=function(W,P,x){return function(){var I=P(),O=x();
tR(W,I,O);if(O.onTouchEnd)O.onTouchEnd(I)}},$5M=function(W,P,x){return function(){tR(W,P(),x())}},wZG=function(W){return function(P){if(P.keyCode===39){var x,I;
(x=W())==null||(I=x.playerApi)==null||I.seekBy(5,void 0,void 0,72)}else if(P.keyCode===37){var O,B;(O=W())==null||(B=O.playerApi)==null||B.seekBy(-5,void 0,void 0,71)}}},hXv=function(W,P,x){return function(I){!x().disableScrubbing&&W.startPosition&&GkL(W,I,P(),x())}},HxM=function(W,P,x){return function(){if(!x().disableScrubbing)if(W.startPosition){var I=P(),O=x();
tR(W,P(),x());if(O.onTouchEnd)O.onTouchEnd(I)}else P().setState({isDragging:!1})}},jKB=function(W){W=W.touches[0];
return{x:W.clientX,y:W.clientY}},GkL=function(W,P,x,I){if(P.buttons!==1){if(P.movementX||P.movementY)P.preventDefault(),P.stopPropagation(),W=eXy(W,x,P.clientX),x.setState({isHovering:!0,
hoveredTime:W*x.videoDuration})}else c2m(x),A2M(W,P,{x:P.clientX,y:P.clientY},x,I,!1)};
V9.prototype.handleMouseLeave=function(W){c2m(W)};
var c2m=function(W){W.isHovering&&W.setState({isHovering:!1,hoveredTime:0})},pZv=function(W,P,x,I){W.startPosition||(W.startPosition=x,W.updateProgressBarRect(),W.controlsWereVisibleBeforeDragging=I.controlsVisible,P.stopPropagation(),_.p("medium_progress_bar_modification")||P.preventDefault())},A2M=function(W,P,x,I,O,B){if(W.startPosition)if(B&&O.isInlinePlayback&&W.startPosition&&!W.hasDraggedTheMinimumDistance&&Math.abs(x.y-W.startPosition.y)>Math.abs(x.x-W.startPosition.x))tR(W,I,O);
else if(P.preventDefault(),P.stopPropagation(),I.videoDuration&&(W.startPosition&&!W.hasDraggedTheMinimumDistance&&(W.hasDraggedTheMinimumDistance=Math.abs(x.x-W.startPosition.x)>=1),O.enableFineScrubbing&&(W.startPosition&&(W.isDraggedForFineScrubbing=-(x.y-W.startPosition.y)>=60),!W.startPosition||x.y>=W.startPosition.y||(I.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:HGm(I.draggedTime,I,O.chapterData)}),W.setFineScrubbingDraggedTime(I.draggedTime),W.updateFilmStripDraggedYDistance(W.startPosition.y,
x.y,I))),W.hasDraggedTheMinimumDistance)){P=eXy(W,I,x.x);if(W.isDraggedForFineScrubbing){var Y;(Y=I.playerApi)==null||Y.pauseVideo();I.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:I.draggedTime,filmStripXDistance:HGm(P*I.videoDuration,I,O.chapterData)})}O.enableFineScrubbing&&(!O.enableFineScrubbing||W.getFilmstripYPosition(I)<68)||I.setState({draggedTime:P*I.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:W.controlsWereVisibleBeforeDragging});var K;(K=
O.cancelAutohideControlsFn)==null||K.call(O)}},tR=function(W,P,x){var I=x.enableFineScrubbing&&P.fineScrubbingActiveState!=="off";
if(P.isDragging||I){I={isDragging:!1,playedTime:P.draggedTime,controlsVisible:W.controlsWereVisibleBeforeDragging};x.enableFineScrubbing&&P.fineScrubbingActiveState!=="on"&&(W.resetFilmStripYOffset(),I.fineScrubbingActiveState="off");var O=O===void 0?A5C:O;var B=_.E_(0);B&&O&&_.k6(B,O,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(P.playedTime*1E3),endMediaTimeMs:Math.round(P.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});P.setState(I);
W.seekThrottle.fire(P.draggedTime,P,7);_.p("mweb_new_progress_bar_play_on_seek")&&W.resumeVideo(P);x.unmuteOnSeek&&(x=P.playerApi,P.volumeMuted&&(x==null||x.unMute()))}else P.setState({controlsVisible:!P.controlsVisible}),(B=x.triggerAutohideControlsAfterDelayFn)==null||B.call(x);W.startPosition=null;W.hasDraggedTheMinimumDistance=!1;W.isDraggedForFineScrubbing=!1;W.controlsWereVisibleBeforeDragging=!1};
V9.prototype.handleClick=function(W,P,x){this.updateProgressBarRect();W.stopPropagation();W=eXy(this,P,W.clientX)*P.videoDuration;P.setState({playedTime:W});if(P.playerState!==2){var I;(I=x.triggerAutohideControlsAfterDelayFn)==null||I.call(x)}this.seekThrottle.fire(W,P,7)};
var eXy=function(W,P,x){W=W.getProgressBarRect(P);return _.HX(0,(x-W.left)/W.width,1)};
V9.prototype.resumeVideo=function(W){if(W.draggedTime<W.videoDuration){var P;(P=W.playerApi)==null||P.playVideo()}};
V9.prototype.onThrottledSeek=function(W,P,x){if(P=P.playerApi){var I;if((I=P.getVideoData())==null?0:I.isLive)I=this.getProgressState(P),W+=(I==null?void 0:I.seekableStart)||0;P.seekTo(W,void 0,void 0,void 0,x)}};
V9.prototype.getProgressState=function(W){var P=W==null?void 0:W.getPresentingPlayerType();return W==null?void 0:W.getProgressState(P)};var kkv,bxO,U5y,fSB,aSQ,NDO,lS9,TDB,r23;kkv=_.kl(function(W){var P=W.progressBarProps;var x=W.config;var I=W.progressBarWidthPx;var O=W.chapterData;var B=kVt(P,function(){return x().isShortsPage}),Y=function(){return!P().isHovering&&!x().isShortsPage};
W={};var K=_.O4("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(W.ytPlayerStoryboardHostMwebShorts=function(){return x().isShortsPage&&!1},W));
return _.u("yt-player-storyboard",null,_.u(_.V,{cond:function(){return P().isDragging||P().isHovering},
then:function(){return _.u(_.V,{cond:B,then:function(Z){return _.u(_.V,{cond:Y,then:function(){return _.u("div",{class:K,"aria-hidden":"true"},_.u(aSQ,{props:P,config:x,isBigboard:!0,chapterData:O}))},
else:function(){return _.u(bxO,{props:P,frame:Z,config:x,progressBarWidthPx:I,chapterData:O})}})}})}}))},"ve");
_.XZ3=_.kl(function(W){var P=W.progressBarProps;var x=kVt(P,W.isShortsPage);return _.u("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.u(_.V,{cond:function(){return P().isDragging||P().isHovering},
then:function(){return _.u(_.V,{cond:x,then:function(I){return _.u(U5y,{frame:I,props:P,isBigboard:!0})}})}}))},"we");
bxO=_.kl(function(W){var P=W.props;var x=W.frame;var I=W.config;var O=W.progressBarWidthPx;W=W.chapterData;var B={};B=_.O4("ytPlayerStoryboardHost",(B.ytPlayerStoryboardHostMwebShorts=function(){return I().isShortsPage&&!1},B.ytPlayerStoryboardHostInlinePlayer=function(){return I().isInlinePlayer},B.ytPlayerStoryboardHostFadeIn=function(){return I().useFadeInAnimation},B));
return _.u("div",{class:B,"aria-hidden":"true",style:function(){var Y=P(),K=ea8(x()),Z=O();Y=c5d(Y)/Y.videoDuration;var d=Z*Y,v=K/2+6;K=Z-(K/2+6);return"left: "+(d<=v?v/Z*100:d>=K?K/Z*100:Y*100)+"%"}},_.u(_.V,{cond:function(){var Y=P();
return!(I().isShortsPage&&Y.videoDuration<15)},
then:function(){return _.u(U5y,{frame:x,props:P,isBigboard:!1})}}),_.u(aSQ,{props:P,
config:I,isBigboard:!1,chapterData:W}))},"xe");
U5y=_.kl(function(W){var P=W.frame;var x=W.props;var I=W.isBigboard;var O=function(){var K,Z;return(Z=(K=x().playerApi)==null?void 0:K.getVideoContentRect())!=null?Z:{width:0,height:0}},B=function(){return ea8(P())},Y=function(){var K=P();
return K?K.height/K.rows:0};
W={};W=_.O4((W.ytPlayerStoryboardBigboardImageWrapper=I,W.ytPlayerStoryboardStoryboardImageWrapper=function(){return!I()},W));
return _.u("div",{class:W,style:function(){return"width: "+(I()?O().width:B())+"px; height: "+(I()?O().height:Y())+"px;"}},_.u(fSB,{frame:P,
storyboardWidth:B,storyboardHeight:Y,storyboardScale:function(){return(I()?O().width:B())/B()}}))},"ye");
fSB=_.kl(function(W){var P=W.frame;var x=W.storyboardWidth;var I=W.storyboardHeight;var O=W.storyboardScale;var B=function(){var Y=P().row,K=P().column,Z=x(),d=I(),v=O();return{left:-K*Z*v,top:-Y*d*v}};
return _.u("img",{src:function(){return P().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+B().left+"px; top: "+B().top+"px; width: "+P().width*O()+"px; height: "+P().height*O()+"px;"}})},"ze");
aSQ=_.kl(function(W){var P=W.props;var x=W.config;var I=W.isBigboard;var O=W.chapterData;W={};W=_.O4("ytPlayerStoryboardMetadata",(W.ytPlayerStoryboardMetadataBigboard=I,W));return _.u("div",{class:W},_.u(_.V,{cond:I,then:function(){return _.u(_.qS,null,_.u(NDO,{props:P,config:x}),_.u(_.V,{cond:function(){a:{var B=P();var Y=x(),K=O(),Z;if((Y==null?0:Y.activeChapter)&&((Z=_.Q(Y==null?void 0:Y.activeChapter,cX))==null?0:Z.title))B=!0;else{Y=_.n(dAt(K));for(Y=Y.next();!Y.done;Y=Y.next()){B=(Y=_.Q(Y.value,
jml))&&amS(B,Y);break a}B=!1}}return B},
then:function(){return _.u(lS9,{props:P,config:x,isBigboard:!0,chapterData:O})}}))},
else:function(){return _.u(_.qS,null,_.u(lS9,{props:P,config:x,isBigboard:!0,chapterData:O}),_.u(NDO,{props:P,config:x}))}}))},"Ae");
NDO=_.kl(function(W){var P=W.props;var x=W.config;W={};W=_.O4("ytPlayerStoryboardTimestamp",(W.ytPlayerStoryboardTimestampShorts=function(){return x().isShortsPage},W.ytPlayerStoryboardTimestampIsHovering=function(){return P().isHovering||x().isShortsPage&&!0},W));
return _.u("div",{class:W},_.u(_.qS,null,function(){return _.bGo(c5d(P()))}))},"Be");
lS9=_.kl(function(W){var P=W.props;var x=W.config;var I=W.isBigboard;var O=W.chapterData;W={};I=_.O4("ytPlayerStoryboardTitle",(W.ytPlayerStoryboardTitleBigboard=I,W));return _.u("div",{class:I},_.u(_.V,{cond:function(){return!x().isShortsPage},
then:function(){return _.u(TDB,{props:P,activeChapter:function(){return x().activeChapter},
chapterData:O})}}))},"Ce");
TDB=_.kl(function(W){var P=W.props;var x=W.activeChapter;var I=W.chapterData;return _.u(_.qS,null,_.u(_.sV,{each:function(){return dAt(I())},
keyBy:"INDEX"},function(O){return _.u(_.qS,null,_.u(_.V,{cond:function(){return _.Q(O(),jml)&&amS(P(),_.Q(O(),jml))},
then:function(){return _.u(r23,{timedMarker:function(){return _.Q(O(),jml)}})}}))}),_.u(_.V,{cond:function(){var O;
return x()&&((O=_.Q(x(),cX))==null?void 0:O.title)},
then:function(O){return _.u(_.mQ,{text:O,noPreWrap:!0})}}))},"De");
r23=_.kl(function(W){var P=W.timedMarker;return _.u(_.qS,null,_.u("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.u(_.Sy,{icon:function(){return P().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.u(_.mQ,{text:function(){return P().label},
noPreWrap:!0}))},"Ee");_.ixM=_.kl(function(W){var P=W.progressBarProps;var x=W.playheadData;var I=W.config;W=_.fa();var O=_.fa(),B=_.fa(),Y=_.n(_.YV({width:0,left:0},void 0,"NcXsUb")),K=Y.next().value,Z=Y.next().value,d=function(){B.value&&Z(B.value.getBoundingClientRect())},v=function(){K().width<=0&&d();
return K()};
is("resize",d);var m=new V9(v,function(){},function(){return 0},function(){},function(){},function(){}),t=function(){return P()};
Y=_.n(_.YV(!1,void 0,"ZsF6Xc"));var C=Y.next().value,z=Y.next().value;Y=_.yB(function(){z(!0);I().position===2?setTimeout(function(){d()},100):d()});
var D=_.yB(function(){z(!1);gTG(m,t)()}),w=_.yB(function(e8){I().doSeekOnClick&&t$d(m,t,I)(e8);
return!1}),a=_.yB(function(e8){QK3(m,t)(e8);
return!1}),k=_.yB(function(e8){CIy(m,t)(e8);
return!1}),T=_.yB(function(e8){zX6(m,t,I)(e8);
return!1}),N=_.yB(function(e8){ETf(m,t,I)(e8);
return!1}),Io=_.yB(function(){D5m(m,t,I)();
return!1}),F=_.yB(function(){M$y(m,t,I)();
return!1}),nm=_.yB(function(){$5M(m,t,I)();
return!1}),pm=_.yB(function(e8){wZG(t)(e8);
return!1});
is("mousemove",hXv(m,t,I));is("mouseup",HxM(m,t,I));_.AQ(function(){zam(O.value);z(!1);d();HxM(m,t,I)()});
var zR={};zR=_.O4("ytPlayerProgressBarHost",function(){return I().className},(zR.ytPlayerProgressBarHostReadOnly=function(){return I().disableScrubbing},zR.ytPlayerProgressBarHostHidden=function(){return I().hideProgressBar&&!C()},zR.ytPlayerProgressBarHostLowerPlayer=function(){return I().position===0},zR.ytPlayerProgressBarHostBottomEdge=function(){return I().position===1},zR.ytPlayerProgressBarHostBottomInset=function(){return I().position===2},zR.ytPlayerProgressBarHostCustom=function(){return I().position===
3},zR));
var Am={},kW=_.O4("ytPlayerProgressBarBackground",(Am.ytPlayerProgressBarBackgroundHide=function(){return I().position===2&&!C()&&!P().isDragging},Am));
Am={};Am=_.O4("ytPlayerProgressBarDragContainer",(Am.ytPlayerProgressBarDragContainerBottomEdge=function(){return I().position===1},Am));
var $W={};$W=_.O4("ytPlayerProgressBarProgressBar",($W.ytPlayerProgressBarProgressBarInset=function(){return I().position===2},$W.ytPlayerProgressBarProgressBarInsetMinimized=function(){return I().position===2&&!C()&&!P().isDragging},$W));
var ao=function(){return Math.floor(ZGd(P())*100)};
return _.u("yt-progress-bar",{el:W,class:zR},_.u(_.V,{cond:function(){return I().position===2},
then:function(){return _.u("div",{class:kW})}}),_.u("div",{el:O,
"on:click":w,"on:touchstart":a,"on:touchmove":T,"on:mouseenter":Y,"on:mousedown":k,"on:mouseleave":D,"on:mousemove":N,"on:mouseup":F,"on:touchend":Io,"on:touchcancel":nm,"on:keydown":pm,class:Am,role:"slider","aria-valuenow":ao,"aria-valuetext":function(){return ao()+"%"},
tabindex:0,"aria-label":_.KK("SEEK_SLIDER")},_.u("div",{el:B,class:$W},_.u(vTy,{progressBarProps:P,config:I,highContrast:function(){return!!I().isInlinePlayback}}),_.u(_.V,{cond:function(){return I().chapterData&&sw7(I().chapterData)},
then:function(){return _.u(d5v,{progressState:P,multiMarkersPlayerBarRenderer:function(){return I().chapterData},
progressBarWidth:function(){return K().width}})},
else:function(){return _.u(m5f,{progressBarProps:P,config:I})}}),_.u(V$f,{progressBarProps:P,
playheadData:x,interpolateDotPosition:function(){return I().position!==2},
hidePlayhead:function(){return I().playheadDotBehavior===1&&!C()}}))),_.u(kkv,{progressBarProps:P,
config:function(){return{activeChapter:MTC(P(),I().chapterData),getProgressBarWidthPx:function(){return v().width},
isShortsPage:!!I().isShortsPage,isInlinePlayer:!!I().isInlinePlayback,useFadeInAnimation:!!I().isInlinePlayback}},
progressBarWidthPx:function(){return K().width},
chapterData:function(){return I().chapterData}}))},"Fe");
_.ixM.idomCompat=!0;Object.assign({},_.vkU(),{setState:function(){},
domMeasurements:{},appApi:_.KKm(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var RXM;
_.FuQ=_.kl(function(){var W,P=(W=_.b4(UAt().playerApi))!=null?W:void 0;W=_.n(_.YV(!1,void 0,"HLFBmb"));var x=W.next().value,I=W.next().value;W=_.n(_.YV(!1,void 0,"lHH9bc"));var O=W.next().value,B=W.next().value;W=_.n(_.YV(!1,void 0,"zsY7yd"));var Y=W.next().value,K=W.next().value;W=_.n(_.YV(!1,void 0,"KeHQgc"));var Z=W.next().value,d=W.next().value;W=_.n(_.YV(0,void 0,"gLLCj"));var v=W.next().value,m=W.next().value;W=_.n(_.YV(0,void 0,"s3RYkf"));var t=W.next().value,C=W.next().value;W=_.n(_.YV(!1,void 0,
"Dn608e"));var z=W.next().value,D=W.next().value;W=_.n(_.YV(0,void 0,"AnkH1b"));var w=W.next().value,a=W.next().value;W=_.n(_.YV(0,void 0,"QYNL0b"));var k=W.next().value,T=W.next().value;W=_.n(_.YV("",void 0,"Yzw45d"));var N=W.next().value,Io=W.next().value;W=_.n(_.YV(-1,void 0,"iiVI0c"));var F=W.next().value,nm=W.next().value,pm=_.Sj(function(){var zR={controlsVisible:x(),isOverlayHidden:O(),shouldWaitToHideControls:Y(),isDragging:Z(),isHovering:z(),videoDuration:w(),playedTime:k(),videoId:N(),draggedTime:t(),
hoveredTime:v(),playerState:F()};return Object.assign({},_.vkU(),zR,{domMeasurements:{},setState:function(Am){Am.controlsVisible!==void 0&&I(Am.controlsVisible);Am.isOverlayHidden!==void 0&&B(Am.isOverlayHidden);Am.shouldWaitToHideControls!==void 0&&K(Am.shouldWaitToHideControls);Am.isDragging!==void 0&&d(Am.isDragging);Am.isHovering!==void 0&&D(Am.isHovering);Am.draggedTime!==void 0&&C(Am.draggedTime);Am.hoveredTime!==void 0&&m(Am.hoveredTime);Am.videoDuration!==void 0&&a(Am.videoDuration);Am.playedTime!==
void 0&&T(Am.playedTime);Am.videoId!==void 0&&Io(Am.videoId);Am.playerState!==void 0&&nm(Am.playerState)},
appApi:_.KKm(),playerApi:P})},void 0,"ZW7y9");
_.Qa(function(){P==null||P.addEventListener("onVideoProgress",pHS(pm));P==null||P.addEventListener("onVideoDataChange",tTU(pm));P==null||P.addEventListener("onStateChange",mAR(pm))});
_.C4(function(){if(P==null?0:P.isReady())P==null||P.removeEventListener("onVideoProgress",pHS(pm)),P==null||P.removeEventListener("onVideoDataChange",tTU(pm)),P==null||P.removeEventListener("onStateChange",mAR(pm))});
return _.u("desktop-shorts-player-controls",null,_.u(RXM,{playerControlsProps:pm}))},"Ge");
RXM=_.kl(function(W){var P=W.playerControlsProps;return _.u("div",{class:"desktopShortsPlayerControlsWizHost"},_.u(_.ixM,{progressBarProps:P,config:function(){return{isShortsPage:!0,hideProgressBar:P().videoDuration<30&&P().playerState!==2&&!P().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"He");_.ql(_.Tfo);_.qi3=_.kl(function(W){var P=W.data;return _.u("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.u(_.vF,{command:function(){return P().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.u(_.V,{cond:function(){return P().iconName},
then:function(x){return _.u(_.Sy,{icon:x})}}),_.u("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return P().text}),_.u(_.V,{cond:function(){return P().showEndChevron},
then:function(){return _.u(_.Sy,{icon:"CHEVRON_RIGHT"})}})))},"Ie");var LuB=_.kl(function(W){var P=W.data;var x=W.overlayDensity;W={};return _.u("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.u(_.Ea,{data:function(){return P().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(I){var O=I.data;
return _.u(_.ml,{data:function(){return(x==null?void 0:x())===1?Object.assign({},O(),{avatar:{avatarViewModel:Object.assign({},_.Q(O().avatar,_.rp),{avatarImageSize:"AVATAR_SIZE_48"})}}):O()}})}}),_.u(_.Ea,{data:function(){return P().avatarStackViewModel}},{avatarStackViewModel:function(I){return _.u(_.VA,{data:I.data})}}),_.u(_.mQ,{className:_.O4("ytReelChannelBarViewModelChannelName",(W.ytReelChannelBarViewModelChannelNameLarge=function(){return(x==null?void 0:x())===1},W)),
text:function(){return P().channelName},
linkInheritColor:!0,userInput:!0}),_.u("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.u(_.Ea,{data:function(){return P().subscribeButtonViewModel}},{subscribeButtonViewModel:function(I){var O=I.data;
return _.u(Xtz,{data:function(){return(x==null?void 0:x())===1?Object.assign({},O(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},O().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):O()},
isOverlay:!1})},
buttonViewModel:_.cq})),_.u("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.u(_.Ea,{data:function(){var I,O;return(O=_.Q((I=P())==null?void 0:I.sponsorButtonViewModel,Ucw))==null?void 0:O.sponsorButton}},{buttonViewModel:function(I){return _.u(_.cq,{data:I.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Je");var Wyf=_.kl(function(W){var P={};return _.u("yt-reel-multi-format-link-view-model",{class:_.O4("ytReelMultiFormatLinkViewModelHost",(P.ytReelMultiFormatLinkViewModelHostTall=!0,P.ytReelMultiFormatLinkViewModelHostLarge=function(){var x;return((x=W.overlayDensity)==null?void 0:x.call(W))===1},P))},_.u(_.vF,{ariaLabel:function(){return W.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.AF(W.data().command)},
dangerousStopPropagation:!1},_.u("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.u(_.V,{cond:function(){return W.data().icon},
then:function(x){return _.u(_.bq,{data:x,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.u(_.mQ,{text:function(){return W.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ke");
Wyf.idomCompat=!0;var P53=_.kl(function(W){var P=W.data;var x=W.overlayDensity;var I=_.fa();W=_.n(_.YV(!1,void 0,"xDqzhe"));var O=W.next().value,B=W.next().value;W=_.n(_.YV(!1,void 0,"LI9CFd"));var Y=W.next().value,K=W.next().value,Z=function(){return P().isMultiLineSa},d=_.dp(h4G,function(){var T,N;
return(N=(T=P().toggleableContent)==null?void 0:T.entityKey)!=null?N:""}),v=function(){var T,N,Io;
return(Io=P().toggleableContent)!=null&&Io.entityKey?(N=(T=d())==null?void 0:T.value)!=null?N:!1:!1},m=function(){var T,N,Io,F,nm,pm,zR,Am,kW,$W,ao;
return P().toggleableContent?v()?(T=P().toggleableContent)==null?void 0:T.toggledData:(N=P().toggleableContent)==null?void 0:N.untoggledData:{primaryText:(Am=(Io=P().defaultContent)==null?void 0:Io.primaryText)!=null?Am:P().text,secondaryText:(F=P().defaultContent)==null?void 0:F.secondaryText,onTapCommand:(kW=(nm=P().defaultContent)==null?void 0:nm.onTapCommand)!=null?kW:P().onTapCommand,icon:($W=(pm=P().defaultContent)==null?void 0:pm.icon)!=null?$W:P().icon,image:(ao=(zR=P().defaultContent)==null?
void 0:zR.image)!=null?ao:P().image}},t=function(){return Z()?P().trailingTapTarget:void 0};
W=function(T,N){return function(){return O()?N:T}};
var C={leadingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};W={};W=_.O4((W.ytShortsSuggestedActionViewModelStaticHost=function(){return!Z()},W.ytShortsSuggestedActionViewModelDynamicHost=Z,W.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return Z()&&Y()},W.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return Z()&&!Y()},W));
_.AQ(function(){if(Z()){var T=0,N;if((N=P().animationParams)==null?0:N.shouldExpand){var Io,F;T=((F=(Io=P().animationParams)==null?void 0:Io.expansionDelaySecs)!=null?F:0)*1E3}var nm,pm=((nm=P().animationParams)==null?0:nm.shouldExpand)?setTimeout(function(){B(!0)},T):void 0,zR,Am;
T=((zR=P().animationParams)==null?0:zR.visibilityDelaySecs)?((Am=P().animationParams)==null?NaN:Am.visibilityDelaySecs)*1E3:0;var kW=setTimeout(function(){K(!0)},T);
_.C4(function(){pm&&clearTimeout(pm);clearTimeout(kW)})}});
var z=function(T){_.D1(T,Object.assign({},{form:{element:I.value}}))},D=_.yB(function(){var T,N=(T=m())==null?void 0:T.onTapCommand;
N&&z(N)}),w=_.yB(function(){var T,N;
if(T=(N=t())==null?void 0:N.onTapCommand)return z(T),!1}),a=_.oP({"vertical-align":"bottom",
"border-radius":function(){var T;return Z()?((T=P().defaultContent)==null?0:T.isCircleImage)?"50%":"4px":"0px"},
width:function(){var T,N,Io;return Z()&&((T=P().defaultContent)==null?0:T.imageSize)?((Io=(N=P().defaultContent)==null?void 0:N.imageSize)!=null?Io:24)+"px":null},
height:function(){var T,N,Io;return Z()&&((T=P().defaultContent)==null?0:T.imageSize)?((Io=(N=P().defaultContent)==null?void 0:N.imageSize)!=null?Io:24)+"px":null}}),k={};
return _.u("yt-shorts-suggested-action-view-model",{class:W,el:I},_.u("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.u("button",{class:_.O4(function(){return Z()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var T;
return(T=P().useFullRoundedBorder)!=null&&T?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!t()&&Z()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":Z()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var T;
return(T=P().disableFixedHeight)!=null&&T?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(k.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(x==null?void 0:x())===1},k)),
"on:click":D},_.u(_.s4,{model:{color:4}}),_.u("div",{class:_.O4(function(){return Z()?C.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.u(_.V,{cond:function(){var T;
return(T=m())==null?void 0:T.image},
then:function(T){return _.u(_.bq,{data:T,alt:"",className:function(){return Z()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:a})}}),_.u(_.V,{cond:function(){var T,N;
return(T=m())==null?void 0:(N=T.icon)==null?void 0:N.iconType},
then:function(T){return _.u(_.Sy,{icon:T,active:v,className:function(){return Z()?O()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.u("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.u(_.V,{cond:function(){var T;
return(T=m())==null?void 0:T.primaryText},
then:function(T){return _.u("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.u(_.mQ,{text:T}))}}),_.u(_.V,{cond:function(){var T;
return(T=m())==null?void 0:T.secondaryText},
then:function(T){return _.u("div",{class:C.secondaryText},_.u(_.mQ,{text:T}))}}))),_.u(_.V,{cond:t,
then:function(T){return _.u("div",{class:C.trailingSection,"aria-label":function(){var N;return(N=T().a11yLabel)!=null?N:""},
"on:click":w,role:"button",tabindex:0},_.u(_.s4,{model:{color:4}}),_.u(_.Sy,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Le");var xEv=_.kl(function(W){var P=W.data;var x=W.overlayDensity;var I=_.fa();W=_.yB(function(Y){if(_.zeC(_.Ua(Y),I.value,["A".toString()]))return!1;(Y=P().truncatedTextOnTapCommand)&&_.D1(Y);return!1});
var O={},B={};return _.u("yt-shorts-video-title-view-model",{el:I,class:_.O4("ytShortsVideoTitleViewModelHost",(O.ytShortsVideoTitleViewModelHostClickable=function(){return!!P().truncatedTextOnTapCommand},O)),
"on:click":W},_.u("h2",{class:_.O4("ytShortsVideoTitleViewModelShortsVideoTitle",(B.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(x==null?void 0:x())===1},B))},_.u(_.mQ,{text:function(){return P().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Me");_.IH9=_.kl(function(W){var P=W.data;var x=W.overlayDensity;return _.u("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.u(_.Ea,{data:function(){return P().metadataItems}},{badgeViewModel:function(I){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(_.N0,{data:I.data}))},
playerDisclosureViewModel:function(I){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(_.qi3,{data:I.data}))},
shortsSuggestedActionViewModel:function(I){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(P53,{data:I.data,overlayDensity:x}))},
reelChannelBarViewModel:function(I){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(LuB,{data:I.data,overlayDensity:x}))},
reelMultiFormatLinkViewModel:function(I){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(Wyf,{data:I.data,overlayDensity:x}))},
shortsVideoTitleViewModel:function(I){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(xEv,{data:I.data,overlayDensity:x}))},
reelSoundMetadataViewModel:function(I){return _.u("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.u(_.KPv,{data:I.data,overlayDensity:x}))}}))},"Ne");var Oz9=_.kl(function(W){var P=_.bw(W,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),x=P.size,I=P.onTap,O=P.disabled,B=P.tooltipText;return _.u("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.u(PO,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:x(),disabled:O(),tooltipText:B(),onTap:I}},
iconName:W.iconType}))},"Oe"),JHM=_.kl(function(W){function P(v){v.stopPropagation();
v.code==="ArrowUp"?(v.preventDefault(),FKo(K.value)):v.code==="ArrowDown"?(v.preventDefault(),qgU(K.value)):v.code==="KeyM"?iGG():(v.code==="KeyK"||v.code==="Space")&&RaR(Z())}
var x=_.bw(W,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});W=x.previousButtonDisabled;var I=x.nextButtonDisabled,O=x.data,B=x.playabilityStatus,Y=x.previewThumbnail,K=_.fa(),Z=_.G4(_.zER),d;_.Qa(function(){(d=_.GD(K.value))&&d.addEventListener("keydown",P)});
_.C4(function(){var v;(v=d)==null||v.removeEventListener("keydown",P)});
x=function(){var v,m,t;return(v=O())==null?void 0:(m=v.reelPlayerOverlayRenderer)==null?void 0:(t=m.likeButton)==null?void 0:t.likeButtonRenderer};
return _.u("ytd-shorts-miniplayer-overlay",{el:K,class:"ytdShortsMiniplayerOverlayHost"},_.u("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.oP({"background-image":function(){var v=Y();return v?'url("'+_.rc(v.thumbnails)+'")':""}})}),_.u("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.u("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.u(Oz9,{iconType:function(){var v=Z();
return v===2||v===-1||v===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){RaR(Z())},
tooltipText:function(){var v=Z();return v===1||v===3?_.KK("PLAYER_LABEL_PAUSE"):_.KK("PLAYER_LABEL_PLAY")}}),_.u(_.Tfo,null)),_.u("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.u(Oz9,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:W,onTap:function(){FKo(K.value)},
tooltipText:_.KK("PREVIOUS_VIDEO_LABEL")}),_.u(Oz9,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:I,onTap:function(){qgU(K.value)},
tooltipText:_.KK("NEXT_VIDEO_LABEL")}),_.p("web_shorts_pip_like_button")?_.u("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.u(HNm,{buttonTooltipPosition:"left",data:x,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.u("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.u(_.V,{cond:function(){var v,m;return _.Q((v=O())==null?void 0:(m=v.reelPlayerOverlayRenderer)==null?void 0:m.metapanel,
_.chw)},
then:function(v){return _.u("div",{class:_.O4("ytdShortsMiniplayerOverlayInteractive")},_.u(_.IH9,{data:v}))}})),_.u("div",{class:_.O4("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var v;return!((v=O())==null||!v.adsOverlay)||B()&&!B$C(B())}},_.u("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.u(_.FuQ,null)))),_.u(_.V,{cond:function(){var v=O(),m,t;
v=_.Q(v==null?void 0:(m=v.adsOverlay)==null?void 0:(t=m.fulfillmentContent)==null?void 0:t.fulfilledLayout,mYc);return _.Q(v==null?void 0:v.renderingContent,QdP)},
then:function(v){return _.u("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.u(e1W,{data:v}))}}))},"Pe");var LK8=_.kl(function(){var W=_.n(_.YV(new _.y7(NaN,NaN),void 0,"HSMFk")),P=W.next().value,x=W.next().value;W=_.n(_.YV(!1,void 0,"uaAxwf"));var I=W.next().value,O=W.next().value,B=_.n(_.YV(!1,void 0,"nVSwef"));W=B.next().value;var Y=B.next().value,K=_.FY().resolve(_.kc).miniplayerPropSignalMap[0],Z=K.data,d=K.shortsData,v=K.nextButtonDisabled,m=K.shortsPreviewThumbnail,t=K.previousButtonDisabled,C=K.externalPlaylistData;B=K.toastData;var z=K.playabilityStatus,D=K.isDisabled,w=K.playerVe,a=K.closeVe;
K=_.G4(_.m0);_.XL("yt-pip-window-resized",function(Io){x(Io)});
_.XL("yt-activate-pip-miniplayer",function(){return _.y(function(Io){Y(!0);_.Kl(Io)})});
var k=function(){var Io;return!((Io=C())==null||!Io.contents)&&I()},T=function(){var Io=P(),F=!!Z(),nm=k();
Io=Io.clone();F&&(Io.height-=76);nm&&(Io.height-=285);return Io},N=function(){O(!I())};
_.jj(function(){var Io=w(),F=_.E_(11),nm=_.G7(11);F&&nm&&Io&&(_.hn(F,nm,Io),nm=a())&&(_.H7(F,Io,[nm]),_.c7(F,[nm]))});
return _.u("ytd-pip-container",{class:"ytdPipContainerHost"},_.u(_.V,{cond:W,then:function(){return _.u(_.oTf,{isDisabled:D,playabilityStatus:z,size:T})}}),_.u(_.V,{cond:Z,
then:function(){return _.u(_.Kuf,{data:Z,expanded:I,onExpandClick:N,playlistData:C})}}),_.u(_.V,{cond:k,
then:function(){return _.u("div",{class:"ytdPipContainerPlaylistPanel"},_.u(_.wEd,{data:C,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.u(_.V,{cond:K,
then:function(){return _.u(JHM,{data:d,nextButtonDisabled:v,previousButtonDisabled:t,playabilityStatus:z,previewThumbnail:m})}}),_.u("div",{class:"ytdPipContainerToast"},_.u(_.Si6,{toastData:B})))},"Qe");var pQ=function(W,P){var x=this;this.pipController=W;this.JSC$16388_clientRoot=P;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=J5R();this.watchPipEnabled=_.p("web_watch_pip");this.shortsPipEnabled=_.p("web_shorts_pip");this.JSC$16388_watchWhileEnabled=_.p("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;_.sx(_.Xe(),_.j9o,function(I){x.isSingleOptionSurveyActive=I});
this.JSC$16388_onPlayerPlayVideo=this.JSC$16388_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);_.kM(_.bs.getInstance(),this.miniplayerServiceActionMap,this.JSC$16388_clientRoot);W.pictureInPictureSupported()&&_.Ay("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},WMm,dE4,ZzL,s$4,vHd,d9M;
pQ.prototype.handleMediaSessionPipActivation=function(){var W=this,P;return _.y(function(x){_.ug().mediaSessionPipActivation=!0;P=_.FY().resolve(_.rL);return P.isOnWatch()&&W.watchPipEnabled?(_.ug().watchPipActivation=!0,_.B9d(W,P.data),x.jumpTo(0)):P.isOnShorts()&&W.shortsPipEnabled?(_.ug().shortsPipActivation=!0,_.nH3(W),x.jumpTo(0)):W.isMiniplayerActive()&&W.watchPipEnabled&&!W.watchWhileMode?_.S(x,Y0m(W),0):x.jumpTo(0)})};
var Y0m=function(W){var P,x,I,O;return _.y(function(B){if(B.nextAddress==1)return P=!W.miniplayerToPipMode,x=W.playerElement,I=W.miniplayerData,O=W.watchResponse,_.S(B,W.deactivate(),2);if(B.nextAddress!=3)return P?(_.ug().mediaSessionPipActivation=!0,_.ug().watchPipActivation=!0):_.ug().miniplayerButtonActivation=!0,_.S(B,W.activate(x,I,O),3);W.miniplayerToPipMode=P;_.Kl(B)})};
pQ.prototype.onDownloadedVideoDeleted=function(W){var P,x=_.Q((P=this.miniplayerData)==null?void 0:P.watchEndpoint,_.U_),I,O;x&&((I=this.watchResponse)==null?void 0:(O=I.playerResponse)==null?void 0:O.offlineState)!==void 0&&(P=x.videoId)&&W&&P===W&&this.close()};
pQ.prototype.onShowMiniplayerCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d,v,m,t,C,z;return _.y(function(D){switch(D.nextAddress){case 1:return x=_.Q(W,E1Z),O=(I=x)==null?void 0:I.miniplayerCommand,B=_.Q(O,_.U_),O&&B&&!P.active?_.S(D,_.QI.getInstance(),2):D.return();case 2:return Y=D.yieldResult,_.S(D,(K=Y)==null?void 0:K.get("yt-miniplayer-shown-video-id"),3);case 3:Z=D.yieldResult;d=B.videoId;if(!d||Z===d)return D.return();v=_.FY().resolve(_.rL);if(v.isOnWatch())return _.ge(Error("Cj")),D.return();
m={channelItem:{externalId:btoa(d)}};P.readyToResumeVe=_.td(121253,void 0,void 0,m);_.ug().showMiniplayerCommandActivation=!0;return _.S(D,_.syk(P,O,!0),4);case 4:return P.active?(_.jH(P,{readyToResumeVe:P.readyToResumeVe,continueWatching:!0,premiumBranding:!((t=x)==null||!t.showPremiumBranding)}),_.p("ytd_miniplayer_to_wiz")&&_.jH(P,{isReadyToResume:!0}),P.isReadyToResume=!0):_.jH(P,{continueWatching:!0,premiumBranding:!((C=x)==null||!C.showPremiumBranding)}),_.S(D,(z=Y)==null?void 0:z.set("yt-miniplayer-shown-video-id",
B.videoId),5);case 5:P.readyToResumeVe=void 0,_.Kl(D)}})};
pQ.prototype.init=function(W){this.miniplayerEl?_.ge(new _.mW("MiniplayerService already initialized.")):this.miniplayerEl=W};
pQ.prototype.isInitialized=function(){var W=!!this.miniplayerEl;W||_.ge(new _.mW("MiniplayerService used before initialized."));return W};
_.B9d=function(W,P){if(W.isInitialized()){var x=_.YgG(P.response,P.playerResponse),I=_.FY().resolve(_.rL).getPlayerFromWatch();_.ug().currentEndpoint=x.watchEndpoint||null;W.activate(I,x,P)}};
_.nH3=function(W){if(W.isInitialized()){var P=_.FY().resolve(_.rL).getPlayerFromShorts();W.activate(P)}};
WMm=function(W,P){var x;(x=!W.isInitialized())||(x=_.FY().resolve(_.rL).isOnWatch()&&W.watchPipMode,x=!(W.isMiniplayerActive()&&(_.ug().userActivation||_.ug().lockupActivation||x)));if(x)return!1;yHM(W,P)?_.mH(W):d9M(W,P);return W.watchPipMode?!_.FY().resolve(_.rL).isOnWatch():!0};
pQ.prototype.isMiniplayerActive=function(){return this.active};
var yHM=function(W,P){var x;P=(x=_.Q(P,_.U_))==null?void 0:x.videoId;var I,O;W=(O=_.Q((I=W.miniplayerData)==null?void 0:I.watchEndpoint,_.U_))==null?void 0:O.videoId;return P!=null&&P===W};
pQ.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Lf(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.W7(this.miniplayerEl,"yt-navigate-home-action"))};
_.syk=function(W,P,x,I){x=x===void 0?!1:x;var O,B,Y;return _.y(function(K){switch(K.nextAddress){case 1:if(W.active){K.jumpTo(2);break}O=_.FY().resolve(_.rL);if(Y=(B=W.playerElement)!=null?B:O.getPlayerFromWatch()){K.jumpTo(3);break}return _.S(K,_.FY().resolve(_.Pq),4);case 4:Y=O.getPlayerFromWatch();case 3:if(!Y){_.ge(Error("Ej"));K.jumpTo(2);break}return _.S(K,W.activate(Y,I),2);case 2:return W.active?_.S(K,d9M(W,P,x),0):K.return()}})};
pQ.prototype.activate=function(W,P,x){var I=this,O,B,Y,K,Z,d,v,m,t;return _.y(function(C){switch(C.nextAddress){case 1:if(!I.isInitialized())return C.return();if(!W)return _.ge(Error("Ej")),C.return();if(_.$W3()||I.isMiniplayerActive())var z=!0;else z=_.ug().watchPipActivation||_.ug().watchWhileActivation,_.FY().resolve(_.rL).isOnWatch()&&!z?(_.ge(new _.mW("miniplayer activated on watch page")),z=!0):z=_.ug().watchWhileActivation?I.userDeactivatedWatchWhile||!!document.pictureInPictureElement||kHS():
!1;if(z)return MZ3(),C.return();O=_.ug().mediaSessionPipActivation;B=_.ug().shortsPipActivation;Y=_.ug().watchPipActivation;Z=(K=_.ug().watchWhileActivation)||Y;d=Y||B;if(!I.pictureInPictureEnabled()||!d){C.jumpTo(2);break}return _.S(C,KyM(I,O),3);case 3:if(!C.yieldResult)return _.ge(Error("Dj")),MZ3(),C.return();case 2:return I.setActive(!0),I.watchResponse=x,I.playerElement=W,I.updateMiniplayerData(P),_.S(C,ZzL(I,W),4);case 4:if(!I.active)return _.ge(new _.mW("miniplayer deactivated during activation")),
I.removePlayerListeners(),C.return();z=_.FY().resolve(_.wx);z.addEventListener("yt-navigate",_.WM(I,I.onPlaylistNavigate));z.addEventListener("yt-playlist-data-updated",_.WM(I,I.JSC$16388_onPlaylistDataUpdated));I.JSC$16388_onPlaylistDataUpdated();MZ3();I.JSC$16388_watchWhileEnabled&&_.oHy(I,K);I.pictureInPictureEnabled()&&I.shortsPipEnabled&&(I.shortsPipMode=B,_.Xe().dispatch(mfP(I.shortsPipMode)));I.pictureInPictureEnabled()&&I.watchPipEnabled&&(I.watchPipMode=Y,_.XjC(I.handleMediaSessionPipActivation));
I.player&&(v=I.player.getPlayerState(),m=v===1,_.Xe().dispatch(Gqd(v)),_.P7(I.miniplayerEl,"yt-miniplayer-play-state-changed",[m]),_.ug().isVideoPlaying=m);_.P7(I.miniplayerEl,"yt-miniplayer-endpoint-changed");S0v(I);_.uVM(I);return I.shortsPipMode||I.watchPipMode?_.S(C,_.x6(I.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.p("ytd_miniplayer_to_wiz")?_.S(C,_.x6(I.miniplayerEl,"yt-activate-miniplayer",[Z]),6):_.S(C,_.x6(I.miniplayerEl,"yt-activate-miniplayer-action",[W,Z]),6);case 6:if(I.watchResponse&&
!_.p("miniplayer_copy_screen_on_activation_killswitch")){z=I.getScreenLayer();var D=_.E_(0),w=AWt(0);D&&w&&(_.Dt(D,w,z),z===0&&Q1U(void 0,0))}dE4(I);s$4(I,!0);(t=I.getPlayerElement())==null||t.focusOnPlayer();_.Kl(C)}})};
pQ.prototype.updateMiniplayerData=function(W){this.miniplayerData=W;_.jH(this,{data:W})};
_.uVM=function(W){var P,x,I=((P=W.miniplayerData)==null?void 0:(x=P.miniplayerRenderer)==null?void 0:x.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";P=W.watchWhileMode||W.watchPipMode?I&&!_.FY().resolve(_.rL).isOnWatch():I;_.jH(W,{isDisabled:P});var O,B;x=_.Q((O=W.miniplayerData)==null?void 0:(B=O.miniplayerRenderer)==null?void 0:B.minimizedEndpoint,_.Ac);P&&x&&_.FY().resolve(_.Vz).openSheet({openPopupActionCommand:{openPopupAction:x}},W.miniplayerEl)};
dE4=function(W){if(W.watchResponse&&!vHd(W)){var P,x=(P=W.watchResponse.playerResponse)==null?void 0:P.trackingParams;x&&(_.jH(W,{expandVe:_.td(35989),closeVe:_.td(34699),readyToResumeCloseVe:_.td(131070),repositionVe:_.td(226204),resizeVe:_.td(226205)}),_.jH(W,{playerVe:_.ox(x)}))}};
ZzL=function(W,P){return _.y(function(x){if(x.nextAddress==1)return P.preparePlayer(),_.S(x,P.getPlayerPromise(),2);W.player=x.yieldResult;W.player&&(W.player.addEventListener("onPlayVideo",W.JSC$16388_onPlayerPlayVideo),W.player.addEventListener("onCloseMiniplayer",W.onPlayerCloseMiniplayer),W.player.addEventListener("onExpandMiniplayer",W.onPlayerExpandMiniplayer),W.player.addEventListener("onStateChange",W.onPlayerStateChange));_.Kl(x)})};
_.J=pQ.prototype;_.J.JSC$16388_onPlayerPlayVideo=function(W){var P=W.sessionData&&"autonav"in W.sessionData,x;W.sessionData&&W.sessionData.itct&&(x=W.sessionData.itct);var I=W.watchEndpoint;P=I&&P?_.U6o(I,x):_.iB(W.videoId,W.listId||void 0,x);W.sessionData&&_.lO(_.Q(P.commandMetadata,_.rU).url,W.sessionData);d9M(this,P)};
_.J.onPlayerExpandMiniplayer=function(){_.mH(this)};
_.J.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.J.onPlayerStateChange=function(){if(this.player){var W=this.player.getPlayerState(),P=W===1;_.Xe().dispatch(Gqd(W));_.Xe().dispatch(_.gwz(W));_.P7(this.miniplayerEl,"yt-miniplayer-play-state-changed",[P]);_.ug().isVideoPlaying=P;if(W===0){P=!_.iG.getInstance().isAutoplaySetExplicitly();var x,I,O,B,Y,K,Z=(x=this.watchResponse.response)==null?void 0:(I=x.contents)==null?void 0:(O=I.twoColumnWatchNextResults)==null?void 0:(B=O.autoplay)==null?void 0:(Y=B.autoplay)==null?void 0:(K=Y.autoplayExplicitChoiceDialogRenderer)==
null?void 0:K.confirmDialogRenderer;P&&Z&&this.player.setAutonavState(1)}W===0&&this.watchWhileMode&&this.deactivate()}};
_.J.onPlaylistNavigate=function(W,P){var x=this,I,O,B,Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1){if(!_.Q(P.endpoint,_.U_))return v.return();_.ug().currentEndpoint=P.endpoint;_.P7(x.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.FY().resolve(_.rL).isOnWatch()&&(x.watchWhileMode||x.watchPipMode))return v.return();W.stopPropagation();(B=(O=_.Q((I=P.endpoint)==null?void 0:I.commandMetadata,_.rU))==null?void 0:O.url)&&P.tempData&&!_.jU.isEmpty(P.tempData)&&_.lO(B,P.tempData);Y={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};K=new MpW(function(){return x.getPlayerElement()},Y,{layer:x.getScreenLayer()});
Z=function(m){K.processChunk({endpoint:P.endpoint,data:m})};
mEv(x);x.miniplayerFetchRequest=V56(x,P.endpoint,Z);_.OT(v,2);return _.S(v,x.miniplayerFetchRequest,4)}if(v.nextAddress!=2)return d=v.yieldResult,t5L(x,d),_.ci(v,0);_.yn(v);_.Kl(v)})};
_.J.JSC$16388_onPlaylistDataUpdated=function(){var W=_.FY().resolve(_.wx).getPlaylistData();this.hasPlaylistData=!!W;_.jH(this,{externalPlaylistData:W||{}})};
_.J.close=function(W){if(this.isInitialized())if(W){if(!((this.watchWhileMode||this.watchPipMode)&&_.FY().resolve(_.rL).isOnWatch()||this.shortsPipMode)){var P;(P=this.getPlayerElement())==null||P.stop()}this.deactivate()}else _.am().closeMiniplayer(this.miniplayerEl)};
_.J.deactivate=function(W){var P=this,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1){if(!P.isInitialized()||!P.active)return Y.return();P.setActive(!1);mEv(P);(x=!!W&&yHM(P,W))&&P.isSingleOptionSurveyActive&&_.W7(P.miniplayerEl,"yt-show-watch-page-survey",[P.isSingleOptionSurveyActive]);return _.S(Y,p6Q(P),2)}if(Y.nextAddress!=3){s$4(P,!1);P.isReadyToResume=!1;P.watchResponse=void 0;P.updateMiniplayerData(void 0);P.shortsPipMode&&(P.shortsPipMode=!1,_.Xe().dispatch(mfP(P.shortsPipMode)),fA2(P.pipController),
(I=P.player)==null||I.setInternalSize(NaN,NaN));P.watchPipMode&&(P.watchPipMode=!1,fA2(P.pipController));(O=P.watchWhileMode)&&_.oHy(P,!1);P.removePlayerListeners();var K=_.FY().resolve(_.wx);K.removeEventListener("yt-navigate",_.WM(P,P.onPlaylistNavigate));K.removeEventListener("yt-playlist-data-updated",_.WM(P,P.JSC$16388_onPlaylistDataUpdated));_.ug().currentEndpoint=null;_.P7(P.miniplayerEl,"yt-miniplayer-endpoint-changed");P.playerElement=null;MZ3();return P.shortsPipMode||P.watchPipMode?Y.jumpTo(3):
_.S(Y,_.x6(P.miniplayerEl,_.p("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[x,O]),3)}(B=P.player)==null||B.setInternalSize(NaN,NaN);P.player=null;_.Kl(Y)})};
var p6Q=function(W){var P;return _.y(function(x){P=_.FY().resolve(_.rL);return W.shortsPipMode?_.S(x,P.movePlayerToShorts(W.playerElement),0):_.S(x,P.movePlayerToWatch(W.playerElement),0)})};
pQ.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16388_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
pQ.prototype.setActive=function(W){this.active=W;this.isSingleOptionSurveyActive?_.W7(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.W7(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Xe().dispatch(_.LK({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.oHy=function(W,P){W.watchWhileMode=P;_.jH(W,{watchWhile:P})};
s$4=function(W,P){if(!vHd(W))if(W.shortsPipMode||W.watchPipMode){var x;(x=W.player)==null||x.setDocumentPictureInPicture(P)}else{var I;(I=W.player)==null||I.setMinimized(P)}};
vHd=function(W){return W.watchWhileMode&&_.p("kevlar_watch_while_counterfactual")};
_.mH=function(W){var P;return _.y(function(x){switch(x.nextAddress){case 1:if(!W.isInitialized())return x.return();_.OT(x,2);return _.S(x,W.miniplayerFetchRequest,4);case 4:_.ci(x,3);break;case 2:_.yn(x);case 3:W.watchResponse&&W.miniplayerData&&W.miniplayerData.watchEndpoint?(P={url:W.watchResponse.url,endpoint:W.miniplayerData.watchEndpoint,data:W.watchResponse,miniplayer:!0},_.Lf(W.miniplayerEl,"yt-navigate-cache",P)):W.miniplayerData&&W.miniplayerData.watchEndpoint&&_.Lf(W.miniplayerEl,"yt-navigate",
{endpoint:W.miniplayerData.watchEndpoint}),_.Kl(x)}})};
d9M=function(W,P,x){var I,O,B,Y;return _.y(function(K){if(K.nextAddress==1){if(yHM(W,P))return K.return();_.ug().currentEndpoint=P;_.P7(W.miniplayerEl,"yt-miniplayer-endpoint-changed");_.P7(W.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.ug().isVideoPlaying=!1;I={clientParams:{miniplayer:!0,autoSaveToQueue:!x}};O=new MpW(function(){return W.getPlayerElement()},I,{layer:W.getScreenLayer(),
parentLayer:0},void 0,W.readyToResumeVe);B=function(Z){var d,v,m=Object.assign({},(d=Z.playerResponse)==null?void 0:(v=d.playerConfig)==null?void 0:v.playbackStartConfig,{startPaused:!0}),t;x&&((t=Z.playerResponse)==null?0:t.playerConfig)&&(Z.playerResponse.playerConfig.playbackStartConfig=m);O.processChunk({endpoint:P,data:Z})};
mEv(W);W.miniplayerFetchRequest=V56(W,P,B);_.OT(K,2);return _.S(K,W.miniplayerFetchRequest,4)}if(K.nextAddress!=2)return Y=K.yieldResult,t5L(W,Y),_.ci(K,0);_.yn(K);_.Kl(K)})};
pQ.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var mEv=function(W){W.miniplayerFetchRequest&&(W.miniplayerFetchRequest.cancel&&W.miniplayerFetchRequest.cancel("Active request obsolete"),W.miniplayerFetchRequest=null)},V56=function(W,P,x){var I=_.Is.instance,O,B=(O=_.Q(P.commandMetadata,_.rU))==null?void 0:O.url,Y;
O=!B||_.p("disable_miniplayer_tempdata")?{}:(Y=o1G(B))!=null?Y:{};return fP(I,P,O,window.location.href,"watch",function(K,Z){x(Z)},function(K){return K!==W.miniplayerFetchRequest})},t5L=function(W,P){var x;
_.y(function(I){if(!P)return I.return();W.watchResponse=P;dE4(W);S0v(W);x=_.YgG(P.response,P.playerResponse);if(W.isMiniplayerActive()){P.response&&(W.playerElement.watchNextData=P.response);var O=_.jU.getValueByKeys.apply(_.jU,[P].concat(_.ju(Ufm)));_.jU.getValueByKeys.apply(_.jU,[P].concat(_.ju(Tqm)))&&O&&_.FY().resolve(_.wx).setAutoplayRenderer(O);if(O)if(_.p("kevlar_is_pupi_enabled")){var B,Y,K,Z,d,v=((B=P.response)==null?0:(Y=B.playerOverlays)==null?0:(K=Y.playerOverlayRenderer)==null?0:(Z=K.autonavToggle)==
null?0:(d=Z.autoplaySwitchButtonRenderer)==null?0:d.enabled)?2:1;_.iG.getInstance().setState(v,!1,!1)}else B=AVR()?2:1,(v=W.player)==null||v.setAutonavState(B);W.updateMiniplayerData(x);_.uVM(W)}_.Kl(I)})},S0v=function(W){var P,x,I=(P=W.watchResponse)==null?void 0:(x=P.playerResponse)==null?void 0:x.playabilityStatus,O;
P=I==null?void 0:(O=I.miniplayer)==null?void 0:O.miniplayerRenderer;(P==null?void 0:P.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&P.minimizedEndpoint&&_.Iu(W.miniplayerEl,[P.minimizedEndpoint]);_.jH(W,{miniplayerRenderer:P,playabilityStatus:I})};
pQ.prototype.openToast=function(W,P){_.jH(this,{toastData:{data:W,label:P}})};
_.jH=function(W,P){var x=W.miniplayerEl,I;for(I in P)x[I]=P[I];(0,W.miniplayerPropSignalMap[1])(P)};
pQ.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var W;return this.playerElement?this.playerElement:(W=_.g(this.miniplayerEl).querySelector("#player-container"))==null?void 0:W.firstElementChild};
pQ.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var KyM=function(W,P){P=P===void 0?!1:P;var x,I,O,B,Y,K,Z;return _.y(function(d){if(d.nextAddress==1){x=navigator.userActivation.isActive||P;if(!x||!W.pictureInPictureSupported())return d.return(!1);I=j$3(W);O=I.width;B=I.height;return _.S(d,W.pipController.openWindow({width:O,height:B}),2)}Y=d.yieldResult;K=W.pipController.getWindow();if(!K||!Y)return d.return(!1);K.document.body.style.overflow="hidden";Z=Wid(K);NSQ(W.pipController,function(){Q$4(W);Z()});
return d.return(!0)})},j$3=function(W){var P=_.ug().shortsPipActivation,x,I;
W=P?.5625:(I=(x=W.player)==null?void 0:x.getVideoAspectRatio())!=null?I:16/9;x=Math.min(window.innerWidth,window.innerHeight)/2;P=P?0:76;return W>1?new _.y7(x,P+x/W):new _.y7(x*W,P+x)},Q$4=function(W){var P;
_.y(function(x){P=_.FY().resolve(_.rL);return P.isOnWatch()&&W.watchPipMode||P.isOnShorts()&&W.shortsPipMode?_.S(x,W.deactivate(),0):W.miniplayerToPipMode?_.S(x,Y0m(W),0):W.watchPipMode?_.S(x,_.mH(W),0):x.jumpTo(0)})};
pQ.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.N1.Object.defineProperties(pQ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
pQ[qC]=[lA2,F5w];var C5M="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(" "),
AHO="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(" "),z54="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
GIG="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var EH6=null;var gH2={},DE3=(gH2.initialized={priority:10,callback:function(W){var P=_.FY();P.addProvider({provide:NJw,useClass:Xm2});P.addProvider({provide:_.UbO,useFactory:function(){return new lCz}});
P.addProvider({provide:uo,useValue:_.$$("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});P.addProvider({provide:WLk,useValue:5184E6});P.addProvider({provide:dJz,useValue:_.Ds()});P.addProvider({provide:GRG,useClass:yaZ});P.addProvider({provide:EB,useClass:EB});P.addProvider({provide:_.Pq,useFactory:function(){return tgl.promise}});
P.addProvider({provide:_.jV3,useFactory:function(){return _.pwW.promise}});
P.addProvider({provide:ajx,useValue:function(){var K;return((K=_.RP())==null?void 0:K.getPlayer())||null}});
var x={};P.addProvider((x.provide=_.Ub,x.useFactory=function(K,Z){return function(){return APW(K,Z)}},x[qC]=[uo,
WLk],x));x={};P.addProvider((x.provide=_.Pw,x.useClass=XGz,x[qC]=[uo,WLk],x));x={};P.addProvider((x.provide=_.ukt,x.useClass=TH3,x[qC]=[_.Pw],x));P.addProvider({provide:Jk,useFactory:_.Xe});P.addProvider({provide:S_,useFactory:_.Xe});P.addProvider({provide:D7L,useFactory:_.Xe});P.addProvider({provide:TZZ,useFactory:_.Xe});P.addProvider({provide:_.Ae,useFactory:_.Xe});P.addProvider({provide:ln,useValue:_.Yz});P.addProvider({provide:edO,useClass:zSW});P.addProvider({provide:wDb,useClass:$ul});P.addProvider({provide:Gt,
useClass:Gt});P.addProvider({provide:tA,useClass:tA});P.addProvider({provide:Qm,useClass:Qm});P.addProvider({provide:AA,useClass:AA});P.addProvider({provide:hA,useClass:hA});P.addProvider({provide:OR,useClass:OR});P.addProvider({provide:Fr,useClass:Fr});P.addProvider({provide:gbz,useValue:x5M});P.addProvider({provide:_.ZF,useFactory:_.YY});P.addProvider({provide:Nr,useFactory:_.SI});x={};P.addProvider((x.provide=rvt,x.useFactory=function(K){return function(Z){var d=d===void 0?{}:d;var v,m,t=(m=_.Q((v=
Z.endpoint)==null?void 0:v.commandMetadata,_.rU))==null?void 0:m.rootVe;if(t){var C,z;if(v=Z.previousCsn||((z=_.Q((C=Z.endpoint)==null?void 0:C.commandMetadata,nZl))==null?void 0:z.parentCsn)){var D=D===void 0?{}:D;if(v!==_.E_(D.layer)||t!==AWt(D.layer))Dmo(v,D.cttAuthInfo,D.layer||0),Q1U(v,D.layer||0),C=D.layer||0,_.MR(CkC(C===void 0?0:C),t);d.parentCsn=v}Z.endpoint&&v?vyd(K,Z.endpoint,d):_.JN(K,t,void 0,d);var w;((w=Z.response)==null?0:w.trackingParams)&&K.graftServerVe(Z.response.trackingParams);
var a;((a=Z.playerResponse)==null?0:a.trackingParams)&&K.graftServerVe(Z.playerResponse.trackingParams);var k;((k=Z.reelWatchSequenceResponse)==null?0:k.trackingParams)&&K.graftServerVe(Z.reelWatchSequenceResponse.trackingParams)}}},x[qC]=[_.ZF],x));
x={};P.addProvider((x.provide=$7L,x.useClass=M8v,x[qC]=[ln,_.Ae],x));x={};P.addProvider((x.provide=LF,x.useClass=LF,x[qC]=[_.Pq,_.Ae],x));x={};P.addProvider((x.provide=i1,x.useClass=i1,x[qC]=[S_,_.qR],x));P.addProvider({provide:_.aAv,useClass:rmQ});x={};P.addProvider((x.provide=_.m3,x.useClass=U7O,x[qC]=[_.aAv],x));P.addProvider({provide:_.Vz,useClass:x7});P.addProvider({provide:KLm,useClass:Awm});P.addProvider({provide:_.tf,useClass:W4});x={};P.addProvider((x.provide=_.bo,x.useClass=TSv,x[qC]=[_.bo],
x));P.addProvider({provide:_.rG,useClass:zBM});P.addProvider({provide:Kn,useClass:Kn});P.addProvider({provide:su,useClass:su});P.addProvider({provide:Cn,useClass:P4});x={};P.addProvider((x.provide=G2,x.useClass=G2,x[qC]=[_.Vz,Cn],x));_.p("web_enable_feedback_endpoint_resolver")&&(x={},P.addProvider((x.provide=Bs,x.useClass=Bs,x[qC]=[Jk,Ou],x)),P.addProvider({provide:Ou,useClass:TXd}));_.p("web_enable_feedback_endpoint_resolver_batch_2")&&(x={},P.addProvider((x.provide=Y2,x.useClass=Y2,x[qC]=[Jk],
x)),x={},P.addProvider((x.provide=nn,x.useClass=nn,x[qC]=[Ou],x)));x={};P.addProvider((x.provide=Ak,x.useClass=Ak,x[qC]=[_.tf,Cn],x));x={};P.addProvider((x.provide=tk,x.useClass=tk,x[qC]=[_.tf],x));x={};P.addProvider((x.provide=z2,x.useClass=z2,x[qC]=[_.m7,_.m3],x));x={};P.addProvider((x.provide=QP,x.useClass=QP,x[qC]=[_.m7,_.ZF],x));P.addProvider({provide:FR,useClass:FR});x={};P.addProvider((x.provide=fn,x.useClass=fn,x[qC]=[Jk],x));P.addProvider({provide:Ke,useClass:Ke});x={};P.addProvider((x.provide=
oJ,x.useClass=oJ,x[qC]=[Jk],x));x={};P.addProvider((x.provide=Sc,x.useClass=Sc,x[qC]=[_.m7,Jk],x));x={};P.addProvider((x.provide=uH,x.useClass=uH,x[qC]=[Jk],x));x={};P.addProvider((x.provide=dV,x.useClass=dV,x[qC]=[Jk],x));x={};P.addProvider((x.provide=pn,x.useClass=pn,x[qC]=[_.m3],x));x={};P.addProvider((x.provide=xI,x.useClass=xI,x[qC]=[_.ZF],x));x={};P.addProvider((x.provide=YI,x.useClass=YI,x[qC]=[io],x));x={};P.addProvider((x.provide=yW,x.useClass=yW,x[qC]=[io],x));P.addProvider({provide:JI,
useClass:JI});P.addProvider({provide:Bl,useClass:Bl});P.addProvider({provide:Pl,useClass:Pl});x={};P.addProvider((x.provide=Eu,x.useClass=Eu,x[qC]=[_.m3,_.qR],x));P.addProvider({provide:Sw,useClass:Sw});x={};P.addProvider((x.provide=jw,x.useClass=jw,x[qC]=[_.m7,_.m3],x));P.addProvider({provide:vs,useClass:vs});x={};P.addProvider((x.provide=k2,x.useClass=k2,x[qC]=[Jk,_.m7,_.bo],x));x={};P.addProvider((x.provide=cs,x.useClass=cs,x[qC]=[_.m7,_.qR],x));P.addProvider({provide:Rel,useValue:U9R});P.addProvider({provide:mkt,
useValue:KtC});P.addProvider({provide:a0,useClass:a0});x={};P.addProvider((x.provide=ew,x.useClass=ew,x[qC]=[Jk],x));x={};P.addProvider((x.provide=Uu,x.useClass=Uu,x[qC]=[_.rG,_.qR],x));x={};P.addProvider((x.provide=yP,x.useClass=yP,x[qC]=[_.qR],x));P.addProvider({provide:I0,useFactory:function(){return new I0(_.Xe())}});
P.addProvider({provide:mZR,useFactory:_.$3.getInstance});x={};P.addProvider((x.provide=d8,x.useClass=d8,x[qC]=[uo,mZR,_.qR],x));P.addProvider({provide:Zk,useClass:Zk});P.addProvider({provide:qN,useClass:qN});P.addProvider({provide:Ws,useClass:Ws});P.addProvider({provide:_.LZ,useClass:_.LZ});P.addProvider({provide:mg,useClass:mg});x={};P.addProvider((x.provide=w8,x.useClass=w8,x[qC]=[S_],x));x={};P.addProvider((x.provide=hk,x.useClass=hk,x[qC]=[_.qR],x));_.p("web_enable_prefetching_videos_on_home")&&
(P.addProvider({provide:rj,useClass:rj}),P.addProvider({provide:oZ,useClass:oZ}));x={};P.addProvider((x.provide=vl,x.useClass=vl,x[qC]=[_.qR],x));P.addProvider({provide:Ps,useClass:Ps});x={};P.addProvider((x.provide=qr,x.useClass=qr,x[qC]=[_.m7,_.qR],x));x={};P.addProvider((x.provide=x2,x.useClass=x2,x[qC]=[_.qR],x));P.addProvider({provide:SH,useClass:SH});P.addProvider({provide:Mr,useClass:Mr});x={};P.addProvider((x.provide=Dk,x.useClass=Dk,x[qC]=[S_,_.qR],x));x={};P.addProvider((x.provide=pe,x.useClass=
pe,x[qC]=[S_,_.qR,_.m7],x));x={};P.addProvider((x.provide=jc,x.useClass=jc,x[qC]=[_.qR],x));x={};P.addProvider((x.provide=tI,x.useClass=tI,x[qC]=[_.qR,_.m7],x));x={};P.addProvider((x.provide=Hs,x.useClass=Hs,x[qC]=[_.Pq],x));x={};P.addProvider((x.provide=$2,x.useClass=$2,x[qC]=[_.Pq],x));P.addProvider({provide:r8,useClass:r8});P.addProvider({provide:R0,useClass:R0});P.addProvider({provide:Zp,useClass:Zp});P.addProvider({provide:Ln,useClass:Ln});P.addProvider({provide:T2,useClass:T2});P.addProvider({provide:mE,
useClass:mE});P.addProvider({provide:lo,useClass:lo});_.p("kevlar_enable_mss_lazy_load")&&P.addProvider({provide:_.X3,useClass:jGy});P.addProvider({provide:_.Pv,useClass:OM});P.addProvider({provide:r6,useFactory:function(){return _.bs.getInstance()}});
P.addProvider({provide:EWy,useFactory:bvG});P.addProvider({provide:io,useFactory:function(){return _.QI.getInstance()}});
P.addProvider({provide:SfZ,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});x={};P.addProvider((x.provide=_.RF,x.useClass=_.RF,x[qC]=[_.Pq,_.qR,_.ZF,EWy,io,r6,SfZ,ln],x));P.addProvider({provide:_.Bw,useClass:hD3});P.addProvider({provide:_.xJA,useClass:Pi3});x={};P.addProvider((x.provide=VP,x.useClass=VP,x[qC]=[_.xJA],x));x={};P.addProvider((x.provide=_.Fi,x.useFactory=function(K){return K.upliftCompletionResolver.promise},x[qC]=[$7L],x));
x=_.wo("IS_SHELL_LOAD")?"aa":"eocs";var I=_.wo("IS_SHELL_LOAD")?3:2;_.HK().parkOrScheduleJob(function(){hxv()},I,x);
_.HK().parkOrScheduleJob(function(){_.FY().resolve(LF).start()},2,"eocs");
_.HK().parkOrScheduleJob(function(){gW2()},2,"eocs");
_.HK().parkOrScheduleJob(function(){_.FY().resolve(i1).start()},2,"eocs");
_.p("kevlar_debug_data_app_registration_ks")||K58();P.addProvider({provide:_.jy,useValue:new a0c(W.root)});P.addProvider({provide:cB,useValue:new Ncx});P.addProvider({provide:_.TA3,useValue:new NAi(W.root)});P.addProvider({provide:_.v5,useValue:new l0l});P.addProvider({provide:_.Je,useClass:K7});P.addProvider({provide:lA2,useClass:IZ});_.p("kevlar_network_sli_killswitch")||P.addProvider({provide:rwG,useValue:FcA});P.addProvider({provide:cwy,useFactory:GJ7});_.p("web_bind_fetch")&&(x={},P.addProvider((x.provide=
a3v,x.useFactory=Evo,x[qC]=[_.Rl(cwy)],x)));_.p("web_bind_parse")&&(x={},P.addProvider((x.provide=bMM,x.useFactory=gvU,x[qC]=[_.Rl(cwy)],x)));_.p("web_bind_window_request")&&(x={},P.addProvider((x.provide=kAM,x.useFactory=DjW,x[qC]=[_.Rl(cwy)],x)));x={};P.addProvider((x.provide=VDd,x.useFactory=N$U,x[qC]=[_.Fi,Jk,_.Ub],x));x={};P.addProvider((x.provide=mJA,x.useClass=QW,x[qC]=[VDd],x));P.addProvider({provide:hAb,useClass:DJc});P.addProvider({provide:uWk,useClass:sTA});x=[].concat(_.ju(bh));_.p("web_continuation_response_processing")&&
x.push(_.gL);x.push(Gsz);_.p("enable_share_panel_navigation_logging_fix_on_web")&&x.push(_.qjl);P.addProvider({provide:GLm,useValue:x});P.addProvider({provide:p8U,useClass:S5i});P.addProvider({provide:qcm,useClass:iM3});x={};P.addProvider((x.provide=vrR,x.useClass=I_c,x[qC]=[S_],x));_.Gr.addLowPriorityJob(function(){oxt()});
x={};P.addProvider((x.provide=RLM,x.useFactory=function(K){return function(Z){var d,v=(d=_.Q(Z.commandMetadata,_.rU))==null?void 0:d.url;if(!v)throw new _.mW("No URL for PBJ Command",Z);v=CVd(v,{pbj:"1"});d=XfR(v,{})||{};d=Object.assign({},d,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.$$("STS").toString()});Z=_.Kj({command:JSON.stringify(Z),session_token:_.$$("XSRF_TOKEN")});return K.fetch(v,{method:"POST",headers:d,body:Z})}},x[qC]=[qcm],x));
x=[];x.push(P.resolve(uWk));I={};I=(I.client_location=_.$3.getInstance(),I.consistency=_.Ax8(),I.entities=P.resolve(wDb),I.response_received_commands=P.resolve(p8U),I.store=P.resolve(_.ukt),I.tokens=P.resolve(uWk),I);if(_.p("web_shorts_prefetch_service_enabled")){var O=new r_Z(P.resolve(_.Pw));I.shorts_prefetch=O}I.adblock_detection=P.resolve(vrR);P.addProvider({provide:_.bE,useClass:_.bE});O=P.resolve(gbz);var B=[];if(_.p("PremiumClientSharedConfig__enable_att_context_processor")||_.p("enable_att_for_transcript_request_on_web_client"))P.addProvider({provide:vFd,
useClass:uDp}),B.push(P.resolve(vFd));if(_.p("owl_pl_await")){var Y={};P.addProvider((Y.provide=Mz9,Y.useFactory=function(K){return new gi2(K)},Y[qC]=[_.bE],Y));
B.push(P.resolve(Mz9))}IPi(O,P.resolve(qcm),P.resolve(edO),I,P.resolve(_.Pw),x,B,P.resolve(mJA),P.resolve(hAb));P.addProvider({provide:_.m7,useValue:_.HF.instance});_.p("start_client_gcf")&&P.addProvider({provide:ty,useValue:mlb()});P.addProvider({provide:ex3,useFactory:function(){return new ex3(_.FY().resolve(_.bE),_.QI.getInstance())}});
_.HK().parkOrScheduleJob(function(){cmd()},1,"eocs");
x={};P.addProvider((x.provide=qw,x.useClass=qw,x[qC]=[_.Ub,_.m7],x));P.addProvider({provide:_.LR4,useFactory:_.ZD.getInstance});_.HK().parkOrScheduleJob(function(){_.FY().resolve(qw).refresh()},0,"eocs");
Flp(x5M.watchEndpointMap||{},O.reelWatchEndpointMap||{},W.injector.resolve(_.m7));P.addProvider({provide:Gc,useValue:_.Is.instance});_.p("kevlar_signal_collection_killswitch")||(x={},P.addProvider((x.provide=zxO,x.useClass=zxO,x[qC]=[uo,Nr],x)),_.HK().parkOrScheduleJob(function(){_.FY().resolve(zxO).record()},1,"eocs"));
_.p("web_debug_handler_registration_killswitch")||_.HK().parkOrScheduleJob(function(){YRU("DOWNLOAD_PES",arC);_.p("offline_client_state_export_ks")||YRU("OFFLINE_CLIENT_STATE",HvA)},0,"eocs");
_.p("kevlar_prevent_polymer_dynamic_font_load")&&_.HK().parkOrScheduleJob(function(){var K=[_.W9(KOy),_.W9(Z2v)];K=_.n(K);for(var Z=K.next();!Z.done;Z=K.next()){Z=Z.value;var d=document.createElement("link");_.kH(d,Z,"stylesheet");document.head.appendChild(d)}},1,"eocs");
x=W.injector.resolve(_.m7);_.sgc.instance=new _.sgc(x);C$U(YXd(new dup(x)));x={};W.injector.addProvider((x.provide=RR,x.useFactory=function(K){(K=K==null?void 0:K.getCurrentPage())?K=K.visibilityObserver:(EH6||(EH6=zfm()),K=EH6);return K},x[qC]=[_.Rl(_.rL)],x.skipCache=!0,x));
P.addProvider({provide:_.kc,useClass:pQ});P.addProvider({provide:yz,useClass:U8m});P.addProvider({provide:Rnm,useValue:N5o});W.injector.addProvider({provide:iqM,useValue:crl});P.addProvider({provide:heW,useValue:kUm});P.addProvider({provide:_.hF,useValue:L_7});W=P.addProvider;PpB||(PpB=new WPG);W.call(P,{provide:_.xbf,useValue:PpB});P.addProvider({provide:_.eS,useValue:_.$$("HTML_DIR")==="rtl"?"rtl":"ltr"});P.addProvider({provide:HuA,useClass:NXl});P.addProvider({provide:_.xY,useClass:JR});_.FY().addProvider({provide:cKd,
useValue:_.p("enable_web_delhi_icons")?AHO.concat(GIG):C5M.concat(z54)});P.addProvider({provide:_.nQ,useClass:_.nQ});P.addProvider({provide:_.J9d,useValue:new O22});P.addProvider({provide:eg3,useClass:Dul});P.addProvider({provide:Wl,useClass:Wl});P.addProvider({provide:IJ,useClass:IJ});W={};P.addProvider((W.provide=g8,W.useClass=g8,W[qC]=[_.m7,_.m3],W));P.addProvider({provide:VW,useClass:VW});P.addProvider({provide:x4Z,useClass:Rxf});P.addProvider({provide:ne,useClass:ne});P.addProvider({provide:MEc,
useValue:sNm});P.addProvider({provide:_.Gf,useClass:M03});_.p("enable_payments_purchase_manager")&&P.addProvider({provide:pDZ,useClass:muW});P.addProvider({provide:Yv2,useFactory:function(){return function(K){return _.n42(K)}}});
P.addProvider({provide:_.ZVw,useClass:obp});W={};P.addProvider((W.provide=sC,W.useClass=sC,W[qC]=[_.ZVw],W));P.addProvider({provide:OC,useClass:OC});P.addProvider({provide:FFb,useValue:zGm});P.addProvider({provide:yOm,useValue:YcB});P.addProvider({provide:VGt,useClass:imM});P.addProvider({provide:nTv,useValue:BDf});W={};P.addProvider((W.provide=_.v4,W.useClass=Yif,W[qC]=[nTv],W));_.p("web_ephemeral_actions")&&(W={},P.addProvider((W.provide=_.y9,W.useClass=Y7,W[qC]=[_.Ae,_.Je],W)));if(_.p("web_explore_hub_on_hover")||
_.p("web_client_explore_hub_on_hover"))W={},P.addProvider((W.provide=o0,W.useClass=o0,W[qC]=[_.m7,r6],W));P.addProvider({provide:Ttm,useValue:aPm});W={};P.addProvider((W.provide=RAP,W.useClass=iVi,W[qC]=[_.m7],W))}},gH2);var M5L={},$E2=(M5L.initialized={priority:10,callback:function(){if(!Tkv){F77();$jd("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.JY(_.ou($jd,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.p("log_heartbeat_with_lifecycles")){var W={};fB.instance||(fB.instance=new fB);fB.instance.install((W.document_visible={callback:w37,priority:10},W.document_hidden={callback:w37,priority:10},W))}else _.r3(document,"visibilitychange",w37);Tkv=!0}(W=_.E_())&&W!=="UNDEFINED_CSN"&&p17(W)}},M5L);var w62={},h5f=(w62.initialized={callback:function(W){var P=_.td(232091),x=W.injector.resolve(_.ZF);_.BK(x,P);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?Pyo()&&_.yI(x,P):(W=W.injector.resolve(Yv2)("refresh_detector"))&&(W.get("first_tab_load")?_.yI(x,P):W.set("first_tab_load","1"))}},w62);var Hz9={},e5G=(Hz9.initialized={priority:10,callback:yBG},Hz9);var cHf={},aHm=(cHf.initialized={priority:0,callback:function(){var W=new jQA,P="other";_.u9?P="chrome":_.Se?P="firefox":_.MM?P="safari":fj&&(P="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(x){W.increment(_.dO(),x,P)}).catch(function(){W.increment(_.dO(),!1,P)}):W.increment(_.dO(),!1,P)}},cHf);var bz2={},kI2=(bz2.rendering={priority:8,callback:KiG},bz2);var UEv={},X6Q=(UEv.rendering={priority:10,callback:QbU},UEv.rendered={callback:jbW},UEv),fHd={},N9G=(fHd.rendering={callback:QbU},fHd.rendered={callback:jbW},fHd);var lH6=!1,T9v={},rH9=(T9v.initialized={priority:10,callback:function(){lH6||(Cso({didPatch:function(W){W.el&&Nmm(W.el,W.props)},
didUnmount:function(W){X4d(W.el)}}),lH6=!0)}},T9v);var izO=/^\/shorts\/?$/;_.MR("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.p("kevlar_enable_mss")){_.yQA(new Itb);var R5f=!0,Fy6,Q9;R5f=R5f===void 0?!1:R5f;Fy6=Fy6===void 0?!1:Fy6;Q9=Q9===void 0?{}:Q9;var q0d=Q9.cssRowKey||"",Ly9=Q9.combinedSignature||"";!q0d&&window&&window._F_cssRowKey&&(q0d=window._F_cssRowKey,!Ly9&&window._F_combinedSignature&&(Ly9=window._F_combinedSignature));if(q0d&&typeof window._F_installCss!=="function")throw Error("vd");var WJO=Q9.loaderClass||_.ae,CQ=rQ8("base-js"),PtO,xiQ=Ri8("",CQ);PtO=_.YH(xiQ);var AR=new WJO(PtO,q0d,Ly9,R5f,Fy6),IuG=
Q9.useCors||CQ&&CQ.hasAttribute("crossorigin"),OlQ=Q9.corsMode||CQ&&CQ.getAttribute("crossorigin");IuG&&(AR.useCors_=IuG);OlQ&&(AR.corsMode_=OlQ);Q9.urlMaxLength&&(AR.urlMaxLength=Q9.urlMaxLength);Q9.fetchPriority&&(AR.fetchPriority=Q9.fetchPriority);var JoB=Qk();JoB.JSC$7955_loader_=AR;JoB.setBatchModeEnabled(!0)}
(function(){var W=document.querySelector("ytd-app");if(!W)throw Error("Fj");W=new KQ({root:W,injector:_.FY()});W.install($E2);var P={};W.install((P.initialized={priority:10,callback:vyx},P));_.p("wp_lat_b")&&(P={},W.install((P.initialized={priority:10,callback:function(){CJm()}},P)));
P={};W.install((P.rendered={priority:0,callback:uNR},P));P={};W.install((P.rendered={priority:0,callback:function(){_.Gr.addLowPriorityJob(function(){_.l_m>1&&(nyU(),oyt())},4E4)}},P));
W.install(eQf);W.install(h5f);W.install(rH9);y92||(y92=!0,Object.assign(FJ,{handleError:aM8,enableComponentStacksInErrorMessages:!1}),wBC=shm,jRd=bpx,awR=Bdm,HaC=nLm,_.p("ytwiz_enable_debug_component_props")&&NeW());W.install(NMm);W.install(DLd);W.install(hQ3);W.install(V8O);W.install(CCQ);W.install(Xym);W.install(DE3);_.p("kevlar_enable_mss_lazy_load")&&W.install(e5G);W.install($LG);W.install(aHm);if(!_.wo("IS_SHELL_LOAD")||_.p("kevlar_fetch_initial_data_promise_client")||_.p("sw_nav_preload_pbj")){var x=
_.YO(window.location.href);P=x&&x==="/watch";x=x&&x.match(izO);P?W.install(N9G):x?W.install(kI2):W.install(X6Q)}else W.install(Gdy);W.install(aBO);_.p("web_enable_prefetching_videos_on_home")&&W.install(i26);_.p("start_client_gcf")&&W.install(l34);W.install(ut4);(new QQw).increment("INSTALLED");W.install(TMG);W.install(C3M);W.transition("initialized");djS()})();
_.x3=[[["ZGtpbmQjMjhhOTJpdjllbHE=","dWUjc2s5cDNpb3hrNzQxdmFs"],"UExBQ0VNRU5UX0tJTkRfUEFVU0UjaWZsMHJvcnhtdDJpQURf"]];_.P5=["I3hqMGxocTN4cTlpeWdsb2JhbENhbGxiYWNrcw==","cm9uQWJub3JtYWxpdHlEZXRlY3RlZCN2bzVrNnptZHhsZg==","NHdjdm5rb25BZFNraXAjY3N2bDJq","c2RxbDlyYXdfcGxheWVyX3Jlc3BvbnNlI25mMDJwMXI=","ZzVpN3E5ZjFwOXdyZW5kZXJpbmdDb250ZW50IzM="];_.Ux="I3hqMGxocTN4cTlpeWdsb2JhbENhbGxiYWNrcw== cm9uQWJub3JtYWxpdHlEZXRlY3RlZCN2bzVrNnptZHhsZg== NHdjdm5rb25BZFNraXAjY3N2bDJq c2RxbDlyYXdfcGxheWVyX3Jlc3BvbnNlI25mMDJwMXI= a2lwc19rcyM5Mmpya2o3cDd0aTh3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfcw== c3ZrMjl0YWJfc2FfZWYjeWZ6MG4w ZzVpN3E5ZjFwOXdyZW5kZXJpbmdDb250ZW50IzM=".split(" ");
_._ModuleManager_initialize=function(W,P){if(!_.pU){if(!_.ja)return;_.yQA(_.ja())}_.pU.setAllModuleInfoString(W,P)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.DD=function(W,P,x,I,O){var B={};P&&(B[P]=x);I?B.errorType=I:O&&(B.errorReason=O);_.Ay(W,B);_.z$()};
_.Md=function(W){var P=_.HK();return _.WlM(P,W,1)};
_.vM({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 W=this.query;W&&(this.full||W[0]==="("||(W="("+W+")"),this._mq=window.matchMedia(W),this._add(),this.queryHandler(this._mq))},
queryHandler:function(W){this._setQueryMatches(W.matches)}});var dim;var st3;var vDB=function(){};
_.J=vDB.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J._createRipple=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
vDB=_.vM({is:"tp-yt-paper-radio-button",_template:function(){if(st3!==void 0)return st3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;dim===void 0&&(dim=document.createElement("template"));var I=dim;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return st3=W},
behaviors:[_.UIm],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(){_.Xm(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var W=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),P=Math.floor(3*W);P%2!==W%2&&P++;this.updateStyles({"--paper-radio-button-ink-size":P+"px"})}})}});var miB;var Vud;_.vM({_template:function(){if(Vud!==void 0)return Vud;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;miB===void 0&&(miB=document.createElement("template"));var I=miB;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Vud=W},
is:"tp-yt-paper-radio-group",behaviors:[_.xxZ],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(W){var P=this._valueToItem(W);if(!P||!P.hasAttribute("disabled")){if(this.selected){P=this._valueToItem(this.selected);if(this.selected==W)if(this.allowEmptySelection)W="";else{P&&(P.checked=!0);return}P&&
(P.checked=!1)}_.$l.select.apply(this,[W]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(W){this._focusPrevious();W.preventDefault();this._activateFocusedItem()},
_onDownKey:function(W){this._focusNext();W.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(W){_.PhZ._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(W){_.PhZ._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.$l._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.gK._resetTabindices.apply(this,arguments);this.items.forEach(function(W){W.removeAttribute("aria-selected")},this)}});var tuB;_.Ad("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var $7=function(){return _.b.apply(this,arguments)||this};
_.A($7,_.b);_.J=$7.prototype;_.J.computeHasPrimaryIcon=function(W){return!(!W.icon&&!W.thumbnail)};
_.J.computeHasSecondary=function(W){return!(!W.secondaryIcon&&!W.secondaryNotificationText)};
_.J.computeHideSecondaryString=function(W){return!_.p("disable_hide_empty_secondary_string")&&!W.secondaryNotificationText};
_.J.computeCompactLinkStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.J.computeHasFitHeight=function(W){return W==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.J.isActiveEndpoint=function(W){return(W=this.get("commandMetadata.webCommandMetadata.url",W))?_.YO(window.location.href)!=="/account_transfer_channel"&&_.YO(window.location.href)!=="/gaia_link"&&_.YO(window.location.href)!=="/channel_switcher"||W!=="/account"?_.YO(window.location.href)===W:!0:!1};
_.J.onTap=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.Iu(this.hostElement,[this.data.serviceEndpoint])};
$7.prototype.onTap=$7.prototype.onTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$7.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.l("design:type",Boolean)],$7.prototype,"active",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.l("design:type",String)],$7.prototype,"compactLinkStyle",void 0);
_.f([_.c({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],$7.prototype,"icon",void 0);_.f([_.c({computed:"computeIcon_(data.secondaryIcon)"}),_.l("design:type",Object)],$7.prototype,"secondaryIcon",void 0);_.f([_.c({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],$7.prototype,"hasSecondary",void 0);_.f([_.c({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],$7.prototype,"hideSecondaryString",void 0);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$7.prototype,"onTap",null);$7=_.f([_.U({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],$7);
_.X($7,"ytd-compact-link-renderer",function(){if(tuB!==void 0)return tuB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return tuB=W},{mode:1});var prm;_.Ad("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var wm=function(){var W=_.b.apply(this,arguments)||this;W.role="link";W.tabindex="0";W.actionMap=_.p("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 W};
_.A(wm,_.b);_.J=wm.prototype;_.J.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.gT()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.J.getCurrentTheme=function(){return _.Dz()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.gT()};
_.J.onThemeSelected=function(W,P){var x=W||P?W:_.Eo(),I=(x&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!x&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.jOm(_.YO(window.location.href));_.uB(0,165,W);_.uB(0,174,P);this.prefs.save();I&&_.W7(this.hostElement,"yt-dark-mode-toggled-action",[x]);_.W7(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.onTap=function(){this.data.serviceEndpoint&&_.Iu(this.hostElement,[this.data.serviceEndpoint])};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
wm.prototype.onTap=wm.prototype.onTap;wm.prototype.dataChanged=wm.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],wm.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rK),_.l("design:type",Object)],wm.prototype,"paperItemBehaviors",void 0);_.f([_.c(),_.l("design:type",Object)],wm.prototype,"data",void 0);_.f([_.c({value:function(){return _.SI()}}),
_.l("design:type",_.Pp)],wm.prototype,"prefs",void 0);_.f([_.c(),_.l("design:type",Object)],wm.prototype,"label",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],wm.prototype,"role",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],wm.prototype,"tabindex",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wm.prototype,"dataChanged",null);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wm.prototype,"onTap",null);wm=_.f([_.U({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],wm);
_.X(wm,"ytd-toggle-theme-compact-link-renderer",function(){if(prm!==void 0)return prm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return prm=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.R2=function(W){return function(P,x){var I=W||x.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(P,x,{get:function(){var O;return this.$?this.$[I]:(O=_.JE(this))==null?void 0:O.querySelector("#"+I)},
enumerable:!0,configurable:!0})}};_.F1=function(W){W=W===void 0?!1:W;_.vn.call(this);this.pubSub_=new _.Z8(W);_.nU(this,this.pubSub_)};
_.J8(_.F1,_.vn);_.F1.prototype.subscribe=function(W,P,x){return this.isDisposed()?0:this.pubSub_.subscribe(W,P,x)};
_.F1.prototype.unsubscribe=function(W,P,x){return this.isDisposed()?!1:this.pubSub_.unsubscribe(W,P,x)};
_.F1.prototype.unsubscribeByKey=function(W){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(W)};
_.F1.prototype.publish=function(W,P){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var IUv=function(){_.DD("ypcRedeemFlowStarted")},o3=function(W){_.DD("ypcRedeemFlowFailed",void 0,void 0,void 0,W)},OFG=function(W,P,x){P&&x&&(W.videos.forEach(function(I){I.videoId===P&&(I.itemId=x)}),W.recommendedVideos.forEach(function(I){I.videoId===P&&(I.itemId=x)}))};var JAv;var Bjm;/*

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
*/
_.vM({_template:function(){if(Bjm!==void 0)return Bjm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;JAv===void 0&&(JAv=document.createElement("template"));var I=JAv;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Bjm=W},
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(W,P){var x=this._resolveSrc(W);x!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",W===""||P?this._setLoading(!1):(this._resolvedSrc=x,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var W=this.$.sizedImgDiv.style,P=this.$.placeholder.style;W.backgroundSize=P.backgroundSize=this.sizing;W.backgroundPosition=P.backgroundPosition=this.sizing?this.position:"";W.backgroundRepeat=P.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(W){W=_.Pf(W,this.$.baseURIAnchor.href);W.length>=2&&W[0]==="/"&&W[1]!=="/"&&(W=(location.origin||location.protocol+"//"+location.host)+W);return W}});var neO;var Yb4;_.vM({_template:function(){if(Yb4!==void 0)return Yb4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;neO===void 0&&(neO=document.createElement("template"));var I=neO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Yb4=W},
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(W){return W?"false":"true"},
_headingChanged:function(W){var P=this.getAttribute("heading"),x=this.getAttribute("aria-label");typeof x==="string"&&x!==P||this.setAttribute("aria-label",W)},
_computeHeadingClass:function(W){return W?" over-image":""},
_computeAnimated:function(W){return W}});var yAB=new _.R("addRendererToItemSectionAction");var KMv;var SW=function(){return _.b.apply(this,arguments)||this};
_.A(SW,_.b);SW.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],SW.prototype,"rendererBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],SW.prototype,"dismissibleItemBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],SW.prototype,"rendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],SW.prototype,"data",void 0);SW=_.f([_.U({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],SW);
_.X(SW,"ytd-comment-history-entry-renderer",function(){if(KMv!==void 0)return KMv;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return KMv=W},{mode:1});var ZF2;_.Ad("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Ad("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var uJ=function(){return _.b.apply(this,arguments)||this};
_.A(uJ,_.b);_.J=uJ.prototype;_.J.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.J.onTap=function(){this.data.recordClickEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var W=this.data.navigationEndpoint;W&&_.Q(W,_.g6)&&_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}})};
_.J.readChanged=function(){var W;_.iS(this.hostElement,"unread",!((W=this.data)==null?0:W.read))};
_.J.dataChanged=function(){this.data&&_.iS(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.J.computeThumbnailSize=function(){var W;return((W=this.data)==null?0:W.highPriorityNotification)?32:48};
_.J.getEndpointURL=function(W){return W&&!_.Q(W,_.g6)?this.componentBehavior.computeHref_(W):null};
_.J.getEndpointData=function(W){return W&&!_.Q(W,_.g6)?W:null};
uJ.prototype.computeThumbnailSize=uJ.prototype.computeThumbnailSize;uJ.prototype.dataChanged=uJ.prototype.dataChanged;uJ.prototype.readChanged=uJ.prototype.readChanged;uJ.prototype.onKeyUp=uJ.prototype.onKeyUp;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],uJ.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uJ.prototype,"data",void 0);_.f([_.c({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.l("design:type",Number)],uJ.prototype,"thumbnailSize",void 0);_.f([_.I7("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],uJ.prototype,"onKeyUp",null);
_.f([_.OZ("data.read"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uJ.prototype,"readChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uJ.prototype,"dataChanged",null);_.f([_.OZ("data.highPriorityNotification"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uJ.prototype,"computeThumbnailSize",null);
uJ=_.f([_.U({is:"ytd-notification-renderer",disableElementRegistration:!0})],uJ);
_.X(uJ,"ytd-notification-renderer",function(){if(ZF2!==void 0)return ZF2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ZF2=W},{mode:1});var oe2;var d$=function(){return _.b.apply(this,arguments)||this};
_.A(d$,_.b);d$.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"}}}};
d$.prototype.computeActionButtonClass=function(W){return!W.actionButtons||W.actionButtons.length<=1?"single-button":W.description?"vertical-buttons":"horizontal-buttons"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],d$.prototype,"data",void 0);d$=_.f([_.U({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],d$);
_.X(d$,"ytd-playlist-show-metadata-renderer",function(){if(oe2!==void 0)return oe2;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return oe2=W},{mode:1});var SbB;_.Ad("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var s6=function(){return _.b.apply(this,arguments)||this};
_.A(s6,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],s6.prototype,"data",void 0);s6=_.f([_.U({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],s6);
_.X(s6,"ytd-purchase-item-renderer",function(){if(SbB!==void 0)return SbB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return SbB=W},{mode:1});var uif;var dw2={};dw2.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(W){if(W)return W.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(W){if(W==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Ad("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var v3=function(){return _.b.apply(this,arguments)||this};
_.A(v3,_.b);v3.prototype.onYtNavigate=function(W){var P=this.openPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);P&&(W.stopPropagation(),this.openPopupBehavior.openPopup(P))};
v3.prototype.onYtNavigate=v3.prototype.onYtNavigate;_.f([_.h(dw2.YtSimpleTextSectionBehavior),_.l("design:type",Object)],v3.prototype,"ytSimpleTextSectionBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],v3.prototype,"openPopupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],v3.prototype,"data",void 0);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],v3.prototype,"onYtNavigate",null);v3=_.f([_.U({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],v3);
_.X(v3,"ytd-simple-text-section-renderer",function(){if(uif!==void 0)return uif;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return uif=W},{mode:1});var sFQ;_.Ad("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var mF=function(){return _.b.apply(this,arguments)||this};
_.A(mF,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mF.prototype,"data",void 0);mF=_.f([_.U({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],mF);
_.X(mF,"ytd-unlimited-page-feature-info-renderer",function(){if(sFQ!==void 0)return sFQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return sFQ=W},{mode:1});var veL;var mwM;var V5=function(){return _.b.apply(this,arguments)||this};
_.A(V5,_.b);V5.prototype.dataChanged=function(){if(this.data){var W=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);W&&(W=_.Tm(W,screen.width),this.hostElement.style.backgroundImage="url("+W+")")}};
V5.prototype.dataChanged=V5.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],V5.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V5.prototype,"dataChanged",null);V5=_.f([_.U({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],V5);
_.X(V5,"ytd-post-redemption-section-renderer",function(){if(mwM!==void 0)return mwM;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return mwM=W},{mode:1});var V4L;var tv=function(){return _.b.apply(this,arguments)||this};
_.A(tv,_.b);tv.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],tv.prototype,"data",void 0);tv=_.f([_.U({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],tv);
_.X(tv,"ytd-ypc-post-redemption-renderer",function(){if(V4L!==void 0)return V4L;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return V4L=W},{mode:1});_.Ad("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var pp=function(){var W=_.b.apply(this,arguments)||this;W.MIN_CODE_LENGTH=12;W.MAX_CODE_LENGTH=24;return W};
_.A(pp,_.b);_.J=pp.prototype;_.J.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.J.created=function(){this.riskService=new _.JPx;this.loadPaymentThenable=_.nh8(_.$$("YPC_MB_URL"))};
_.J.ready=function(){var W=this;this.code.addEventListener("keypress",function(P){W.onCodeInputKeypress(P)})};
_.J.dataChanged=function(){var W=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(P){P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=x.value,x.type==="attributes"&&x.attributeName==="dark"&&W.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.J.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var W=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+W+")")}};
_.J.computeRedeemButton=function(W){(W=this.get("redeemButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.J.onRedeemButtonTap=function(W){W.stopPropagation();IUv();this.redeemCode()};
_.J.redeemCode=function(){var W=this;this.isLoading=!0;var P=this.riskService.init();_.Qq([P,this.loadPaymentThenable]).then(function(){var x=W.data.redeemButton.buttonRenderer.serviceEndpoint,I=_.BR7(),O=payments.business.integration.ClientTokenFactory.createClientToken(_.Q(x,_.qxl).countryCode,I);I={c:W.code.value.trim(),rd:window.btoa(I),ctk:O};x&&_.FY().resolve(_.qR).resolveCommand(x,{form:Object.assign({},I,{element:W.hostElement})})},function(){W.showGenericError();
o3("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.hQ(Error("Tl"))})};
_.J.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isLoading=!1;var P,x;this.errorMessage=(P=W.detail)==null?void 0:(x=P.data)==null?void 0:x.errorMessage;var I,O;this.postRedemptionRenderer=(I=W.detail)==null?void 0:(O=I.data)==null?void 0:O.renderer;var B,Y;if(W=(B=W.detail)==null?void 0:(Y=B.data)==null?void 0:Y.redirectEndpoint)this.isLoading=!0,_.Lf(this.hostElement,"yt-navigate",{endpoint:W});this.errorMessage?o3("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
W)&&_.DD("ypcRedeemFlowSucceeded")};
_.J.onYtServiceRequestError=function(W){W.stopPropagation();this.isLoading=!1;if(W=this.get("detail.error.message",W))this.errorMessage=_.bx(W);o3("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.J.onInvokeInstrumentManagerActionCompleted=function(W){W.stopPropagation();this.redeemCode()};
_.J.onInvokeInstrumentManagerActionError=function(W){W.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",W)){case "instrumentManagerLoadError":this.showGenericError();o3("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();o3("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.DD("ypcRedeemFlowCancelled")}};
_.J.onInput=function(){var W=this;_.De(this,"onInput",function(){var P=W.code.value.trim();W.redeemButtonDisabled=P.length<W.MIN_CODE_LENGTH||P.length>W.MAX_CODE_LENGTH},200)};
_.J.onCodeInputKeypress=function(W){W.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(IUv(),this.redeemCode())};
_.J.computeImageUrl=function(W){return W?_.Tm(W.thumbnails,600):null};
_.J.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
pp.prototype.onInvokeInstrumentManagerActionError=pp.prototype.onInvokeInstrumentManagerActionError;pp.prototype.onInvokeInstrumentManagerActionCompleted=pp.prototype.onInvokeInstrumentManagerActionCompleted;pp.prototype.onYtServiceRequestError=pp.prototype.onYtServiceRequestError;pp.prototype.onYtServiceRequestCompleted=pp.prototype.onYtServiceRequestCompleted;pp.prototype.dataChanged=pp.prototype.dataChanged;
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],pp.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],pp.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Boolean)],pp.prototype,"redeemButtonDisabled",void 0);
_.f([_.c(),_.l("design:type",Object)],pp.prototype,"errorMessage",void 0);_.f([_.c(),_.l("design:type",Object)],pp.prototype,"postRedemptionRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],pp.prototype,"observer",void 0);_.f([_.BM("#code"),_.l("design:type",HTMLInputElement)],pp.prototype,"code",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pp.prototype,"dataChanged",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pp.prototype,"onYtServiceRequestCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pp.prototype,"onYtServiceRequestError",null);
_.f([_.I7("yt-invoke-instrument-manager-action-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pp.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.f([_.I7("yt-invoke-instrument-manager-action-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pp.prototype,"onInvokeInstrumentManagerActionError",null);pp=_.f([_.U({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],pp);
_.X(pp,"ytd-redeem-code-renderer",function(){if(veL!==void 0)return veL;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return veL=W},{mode:1});var t4Q;_.Ad("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var jW=function(){var W=_.b.apply(this,arguments)||this;W.businessEmailDisplayState="HIDE_SECTION";return W};
_.A(jW,_.b);_.J=jW.prototype;_.J.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}}}}}};
_.J.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"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.h1("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.J.onYtServiceRequestCompleted=function(W){var P;if((P=W.detail.data)==null?0:P.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var x;if((x=W.detail.data)==null?0:x.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.computeEmailHref=function(W){return"mailto:"+W};
_.J.computeSafeUrl=function(W){if(W)return _.my(W)};
_.J.onBusinessEmailCaptchaSubmit=function(){var W;(W=this.data)!=null&&W.onBusinessEmailRevealClickCommand&&(W=this.JSC$19000_captchaTextarea.value)&&(W={recaptcha_response_token:W,channel_id:this.data.channelId},_.FY().resolve(_.qR).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},W,{element:this.hostElement})}))};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.N1.Object.defineProperties(jW.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 W,P;return!((W=this.data)==null||!W.primaryLinks)&&!((P=this.data)==null?0:P.links)&&this.data.primaryLinks.every(function(x){return x.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.primaryLinks)&&!((P=this.data)==null?0:P.links)&&!this.shouldShowNewLinks}}});
jW.prototype.onYtServiceRequestCompleted=jW.prototype.onYtServiceRequestCompleted;jW.prototype.dataChanged=jW.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],jW.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.BM("#g-recaptcha-response"),_.l("design:type",HTMLTextAreaElement)],jW.prototype,"JSC$19000_captchaTextarea",void 0);_.f([_.c(),_.l("design:type",Object)],jW.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],jW.prototype,"businessEmailDisplayState",void 0);_.f([_.c(),_.l("design:type",String)],jW.prototype,"businessEmail",void 0);_.f([_.c(),_.l("design:type",String)],jW.prototype,"businessEmailErrorMessage",void 0);
_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jW.prototype,"hideDetailsSection",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jW.prototype,"dataChanged",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jW.prototype,"shouldShowNewLinks",null);_.f([_.H("data","shouldShowLinks"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jW.prototype,"shouldShowLegacyLinks",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],jW.prototype,"onYtServiceRequestCompleted",null);jW=_.f([_.U({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],jW);
_.X(jW,"ytd-channel-about-metadata-renderer",function(){if(t4Q!==void 0)return t4Q;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return t4Q=W},{mode:1});var pt4;_.Ad("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Q5=function(){return _.b.apply(this,arguments)||this};
_.A(Q5,_.b);Q5.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Q5.prototype,"data",void 0);Q5=_.f([_.U({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Q5);
_.X(Q5,"ytd-channel-featured-content-renderer",function(){if(pt4!==void 0)return pt4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return pt4=W},{mode:1});var jFQ;_.Ad("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Cp=function(){var W=_.b.apply(this,arguments)||this;W.roundContainer=!0;W.amsterdamEnabled=_.p("enable_desktop_amsterdam_info_panels");return W};
_.A(Cp,_.b);_.J=Cp.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.dataChanged=function(){this.imageWidth=this.imageHeight=24;var W=this.data;W.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!W.style&&W.image&&W.image.thumbnails.length&&(W=W.image.thumbnails[0],this.imageWidth=W.width||0,this.imageHeight=W.height||0)};
_.J.computeSource=function(W){return W.secondarySource?_.kz(W.secondarySource):_.kz(W.source)};
_.J.computeClarifyStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.J.isLargeStyle=function(W){return W==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.J.computeBackgroundStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.J.computeHasActionButton=function(W){return!!W.actionButton};
_.J.computeHasBottomSection=function(W){return!!W.ctaHasBottomSection};
_.J.computeIsSourceMissing=function(W){return W.ctaHasBottomSection===!1?!0:W&&this.computeSource(W)?!1:!0};
_.J.computeSecondaryEndpoint=function(W){return W.secondaryEndpoint||W.endpoint};
Cp.prototype.dataChanged=Cp.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Cp.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],Cp.prototype,"imageWidth",void 0);_.f([_.c(),_.l("design:type",Number)],Cp.prototype,"imageHeight",void 0);
_.f([_.c({computed:"computeSecondaryEndpoint(data)"}),_.l("design:type",Object)],Cp.prototype,"secondaryEndpoint",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.l("design:type",Boolean)],Cp.prototype,"hasActionButton",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.l("design:type",Boolean)],Cp.prototype,"hasBottomSection",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.l("design:type",Boolean)],Cp.prototype,"missingSource",void 0);_.f([_.c({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],Cp.prototype,"icon",void 0);_.f([_.c({computed:"computeIcon_(data.secondaryIcon)"}),_.l("design:type",String)],Cp.prototype,"secondaryIcon",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.l("design:type",String)],Cp.prototype,"clarifyStyle",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.l("design:type",String)],Cp.prototype,"backgroundStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Cp.prototype,"roundContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Cp.prototype,"amsterdamEnabled",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cp.prototype,"dataChanged",null);
Cp=_.f([_.U({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Cp);
_.X(Cp,"ytd-clarification-renderer",function(){if(jFQ!==void 0)return jFQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return jFQ=W},{mode:1});var QFv;var C1y;var Av=function(){var W=_.b.apply(this,arguments)||this;W.amsterdamEnabled=_.p("enable_desktop_amsterdam_info_panels");return W};
_.A(Av,_.b);_.J=Av.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.J.computeIcon=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.J.computeUseContacts=function(W){return!!W.contacts&&W.contacts.length>0};
_.J.computePhoneContact=function(W){var P,x;return(P=W.contacts)==null?void 0:(x=P.find(function(I){var O;return(I==null?void 0:(O=I.icon)==null?void 0:O.iconType)==="PHONE"}))==null?void 0:x.actionText};
_.J.computeSmsContact=function(W){var P,x;return(P=W.contacts)==null?void 0:(x=P.find(function(I){var O;return(I==null?void 0:(O=I.icon)==null?void 0:O.iconType)==="SMS"}))==null?void 0:x.actionText};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Av.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Av.prototype,"amsterdamEnabled",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.l("design:type",Boolean)],Av.prototype,"useContacts",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.l("design:type",String)],Av.prototype,"phoneContact",void 0);Av=_.f([_.U({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Av);
_.X(Av,"ytd-single-action-emergency-support-renderer",function(){if(C1y!==void 0)return C1y;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return C1y=W},{mode:1});_.Ad("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var zJ=function(){var W=_.b.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.p("enable_desktop_amsterdam_info_panels");return W};
_.A(zJ,_.b);zJ.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"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],zJ.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],zJ.prototype,"roundedContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],zJ.prototype,"amsterdamEnabled",void 0);
zJ=_.f([_.U({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],zJ);
_.X(zJ,"ytd-emergency-onebox-renderer",function(){if(QFv!==void 0)return QFv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return QFv=W},{mode:1});var AAO;_.Ad("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var GJ=function(){return _.b.apply(this,arguments)||this};
_.A(GJ,_.b);GJ.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],GJ.prototype,"data",void 0);GJ=_.f([_.U({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],GJ);
_.X(GJ,"ytd-exploratory-results-renderer",function(){if(AAO!==void 0)return AAO;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return AAO=W},{mode:1});var zn2;_.Ad("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var E6=function(){var W=_.b.apply(this,arguments)||this;W.messageData=null;return W};
_.A(E6,_.b);_.J=E6.prototype;_.J.onServiceRequestCompleted=function(W,P){W=P.actions||[];P=0;for(var x=W.length;P<x;P++){var I=W[P],O=void 0,B=void 0;if((O=_.Q(I,_.tc))==null?0:(B=O.item)==null?0:B.messageRenderer)this.messageData=_.Q(I,_.tc).item.messageRenderer}};
_.J.dataChanged=function(){var W=this.data;this.hostElement.hidden=!1;_.iS(this.hostElement,"is-channel",W&&!W.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.J.computeThumbnailWidth=function(W){return W?126:56};
_.J.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.J.onSubmitTap=function(){var W=this.data,P=this.selectedResponseIndex;W!==void 0&&P!==void 0&&(W=W.responses[P],W.responseData&&_.FY().resolve(_.qR).resolveCommand(W.responseData,{form:{element:this.hostElement}}))};
_.J.onDismissTap=function(){this.hostElement.hidden=!0;var W=this.data;W!==void 0&&W.dismissalEndpoint&&_.FY().resolve(_.qR).resolveCommand(W.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
E6.prototype.onSelectedResponseIndexChange=E6.prototype.onSelectedResponseIndexChange;E6.prototype.dataChanged=E6.prototype.dataChanged;E6.prototype.onServiceRequestCompleted=E6.prototype.onServiceRequestCompleted;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],E6.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],E6.prototype,"messageData",void 0);
_.f([_.c(),_.l("design:type",Number)],E6.prototype,"selectedResponseIndex",void 0);_.f([_.BM("#submit-button"),_.l("design:type",HTMLButtonElement)],E6.prototype,"submitButton",void 0);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],E6.prototype,"onServiceRequestCompleted",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],E6.prototype,"dataChanged",null);
_.f([_.OZ("selectedResponseIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],E6.prototype,"onSelectedResponseIndexChange",null);E6=_.f([_.U({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],E6);
_.X(E6,"ytd-feedback-elicitation-single-question-renderer",function(){if(zn2!==void 0)return zn2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zn2=W},{mode:1});var GtL;var g$=function(){return _.b.apply(this,arguments)||this};
_.A(g$,_.b);g$.prototype.computeThumbnailWidth=function(W){return W?602:428};
g$.prototype.updateWideFromBinding=function(W){this.wide=W.detail.value};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],g$.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],g$.prototype,"wide",void 0);g$=_.f([_.U({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],g$);
_.X(g$,"ytd-newspaper-hero-video-renderer",function(){if(GtL!==void 0)return GtL;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return GtL=W},{mode:1});var Ee9;var DM=function(){return _.b.apply(this,arguments)||this};
_.A(DM,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],DM.prototype,"rendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],DM.prototype,"data",void 0);DM=_.f([_.U({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],DM);
_.X(DM,"ytd-newspaper-mini-video-renderer",function(){if(Ee9!==void 0)return Ee9;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ee9=W},{mode:1});var ge6;_.Ad("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Mj=function(){return _.b.apply(this,arguments)||this};
_.A(Mj,_.b);Mj.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"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Mj.prototype,"data",void 0);Mj=_.f([_.U({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Mj);
_.X(Mj,"ytd-newspaper-renderer",function(){if(ge6!==void 0)return ge6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ge6=W},{mode:1});var Dwm;_.Ad("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var $v=function(){var W=_.b.apply(this,arguments)||this;W.isSegment=!1;W.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};W.nextContinuation={continuationType:"playlistVideoListContinuation"};return W};
_.A($v,_.b);_.J=$v.prototype;_.J.attached=function(){_.FY();var W;(W=_.FY().resolve(_.Rl(_.bo)))!=null&&(W.playlistVideoListElement=this.hostElement)};
_.J.detached=function(){var W;(W=_.FY().resolve(_.Rl(_.bo)))!=null&&(W.playlistVideoListElement=void 0);W=_.FY().resolve(_.Rl(_.rG));_.p("web_enable_voting_animation")&&W&&(W.parentElem=void 0,W.videos=[],W.continuationsPresent=!1,W.showRefreshPill=!1)};
_.J.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"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.dataChanged=function(){var W=_.FY().resolve(_.Rl(_.rG));if(_.p("web_enable_voting_animation")&&this.data&&W){var P=_.g(this.hostElement).querySelector("#contents");P&&(W.parentElem=P);W.addVideos(this.data.contents)}_.SRM(this.ytReorderableBehavior)};
_.J.onRendererstamperFinished=function(){this.canReorder&&_.uXA(this.ytReorderableBehavior,_.g(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.J.onPlaylistReloading=function(){this.isReloading=!0};
_.J.onUpdateSetVideoId=function(W){if(W.detail&&this.data&&this.data.contents){var P=W.detail;W=this.data.contents.findIndex(function(O){var B;return((B=O.playlistVideoRenderer)==null?void 0:B.videoId)===P.videoId});
if(!(W<0)&&P.setVideoId&&(this.set("data.contents."+W+".playlistVideoRenderer.setVideoId",P.setVideoId),_.p("web_enable_voting_animation"))){var x;if(W=_.Q((x=this.data.contents[W].playlistVideoRenderer)==null?void 0:x.engagementBar,_.MRm)){var I;(I=W.actions)==null||I.forEach(function(O){if(O=_.Q(O,_.$9G))O.itemId=P.setVideoId})}(x=_.FY().resolve(_.Rl(_.rG)))&&OFG(x,P.videoId,P.setVideoId)}}};
_.J.computeContentsClass=function(W){return W?"reloading":""};
_.J.computeIsSortable=function(W,P){return W&&P>0&&!this.isSegment&&!_.p("shorts_in_playlists_web")};
_.J.computeIsEditable=function(W){return W};
_.J.computeCanReorder=function(W){return W};
_.J.handlePlaylistRemoveVideosAction=function(W){if(this.get("playlistRemoveVideosAction.setVideoIds",W)&&this.data&&this.data.contents){W=_.Q(W,_.o_l).setVideoIds;for(var P=this.data.contents.length-1;P>=0;){var x=this.data.contents[P].playlistVideoRenderer;x&&x.setVideoId&&W.includes(x.setVideoId)&&this.splice("data.contents",P,1);P--}_.W7(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.J.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".playlistVideoRenderer.index",_.bx(String(W+1)))};
_.J.handleDrop=function(W){W=W.currDragItem;var P=_.fm(W.parentNode.childNodes,W),x=this.data.contents.splice(Number(_.kz(W.data.index))-1,1)[0];this.data.contents.splice(P,0,x);P=P?this.get("contents."+(P-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();W=this.buildReorderServiceEndpoint(W.data.setVideoId,P);this.ytComponentBehavior.resolveCommand(W)};
_.J.buildReorderServiceEndpoint=function(W,P){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",W),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",P),this.data.onReorderEndpoint):null};
_.J.handleUpdatePlaylistAction=function(W){var P;(W=_.Q((P=_.Q(W,_.SF3))==null?void 0:P.updatedRenderer,_.EBW))&&this.canReorder!==W.canReorder&&this.set("data.canReorder",W.canReorder);W&&W.contents&&(this.set("data.contents",W.contents),this.isReloading=!1);W&&W.continuations&&this.set("data.continuations",W.continuations)};
_.J.handleAddRendererToItemSectionAction=function(W){var P,x=(P=_.Q(W,yAB))==null?void 0:P.renderer,I;x&&((I=_.Q(W,yAB))==null?void 0:I.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,x),W=_.FY().resolve(_.Rl(_.rG)),_.p("web_enable_voting_animation")&&W&&(x&&(P=_.D9U(x))&&W.recommendedVideos.push({itemId:P,videoId:_.wh8(x),voteCount:_.h7W(x),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.J.isVotingEnabledOnPlaylist=function(W){if(!W)return!1;W=_.n(W);for(W=W.next();!W.done;W=W.next()){var P=void 0;return!!_.Q((P=W.value.playlistVideoRenderer)==null?void 0:P.engagementBar,_.MRm)}return!1};
_.J.onAppendContinuationItemsActionFinished=function(){var W;this.isVotingEnabledOnPlaylist((W=this.data)==null?void 0:W.contents)&&(this.updateIndices(),W=_.FY().resolve(_.Rl(_.rG)),_.p("web_enable_voting_animation")&&W&&this.data&&W.addVideos(this.data.contents))};
_.J.updateVideoData=function(W){if(W.detail&&this.data&&this.data.contents){var P=W.detail;W=P.toIdx;var x=P.itemId,I=P.newVoteCount,O=P.voteStatus;P=P.hideItem;var B,Y,K=(B=this.data)==null?void 0:(Y=B.contents)==null?void 0:Y.findIndex(function(m){return _.D9U(m)===x});
if(!(K<0)){B=this.data.contents[K];var Z;if((Z=B.playlistVideoRenderer)==null?0:Z.voteCount)B.playlistVideoRenderer.voteCount=I;var d;if(Z=_.Q((d=B.playlistVideoRenderer)==null?void 0:d.engagementBar,_.MRm)){var v;(v=Z.actions)==null||v.forEach(function(m){(m=_.Q(m,_.$9G))&&m.initialState&&(m.initialState.votes=I,m.initialState.status=O)})}this.data.contents.splice(K,1);
P||this.data.contents.splice(W,0,B);this.updateIndices()}}};
$v.prototype.updateVideoData=$v.prototype.updateVideoData;$v.prototype.onAppendContinuationItemsActionFinished=$v.prototype.onAppendContinuationItemsActionFinished;$v.prototype.onUpdateSetVideoId=$v.prototype.onUpdateSetVideoId;$v.prototype.onPlaylistReloading=$v.prototype.onPlaylistReloading;$v.prototype.onRendererstamperFinished=$v.prototype.onRendererstamperFinished;$v.prototype.dataChanged=$v.prototype.dataChanged;
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],$v.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.M2.YtNextContinuationBehavior),_.l("design:type",Object)],$v.prototype,"ytNextContinuationBehavior",void 0);
_.f([_.h(_.d8w),_.l("design:type",Object)],$v.prototype,"ytReorderableBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],$v.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],$v.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$v.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],$v.prototype,"isReloading",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$v.prototype,"isSegment",void 0);_.f([_.c({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.l("design:type",Boolean)],$v.prototype,"isSortable",void 0);_.f([_.c({computed:"computeIsEditable(data.isEditable)"}),_.l("design:type",Boolean)],$v.prototype,"isEditable",void 0);_.f([_.c({computed:"computeCanReorder(data.canReorder)"}),_.l("design:type",Boolean)],$v.prototype,"canReorder",void 0);
_.f([_.c({value:101}),_.l("design:type",Number)],$v.prototype,"scrollMargin",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$v.prototype,"dataChanged",null);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$v.prototype,"onRendererstamperFinished",null);
_.f([_.I7("yt-playlist-reloading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$v.prototype,"onPlaylistReloading",null);_.f([_.I7("yt-update-set-video-id"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$v.prototype,"onUpdateSetVideoId",null);
_.f([_.I7("yt-append-continuation-items-action-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$v.prototype,"onAppendContinuationItemsActionFinished",null);_.f([_.I7("yt-update-video-data-voting-animation"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$v.prototype,"updateVideoData",null);$v=_.f([_.U({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],$v);
_.X($v,"ytd-playlist-video-list-renderer",function(){if(Dwm!==void 0)return Dwm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Dwm=W},{mode:_.F4("kevlar_poly_si_batch_j047")?1:2});var M4O;var w$=function(){return _.b.apply(this,arguments)||this};
_.A(w$,_.b);w$.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"}}}}};
w$.prototype.onTextWrapperTap=function(W){var P=this.data&&this.data.navigationEndpoint;P&&!_.Nx(_.c5(W),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Lf(this.hostElement,"yt-navigate",{endpoint:P})};
w$.prototype.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");W&&W.commandMetadata&&_.Q(W.commandMetadata,_.zN)&&_.Q(W.commandMetadata,_.zN).fireAutomatically&&_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}})};
w$.prototype.dataChanged=w$.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.eZ),_.l("design:type",Object)],w$.prototype,"ytdLockupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],w$.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],w$.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],w$.prototype,"biggerThumbsStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],w$.prototype,"leftAligned",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w$.prototype,"dataChanged",null);w$=_.f([_.U({disableElementRegistration:!0,is:"ytd-movie-renderer"})],w$);
_.X(w$,"ytd-movie-renderer",function(){if(M4O!==void 0)return M4O;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return M4O=W},{mode:1});var $wf;var hv=function(){var W=_.b.apply(this,arguments)||this;W.rounded=!0;W.pageAttachedTo=void 0;W.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return W};
_.A(hv,_.b);hv.prototype.attached=function(){this.pageAttachedTo=_.FY().resolve(_.rL).getCurrentPage();_.Lf(this.hostElement,"yt-player-attached",this.player)};
hv.prototype.detached=function(){var W;if((W=this.pageAttachedTo)==null?0:W.hostElement)_.Lf(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
hv.prototype.dataChanged=function(){var W;if((W=this.data)==null?0:W.videoId)W={video_id:this.data.videoId,autoplay:!0},!_.p("miniplayer_stop_channel_video_autoplay_killswitch")&&_.FY().resolve(_.kc).isMiniplayerActive()&&(W.pause_at_start=!0,W.autoplay=!1),this.player.loadVideoWithPlayerVars(W)};
hv.prototype.handleSignalActionPausePlayer=function(){_.F_().pause()};
hv.prototype.dataChanged=hv.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],hv.prototype,"data",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],hv.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],hv.prototype,"rounded",void 0);_.f([_.BM("#player"),_.l("design:type",Object)],hv.prototype,"player",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hv.prototype,"dataChanged",null);hv=_.f([_.U({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],hv);
_.X(hv,"ytd-channel-video-player-renderer",function(){if($wf!==void 0)return $wf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return $wf=W},{mode:1});var wtd;var hnm;var HFy;var H3=function(){var W=_.b.apply(this,arguments)||this;W.playing=!1;W.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.nM(W);W.active=!1;return W};
_.A(H3,_.b);_.J=H3.prototype;_.J.detached=function(){this.stop()};
_.J.play=function(){var W=this,P,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return W.active=!0,P=W.get("data.inlinePlaybackEndpoint.watchEndpoint"),x=P.videoId||W.data.videoId,I=P.startTimeSeconds||0,O=P.playerParams||null,_.p("kevlar_player_update_killswitch")?_.S(Y,W.playerEl.update({args:{video_id:x,startSeconds:I,player_params:O}}),2):(W.playerEl.loadVideoWithPlayerVars({video_id:x,startSeconds:I,player_params:O,autoplay:!0}),Y.jumpTo(2));if(Y.nextAddress!=4)return _.S(Y,W.playerEl.getPlayerPromise(),
4);B=Y.yieldResult;B.unloadModule("annotations_module");B.addEventListener("onStateChange",function(K){W.onPlayerStateChange(K)});
_.Kl(Y)})};
_.J.onPlayerStateChange=function(W){if(this.active)switch(this.playing=W===1,W){case 1:_.Lf(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Lf(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.J.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.J.resize=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,W.playerEl.getPlayerPromise(),2);P=x.yieldResult;P.setSize(NaN,NaN);_.Kl(x)})};
_.f([_.c(),_.l("design:type",Object)],H3.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],H3.prototype,"playing",void 0);_.f([_.c(),_.l("design:type",Object)],H3.prototype,"playerId",void 0);_.f([_.BM("#player"),_.l("design:type",Object)],H3.prototype,"playerEl",void 0);H3=_.f([_.U({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],H3);
_.X(H3,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(HFy!==void 0)return HFy;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return HFy=W},{mode:1});var en9;var cAm;var eW=function(){var W=_.b.apply(this,arguments)||this;W.width=0;return W};
_.A(eW,_.b);_.J=eW.prototype;_.J.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.WM(this,this.onEnded));this.mp4El.addEventListener("error",_.WM(this,this.onError))};
_.J.detached=function(){this.videoEl.removeEventListener("ended",_.WM(this,this.onEnded));this.mp4El.removeEventListener("error",_.WM(this,this.onError))};
_.J.play=function(){var W=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var P=this.videoEl.play();P?P.then(function(){W.handleVideoStartPlaying()}).catch(function(){_.Lf(W.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Lf(this.hostElement,"yt-video-thumbnail-not-playing")};
_.J.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.J.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.J.dataChanged=function(){var W;if((W=this.data)==null?0:W.thumbnailPlaceholder)W=_.Tm(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+W+")";this.stop();this.autoplay&&this.play()};
_.J.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.J.onEnded=function(){this.stop();_.Lf(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.J.onError=function(){_.Lf(this.hostElement,"yt-video-thumbnail-error")};
_.J.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.J.getVideoThumbnail=function(W){if(W&&W.length)return W[0]};
eW.prototype.dataChanged=eW.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],eW.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],eW.prototype,"animatePlaceholderOnEntrance",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],eW.prototype,"autoplay",void 0);_.f([_.c({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.l("design:type",Object)],eW.prototype,"videoThumbnail",void 0);
_.f([_.c(),_.l("design:type",Boolean)],eW.prototype,"loop",void 0);_.f([_.c(),_.l("design:type",Boolean)],eW.prototype,"isVideoPlaying",void 0);_.f([_.c(),_.l("design:type",Object)],eW.prototype,"width",void 0);_.f([_.BM("#mp4"),_.l("design:type",HTMLElement)],eW.prototype,"mp4El",void 0);_.f([_.BM("#placeholder"),_.l("design:type",HTMLElement)],eW.prototype,"placeholderEl",void 0);_.f([_.BM("#video"),_.l("design:type",HTMLVideoElement)],eW.prototype,"videoEl",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eW.prototype,"dataChanged",null);eW=_.f([_.jd({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],eW);
_.X(eW,"yt-video-as-thumbnail-details",function(){if(cAm===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;en9===void 0&&(en9=document.createElement("template"));var I=en9;x.call(P,I.content.cloneNode(!0),W.content.firstChild);cAm=W}W=cAm;return W},{mode:2});var c3=function(){var W=_.b.apply(this,arguments)||this;W.disableGridStateAware=!1;W.animationEnabled=_.p("enable_web_ketchup_hero_animation");W.transitioningOut=!1;W.narrow=!1;W.narrower=!1;W.isCarouselInFeed=!1;W.videoTimeoutJobId=0;W.panelTimeoutJobId=0;W.panelTimeoutJobStartMs=0;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.A(c3,_.b);_.J=c3.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.J.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.J.attached=function(){this.onWindowResized()};
_.J.detached=function(){this.clearTimeouts()};
_.J.onWindowResized=function(){this.updateSize()};
_.J.computePanelLayout=function(W){return W&&W.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.playVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.play();var P;this.player&&((P=this.data)==null?0:P.inlinePlaybackRenderer)&&this.player.play()};
_.J.stopVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.stop();var P;this.player&&((P=this.data)==null?0:P.inlinePlaybackRenderer)&&this.player.stop()};
_.J.transitionOut=function(){var W=this;this.transitioningOut=!0;return new Promise(function(P){var x=function(){_.g(W.hostElement).querySelector("#action-button").removeEventListener("animationend",x);_.Gr.cancelJob(I);P();W.transitioningOut=!1};
var I=_.VE(_.Gr,x,1E3);_.g(W.hostElement).querySelector("#action-button").addEventListener("animationend",x);W.player&&(W.player.playing=!1)})};
_.J.computeMetadataOrder=function(W){return W&&W.metadataOrder&&W.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?W.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.J.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.J.computeAvatarSize=function(W){return W&&W.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.J.onContentClick=function(W){if(!_.Nx(_.c5(W),this.hostElement,["A".toString(),"BUTTON".toString()])){var P;if((P=this.data)==null?0:P.navigationEndpoint){var x;this.componentBehavior.resolveCommand((x=this.data)==null?void 0:x.navigationEndpoint)}}};
_.J.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.J.setBackgroundImage=function(W){if(W=this.getBackgroundImageUrl(W))_.g(this.hostElement).querySelector("#hero").style.backgroundImage="url("+W+")"};
_.J.setScrimLayer=function(W){var P=this.getScrimLayerColorStops(W);W=((W==null?void 0:W.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(W=180);_.$$("HTML_DIR")==="rtl"&&(W=-W);P&&(_.g(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+W+"deg, "+P+")")};
_.J.isNarrower=function(){return this.hostElement.clientWidth<c3.NARROW_VERSION_SIZE};
_.J.getScrimLayerColorStops=function(){var W,P=(W=this.data)==null?void 0:W.scrimColorValues;if(!P)return null;if(P.length===1)return W=_.Qy(P[0]),W+" 0%, "+W+" 100%";if(P.length===3){var x=[0,72,98];return P.map(function(I,O){return _.Qy(I)+" "+x[O]+"%"}).join(",")}return null};
_.J.getBackgroundImageUrl=function(W){return W&&W.largeFormFactorBackgroundThumbnail?_.Tm((W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.J.onPlaying=function(){this.startVideoTimeout()};
_.J.onEnded=function(){this.rotate()};
_.J.startPanelTimeout=function(){var W=this;if(!this.panelTimeoutJobId){var P=this.get("data.minPanelDisplayDurationMs");P&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.VE(_.Gr,function(){W.rotate()},P))}};
_.J.startVideoTimeout=function(){var W=this;if(!this.videoTimeoutJobId){_.Gr.cancelJob(this.panelTimeoutJobId);var P=Date.now()-this.panelTimeoutJobStartMs;P=Math.max(0,this.get("data.minPanelDisplayDurationMs")-P);P=Math.max(this.get("data.minVideoPlayDurationMs")||0,P);this.videoTimeoutJobId=_.VE(_.Gr,function(){W.rotate()},P)}};
_.J.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Gr.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Gr.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.J.rotate=function(){this.clearTimeouts();_.Lf(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.N1.Object.defineProperties(c3.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.g(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.g(this.hostElement).querySelector("#video")}}});
_.N1.Object.defineProperties(c3,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
c3.prototype.onEnded=c3.prototype.onEnded;c3.prototype.onPlaying=c3.prototype.onPlaying;c3.prototype.dataChanged=c3.prototype.dataChanged;_.f([_.h(_.MW),_.l("design:type",Object)],c3.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],c3.prototype,"componentBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],c3.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.h(_.ork),_.l("design:type",Object)],c3.prototype,"ytBooleanLogicBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],c3.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c3.prototype,"disableGridStateAware",void 0);_.f([_.c(),_.l("design:type",Object)],c3.prototype,"data",void 0);_.f([_.c({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.l("design:type",String)],c3.prototype,"panelLayout",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c3.prototype,"animationEnabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c3.prototype,"transitioningOut",void 0);
_.f([_.c({computed:"computeMetadataOrder(data)"}),_.l("design:type",Boolean)],c3.prototype,"metadataOrder",void 0);_.f([_.c({computed:"computeByline(data)"}),_.l("design:type",Object)],c3.prototype,"byline",void 0);_.f([_.c({computed:"computeAvatarSize(data)"}),_.l("design:type",Number)],c3.prototype,"avatarSize",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c3.prototype,"narrow",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c3.prototype,"narrower",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c3.prototype,"layoutStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c3.prototype,"isCarouselInFeed",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c3.prototype,"dataChanged",null);_.f([_.I7("yt-default-promo-panel-renderer-playing"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c3.prototype,"onPlaying",null);
_.f([_.I7("yt-default-promo-panel-renderer-ended"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c3.prototype,"onEnded",null);c3=_.f([_.U({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],c3);
_.X(c3,"ytd-default-promo-panel-renderer",function(){if(hnm!==void 0)return hnm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return hnm=W},{mode:1});_.Ad("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var a3=function(){var W=_.b.apply(this,arguments)||this;W.narrower=!1;W.dotMenuVisible=!1;W.paginationThumbnailsVisible=!1;W.active=!0;W.disableGridStateAware=!1;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.A(a3,_.b);_.J=a3.prototype;_.J.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]]"}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.WM(this,this.onPageTypeChange));this.currentPageSubtype=_.Y3(location.pathname);this.onWindowResized()};
_.J.detached=function(){this.jobId&&_.Gr.cancelJob(this.jobId);this.updateSizeJobId&&_.Gr.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.WM(this,this.onPageTypeChange))};
_.J.onPageTypeChange=function(W){this.active=W.detail.newPageSubtype===this.currentPageSubtype};
_.J.onWindowResized=function(){this.updateSize()};
_.J.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.J.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.J.setCarouselItem=function(W){W>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Gr.cancelJob(this.jobId);var P=this.getCurrentPanelElement();P&&P.stopVideo();this.currentItemIndex=W%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(P||(P=this.getCurrentPanelElement()),P.playVideo()):this.startRotationJob()};
_.J.scrollThumbnails=function(W){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var P=this.getCurrentPaginationElement();if(P){var x=_.g(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?x.style.transform="translateX(0)":(P=P.offsetWidth+8,x.style.transform="translateX(-"+P*(W-Math.ceil(Math.floor(this.overlay.offsetWidth/P)/2)+1)+"px)")}}};
_.J.onDataChanged=function(){var W=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.GS(_.Gr,function(){W.getCurrentPanelElement().updateSize();W.updateSize()}))};
_.J.getCurrentPanelElement=function(){return _.g(_.g(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.J.getCurrentPaginationElement=function(){return _.g(_.g(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.J.getNavigationClass=function(W,P){return W===P?"selected":""};
_.J.getNavigationDurationStyle=function(W){return"animation-duration:"+(this.get("data.carouselItems."+W+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.J.onNavigationTap=function(W){var P=this,x=W.model.index;x!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){P.setCarouselItem(x)}),this.autorotateActive=!1)};
_.J.onVideoThumbnailEnded=function(){var W=this;if(this.shouldRotate()){var P=this.getCurrentPaginationElement();P&&(P.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){P.classList.remove("finished");W.setNextCarouselItem()}))}};
_.J.onVideoThumbnailError=function(){this.startRotationJob()};
_.J.onVideoNotPlaying=function(){this.startRotationJob()};
_.J.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.J.startRotationJob=function(){var W=this;_.Gr.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Gr.addLowPriorityJob(function(){W.getCurrentPanelElement().transitionOut().then(function(){W.setNextCarouselItem()})},this.rotationTimeout))};
_.J.computeDotMenuVisible=function(W,P){return!!W&&!!W.carouselItems&&W.carouselItems.length>1&&!W.paginationThumbnails||!!P};
_.J.computePaginationThumbnailsVisible=function(W,P){var x,I;return((I=W==null?void 0:(x=W.paginationThumbnails)==null?void 0:x.length)!=null?I:0)>1&&!P};
_.J.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.computePaginatorAlignment=function(W){return(W==null?void 0:W.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.J.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.J.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.J.isNarrower=function(W){return(W!=null?W:0)<c3.NARROW_VERSION_SIZE};
a3.prototype.activeChanged=a3.prototype.activeChanged;a3.prototype.onVideoNotPlaying=a3.prototype.onVideoNotPlaying;a3.prototype.onVideoThumbnailError=a3.prototype.onVideoThumbnailError;a3.prototype.onVideoThumbnailEnded=a3.prototype.onVideoThumbnailEnded;a3.prototype.onDataChanged=a3.prototype.onDataChanged;_.f([_.h(_.MW),_.l("design:type",Object)],a3.prototype,"ytdGridStateAwareBehavior",void 0);
_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],a3.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],a3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],a3.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],a3.prototype,"currentItem",void 0);
_.f([_.c(),_.l("design:type",Number)],a3.prototype,"currentItemIndex",void 0);_.f([_.c(),_.l("design:type",Number)],a3.prototype,"rotationTimeout",void 0);_.f([_.c(),_.l("design:type",Number)],a3.prototype,"loopCount",void 0);_.f([_.c({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.l("design:type",String)],a3.prototype,"paginatorAlignment",void 0);_.f([_.c(),_.l("design:type",Number)],a3.prototype,"jobId",void 0);
_.f([_.c(),_.l("design:type",Number)],a3.prototype,"updateSizeJobId",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],a3.prototype,"isCarouselInFeed",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],a3.prototype,"narrower",void 0);_.f([_.c({computed:"computeDotMenuVisible(data, narrower)"}),_.l("design:type",Object)],a3.prototype,"dotMenuVisible",void 0);
_.f([_.c({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.l("design:type",Object)],a3.prototype,"paginationThumbnailsVisible",void 0);_.f([_.c({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.l("design:type",String)],a3.prototype,"layoutType",void 0);_.f([_.c({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],a3.prototype,"autorotateActive",void 0);_.f([_.c(),_.l("design:type",Object)],a3.prototype,"active",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],a3.prototype,"disableGridStateAware",void 0);_.f([_.BM("#overlay"),_.l("design:type",HTMLElement)],a3.prototype,"overlay",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a3.prototype,"onDataChanged",null);
_.f([_.I7("yt-video-thumbnail-ended"),_.I7("yt-default-promo-panel-renderer-rotate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a3.prototype,"onVideoThumbnailEnded",null);_.f([_.I7("yt-video-thumbnail-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a3.prototype,"onVideoThumbnailError",null);
_.f([_.I7("yt-video-thumbnail-not-playing"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a3.prototype,"onVideoNotPlaying",null);_.f([_.K_("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a3.prototype,"activeChanged",null);a3=_.f([_.U({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],a3);
_.X(a3,"ytd-carousel-item-renderer",function(){if(wtd!==void 0)return wtd;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return wtd=W},{mode:2});var aUQ;var bFf;var ktm;var Uwd;var bJ=function(){var W=_.b.apply(this,arguments)||this;W.originalQuery=null;W.originalEndpoint=null;return W};
_.A(bJ,_.b);bJ.prototype.computeShowOriginalQueryWithoutEndpoint_=function(W,P){return!(!W||P)};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],bJ.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bJ.prototype,"correctedText",void 0);_.f([_.c(),_.l("design:type",Object)],bJ.prototype,"correctedQuery",void 0);_.f([_.c(),_.l("design:type",Object)],bJ.prototype,"correctedEndpoint",void 0);_.f([_.c(),_.l("design:type",Object)],bJ.prototype,"originalText",void 0);_.f([_.c(),_.l("design:type",Object)],bJ.prototype,"originalQuery",void 0);
_.f([_.c(),_.l("design:type",Object)],bJ.prototype,"originalEndpoint",void 0);_.f([_.c({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.l("design:type",Boolean)],bJ.prototype,"showOriginalQueryWithoutEndpoint",void 0);bJ=_.f([_.jd({is:"yt-search-query-correction",disableElementRegistration:!0})],bJ);
_.X(bJ,"yt-search-query-correction",function(){if(Uwd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;ktm===void 0&&(ktm=document.createElement("template"));var I=ktm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Uwd=W}W=Uwd;return W},{mode:2});_.Ad("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var kv=function(){return _.b.apply(this,arguments)||this};
_.A(kv,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kv.prototype,"data",void 0);kv=_.f([_.jd({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],kv);
_.X(kv,"yt-did-you-mean-renderer",function(){if(bFf===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;aUQ===void 0&&(aUQ=document.createElement("template"));var I=aUQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);bFf=W}W=bFf;return W},{mode:2});var Xtm;var fUd;_.Ad("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var U6=function(){return _.b.apply(this,arguments)||this};
_.A(U6,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],U6.prototype,"data",void 0);U6=_.f([_.jd({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],U6);
_.X(U6,"yt-including-results-for-renderer",function(){if(fUd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Xtm===void 0&&(Xtm=document.createElement("template"));var I=Xtm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);fUd=W}W=fUd;return W},{mode:2});var Nj2;var lUM;_.Ad("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var X2=function(){return _.b.apply(this,arguments)||this};
_.A(X2,_.b);X2.prototype.computeExtraClasses_=function(W,P){var x="";W&&(x+=" "+W.toLowerCase().replace(/_/g,"-"));P&&(x+=" "+P.toLowerCase().replace(/_/g,"-"));return x};
X2.prototype.computeUrlImg_=function(){var W=this.data;W.image&&(_.g(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Tm(W.image.thumbnails,Number.MAX_VALUE)+")")};
X2.prototype.computeUrlImg_=X2.prototype.computeUrlImg_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],X2.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],X2.prototype,"computeUrlImg_",null);X2=_.f([_.jd({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],X2);
_.X(X2,"yt-music-pass-feature-info-renderer",function(){if(lUM===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Nj2===void 0&&(Nj2=document.createElement("template"));var I=Nj2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);lUM=W}W=lUM;return W},{mode:2});var TjG;var rAd;_.Ad("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var fp=function(){return _.b.apply(this,arguments)||this};
_.A(fp,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],fp.prototype,"data",void 0);fp=_.f([_.jd({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],fp);
_.X(fp,"yt-no-results-found-showing-results-for-renderer",function(){if(rAd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;TjG===void 0&&(TjG=document.createElement("template"));var I=TjG;x.call(P,I.content.cloneNode(!0),W.content.firstChild);rAd=W}W=rAd;return W},{mode:2});var iFm;var Rn9;_.Ad("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Nj=function(){return _.b.apply(this,arguments)||this};
_.A(Nj,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Nj.prototype,"data",void 0);Nj=_.f([_.jd({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Nj);
_.X(Nj,"yt-results-without-quotes-renderer",function(){if(Rn9===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;iFm===void 0&&(iFm=document.createElement("template"));var I=iFm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Rn9=W}W=Rn9;return W},{mode:2});var FMv;var qbG;_.Ad("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var lJ=function(){return _.b.apply(this,arguments)||this};
_.A(lJ,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],lJ.prototype,"data",void 0);lJ=_.f([_.jd({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],lJ);
_.X(lJ,"yt-search-no-results-renderer",function(){if(qbG===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;FMv===void 0&&(FMv=document.createElement("template"));var I=FMv;x.call(P,I.content.cloneNode(!0),W.content.firstChild);qbG=W}W=qbG;return W},{mode:2});var LMv;var WHO;_.Ad("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var TJ=function(){return _.b.apply(this,arguments)||this};
_.A(TJ,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],TJ.prototype,"data",void 0);TJ=_.f([_.jd({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],TJ);
_.X(TJ,"yt-showing-results-for-renderer",function(){if(WHO===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;LMv===void 0&&(LMv=document.createElement("template"));var I=LMv;x.call(P,I.content.cloneNode(!0),W.content.firstChild);WHO=W}W=WHO;return W},{mode:2});var PDL;var xd6;var ID6;var OQG;var r$=function(){var W=_.b.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.A(r$,_.b);r$.prototype.toggleAnswer_=function(W){var P=_.af(W);P&&P.classList.contains("yt-simple-endpoint")||(W.preventDefault(),W.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
r$.prototype.toggleAnswer_=r$.prototype.toggleAnswer_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],r$.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],r$.prototype,"answerExpanded",void 0);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],r$.prototype,"toggleAnswer_",null);
r$=_.f([_.jd({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],r$);
_.X(r$,"yt-generic-faq-question-renderer",function(){if(OQG===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;ID6===void 0&&(ID6=document.createElement("template"));var I=ID6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);OQG=W}W=OQG;return W},{mode:2});_.Ad("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var iJ=function(){return _.b.apply(this,arguments)||this};
_.A(iJ,_.b);iJ.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],iJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],iJ.prototype,"data",void 0);iJ=_.f([_.jd({is:"yt-faq-section-renderer",disableElementRegistration:!0})],iJ);
_.X(iJ,"yt-faq-section-renderer",function(){if(xd6===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;PDL===void 0&&(PDL=document.createElement("template"));var I=PDL;x.call(P,I.content.cloneNode(!0),W.content.firstChild);xd6=W}W=xd6;return W},{mode:2});var JRB;var Bmf;_.Ad("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var R3=function(){return _.b.apply(this,arguments)||this};
_.A(R3,_.b);
R3.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"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],R3.prototype,"data",void 0);R3=_.f([_.jd({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],R3);
_.X(R3,"yt-offer-item-expanded-renderer",function(){if(Bmf===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;JRB===void 0&&(JRB=document.createElement("template"));var I=JRB;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Bmf=W}W=Bmf;return W},{mode:2});var n7O;var YM3;_.Ad("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var F2=function(){return _.b.apply(this,arguments)||this};
_.A(F2,_.b);
F2.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"}}}}};
F2.prototype.computeFullWidthMode=function(W){return!(!W||!W.fullWidthMode)};
F2.prototype.computeBorderlessMode=function(W){return!(!W||!W.borderlessMode)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],F2.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.l("design:type",Boolean)],F2.prototype,"fullWidthMode",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.l("design:type",Boolean)],F2.prototype,"borderlessMode",void 0);F2=_.f([_.jd({is:"yt-offer-item-renderer",disableElementRegistration:!0})],F2);
_.X(F2,"yt-offer-item-renderer",function(){if(YM3===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;n7O===void 0&&(n7O=document.createElement("template"));var I=n7O;x.call(P,I.content.cloneNode(!0),W.content.firstChild);YM3=W}W=YM3;return W},{mode:2});var yRB;var KHO;_.Ad("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var qj=function(){return _.b.apply(this,arguments)||this};
_.A(qj,_.b);qj.prototype.computeAriaLevel_=function(W){return this.getLevelID_(W)};
qj.prototype.getLevelID_=function(W){return(W=W.match(/[0-9]+$/))&&W.length==1?W[0]:"1"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qj.prototype,"data",void 0);_.f([_.c({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.l("design:type",String)],qj.prototype,"ariaLevel",void 0);_.f([_.c({value:"heading",reflectToAttribute:!0}),_.l("design:type",String)],qj.prototype,"role",void 0);
_.f([_.c({value:-1,reflectToAttribute:!0}),_.l("design:type",Number)],qj.prototype,"tabindex",void 0);qj=_.f([_.jd({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],qj);
_.X(qj,"yt-subscription-product-header-renderer",function(){if(KHO===void 0){var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;yRB===void 0&&(yRB=document.createElement("template"));var I=yRB;x.call(P,I.content.cloneNode(!0),W.content.firstChild);KHO=W}W=KHO;return W},{mode:2});var ZQ2;var o76;_.Ad("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Lp=function(){return _.b.apply(this,arguments)||this};
_.A(Lp,_.b);Lp.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:_.z4("menuRenderer"),events:!0}}};
Lp.prototype.onStampFinished_=function(){_.g(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Lp.prototype.onStampFinished_=Lp.prototype.onStampFinished_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Lp.prototype,"data",void 0);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lp.prototype,"onStampFinished_",null);
Lp=_.f([_.jd({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Lp);
_.X(Lp,"yt-subscription-product-renderer",function(){if(o76===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;ZQ2===void 0&&(ZQ2=document.createElement("template"));var I=ZQ2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);o76=W}W=o76;return W},{mode:2});var SMO;var uI6;_.Ad("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var WH=function(){return _.b.apply(this,arguments)||this};
_.A(WH,_.b);WH.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
WH.prototype.imageScrimColorValuesChanged_=function(){var W,P=(W=this.data)==null?void 0:W.imageScrimColorValues;_.g(this.hostElement).querySelector("#scrim").style.backgroundColor=P?_.Qy(P[0]):"transparent"};
WH.prototype.imageScrimColorValuesChanged_=WH.prototype.imageScrimColorValuesChanged_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],WH.prototype,"data",void 0);
_.f([_.OZ("data.imageScrimColorValues"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WH.prototype,"imageScrimColorValuesChanged_",null);WH=_.f([_.jd({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],WH);
_.X(WH,"yt-subscription-product-upsell-offer-renderer",function(){if(uI6===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;SMO===void 0&&(SMO=document.createElement("template"));var I=SMO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);uI6=W}W=uI6;return W},{mode:2});var ddO;var sZ3;var v7m;var mdv;var VH3;var tH6;var PH=function(){return _.b.apply(this,arguments)||this};
_.A(PH,_.b);PH.prototype.onYtServiceRequestError_=function(W){_.Iq(this.hostElement,W.detail.error.message)};
PH.prototype.onYtServiceRequestError_=PH.prototype.onYtServiceRequestError_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],PH.prototype,"data",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],PH.prototype,"collapsible",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],PH.prototype,"isManageRed",void 0);
_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],PH.prototype,"onYtServiceRequestError_",null);PH=_.f([_.jd({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],PH);
_.X(PH,"yt-single-ypc-offer-renderer",function(){if(tH6===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;VH3===void 0&&(VH3=document.createElement("template"));var I=VH3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);tH6=W}W=tH6;return W},{mode:2});var xk=function(){return _.b.apply(this,arguments)||this};
_.A(xk,_.b);xk.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],xk.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],xk.prototype,"isManageRed",void 0);xk=_.f([_.jd({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],xk);
_.X(xk,"yt-single-ypc-offer-list-renderer",function(){if(mdv===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;v7m===void 0&&(v7m=document.createElement("template"));var I=v7m;x.call(P,I.content.cloneNode(!0),W.content.firstChild);mdv=W}W=mdv;return W},{mode:2});var p49;var jZf;_.Ad("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Iw=function(){return _.b.apply(this,arguments)||this};
_.A(Iw,_.b);Iw.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Iw.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Iw.prototype,"isManageRed",void 0);Iw=_.f([_.jd({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Iw);
_.X(Iw,"yt-ypc-offers-list-renderer",function(){if(jZf===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;p49===void 0&&(p49=document.createElement("template"));var I=p49;x.call(P,I.content.cloneNode(!0),W.content.firstChild);jZf=W}W=jZf;return W},{mode:2});_.Ad("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Og=function(){return _.b.apply(this,arguments)||this};
_.A(Og,_.b);
Og.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}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Og.prototype,"data",void 0);Og=_.f([_.jd({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Og);
_.X(Og,"yt-unlimited-manage-subscription-page-renderer",function(){if(sZ3===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;ddO===void 0&&(ddO=document.createElement("template"));var I=ddO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);sZ3=W}W=sZ3;return W},{mode:2});var QZ6;var CDM;var J5=function(){return _.b.apply(this,arguments)||this};
_.A(J5,_.b);_.J=J5.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.J.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.onKeypress_=function(W){W.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.J.handleHeaderTap_=function(W){W.preventDefault();W.stopPropagation();this.expandOffers_()};
_.J.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.J.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
J5.prototype.dataChanged_=J5.prototype.dataChanged_;_.f([_.h(_.tu),_.l("design:type",Object)],J5.prototype,"ironA11yKeysBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],J5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],J5.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],J5.prototype,"offersVisible_",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J5.prototype,"dataChanged_",null);J5=_.f([_.jd({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],J5);
_.X(J5,"yt-collapsible-ypc-offer-renderer",function(){if(CDM===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;QZ6===void 0&&(QZ6=document.createElement("template"));var I=QZ6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);CDM=W}W=CDM;return W},{mode:2});var ARQ;var zcQ;_.Ad("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var BH=function(){return _.b.apply(this,arguments)||this};
_.A(BH,_.b);_.J=BH.prototype;_.J.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.J.dataChanged_=function(){if(this.data.backgroundImage){var W=_.Tm(this.data.backgroundImage.thumbnails,screen.width),P=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=P?"linear-gradient(180deg, "+P+"), url("+W+")":"url("+W+")";this.data.gtmId&&_.db(this.data.gtmId,_.$$("GL",""))}};
_.J.onYtServiceRequestError_=function(W){_.Iq(this.hostElement,W.detail.error.message)};
_.J.getScrimLayerColorStops_=function(){var W,P,x=(W=this.data.unlimitedHeaderV2Data)==null?void 0:(P=W.unlimitedHeaderV2Data)==null?void 0:P.scrimLayerColors;if(!x)return null;var I=100/x.length;return x.map(function(O,B){B*=I;return _.Qy(O)+" "+B+"%"}).join(",")};
_.J.computeLogoWithPadding=function(W){var P,x,I;return(W=(P=W.unlimitedLogoImage)==null?void 0:(x=P.thumbnails)==null?void 0:(I=x[0])==null?void 0:I.height)&&W%31===0?!0:!1};
BH.prototype.onYtServiceRequestError_=BH.prototype.onYtServiceRequestError_;BH.prototype.dataChanged_=BH.prototype.dataChanged_;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.f([_.c({computed:"computeLogoWithPadding(data)"}),_.l("design:type",Boolean)],BH.prototype,"logoWithPadding",void 0);
_.f([_.c(),_.l("design:type",Object)],BH.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BH.prototype,"dataChanged_",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BH.prototype,"onYtServiceRequestError_",null);BH=_.f([_.jd({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],BH);
_.X(BH,"yt-unlimited-page-header-renderer",function(){if(zcQ===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;ARQ===void 0&&(ARQ=document.createElement("template"));var I=ARQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);zcQ=W}W=zcQ;return W},{mode:2});var G64;var E7G;_.Ad("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var nG=function(){return _.b.apply(this,arguments)||this};
_.A(nG,_.b);nG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],nG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nG.prototype,"data",void 0);nG=_.f([_.jd({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],nG);
_.X(nG,"yt-unlimited-user-notification-renderer",function(){if(E7G===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;G64===void 0&&(G64=document.createElement("template"));var I=G64;x.call(P,I.content.cloneNode(!0),W.content.firstChild);E7G=W}W=E7G;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.bjM=_.kl(function(W){var P=_.bw(W,{numberOfChips:5}).numberOfChips;return _.u("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.u(_.sV,{each:function(){return Array(P==null?void 0:P())}},function(){return _.u("div",{class:"ytGhostChipShelfChip"})}))},"cg");_.kMQ=_.kl(function(W){var P=_.Ys(),x=_.FY().resolve(_.eS);_.Qa(function(){requestAnimationFrame(function(){var O;(O=P.lottieEl)==null||O.addEventListener("DOMLoaded",function(){var B;(B=W.onLottieLoaded)==null||B.call(W)})})});
var I={};return _.u("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var O;return((O=W.data)==null?void 0:O.call(W).targetId)||""}},_.u(_.Jd,{className:_.O4((I.ytChatLoadingViewModelRtl=x==="rtl",I)),
animationName:"YOUCHAT_LOADER",data:function(){var O;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((O=W.data)==null?void 0:O.call(W).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:P}))},"dg");
}catch(e){_._DumpException(e)}
try{
var YhL,yl9,KY3,Z5G,oKL,Shm,uPM,FI,qd,sQQ,vKd,mTG,tU6,EKG,LQ,GDd,QQ9,z6v,Aly,Czy,jQd,gK2,DT4,MUL,$Td,WN,w9f,h63,H53,kDL,b52,aCf,e6L,clf,UTv,X9m,fCv,NJ9,lCm,R63,LY4,Wx6,PZ6,IVv,JzG,njB,YWG,yzd,Kxm,ojv,SW6,uJM,dpf,sEy,vjv,mpf,taG,CZ6,QEv,pn3,AzO,jE2,zIL,Dpd,gjB,GFG,Ejy,I2,Mav,$p3,hI3,cz3,fVQ,NvB,lVv,Tv3,rzv,iU2,RIQ,FxB,qWm,LxL,P_9,xSm,Ilf,dT3,kFv;
_.iD=function(W){var P=new _.mW("Error accessing DB");return _.Mf7().then(function(x){return new Promise(function(I,O){try{var B=x.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(W);B.onsuccess=function(){var Y=B.result;I(Y?Y.value:null)};
B.onerror=function(){P.params={key:W,source:"onerror"};O(P)}}catch(Y){P.params={key:W,
thrownError:String(Y)},O(P)}})},function(){return null})};
_.nKL=function(W,P){var x=_.sKm(P);x!=="javascript:"&&x!=="data:"&&W.setAttribute("href",P)};
YhL=function(W,P){return _.Jb(W.entities,"flowStateEntity",P)};
yl9=function(W){return(W=W.getOption("captions","track"))?!!W.displayName:!1};
KY3=function(W,P){P=P.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(P==null||!P.length)return W;var x=P.filter(function(Y){return Y});
P=W.filter(function(Y){return Y.languageCode.startsWith("en")});
x=_.n(x);for(var I=x.next();!I.done;I=x.next())if(I=I.value,P.length){var O=P[0],B=Object.assign({},O);O.languageCode!==I.languageCode&&(B.displayName=O.languageName+" >> "+I.languageName,B.translationLanguage=I,W.push(B))}return W};
Z5G=function(W){var P,x=(P=W.getOption("captions","tracklist",{includeAsr:!0}))!=null?P:[];_.p("mweb_watch_captions_enable_auto_translate")&&(x=KY3(x,W));return x};
oKL=function(W){return _.bC(W,function(P){return P.languageCode==="en"})};
Shm=function(W){var P=RZ;if(yl9(W))W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{});else{var x=_.bC(Z5G(W),function(I){return I.displayName===P});
W.setOption("captions","track",x)}};
uPM=function(W){if(!W)return 0;var P=W.getPresentingPlayerType(),x=W.getVideoData();return x&&x.isLive?(W=W.getProgressState(P),W.seekableEnd-W.seekableStart):W.getDuration(P)};
FI=function(W,P){_.e_(P,W,function(){return dT3[P]},function(x){dT3[P]=x;
if(!_.p("mweb_player_ve_show_ks")){var I=_.E_(0);I&&x&&_.eI(I,x)}})};
qd=function(W){(W=dT3[W])&&_.yI(_.YY(),W)};
sQQ=function(W,P){for(var x=_.n(Object.keys(W)),I=x.next();!I.done;I=x.next())if(I=I.value,W[I]!==P[I])return!1;return!0};
vKd=function(){return document.getElementById("player-control-overlay")};
mTG=function(W){W!==-1&&!_.p("player_controls_log_creation_killswitch")&&vKd()&&(_.CK("pcu_cs",W),_.CK("pcu_ce"))};
tU6=function(W){return _.u("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(W.subscribeButton?[W.subscribeButton,W.channelAccess]:[W.channelAccess]).map(function(P){return _.u("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.u("div",{class:"yt-profile-identity-info-view-model-wiz--button"},VUO(P)))}))};
_.p93=function(W){var P=W.data;W=W.hideDivider;var x={};x=(x["yt-profile-identity-info-view-model-wiz__frame"]=!0,x["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!P.channelBanner,x);x={class:_.BF(x)};var I,O={imageBannerViewModel:{image:(I=P.channelBanner)==null?void 0:I.image,style:"IMAGE_BANNER_STYLE_INSET"}};I=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},P.channelBanner?_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
VUO(O,{imageBannerViewModel:{isPositionRelative:!0}})):null);O=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},VUO(P.avatar));var B;var Y=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},P.channelDisplayName),P.verifiedOrOacBadge?_.u("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.u(_.bq,{data:{thumbnails:[{url:(B=P.verifiedOrOacBadge)==null?void 0:B.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);B=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},Y,VUO(P.threeDotMenu));Y=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.u("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},P.channelHandle),P.channelPronouns&&P.channelHandle?_.u("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.u("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},P.channelPronouns)),_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},P.leftOfBulletInfo),P.leftOfBulletInfo&&P.rightOfBulletInfo?_.u("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.u("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},P.rightOfBulletInfo)));B=_.u("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},B,Y);return _.u("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.u("div",x,I,_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},O,B),P.channelDescription?_.u("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},P.channelDescription):
null,tU6(P),W?null:_.u("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
EKG=function(W,P){var x=_.a7(W,{}),I=jQd("top",P),O=jQd("bottom",P),B=jQd("left",P),Y=jQd("right",P);return _.oP({top:function(){return LQ(x().position,I)},
bottom:function(){return LQ(x().position,O)},
left:function(){return LQ(x().position,B)},
right:function(){return LQ(x().position,Y)},
position:function(){return LQ(x().positionType,QQ9)},
height:function(){return LQ(x().height,WN)},
width:function(){return LQ(x().width,WN)},
"min-width":function(){return LQ(x().minWidth,WN)},
"min-height":function(){return LQ(x().minHeight,WN)},
"max-width":function(){return LQ(x().maxWidth,WN)},
"max-height":function(){return LQ(x().maxHeight,WN)},
"aspect-ratio":function(){return LQ(x().aspectRatio,String)},
"margin-top":function(){return LQ(x().margin,I)},
"margin-bottom":function(){return LQ(x().margin,O)},
"margin-left":function(){return LQ(x().margin,B)},
"margin-right":function(){return LQ(x().margin,Y)},
"padding-top":function(){return LQ(x().padding,I)},
"padding-bottom":function(){return LQ(x().padding,O)},
"padding-left":function(){return LQ(x().padding,B)},
"padding-right":function(){return LQ(x().padding,Y)},
"flex-direction":function(){return LQ(x().flexDirection,Czy)},
"justify-content":function(){return LQ(x().justifyContent,Aly)},
"align-items":function(){return LQ(x().alignItems,z6v)},
"flex-grow":function(){return LQ(x().flexGrow,String)},
"flex-shrink":function(){return LQ(x().flexShrink,String)},
"flex-basis":function(){return LQ(x().flexBasis,WN)},
"align-self":function(){return LQ(x().alignSelf,z6v)},
"flex-wrap":function(){return LQ(x().flexWrap,GDd)},
"align-content":function(){return LQ(x().alignContent,z6v)}})};
LQ=function(W,P){return W!==void 0?P(W):void 0};
GDd=function(W){switch(W){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
QQ9=function(W){switch(W){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
z6v=function(W){switch(W){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"}};
Aly=function(W){switch(W){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"}};
Czy=function(W){switch(W){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"}};
jQd=function(W,P){var x=P==="rtl";switch(W){case "top":var I=gK2;break;case "bottom":I=DT4;break;case "left":I=MUL;break;default:I=$Td}return function(O){return LQ(I(O,x),WN)}};
gK2=function(W){var P=W.top;var x=W.vertical;W=W.all;var I;return(I=P!=null?P:x)!=null?I:W};
DT4=function(W){var P=W.bottom;var x=W.vertical;W=W.all;var I;return(I=P!=null?P:x)!=null?I:W};
MUL=function(W,P){var x=W.left;var I=W.end;var O=W.start;var B=W.horizontal;W=W.all;var Y,K;return(K=(Y=x!=null?x:P?I:O)!=null?Y:B)!=null?K:W};
$Td=function(W,P){var x=W.right;var I=W.end;var O=W.start;var B=W.horizontal;W=W.all;var Y,K;return(K=(Y=x!=null?x:P?O:I)!=null?Y:B)!=null?K:W};
WN=function(W){var P=W.value;switch(W.unit){case "YPC_DIMENSION_UNIT_POINT":return P+"px";case "YPC_DIMENSION_UNIT_FRACTION":return P+"%";default:return""+P}};
w9f=function(W){switch(W){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"}};
h63=function(W){var P=W!=null?W:{};W=P.fontRole;var x=P.fontSize;P=P.fontWeight;if(W!==null&&x!==null)switch(W){case "YPC_FONT_ROLE_DISPLAY":switch(x){case "YPC_FONT_SIZE_L":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(x){case "YPC_FONT_SIZE_L":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return P===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(x){case "YPC_FONT_SIZE_XL":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
H53=function(W,P){return _.Jb(W.entities,"pdpStateEntity",P)};
kDL=function(W,P,x){function I(d){return Object.values(d).map(function(v){var m=v.productId;v=v.pricingOptionIndex;return e6L(O(m).pricingOptions,v).pricingOptionId})}
function O(d){return K().get(d)}
function B(d){d=I(d);x(d)}
var Y=clf([W,P],function(d,v){var m=d==null?void 0:d.selectedPricingOptions;d={};var t=!0;if(m&&v.length)for(var C=_.n(v),z=C.next();!z.done;z=C.next()){z=z.value;var D=aCf(z.pricingOptions,function(w){a:{w=w.pricingOptionId;for(var a=_.n(m),k=a.next();!k.done;k=a.next())if(k.value===w){w=!0;break a}w=!1}return w});
D>=0&&(t=!1,d[z.groupId]={productId:z.productId,pricingOptionIndex:D})}t&&v.length&&(d[v[0].groupId]={productId:v[0].productId,pricingOptionIndex:0});return d}),K=clf([P],function(d){return new Map(d.map(function(v){return[v.productId,
v]}))}),Z=clf([P],function(d){var v=new Map;
d=_.n(d);for(var m=d.next();!m.done;m=d.next()){var t=m.value;m=t.groupId;var C=t.productId;t=_.n(b52(t.pricingOptions));for(var z=t.next();!z.done;z=t.next()){var D=_.n(z.value);z=D.next().value;D=D.next().value;v.set(D.pricingOptionId,{groupId:m,productId:C,index:z,pricingOption:D})}}return v});
return{getProductById:O,isProductSelected:function(d){var v=O(d);if(!v)return!1;var m;return((m=Y()[v.groupId])==null?void 0:m.productId)===d},
getSelectedPricingOptions:function(){return Object.values(Y()).map(function(d){var v=d.productId;d=d.pricingOptionIndex;return e6L(O(v).pricingOptions,d)})},
getSelectedProductByGroupId:function(d){var v;return(d=(v=Y()[d])==null?void 0:v.productId)?O(d):void 0},
onProductSelected:function(d){var v=O(d);if(v){var m=Y(),t;if(((t=m[v.groupId])==null?void 0:t.productId)!==d){var C,z;t=(z=(C=m[v.groupId])==null?void 0:C.pricingOptionIndex)!=null?z:0;C=0;for(z=v.pricingOptions[Symbol.iterator]();!z.next().done;)++C;C<=t&&(t=0);C={};B(Object.assign({},m,(C[v.groupId]={productId:d,pricingOptionIndex:t},C)))}}},
onPricingOptionSelected:function(d){var v=Z().get(d);if(v){d=v.groupId;var m=v.productId;v=v.index;var t=Y(),C,z;if(((C=t[d])==null?void 0:C.productId)!==m||((z=t[d])==null?void 0:z.pricingOptionIndex)!==v)C={},B(Object.assign({},t,(C[d]={productId:m,pricingOptionIndex:v},C)))}},
onClearGroupSelected:function(d){var v=Y();v[d]&&(v=Object.fromEntries(Object.entries(v).filter(function(m){return _.n(m).next().value!==d})),B(v))}}};
b52=function(W){return function x(){var I,O,B,Y,K;return _.Zpm(x,function(Z){switch(Z.nextAddress){case 1:_.Br(Z,2),I=0,O=_.n(W),B=O.next();case 4:if(B.done){Z.jumpTo(2);break}Y=B.value;K=_.ovm;return _.S(Z,[I++,Y],7);case 7:K(Z.yieldResult);B=O.next();Z.jumpTo(4);break;case 2:_.Jo(Z),_.YD(Z,0)}})}()};
aCf=function(W,P){W=_.n(b52(W));for(var x=W.next();!x.done;x=W.next()){var I=_.n(x.value);x=I.next().value;I=I.next().value;if(P(I))return x}return-1};
e6L=function(W,P){W=_.n(b52(W));for(var x=W.next();!x.done;x=W.next()){var I=_.n(x.value);x=I.next().value;I=I.next().value;if(x===P)return I}};
clf=function(W,P){var x,I;return function(){for(var O=W.map(function(Y){return Y()}),B=0;B<O.length;B++)if(!x||O[B]!==x[B]){x=O;
I=P.apply(null,_.ju(O));break}return I}};
UTv=function(W){var P;return!!(W.productId&&W.groupId&&((P=W.pricingOptions)==null?0:P.length)&&W.pricingOptions.every(function(x){return x.pricingOptionId}))};
X9m=function(W,P,x){return kDL(W,clf([P],function(I){return I.filter(UTv)}),x)};
fCv=function(W,P){return P.length===0?[W]:[W.slice(0,P[0]),W.slice(P[0])].filter(function(x){return x.length>0})};
NJ9=function(W){switch(W){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""}};
lCm=function(W,P,x,I){I=Object.assign({},I);_.tF(I,PN,{selectedOptionId:W,primaryButtonOverride:x});_.HM().dispatch(_.mG("flowStateEntity",P,I))};
_.i56=function(){if(!TJd){var W=_.n(_.YV(new Map,void 0,"UJImUe"));TJd=W.next().value;rl4=W.next().value}return TJd};
R63=function(W){if(W)return _.i56()().get(W)};
_.FYG=function(W,P){if(W&&P){var x=_.i56();x().set(W,P);W=x();rl4(new Map(W))}};
_.qhO=function(W){return{onSubmit:function(){var P;(P=R63(W()))==null||P.onSubmit()},
isValid:function(){var P=R63(W());return P?P.isValid():!0},
isSubmitting:function(){var P,x;return!!((P=R63(W()))==null?0:(x=P.isSubmitting)==null?0:x.call(P))}}};
LY4=function(W,P){return _.Jb(W.entities,"contextNoteFeedEntityPayload",P)};
Wx6=function(W){W.style.height="auto";W.style.height=W.scrollHeight+"px"};
PZ6=function(W){return[W.syncStep,W.asyncStep].filter(function(P){return P!==void 0})};
IVv=function(W){var P,x,I;if(W=(P=W.structuredContextNoteFormSchema)==null?void 0:(x=P.fieldSchemas)==null?void 0:(I=x.noteBody)==null?void 0:I.validationSchema)for(P=_.n(PZ6(W)),x=P.next();!x.done;x=P.next()){x=x.value.rules;if(!x)break;x=_.n(x);for(x=x.next();!x.done;x=x.next())return _.Q(x.value,_.xpv)}};
JzG=function(W){if(W){W=_.n(PZ6(W));for(var P=W.next();!P.done;P=W.next()){P=P.value.rules;if(!P)break;P=_.n(P);for(P=P.next();!P.done;P=P.next())return _.Q(P.value,OU6)}}};
njB=function(W){if(W){W=_.n(PZ6(W));for(var P=W.next();!P.done;P=W.next()){P=P.value.rules;if(!P)break;P=_.n(P);for(P=P.next();!P.done;P=P.next())return _.Q(P.value,Bv2)}}};
YWG=function(W){W=/^https?:\/\//.test(W)?W:"http://"+W;try{var P=_.ea(W)}catch(x){return!1}if(P.toString()!==W)return!1;W=P.JSC$7933_domain_.split(".");return W.length>1&&W.every(function(x){return!!x})};
yzd=function(W,P,x,I){var O;I=(O=I.structuredContextNoteData)==null?void 0:O.createCommentEndpoint;if(O=_.Q(I,_.d3Z))return O.commentText=_.bx(W),O.videoPositionMention=P,O.sources=x,I};
Kxm=function(W){return W==null?void 0:W.stringValue};
ojv=function(W,P,x){W=W.map(function(I,O){return{listItemViewModel:{title:I.title,subtitle:I.subtitle,leadingImage:I.leadingImage,trailingImage:O===P?ZUM:void 0,rendererContext:{commandContext:{onTap:I.onTap}}}}});
return Object.assign({},x&&{header:{panelHeaderViewModel:{title:x}}},{content:{listViewModel:{listItems:W}}})};
SW6=function(W,P){if(W&&P)switch(P){case "SELECTION_TYPE_BOOL":return W.boolValue;case "SELECTION_TYPE_INT":return W.intValue;case "SELECTION_TYPE_STRING":return W.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return W.privacyStatusValue}};
uJM=function(W){var P;W=(P=W.options)==null?void 0:P.findIndex(function(x){return x.isSelected});
return W===void 0?-1:W};
dpf=function(W,P,x){var I=function(){return W().label},O={},B=_.O4("ytDropdownViewModelLabel",(O.ytDropdownViewModelLabelError=P,O));
return _.u(_.V,{cond:function(){return W().label&&!(x()===-1&&W().label&&!W().placeholderText)},
then:function(){return _.u("div",{class:B},_.u(_.mQ,{text:I}))}})};
sEy=function(W,P){var x={};x=_.O4("ytDropdownViewModelTitle",(x.ytDropdownViewModelTitlePlaceholder=function(){return P()===-1},x));
return _.u("div",{class:x},_.u(_.mQ,{text:function(){var I=W();var O=P();if(O===-1)I=I.placeholderText?I.placeholderText:I.label;else{var B,Y;I=(B=I.options)==null?void 0:(Y=B[O])==null?void 0:Y.title}return I}}))};
vjv=function(W,P){var x=function(){return W().hint};
return _.u(_.qS,null,_.u(_.V,{cond:function(){return x()&&!P()},
then:function(){return _.u("div",{class:_.O4("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.u(_.mQ,{text:x,className:"ytDropdownViewModelSupportText"}))}}),_.u(_.V,{cond:P,
then:function(){return _.u("div",{id:"dropdown-view-model-error",role:"alert",class:_.O4("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.u(_.Sy,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.u(_.mQ,{text:P,className:"ytDropdownViewModelSupportText"}))}}))};
mpf=function(W,P){var x=_.FY().resolve(_.xJA);_.AQ(function(){var I=W().id;I&&x!=null&&x.dropdownMap.set(I,P)})};
taG=function(W){W=_.Q(W.scheduleButton,Va3);W=_.Q(W==null?void 0:W.primaryButton,_.gp);W=_.Q(W==null?void 0:W.onTap,_.Ct);var P,x,I=((x=_.Q(W,_.B7))==null?void 0:x.commands)||[W];x=_.n(I);for(W=x.next();!W.done&&!(P=_.Q(W.value,_.Sjz));W=x.next());var O;P=(O=P)==null?void 0:O.createBroadcastRequest;if(!P)throw Error("Hj");return P};
CZ6=function(W,P,x){x=x===void 0?{}:x;var I,O;return _.y(function(B){if(I=pn3(P))return B.return(I);(O=jE2(W,P,x))&&QEv(P,O);return B.return(O)})};
QEv=function(W,P){var x=AzO(W);x&&P.then(function(I){_.FY().resolve(_.Pw).put(x,new _.xw({innertubeResponse:I}))})};
pn3=function(W){if(W=AzO(W)){var P=_.FY().resolve(_.Pw);if(P.has(W))return P.get(W).then(function(x){return x==null?void 0:_.Zs(x)})}return null};
AzO=function(W){var P=_.Q(W.endpoint,_.U_);if(P!=null&&P.videoId)return P={videoId:P.videoId},_.p("web_imp_player_mute_params")&&(P.mutedAtStart=W.startPlaybackInMutedState),_.ka("inline_playback",P)};
jE2=function(W,P,x){W=_.cF(W,P.endpoint,zIL(P,x)).then(function(I){return I});
return Promise.resolve(W)};
zIL=function(W,P){P=_.p("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!W.startPlaybackInMutedState},P):Object.assign({},{vis:5,autonav:"1"},P);var x;P={contentPlaybackContext:_.dT(P,(x=_.Q(W.endpoint.commandMetadata,_.rU))==null?void 0:x.url,window.location.href)};_.p("web_imp_player_mute_params")&&(P.overrideMutedAtStart=!W.startPlaybackInMutedState);return P};
Dpd=function(W,P){var x=window.MutationObserver;x&&(xR=new x(function(I,O){I=_.n(I);for(var B=I.next();!B.done;B=I.next()){B=B.value;var Y;if(Y=B.type==="childList"&&B.target)a:{Y=W;B=GFG(B.target);Y=GFG(Y);for(var K=null,Z=0;Z<B.length;Z++)if(Y.includes(B[Z])){if(Z===0){Y=!1;break a}K=B[Z];break}K?(B=Ejy(B,K),Y=Ejy(Y,K),Y=B<Y):Y=!1}if(Y){P();O.disconnect();break}}}),(x=gjB())&&xR.observe(x,{childList:!0,
subtree:!0}))};
gjB=function(){var W=document.getElementsByTagName("ytd-rich-grid-renderer");if(W.length>0)return W[0];W=document.getElementsByTagName("ytd-section-list-renderer");return W.length>0?W[0]:null};
GFG=function(W){for(var P=[];W;)P.push(W),W=W.parentElement;return P};
Ejy=function(W,P){var x=Array.from(P.children);P=W.indexOf(P);return P>0?x.indexOf(W[P-1]):-1};
I2=function(W,P,x){x=x===void 0?{}:x;return _.KK(W,x,P)};
Mav=function(W){switch(W){case "MUSIC":return!0;default:return!1}};
$p3=function(W){return W==null?void 0:W.filter(function(P){return P.premiereTrailerBadgeRenderer})};
hI3=function(W){var P,x=W==null?void 0:(P=W.find(function(m){return m.thumbnailOverlayTimeStatusRenderer}))==null?void 0:P.thumbnailOverlayTimeStatusRenderer,I,O;
if((x==null?0:(I=x.icon)==null?0:I.iconType)&&Mav(x==null?void 0:(O=x.icon)==null?void 0:O.iconType)){var B;return{icon:x==null?void 0:(B=x.icon)==null?void 0:B.iconType}}var Y,K;var Z=(W=(Y=W==null?void 0:(Z=W.find(function(m){return m.thumbnailBottomOverlayViewModel}))==null?void 0:Z.thumbnailBottomOverlayViewModel)==null?void 0:(K=Y.badges)==null?void 0:K.find(function(m){var t,C;
return((t=_.Q(m,wn4))==null?void 0:(C=t.inlinePlaybackBadgeData)==null?void 0:C.replicateAsTimestamp)===!0}))?_.Q(W,wn4):void 0;
if(Z==null?0:Z.icon){var d,v;if((Z=(d=_.VP8(Z==null?void 0:Z.icon))==null?void 0:(v=d.clientResource)==null?void 0:v.imageName)&&Mav(Z))return{icon:Z}}return{}};
cz3=function(W,P){var x="",I="";switch(W){case -1:case 0:x=P?"VOLUME_OFF":"VOLUME_OFF_FILLED";I=HU9;break;case 1:x=P?"VOLUME_UP_OUTLINE":"VOLUME_UP";I=eI2;break;default:_.n2(W)}return{iconName:x,ariaLabel:I}};
fVQ=function(W,P){var x=aVQ,I=_.n(_.YV(bUm(new kFv(function(){},x,P)),void 0,"PAnyd")),O=I.next().value,B=I.next().value,Y=new kFv(function(K){B(K)},x,P);
_.jj(function(){Promise.resolve().then(function(){var K,Z=(K=W())!=null?K:{};Y.playerControlsData=Z;_.p("player_controls_skip_double_signal_old")&&(Y.lastSeenPlayerApi=_.b4(Z.playerApi));_.p("player_controls_skip_double_signal_old")||(Y.lastSeenPlayerApi=_.b4(Z.playerApi));Upy(Y)});
_.C4(function(){XnG(Y)})});
_.C4(function(){XnG(Y)});
return function(){return O()}};
NvB=function(W){return function(P){var x=W(),I={playerState:P};if(P===1){var O;(O=x.playerApi)==null||O.loadModule("captions")}if(P===0){var B;(B=x.playerApi)==null||B.unloadModule("captions")}(P!==-1||_.p("web_imp_controls_set_player_state_killswitch"))&&x.setState(I)}};
lVv=function(W){return function(P){W().setState({playbackRate:P})}};
Tv3=function(W){return function(P){var x=W(),I=x.playerApi,O=I==null?void 0:I.getVideoData(),B=(O==null?void 0:O.isLive)||!1;O=O==null?void 0:O.video_id;B={videoDuration:uPM(I||void 0),isLive:B,videoId:O};B.videoId!==x.videoId&&(B=Object.assign({},_.vkU(I),B));if(P==null?0:P.playertype)B.playerType=P.playertype;if(I){B.captionsAvailable=!!I.getOptions("captions");P=B;var Y;O=(Y=I.getStoryboardLevel(I.getNumberOfStoryboardLevels()-1))==null?void 0:Y.intervalMs;P.storyboardInterval=O?O/1E3:void 0;B.captionsAvailable&&
(B.captionsEnabled=yl9(I))}B.volumeMuted=!(I==null||!I.isMuted());x.setState(B)}};
rzv=function(W){return function(P){var x=W(),I=x.playerApi;if(I){var O=I.getPresentingPlayerType();P={playedTime:P||0,percentLoaded:I.getVideoLoadedFraction(),playerType:O};x.playerState===0&&(P.playedTime=x.videoDuration);x.isLive&&(O=I.getProgressState(O),P.playedTime-=O.seekableStart,P.videoDuration=uPM(I));if(x.playerType===1)I=!1;else{var B;if((B=x.uxConfig)==null?0:B.showCuedOverlay){var Y;I=!((Y=x.playerApi)==null?0:Y.getPlayerStateObject(x.playerType).isDomPaused)}else I=!0}I&&delete P.playedTime;
x.setState(P)}}};
iU2=function(W){return function(){var P=W(),x,I,O,B={volume:(O=(x=P.playerApi)==null?void 0:x.getVolume())!=null?O:0,volumeMuted:!((I=P.playerApi)==null||!I.isMuted())};P.setState(B)}};
RIQ=function(W){return function(){var P=W(),x=P.playerApi;if(x){var I={captionsAvailable:!!x.getOptions("captions")};I.captionsAvailable&&(I.captionsEnabled=yl9(x));P.setState(I)}}};
FxB=function(W){return function(){var P=W();if(P.playerApi&&!(P.volumeMuted||P.controlsVisible&&P.isProbablyAScreenreaderUser)){P.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var x;(x=document.querySelector(".player-control-play-pause-icon"))==null||x.focus()}}};
qWm=function(W){return{appApi:Object.assign({},_.KKm(),{showCaptionsToggleToast:function(P){var x,I;(I=(x=W()).showCaptionsToggleToast)==null||I.call(x,P)},
openInMiniplayer:function(){var P,x;(x=(P=W()).openInMiniplayer)==null||x.call(P)}})}};
LxL=function(W,P){var x,I,O;return!!(W==null?0:(x=W.playerResponse)==null?0:(I=x.playerConfig)==null?0:(O=I.inlinePlaybackConfig)==null?0:O.showScrubbingControls)&&!(P==null?0:P.hideScrubbingControls)};
_.W9y=function(W){var P=!W.miniplayerIsActive;return[5,2,0].includes(W.miniplayerPlaybackState)||P};
P_9={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};xSm=function(W,P){var x,I,O,B,Y;_.y(function(K){if(!P.length)return K.return([]);x=[];I=_.n(P);for(O=I.next();!O.done;O=I.next())B=O.value,(Y=W.resolveIcon(B))&&!W.iconCache[Y.url]&&x.push(_.viM(W,Y).then(function(){}).catch(function(){}));
return K.return(Promise.all(x))})};
Ilf=function(W,P){var x=[];P=(new Set(P)).values();P=_.n(P);for(var I=P.next();!I.done;I=P.next()){I=I.value;for(var O=_.n(Object.values(P_9)),B=O.next();!B.done;B=O.next())x.push({iconName:I,iconStyle:B.value})}xSm(W.iconManager,x)};
_.O4G=function(W,P,x){var I=x!=null?x:W.iconsToFetch;I!=null&&I.length?P!==void 0&&P>=0?_.VE(_.Gr,function(){Ilf(W,I)},P):Ilf(W,I):Promise.resolve()};
dT3={};
kFv=function(W,P,x){var I=this;this.renderFn=W;this.listeners=P;this.context=x;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var O;this.lastSeenPlayerApi=_.b4((O=this.playerControlsData)==null?void 0:O.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.vkU(),void 0);_.p("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){bUm(I).setState({playerState:-1});I.resetRecentlyNavigatedJobId&&_.Gr.cancelJob(I.resetRecentlyNavigatedJobId);I.recentlyNavigated=
!0;I.resetRecentlyNavigatedJobId=_.Gr.addJob(function(){I.recentlyNavigated=!1},8,1E4)})};
kFv.prototype.setState=function(W){if(!_.p("mweb_player_skip_no_op_state_changes")||!sQQ(W,this.state))if(this.state=Object.assign({},this.state,W),!_.p("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)W=-1,_.p("player_controls_log_creation_killswitch")||vKd()||(W=(0,_.iA)()),_.CK("pcu_s"),_.CK("pcu_se"),_.CK("pcu_rs"),this.renderFn(bUm(this)),_.CK("pcu_re"),mTG(W),_.Gr.addJob(function(){_.CK("pcu_ap")},8)};
var bUm=function(W){var P;var x=_.b4((P=W.playerControlsData)==null?void 0:P.playerApi);return Object.assign({},W.state,{setState:W.boundSetState,domMeasurements:{progressBarLineRect:W.progressBarLineRect},playerApi:x,appApi:W.context.appApi,playerContainer:W.context.playerContainer,playerControlContainer:W.context.playerControlContainer,uxConfig:W.context.uxConfig})},Upy=function(W){W.listeners.forEach(function(P){W.eventListenerCleanupFunctions.push(P.register(function(){return bUm(W)},function(){return W.getData()}))})},
XnG=function(W){W.eventListenerCleanupFunctions.forEach(function(P){P()});
W.eventListenerCleanupFunctions.length=0};
kFv.prototype.getData=function(){return this.playerControlsData};
var OK=new _.R("abuseReportFlowState");var Jgv=new _.R("feedbackFormFlowState");var B14=new _.R("inputBoxViewModel");var nVM=new _.R("flowNextStepCommand");var YwL=new _.R("flowPrevStepCommand");var ygv=new _.R("updateFlowCommand");_.K9M=new _.R("flowStepRenderer");_.xpv=new _.R("lengthValidationRule");var OU6=new _.R("regexValidationRule");var Bv2=new _.R("selectedValidationRule");var Z43=new _.R("talkToRecsViewModel");var oV4=new _.R("creatorGoalSetUpFlowDropdownItemViewModel");var Sw6=new _.R("creatorGoalSetUpFlowDropdownViewModel");var wn4=new _.R("thumbnailBadgeViewModel");_.u8d=new _.R("radioButtonGroupViewModel");var Va3=new _.R("panelFooterViewModel");var dS2=new _.R("ypcCancelRecurrenceCommand");var sC6=new _.R("cancellationFlowState");var PN=new _.R("premiumPurchaseFlowState");var vV4=new _.R("surveyAnswerCardRenderer");var mSL=new _.R("showMoreButtonRenderer");var Vj2;var tjm,pJd=function(){if(tjm!==void 0)return tjm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Vj2===void 0&&(Vj2=document.createElement("template"));var I=Vj2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return tjm=W};var Jt=function(){var W=_.b.apply(this,arguments)||this;W.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";W.goalDescription="";W.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";W.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";W.startButtonId="start-button";W.exampleButtonId="example-button";return W};
_.A(Jt,_.b);_.J=Jt.prototype;_.J.getGoalDropdownItems=function(){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.purchaseTargetDropdown,Sw6))==null?void 0:P.dropdownItems};
_.J.getTimerDropdownItems=function(){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.timerDropdown,Sw6))==null?void 0:P.dropdownItems};
_.J.getColorDropdownItems=function(){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.colorDropdown,Sw6))==null?void 0:P.dropdownItems};
_.J.getDropdownItemText=function(W){var P;return(P=_.Q(W,oV4))==null?void 0:P.itemLabel};
_.J.getDropdownItemValue=function(W){W=_.Q(W,oV4);return(W==null?void 0:W.timeLimit)||(W==null?void 0:W.purchaseTarget)||(W==null?void 0:W.eligiblePurchaseType)};
_.J.updateFlowState=function(W){_.W7(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:W}])};
_.J.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.J.updateGoalValue=function(W){this.goal=W.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.J.onTextValueChanged=function(W){this.goalDescription=W.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.J.updateTimerValue=function(W){this.timer=W.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.J.updateTierValue=function(W){this.tier=W.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.J.getButtonViewModel=function(W){W=(W==null?void 0:W.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var P,x=_.Q((P=this.data)==null?void 0:P.startGoalButton,_.gp);return Object.assign({},x,{state:W})};
_.N1.Object.defineProperties(Jt,{template:{configurable:!0,enumerable:!0,get:function(){return pJd()}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Jt.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Jt.prototype,"goal",void 0);_.f([_.c(),_.l("design:type",Object)],Jt.prototype,"goalDescription",void 0);_.f([_.c(),_.l("design:type",Object)],Jt.prototype,"timer",void 0);_.f([_.c(),_.l("design:type",Object)],Jt.prototype,"tier",void 0);
_.f([_.c(),_.l("design:type",Object)],Jt.prototype,"startButtonId",void 0);_.f([_.c(),_.l("design:type",Object)],Jt.prototype,"exampleButtonId",void 0);Jt=_.f([_.jd({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Jt);_.X(Jt,"yt-creator-goal-set-up-flow-view-model",function(){return pJd()},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var jC6;var QCL;var C_B;var BN=function(){return _.b.apply(this,arguments)||this};
_.A(BN,_.b);_.f([_.c(),_.l("design:type",Object)],BN.prototype,"data",void 0);BN=_.f([_.jd({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],BN);
_.X(BN,"yt-survey-answer-card-renderer",function(){if(C_B===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;QCL===void 0&&(QCL=document.createElement("template"));var I=QCL;x.call(P,I.content.cloneNode(!0),W.content.firstChild);C_B=W}W=C_B;return W},{mode:2});var AgG;var z_2;var nY=function(){return _.b.apply(this,arguments)||this};
_.A(nY,_.b);_.J=nY.prototype;_.J.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.J.selectedItemChanged=function(W){_.W7(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[W.feedbackToken||""]}])};
_.J.surveyAnswerCardRendererClicked=function(W){if(W.target&&_.Q(W.model.item,vV4)){var P=W.target;W=_.Q(W.model.item,vV4);W.onTapCommand?_.OL(P,[W.onTapCommand],P):this.data.onTapCommand&&_.OL(P,[this.data.onTapCommand],P);this.selectedItemChanged(W)}};
_.J.checkIsCancellationStyle=function(W){return W==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.J.updateSelectedItemFromBinding=function(W){this.selectedItem=W.detail.value};
nY.prototype.onSelectedItemChanged=nY.prototype.onSelectedItemChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nY.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],nY.prototype,"selectedItem",void 0);_.f([_.c({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.l("design:type",Boolean)],nY.prototype,"isCancellationStyle",void 0);
_.f([_.OZ("selectedItem"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nY.prototype,"onSelectedItemChanged",null);nY=_.f([_.jd({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],nY);
_.X(nY,"yt-survey-flow-step-renderer",function(){if(z_2===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;AgG===void 0&&(AgG=document.createElement("template"));var I=AgG;x.call(P,I.content.cloneNode(!0),W.content.firstChild);z_2=W}W=z_2;return W},{mode:2});var YR=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return W};
_.A(YR,_.b);YR.prototype.handleSurveyFlowStepOptionChanged=function(W){this.ytdReduxBehavior.dispatch(_.LK({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:W}));_.W7(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],YR.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],YR.prototype,"data",void 0);YR=_.f([_.U({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],YR);
_.X(YR,"ytd-survey-flow-step-renderer",function(){if(jC6!==void 0)return jC6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return jC6=W},{mode:1});var VUO;VUO=_.CC({avatarViewModel:_.DI,buttonViewModel:_.cq,subscribeButtonViewModel:_.UwA,imageBannerViewModel:_.j3k});_.GBd=_.nE(_.p93);_.ql(_.p93);var EVd;var yu=function(){return _.b.apply(this,arguments)||this};
_.A(yu,_.b);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yu.prototype,"data",void 0);yu=_.f([_.U({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],yu);
_.X(yu,"ytd-channel-history-renderer",function(){if(EVd!==void 0)return EVd;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return EVd=W},{mode:1});var gV6;var KY=function(){return _.b.apply(this,arguments)||this};
_.A(KY,_.b);_.f([_.c(),_.l("design:type",Object)],KY.prototype,"data",void 0);KY=_.f([_.U({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],KY);
_.X(KY,"ytd-feature-enablement-info-renderer",function(){if(gV6!==void 0)return gV6;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gV6=W},{mode:1});var DSL;var Mjy;var ZX=function(){var W=_.b.apply(this,arguments)||this;W.textBoxMaxLength=_.p("enable_tvod_campaign_code_integration")?15:12;return W};
_.A(ZX,_.b);_.J=ZX.prototype;_.J.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.J.onSubmit=function(){var W=this.data.serviceEndpoint,P=_.Q(W,_.BO);P&&W&&(P.couponCode=this.userInput,_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}}))};
_.J.validate=function(){var W=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=W&&!this.data.errorMessage;this.showErrorMessage=W&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.p("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.J.computeStyle=function(W){return W};
_.J.computeShowValidationBelowInput=function(W){return W!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.J.updateUserInputFromBinding=function(W){this.userInput=W.currentTarget.value};
_.J.updateShowErrorMessageFromBinding=function(W){this.showErrorMessage=W.detail.value};
_.N1.Object.defineProperties(ZX.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
ZX.prototype.dataChanged=ZX.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ZX.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],ZX.prototype,"userInput",void 0);_.f([_.c(),_.l("design:type",Boolean)],ZX.prototype,"disableApplyButton",void 0);_.f([_.c(),_.l("design:type",Boolean)],ZX.prototype,"hideApplyButton",void 0);
_.f([_.c(),_.l("design:type",Boolean)],ZX.prototype,"hideErrorMessage",void 0);_.f([_.c(),_.l("design:type",Boolean)],ZX.prototype,"showTick",void 0);_.f([_.c(),_.l("design:type",Boolean)],ZX.prototype,"showErrorMessage",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],ZX.prototype,"couponStyle",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.l("design:type",Boolean)],ZX.prototype,"showValidationBelowInput",void 0);_.f([_.c(),_.l("design:type",Object)],ZX.prototype,"textBoxMaxLength",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZX.prototype,"dataChanged",null);
_.f([_.H("showTick","showErrorMessage","userInput"),_.l("design:type",String),_.l("design:paramtypes",[])],ZX.prototype,"validationState",null);ZX=_.f([_.U({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],ZX);
_.X(ZX,"ytd-ypc-coupon-renderer",function(){if(Mjy!==void 0)return Mjy;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Mjy=W},{mode:1});var o2=function(){return _.b.apply(this,arguments)||this};
_.A(o2,_.b);o2.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"}}}};
o2.prototype.computeStyle=function(W){return W};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],o2.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],o2.prototype,"buttonStyle",void 0);o2=_.f([_.U({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],o2);
_.X(o2,"ytd-flow-bottom-bar-renderer",function(){if(DSL!==void 0)return DSL;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return DSL=W},{mode:1});var $SG;var wJ3;var h_3;var S7=function(){return _.b.apply(this,arguments)||this};
_.A(S7,_.b);S7.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
S7.prototype.focus=function(W){this.title&&_.XG(this.title,W)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],S7.prototype,"data",void 0);_.f([_.BM("#title"),_.l("design:type",HTMLElement)],S7.prototype,"title",void 0);S7=_.f([_.U({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],S7);
_.X(S7,"ytd-flow-top-bar-renderer",function(){if(h_3!==void 0)return h_3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return h_3=W},{mode:1});var H42;var e_v;var cg6;var uf=function(){return _.b.apply(this,arguments)||this};
_.A(uf,_.b);uf.prototype.freeTextValueChanged=function(){_.W7(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
uf.prototype.updateFreeTextValueFromBinding=function(W){this.freeTextValue=W.detail.value};
_.N1.Object.defineProperties(uf.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(P=(W=this.data)==null?void 0:W.responseMaxLength)!=null?P:500,I;return((I=this.freeTextValue)!=null?I:"").length>=x?"maxed-out":""}}});
uf.prototype.freeTextValueChanged=uf.prototype.freeTextValueChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uf.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],uf.prototype,"freeTextValue",void 0);_.f([_.BM("#user-input"),_.l("design:type",HTMLTextAreaElement)],uf.prototype,"input",void 0);
_.f([_.H("freeTextValue"),_.l("design:type",Object),_.l("design:paramtypes",[])],uf.prototype,"characterLimitClass",null);_.f([_.OZ("freeTextValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uf.prototype,"freeTextValueChanged",null);uf=_.f([_.jd({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],uf);
_.X(uf,"yt-free-text-input-flow-step-renderer",function(){if(cg6===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;e_v===void 0&&(e_v=document.createElement("template"));var I=e_v;x.call(P,I.content.cloneNode(!0),W.content.firstChild);cg6=W}W=cg6;return W},{mode:2});var d4=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return W};
_.A(d4,_.b);d4.prototype.handleFreeTextFlowStepInputChanged=function(W){_.W7(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],d4.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],d4.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],d4.prototype,"data",void 0);d4=_.f([_.U({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],d4);
_.X(d4,"ytd-free-text-input-flow-step-renderer",function(){if(H42!==void 0)return H42;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return H42=W},{mode:1});var al3;var b42;var sK=function(){return _.b.apply(this,arguments)||this};
_.A(sK,_.b);_.f([_.c(),_.l("design:type",Object)],sK.prototype,"data",void 0);sK=_.f([_.U({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],sK);
_.X(sK,"ytd-metadata-line-renderer",function(){if(b42!==void 0)return b42;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return b42=W},{mode:1});var vN=function(){return _.b.apply(this,arguments)||this};
_.A(vN,_.b);vN.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vN.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],vN.prototype,"isMasthead",void 0);vN=_.f([_.U({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],vN);
_.X(vN,"ytd-media-product-renderer",function(){if(al3!==void 0)return al3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return al3=W},{mode:1});var kB6;var md=function(){return _.b.apply(this,arguments)||this};
_.A(md,_.b);md.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
md.prototype.onBillboardImageLoaded=function(){_.Lf(this.hostElement,"yt-refit")};
md.prototype.onBillboardImageLoaded=md.prototype.onBillboardImageLoaded;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],md.prototype,"data",void 0);_.f([_.BM("#billboardImage"),_.l("design:type",Object)],md.prototype,"billboardImage",void 0);_.f([_.I7("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],md.prototype,"onBillboardImageLoaded",null);
md=_.f([_.U({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],md);
_.X(md,"ytd-billboard-masthead-renderer",function(){if(kB6!==void 0)return kB6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return kB6=W},{mode:1});var US6;var Vu=function(){var W=_.b.apply(this,arguments)||this;W.smallSize=!1;return W};
_.A(Vu,_.b);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Vu.prototype,"ytComponentBehaviorType",void 0);_.f([_.c(),_.l("design:type",Object)],Vu.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Vu.prototype,"smallSize",void 0);Vu=_.f([_.U({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Vu);
_.X(Vu,"ytd-bullet-formatted-string",function(){if(US6!==void 0)return US6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return US6=W},{mode:1});var XJ9;var tt=function(){return _.b.apply(this,arguments)||this};
_.A(tt,_.b);tt.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],tt.prototype,"data",void 0);tt=_.f([_.U({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],tt);
_.X(tt,"ytd-offer-detail-renderer",function(){if(XJ9!==void 0)return XJ9;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return XJ9=W},{mode:1});var flf;var pY=function(){return _.b.apply(this,arguments)||this};
_.A(pY,_.b);pY.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],pY.prototype,"data",void 0);pY=_.f([_.U({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],pY);
_.X(pY,"ytd-offer-detail-step-renderer",function(){if(flf!==void 0)return flf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return flf=W},{mode:1});var N1d;var j7=function(){var W=_.b.apply(this,arguments)||this;W.isInOfferModule=!1;return W};
_.A(j7,_.b);_.J=j7.prototype;_.J.computeHasEndpoint=function(){var W;return!((W=this.data)==null||!W.onClickCommand)};
_.J.dataChanged=function(){var W;if((W=this.data)==null?0:W.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")};
_.J.detached=function(){var W;if((W=this.data)==null?0:W.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.J.handleClickEvent=function(){var W;if((W=this.data)==null?0:W.onClickCommand){var P;this.componentBehavior.resolveCommand((P=this.data)==null?void 0:P.onClickCommand)}};
_.J.onContentKeyDown=function(W){W.key==="Enter"?this.handleClickEvent(W):W.key===" "&&W.preventDefault()};
_.J.onContentKeyUp=function(W){W.key===" "&&this.handleClickEvent(W)};
j7.prototype.dataChanged=j7.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],j7.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],j7.prototype,"data",void 0);_.f([_.c({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],j7.prototype,"hasEndpoint",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],j7.prototype,"isInOfferModule",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j7.prototype,"dataChanged",null);j7=_.f([_.U({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],j7);
_.X(j7,"ytd-channel-masthead-renderer",function(){if(N1d!==void 0)return N1d;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return N1d=W},{mode:1});var llM;var Qu=function(){var W=_.b.apply(this,arguments)||this;W.thumbnailObjectFit="CONTAIN";W.thumbnailObjectPosition="LEFT";W.isExpanded=!1;return W};
_.A(Qu,_.b);_.J=Qu.prototype;_.J.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.J.dataChanged=function(){this.resetStates()};
_.J.computeisTapOnOfferInfoContainerEnabled=function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.J.onExpandBtnClick=function(){var W,P=_.Q((W=this.data)==null?void 0:W.showMoreButtonRenderer,mSL);P&&_.Kg(_.YY(),P.trackingParams);this.isExpanded=!this.isExpanded};
_.J.onOfferInfoClick=function(W){this.isTapOnOfferInfoContainerEnabled&&(_.Nx(_.c5(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.lh(_.c5(W)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.J.onBottomBarClick=function(){this.executeTapCommand()};
_.J.executeTapCommand=function(){var W,P=(W=this.data)==null?void 0:W.tapCommand;P&&this.ytComponentBehavior.resolveCommand(P)};
_.J.resetStates=function(){this.isExpanded=!1};
_.N1.Object.defineProperties(Qu.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var W=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),P,x,I;return((P=this.data)==null?void 0:P.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&W&&!!((x=this.data)==null?0:(I=x.benefits)==null?0:I.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((P=_.Q((W=this.data)==null?void 0:W.showMoreButtonRenderer,mSL))==null?void 0:P.showMoreButtonTitle)||((x=this.data)==null?void 0:x.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((P=_.Q((W=this.data)==null?void 0:W.showMoreButtonRenderer,mSL))==null?void 0:P.showLessButtonTitle)||((x=this.data)==null?void 0:x.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var W;return(W=this.showLessButtonTitle)!=null?W:""}var P;return(P=this.showMoreButtonTitle)!=null?P:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((P=this.data)==null?0:P.footerTitle)||((x=this.data)==null?0:x.footerSubtitle))}}});
Qu.prototype.dataChanged=Qu.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Qu.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Qu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",String)],Qu.prototype,"thumbnailObjectFit",void 0);
_.f([_.c(),_.l("design:type",String)],Qu.prototype,"thumbnailObjectPosition",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.l("design:type",Boolean)],Qu.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.f([_.c(),_.l("design:type",Object)],Qu.prototype,"isExpanded",void 0);_.f([_.c(),_.l("design:type",Object)],Qu.prototype,"data",void 0);_.f([_.c({computed:"computeIcon_(data.footerIcon)"}),_.l("design:type",String)],Qu.prototype,"icon",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qu.prototype,"dataChanged",null);_.f([_.H("data.thumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qu.prototype,"hasThumbnail",null);_.f([_.H("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qu.prototype,"enableExpandButton",null);
_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qu.prototype,"enableOfferContentIcon",null);_.f([_.H("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qu.prototype,"showMoreButtonTitle",null);_.f([_.H("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qu.prototype,"showLessButtonTitle",null);
_.f([_.H("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.l("design:type",String),_.l("design:paramtypes",[])],Qu.prototype,"expandedBtnText",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qu.prototype,"enableBottomBar",null);Qu=_.f([_.U({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Qu);
_.X(Qu,"ytd-offer-card-renderer",function(){if(llM!==void 0)return llM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return llM=W},{mode:1});var T1y;var CY=function(){return _.b.apply(this,arguments)||this};
_.A(CY,_.b);CY.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"}}}};
CY.prototype.onClick=function(W){if(!_.Nx(W.composedPath()||[],this.hostElement,["A".toString()])){var P,x;if((W=(x=_.Q((P=this.data)==null?void 0:P.actionButton,_.w6))==null?void 0:x.command)&&!this.ytComponentBehavior.resolveCommand(W)){var I;(I=_.YY())==null||I.clickCommand(W);_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}})}}};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],CY.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],CY.prototype,"data",void 0);CY=_.f([_.U({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],CY);
_.X(CY,"ytd-offer-content-renderer",function(){if(T1y!==void 0)return T1y;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return T1y=W},{mode:1});var rgm;var At=function(){return _.b.apply(this,arguments)||this};
_.A(At,_.b);At.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.N1.Object.defineProperties(At.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.title)||!((P=this.data)==null||!P.description)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],At.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],At.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],At.prototype,"hasHeaderData",null);At=_.f([_.U({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],At);
_.X(At,"ytd-offer-section-renderer",function(){if(rgm!==void 0)return rgm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return rgm=W},{mode:1});var i4m;var zj=function(){return _.b.apply(this,arguments)||this};
_.A(zj,_.b);
zj.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"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],zj.prototype,"data",void 0);zj=_.f([_.U({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],zj);
_.X(zj,"ytd-offer-selection-step-renderer",function(){if(i4m!==void 0)return i4m;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return i4m=W},{mode:1});var R_Q;var Gj=function(){return _.b.apply(this,arguments)||this};
_.A(Gj,_.b);Gj.prototype.computeStyle=function(W){return W};
Gj.prototype.computeImageWidth=function(W){return W==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.f([_.c({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.l("design:type",String)],Gj.prototype,"containerStyle",void 0);_.f([_.c({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.l("design:type",String)],Gj.prototype,"imageWidth",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Gj.prototype,"data",void 0);
Gj=_.f([_.U({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Gj);
_.X(Gj,"ytd-confirmation-masthead-renderer",function(){if(R_Q!==void 0)return R_Q;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return R_Q=W},{mode:1});var F9m;var EK=function(){return _.b.apply(this,arguments)||this};
_.A(EK,_.b);EK.prototype.computeStyle=function(W){return W};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],EK.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.l("design:type",String)],EK.prototype,"containerStyle",void 0);EK=_.f([_.U({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],EK);
_.X(EK,"ytd-purchase-complete-detail-renderer",function(){if(F9m!==void 0)return F9m;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return F9m=W},{mode:1});var qw2;var g4=function(){var W=_.b.apply(this,arguments)||this;W.scriptsAppended=!1;return W};
_.A(g4,_.b);g4.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"}}}};
g4.prototype.onDataChanged=function(){var W=this.get("data.gtmId");W&&(_.db(W,_.$$("GL","")),this.setupConversionTracking())};
g4.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
g4.prototype.onDataChanged=g4.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],g4.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],g4.prototype,"scriptsAppended",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g4.prototype,"onDataChanged",null);g4=_.f([_.U({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],g4);
_.X(g4,"ytd-purchase-complete-step-renderer",function(){if(qw2!==void 0)return qw2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return qw2=W},{mode:1});var L93;var DX=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(DX,_.b);DX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],DX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],DX.prototype,"darkerDarkTheme",void 0);DX=_.f([_.U({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],DX);
_.X(DX,"ytd-ypc-transaction-error-message-renderer",function(){if(L93!==void 0)return L93;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return L93=W},{mode:1});var Wk2;var PPB;var Mh=function(){var W=_.b.apply(this,arguments)||this;W.handlePhoneVerificationSuccess=function(P){if(W.isValidPhoneVerificationCompletionMessageEvent(P)){var x;((x=W.data)==null?0:x.nextStepCommand)&&W.ytComponentBehavior.resolveCommand(W.data.nextStepCommand)}};
return W};
_.A(Mh,_.b);Mh.prototype.isValidPhoneVerificationCompletionMessageEvent=function(W){if(W.data!=="yt-phone-verification-complete")return!1;W=_.lP(W.origin);return W!==null&&W.includes("youtube.com")};
Mh.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Mh.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Mh.prototype,"data",void 0);Mh=_.f([_.jd({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Mh);
_.X(Mh,"yt-feature-enablement-soft-entry-renderer",function(){if(PPB===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Wk2===void 0&&(Wk2=document.createElement("template"));var I=Wk2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);PPB=W}W=PPB;return W},{mode:1});var xRO;var I$v;var OX4;var JQB;var $R=function(){return _.b.apply(this,arguments)||this};
_.A($R,_.b);_.f([_.c(),_.l("design:type",Object)],$R.prototype,"data",void 0);$R=_.f([_.jd({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],$R);
_.X($R,"yt-benefits-item-renderer",function(){if(JQB===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;OX4===void 0&&(OX4=document.createElement("template"));var I=OX4;x.call(P,I.content.cloneNode(!0),W.content.firstChild);JQB=W}W=JQB;return W},{mode:2});var Bo2;var n$Q;var w4=function(){return _.b.apply(this,arguments)||this};
_.A(w4,_.b);w4.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
w4.prototype.computeisWithoutPadding=function(){var W;return((W=this.data)==null?void 0:W.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],w4.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.l("design:type",Boolean)],w4.prototype,"isWithoutPadding",void 0);w4=_.f([_.jd({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],w4);
_.X(w4,"yt-benefits-section-renderer",function(){if(n$Q===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Bo2===void 0&&(Bo2=document.createElement("template"));var I=Bo2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);n$Q=W}W=n$Q;return W},{mode:2});var ht=function(){return _.b.apply(this,arguments)||this};
_.A(ht,_.b);ht.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
ht.prototype.computeisUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ht.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.l("design:type",Boolean)],ht.prototype,"isUsingLargeWidth",void 0);ht=_.f([_.jd({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],ht);
_.X(ht,"yt-benefits-flow-step-renderer",function(){if(I$v===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;xRO===void 0&&(xRO=document.createElement("template"));var I=xRO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);I$v=W}W=I$v;return W},{mode:2});var YVO;var yQB;var HN=function(){return _.b.apply(this,arguments)||this};
_.A(HN,_.b);HN.prototype.checkIsUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.f([_.c(),_.l("design:type",Object)],HN.prototype,"data",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.f([_.c({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.l("design:type",Boolean)],HN.prototype,"isUsingLargeWidth",void 0);HN=_.f([_.jd({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],HN);
_.X(HN,"yt-confirmation-flow-step-renderer",function(){if(yQB===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;YVO===void 0&&(YVO=document.createElement("template"));var I=YVO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);yQB=W}W=yQB;return W},{mode:2});var Kk9;var ZX6;var e7=function(){return _.b.apply(this,arguments)||this};
_.A(e7,_.b);_.f([_.c(),_.l("design:type",Object)],e7.prototype,"data",void 0);e7=_.f([_.jd({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],e7);
_.X(e7,"yt-info-flow-step-renderer",function(){if(ZX6===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Kk9===void 0&&(Kk9=document.createElement("template"));var I=Kk9;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ZX6=W}W=ZX6;return W},{mode:2});var o$m;var SVB;var cN=function(){return _.b.apply(this,arguments)||this};
_.A(cN,_.b);_.f([_.c(),_.l("design:type",Object)],cN.prototype,"data",void 0);cN=_.f([_.jd({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],cN);
_.X(cN,"yt-info-list-flow-step-renderer",function(){if(SVB===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;o$m===void 0&&(o$m=document.createElement("template"));var I=o$m;x.call(P,I.content.cloneNode(!0),W.content.firstChild);SVB=W}W=SVB;return W},{mode:2});var uY3=_.kl(function(W){var P=W.data;return _.u("styled-text-view-model",{class:_.O4("ytStyledTextViewModelHost",function(){return h63(P().fontAttributes)},function(){return w9f(P().color)})},_.u(_.mQ,{text:function(){return P().text},
ariaLabel:function(){var x,I,O;return(O=(x=P().accessibility)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label)!=null?O:""}}))},"Re");
uY3.idomCompat=!0;var dRf=_.kl(function(W){var P=function(){var O,B,Y,K;return(K=(Y=(O=W.alt)==null?void 0:O.call(W))!=null?Y:(B=W.data().accessibilityData)==null?void 0:B.label)!=null?K:""},x=function(){return W.data().imageWidth},I=function(){return W.data().imageHeight};
return _.u("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.u(_.V,{cond:function(){var O=W.data();if(O){var B,Y,K;var Z=((B=_.FY().resolve(_.Rl(_.hF)))==null?0:B())?(Y=O.imageDark)!=null?Y:O.imageLight:(K=O.imageLight)!=null?K:O.imageDark}else Z=void 0;return Z},
then:function(O){return _.u(_.bq,Object.assign({},W,{data:O,alt:P,targetWidth:x,targetHeight:I,preserveHeight:!0,preserveWidth:!0}))}}))},"Se");
dRf.idomCompat=!0;var a2=_.kl(function(W){var P=W.data;W=_.a7(function(){return P().slots},[]);
var x=_.a7(function(){return P().layoutProperties},{}),I=_.FY().resolve(_.eS);
return _.u("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:EKG(x,I)},_.u(_.sV,{each:W,keyBy:"INDEX"},function(O){return _.u("div",{class:"ytContainerLayoutViewModelSlot",style:EKG(function(){return O().layoutProperties},I)},_.u(_.Ea,{data:function(){return O().contents}},{containerLayoutViewModel:a2,
badgeViewModel:_.N0,buttonViewModel:_.cq,styledTextViewModel:uY3,contentPreviewImageViewModel:function(B){return _.u(_.lW,{data:B.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(B){return _.u(dRf,{data:B.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Te");
a2.idomCompat=!0;var sl4=_.kl(function(W){var P=W.data;var x=W.stateFns;var I=function(){var d=P(),v=d.productId;return!(!d.clearGroupId&&!v)},O=function(){var d=P(),v=d.clearGroupId;
return(d=d.productId)?x().isProductSelected(d):v?x().getSelectedProductByGroupId(v)==null:!1},B=function(){var d=P(),v=d.clearGroupId;
if(d=d.productId)x().onProductSelected(d);else if(v)x().onClearGroupSelected(v)},Y=function(){var d=P(),v=d.clearGroupId;
if(d=d.productId){var m;return"group:"+(((m=x().getProductById(d))==null?void 0:m.groupId)||"")}return v?"group:"+v:""},K=_.a7(function(){return P().header},[]),Z=_.a7(function(){return P().body},[]);
return _.u("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.u(_.V,{cond:function(){return K().length>0||I()},
then:function(){return _.u("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.u("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.u(_.Ea,{data:K},{containerLayoutViewModel:function(d){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(a2,{data:d.data}))},
styledTextViewModel:function(d){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(uY3,{data:d.data}))}})),_.u(_.V,{cond:I,
then:function(){return _.u("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.u(_.VX,{checked:O,name:Y,onChange:B}))}}))}}),_.u(_.V,{cond:function(){return Z().length>0},
then:function(){return _.u("div",null,_.u(_.Ea,{data:Z},{containerLayoutViewModel:function(d){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(a2,{data:d.data}))}}))}}))},"Ue");
sl4.idomCompat=!0;var v$6=_.kl(function(W){var P=W.data;var x=W.stateFns;return _.u("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.u(_.V,{cond:function(){return P().banner},
then:function(I){return _.u("div",{class:"ytPdpCardViewModelBanner"},_.u(_.mQ,{text:I}))}}),_.u(_.Ea,{data:function(){return P().sections}},{pdpCardSectionViewModel:function(I){I=I.data;
var O={};return _.u("div",{class:_.O4("ytPdpCardViewModelSectionContainer",(O.ytPdpCardViewModelShowDividers=function(){return P().showDividers},O))},_.u(sl4,{data:I,
stateFns:x}))}}))},"Ve");
v$6.idomCompat=!0;var mRM=_.kl(function(W){var P=W.data;var x=W.isOverlay;W={};return _.u("pdp-masthead-view-model",{class:_.O4("ytPdpMastheadViewModelHost",(W.ytPdpMastheadViewModelIsOverlay=x,W))},_.u(_.Ea,{data:function(){return P().image}},{contentPreviewImageViewModel:_.lW,
themedImageViewModel:function(I){return _.u(dRf,{data:I.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.u(_.V,{cond:function(){return P().title},
then:function(I){return _.u("h1",{class:"ytPdpMastheadViewModelHeading"},_.u(_.mQ,{text:I,isOverlay:x}))}}),_.u(_.sV,{each:function(){var I;
return(I=P().finePrint)!=null?I:[]}},function(I){return _.u("div",{class:"ytPdpMastheadViewModelFinePrint"},_.u(_.mQ,{text:I,
isOverlay:x}))}))},"We");
mRM.idomCompat=!0;var VLQ=_.kl(function(W){var P=W.data;var x=W.stateFns;return _.u("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.u(_.sV,{each:function(){var I=x().getSelectedPricingOptions().map(function(B){return B.pricingOptionId}),O=x().getSelectedProductByGroupId(P().groupId);
return O?O.pricingOptions.map(function(B){return{pricingOption:B,isSelected:I.includes(B.pricingOptionId)}}):(_.EA(Error("Gj`"+P().groupId)),[])},
keyBy:"INDEX"},function(I){return _.u("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.u("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.u(_.Ea,{data:function(){return I().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:a2})),_.u("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.u(_.VX,{checked:function(){return I().isSelected},
onClick:function(){x().onPricingOptionSelected(I().pricingOption.pricingOptionId);var O=I().pricingOption.onSelectPricingOption;if(O=_.AF(O)){var B;(B=_.FY().resolve(_.qR))==null||B.resolveCommand(O)}}})))}))},"Xe");
VLQ.idomCompat=!0;var tL3=_.kl(function(W){var P=W.data;var x=W.stateFns;return _.u("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.u(_.Ea,{data:function(){var I,O;return(O=(I=x().getSelectedPricingOptions()[0])==null?void 0:I.primaryButton)!=null?O:P().emptyStateButton}},{buttonViewModel:_.cq}))},"Ye");
tL3.idomCompat=!0;var poL=_.kl(function(W){var P=W.stateFns;return _.u("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.u(_.Ea,{data:function(){return P().getSelectedPricingOptions().flatMap(function(x){return x.summaryLines}).filter(function(x){return!!x})}},{containerLayoutViewModel:function(x){return _.u("div",{class:"ytPdpSummaryViewModelLineItem"},_.u(a2,{data:x.data}))}}))},"Ze");
poL.idomCompat=!0;var jl2=_.kl(function(W){function P(w){var a=Y();_.cM(_.$s("pdpStateEntity",a,{key:a,selectedPricingOptions:w}))}
var x=W.data;var I=W.internalScrolling;var O=W.stateFnsForTesting;var B=_.a7(function(){return x().allProducts},[]),Y=_.a7(function(){return x().pdpStateEntityKey},""),K=_.dp(H53,Y),Z=_.Sj(function(){_.zB(!0);
var w;return(w=O==null?void 0:O())!=null?w:X9m(K,B,P)},void 0,"POBqwe"),d=_.a7(function(){return x().body},[]),v=_.a7(function(){return x().columnBreakHints},[]),m=function(){return x().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},t=function(){return m()||x().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},C=_.Sj(function(){var w=_.LC(x().background),a;
if(w==null?0:(a=w.sources)==null?0:a.length){var k=k===void 0?!0:k;w=_.jAR(void 0,w.sources,void 0,k,k?1E3:void 0,k?void 0:1E3)}else w=null;return w},void 0,"BkCmEd");
W=_.oP({"--pdp-view-model-background":function(){return C()?"url("+C()+")":void 0}});
var z={};I=_.O4("ytPdpViewModelHost",(z.ytPdpViewModelHasBackground=function(){return t()||!!C()},z.ytPdpViewModelHasDarkBackground=t,z.ytPdpViewModelHasScrim=m,z.ytPdpViewModelInternalScrolling=_.a7(I,!1),z));
var D=function(w){var a={};return _.O4("ytPdpViewModelItem",(a.ytPdpViewModelFullBleed=function(){return _.uIt(w())==="dividerViewModel"||_.uIt(w())==="sectionHeaderViewModel"},a.ytPdpViewModelNoVerticalPadding=function(){return _.uIt(w())==="sectionHeaderViewModel"},a))};
_.AQ(function(){var w=x().onStartCommand;if(w&&(w=_.AF(w))){var a;(a=_.FY().resolve(_.qR))==null||a.resolveCommand(w)}});
return _.u("pdp-view-model",{class:I,style:W},_.u("div",{class:"ytPdpViewModelColumnContainer"},_.u(_.sV,{each:function(){return fCv(d(),v())},
keyBy:"INDEX"},function(w){return _.u("div",{class:"ytPdpViewModelColumn"},_.u(_.Ea,{data:w},{containerLayoutViewModel:function(a,k){a=a.data;return _.u("div",{class:D(function(){return w()[k()]})},_.u(a2,{data:a}))},
dividerViewModel:function(a,k){a=a.data;return _.u("div",{class:D(function(){return w()[k()]})},_.u(_.Ehd,{data:a}))},
pdpCardViewModel:function(a,k){a=a.data;return _.u("div",{class:D(function(){return w()[k()]})},_.u(v$6,{data:a,
stateFns:Z}))},
pdpMastheadViewModel:function(a,k){a=a.data;return _.u("div",{class:D(function(){return w()[k()]})},_.u(mRM,{data:a,
isOverlay:t}))},
pdpPricingOptionSelectorViewModel:function(a,k){a=a.data;return _.u("div",{class:D(function(){return w()[k()]})},_.u(VLQ,{data:a,
stateFns:Z}))},
pdpPrimaryButtonViewModel:function(a,k){a=a.data;return _.u("div",{class:D(function(){return w()[k()]})},_.u(tL3,{data:a,
stateFns:Z}))},
pdpSummaryViewModel:function(a,k){a=a.data;return _.u("div",{class:D(function(){return w()[k()]})},_.u(poL,{data:a,
stateFns:Z}))},
sectionHeaderViewModel:function(a,k){a=a.data;return _.u("div",{class:D(function(){return w()[k()]})},_.u(_.qX,{data:a}))}}))})))},"$e");
jl2.idomCompat=!0;_.lq(jl2,"pdp-view-model",{props:{data:_.cv,stateFnsForTesting:_.Ng,internalScrolling:_.Ng}});var Qlv=_.kl(function(W){var P=W.data;var x=W.className;var I=_.dp(_.BX,function(){return P().flowStateEntityKey});
return _.u("ytm-premium-purchase-button-renderer",{class:_.O4("yt-premium-purchase-button-renderer",x)},_.u(_.Ea,{data:function(){var O;return(O=_.Q(I(),PN))==null?void 0:O.primaryButtonOverride}},{buttonRenderer:function(O){return _.u(_.wZ,{data:O.data,
className:x})},
buttonViewModel:function(O){return _.u(_.cq,{data:O.data,className:x})}}))},"af");
Qlv.idomCompat=!0;var CPv=_.kl(function(W){var P=W.data;var x=function(){return NJ9(P().style)},I=_.O4("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",x),O=_.O4("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",x);
return _.u("yt-flow-bottom-bar-renderer",{class:_.O4("yt-flow-bottom-bar-renderer",W.className,x)},_.u(_.Ea,{data:function(){return P().secondaryButton}},{buttonRenderer:function(B){return _.u(_.wZ,{data:B.data,
className:O})},
buttonViewModel:function(B){return _.u(_.cq,{data:B.data,className:O})},
premiumPurchaseButtonRenderer:function(B){return _.u(Qlv,{data:B.data,className:O})}}),_.u(_.Ea,{data:function(){return P().primaryButton}},{buttonRenderer:function(B){return _.u(_.wZ,{data:B.data,
className:I})},
buttonViewModel:function(B){return _.u(_.cq,{data:B.data,className:I})},
premiumPurchaseButtonRenderer:function(B){return _.u(Qlv,{data:B.data,className:I})}}))},"bf");
CPv.idomCompat=!0;_.lq(CPv,"yt-flow-bottom-bar-renderer",{props:{data:_.cv,className:_.cv}});var AQ9=_.kl(function(W){return _.u("yt-offer-summary-renderer",{class:_.O4(W.className,"ytOfferSummaryRendererHost")},_.u("div",{class:"ytOfferSummaryRendererTextContainer"},_.u("div",{class:"ytOfferSummaryRendererEyebrowText"},_.u(_.mQ,{text:function(){return W.data().eyebrowText}})),_.u("div",{class:"ytOfferSummaryRendererTitle"},_.u(_.mQ,{text:function(){return W.data().title}})),_.u("div",{class:"ytOfferSummaryRendererSubtitle"},_.u(_.mQ,{text:function(){return W.data().subtitle}})),_.u("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.u(_.sV,{each:function(){var P;
return(P=W.data().featureListData)!=null?P:[]}},function(P){var x;
return _.u("div",{class:"ytOfferSummaryRendererFeatureList"},_.u(_.Sy,{icon:(x=P.icon)==null?void 0:x.iconType,className:P.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.u("div",{class:"ytOfferSummaryRendererFeatureListText"},_.u(_.mQ,{text:P.text})))})),_.u("div",{class:"ytOfferSummaryRendererDescription"},_.u(_.mQ,{text:function(){return W.data().description}}))))},"cf");_.lq(_.kl(function(W){var P={};P=_.O4("ytOfferSummaryFlowStepRendererHost",(P.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=W.shouldDisableHeaderTopMargin,P));return _.u("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:P},_.u("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.u("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.u(_.mQ,{text:function(){return W.data().header}})),_.u("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.u(_.mQ,{text:function(){return W.data().subtitle}}))),_.u("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.u(_.Ea,{data:function(){return W.data().offerSummary}},{offerSummaryRenderer:function(x){return _.u(AQ9,{data:x.data,
className:W.flowClassName})}})))},"df"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Ng,
flowClassName:_.Ng,flowStateEntityKey:_.Ng,shouldDisableHeaderTopMargin:_.Ng}});var ziG=_.kl(function(W){var P=W.data;var x=W.className;var I=W.flowStateEntityKey;var O=W.selectionStepStyle;W=_.yB(function(Z){var d=P(),v=I==null?void 0:I();Z.target&&(Z.stopPropagation(),Z=v||"",v=_.BX(_.HM().getState(),Z),d=Object.assign({},v,{premiumPurchaseFlowState:{selectedOptionId:d.optionId,primaryButtonOverride:d.primaryButtonOverride}}),_.HM().dispatch(_.mG("flowStateEntity",Z,d)));return!1});
var B=function(){return(I==null?void 0:I())||""},Y=_.dp(_.BX,B);
_.AQ(function(){var Z=P(),d=B(),v=Y();!_.Q(v,PN)&&Z.defaultSelected&&d!==""&&Z.primaryButtonOverride&&lCm(Z.optionId||"",d,Z.primaryButtonOverride,v)});
var K={};return _.u("ytm-option-item-renderer",{"on:click":W,class:_.O4(x,"ytm-option-item-renderer",(K["ytm-option-item-renderer--lp2-style"]=function(){return(O==null?void 0:O())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},K))},_.u("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.u("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var Z=P(),d=B(),v=Y();v=_.Q(v,PN);return(v?(v==null?void 0:v.selectedOptionId)||"":Z.defaultSelected&&d!==""?(Z==null?void 0:Z.optionId)||"":"")===P().optionId},
name:("input"+_.$1(_.vQ)).toString()})),_.u("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.u(_.V,{cond:function(){return P().eyebrowText},
then:function(){return _.u("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.u(_.mQ,{text:function(){return P().eyebrowText}}))}}),_.u("div",{class:"ytm-option-item-renderer__option-item-title"},_.u(_.mQ,{text:function(){return P().title}})),_.u("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.u(_.mQ,{text:function(){return P().subtitle}})),_.u("div",{class:"ytm-option-item-renderer__option-item-description"},_.u(_.mQ,{text:function(){return P().description}}))))},
"ef");var GOd=_.kl(function(W){var P=W.data;var x=W.flowClassName;var I=W.flowStateEntityKey;var O=W.selectionStepStyle;return _.u("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.u("div",{class:"yt-option-section-renderer__option-section-header-section"},_.u("div",{class:"yt-option-section-renderer__option-section-header"},_.u(_.mQ,{text:function(){return P().title}}),_.u(_.Ea,{data:function(){return P().titleBadge}},{badgeViewModel:function(B){return _.u(_.N0,
{data:B.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.u(_.V,{cond:function(){return P().subtitle},
then:function(){return _.u("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.u(_.mQ,{text:function(){return P().subtitle}}))}}),_.u(_.V,{cond:function(){return P().featureListData},
then:function(B){return _.u("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.u(_.sV,{each:B},function(Y){var K;return _.u("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.u(_.Sy,{icon:(K=Y.icon)==null?void 0:K.iconType,className:Y.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.u("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.u(_.mQ,{text:Y.text})))}))}}),_.u(_.sV,{each:function(){return P().sectionDisclaimers||[]}},function(B){return _.u("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.u(_.mQ,{text:B}))})),_.u(_.Ea,{data:function(){return P().optionItems}},{optionItemRenderer:function(B){return _.u("div",{class:"yt-option-section-renderer__option-item"},_.u(ziG,{data:B.data,
className:x,flowStateEntityKey:I,selectionStepStyle:O}))}}),_.u(_.V,{cond:function(){return P().offerText},
then:function(){return _.u("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.u(_.mQ,{text:function(){return P().offerText}}))}}))},"ff");
GOd.idomCompat=!0;var E$Q=_.kl(function(W){var P=W.data;var x=W.flowClassName;var I=W.flowStateEntityKey;W=W.isDesktop;var O=function(){var d;return(d=P().flowStateEntityKey)!=null?d:I==null?void 0:I()},B=function(){return(O==null?void 0:O())||""},Y=function(){return P().style},K=_.dp(_.BX,B);
_.AQ(function(){var d=P(),v=B(),m=K();!_.Q(m,PN)&&d.noPreselect&&v!==""&&d.defaultButtonOverride&&lCm("default",v,d.defaultButtonOverride,m)});
var Z={};return _.u("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.O4("ytm-option-selection-flow-step-renderer",(Z["ytm-option-selection-flow-step-renderer--desktop"]=W,Z["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return P().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Z))},_.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.u(_.mQ,{text:function(){return P().header}})),_.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.u(_.mQ,{text:function(){return P().subtitle}}))),_.u(_.Ea,{data:function(){return P().optionItems||[]}},{optionItemRenderer:function(d){return _.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.u(ziG,{data:d.data,
className:x,flowStateEntityKey:O,selectionStepStyle:Y}))},
optionSectionRenderer:function(d){return _.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.u(GOd,{data:d.data,flowClassName:x,flowStateEntityKey:O,selectionStepStyle:Y}))}}))},"gf");
E$Q.idomCompat=!0;_.lq(E$Q,"yt-option-selection-flow-step-renderer",{props:{data:_.cv,flowClassName:_.cv,flowStateEntityKey:_.cv,isDesktop:_.cv}});var TJd,rl4;_.bf=_.kl(function(W){var P=_.bw(W,{type:1,disablePadding:!1,disablePrimaryButton:!1}),x=P.data,I=P.type;W=P.disablePadding;var O=P.disablePrimaryButton,B=P.onClickPrimaryButton,Y=function(){return x().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},K=function(){return{disabled:O(),
state:O()?"disabled":"active"}},Z=function(){return x().leadingLabel||x().trailingLabel};
P={};return _.u("yt-panel-footer-view-model",{class:_.O4("yt-panel-footer-view-model-wiz",(P["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return x().shouldHideDivider},P["yt-panel-footer-view-model-wiz--disable-padding"]=W,P))},_.u(_.V,{cond:Z,
then:function(){var d={},v={};return _.u("div",{class:_.O4("yt-panel-footer-view-model-wiz__text-row",(d["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var m=x();return!(!m.leadingLabel&&!m.trailingLabel||!m.primaryButton&&!m.secondaryButton)},d))},_.u(_.mQ,{text:function(){return x().leadingLabel},
className:_.O4((v["yt-panel-footer-view-model-wiz--text-padding"]=Z,v))}),_.u(_.mQ,{text:function(){return x().trailingLabel}}))}}),_.u(_.V,{cond:Y,
then:function(){var d={};return _.u("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.u("div",{class:_.O4("yt-panel-footer-view-model-wiz__primary-button",(d["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return x().secondaryButton},d))},_.u(_.Ea,{data:function(){return x().primaryButton}},{buttonViewModel:function(v){return _.u(_.cq,{data:v.data,
buttonOverrides:K,onClick:B})}})),_.u(_.Ea,{data:function(){return x().secondaryButton}},{buttonViewModel:_.cq}))}}),_.u(_.V,{cond:function(){return!Y()},
then:function(){var d={},v={},m={};return _.u("div",{class:_.O4("yt-panel-footer-view-model-wiz__button-row",(d["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===I()},d))},_.u("div",{class:_.O4("yt-panel-footer-view-model-wiz__button-row--left-button",(v["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===I()},v["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!x().secondaryButton||0===I()},v["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===I()},v))},_.u(_.Ea,{data:function(){return x().secondaryButton}},{buttonViewModel:_.cq})),_.u("div",{class:_.O4("yt-panel-footer-view-model-wiz__primary-button",(m["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===I()||1===I()},m["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===I()},m))},_.u(_.Ea,{data:function(){return x().primaryButton}},{buttonViewModel:function(t){return _.u(_.cq,{data:t.data,
buttonOverrides:K,onClick:B})}})))}}))},"hf");
_.bf.idomCompat=!0;_.g$O=_.kl(function(W){W=_.bw(W,{disablePadding:!1});var P=W.data,x=W.disablePadding;W=_.qhO(function(){return P().formId});
var I=W.onSubmit,O=W.isValid,B=W.isSubmitting;return _.u("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.u(_.Ea,{data:function(){return P().panelFooter}},{panelFooterViewModel:function(Y){return _.u(_.bf,{data:Y.data,
onClickPrimaryButton:function(){I()},
disablePrimaryButton:function(){return!O()||B()},
disablePadding:x})}}))},"jf");_.lq(_.g$O,"yt-form-footer-view-model",{props:{data:_.cv,disablePadding:_.cv}});_.lq(_.kl(function(W){return _.u("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.u(_.V,{cond:function(){var P;return(P=W.data())==null?void 0:P.image},
then:function(P){return _.u(_.bq,{data:P,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.u(_.mQ,{text:function(){var P;
return(P=W.data())==null?void 0:P.title}})),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.u(_.mQ,{text:function(){var P;
return(P=W.data())==null?void 0:P.subtitle}})),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.u(_.Ea,{data:function(){var P;
return(P=W.data())==null?void 0:P.viewTipsButton}},{buttonViewModel:_.cq}))))},"kf"),"yt-contributor-zero-state-view-model",{props:{data:_.cv}});var DRy=_.kl(function(W){var P=_.dp(LY4,_.a7(function(){var x;return(x=W.data())==null?void 0:x.noteFeedEntityKey},""));
return _.u("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.u(_.V,{cond:function(){var x,I;return(x=W.data())==null?void 0:(I=x.noteData)==null?void 0:I.isPinned},
then:function(){return _.u(_.Sy,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.u(_.mQ,{text:function(){var x,I;
return(x=W.data())==null?void 0:(I=x.noteData)==null?void 0:I.headerText}}),_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.u(_.mQ,{text:function(){var x,I;
return(x=W.data())==null?void 0:(I=x.noteData)==null?void 0:I.delimiter}})),_.u(_.mQ,{text:function(){var x,I;
return(x=P())==null?void 0:(I=x.contributorNote)==null?void 0:I.publishedTimeText}})),_.u(_.Ea,{data:function(){var x,I,O,B=(x=W.data())==null?void 0:x.noteData;
x=(I=P())==null?void 0:(O=I.contributorNote)==null?void 0:O.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:B.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:B.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:B.deleteDialogTitle}]},dialogMessages:[{runs:[{text:B.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:B.deleteActionText}]},command:{performCommentActionEndpoint:{action:x}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:B.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.u("div",{class:"ytNoteViewModelNoteContent"},_.u(_.mQ,{text:function(){var x,I;
return(x=P())==null?void 0:(I=x.contributorNote)==null?void 0:I.text}})))},"lf");
DRy.idomCompat=!0;_.lq(DRy,"yt-note-view-model",{props:{data:_.cv}});var kR=_.kl(function(W){var P=_.bw(W,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),x=P.label,I=P.text,O=P.placeholder,B=P.hint;W=P.rows;var Y=P.overflowStyle,K=P.outline,Z=P.disabled,d=P.disableNewLines,v=P.characterLimit,m=P.validation,t=P.onInput,C=_.fa();P=_.n(_.Zh(function(){return I()}));
var z=P.next().value,D=P.next().value;P=_.n(_.YV(!1,void 0,"fXvinf"));var w=P.next().value,a=P.next().value,k=function(){a(!0)},T=function(){a(!1)};
_.AQ(function(){var ao=C.value,e8=Y(),iC=z();e8==="expand-vertically"&&iC&&Wx6(ao);C.value.addEventListener("focusin",k);C.value.addEventListener("focusout",T)});
_.C4(function(){C.value.removeEventListener("focusin",k);C.value.removeEventListener("focusout",T)});
var N=function(){var ao;return(ao=m())==null?void 0:ao.validate(z())},Io=function(){return v()&&!N()&&z().length>v().maxChars},F=function(){return!!N()||Io()};
P=_.yB(function(ao){if(!ao.currentTarget)return!1;ao=ao.currentTarget;D(ao.value);Y()==="expand-vertically"&&Wx6(ao);t==null||t(ao.value);return!0});
var nm=_.yB(function(ao){d()&&ao.key==="Enter"&&ao.preventDefault();return!1}),pm=_.yB(function(){C.value.focus()}),zR=function(){return O()||x()},Am={},kW={},$W={};
return _.u("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.u("div",{class:_.O4("ytStandardsTextareaShapeTextareaContainer",(Am.ytStandardsTextareaShapeTextareaContainerOutline=K,Am.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=Z,Am.ytStandardsTextareaShapeTextareaContainerOutlineError=F,Am)),"on:click":pm},_.u("label",{class:_.O4("ytStandardsTextareaShapeLabel",(kW.ytStandardsTextareaShapeLabelFocused=w,kW.ytStandardsTextareaShapeLabelDisabled=Z,kW.ytStandardsTextareaShapeLabelError=
function(){return F()&&!Z()},kW.ytStandardsTextareaShapeLabelHidden=function(){return!w()&&!z()&&!!zR()},kW))},x),_.u("div",{class:_.O4("ytStandardsTextareaShapePlaceholder",($W.ytStandardsTextareaShapePlaceholderVisible=function(){return!w()&&!z()},$W)),
"aria-hidden":"true"},zR),_.u("textarea",{el:C,class:"ytStandardsTextareaShapeTextarea",rows:W,disabled:Z,placeholder:zR,"on:input":P,"on:keydown":nm},z)),_.u(_.V,{cond:function(){return B()&&!F()},
then:function(){var ao={};return _.u("div",{class:_.O4("ytStandardsTextareaShapeHint",(ao.ytStandardsTextareaShapeHintDisabled=Z,ao))},_.u("div",{class:"ytStandardsTextareaShapeHintHintMessage"},B))}}),_.u(_.V,{cond:N,
then:function(){return _.u(MLd,{disabled:Z},_.u("div",{class:"ytStandardsTextareaShapeErrorMessage"},N))}}),_.u(_.V,{cond:v,
then:function(ao){return _.u(_.V,{cond:Io,then:function(){return _.u(MLd,{disabled:Z},_.u("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return ao().errorMessage}),_.u("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return z().length+"/"+ao().maxChars}))}})}}))},"mf");
kR.idomCompat={callbacks:{onInput:!0}};var MLd=_.kl(function(W){var P={};return _.u("div",{class:_.O4("ytStandardsTextareaShapeError",(P.ytStandardsTextareaShapeErrorDisabled=W.disabled,P)),role:"alert"},_.u(_.Sy,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),W.children)},"nf");_.$R9=_.kl(function(W){var P=W.data;return _.u("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.u(kR,{text:W.text,label:function(){var x;return(x=P().contentProperties)==null?void 0:x.labelText},
placeholder:function(){var x;return(x=P().contentProperties)==null?void 0:x.placeholderText},
hint:function(){var x;return(x=P().contentProperties)==null?void 0:x.hintText},
outline:function(){var x;return!((x=P().displayProperties)==null?0:x.hideBorder)},
overflowStyle:function(){var x;return((x=P().displayProperties)==null?0:x.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:W.disabled,disableNewLines:function(){var x;return(x=P().displayProperties)==null?void 0:x.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var x;return(x=P().displayProperties)==null?void 0:x.rows}}))},"of");_.woM=_.kl(function(W){var P=W.data;return _.u("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.u(kR,{text:W.text,label:function(){var x;return(x=P().contentProperties)==null?void 0:x.labelText},
placeholder:function(){var x;return(x=P().contentProperties)==null?void 0:x.placeholderText},
hint:function(){var x;return(x=P().contentProperties)==null?void 0:x.hintText},
outline:function(){var x;return!((x=P().displayProperties)==null?0:x.hideBorder)},
overflowStyle:function(){var x;return((x=P().displayProperties)==null?0:x.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var x;return(x=P().displayProperties)==null?void 0:x.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var x;return(x=P().displayProperties)==null?void 0:x.rows}}))},"pf");var hiM=_.kl(function(W){var P=_.n(_.Zh(function(){var zR,Am;return((zR=W.data().structuredContextNoteFormSchema)==null?0:(Am=zR.initialValues)==null?0:Am.noteBody)?W.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),x=P.next().value,I=P.next().value;
P=_.n(_.Zh(function(){W.data();return!1}));
var O=P.next().value,B=P.next().value;P=_.n(_.Zh(function(){W.data();return!1}));
var Y=P.next().value,K=P.next().value;P=_.n(_.Zh(function(){var zR,Am;return((zR=W.data().structuredContextNoteFormSchema)==null?0:(Am=zR.initialValues)==null?0:Am.timestamp)?W.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var Z=P.next().value,d=P.next().value;P=_.n(_.Zh(function(){W.data();return!1}));
var v=P.next().value,m=P.next().value;P=_.n(_.Zh(function(){var zR,Am;return((zR=W.data().structuredContextNoteFormSchema)==null?0:(Am=zR.initialValues)==null?0:Am.sources)?[W.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var t=P.next().value,C=P.next().value;P=_.n(_.Zh(function(){W.data();return!1}));
var z=P.next().value,D=P.next().value;P=_.n(_.Zh(function(){return!1}));
var w=P.next().value,a=P.next().value;_.AQ(function(){var zR;_.FYG((zR=W.data().structuredContextNoteFormSchema)==null?void 0:zR.id,{isSubmitting:w,onSubmit:function(){a(!0);var Am=yzd(x(),Z(),t(),W.data()),kW=_.FY().resolve(_.qR);Am&&kW&&kW.resolveCommand(Am,{commandController:{onSuccess:function(){a(!1)}}})},
isValid:function(){return O()&&!Y()&&!v()&&!z()}})});
var k=function(zR){if(zR!==void 0&&(I(zR),!O()&&zR.length>0&&B(!0),O())){var Am=IVv(W.data());if(Am){var kW=Am.minLength;Am=Am.maxLength;kW&&zR.length<kW?K(!0):Am&&zR.length>Am?K(!0):K(!1)}}},T=function(zR){if(zR!==void 0){d(zR);
if(zR.length>0){var Am,kW,$W,ao,e8=JzG((Am=W.data())==null?void 0:(kW=Am.structuredContextNoteFormSchema)==null?void 0:($W=kW.fieldSchemas)==null?void 0:(ao=$W.timestamp)==null?void 0:ao.validationSchema);if(e8&&(Am=e8.regex)&&!(new RegExp(Am)).test(zR)){m(!0);return}}m(!1)}},N=function(zR){if(zR!==void 0){var Am=zR.split(/[ \n]/).map(function(kW){return kW.trim()});
C(Am);if(zR.length>0)for(zR=_.n(Am),Am=zR.next();!Am.done;Am=zR.next())if(!YWG(Am.value)){D(!0);return}D(!1)}},Io=function(){return{validate:function(zR){if(O()){var Am=IVv(W.data());
if(Am){var kW=Am.minLength;Am=Am.translations;if(kW&&zR.length<kW)return Am==null?void 0:Am.minLengthErrorMessage}}}}},F=function(){var zR=IVv(W.data()),Am=zR==null?void 0:zR.maxLength,kW;
zR=zR==null?void 0:(kW=zR.translations)==null?void 0:kW.maxLengthErrorMessage;if(Am&&zR)return{maxChars:Am,errorMessage:zR}},nm=function(){return{validate:function(zR){if(zR){var Am,kW,$W,ao,e8=JzG((Am=W.data())==null?void 0:(kW=Am.structuredContextNoteFormSchema)==null?void 0:($W=kW.fieldSchemas)==null?void 0:(ao=$W.timestamp)==null?void 0:ao.validationSchema);
if(e8&&(Am=e8.regex,e8=e8.translations,Am&&!(new RegExp(Am)).test(zR)))return e8==null?void 0:e8.regexErrorMessage}}}},pm=function(){return{validate:function(zR){if(zR){var Am,kW,$W,ao,e8=njB((Am=W.data())==null?void 0:(kW=Am.structuredContextNoteFormSchema)==null?void 0:($W=kW.fieldSchemas)==null?void 0:(ao=$W.sources)==null?void 0:ao.validationSchema);
if(e8&&(Am=e8.translations,Am==null?0:Am.selectedErrorMessage))for(zR=zR.split(/[ \n]/).map(function(iC){return iC.trim()}),zR=_.n(zR),kW=zR.next();!kW.done;kW=zR.next())if(!YWG(kW.value))return zR=void 0,(zR=Am)==null?void 0:zR.selectedErrorMessage}}}};
return _.u("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.Ea,{data:function(){var zR;return(zR=W.data())==null?void 0:zR.noteContents}},{textFormFieldViewModel:function(zR){return _.u(_.woM,{data:zR.data,
onInput:k,validation:Io,characterLimit:F})},
textFieldViewModel:function(zR){return _.u(_.$R9,{data:zR.data,onInput:k,validation:Io,characterLimit:F})}})),_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.Ea,{data:function(){var zR;
return(zR=W.data())==null?void 0:zR.noteTimestamp}},{textFormFieldViewModel:function(zR){return _.u(_.woM,{data:zR.data,
onInput:T,validation:nm})},
textFieldViewModel:function(zR){return _.u(_.$R9,{data:zR.data,onInput:T,validation:nm})}})),_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.Ea,{data:function(){var zR;
return(zR=W.data())==null?void 0:zR.noteSources}},{textFormFieldViewModel:function(zR){return _.u(_.woM,{data:zR.data,
onInput:N,validation:pm})},
textFieldViewModel:function(zR){return _.u(_.$R9,{data:zR.data,onInput:N,validation:pm})}})))},"qf");
hiM.idomCompat=!0;_.lq(hiM,"yt-structured-context-note-view-model",{props:{data:_.cv}});var HX4=_.kl(function(W){var P=_.n(_.Zh(function(){var B;if((B=W.controlled)==null?0:B.call(W))return[];var Y;return(((Y=W.data())==null?void 0:Y.chips)||[]).map(function(K){K=_.Q(K,_.cA);if(K==null?0:K.selected)return Kxm(K.chipValue)}).filter(function(K){return K!==void 0})})),x=P.next().value,I=P.next().value,O=function(B){var Y=Kxm(B.chipValue);
if(Y!==void 0){var K;if((K=W.controlled)==null?0:K.call(W))return void W.controlled().onTap(Y);B=x().includes(Y)?[].concat(_.ju(x().filter(function(d){return d!==Y}))):[].concat(_.ju(x()),[Y]);
I(B);var Z;if((Z=W.uncontrolled)==null?0:Z.call(W))W.uncontrolled().onUpdate(B)}};
return _.u("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.u(_.sV,{each:function(){return W.data().chips||[]}},function(B){return _.u("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.u(_.z8i,{data:function(){return _.Q(B,_.cA)},
selected:function(){var Y;if(Y=_.Q(B,_.cA)){var K=Kxm(Y.chipValue);if(K!==void 0){var Z;Y=((Z=W.controlled)==null?0:Z.call(W))?W.controlled().selectedValues.includes(K):x().includes(K)}else Y=void 0}else Y=!1;return Y},
callback:O}))}))},"rf");var ei2=_.kl(function(W){var P=W.data;var x=function(){var K;return((K=P())==null?void 0:K.flowStateKey)||""},I=_.dp(_.BX,x),O=function(){var K;
return(K=_.Q(I(),Jgv))==null?void 0:K.chips},B=function(K){if(K!==void 0){var Z=O()||[];
Z=Z.find(function(d){return d===K})?Z.filter(function(d){return d!==K}):[].concat(_.ju(Z),[K]);
Z=Object.assign({},I(),{feedbackFormFlowState:Object.assign({},_.Q(I(),Jgv),{chips:Z})});_.cM(_.mG("flowStateEntity",x(),Z))}},Y=function(){var K;
return _.Q((K=P())==null?void 0:K.inputBox,B14)};
W=_.t6(function(K){var Z=Y();Z=!(Z==null?0:Z.maxChars)||K.length<=Z.maxChars;K=Object.assign({},I(),{feedbackFormFlowState:Object.assign({},_.Q(I(),Jgv),{detail:K}),abuseReportFlowState:Object.assign({},_.Q(I(),OK),{navigationEnabled:Z})});_.cM(_.mG("flowStateEntity",x(),K))},150);
return _.u("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.u("div",{class:"ytFeedbackFormViewModelChips"},_.u(_.Ea,{data:function(){var K;return(K=P())==null?void 0:K.chipSelection}},{chipSelectionFormFieldViewModel:function(K){return _.u(HX4,{data:K.data,
controlled:function(){return{selectedValues:O()||[],onTap:B}}})}})),_.u("div",{class:"ytFeedbackFormViewModelInputBox"},_.u(kR,{text:function(){var K;
return(K=_.Q(I(),Jgv))==null?void 0:K.detail},
placeholder:function(){var K;return((K=Y())==null?void 0:K.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var K=Y();if(K&&K.maxChars)return{maxChars:K.maxChars,errorMessage:K.maxCharsExceededErrorMessage||""}},
onInput:W})),_.u("div",{class:"ytFeedbackFormViewModelFooterText"},_.u(_.mQ,{text:function(){return P().footerText}})))},"sf");
ei2.idomCompat=!0;_.lq(ei2,"yt-feedback-form-view-model",{props:{data:_.cv}});var cQ6=_.kl(function(W){var P=W.data;var x=function(){return P().flowStateKey||""},I=_.dp(YhL,x),O=function(){return _.Q(I(),OK)},B=function(){if(_.p("enable_gff_accessibility_fix")){var Y=!0,K;
if((K=O())==null?0:K.navigationEnabled){var Z;_.D1((Z=O())==null?void 0:Z.navigationCommand);Y=!1}K=Object.assign({},I(),{abuseReportFlowState:Object.assign({},O(),{isReportFormDirty:Y})});_.cM(_.mG("flowStateEntity",x(),K))}else _.D1((Y=O())==null?void 0:Y.navigationCommand)};
return _.u("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.u("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.u(_.Ea,{data:function(){return P().cancelButton}},{buttonViewModel:function(Y){return _.u(_.cq,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:B})}}),_.u(_.Ea,{data:function(){var Y;
if(P().navButton){var K=Object;var Z=K.assign,d=_.Q(P().navButton,_.gp),v=((Y=O())==null?0:Y.navigationEnabled)||_.p("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",m,t;Y=_.Q((m=O())==null?void 0:m.navigationCommand,_.Ct);m=(t=_.Q(Y,_.aR))==null?void 0:t.url;K={buttonViewModel:Z.call(K,{},d,{state:v,iconName:m?"OPEN_IN_NEW":""})}}else K=void 0;return K}},{buttonViewModel:function(Y){return _.u(_.cq,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:B})}})))},"tf");
cQ6.idomCompat=!0;_.lq(cQ6,"yt-report-form-bottom-bar-view-model",{props:{data:_.cv}});var a$L=_.kl(function(W){var P=W.nextStep;return _.u("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.u("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.u(_.Sy,{icon:function(){return P().iconName||""}})),_.u("div",null,_.u(_.mQ,{text:function(){return P().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"uf"),bX2=_.kl(function(W){var P=W.data;
var x,I=(x=_.FY().resolve(_.Rl(_.hF)))==null?void 0:x(),O=_.dp(_.BX,function(){return P().flowStateKey||""});
return _.u("yt-report-form-confirmation-page-view-model",{class:function(){var B;return((B=_.Q(O(),OK))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.u("div",{class:function(){var B;
return((B=_.Q(O(),OK))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.u(_.bq,{data:function(){return I&&P().imageDark?P().imageDark:P().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.u("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return P().confirmationHeader}),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.u(_.mQ,{text:function(){return P().confirmationText}})),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.u(_.mQ,{text:function(){return P().lawEnforcementText}})),
_.u("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return P().whatToExpectHeader}),_.u(_.V,{cond:function(){return P().nextSteps},
then:function(B){return _.u("div",null,_.u(_.sV,{each:B},function(Y){return _.u(a$L,{nextStep:Y})}))}}),_.u(_.V,{cond:function(){return P().legalReportText},
then:function(B){return _.u("div",null,_.u(_.mQ,{text:B,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vf");
bX2.idomCompat=!0;_.lq(bX2,"yt-report-form-confirmation-page-view-model",{props:{data:_.cv}});var kOL=_.kl(function(W){var P=W.data;var x=function(){var B;return((B=_.Q(P().inputBox,B14))==null?void 0:B.maxChars)||500},I=function(){return P().flowStateKey||""},O=_.dp(_.BX,I);
W=_.t6(function(B){B=Object.assign({},O(),{flowFormState:{isValid:B.length<=x()},abuseReportFlowState:{userComments:B,navigationEnabled:!(B.length>x()),isReportFormDirty:!0}});_.HM().dispatch(_.$s("flowStateEntity",I(),B))},150);
_.AQ(function(){var B=Object.assign({},O(),{flowFormState:{isValid:!0}});_.HM().dispatch(_.$s("flowStateEntity",I(),B))});
return _.u("yt-report-form-details-page-view-model",{class:function(){var B;return((B=_.Q(O(),OK))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.u("h1",{class:function(){var B;
return((B=_.Q(O(),OK))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return P().detailsPageHeader}),_.u("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.u(_.mQ,{text:function(){return P().bodyText}})),_.u("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.u(kR,{label:function(){var B;
return((B=_.Q(P().inputBox,B14))==null?void 0:B.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var B;return{errorMessage:((B=_.Q(P().inputBox,B14))==null?void 0:B.maxCharsExceededErrorMessage)||"",maxChars:x()}},
onInput:W})))},"wf");
kOL.idomCompat=!0;_.lq(kOL,"yt-report-form-details-page-view-model",{props:{data:_.cv}});var URy=_.kl(function(W){var P=W.data;var x=W.selectedKey;var I=W.onSelected;var O=W.groupName;var B=function(){return P().text},Y=function(){return P().attributedText},K=function(){return P().subtext},Z=function(){return P().attributedSubtext},d=_.u("div",{class:"ytRadioButtonItemViewModelLabel"},_.u(_.V,{cond:B,
then:function(){return _.u("div",null,B)}}),_.u(_.V,{cond:Y,
then:function(){return _.u(_.mQ,{text:Y})}}),_.u(_.V,{cond:K,
then:function(){return _.u("div",{class:"ytRadioButtonItemViewModelSubText"},K)}}),_.u(_.V,{cond:Z,
then:function(){return _.u("div",{class:"ytRadioButtonItemViewModelSubText"},_.u(_.mQ,{text:Z}))}})),v=function(){if(Y()){var t;
return(t=Y())==null?void 0:t.content}return B()},m=function(){if(Z()){var t;
return(t=Z())==null?void 0:t.content}return K()};
W={};return _.u("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.u(_.VX,{name:O,checked:function(){return!(x==null||!x()||P().key!==(x==null?void 0:x()))},
onChange:function(t){I==null||I(t.target,P(),O==null?void 0:O())},
labelRenderable:function(){return d},
ariaLabel:function(){return m()?v()+", "+m():v()},
className:_.O4((W.ytRadioButtonItemViewModelSubTitle=function(){return!!P().subtext},W))}))},"xf");_.Xod=_.kl(function(W){var P=W.data;var x=W.onSelected;var I=W.selectedKey;var O=W.groupName;return _.u("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.u("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.u(_.Ea,{data:function(){return P().radioButtons}},{radioButtonItemViewModel:function(B){return _.u(URy,{data:B.data,
onSelected:x,selectedKey:I,groupName:function(){return(O==null?void 0:O())||P().key}})}})))},"yf");var f$M=_.kl(function(W){var P=W.data;var x=_.Nl(),I=function(){return P().flowStateKey||""},O=_.dp(_.BX,I),B=function(){return _.Q(O(),OK)};
_.jj(function(){var Y,K;if(((Y=B())==null?0:Y.isReportFormDirty)&&((K=B())==null||!K.navigationEnabled)&&_.p("enable_gff_accessibility_fix")){var Z;if(((Z=B())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var d;(d=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||d.scrollIntoView()}else{var v;(v=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||v.scrollIntoView()}}});
return _.u("yt-report-form-reason-select-page-view-model",{class:function(){var Y;return((Y=B())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.u("h1",{class:function(){var Y;
return((Y=B())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return P().pageHeader}),_.u("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.u(_.mQ,{text:function(){return P().bodyText}})),_.u("div",{class:function(){var Y;
return((Y=B())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.u(_.V,{cond:function(){var Y,K;
return((Y=B())==null?void 0:Y.isReportFormDirty)&&!((K=B())==null?0:K.navigationEnabled)&&_.p("enable_gff_accessibility_fix")},
then:function(){return _.u("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:x},_.u(_.Sy,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.u("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return P().emptyReasonSelectErrorMessage}))}}),_.u(_.Xod,{data:function(){return _.Q(P().radioButtonGroup,_.u8d)},
onSelected:function(Y,K){Y=Object.assign({},O(),{abuseReportFlowState:Object.assign({},B(),{reasonKey:K.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:K.command})});_.cM(_.mG("flowStateEntity",I(),Y))},
selectedKey:function(){var Y;return(Y=B())==null?void 0:Y.reasonKey},
groupName:"report-form-reason-select-page"})))},"zf");
f$M.idomCompat=!0;_.lq(f$M,"yt-report-form-reason-select-page-view-model",{props:{data:_.cv}});var NoG=_.kl(function(W){var P=W.data;var x,I=(x=_.FY().resolve(_.Rl(_.hF)))==null?void 0:x();return _.u("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.u("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.u(_.bq,{data:function(){return I&&P().imageDark?P().imageDark:P().image},
alt:""})),_.u("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.u("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return P().header}),_.u(_.mQ,{text:function(){return P().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Af");
NoG.idomCompat=!0;_.lq(NoG,"yt-report-form-sign-in-page-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;var x=function(){var d;return(d=P().textInputPlaceholder)==null?void 0:d.content},I=function(d){d=d.target.value.trim();
var v=P().onUpdateText;v&&_.D1(v,{form:{userQuery:d}});P().userQuery=d},O=_.t6(function(d){I(d)},150),B=_.yB(function(d){O(d);
return!1}),Y=_.yB(function(d){d.key==="Enter"&&(I(d),(d=P().onNextStepCommand)&&_.D1(d,{}));
return!1}),K=_.fa(),Z=function(){if(_.p("web_hide_explore_hub_until_user_navigates_back_to_home")){var d,v,m;
(m=(v=(d=K.value)==null?void 0:d.closest("ytd-flow-step-renderer"))==null?void 0:v.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||m.click()}};
return _.u("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:K},_.u("div",{class:"ytwTalkToRecsTopCornerButton"},_.u(_.Ea,{data:function(){return P().topCornerButton}},{buttonViewModel:_.cq})),_.u("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.u("div",{class:"ytwTalkToRecsTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u("div",{class:"ytwTalkToRecsSubtitle"},_.u(_.mQ,{text:function(){return P().subtitle}})),_.u("div",{class:"ytwTalkToRecsChipsShelf"},_.u(_.Ea,{data:function(){return P().answersShelf}},
{chipsShelfViewModel:function(d){return _.u(_.Hv3,{data:d.data,
callback:Z})}})),_.u(_.V,{cond:function(){return P().showOpenTextInput&&!_.p("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.u("div",{class:"ytwTalkToRecsUserInputBox"},_.u("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:x,value:function(){return P().userQuery},
"on:input":B,"on:keyup":Y}))}})))},"Bf"),"yt-talk-to-recs-view-model",{props:{data:_.cv}});var ZUM={sources:[{clientResource:{imageName:"CHECK"}}]};_.l$m=_.kl(function(W){var P=_.fa();W=_.bw(W,{error:void 0});var x=W.data,I=W.error,O=W.onSelected;W=_.n(_.Zh(function(){return uJM(x())}));
var B=W.next().value,Y=W.next().value;mpf(x,function(m){Y(m);var t,C,z=SW6((t=x().options)==null?void 0:(C=t[m])==null?void 0:C.value,x().type);O==null||O(z);P.value.focus()});
W=_.yB(function(){if(!x().disabled){var m=x(),t=B(),C=P.value;m.options&&(m=ojv(m.options,t,m.label),_.FY().resolve(_.Vz).openSheet({viewModel:m},C))}});
var K=_.Atx(),Z=function(){return!!I()},d=function(){return!!x().disabled},v={};
v=_.O4("ytDropdownViewModelDropdownContainer",(v.ytDropdownViewModelDropdownContainerErrorBorder=Z,v.ytDropdownViewModelDropdownContainerDisabled=d,v));return _.u("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.u("div",{class:v,"on:click":W,el:P,role:"combobox",tabindex:0,"on:keydown":K,"aria-invalid":Z,"aria-disabled":d,"aria-describedby":function(){return Z()?"dropdown-view-model-error":void 0}},_.u("div",{class:"ytDropdownViewModelText"},dpf(x,Z,B),sEy(x,B)),_.u("div",{class:"ytDropdownViewModelChevronDown"},
_.u(_.Sy,{icon:"CHEVRON_DOWN"}))),vjv(x,I))},"Cf");_.lq(_.kl(function(W){var P=W.data;var x=function(O){var B=taG(P());B.videoMetadata||(B.videoMetadata={});B.videoMetadata.sponsorshipsMetadata||(B.videoMetadata.sponsorshipsMetadata={});B.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(O)},I=function(O){var B=taG(P());
B.scheduledRedirectMetadata||(B.scheduledRedirectMetadata={});B.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(O)};
return _.u("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.u("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.u("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.u(_.mQ,{text:function(){return P().title}}),_.u(_.Sy,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.u(_.mQ,{text:function(){return P().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.u(_.Ea,{data:function(){return P().tierChoices}},{dropdownViewModel:function(O){return _.u("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.u(_.l$m,{data:O.data,
onSelected:x}))}}),_.u(_.Ea,{data:function(){return P().startTimeChoices}},{dropdownViewModel:function(O){return _.u("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.u(_.l$m,{data:O.data,
onSelected:I}))}}),_.u(_.mQ,{text:function(){return P().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.u("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.u(_.Ea,{data:function(){return P().scheduleButton}},{panelFooterViewModel:_.bf})))},"Df"),"ytfz-schedule-fanzone-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;W=W.className===void 0?"":W.className;var x=_.dp(YhL,function(){return P().flowStateEntityKey||""}),I={};
I=_.O4("ytFlowBottomBarViewModelFlowBottomBarButtons",(I.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},I));
var O={},B=_.O4("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",I,(O.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},O.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},O));
O={};var Y=_.O4("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",I,(O.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},O.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},O));
I={};I=_.O4("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(I.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},I.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},I.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
I));
return _.u("yt-flow-bottom-bar-view-model",{class:_.O4("ytFlowBottomBarViewModelHost",W)},_.u(_.V,{cond:function(){var K;return(K=P())==null?void 0:K.textSection},
then:function(K){return _.u("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.u(_.mQ,{text:K}))}}),_.u("div",{class:I},_.u(_.Ea,{data:function(){return P().secondaryButton}},{buttonViewModel:function(K){return _.u(_.cq,{data:K.data,
className:Y})}}),_.u(_.Ea,{data:function(){return P().primaryButton}},{buttonViewModel:function(K){return _.u(_.cq,{data:K.data,
className:B,buttonOverrides:function(){var Z;return{disabled:!((Z=x())==null||!Z.primaryButtonDisabled)}}})}})))},"Ef"),"yt-flow-bottom-bar-view-model",{props:{data:_.cv,
className:_.Ng}});var To9="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),UK=function(){var W=_.b.apply(this,arguments)||this;W.enableScrollingFix=!0;W.bottomBar=!1;W.hideBottomBar=!1;W.fitContent=!1;return W};
_.A(UK,_.b);_.J=UK.prototype;_.J.ready=function(){_.p("enable_pdp_icon_prefetch")&&_.O4G(_.FY().resolve(_.nQ),0,To9)};
_.J.focus=function(W){this.topBar?_.XG(this.topBar,W):this.paperDialog.focus(W)};
_.J.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16743_scroller&&(this.JSC$16743_scroller.dialogElement=this.paperDialog,this.JSC$16743_scroller.attached&&typeof this.JSC$16743_scroller.attached==="function"&&this.JSC$16743_scroller.attached())};
_.J.onDataChanged=function(){var W;this.fitContent=!((W=this.data)==null||!W.fitContent);var P;this.bottomBar=!((P=this.data)==null||!P.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.J.onProgressChanged=function(){var W,P,x=((P=(W=this.data)==null?void 0:W.progress)!=null?P:0)*100;this.progressElement.style.width=x+"%"};
_.J.isProgressHidden=function(){var W;return!((W=this.data)==null?0:W.progress)};
_.J.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(W){return _.p("enable_wiz_next_lp2_msof")&&W&&!W.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.N1.Object.defineProperties(UK.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var W;return _.p("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.Q((W=this.data)==null?void 0:W.content,Z43)}}});
UK.prototype.onProgressChanged=UK.prototype.onProgressChanged;UK.prototype.onDataChanged=UK.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UK.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],UK.prototype,"enableScrollingFix",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],UK.prototype,"bottomBar",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],UK.prototype,"hideBottomBar",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UK.prototype,"containsExploreHub",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],UK.prototype,"fitContent",void 0);_.f([_.BM("#progress"),_.l("design:type",HTMLElement)],UK.prototype,"progressElement",void 0);
_.f([_.BM("#scroller"),_.l("design:type",Object)],UK.prototype,"JSC$16743_scroller",void 0);_.f([_.BM("ytd-flow-top-bar-renderer"),_.l("design:type",HTMLElement)],UK.prototype,"topBar",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UK.prototype,"onDataChanged",null);_.f([_.OZ("data.progress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UK.prototype,"onProgressChanged",null);
UK=_.f([_.U({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],UK);
_.X(UK,"ytd-flow-step-renderer",function(){if(wJ3!==void 0)return wJ3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return wJ3=W},{mode:1});var rQm=function(W){this.resolveCommand=W;this.steps={}},iXO=function(W,P){P=_.n(P||[]);
for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=Object.values(x)[0],O=void 0;if((O=I)==null?0:O.stepId)W.steps[I.stepId]=x}},qVy=function(W,P){var x,I,O,B,Y;
return _.y(function(K){if((x=W.state)==null||!x.currentStepId)return K.return(void 0);I=Rim(W);if(!I)return K.return(Fkf(W));if(O=_.Q(I,_.K9M)){var Z;((Z=O.screenLoggingData)==null?0:Z.screenVeType)&&_.JN(_.YY(),O.screenLoggingData.screenVeType);((B=O)==null?0:B.onStepStartCommand)&&W.resolveCommand((Y=O)==null?void 0:Y.onStepStartCommand,{})}if(O&&P){Z=O;var d,v,m,t;((d=P.flowLoggingData)==null?0:d.eventNamespace)&&((v=Z.flowEventData)==null?0:v.eventType)&&((m=Z.flowEventData)==null?0:m.eventMetadata)&&
((t=P.flowLoggingData)==null?0:t.flowType)&&(d=_.Oo(P.flowLoggingData.eventNamespace,Z.flowEventData.eventType,Z.flowEventData.eventMetadata),_.Jq(_.B5(),d,P.flowLoggingData.flowType));P.steps&&!P.steps.includes(I)&&P.steps.push(I)}return K.return(I)})};
rQm.prototype.back=function(){var W;(W=this.state)!=null&&W.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
rQm.prototype.handleUpdateFlowCommand=function(W){W.steps&&iXO(this,W.steps);W.entityUpdateCommand&&this.resolveCommand(W.entityUpdateCommand,{});W.flowContinuationCommand&&(W=W.flowContinuationCommand)&&(this.getFlowContinuationCommand=W);this.awaitFlowContinuation&&(this.awaitFlowContinuation(Rim(this)),this.awaitFlowContinuation=void 0)};
rQm.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Fkf=function(W){return _.y(function(P){return W.getFlowContinuationCommand?P.return(new Promise(function(x){W.awaitFlowContinuation=x;W.getFlowContinuationCommand&&W.resolveCommand(W.getFlowContinuationCommand,{flow_state:W.state})})):P.return(Promise.resolve(void 0))})},Rim=function(W){var P;
if((P=W.state)!=null&&P.currentStepId)return W.steps[W.state.currentStepId]};var X1=function(){var W=_.b.apply(this,arguments)||this;W.flowState=new rQm(function(P,x){x=x===void 0?{}:x;_.Ix.instance.resolveCommand(P,{form:{form:x,element:W.hostElement}})});
W.initialState=!0;W.isLoading=!1;W.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return W};
_.A(X1,_.b);_.J=X1.prototype;_.J.onPopupClosed=function(W){W&&this.hostElement!==W.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.J.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.J.focus=function(W){var P=this;_.gY(function(){var x=_.g(P.hostElement).querySelector("ytd-flow-step-renderer");x.topBar?x.focus(W):P.topBar&&_.XG(P.topBar,W)},1)};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.J.computeTopBarHidden=function(W){var P;return!((P=_.Q(W,_.K9M))==null||!P.topBarOverride)};
_.J.dataChanged=function(){var W=this,P,x;return _.y(function(I){if(I.nextAddress==1){((P=W.data)==null?0:P.steps)&&iXO(W.flowState,W.data.steps);if((x=W.data)==null?0:x.flowContinuationCommand){var O=W.flowState,B=W.data.flowContinuationCommand;B&&(O.getFlowContinuationCommand=B)}return _.S(I,qVy(W.flowState,W.data),2)}W.currentFlowStep=I.yieldResult;_.Kl(I)})};
_.J.flowChanged=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1){if(!W.flow)return x.return();W.flowState.state=W.flow;W.isLoading=!0;return _.S(x,qVy(W.flowState,W.data),2)}P=x.yieldResult;if(!P||W.flow.isLoading)return x.return();W.currentFlowStep=P;W.initialState=!1;W.isLoading=!1;W.autofocusAndRefit();_.Kl(x)})};
_.J.autofocusAndRefit=function(){var W=this,P=_.FY().resolve(_.Rl(_.jK)),x=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),I=document.querySelector("yt-report-form-confirmation-page-view-model"),O=document.querySelector("yt-report-form-details-page-view-model"),B=document.querySelector("yt-report-form-reason-select-page-view-model"),Y=document.querySelector("yt-contributor-zero-state-view-model"),
K=document.querySelector("yt-structured-context-note-view-model"),Z=document.querySelector("yt-note-view-model");(!x&&P&&P.isKeyBoardInUse()||I||!x&&O||!x&&B||Y||K||Z)&&_.fD(this.hostElement);_.Xm(this,function(){_.Lf(W.hostElement,"yt-refit")})};
_.J.handleUpdateFlowCommand=function(W){this.data&&(W=_.Q(W,ygv),W.targetId===this.data.targetId&&(W.flowContinuationCommand&&(this.data.flowContinuationCommand=W.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(W),this.autofocusAndRefit()))};
_.J.handleFlowNextStepCommand=function(W){this.data&&this.flow&&this.flow.key&&(W=_.Q(W,nVM),W.targetId===this.data.targetId&&(W=W.stepId||"",this.ytdReduxBehavior.dispatch(_.$s("flowStateEntity",this.flow.key,{currentStepId:W,stepIdStack:(this.flow.stepIdStack||[]).concat(W)}))))};
_.J.handleFlowPrevStepCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.Q(W,YwL),W.targetId===this.data.targetId)){var P=[].concat(_.ju(this.flow.stepIdStack||[]));P.length>1?(P.pop(),this.ytdReduxBehavior.dispatch(_.$s("flowStateEntity",this.flow.key,{currentStepId:P[P.length-1],stepIdStack:P}))):W.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(W.onFirstStepCommand)}};
_.J.handleYpcCancelRecurrenceCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.Q(W,dS2),W.targetId===this.data.targetId&&W.endpointCommand)){var P=_.Q(this.flow,sC6);P&&_.Q(W.endpointCommand,_.rNp)&&(_.Q(W.endpointCommand,_.rNp).feedbackData=P.surveyFeedback);this.ytComponentBehavior.resolveCommand(W.endpointCommand)}};
_.J.handlePartialUpdateFlowStateEntity=function(W){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.$s("flowStateEntity",this.flow.key,W,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
X1.prototype.flowChanged=X1.prototype.flowChanged;X1.prototype.dataChanged=X1.prototype.dataChanged;X1.prototype.onPopupClosed=X1.prototype.onPopupClosed;_.f([_.h(_.Gp),_.l("design:type",Object)],X1.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],X1.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],X1.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],X1.prototype,"initialState",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],X1.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Object)],X1.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],X1.prototype,"currentFlowStep",void 0);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],X1.prototype,"onPopupClosed",null);_.f([_.c({selectorArgs:["data.flowStateEntityKey"],selector:YhL}),_.l("design:type",Object)],X1.prototype,"flow",void 0);_.f([_.BM("ytd-flow-top-bar-renderer"),_.l("design:type",HTMLElement)],X1.prototype,"topBar",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],X1.prototype,"dataChanged",null);_.f([_.K_("flow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],X1.prototype,"flowChanged",null);X1=_.f([_.U({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],X1);
_.LkG=_.R7()(X1,"ytd-flow-root-renderer",function(){if($SG!==void 0)return $SG;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return $SG=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var WWM;var xR=null;_.lq(_.kl(function(W){return _.u("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.u("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.u(_.mQ,{text:function(){return W.data().text}}),_.u("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ff"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.cv}});var PAQ=_.kl(function(W){var P=W.playerControlsProps;var x=W.isShortsPage;return _.u("yt-bigboard",null,_.u(_.V,{cond:function(){return P().isDragging},
then:function(){return _.u("div",{class:"ytBigboardStoryboardHost"},_.u(_.XZ3,{progressBarProps:P,isShortsPage:x}))}}))},"Gf");
PAQ.idomCompat=!0;_.fY={ACCOUNT_LABEL:I2("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:I2("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:I2("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:I2("AD_BADGE_HINT"),AD_BADGE_TEXT:I2("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:I2("ALL_CHANNELS_LABEL"),AMBIENT_MODE:I2("AMBIENT_MODE"),AMBIENT_MODE_OFF:I2("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:I2("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:I2("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:I2("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:I2("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:I2("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:I2("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:I2("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:I2("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:I2("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:I2("AUTOPLAY_UP_NEXT_IN"),BACK:I2("BACK"),CANCEL:I2("CANCEL"),CHANNEL_SWITCHER_LABEL:I2("CHANNEL_SWITCHER_LABEL"),CLOSE:I2("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:I2("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:I2("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:I2("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:I2("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:I2("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:I2("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:I2("COMMENT_MODAL_CONTENT"),CONFIRM_OK:I2("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:I2("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:I2("COPIED_TO_CLIPBOARD"),COPY:I2("COPY"),COPY_DEBUG_INFO:I2("COPY_DEBUG_INFO"),COPY_EMBED_CODE:I2("COPY_EMBED_CODE"),COPY_LINK_LABEL:I2("COPY_LINK_LABEL"),
COPY_VIDEO_URL:I2("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:I2("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:I2("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:I2("DELETE_FROM_DOWNLOADS"),DIALOG:I2("DIALOG"),DONE:I2("DONE"),DOWNLOAD:I2("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:I2("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:I2("FLAG_CONFIRM"),FLAG_CONTENT:I2("FLAG_CONTENT"),FLAG_LABEL:I2("FLAG_LABEL"),FLAG_TITLE:I2("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:I2("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:I2("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:I2("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:I2("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:I2("HIDE_SEARCH_FILTERS_LABEL"),HOME:I2("HOME","Home"),INVALID_RESPONSE_RECEIVED:I2("INVALID_RESPONSE_RECEIVED"),LIBRARY:I2("LIBRARY","Library"),LISTENING:I2("LISTENING"),LOADING:I2("LOADING"),LONG_PRESS_MIC_TO_SPEAK:I2("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:I2("LOOP"),MENU_DESKTOP:I2("MENU_DESKTOP"),MENU_EXIT:I2("MENU_EXIT"),
MENU_FEEDBACK:I2("MENU_FEEDBACK"),MENU_HELP:I2("MENU_HELP"),MENU_IMPRESSUM:I2("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:I2("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:I2("MENU_SETTINGS"),MENU_SIGN_IN:I2("MENU_SIGN_IN"),MENU_TITLE:I2("MENU_TITLE"),MENU_YOUR_DATA:I2("MENU_YOUR_DATA"),MORE_INFO:I2("MORE_INFO"),MORE_OPTIONS:I2("MORE_OPTIONS"),MUTE_VOLUME:I2("MUTE_VOLUME"),NEW_PLAYLIST:I2("NEW_PLAYLIST"),NEXT_VIDEO:I2("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:I2("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:I2("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:I2("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:I2("NOT_FOUND_TITLE"),NO_DOWNLOADS:I2("NO_DOWNLOADS"),NO_MIC_INPUT:I2("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:I2("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:I2("OOPS_MESSAGE"),OPEN_APP:I2("OPEN_APP"),OPEN_YOUTUBE:I2("OPEN_YOUTUBE"),PAUSE:I2("PAUSE"),PLAY:I2("PLAY"),PLAYER_CAPTION:I2("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:I2("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:I2("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:I2("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:I2("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:I2("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:I2("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:I2("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:I2("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:I2("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:I2("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:I2("PLAYER_MINIMIZE"),PLAYER_NEXT:I2("PLAYER_NEXT"),PLAYER_PAUSE:I2("PLAYER_PAUSE"),PLAYER_PLAY:I2("PLAYER_PLAY"),
PLAYER_PREVIOUS:I2("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:I2("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:I2("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:I2("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:I2("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:I2("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:I2("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:I2("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:I2("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:I2("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:I2("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:I2("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:I2("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:I2("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:I2("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:I2("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:I2("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:I2("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:I2("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:I2("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:I2("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:I2("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:I2("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:I2("PLAY_ALL"),PLEASE_FIX_ERRORS:I2("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:I2("PREVIOUS_VIDEO"),PRIVACY_POLICY:I2("PRIVACY_POLICY"),RELOAD:I2("RELOAD"),REQUIRED_LABEL:I2("REQUIRED_LABEL"),SAVE_PLAYLIST:I2("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:I2("SCRUB_SLIDE_USER_EDU"),SEARCH:I2("SEARCH","Search"),SEARCH_APPEND_LABEL:I2("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:I2("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:I2("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:I2("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:I2("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:I2("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:I2("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:I2("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:I2("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:I2("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:I2("SEEK_SLIDER"),SETTINGS_LABEL:I2("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:I2("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:I2("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:I2("SHOW_LESS"),SHOW_MORE:I2("SHOW_MORE"),SHOW_PLAYER_CONTROLS:I2("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:I2("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:I2("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:I2("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:I2("SIGN_IN_ON_WEB"),STABLE_VOLUME:I2("STABLE_VOLUME"),
STABLE_VOLUME_OFF:I2("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:I2("STABLE_VOLUME_ON"),STATS_FOR_NERDS:I2("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:I2("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:I2("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:I2("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:I2("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:I2("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:I2("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:I2("TIMESTAMP_SECONDS"),TOGGLE_OFF:I2("TOGGLE_OFF"),
TOGGLE_ON:I2("TOGGLE_ON"),TRENDING:I2("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:I2("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:I2("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:I2("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:I2("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:I2("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:I2("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:I2("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:I2("VIDEO_LINK_LABEL")};var xMm=_.kl(function(W){var P=W.playerApi;W=_.fa(function(O){FI(O,36843)});
var x=I2("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),I=_.yB(function(){qd(36843);P&&P().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.u("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.u("button",{el:W,class:"ytPlayerControlsJumpForwardButtonButton",title:x,"aria-label":x,"on:click":I},_.u("span",null,_.u(_.Sy,{icon:"FAST_FORWARD"}))))},"Hf");var I8f=_.kl(function(W){var P=W.appApi;W=_.fa(function(O){FI(O,62946)});
var x=I2("OPEN_IN_MINIPLAYER"),I=_.yB(function(){qd(62946);var O,B;(B=(O=P()).openInMiniplayer)==null||B.call(O);return!1});
return _.u("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.u("button",{el:W,class:"ytMiniplayerButtonButton",title:x,"aria-label":x,"on:click":I},_.u(_.Sy,{icon:"PICTURE_IN_PICTURE",active:!1})))},"If");var Oj9=_.kl(function(W){var P=W.playerApi;W=_.fa(function(Y){FI(Y,142812)});
var x=_.n(_.YV(!1,void 0,"I3VCyb")),I=x.next().value,O=x.next().value;x=function(){return I2("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(I()?1:2)})};
var B=_.yB(function(){qd(142812);if(P){var Y=P(),K=I();Y.setPlaybackRate(K?1:2);O(!I())}return!1});
return _.u("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.u("button",{el:W,class:"ytPlaybackSpeedButtonButton",title:x,"aria-label":x,"on:click":B},_.u("span",null,_.u(_.Sy,{icon:function(){return I()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Jf");var JYd=_.kl(function(W){var P=W.title;var x=W.ariaLabel;var I=W.icon;var O=W.command;var B=W.veType;W=_.fa(function(K){B&&FI(K,B())});
var Y=_.yB(function(){B&&qd(B());O&&_.FY().resolve(_.qR).resolveCommand(O())});
return _.u("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.u("button",{el:W,class:"ytdThumbnailOverlayButtonButton",title:P,"aria-label":x,"on:click":Y},_.u(_.Sy,{icon:I})))},"Kf");var BOM=["en-CA","en","es-MX","fr-CA"];var nOQ=_.kl(function(W){var P=_.bw(W,{isOverlay:!1}),x=P.captionIconType,I=P.onClick;W=P.ariaLabel;var O=P.ariaPressed,B=P.isOverlay;P=_.fa(function(Z){FI(Z,127299)});
var Y=_.yB(function(Z){qd(127299);I==null||I(Z);return!1}),K={};
return _.u("ytm-closed-captioning-button",{class:_.O4("ytmClosedCaptioningButtonHost",(K.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return x()===-1&&B()},K.ytmClosedCaptioningButtonIconDisabled=function(){return x()===-1&&!B()},K))},_.u("button",{el:P,
class:"ytmClosedCaptioningButtonButton",title:W,"aria-label":W,"aria-pressed":O,"on:click":Y},_.u(_.Sy,{icon:function(){var Z="";var d=_.SI().get("hl");d=!d||BOM.includes(d)?"CLOSED_CAPTION":"SUBTITLES";var v=x();switch(v){case -1:case 0:Z=d;break;case 1:Z=d+"_FILLED";break;default:_.n2(v)}return Z}})))},"Lf");
nOQ.idomCompat={callbacks:{onClick:!0}};var RZ="";var YyL=_.kl(function(W){var P=W.playerControlsProps,x=W.onClickFn;W=_.Sj(function(){var B=P(),Y=-1;B.captionsAvailable&&(Y=B.captionsEnabled?1:0);return Y},void 0,"WecR8e");
var I=_.Sj(function(){var B=P();return B.captionsAvailable?_.KK(B.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.KK("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),O=_.Sj(function(){var B=P();
B=B.captionsAvailable?B.captionsEnabled:void 0;return B},void 0,"Q17ly");
return _.u("yt-closed-captions-toggle-button",null,_.u(nOQ,{captionIconType:W,ariaLabel:I,ariaPressed:O,onClick:function(B){var Y=P();if(Y.captionsAvailable){var K=Y.playerApi;if(K){var Z=Y.playerApi;if(Z){var d=RZ;if(d){Z=Z.getOption("captions","track");var v;RZ=(v=Z?Z.displayName:null)!=null?v:d}else Z.getOptions("captions")?(d=Z5G(Z),RZ=d.length?(v=oKL(d))?v.displayName:d[0].displayName:""):RZ=""}Shm(K);_.p("mweb_disable_set_state_captions_killswitch")&&Y.setState({captionsEnabled:!Y.captionsEnabled})}}var m,
t;(t=(m=Y.appApi).showCaptionsToggleToast)==null||t.call(m,Y);x==null||x(B)},
isOverlay:!0}))},"Mf");var yYB=_.kl(function(W){var P=W.data;return _.u("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.u(_.qI,{data:function(){return{type:16,text:_.ViR(P().label)}}}))},"Nf");var KWm=_.kl(function(W){var P=_.O4("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return W.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return W.size()==="small"?W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.u("animated-seek-arrows",{class:_.O4("ytPlayerControlsAnimatedSeekArrowsHost")},_.u("span",{class:P}),_.u("span",{class:P}),_.u("span",{class:P}))},"Of");
KWm.idomCompat=!0;var Zj6=_.kl(function(){var W=_.KK("PLAYER_SECONDS",{seconds_placeholder:"30"}),P=_.n(_.YV(!1,void 0,"Yj8msb")),x=P.next().value,I=P.next().value,O=_.n(_.YV(!1,void 0,"r9Z50e"));P=O.next().value;var B=O.next().value;O={};var Y=_.O4("jumpForwardOverlayOverlay",(O.jumpForwardOverlayOverlayHidden=P,O));_.AQ(function(){var K=null,Z=null,d=function(){K!==null&&_.Ds().cancelJob(K);Z!==null&&_.Ds().cancelJob(Z);B(!0);I(!0);_.Fo(_.Ds(),function(){B(!1)});
K=_.Fo(_.Ds(),function(){B(!0);Z=_.Fo(_.Ds(),function(){I(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",d);_.C4(function(){window.removeEventListener("jump-forward-clicked",d)})});
return _.u("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.u(_.V,{cond:x,then:function(){return _.u("div",{class:Y},_.u(KWm,{direction:1,size:"large"}),_.u("div",null,W))}}))},"Pf");var eI2=_.fY.MUTE_VOLUME,HU9=_.fY.UNMUTE_VOLUME,oO3=_.kl(function(W){var P=W.muteIconType;var x=W.onClick;var I=W.useOutlineIcon;W=_.fa(function(Y){FI(Y,28662)});
var O=function(){return cz3(P(),I==null?void 0:I()).ariaLabel},B=_.yB(function(Y){qd(28662);
x==null||x(Y);return!1});
return _.u("ytm-mute-button",{class:"ytmMuteButtonHost"},_.u("button",{el:W,class:"ytmMuteButtonButton",title:O,"aria-label":O,"on:click":B},_.u("span",null,_.u(_.Sy,{icon:function(){return cz3(P(),I==null?void 0:I()).iconName}}))))},"Qf");var SyM=_.kl(function(W){var P=W.volumeProps;var x=W.onClickFn;var I=W.useOutlineIcon;return _.u("yt-mute-toggle-button",null,_.u(oO3,{muteIconType:function(){var O=P(),B=!_.p("mweb_treat_zero_volume_as_muted_killswitch")&&O.volume===0;return O.volumeMuted||B?0:1},
onClick:function(O){var B=P().playerApi;B&&(B.isMuted()?B.unMute():B.mute(!1));x==null||x(O)},
useOutlineIcon:function(){return!(I==null||!I())}}))},"Rf");
SyM.idomCompat=!0;var u9m=_.kl(function(W){var P=W.data;var x=_.fa();W=_.yB(function(){x.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.u("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:x,"on:animationend":W},_.u(_.vF,{command:function(){return P().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.u(_.V,{cond:function(){var I;return(I=P().icon)==null?void 0:I.iconType},
then:function(){return _.u("span",null,_.u(_.Sy,{icon:function(){var I;return(I=P().icon)==null?void 0:I.iconType}}))}}),_.u("div",{class:"ytmPaidContentOverlayText"},_.u(_.mQ,{text:function(){return P().text}})),_.u(_.V,{cond:function(){return P().navigationEndpoint},
then:function(){return _.u(_.Sy,{icon:"CHEVRON_RIGHT"})}})))},"Sf");
u9m.idomCompat=!0;var aVQ=[].concat(_.ju([{register:function(W){var P=iU2(W),x;(x=W().playerApi)==null||x.addEventListener("onVolumeChange",P);return function(){}}},
{register:function(W){var P=RIQ(W);W=W().playerApi;W==null||W.addEventListener("captionschanged",P);W==null||W.addEventListener("captionssettingschanged",P);W==null||W.addEventListener("onCaptionsTrackListChanged",P);return function(){}}},
{register:function(W){if(!_.p("mweb_screenreader_accessible_player"))return function(){};
var P=FxB(W),x=document.querySelector("video");x==null||x.addEventListener("touchend",P);return function(){x==null||x.removeEventListener("touchend",P)}}},
{register:function(W){if(!_.p("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var P=FxB(W),x=document.querySelector("video");x==null||x.addEventListener("focus",P);return function(){x==null||x.removeEventListener("focus",P)}}}]),[{register:function(W){var P=NvB(W),x;
(x=W().playerApi)==null||x.addEventListener("onStateChange",P);return function(){}}},
{register:function(W){var P=lVv(W),x;(x=W().playerApi)==null||x.addEventListener("onPlaybackRateChange",P);return function(){}}},
{register:function(W){var P=Tv3(W),x;(x=W().playerApi)==null||x.addEventListener("onVideoDataChange",P);return function(){}}},
{register:function(W){var P=rzv(W),x,I;(x=W())==null||(I=x.playerApi)==null||I.addEventListener("onVideoProgress",P);return function(){}}}]);var dM2=_.kl(function(W){var P=W.data;var x=function(){return _.KK("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+P().playbackRate})};
return _.u(_.V,{cond:function(){return P().playbackRate&&P().playbackRate!==1},
then:function(){return _.u("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.u("div",{class:"ytPlaybackRateOverlayOverlay"},_.u(KWm,{direction:1,size:"small"}),_.u("div",{class:"ytPlaybackRateOverlayLabel"},x)))}})},"Tf");var s64=_.kl(function(W){var P=W.data;return _.u("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.u(_.V,{cond:function(){var x,I=(x=P())==null?void 0:x.playerResponse,O;return I==null?void 0:(O=I.paidContentOverlay)==null?void 0:O.paidContentOverlayRenderer},
then:function(x){return _.u(u9m,{data:x})}}))},"Vf"),vO4=_.kl(function(W){var P=W.props;
var x=W.data;var I=W.options;var O=function(){var d,v,m,t;return(d=x())==null?void 0:(v=d.playerResponse)==null?void 0:(m=v.playerConfig)==null?void 0:(t=m.inlinePlaybackConfig)==null?void 0:t.showAudioControls},B=function(){var d,v;
if(O()&&((d=I())==null?void 0:(v=d.additionalButton)==null?void 0:v.button)!==void 0){var m,t,C;d=(m=x())==null?void 0:(t=m.playerApi)==null?void 0:(C=t.getSize())==null?void 0:C.height;if(!(d===void 0||d<180)){var z,D;return(z=I())==null?void 0:(D=z.additionalButton)==null?void 0:D.button}}},Y=function(){var d,v;
return(d=I())==null?void 0:(v=d.additionalButton)==null?void 0:v.thumbnailOverlayButtonRenderers},K=function(){var d,v;
return(d=I())==null?void 0:(v=d.additionalButton)==null?void 0:v.thumbnailOverlayButtonViewModels},Z=function(){var d=[_.u(SyM,{volumeProps:P}),
_.u(YyL,{playerControlsProps:P})];B()===1&&d.push(_.u(xMm,{playerApi:function(){return P().playerApi}}));
B()===2&&d.push(_.u(I8f,{appApi:function(){return P().appApi}}));
B()===3&&d.push(_.u(Oj9,{playerApi:function(){return P().playerApi}}));
var v=Y();if(B()===4&&v){v=_.n(v);for(var m=v.next(),t={};!m.done;t={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$53:void 0,command$jscomp$569:void 0},m=v.next()){m=m.value;t.tooltip$jscomp$2=m.tooltip;var C=void 0,z=void 0;t.ariaLabel$jscomp$20=((C=m.accessibility)==null?void 0:(z=C.accessibilityData)==null?void 0:z.label)||t.tooltip$jscomp$2;C=void 0;t.icon$jscomp$53=(C=m.icon)==null?void 0:C.iconType;t.command$jscomp$569=m.command;t.tooltip$jscomp$2&&t.ariaLabel$jscomp$20&&t.icon$jscomp$53&&
d.push(_.u(JYd,{title:function(D){return function(){return D.tooltip$jscomp$2}}(t),
ariaLabel:function(D){return function(){return D.ariaLabel$jscomp$20}}(t),
icon:function(D){return function(){return D.icon$jscomp$53}}(t),
command:function(D){return function(){return D.command$jscomp$569}}(t)}))}}v=K();
if(B()===4&&v)for(v=_.n(v),m=v.next(),t={};!m.done;t={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$570:void 0},m=v.next())m=m.value,t.tooltip$jscomp$3=m.title,t.ariaLabel$jscomp$21=m.accessibilityText||t.tooltip$jscomp$3,t.icon$jscomp$54=m.iconName,t.command$jscomp$570=_.AF(m.onTap),t.tooltip$jscomp$3&&t.ariaLabel$jscomp$21&&t.icon$jscomp$54&&d.push(_.u(JYd,{title:function(D){return function(){return D.tooltip$jscomp$3}}(t),
ariaLabel:function(D){return function(){return D.ariaLabel$jscomp$21}}(t),
icon:function(D){return function(){return D.icon$jscomp$54}}(t),
command:function(D){return function(){return D.command$jscomp$570}}(t)}));
return d};
return _.u(_.V,{cond:O,then:function(){return _.u("div",{class:"ytInlinePlayerControlsTopRightControls"},_.u(_.sV,{each:Z},function(d){return _.u("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.u("div",{class:"ytInlinePlayerControlsButtonIcon"},d))}))}})},"Wf"),tBM=_.kl(function(W){var P=W.props;
var x=W.data;var I=W.options;W={};W=_.O4("ytInlinePlayerControlsBottomRightControls",(W.ytInlinePlayerControlsBottomRightControlsHidden=function(){var O;return LxL(x(),I())&&((O=I())==null?void 0:O.insetProgressBar)&&(P().isHovering||P().isDragging)},W));
return _.u("div",{class:W},_.u(mM9,{data:x}),_.u(_.V,{cond:function(){var O;return!((O=I())==null?0:O.hideTimeDisplay)},
then:function(){return _.u(VBf,{props:P,data:x})}}))},"Xf"),mM9=_.kl(function(W){var P=W.data;
return _.u(_.Ea,{data:function(){var x;return $p3((x=P())==null?void 0:x.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:yYB})},"Yf"),VBf=_.kl(function(W){var P=W.props;
var x=W.data;return _.u(_.V,{cond:function(){return P().isLive},
then:function(){return _.u(piy,null)},
else:function(){return _.u(j63,{props:P,data:x})}})},"Zf"),j63=_.kl(function(W){var P=W.props;
var x=W.data;var I=_.Sj(function(){var O;return hI3((O=x())==null?void 0:O.thumbnailOverlays)},void 0,"kUmuA");
return _.u("div",{class:_.O4("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.fY.PLAYER_TIME_ELAPSED+" "+_.bGo(P().playedTime)}},_.u(_.qI,{data:function(){var O=_.bGo(P().videoDuration-P().playedTime);
return Object.assign({},{type:16,text:O},I())}}))},"$f"),piy=_.kl(function(){return _.u("div",{class:_.O4("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.u(_.qI,{data:{type:17,
text:_.fY.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ag"),Q6O=_.kl(function(W){var P=W.props;
var x=W.data;var I=W.options;return _.u(_.ixM,{progressBarProps:P,config:function(){var O,B=_.Q((O=x())==null?void 0:O.multiMarkersPlayerBar,_.VvM),Y;O=((Y=I())==null?0:Y.insetProgressBar)?2:1;var K;Y=(K=I())==null?void 0:K.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:O,chapterData:B,isInlinePlayback:!0,doSeekOnClick:Y,playheadDotBehavior:Y?1:0}}})},"bg");_.lq(_.kl(function(W){var P=W.data;var x=W.appApi;var I=W.options;var O=fVQ(P,qWm(x));W={};x={};return _.u("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.u("div",{class:_.O4("ytInlinePlayerControlsDarkenedOverlay",(W.ytInlinePlayerControlsDarkenedOverlayShow=function(){return O().isHovering},W))}),_.u(Zj6,null),_.u(dM2,{data:O}),_.u(s64,{data:P}),_.u(PAQ,{playerControlsProps:O,
isShortsPage:!1}),_.u("div",{class:_.O4((x.ytInlinePlayerControlsControlsHidden=function(){return O().isDragging},x))},_.u(vO4,{props:O,
data:P,options:I}),_.u(tBM,{props:O,data:P,options:I})),_.u(_.V,{cond:function(){return LxL(P(),I())},
then:function(){return _.u(Q6O,{props:O,data:P,options:I})}}))},"Uf"),"yt-inline-player-controls",{props:{data:_.cv,
appApi:_.Ng,options:_.cv}});var Nh=function(){var W=_.b.apply(this,arguments)||this;W.opts=null;W.playerControlsData=null;W.playerControlsAppApi={openInMiniplayer:function(){W.openInMiniplayer()}};
W.playerControlsOptions={};W.noAnimation=!1;W.playbackIntentTriggered=!1;W.positionData=null;W.hidden=!0;W.active=!1;W.playing=!1;W.videoPreviewDataIndex=0;W.JSC$16801_playerPromise=null;W.player=null;W.enableAudioControls=!1;W.hasBeenUnmuted=!1;W.captionsHaveBeenTurnedOff=!1;W.JSC$16801_playerEvents=new Map;W.videoPreviewFetchRequest=null;W.scheduledPreviewEndJobId=null;W.JSC$16801_preventProgressSaveTimer=null;W.watchEndpointStartTimeUpdaterInterval=null;W.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};W.windowOnBlurFn=function(){W.deactivate()};
return W};
_.A(Nh,_.b);_.J=Nh.prototype;
_.J.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.p("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.J.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16801_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16801_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16801_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16801_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.WM(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.WM(this,this.onScroll))};
_.J.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.WM(this,this.onScroll))};
_.J.onPageTypeChange=function(){this.deactivate()};
_.J.onWindowResized=function(){this.deactivate()};
_.J.onCaptionsChanged=function(W){W=!!W.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!W);this.setCaptionSize()};
_.J.setCaptionSize=function(){var W;if(this.active&&!this.captionsHaveBeenTurnedOff&&((W=this.player)==null?0:W.getCaptionWindowContainerId())){var P;(P=this.player)==null||P.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.J.currentPageAllowed=function(){return!this.isWatchPage};
_.J.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var W=this.positionData,P=W.initialTopPosition,x=W.initialHorizontalPosition;_.qa(this.hostElement,{"--ytd-video-preview-translate-left":W.finalHorizontalPosition-x+"px","--ytd-video-preview-translate-top":W.finalTopPosition-P+"px","--ytd-video-preview-original-top-position":P+"px","--ytd-video-preview-original-horizontal-position":x+"px",
"--ytd-video-preview-initial-scale":"scale("+W.initialScale+")","--ytd-video-preview-width":W.videoPreviewWidth+"px","--ytd-video-preview-height":W.videoPreviewHeight+"px"});return!0};
_.J.handleOpenVideoPreviewAction=function(W){var P=this,x;return _.y(function(I){if(!P.currentPageAllowed())return I.return(0);P.opts=W;return(x=P.alignVideoPreviewForAnimation(W.thumbnail))?I.return(P.activate()):I.return(0)})};
_.J.onMouseLeave=function(W){this.shouldDeactivateOnMouseLeave(W)&&this.deactivate()};
_.J.onScroll=function(){var W,P;((W=this.opts)==null?0:W.isAutoplay)&&((P=this.opts)==null?0:P.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.J.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Gr.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.J.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.J.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Nh.JSC$16800_DEFAULT_CLICK_LOCATION_BEHAVIOR,Nh.JSC$16800_CLICK_LOCATION_ID_MAP)};
_.J.shouldDeactivateOnMouseLeave=function(W){W=W.relatedTarget;if(!W)return!0;var P;return(P=this.opts)!=null&&P.mediaRenderer?!_.rT(this.opts.mediaRenderer).contains(W):!0};
_.J.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.J.onPlaybackStart=function(){var W=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$16801_preventProgressSaveTimer=
_.Fo(_.Gr,function(){W.resetPreventProgressSaveTimer()},1E4);
var P;if((P=this.opts)==null?0:P.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Fo(_.Gr,function(){W.hasMultipleVideoPreviews()?W.startPlaybackForNextVideo():W.deactivate()},this.opts.videoPreviewDurationMs);
var x;this.player.setGlobalCrop(((x=this.opts)==null?0:x.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.J.getRoundedCornersSize=function(){var W;if((W=this.opts)==null?0:W.roundedCornersSize){var P;return(P=this.opts)==null?void 0:P.roundedCornersSize}var x;if((x=this.opts)==null?0:x.enableRounding){var I;if(((I=this.opts)==null?void 0:I.thumbnailSize)==="small")return 1;var O;if(((O=this.opts)==null?void 0:O.thumbnailSize)==="medium")return 2;var B;if(((B=this.opts)==null?void 0:B.thumbnailSize)==="large")return 3}return _.p("web_imp_inset_progress_bar")?3:0};
_.J.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.J.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.J.onMediaContainerClick=function(W){this.isShortcutClick(W)||(this.navigateToWatch(W),W.preventDefault(),W.stopPropagation())};
_.J.activate=function(){var W=this,P,x,I,O,B,Y,K,Z,d;return _.y(function(v){switch(v.nextAddress){case 1:if(!W.currentPageAllowed())return v.return(0);x=(P=W.videoPreviewData)==null?void 0:P.inlinePlaybackEndpoint;I=_.HF.instance;if(!x||!I)return v.return(0);W.playbackIntentTriggered=!0;((O=W.opts)==null?0:O.mediaRenderer)&&((B=W.opts)==null||!B.isAutoplay)&&Dpd(W.opts.mediaRenderer,function(){W.deactivate()});
_.Xm(W,function(){W.revealPreviewUi()});
Y={};_.p("enable_unknown_lact_fix_on_html5")&&(_.FY().resolve(_.jy),Y.lact=_.LD());W.videoPreviewFetchRequest=CZ6(I,W.getInlinePlaybackRequestData(W.videoPreviewData),Y);_.OT(v,2);return _.S(v,W.videoPreviewFetchRequest,4);case 4:K=v.yieldResult;if(((Z=K)==null?void 0:(d=Z.playabilityStatus)==null?void 0:d.status)==="OK")return v.return(W.handlePlayerResponse(K));throw Error("Ij");case 2:_.yn(v),W.deactivate();case 3:return v.return(1)}})};
_.J.getInlinePlaybackRequestData=function(W){var P,x=_.p("web_imp_player_mute_params")?((P=this.opts)==null?void 0:P.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:W.inlinePlaybackEndpoint,startPlaybackInMutedState:x}};
_.J.handlePlayerResponse=function(W){var P=this,x,I,O,B,Y,K,Z,d,v,m;return _.y(function(t){if(t.nextAddress==1){x=P.getInlinePlaybackVideoId();if(!(((I=W)==null?0:(O=I.videoDetails)==null?0:O.videoId)&&P.currentPageAllowed()&&P.playbackIntentTriggered&&P.opts&&x))return P.deactivate(),t.return(0);if(W.videoDetails.videoId!==x)return t.return(0);P.enableAudioControls=!!((B=W.playerConfig)==null?0:(Y=B.inlinePlaybackConfig)==null?0:Y.showAudioControls);W.trackingParams=P.getInlinePlaybackTrackingParams();
if(!P.inlinePlayer)return t.return(0);K={};if(d=_.Q((Z=P.videoPreviewData)==null?void 0:Z.inlinePlaybackEndpoint,_.U_))K.watch_endpoint=d;if(P.videoPreviewData){var C,z=(C=_.Q(P.videoPreviewData.inlinePlaybackEndpoint,_.U_))==null?void 0:C.startTimeSeconds;z!==void 0&&(W.playerConfig||(W.playerConfig={}),W.playerConfig.playbackStartConfig||(W.playerConfig.playbackStartConfig={}),W.playerConfig.playbackStartConfig.startPosition||(W.playerConfig.playbackStartConfig.startPosition={}),W.playerConfig.playbackStartConfig.startSeconds=
z,W.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(z*1E3))}P.inlinePlayer.loadVideoWithPlayerResponse(W,K);if(P.JSC$16801_playerPromise)return t.jumpTo(2);P.JSC$16801_playerPromise=P.inlinePlayer.getPlayerPromise();return _.S(t,P.JSC$16801_playerPromise,3)}t.nextAddress!=2&&(v=t.yieldResult,v.setInlinePreview(!0),v.setSizeStyle(!1,!0),P.ytPlayerListenerBehavior.listenToPlayerEvents(v,P.JSC$16801_playerEvents),P.player=v,_.Lf(P.hostElement,"player-api-ready"));((m=P.opts)==
null?0:m.showPlayerControls)&&P.videoPreviewData&&P.player&&(P.playerControlsData={playerResponse:W,isInlinePlayback:!0,thumbnailOverlays:P.videoPreviewData.thumbnailOverlays,playerApi:P.player},P.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!P.unroundCornersForPlayback,additionalButton:P.getAdditionalButtonType(P.videoPreviewData.thumbnailOverlays)});return t.return(2)})};
_.J.revealPreviewUi=function(){var W=this;this.playbackIntentTriggered&&_.bot(this,function(){W.hasThumbnailPositionChangedSinceTriggered()||(W.updateActiveState(!0),W.noAnimation=!1)})};
_.J.hasThumbnailPositionChangedSinceTriggered=function(){var W=this.positionData,P=this.getThumbnailPositionData();return(W==null?void 0:W.initialTopPosition)!==(P==null?void 0:P.initialTopPosition)||(W==null?void 0:W.initialHorizontalPosition)!==(P==null?void 0:P.initialHorizontalPosition)};
_.J.getThumbnailPositionData=function(){var W,P;if((P=this.opts)==null||!P.thumbnail)return null;P=this.opts.thumbnail;var x=((W=this.opts)==null?0:W.cropPlayerToFillThumbnailHorizontally)?!1:!0;var I=P.getBoundingClientRect();W=I.width;P=I.height;var O=I.top+window.scrollY;I=I.left+window.scrollX;var B=x?Math.ceil(W):W;x=x?Math.ceil(P):P;var Y=W/B;W={initialScale:Y,initialTopPosition:O-12*Y,finalTopPosition:O-12-(x-P)/2,initialHorizontalPosition:I-(12+(B-W)/2),finalHorizontalPosition:I-12-(B-W)/
2,videoPreviewWidth:B,videoPreviewHeight:x};return W};
_.J.updateActiveState=function(W){this.active=W;this.ytdReduxBehavior.dispatch(_.LK({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:W}))};
_.J.stopPlayer=function(W){W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(W)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Gr.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.J.deactivate=function(W){W=W===void 0?{}:W;W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;xR&&(xR.disconnect(),xR=null);this.stopPlayer({resetWatchEndpointStartTime:W});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.J.isValidThumbnailOverlayButton=function(W,P){W=W.thumbnailOverlayButtonRenderer;var x;return!!W&&!!W.tooltip&&!((x=W.icon)==null||!x.iconType)&&P.includes(W.icon.iconType)};
_.J.isValidThumbnailOverlayButtonViewModel=function(W,P){var x;W=_.Q((x=W.thumbnailOverlayButtonViewModel)==null?void 0:x.overlayButton,_.gp);return!!W&&!!W.title&&!!W.iconName&&P.includes(W.iconName)};
_.J.getAdditionalButtonType=function(W){var P=this;if(_.p("web_imp_fastforward_button"))return{button:1};if(_.p("web_imp_miniplayer_button"))return{button:2};if(_.p("web_imp_playback_speed_button"))return{button:3};var x=["AUTO_AWESOME"],I=(W||[]).filter(function(B){return P.isValidThumbnailOverlayButton(B,x)}).map(function(B){return B.thumbnailOverlayButtonRenderer});
if(I.length)return{button:4,thumbnailOverlayButtonRenderers:I};var O=["AUTO_AWESOME"];W=(W||[]).filter(function(B){return P.isValidThumbnailOverlayButtonViewModel(B,O)}).map(function(B){return _.Q(B.thumbnailOverlayButtonViewModel.overlayButton,_.gp)});
if(W.length)return{button:4,thumbnailOverlayButtonViewModels:W}};
_.J.allowCaptions=function(){var W;return!((W=this.opts)==null?0:W.forceCaptionsOff)};
_.J.allowUnmuting=function(){var W;return this.enableAudioControls&&!((W=this.opts)==null?0:W.forceMutedVolume)};
_.J.beginStartTimeUpdater=function(){var W=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.JY(function(){W.updateWatchEndpointStartTime()},1E3)};
_.J.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.J.resetPreventProgressSaveTimer=function(){this.JSC$16801_preventProgressSaveTimer!==null&&(_.Gr.cancelJob(this.JSC$16801_preventProgressSaveTimer),this.JSC$16801_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.J.updateWatchEndpointStartTime=function(W){var P=this.videoPreviewData;if(this.player&&P!=null&&P.inlinePlaybackEndpoint&&!this.JSC$16801_preventProgressSaveTimer){W=W?0:Math.floor(this.player.getCurrentTime());var x=_.Q(P.navigationEndpoint,_.U_);x&&(x.startTimeSeconds=W);if(P=_.Q(P.inlinePlaybackEndpoint,_.U_))P.startTimeSeconds=W}};
_.J.isShortcutClick=function(W){return!!W&&(W.ctrlKey||W.shiftKey||W.metaKey)};
_.J.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.J.openInMiniplayer=function(){var W=this,P,x;return _.y(function(I){if(I.nextAddress==1){x=(P=W.videoPreviewData)==null?void 0:P.navigationEndpoint;if(!x)return I.return();_.ug().lockupActivation=!0;return _.S(I,_.syk(_.FY().resolve(_.kc),x),2)}_.ug().userActivation=!0;_.Kl(I)})};
_.J.navigateToWatch=function(W){var P,x=(P=this.videoPreviewData)==null?void 0:P.navigationEndpoint;if(x){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(x,W,!0);else{if(_.p("web_thumbnail_to_watch_transition")){var I,O;(I=this.opts)==null||(O=I.onNavigateToWatchCallback)==null||O.call(I)}_.Lf(this.hostElement,"yt-navigate",{endpoint:x})}this.deactivate()}};
_.J.getInlinePlaybackVideoId=function(){var W,P;return(P=_.Q((W=this.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint,_.U_))==null?void 0:P.videoId};
_.J.getInlinePlaybackTrackingParams=function(){var W,P;return(W=this.videoPreviewData)==null?void 0:(P=W.inlinePlaybackEndpoint)==null?void 0:P.clickTrackingParams};
_.J.hasMultipleVideoPreviews=function(){var W;return!!(((W=this.opts)==null?0:W.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.J.startPlaybackForNextVideo=function(){var W;(W=this.opts)!=null&&W.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())};
_.N1.Object.defineProperties(Nh.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null?0:W.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null||!W.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 W;if(Array.isArray((W=this.opts)==null?void 0:W.videoPreviewData)){var P;return(P=this.opts)==null?void 0:P.videoPreviewData[this.videoPreviewDataIndex]}var x;return(x=this.opts)==null?void 0:x.videoPreviewData}}});
Nh.prototype.onIsAdsVideoChange=Nh.prototype.onIsAdsVideoChange;Nh.prototype.onInlinePreviewIsEnabledChange=Nh.prototype.onInlinePreviewIsEnabledChange;Nh.prototype.optsChanged=Nh.prototype.optsChanged;Nh.prototype.onMouseLeave=Nh.prototype.onMouseLeave;Nh.JSC$16800_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Nh.JSC$16800_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"}];
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Nh.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],Nh.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Nh.prototype,"componentBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Nh.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rW.YtSparklesClickLocationBehavior),_.l("design:type",Object)],Nh.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Nh.prototype,"opts",void 0);_.f([_.c(),_.l("design:type",Object)],Nh.prototype,"playerControlsData",void 0);
_.f([_.c(),_.l("design:type",Object)],Nh.prototype,"playerControlsAppApi",void 0);_.f([_.c(),_.l("design:type",Object)],Nh.prototype,"playerControlsOptions",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Nh.prototype,"noAnimation",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Nh.prototype,"hidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Nh.prototype,"active",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Nh.prototype,"playing",void 0);_.f([_.c({selector:_.Acd}),_.l("design:type",Boolean)],Nh.prototype,"inlinePreviewIsEnabled",void 0);_.f([_.c(),_.l("design:type",String)],Nh.prototype,"pagePath",void 0);_.f([_.c({selector:_.zK}),_.l("design:type",Boolean)],Nh.prototype,"isWatchPage",void 0);_.f([_.H("videoPreviewData"),_.l("design:type",Object),_.l("design:paramtypes",[])],Nh.prototype,"thumbnailData",null);
_.f([_.H("opts","active"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nh.prototype,"hidePlayerControls",null);_.f([_.H("opts"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nh.prototype,"isAdsVideo",null);_.f([_.H("opts"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nh.prototype,"roundedCornersSmall",null);
_.f([_.H("opts"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nh.prototype,"roundedCornersMedium",null);_.f([_.H("opts"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nh.prototype,"roundedCornersLarge",null);_.f([_.H("opts"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nh.prototype,"unroundCornersForPlayback",null);
_.f([_.H("opts","videoPreviewDataIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],Nh.prototype,"videoPreviewData",null);_.f([_.c(),_.l("design:type",Object)],Nh.prototype,"videoPreviewDataIndex",void 0);_.f([_.BM("#inline-player"),_.l("design:type",Object)],Nh.prototype,"inlinePlayer",void 0);_.f([_.I7("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],Nh.prototype,"onMouseLeave",null);
_.f([_.K_("opts"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nh.prototype,"optsChanged",null);_.f([_.K_("inlinePreviewIsEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nh.prototype,"onInlinePreviewIsEnabledChange",null);_.f([_.OZ("isAdsVideo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nh.prototype,"onIsAdsVideoChange",null);
Nh=_.f([_.U({is:"ytd-video-preview",disableElementRegistration:!0})],Nh);
_.X(Nh,"ytd-video-preview",function(){if(WWM!==void 0)return WWM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return WWM=W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var jtL;var Qtd;/*

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
*/
_.vM({_template:function(){if(Qtd!==void 0)return Qtd;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;jtL===void 0&&(jtL=document.createElement("template"));var I=jtL;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Qtd=W},
is:"tp-yt-paper-checkbox",behaviors:[_.UIm],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Xm(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var W=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),P="px",x=W.match(/[A-Za-z]+$/);x!==null&&(P=x[0]);W=parseFloat(W);x=8/3*W;P==="px"&&(x=Math.floor(x),x%2!==W%2&&x++);this.updateStyles({"--paper-checkbox-ink-size":x+
P})}})},
_computeCheckboxClass:function(W,P){var x="";W&&(x+="checked ");P&&(x+="invalid");return x},
_computeCheckmarkClass:function(W){return W?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.bCb._createRipple.call(this)}});var Ctf=new _.R("radioButtonSurveyOptionRenderer"),Ao2=new _.R("checkboxSurveyOptionRenderer");var zY9;var GE4;var EDf=0,hR=function(){var W=_.b.call(this)||this;W.selected=!1;W.isOverlay=!1;W.inputId="toggle-option-"+EDf;EDf++;return W};
_.A(hR,_.b);hR.prototype.onTap=function(){_.Lf(this.hostElement,"ytd-toggle-option-clicked")};
_.f([_.c(),_.l("design:type",String)],hR.prototype,"label",void 0);_.f([_.c(),_.l("design:type",String)],hR.prototype,"inputId",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],hR.prototype,"selected",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],hR.prototype,"isOverlay",void 0);hR=_.f([_.U({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.l("design:paramtypes",[])],hR);
_.X(hR,"ytd-toggle-option-renderer",function(){if(GE4!==void 0)return GE4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return GE4=W},{mode:1});var H4=function(){var W=_.b.apply(this,arguments)||this;W.isToggleOption=!1;W.isOverlay=!1;return W};
_.A(H4,_.b);H4.prototype.onTap=function(W){W.preventDefault();this.data&&(W=!this.data.checked,this.set("data.checked",W),_.Lf(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:W,value:this.data.value}))};
_.N1.Object.defineProperties(H4.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
H4.prototype.onTap=H4.prototype.onTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],H4.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],H4.prototype,"isToggleOption",void 0);_.f([_.c(),_.l("design:type",Object)],H4.prototype,"isOverlay",void 0);_.f([_.H("data.responseText"),_.l("design:type",String),_.l("design:paramtypes",[])],H4.prototype,"label",null);
_.f([_.I7("ytd-toggle-option-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],H4.prototype,"onTap",null);H4=_.f([_.U({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],H4);
_.X(H4,"ytd-checkbox-survey-option-renderer",function(){if(zY9!==void 0)return zY9;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zY9=W},{mode:1});var gD3;var Di3;var eH=function(){var W=_.b.apply(this,arguments)||this;W.checked=!1;W.isToggleOption=!1;return W};
_.A(eH,_.b);eH.prototype.onTap=function(){this.data&&(this.checked?_.W7(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.W7(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
eH.prototype.onTap=eH.prototype.onTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eH.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],eH.prototype,"checked",void 0);_.f([_.c(),_.l("design:type",Object)],eH.prototype,"isToggleOption",void 0);_.f([_.I7("ytd-toggle-option-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],eH.prototype,"onTap",null);
eH=_.f([_.U({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],eH);
_.X(eH,"ytd-radio-button-survey-option-renderer",function(){if(Di3!==void 0)return Di3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Di3=W},{mode:1});var c4=function(){var W=_.b.apply(this,arguments)||this;W.disableAnimation=!1;W.isToggleOption=!0;W.followUpSurveyCommand=null;W.selectedRatingEndpoint=null;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.styleOverrideAttribute=!0;W.isDarkMode=!1;W.isSubmitted=!1;W.roundedContainer=!0;W.improveShortsResponseRate=_.p("web_improve_shorts_response_rate");W.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 W};
_.A(c4,_.b);_.J=c4.prototype;
_.J.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"}}}}};
_.J.attached=function(){var W=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(x){var I;if((I=x[0])!=null&&I.isIntersecting){_.BW().reportShown(W.hostElement);var O;(O=W.intersectionObserver)==null||O.unobserve(W.hostElement)}},{rootMargin:"0px",
threshold:.6});var P;(P=this.intersectionObserver)==null||P.observe(this.hostElement)};
_.J.onDarkModeToggledAction=function(W){this.isDarkMode=W};
_.J.dataChanged=function(){var W;if(((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var P;((P=this.data)==null?void 0:P.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var x,I,O,B;this.darkColorPalette=(x=this.data)==null?void 0:(I=x.inlineContent)==null?void 0:(O=I.compactVideoRenderer)==null?void 0:(B=O.thumbnail)==null?
void 0:B.darkColorPalette;var Y,K,Z,d;this.lightColorPalette=(Y=this.data)==null?void 0:(K=Y.inlineContent)==null?void 0:(Z=K.compactVideoRenderer)==null?void 0:(d=Z.thumbnail)==null?void 0:d.lightColorPalette;var v,m;if(((v=this.data)==null?0:(m=v.inlineContent)==null?0:m.compactVideoRenderer)&&this.isShortsStyle){var t,C,z,D;W=_.rc((t=this.data)==null?void 0:(C=t.inlineContent)==null?void 0:(z=C.compactVideoRenderer)==null?void 0:(D=z.thumbnail)==null?void 0:D.thumbnails);_.qa(this.hostElement,
{"--yt-background-url":"url("+W+")"})}};
_.J.handleRequestCompletion=function(){this.hostElement.hidden&&_.Lf(this.hostElement,"yt-dismissible-item-dismissed")};
_.J.onPopupClosed=function(W){var P;((P=W.detail)==null?void 0:P.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.W7(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.J.handleInlineSurveyRatingSelect=function(W,P){var x=this;this.selectedRatingEndpoint=W;this.followUpSurveyCommand=P;this.expanded=!!W;this.getOptionRenderers().forEach(function(I,O){x.notifyPath("followUpSurveyCommand.followUpOptions."+O+".checkboxSurveyOptionRenderer.checked");x.set("followUpSurveyCommand.followUpOptions."+O+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),W=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.W7(this.hostElement,"yt-reel-non-video-content-dismissal-command",[W]))};
_.J.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.W7(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var W,P=(W=this.data)==null?void 0:W.dismissalEndpoint;P&&this.ytComponentBehavior.resolveCommand(P)}};
_.J.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.W7(this.hostElement,"yt-close-popup-action"))};
_.J.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var W=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{W=this.getOptionRenderers().filter(function(I){return I.checked});
if(W.length===0)return;W=W.map(function(I){return I.responseEndpoint})}var P=[];
W.forEach(function(I,O){O!==0&&(I=_.Q(I,_.hM))&&I.feedbackToken&&P.push(I.feedbackToken)});
if(W=W[0]){var x={};P.length>0&&(x.extra_feedback_tokens=P);this.ytComponentBehavior.resolveCommand(W,{form:x})}}};
_.J.getOptionRenderers=function(){var W=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(P){W.isSingleSelect=!!_.Q(P,Ctf);return W.isSingleSelect?_.Q(P,Ctf):_.Q(P,Ao2)}):[]};
_.J.handleInlineSurveyOptionSelect=function(W){W=this.optionSelector.indexOf(W);W!==-1&&this.optionSelector.selectIndex(W)};
_.J.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.J.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
_.J.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W=W&&this.maybeGetBackgroundColor(W);this.dismissibleEl.style.backgroundColor=!W||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.j9(W)};
_.N1.Object.defineProperties(c4.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
c4.prototype.colorPaletteChanged=c4.prototype.colorPaletteChanged;c4.prototype.onPopupClosed=c4.prototype.onPopupClosed;c4.prototype.handleRequestCompletion=c4.prototype.handleRequestCompletion;c4.prototype.dataChanged=c4.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],c4.prototype,"actionHandlerBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],c4.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],c4.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.BM("#follow-up-survey-options"),_.l("design:type",Object)],c4.prototype,"optionSelector",void 0);_.f([_.c(),_.l("design:type",Object)],c4.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],c4.prototype,"disableAnimation",void 0);_.f([_.c(),_.l("design:type",Object)],c4.prototype,"isToggleOption",void 0);_.f([_.c(),_.l("design:type",Object)],c4.prototype,"followUpSurveyCommand",void 0);_.f([_.c(),_.l("design:type",Object)],c4.prototype,"selectedRatingEndpoint",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],c4.prototype,"expanded",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c4.prototype,"isSlimlineSurveyFollowUp",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c4.prototype,"isShortsStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c4.prototype,"styleOverrideAttribute",void 0);_.f([_.c(),_.l("design:type",Boolean)],c4.prototype,"isSingleSelect",void 0);_.f([_.c(),_.l("design:type",Object)],c4.prototype,"isDarkMode",void 0);
_.f([_.c(),_.l("design:type",Object)],c4.prototype,"lightColorPalette",void 0);_.f([_.c(),_.l("design:type",Object)],c4.prototype,"darkColorPalette",void 0);_.f([_.H("selectedRatingEndpoint","isShortsStyle"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c4.prototype,"isOptionSelected",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c4.prototype,"roundedContainer",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c4.prototype,"improveShortsResponseRate",void 0);_.f([_.BM("#dismissible"),_.l("design:type",HTMLElement)],c4.prototype,"dismissibleEl",void 0);_.f([_.BM("#dismiss-button yt-icon-button"),_.l("design:type",HTMLElement)],c4.prototype,"dismissButtonEl",void 0);_.f([_.BM("#inline-survey-header yt-icon-button"),_.l("design:type",HTMLElement)],c4.prototype,"inlineHeaderDismissButtonEl",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c4.prototype,"dataChanged",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c4.prototype,"handleRequestCompletion",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],c4.prototype,"onPopupClosed",null);
_.f([_.OZ("darkColorPalette","lightColorPalette","isDarkMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c4.prototype,"colorPaletteChanged",null);c4=_.f([_.U({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],c4);
_.X(c4,"ytd-inline-survey-renderer",function(){if(gD3!==void 0)return gD3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gD3=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var BPO,ndQ,YQf;BPO=function(W){return _.p("kevlar_watch_cinematics_invisible")||W.fullscreen&&_.p("kevlar_watch_cinematics_invisible_in_fullscreen")||W.theater&&!W.fullscreen&&_.p("kevlar_watch_cinematics_invisible_in_theater")};
ndQ=function(){var W=document.createElement("canvas"),P=W.getContext("2d");if(!P)throw Error("Xl");_.Hx(W,{position:"absolute",width:"100%",height:"100%"});return{element:W,context:P}};
YQf=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.p("kevlar_watch_cinematics_css_blur")};
_.yjf=function(W,P,x){return Math.abs(W-P)<=(x||1E-6)};
_.K2m=function(W,P){return W==P?!0:W&&P?W.width==P.width&&W.height==P.height:!1};_.ZHd=new _.R("notificationActionRenderer");var ody=function(W){var P=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.If;this.element.addEventListener("load",function(){P.loaded=!0;P.resolver.resolve(P.element)});
this.element.addEventListener("error",function(){P.failed=!0});
this.element.src=W};var SQQ=function(W,P){this.image=W;this.frame=P};
SQQ.prototype.drawToCanvas=function(W,P){var x=this.frame.width/this.frame.columns,I=this.frame.height/this.frame.rows,O=P.offsetX,B=P.offsetY;BPO(P)?(W.fillStyle=P.fullscreen?"#000":"#0f0f0f",W.fillRect(O,B,(P==null?void 0:P.width)||x,(P==null?void 0:P.height)||I)):W.drawImage(this.image,this.frame.column*x,this.frame.row*I,x,I,O,B,(P==null?void 0:P.width)||x,(P==null?void 0:P.height)||I)};
var uF4=function(W){this.color=W};
uF4.prototype.drawToCanvas=function(W,P){var x=P.offsetX,I=P.offsetY,O=P.width,B=P.height;W.fillStyle=BPO(P)?P.fullscreen?"#000":"#0f0f0f":this.color;W.fillRect(x,I,O,B)};var WE=function(W,P){_.F1.call(this);this.playerApi=P;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.y7(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();dq2(this,W);sH6(this);this.update()};
_.A(WE,_.F1);WE.prototype.addEventListeners=function(){var W=this,P=function(){W.update()},x=function(O){W.paused||(O.type==="newdata"&&(W.mosaics.clear(),vdd(W),PE(W)),sH6(W),W.update())},I=function(){W.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",P);this.playerApi.addEventListener("onVideoDataChange",x);this.playerApi.addEventListener("onStateChange",I);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoProgress",P);W.playerApi.removeEventListener("onVideoDataChange",x);W.playerApi.removeEventListener("onStateChange",I)})};
var dq2=function(W,P){W.cinematicContainerRenderer!==P&&(W.cinematicContainerRenderer=P,vdd(W),PE(W),W.colorStoreUpdateJobId=_.Gr.addLowPriorityJob(function(){var x;if((x=W.cinematicContainerRenderer.colorStore)!=null&&x.sampledColors){x=Infinity;for(var I=_.n(W.cinematicContainerRenderer.colorStore.sampledColors),O=I.next();!O.done;O=I.next()){O=O.value;var B=Number(O.key);B!==0&&B<x&&(x=B);B=_.Qy(O.value);W.colorStore.set(O.key,B)}W.colorStoreTimeInterval=x}}))},vdd=function(W){W.colorStoreUpdateJobId&&
(_.Gr.cancelJob(W.colorStoreUpdateJobId),W.colorStoreUpdateJobId=void 0);
W.colorStore.clear();W.currentStoryboardColor=void 0},mq4=function(W,P){var x;
return(x=W.getStoryboardFrame(P))==null?void 0:x.url};
WE.prototype.onPlayerStateChange=function(){this.update()};
WE.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var sH6=function(W){var P=W.getStoryboardFrame(0);P&&(P=new _.y7(P.width/P.columns,P.height/P.rows),_.K2m(W.currentStoryboardSize,P)||(W.currentStoryboardSize=P,W.publish("STORYBOARD_SIZE_CHANGED",W.currentStoryboardSize)))},VFO=function(W,P){W.currentStoryboardIndex=P;
W.pendingStoryboardIndex=NaN;P=W.getStoryboardFrame(W.currentStoryboardIndex);W.currentStoryboard=new SQQ(W.mosaics.get(P.url).element,P);W.publish("STORYBOARD_CHANGED",W.currentStoryboard);W.lastUpdateTime=(0,_.iA)()};
WE.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var PE=function(W){W.currentStoryboardIndex=NaN;W.pendingStoryboardIndex=NaN;W.currentStoryboard&&(W.currentStoryboard=void 0,W.publish("STORYBOARD_CHANGED",void 0));W.lastUpdateTime=NaN};
WE.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)PE(this);else{var W=this.playerApi.getPlayerState(1);if(W===-1||W===5||W===0)PE(this);else if(isNaN(this.lastUpdateTime)||!((0,_.iA)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(W=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){W=""+Math.round(W*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var P=this.colorStore.get(W);P?P!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=P,this.currentStoryboard=new uF4(P),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.iA)()):(_.ge(new _.mW("Could not find color for timestamp: "+W,this.cinematicContainerRenderer)),PE(this))}else PE(this);else tF3(this,W)}};
var tF3=function(W,P){var x=W.getStoryboardFrameIndex(P);if(x!==W.currentStoryboardIndex&&x!==W.pendingStoryboardIndex){P=mq4(W,x);var I=W.mosaics.get(P);I?I.loaded&&VFO(W,x):(W.pendingStoryboardIndex=x,x=new ody(P),W.mosaics.set(P,x),x.resolver.promise.then(function(){if(!W.isDisposed()&&!W.paused&&!isNaN(W.pendingStoryboardIndex)){var O=mq4(W,W.pendingStoryboardIndex);if(O){var B;(B=W.mosaics.get(O))!=null&&B.loaded&&VFO(W,W.pendingStoryboardIndex)}else PE(W)}}))}};
WE.prototype.getStoryboardFrameIndex=function(W){var P=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(W,P)};
WE.prototype.getStoryboardFrame=function(W){var P=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,x,I;return((I=(x=this.playerApi).getStoryboardFrame)==null?void 0:I.call(x,W,P))||null};
WE.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var I5=function(W,P,x,I){I=I===void 0?!1:I;_.vn.call(this);this.cinematicContainerRenderer=P;this.playerApi=x;this.theater=this.fullscreen=!1;var O;this.ambientLightThemeEnabled=!I&&!!(P==null?0:(O=P.config)==null?0:O.enableInLightTheme);this.ambientFullscreenEnabled=I&&_.p("web_cinematic_fullscreen");this.container=document.createElement("div");W.appendChild(this.container);var B;if(_.p("web_cinematic_theater_mode")||_.p("web_cinematic_fullscreen")||(P==null?0:(B=P.config)==null?0:B.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);p2f(this);W=this.ambientV2Container||this.container;this.backCanvas=ndQ();this.frontCanvas=ndQ();W.appendChild(this.backCanvas.element);W.appendChild(this.frontCanvas.element);this.storyboardManager=new WE(P,this.playerApi);_.nU(this,this.storyboardManager);this.addEventListeners();jH9(this)?QH6(this,100+xS(this)*3*2,100+xS(this)*3*2):Cv3(this);AjQ(this,this.storyboardManager.currentStoryboard)};
_.A(I5,_.vn);var p2f=function(W){W.ambientV2Container?z12(W):(_.Hx(W.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+Gz6(W)+", "+Ed9(W)+")"}),YQf()&&_.Hx(W.container,"filter","blur("+_.Wi("cinematic_watch_css_filter_blur_strength",40)+"px)"))},z12=function(W){if(W.ambientV2Container){var P=W.playerApi.getVideoAspectRatio();
_.Hx(W.container,{"aspect-ratio":""+P,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Hx(W.ambientV2Container,{"aspect-ratio":""+P,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+Gz6(W)+", "+Ed9(W)+")"});YQf()&&_.Hx(W.ambientV2Container,"filter","blur("+_.Wi("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
I5.prototype.setFullscreen=function(W,P){this.fullscreen=W;this.theater=!!P;p2f(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),W=this.storyboardManager.currentStoryboard,gd2(this),W&&DqG(this,W)};
I5.prototype.addEventListeners=function(){var W=this,P=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(O){AjQ(W,O)}),x=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Cv3(W)});
this.addOnDisposeCallback(function(){W.storyboardManager.unsubscribeByKey(P);W.storyboardManager.unsubscribeByKey(x)});
if(this.ambientV2Container){var I=function(){z12(W)};
this.playerApi.addEventListener("onVideoDataChange",I);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoDataChange",I)})}};
var Cv3=function(W){if(!jH9(W)){var P=W.storyboardManager.currentStoryboardSize;isNaN(P.width)||isNaN(P.height)||QH6(W,Number(P.width)+xS(W)*3*2,Number(P.height)+xS(W)*3*2)}},QH6=function(W,P,x){W.backCanvas.element.width=P;
W.backCanvas.element.height=x;W.frontCanvas.element.width=P;W.frontCanvas.element.height=x},jH9=function(W){return W.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},AjQ=function(W,P,x){x=x===void 0?!1:x;
var I=W.frontCanvas.element.getAnimations()[0];I?(I.pause(),W.backCanvas.context.globalAlpha=Number(getComputedStyle(W.frontCanvas.element).opacity),W.frontCanvas.element.style.opacity="0",I.finish()):W.backCanvas.context.globalAlpha=1;W.backCanvas.context.drawImage(W.frontCanvas.element,0,0,W.backCanvas.element.width,W.backCanvas.element.height);gd2(W);P&&DqG(W,P);P=P?W.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Wi("cinematic_watch_fade_out_duration",500);I=_.Wi("cinematic_watch_transition_frame_rate")/
1E3;var O={};I&&(O={easing:"steps("+Math.round(P*I)+")"});(x===void 0?0:x)||W.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:P,iterations:1},O));W.frontCanvas.element.style.opacity="1"},gd2=function(W){var P=W.ambientLightThemeEnabled,x=W.ambientLightThemeEnabled||W.ambientFullscreenEnabled&&!_.p("web_cinematic_fullscreen_v2");
W.frontCanvas.context.fillStyle=W.theater&&P||W.fullscreen&&x?"#000":"#0f0f0f";YQf()||(W.frontCanvas.context.filter="blur(0)");W.frontCanvas.context.fillRect(0,0,W.frontCanvas.element.width,W.frontCanvas.element.height)},DqG=function(W,P){YQf()||(W.frontCanvas.context.filter="blur("+xS(W)+"px)");
W.frontCanvas.context.globalAlpha=_.Wi("cinematic_watch_effect_opacity",.4);var x={offsetX:xS(W)*3,offsetY:xS(W)*3,theater:W.theater,fullscreen:W.fullscreen};jH9(W)&&(x.width=100,x.height=100);P.drawToCanvas(W.frontCanvas.context,x);W.frontCanvas.context.globalAlpha=1},xS=function(W){var P;
return(P=W.cinematicContainerRenderer.config.blurStrength)!=null?P:5},Gz6=function(W){var P,x;
if((W.fullscreen||W.theater)&&((P=W.cinematicContainerRenderer.config)==null?0:(x=P.watchFullscreenConfig)==null?0:x.colorSourceWidthMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var I;return(I=W.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?I:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Ed9=function(W){var P,x;
if((W.fullscreen||W.theater)&&((P=W.cinematicContainerRenderer.config)==null?0:(x=P.watchFullscreenConfig)==null?0:x.colorSourceHeightMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var I;return(I=W.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?I:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
I5.prototype.disposeInternal=function(){_.vn.prototype.disposeInternal.call(this);this.container.remove()};
I5.prototype.clear=function(){AjQ(this,void 0,!0)};
I5.prototype.pause=function(){this.storyboardManager.pause()};var MF3;MF3=_.Vi(function(){var W,P,x=!((P=(W=document.createElement("canvas")).getContext)==null||!P.call(W,"2d")),I;W=!((I=CSS)==null||!I.supports("filter: blur(0)"));I=!!Element.prototype.animate&&!!Element.prototype.getAnimations;P=_.p("web_cinematic_fullscreen")||_.p("web_cinematic_theater_mode")||_.p("web_cinematic_light_theme")||!1;var O;return x&&W&&I&&(!P||!((O=CSS)==null||!O.supports("aspect-ratio: 1 / 1")))});
_.Ol=function(W,P){_.F1.call(this);this.container=W;this.playerApi=P;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=$qm(this);this.update()};
_.A(_.Ol,_.F1);_.w24=function(W){var P=document.documentElement.hasAttribute("dark");W.isDarkModeEnabled=P;W.update()};
_.h13=function(W,P){W.settingEnabled=P;W.update()};
_.Ol.prototype.setFullscreen=function(W,P){this.fullscreen=W;this.theater=!!P;this.update()};
_.HHd=function(W,P){W.cinematicContainerRenderer=P;W.cinematicContainerRenderer&&(W.cinematicsVe=_.td(W.isShorts()?227858:159022),_.BK(_.YY(),W.cinematicsVe),W.loggingClientData={watchCinematicContainerData:{presentationStyle:W.cinematicContainerRenderer.presentationStyle}});W.update()};
_.Ol.prototype.isShorts=function(){var W,P;return((W=this.cinematicContainerRenderer)==null?void 0:(P=W.config)==null?void 0:P.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Ol.prototype.isAllowed=function(){var W;if(W=MF3()){var P,x,I;W=((x=this.cinematicContainerRenderer)==null?void 0:x.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((I=this.cinematicContainerRenderer)==null||!I.colorStore)||((P=this.cinematicContainerRenderer)==null?void 0:P.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(W)if(_.p("web_cinematics_pausing")){var O,B;W=this.isDarkModeEnabled||!!((O=this.cinematicContainerRenderer)==
null?0:(B=O.config)==null?0:B.enableInLightTheme)}else{var Y,K;O=!!((Y=this.cinematicContainerRenderer)==null?0:(K=Y.config)==null?0:K.enableInLightTheme)&&(_.$$("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);W=this.isDarkModeEnabled||O}if(Y=W){var Z,d;Y=!((d=(Z=this.prefersReducedMotionQuery)==null?void 0:Z.matches)!=null&&d)}return Y};
_.e1G=function(W){(W=W.currentCinematicEffect)!=null&&(W=W.storyboardManager,W.paused=!1,sH6(W),W.update())};
_.Ol.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var $qm=function(W){if(!_.p("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var P=window.matchMedia("(prefers-reduced-motion: reduce)"),x=function(){W.update()};
P.addListener(x);W.addOnDisposeCallback(function(){P.removeListener(x)});
return P}};
_.Ol.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var W=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new I5(this.container,W,this.playerApi,this.isDarkModeEnabled),_.nU(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var P=this.currentCinematicEffect;P.cinematicContainerRenderer!==
W&&(P.cinematicContainerRenderer=W,dq2(P.storyboardManager,W),p2f(P));W=_.SI();_.uB(0,194,!0);W.save();W=_.E_();this.cinematicsVe&&W&&_.c7(W,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(W=_.E_(),this.cinematicsVe&&W&&_.au(W,[this.cinematicsVe],!1,this.loggingClientData),_.TD(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.N1.Object.defineProperties(_.Ol.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Hym;var ezv;_.vM({_template:function(){if(ezv!==void 0)return ezv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=
W.content,x=P.insertBefore;Hym===void 0&&(Hym=document.createElement("template"));var I=Hym;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return ezv=W},
is:"tp-yt-iron-pages",behaviors:[_.Db,_.$l],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Dh3;_.M72=function(){if(_.p("kevlar_home_skeleton")&&!Dh3){var W=document.querySelector("#home-page-skeleton");W&&(_.CK("hgcr"),_.oE(W),Dh3=!0)}};
Dh3=!1;_.jT=new _.R("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var DdO,MHy,$d4,w4M,hcd,HQv,aDm,k6v,UdG,bQL,ecf,cRd,Nm2,lD3;_.g73=function(W,P,x){P=P===void 0?5:P;if(P!==0){var I=typeof W==="function"?W():document.querySelector(W);I?(x==null?0:x.enableSmartFocus)?_.Bom(I):I.focus():setTimeout(function(){_.g73(W,P-1,x)},500)}};
DdO=function(W){return _.xW7(_.PLS(W&16777215))<.5};
MHy=function(W,P,x){var I=x.minimumRowsOfVideosBetweenSections===void 0?1:x.minimumRowsOfVideosBetweenSections;return W<(x.minimumRowsOfVideosAtStart===void 0?2:x.minimumRowsOfVideosAtStart)||P!==null&&W-P<=I?!1:!0};
$d4=function(W,P){var x=0,I=0;W=_.n(W);for(var O=W.next();!O.done;O=W.next()){var B=O.value;if(B.richItemRenderer)B.richItemRenderer.rowIndex=I,B.richItemRenderer.colIndex=x++,x===P&&(x=0,I++);else if(B.richGroupRenderer&&B.richGroupRenderer.numColumns!==void 0)B.richGroupRenderer.rowIndex=I,B.richGroupRenderer.colIndex=x,x+=B.richGroupRenderer.numColumns,x===P&&(x=0,I++);else if(B.richSectionRenderer){var Y=O=void 0;if(B=_.Q((O=B)==null?void 0:(Y=O.richSectionRenderer)==null?void 0:Y.content,_.l9b))B.rowIndex=
I++}}};
w4M=function(W,P){var x=P.contentElement;P=P.rendererToTagNameMap;if(x&&P&&P.size!==0){for(var I=new Map,O=_.n(x.children),B=O.next();!B.done;B=O.next()){B=B.value;var Y=B.tagName.toLowerCase(),K=I.get(Y);K||(K=[],I.set(Y,K));K.push(B)}if(I.size!==0)for(O=Math.min(W.length,x.children.length),B=new Map,Y=0;Y<O;Y++){K=Object.keys(W[Y])[0];K=P.get(K);if(!K)break;var Z=B.get(K);Z===void 0&&(Z=0,B.set(K,Z));var d=I.get(K);if(!d||Z>=d.length)break;B.set(K,Z+1);K=d[Z];Z=x.children[Y];Z!==K&&(_.WtS=!0,_.PnA.set(K,
!0),x.insertBefore(K,Z),_.PnA.delete(K),_.WtS=!1)}}};
hcd=function(W,P,x,I,O,B,Y){I=I===void 0?{}:I;if(!W||!W.length)return[];W=W.slice();var K=[],Z=[];O=null;for(var d=0,v=function(a){Z.sort(function(N,Io){return Io.skippedOnRow-N.skippedOnRow});
for(var k,T=(k=Z.shift())==null?void 0:k.content;T;)!T.richSectionRenderer&&a||K.push(T),k=void 0,T=(k=Z.shift())==null?void 0:k.content},m=[];W.length>0||Z.length>0;){for(var t=[],C=P;C>0;){var z=void 0,D=void 0,w=(D=Z[0]&&Z[0].skippedOnRow<d?(z=Z.shift())==null?void 0:z.content:void 0)!=null?D:W.shift();
if(!w)break;if(w.richItemRenderer)z=w.richItemRenderer.targetId,D=void 0,z&&((D=Y)==null?0:D.has(z))&&m.push(Y.get(z)),t.push(w),C--;else if(w.richGroupRenderer&&w.richGroupRenderer.numColumns!==void 0)w.richGroupRenderer.numColumns<=C?(t.push(w),C-=w.richGroupRenderer.numColumns):C===P&&w.richGroupRenderer.numColumns>P?(t.push({richGroupRenderer:Object.assign({},w.richGroupRenderer,{numColumns:P})}),C=0):Z.push({content:w,skippedOnRow:d});else if(w.richSectionRenderer)if(MHy(d,O,I)&&C===P){K.push(w);
O=d;d++;continue}else Z.push({content:w,skippedOnRow:d});else if(w.continuationItemRenderer){v(!0);K.push(w);C=0;break}if(C===0)K.push.apply(K,_.ju(t));else if(!x&&W.length===0){v(!1);K.push.apply(K,_.ju(t));C=0;break}}d++;m=_.n(m);for(t=m.next();!t.done;t=m.next())K.push(t.value),d++;m=[]}$d4(K,P);B&&w4M(K,B);return K};
HQv=function(W){return W.talkToRecs};
aDm=function(W,P){if(P){var x=_.Xe().getState().entities.flowStateEntity,I=ecf(W),O=[P];I&&I!==P&&O.push(I);var B=!0,Y;if(x&&W.flowStateEntityKey&&((Y=x[W.flowStateEntityKey])==null?void 0:Y.primaryButtonDisabled)!==void 0){var K;B=!((K=x[W.flowStateEntityKey])==null||!K.primaryButtonDisabled)}cRd(W,I!=null?I:P,O,B)}};
k6v=function(W){return _.sx(_.Xe(),function(P){return P.entities.flowStateEntity},function(P,x){if(W.flowStateEntityKey){var I,O=P==null?void 0:(I=P[W.flowStateEntityKey])==null?void 0:I.currentStepId,B;
x=x==null?void 0:(B=x[W.flowStateEntityKey])==null?void 0:B.currentStepId;B=_.Xe().getState().talkToRecs;if(O&&O!==x){var Y;P=(P==null?void 0:(Y=P[W.flowStateEntityKey])==null?void 0:Y.stepIdStack)||Object.keys(B.stepStates);Y=!bQL(B==null?void 0:B.stepStates[O]);cRd(W,O,P,Y)}}})};
UdG=function(W){return _.sx(_.Xe(),HQv,function(P){var x=ecf(W);if(x){var I=Object.keys(P.stepStates);P=!bQL(P==null?void 0:P.stepStates[x]);cRd(W,x,I,P)}})};
bQL=function(W){var P=Object.keys((W==null?void 0:W.selectionStates)||{}).reduce(function(B,Y){return B||(W==null?void 0:W.selectionStates[Y].isSelected)},!1),x,I,O=!!(W==null?0:(x=W.userQuery)==null?0:(I=x.userQuery)==null?0:I.trim());
return P||O};
ecf=function(W){if(W.flowStateEntityKey){var P,x,I=(P=_.Xe().getState().entities.flowStateEntity)==null?void 0:(x=P[W.flowStateEntityKey])==null?void 0:x.currentStepId;if(I)return I}};
cRd=function(W,P,x,I){_.Xe().dispatch(_.mG("flowStateEntity",W.flowStateEntityKey,{currentStepId:P,stepIdStack:x,key:W.flowStateEntityKey,primaryButtonDisabled:I}))};
_.X4y=function(W,P){return _.Jb(W.entities,"youchatPendingResponseEntity",P)};
_.fDv=function(W){return function(P){_.cM(_.mG("youchatPendingResponseEntity",W,{entityKey:W,isPendingResponse:P}))}};
Nm2=function(W){W==null||W.addEventListener("DOMLoaded",function(){W.goToAndPlay(W.totalFrames-48,!0)})};var TmM;_.vM({_template:function(){if(TmM!==void 0)return TmM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
var P=W.content,x=P.insertBefore;lD3===void 0&&(lD3=document.createElement("template"));var I=lD3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return TmM=W},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var rR9=new _.R("talkToRecsFlowRenderer");var iQ4=new _.R("flowRootRenderer");var Rc9=new _.R("chipsShelfViewModel");var FHv=new _.R("horizontalShelfViewModel");_.qMQ=new _.R("engagementPanelSectionListRenderer");var LHM=new _.R("conversationResourceViewModel");var Wd9=function(){this.horizontal=!1},Pf4=function(W,P){W.horizontal=P};
Wd9.prototype.position=function(W,P,x,I){I=I===void 0?1:I;W=this.delta(W)*I+P;I=Math.max(P,x);return W>=Math.min(P,x)&&W<=I?W:x};
Wd9.prototype.axis=function(W){W=this.direction(W);return W==="up"||W==="down"?"Y":"X"};var Yk=function(W,P,x){P=P===void 0?_.n6():P;this.target=W;this.manager=P;this.touchAction=x;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Yk.prototype.attach=function(){if(!this.attached){this.attached=!0;this.eventMap={swipedown:this.onSwipeDown,swipeup:this.onSwipeUp,panstart:this.onPanStart,panright:this.onPanMove,panleft:this.onPanMove,panmove:this.onPanMove,panend:this.onPanEnd};this.manager.registerTouchEvents.apply(this.manager,[this.target,this.directions,this.touchAction].concat(_.ju(this.events)));for(var W=_.n(this.events),P=W.next();!P.done;P=W.next())this.listen(P.value)}};
Yk.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.ju(this.events)));for(var W=_.n(this.events),P=W.next();!P.done;P=W.next())this.unlisten(P.value)}};
Yk.prototype.listen=function(W){this.eventMap[W]&&this.target.addEventListener(W,this.eventMap[W])};
Yk.prototype.unlisten=function(W){this.eventMap[W]&&this.target.removeEventListener(W,this.eventMap[W])};var y3=function(){Wd9.apply(this,arguments)};
_.A(y3,Wd9);y3.prototype.direction=function(W){var P=W.detail;W=P.deltaY;P=P.deltaX;return W&&!this.horizontal?W>0?"down":"up":P&&this.horizontal?P>0?"right":"left":"none"};
y3.prototype.distance=function(W){return Math.abs(this.delta(W))};
y3.prototype.delta=function(W){var P=this.direction(W),x=W.detail;W=x.deltaX;x=x.deltaY;return P==="up"||P==="down"?x||0:W||0};
y3.prototype.velocity=function(W){var P=this.direction(W),x=W.detail;W=x.velocityX;x=x.velocityY;return Math.abs(P==="up"||P==="down"?x||0:W||0)};_.KG=function(W,P,x,I,O,B){O=O===void 0?new y3:O;B=B===void 0?_.n6():B;Yk.call(this,P,B,I);var Y=this;this.element=W;this.target=P;this.config=x;this.input=O;this.manager=B;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Y.config.draggingClass&&Y.element.classList.add(Y.config.draggingClass);Y.config.startAction&&Y.config.startAction()};
this.onPanMove=function(K){var Z=xhd(Y,K);if(Z){Y.move(K,Z);Z.fade&&Y.fade(K,Z);var d=Y.input.direction(K);Z.moveAction&&Z.moveAction(IXB(Y,K,Z),d)}};
this.onPanEnd=function(K){var Z,d,v,m,t,C;return _.y(function(z){if(z.nextAddress==1){Y.animationRequestId&&cancelAnimationFrame(Y.animationRequestId);Y.animationRequestId=void 0;Z=xhd(Y,K);if(!Z)return z.return();d=Z;v=d.triggerAction;m=d.fade;t=d.disableFinish;C=d.translateBack;var D=Y.input.velocity(K),w=Y.input.distance(K),a=Y.threshold(Z);return D>.3&&w>10||w>a?t?z.jumpTo(6):m?_.S(z,OYf(Y,K),6):_.S(z,Jtf(Y,K,Z),6):C?_.S(z,Y.translateBack(K),3):z.jumpTo(3)}z.nextAddress!=3&&v&&v();Y.config.draggingClass&&
Y.element.classList.remove(Y.config.draggingClass);Y.reset();_.Kl(z)})};
W=Object.keys(x.triggers);this.directions=new Set(W);Pf4(this.input,this.directions.has("right")||this.directions.has("left"))};
_.A(_.KG,Yk);_.KG.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var xhd=function(W,P){P=W.input.direction(P);return W.config.triggers[P]};
_.KG.prototype.move=function(W,P){var x=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var I=x.input.axis(W),O=x.input.position(W,x.config.startPosition,P.endPosition,P.moveRatio||1);x.element.style.transform="translate"+I+"("+O+"px)";x.animationRequestId=void 0}))};
var IXB=function(W,P,x){var I=x.moveRatio||1;x=Math.abs(W.config.startPosition-x.endPosition);return Math.min(W.input.distance(P)*I,x)/x};
_.KG.prototype.fade=function(W,P){var x=P.endOpacity;W=IXB(this,W,P);W>0&&(this.element.style.opacity=""+(((x||0)-1)*W+1))};
_.KG.prototype.threshold=function(W){return W.threshold?W.threshold:Math.abs(W.endPosition-this.config.startPosition)/3};
var Jtf=function(W,P,x){var I,O,B,Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1)return I=W.input.delta(P)+W.config.startPosition,O=W.input.axis(P),B=x,Y=B.endPosition,K=B.transitionEndPosition,d=(Z=K)!=null?Z:Y,_.S(v,W.element.animate([{transform:"translate"+O+"("+I+"px)"},{transform:"translate"+O+"("+d+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+O+"("+d+"px)";_.Kl(v)})};
_.KG.prototype.translateBack=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1){if(!P.element.style.transform)return O.return();x=P.input.axis(W);I=P.config.startPosition;return _.S(O,P.element.animate([{transform:P.element.style.transform},{transform:"translate"+x+"("+I+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}P.element.style.transform="translate"+x+"("+I+"px)";_.Kl(O)})};
var OYf=function(W,P){var x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return x=W.input.delta(P)+W.config.startPosition,I=W.input.axis(P),O=x+70,B=W.element.style.opacity===""?1:W.element.style.opacity,_.S(Y,W.element.animate([{transform:"translate"+I+"("+x+"px)",opacity:B},{transform:"translate"+I+"("+O+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+I+"("+O+"px)";W.element.style.opacity="0";_.Kl(Y)})};var Zm=function(){var W=_.Yl.apply(this,arguments)||this;W._noAccessors=!0;W.scrollRate=3;W.autoScrollAnimationStart=0;W.autoScrollPaused=!1;W.autoScrollRafId=0;return W};
_.A(Zm,_.Yl);_.J=Zm.prototype;_.J.created=function(){var W=this;this.boundAutoScrollHandler=function(P){W.autoScroll(P)}};
_.J.detached=function(){this.hostElement.removeEventListener("mouseout",_.WM(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.WM(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.WM(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.J.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.WM(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.WM(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.WM(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.WM(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.WM(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.WM(this,this.endAutoScroll)),this.endAutoScroll())};
_.J.autoScroll=function(W){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=W);var P;if(P=!this.autoScrollPaused&&this.scrollTarget)P=this.scrollTarget,P=P.scrollHeight-P.scrollTop!==P.clientHeight;P&&(P=1E3/this.scrollRate,W-=this.autoScrollAnimationStart,W>P&&(this.scrollTarget.scrollTop+=Math.ceil(W/P),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.J.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.J.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Zm.prototype.autoScrollEnabledChanged=Zm.prototype.autoScrollEnabledChanged;_.f([_.c(),_.l("design:type",Object)],Zm.prototype,"scrollRate",void 0);_.f([_.c(),_.l("design:type",Object)],Zm.prototype,"scrollTarget",void 0);_.f([_.c(),_.l("design:type",Boolean)],Zm.prototype,"autoScrollEnabled",void 0);_.f([_.OZ("autoScrollEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zm.prototype,"autoScrollEnabledChanged",null);Zm=_.f([_.yL()],Zm);_.B4m=[Zm.prototype];var nR2;var ow=function(){var W=_.b.apply(this,arguments)||this;W.buttonUpdate=_.p("web_button_rework");W.dismissButtonOverrides=_.p("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;W.forceDarkTheme=!1;W.forceLightTheme=!1;W.dynamicTextHeight=94;W.hasOverflowButton=!1;W.isInfeedModernization=!1;return W};
_.A(ow,_.b);_.J=ow.prototype;_.J.computeUrlImg=function(W){if(W)return _.rc(W.thumbnails)};
_.J.getLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.J.getLogoClassName=function(W){return this.logoWithPadding(W)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.J.logoWithPadding=function(W){var P,x;return(W=(P=W.thumbnails)==null?void 0:(x=P[0])==null?void 0:x.height)&&W%31===0?!0:!1};
_.J.sendImpressionEndpoints=function(W){W.impressionEndpoints&&_.Iu(this.hostElement,W.impressionEndpoints)};
_.J.observeBasicPalette=function(){var W,P,x=(W=this.data)==null?void 0:(P=W.colorData)==null?void 0:P.basicColorPaletteData;x?_.QB(this.hostElement,x):_.QB(this.hostElement,{})};
_.J.observeDataChanged=function(){var W;this.dynamicTextHeight=((W=this.data)==null?0:W.supplementalText)?74:94;var P;this.hasSupplementalText=!((P=this.data)==null||!P.supplementalText);if(_.p("web_button_rework")){var x,I,O,B;W=(x=this.data)==null?void 0:(I=x.actionButton)==null?void 0:(O=I.buttonRenderer)==null?void 0:(B=O.colorData)==null?void 0:B.basicColorPaletteData;var Y,K,Z;if(!((Y=this.data)==null?0:(K=Y.actionButton)==null?0:(Z=K.buttonRenderer)==null?0:Z.style)&&W){this.computeIsInfeedModernization(this.data)||
(W.borderColor=W.foregroundTitleColor);var d,v;this.set("data.actionButton.buttonRenderer",_.jU.unsafeClone((d=this.data)==null?void 0:(v=d.actionButton)==null?void 0:v.buttonRenderer))}}};
_.J.observeDataForCounterfactual=function(){if(_.p("kevlar_banner_cf_extra_logging")){var W;((W=this.data)==null?0:W.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.J.computeSupplementalStyle=function(){var W;if((W=this.data)!=null&&W.supplementalText){var P,x,I;if((P=this.data)==null?0:(x=P.colorData)==null?0:(I=x.basicColorPaletteData)==null?0:I.foregroundActivatedColor)return W=_.j9(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+W+"; --yt-endpoint-hover-color:"+W+"; --yt-endpoint-visited-color:"+W+"; --yt-formatted-string-bold-font-weight:700;"}};
_.J.computeForcedDarkTheme=function(){var W,P,x,I=(W=this.data)==null?void 0:(P=W.actionButton)==null?void 0:(x=P.buttonRenderer)==null?void 0:x.style,O,B,Y;W=DdO(((O=this.data)==null?void 0:(B=O.colorData)==null?void 0:(Y=B.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return I&&W};
_.J.computeForcedLightTheme=function(){var W,P,x,I=(W=this.data)==null?void 0:(P=W.actionButton)==null?void 0:(x=P.buttonRenderer)==null?void 0:x.style,O,B,Y;W=!DdO(((O=this.data)==null?void 0:(B=O.colorData)==null?void 0:(Y=B.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return I&&W};
_.J.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.J.computeHasTitle=function(W){return!!W.title};
_.J.computeTitleMaxFontSize=function(W){return this.computeHasOverflowButton(W)?28:64};
_.J.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.J.computeIsInfeedModernization=function(){var W,P,x,I,O=(W=this.data)==null?void 0:(P=W.actionButton)==null?void 0:(x=P.buttonRenderer)==null?void 0:(I=x.colorData)==null?void 0:I.basicColorPaletteData;return(O==null?void 0:O.backgroundColor)===452984831||(O==null?void 0:O.backgroundColor)===218103808};
ow.prototype.observeDataForCounterfactual=ow.prototype.observeDataForCounterfactual;ow.prototype.observeDataChanged=ow.prototype.observeDataChanged;ow.prototype.observeBasicPalette=ow.prototype.observeBasicPalette;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],ow.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],ow.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ow.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ow.prototype,"buttonUpdate",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ow.prototype,"hasSupplementalText",void 0);_.f([_.c(),_.l("design:type",Object)],ow.prototype,"dismissButtonOverrides",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.l("design:type",Boolean)],ow.prototype,"hasTitle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.l("design:type",Object)],ow.prototype,"forceDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.l("design:type",Object)],ow.prototype,"forceLightTheme",void 0);_.f([_.c(),_.l("design:type",Object)],ow.prototype,"dynamicTextHeight",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.l("design:type",Object)],ow.prototype,"hasOverflowButton",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.l("design:type",Object)],ow.prototype,"isInfeedModernization",void 0);_.f([_.OZ("data.colorData.basicColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ow.prototype,"observeBasicPalette",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ow.prototype,"observeDataChanged",null);_.f([_.OZ("data.isVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ow.prototype,"observeDataForCounterfactual",null);ow=_.f([_.U({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],ow);
_.X(ow,"ytd-banner-promo-renderer",function(){if(nR2!==void 0)return nR2;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return nR2=W},{mode:1});var YKf;var yt6;var Kd4;var ST=function(){return _.b.apply(this,arguments)||this};
_.A(ST,_.b);_.f([_.c(),_.l("design:type",Object)],ST.prototype,"data",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);ST=_.f([_.U({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],ST);
_.X(ST,"ytd-hashtag-grid-tile-renderer",function(){if(Kd4!==void 0)return Kd4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Kd4=W},{mode:1});var u2=function(){return _.b.apply(this,arguments)||this};
_.A(u2,_.b);u2.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
u2.prototype.updateRichGridTrendingHashtagsVisibility=function(){var W,P;if(((W=this.data)==null||!W.isExpanded)&&(P=this.data)!=null&&P.tiles){W=this.data.tiles.length;P=W>this.richGridItemsPerRow?this.richGridItemsPerRow+1:W;var x=Math.ceil(W/P);this.fullyVisibleRows=W%P===1&&x===2?1:Math.min(x,2);this.isShowMoreVisible=this.fullyVisibleRows<x}};
u2.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
u2.prototype.updateRichGridTrendingHashtagsVisibility=u2.prototype.updateRichGridTrendingHashtagsVisibility;_.f([_.c(),_.l("design:type",Object)],u2.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Number)],u2.prototype,"fullyVisibleRows",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],u2.prototype,"isShowMoreVisible",void 0);_.f([_.c({selector:_.CR,value:0}),_.l("design:type",Number)],u2.prototype,"richGridItemsPerRow",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],u2.prototype,"ytdReduxBehavior",void 0);_.f([_.OZ("data","richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],u2.prototype,"updateRichGridTrendingHashtagsVisibility",null);
u2=_.f([_.U({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],u2);
_.X(u2,"ytd-hashtag-grid-shelf-renderer",function(){if(yt6!==void 0)return yt6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return yt6=W},{mode:1});var ZYG;var oR2;var df=function(){var W=_.b.apply(this,arguments)||this;W.visibleVideos=[];W.hiddenVideos=[];W.modern=_.p("web_modern_buttons");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(df,_.b);_.J=df.prototype;_.J.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.J.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"}}}};
_.J.dataChanged=function(){var W=this;this.requestElementsPerRow();var P,x;this.currentColorPalette=this.isDarkTheme?(P=this.data)==null?void 0:P.darkColorData:(x=this.data)==null?void 0:x.lightColorData;var I;if((I=this.currentColorPalette)==null?0:I.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Xm(this,function(){W.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.computeIsFirstFeedItem=function(W){return W};
_.J.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.J.getCurrentLogo=function(W,P){if(W)return P?W.darkLogoImage:W.lightLogoImage};
_.J.computeTitleStyle=function(W){var P;if((P=this.data)!=null&&P.title&&W&&W.textPrimary!==void 0)return"color:"+_.j9(W.textPrimary)+";"};
_.J.computeSubtitleStyle=function(W){var P;if((P=this.data)!=null&&P.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.j9(W.textSecondary)+";"};
_.J.computeDismissIconStyle=function(W){if(this.data&&this.data.dismissButton&&W&&W.textPrimary!==void 0)return"--yt-button-color:"+_.j9(W.textPrimary)+";"};
_.J.computeOverflowButtonStyle=function(W){if(this.data&&this.data.overflowButton&&W&&W.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.j9(W.textPrimary)+";--yt-spec-icon-active-other:"+_.j9(W.textPrimary)+";"};
_.J.computeBackgroundStyle=function(W){if(W&&this.data){var P="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var x=_.rc((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);x&&(P+='background-image:url("'+x+'");')}W.backgroundColor!==void 0&&(P+="background-color:"+_.Qy(W.backgroundColor)+";");return P}};
_.J.computeButton=function(){var W,P=Object.assign({},_.Q((W=this.data)==null?void 0:W.showMoreButton,_.w6));if(this.modern&&P){P.style="STYLE_MONO_OUTLINE";var x;if(W=(x=this.currentColorPalette)==null?void 0:x.textPrimary)P.colorData={basicColorPaletteData:{foregroundTitleColor:W,borderColor:W}}}return P};
_.J.shouldShowBottomButton=function(W,P){return!(W==null?0:W.header)&&!(W==null||!W.primaryButton)&&P<3};
_.J.checkExpanded=function(W){this.isExpanded=W&&W.content?this.hiddenVideos.length===0:!0};
_.J.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.J.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.J.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.J.computeHasSectionHeader=function(W){return!!W.header};
_.J.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var W;if((W=this.data.primaryButton)==null?0:W.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 P;((P=this.data.dismissButton)==null?0:P.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var x,I;((x=this.data)==null?0:(I=x.primaryButton)==null?0:I.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.J.setVisibleVideos=function(W){if(this.data&&this.data.content)if(this.data.content.length){var P=this.data.content.length;this.data.header?W?(this.visibleVideos=this.data.content.slice(0,Math.min(P,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(P,this.slimItemsPerRow),P)):(this.visibleVideos=this.data.content.slice(0,Math.min(P,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(P,this.elementsPerRow),P)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(P,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(P,this.elementsPerRow),P)):(this.visibleVideos=this.data.content.slice(0,Math.min(P,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(P,this.elementsPerRow-1),P))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.J.setHasMovieRenderer=function(){var W;if((W=this.data)!=null&&W.content){var P;this.hasMovieRenderer=!!_.Q((P=this.data)==null?void 0:P.content[0],_.t2l)}else this.hasMovieRenderer=!1};
_.J.requestElementsPerRow=function(){_.Lf(this.hostElement,"yt-request-elements-per-row")};
_.J.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var W=_.n(this.hiddenMediaRenderers),P=W.next();!P.done;P=W.next())P.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(W=_.g(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&W.focus()}};
_.J.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.J.logoWithPadding=function(W){var P,x,I;return(W=(P=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(x=P.thumbnails)==null?void 0:(I=x[0])==null?void 0:I.height)&&W%31===0?!0:!1};
_.J.onUpdateElementsPerRowAction=function(W,P,x){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W);x&&this.slimItemsPerRow!==x&&(this.slimItemsPerRow=x)};
df.prototype.slimItemsPerRowChanged=df.prototype.slimItemsPerRowChanged;df.prototype.elementsPerRowChanged=df.prototype.elementsPerRowChanged;df.prototype.dataChanged=df.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],df.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],df.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],df.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],df.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],df.prototype,"currentColorPalette",void 0);_.f([_.c(),_.l("design:type",Array)],df.prototype,"visibleVideos",void 0);_.f([_.c(),_.l("design:type",Array)],df.prototype,"hiddenVideos",void 0);
_.f([_.c(),_.l("design:type",Object)],df.prototype,"primaryButton",void 0);_.f([_.c({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],df.prototype,"elementsPerRow",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],df.prototype,"isDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],df.prototype,"isExpanded",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],df.prototype,"largeTitle",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],df.prototype,"hasMovieRenderer",void 0);_.f([_.c(),_.l("design:type",Number)],df.prototype,"slimItemsPerRow",void 0);_.f([_.c(),_.l("design:type",Boolean)],df.prototype,"showLightVideoMetadata",void 0);_.f([_.c(),_.l("design:type",Boolean)],df.prototype,"showDarkVideoMetadata",void 0);_.f([_.c(),_.l("design:type",Number)],df.prototype,"videoMetadataColor",void 0);
_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],df.prototype,"miniMode",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.l("design:type",Boolean)],df.prototype,"isFirstFeedItem",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.l("design:type",Boolean)],df.prototype,"hasSectionHeader",void 0);
_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],df.prototype,"roundedContainer",void 0);_.f([_.n_("#visible-video-container ytd-rich-grid-media"),_.l("design:type",Array)],df.prototype,"visibleMediaRenderers",void 0);_.f([_.n_("#hidden-video-container ytd-rich-grid-media"),_.l("design:type",Array)],df.prototype,"hiddenMediaRenderers",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],df.prototype,"modern",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],df.prototype,"dataChanged",null);_.f([_.OZ("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],df.prototype,"elementsPerRowChanged",null);_.f([_.OZ("slimItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],df.prototype,"slimItemsPerRowChanged",null);
df=_.f([_.U({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],df);
_.X(df,"ytd-brand-video-shelf-renderer",function(){if(oR2!==void 0)return oR2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return oR2=W},{mode:1});var SKG;var sg=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(sg,_.b);_.J=sg.prototype;_.J.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.J.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"}}}};
_.J.dataChanged=function(){this.requestElementsPerRow();var W,P;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(P=this.data)==null?void 0:P.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.J.computeIsFirstFeedItem=function(W){return W};
_.J.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(W),this.updateButtonPalette())};
_.J.shouldShowThumbnailInMetadata=function(W){return W<=1};
_.J.computeVideoMetadataColor=function(){if(this.data){var W;if((W=this.currentColorPalette)==null?0:W.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.J.computeTitleStyle=function(W){var P;if((P=this.data)!=null&&P.title&&W&&W.textPrimary!==void 0)return"color:"+_.j9(W.textPrimary)+";"};
_.J.computeSubtitleStyle=function(W){var P;if((P=this.data)!=null&&P.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.j9(W.textSecondary)+";"};
_.J.computeOverflowButtonStyle=function(W){var P;if(this.data&&this.data.overflowButton&&(W==null?0:(P=W.dismissButtonColorData)==null?0:P.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.j9(W.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.j9(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.J.computeBackgroundStyle=function(W){if(W&&this.data){var P="";W.backgroundColor!==void 0&&(P+="background-color:"+_.Qy(W.backgroundColor)+";");return P}};
_.J.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.J.updateButtonPalette=function(){if(this.data){var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer){var P;if((P=this.currentColorPalette)==null?0:P.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var x;((x=this.currentColorPalette)==null?0:x.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.J.requestElementsPerRow=function(){_.Lf(this.hostElement,"yt-request-elements-per-row")};
_.J.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.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")};
_.J.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
sg.prototype.elementsPerRowChanged=sg.prototype.elementsPerRowChanged;sg.prototype.dataChanged=sg.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],sg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],sg.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],sg.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],sg.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sg.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],sg.prototype,"currentColorPalette",void 0);_.f([_.c(),_.l("design:type",Object)],sg.prototype,"primaryButton",void 0);
_.f([_.c({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],sg.prototype,"elementsPerRow",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],sg.prototype,"isDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],sg.prototype,"titleSize",void 0);_.f([_.c(),_.l("design:type",Number)],sg.prototype,"videoMetadataColor",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],sg.prototype,"miniMode",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.l("design:type",Boolean)],sg.prototype,"isFirstFeedItem",void 0);_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],sg.prototype,"roundedContainer",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.l("design:type",Boolean)],sg.prototype,"hasOverflowButton",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sg.prototype,"dataChanged",null);_.f([_.OZ("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sg.prototype,"elementsPerRowChanged",null);sg=_.f([_.U({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],sg);
_.X(sg,"ytd-brand-video-singleton-renderer",function(){if(SKG!==void 0)return SKG;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return SKG=W},{mode:_.F4("kevlar_poly_si_batch_j070")?1:2});var u1M;var dhy=_.kl(function(W){var P=W.data;return _.u(_.bq,{data:function(){return P().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(P().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var x=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":x=88;break a;default:x=88}return x},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return P().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"fi"),vRv=_.kl(function(W){var P=W.metadataRow;
var x=W.delimiter;return _.u(_.sV,{each:function(){return P().textParts||[]},
keyBy:"INDEX"},function(I,O){return _.u(_.qS,null,_.u(_.mQ,{text:I,noWrap:!0,userInput:!0}),_.u(s2v,{delimiter:x,max:function(){return P().textParts.length},
index:O}))})},"gi"),s2v=_.kl(function(W){var P=W.delimiter;
var x=W.max;var I=W.index;return _.u(_.V,{cond:function(){return(P==null?void 0:P())&&x()-1>I()},
then:function(){return _.u("span",null,P)}})},"hi"),mhv=_.kl(function(W){var P=W.data;
W={};return _.u("yt-profile-page-header-information-view-model",{class:_.O4("profile-page-header-information-view-model-wiz",(W["profile-page-header-information-view-model-wiz--mobile"]=!1,W))},_.u(_.V,{cond:function(){return P().onTap},
then:function(){return _.u(_.vF,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.AF(P().onTap)}},_.u(_.Ea,{data:function(){return P().thumbnail}},{profilePageHeaderThumbnailViewModel:dhy}))},
else:function(){return _.u("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.u(_.Ea,{data:function(){return P().thumbnail}},{profilePageHeaderThumbnailViewModel:dhy}))}}),_.u("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.u(_.V,{cond:function(){return P().onTap},
then:function(){return _.u(_.Ea,{data:function(){return P().title}},{profilePageHeaderTitleViewModel:function(x){var I=x.data;
return _.u(_.vF,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.AF(I().onTap)}},_.u(_.mQ,{text:function(){return I().title}}))}})},
else:function(){return _.u(_.Ea,{data:function(){return P().title}},{profilePageHeaderTitleViewModel:function(x){var I=x.data;
return _.u(_.mQ,{text:function(){return I().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.u(_.Ea,{data:function(){return P().metadata}},{profilePageHeaderMetadataViewModel:function(x){var I=x.data;
return _.u(_.V,{cond:function(){return I().metadataRows},
then:function(O){return _.u("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.u(_.sV,{each:O,keyBy:"INDEX"},function(B,Y){return _.u(_.qS,null,_.u(vRv,{metadataRow:B,delimiter:" \u2022 "}),_.u(s2v,{delimiter:" \u2022 ",max:function(){return O().length},
index:Y}))}))}})}})))},"ii");
mhv.idomCompat=!0;_.lq(mhv,"yt-profile-page-header-information-view-model",{props:{data:_.cv}});var vH=function(){return _.b.apply(this,arguments)||this};
_.A(vH,_.b);vH.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vH.prototype,"data",void 0);vH=_.f([_.U({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],vH);
_.X(vH,"ytd-effect-pivot-header-view-model",function(){if(u1M!==void 0)return u1M;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return u1M=
W},{mode:1});var V7O;var mK=function(){return _.b.apply(this,arguments)||this};
_.A(mK,_.b);mK.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mK.prototype,"data",void 0);mK=_.f([_.U({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],mK);
_.X(mK,"ytd-source-pivot-header-renderer",function(){if(V7O!==void 0)return V7O;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return V7O=W},{mode:1});_.t7O=_.kl(function(W){var P=W.data;W=_.fa();_.NI(W,function(){return P().rendererContext});
var x=function(){var I;return _.fC((I=P())==null?void 0:I.rendererContext)};
return _.u("content-list-item-view-model",{el:W,class:"ytContentListItemViewModelHost",role:function(){return x()?"listitem":void 0},
tabindex:function(){return x()?0:void 0}},_.u("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.u("div",{class:"ytContentListItemViewModelImageContainer"},_.u(_.V,{cond:function(){return P().image},
then:function(I){return _.u(_.bq,{data:I,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.u(_.Ea,{data:function(){var I;
return(I=P())==null?void 0:I.avatar}},{avatarViewModel:_.DI})),_.u("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.u("div",{class:"ytContentListItemViewModelTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u("div",{class:"ytContentListItemViewModelMetadata"},_.u(_.Ea,{data:function(){return P().metadata}},{contentMetadataViewModel:function(I){return _.u(_.QUm,{data:I.data,
layout:1})}})))),_.u("div",{class:"ytContentListItemViewModelActionButton"},_.u(_.Ea,{data:function(){var I;
return(I=P())==null?void 0:I.actionButton}},{buttonViewModel:_.cq,
toggleButtonViewModel:_.MI})))},"ji");_.lq(_.kl(function(W){var P={},x={},I={},O={};return _.u("yt-card-view-model",{class:_.O4("ytCardViewModelHost",W.className,(P.ytCardViewModelOutline=function(){return W.data().cardStyle==="CARD_STYLE_OUTLINE"},P),(x.ytCardViewModelRaised=function(){return W.data().cardStyle==="CARD_STYLE_RAISED"||W.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},x),(I.ytCardViewModelTonal=function(){return W.data().cardStyle==="CARD_STYLE_TONAL"},I),(O.ytCardViewModelInverted=function(){return W.data().cardStyle===
"CARD_STYLE_INVERSE"},O))},_.u(_.Ea,{data:function(){return W.data().background}},{cinematicContainerViewModel:function(B){return _.u(_.S6z,{data:B.data})}}),_.u("div",{class:"ytCardViewModelContentWrapper"},_.u(_.Ea,{data:function(){return W.data().content}},{contentListItemViewModel:function(B){return _.u(_.t7O,{data:B.data})}})),_.u(_.Ea,{data:function(){return W.data().dismissAction}},{buttonViewModel:function(B){return _.u(_.cq,{data:B.data})}}))},"ki"),"yt-card-view-model",{props:{data:_.cv,
className:_.cv}});_.lq(_.kl(function(W){var P=function(){return _.Q(W.data().flowRoot,iQ4)};
_.AQ(function(){var x=P(),I=function(){},O=function(){};
if(x){var B,Y,K=(Y=_.Q((B=x.steps)==null?void 0:B[0],_.K9M))==null?void 0:Y.stepId;aDm(x,K||"");I=k6v(x);O=UdG(x)}_.C4(function(){I();I=function(){};
O();O=function(){}})});
return _.u("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.u(_.Epd,{contentId:function(){return W.data().contentId}},function(){return _.u("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.u(_.V,{cond:P,
then:function(x){return _.u(_.LkG,{data:x})}}))}))},"li"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.cv}});_.lq(_.kl(function(){return _.u("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.u("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.u("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.u(_.bjM,null)),_.u(_.MsW,{data:{rows:1},isExploreHub:!0}))},"mi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.lq(_.kl(function(W){var P=W.data;var x=W.standardUnitMinWidth;W=_.fa();var I=_.n((0,_.Hyz)(P)),O=I.next().value,B=I.next().value,Y=function(){var Z,d=(Z=O())==null?void 0:Z.contents;return d==null||d.length===0},K=function(){B(Object.assign({},O(),{contents:[]}))};
_.FL(W,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var Z=_.Q(P().chipsShelf,Rc9);if(Z!=null&&Z!=null&&Z.autoselectChipOnVisible){var d,v,m=_.Q(Z==null?void 0:(d=Z.contents)==null?void 0:d[(v=Z.autoselectedChipIndex)!=null?v:0],_.cA);m&&m.tapCommand&&_.D1(m.tapCommand)}}});
return _.u("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:W},_.u(_.Epd,{contentId:function(){return P().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.u("div",null,_.u("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.u(_.Ea,{data:function(){return P().header}},{sectionHeaderViewModel:function(Z){return _.u(_.qX,{data:Z.data,
disableHorizontalPadding:!0})}})),_.u("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.u(_.Ea,{data:function(){return P().chipsShelf}},{chipsShelfViewModel:function(Z){return _.u(_.Hv3,{data:Z.data,
callback:K,enableSingleChipSelection:!0})}})),_.u("div",null,_.u(_.V,{cond:Y,
then:function(){return _.u("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.u(_.MsW,{data:{rows:1},isExploreHub:!0}))}}),_.u(_.Ea,{data:function(){var Z;
return(Z=O())==null?void 0:Z.contents}},{richShelfRenderer:function(Z){return _.u(_.hri,{data:Z.data,
isInnerShelf:!0,standardUnitMinWidth:x})}})))}))},"ni"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.cv,
standardUnitMinWidth:_.cv}});var V3=function(){return _.b.apply(this,arguments)||this};
_.A(V3,_.b);
V3.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
V3.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.f([_.h(_.Gp),_.l("design:type",Object)],V3.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],V3.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],V3.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Number)],V3.prototype,"standardUnitMinWidth",void 0);V3=_.f([_.U({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],V3);
_.X(V3,"ytd-rich-section-renderer",function(){if(ZYG!==void 0)return ZYG;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return ZYG=W},{mode:_.F4("kevlar_poly_si_batch_j029")?
1:2});_.lq(_.GBd,"yt-profile-identity-info-view-model",{props:{data:_.cv,hideDivider:_.cv}});_.lq(_.CJw,"yt-page-header-view-model",{props:{data:_.cv,noPadding:_.cv,enableBanner:_.cv,cinematicContainerTopbarOffset:_.cv,allowCinematicContainerOverflow:_.cv,displayAsSidebar:_.cv,displayAsPanel:_.cv}});_.lq(_.kl(function(W){var P=W.data;var x=function(){var O;return(O=P().numColumns)!=null?O:2},I=function(){return x()>1?3:2};
W={};return _.u("ytd-rich-grid-group",{class:_.O4("ytdRichGridGroupHost",(W.ytdRichGridGroupHostFirstColumn=function(){return P().colIndex===0},W)),
style:_.oP({"--ytd-rich-grid-group-num-columns":x,"--ytd-rich-grid-items-per-group":I})},_.u("div",{class:"ytdRichGridGroupContents"},_.u(_.Ea,{data:function(){var O;return(O=P().contents)==null?void 0:O.slice(0,I())}},{richItemRenderer:function(O){return _.u(_.$Fi,{data:O.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"oi"),"ytd-rich-grid-group",{props:{data:_.cv}});var t5=function(){var W=_.b.apply(this,arguments)||this;W.resizeOnObserverInit=!1;W.isInlinePreviewDisabled=_.p("web_disable_inline_preview");W.disableStickyFilterBar=!1;W.transparentBackgroundChipsBar=!1;W.hideChipsBar=!1;W.isWatchDefaultLayout=!0;W.continuationShowButton=!1;W.rowReducedHorizontalMargin=!1;W.useCompactList=!1;W.manualDownloadsPresent=!1;W.smartDownloadsPresent=!1;W.shouldRenderDownloadsBanner=!1;W.hasOptedIntoSmartDownloads=!1;W.elementsPerRow=4;W.typographyBump=!1;W.showGnomeContents=
!1;W.showExploreHubContents=!1;W.slimItemsPerRow=1;W.pageLoadingFromNavigation=!1;W.loggingRefactor=_.p("kevlar_rich_grid_logging_fix");W.resizeObserver=null;W.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"};W.rendererToTagNameMap=
new Map(Object.entries(W.contentMapping()).map(function(P){var x=_.n(P);P=x.next().value;x=x.next().value;return[P,x.component]}));
W.insertedContent=new Map;return W};
_.A(t5,_.b);_.J=t5.prototype;_.J.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var W=_.n(_.g(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),P=W.next();!P.done;P=W.next())P.value.useCompactList=this.useCompactList};
_.J.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var W=_.n(_.g(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),P=W.next();!P.done;P=W.next())P=P.value,P.sizing=this.sizing,P.typographyBump=this.typographyBump};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.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]]"}}}};
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.WM(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.WO(this.resizeObserved,_.Wi("rich_grid_resize_delay_ms",50),this)};
_.J.detached=function(){var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("yt-page-type-changed",_.WM(this,this.onPageChange))};
_.J.insertRichSection=function(W){var P=W.richItemTargetId;W=W.richSectionRendererToInsert;P&&W&&(this.insertedContent.set(P,W),this.reflowContent())};
_.J.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeIsInlinePreviewEnabled=function(W,P,x){return _.p("web_disable_inline_preview")?!1:!x&&_.W9y({miniplayerIsActive:W,miniplayerPlaybackState:P})};
_.J.computeSizing=function(){var W=_.i88(this.data);if(W||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return W?this.useCompactList?"COMPACT":W:this.miniMode?"COMPACT":_.p("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.J.updateItemMinAndMaxWidth=function(){var W=_.Wi("rich_grid_max_item_width",500);W>0&&_.qa(this.hostElement,{"--ytd-rich-grid-item-max-width":W+"px"});var P;W=this.getRichItemMinWidth((P=this.hostElement)==null?void 0:P.clientWidth);W>0&&_.qa(this.hostElement,{"--ytd-rich-grid-item-min-width":W+"px"})};
_.J.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.J.resizeObserved=function(){_.P7(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.J.navigateBackToHome=function(){_.p("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.p("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var W=_.FY().resolve(_.rL).isOnWatch(),P,x=((P=_.Y3(location.pathname))==null?void 0:P.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(x)||W)&&this.gnomeContents&&_.p("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);W&&this.exploreHubContents&&_.p("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Xe().dispatch(_.LK({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.J.onPageChange=function(){var W=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.p("disable_chip_select_on_nav")||_.P7(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Gr.addJob(function(){W.pageLoadingFromNavigation=!1;_.p("disable_chip_select_on_nav")&&_.p("h5_reset_cache_and_filter_before_update_masthead")&&W.resetCacheAndIsFilteredFeed();W.setMasthead();W.maybeSetBigYoodle();W.forceRefreshAndLog();W.terminateVideoPreview();_.p("web_hide_gnome_until_user_navigates_back_to_home")&&
(W.dataChanged(),_.Xm(W,function(){if(W.showGnomeContents){var P=Array.from(_.g(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(I){I=_.g(I).querySelector("ytd-rich-shelf-renderer");return!!I&&I.isGnomeShelf()});
if(P){P=P.offsetTop-W.contentsElement.offsetTop;var x=_.FY().resolve(_.rL).getCurrentPage();x&&x.getPageScrollingElement().scrollTo({top:P,behavior:"smooth"})}}}));
_.p("web_hide_explore_hub_until_user_navigates_back_to_home")&&(W.dataChanged(),_.Xm(W,function(){if(W.showExploreHubContents&&!_.p("web_explore_hub_no_scroll")){var P=Array.from(_.g(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(I){return!!I.querySelector("ytd-talk-to-recs-flow-renderer")});
if(P){P=P.offsetTop-W.contentsElement.offsetTop;var x=_.FY().resolve(_.rL).getCurrentPage();x&&x.getPageScrollingElement().scrollTo({top:P,behavior:"smooth"})}}}))},8)):((_.p("web_hide_gnome_until_user_navigates_back_to_home")||_.p("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.J.dataChanged=function(){var W=this,P=_.Wi("web_rich_grid_row_margin",0);P>0&&_.qa(this.hostElement,{"--ytd-rich-grid-row-margin":P+"px"});_.P7(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Xm(this,function(){W.updateRichItemGridPositions();W.contentsElement&&_.qa(W.hostElement,{"--ytd-rich-grid-content-offset-top":W.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.J.initResizeObserver=function(){var W=this;if(window.ResizeObserver){var P;(P=this.resizeObserver)==null||P.disconnect();var x=!1;this.resizeObserver=new ResizeObserver(function(){if(x){var I;(I=W.resizeObserver)==null||I.disconnect();var O;(O=W.throttledOnResize)==null||O.fire();requestAnimationFrame(function(){var Y;(Y=W.throttledOnResize)==null||Y.fire();W.initResizeObserver()})}else if(x=!0,W.resizeOnObserverInit){var B;
(B=W.throttledOnResize)==null||B.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.J.contentLengthChanged=function(){if(_.p("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.P7(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.updateElementsPerRow=function(){_.P7(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.LK({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.LK({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.J.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.J.onRichShelfRendererCollapse=function(W){if(this.shownItems){var P=W.detail;W=this.shownItems.findIndex(function(I){var O,B;return((B=_.Q(I==null?void 0:(O=I.richSectionRenderer)==null?void 0:O.content,_.l9b))==null?void 0:B.trackingParams)===P});
var x=W+1;W<0||x>=this.contentsElement.children.length||!this.shownItems[x].richItemRenderer||this.contentsElement.children[x].scrollIntoView({behavior:"smooth",block:"start"})}};
_.J.onSoftReloadPage=function(){this.scrollUpToTop()};
_.J.handleRerenderDownloadsData=function(){_.p("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.J.handlePlaylistRemoveVideosAction=function(W){var P;if(((P=_.Q(W,_.o_l))==null?0:P.setVideoIds)&&this.data&&this.data.contents){W=_.Q(W,_.o_l).setVideoIds;for(P=this.data.contents.length-1;P>=0;){var x=_.Q(this.data.contents[P],_.GN);(x=x&&_.Q(x.content,_.$Z))&&x.setVideoId&&W.includes(x.setVideoId)&&this.splice("data.contents",P,1);P--}this.updateIndices()}};
_.J.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".richItemRenderer.index",_.bx(String(W+1)))};
_.J.hasTopRowInlinePlayableVideoWithEndorsement=function(W){var P;return!((P=W.slice(0,this.getItemsPerRow()))==null||!P.some(function(x){var I;x=_.Q(x==null?void 0:(I=x.richItemRenderer)==null?void 0:I.content,_.HA);var O;return(x==null?void 0:x.inlinePlaybackEndpoint)&&(x==null?void 0:(O=x.thumbnailOverlays)==null?void 0:O.some(function(B){return B.thumbnailOverlayEndorsementRenderer}))}))};
_.J.refreshGridLayoutNew=function(W,P,x,I){var O=I.postsPerRow;var B=I.slimItemsPerRow;var Y=I.gameCardsPerRow;I=I.miniGameCardsPerRow;var K;if((K=this.data)==null||!K.contents||!this.containerWidth)return!1;var Z;if((Z=this.data.responsiveContainerConfiguration)==null?0:Z.responsiveSize){var d=_.N2R(this.data.responsiveContainerConfiguration,this.containerWidth),v;K=_.Fd(Object.assign({},d,{standardUnitMinWidth:(v=this.data)==null?void 0:v.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&d.isCompactList)}else K=_.Fd({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(d=this.data)==null?void 0:d.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=K.typographyBump;v=!1;if(W||this.elementsPerRow!==K.numItems||this.postsPerRow!==O||this.slimItemsPerRow!==B||this.gameCardsPerRow!==
Y||this.miniGameCardsPerRow!==I||this.gutter!==K.gutter)v=this.elementsPerRow!==K.numItems,this.elementsPerRow=K.numItems,this.postsPerRow=O,this.slimItemsPerRow=B,this.gameCardsPerRow=Y,this.miniGameCardsPerRow=I,this.gutter=K.gutter,this.itemWidth=K.itemWidth,this.reflowContent(P),_.qa(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":K.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(x);this.ytdReduxBehavior.dispatch(_.LK({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:K.maxContainerWidth}));return v};
_.J.refreshGridLayout=function(W,P){var x,I=(x=this.hostElement)==null?void 0:x.clientWidth;this.containerWidth=this.adjustRichGridWidth(I,!0);var O;if((O=this.data)==null||!O.contents||!this.containerWidth)return W&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.p("rg_pending_reflow_ks")&&(W=!0,this.pendingForceReflow=!1);x=this.getRichItemMinWidth(I);var B=this.isShortsPanel?146:194,Y=this.getMiniGameCardMinWidth(),K=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
I=x=this.calcElementsPerRow(x,K);(O=x<=3&&this.miniModeAllowed())&&(x=this.calcElementsPerRow(240,4));var Z=this.calcMaxSlimElementsPerRow(x,K,this.isDefaultGrid);K=this.calcElementsPerRow(B,Z);var d=this.calcElementsPerRow(this.isCompactGrid?B:154,Z);B=this.calcElementsPerRow(this.isCompactGrid?B:Y,Z);Y=!1;if(this.sizing)return this.refreshGridLayoutNew(W,P,O,{postsPerRow:I,slimItemsPerRow:K,gameCardsPerRow:d,miniGameCardsPerRow:B});if(W||this.elementsPerRow!==x||this.postsPerRow!==I||this.slimItemsPerRow!==
K||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==B)Y=this.elementsPerRow!==x,this.elementsPerRow=x,this.postsPerRow=I,this.slimItemsPerRow=K,this.gameCardsPerRow=d,this.miniGameCardsPerRow=B,this.reflowContent(P),this.updateElementsPerRow(),_.qa(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)&&_.qa(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(O);_.P7(this.hostElement,"yt-rich-grid-layout-refreshed");return Y};
_.J.getRichItemMinWidth=function(W){var P=_.Wi("rich_grid_min_item_width",310);if(!_.p("kevlar_disable_min_width_override")){var x,I;P=(I=(x=this.data)==null?void 0:x.minItemWidth)!=null?I:P}return P+_.UkS(W)};
_.J.calcMaxSlimElementsPerRow=function(W,P,x){return(x===void 0?0:x)?W===1?2:W%2===0?_.p("web_shorts_2_by_3_reduce_items_per_row")&&W>=4?W/2*3-1:W/2*3:_.p("web_shorts_2_by_3_reduce_items_per_row")&&W>=3?W+1:W+2:P*2};
_.J.adjustRichGridWidth=function(W,P){var x=_.p("disable_rich_grid_guide_compensation");if(!this.isWatch&&!x){x=_.FY().resolve(_.Rl(_.$y));var I=x==null?void 0:x.guideElement;if(!(!x||x.getData()||I!=null&&I.opened||x.getMiniGuideVisible()))if(x.canFitPersistentGuide(W)&&x.getGuideExpandsAutomatically()){var O,B,Y=Number((O=window.getComputedStyle(this.hostElement))==null?void 0:(B=O.getPropertyValue("--app-drawer-width"))==null?void 0:B.replace("px",""));W-=Y||0}else if(x.canFitMiniGuide(W)){var K;
O=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(K=Y.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:K.replace("px",""));W-=O||0}}W>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(W-=P?32:48));return W};
_.J.calcElementsPerRow=function(W,P){var x=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),I=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((x+I)/(W+I))||1,P)};
_.J.reflowContent=function(W){var P=this;if(!this.isReflowing){this.isReflowing=!0;var x,I,O=!!((x=this.data)==null?0:(I=x.contents)==null?0:I.some(function(C){return _.Q(C,_.Yc)}));
x=this.getItemsPerRow();var B;I=(B=this.data)==null?void 0:B.reflowOptions;W&&(_.CK("rgr_s"),_.Xm(this,function(){_.CK("rgr_nrf")}));
W={};(B=_.g(this.hostElement).querySelector("#contents"))&&(W={contentElement:B,rendererToTagNameMap:this.rendererToTagNameMap});B=(B=this.data.contents)?B.slice():[];var Y=(_.p("web_hide_gnome_behind_feed_filter_chip")||_.p("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,K=_.p("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,Z=-1,d=-1;if(this.isHomePage&&K){for(K=0;K<B.length;K++){var v=void 0,m=void 0;_.Q((v=B[K])==null?void 0:
(m=v.richSectionRenderer)==null?void 0:m.content,rR9)&&(d=K)}d>-1&&(this.exploreHubContents=B.splice(d,1))}if(this.isHomePage&&Y){for(d=0;d<B.length;d++)m=v=void 0,(K=_.Q((v=B[d])==null?void 0:(m=v.richSectionRenderer)==null?void 0:m.content,_.l9b))&&Y&&(m=v=void 0,K=_.Q((v=K)==null?void 0:(m=v.contents)==null?void 0:m[0],_.GN),v=void 0,_.Q((v=K)==null?void 0:v.content,_.rWP)&&(Z=d));Z>-1&&(this.gnomeContents=B.splice(Z,1))}var t=hcd(B,x,O,I,this.getRichGridStyle(),W,this.insertedContent);O=function(){P.shownItems=
t;P.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(t),_.Xm(this,O)):O()}};
_.J.getFirstRowItems=function(W){for(var P=[],x=0;x<W.length;x++){var I=void 0,O=void 0,B=void 0,Y=void 0,K=void 0,Z=void 0;if(((I=W[x])==null?void 0:(O=I.richItemRenderer)==null?void 0:O.rowIndex)===0||((B=W[x])==null?void 0:(Y=B.richGroupRenderer)==null?void 0:Y.rowIndex)===0||((K=W[x])==null?void 0:(Z=K.richSectionRenderer)==null?void 0:Z.rowIndex)===0)P.push(W[x]);else break}return P};
_.J.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.J.handleChipCloudChipSelectAction=function(W,P){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.p("web_hide_gnome_behind_feed_filter_chip")&&(P?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.J.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.p("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.J.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.p("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.J.terminateVideoPreview=function(){_.P7(this.hostElement,"yt-terminate-video-preview-action")};
_.J.updateRichItemGridPositions=function(){var W={gridData:{gridColumnCount:this.elementsPerRow}},P;if((P=this.data)==null?0:P.trackingParams)this.loggingRefactor?_.YY().stateChanged(this.data.trackingParams,W):(P=_.E_())&&_.UL(P,_.ox(this.data.trackingParams),W);_.P7(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.miniModeAllowed=function(){return _.p("disable_channels_mini_mode")?!1:this.isChannelPage};
_.J.getMiniGameCardMinWidth=function(){return 154};
_.J.updateMiniMode=function(W){this.miniMode=this.miniModeAllowed()&&W;this.ytdReduxBehavior.dispatch(_.LK({type:"SET_RICH_GRID_MINI_MODE",payload:W}))};
_.J.isCurrentPage=function(){return location.pathname===this.pagePath};
_.J.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var W=_.FY().resolve(_.rL).getCurrentPage();W&&W.setScrollTop(0)}};
_.J.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.J.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.J.maybeSetBigYoodle=function(){var W,P=(W=this.data)==null?void 0:W.bigYoodle;this.bigYoodleData!==P&&(this.bigYoodleData=P)};
_.J.setMasthead=function(){var W;((W=this.data)==null?0:W.masthead)?this.mastheadData=this.data.masthead:_.p("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.J.getRichGridStyle=function(){var W,P;return(P=(W=this.data)==null?void 0:W.style)!=null?P:"RICH_GRID_STYLE_UNKNOWN"};
_.J.onIsShortsGridChange=function(){var W=this.ytdReduxBehavior,P=W.dispatch,x=this.getRichGridStyle();P.call(W,_.LK({type:"SET_RICH_GRID_STYLE",payload:x}))};
_.N1.Object.defineProperties(t5.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var W=_.FY().resolve(_.rL).getCurrentPage(),P,x,I;return(((P=this.data)==null?void 0:P.targetId)==="browse-feedFEsfv_audio_pivot"||_.p("web_enable_channel_pivot_panel")&&((x=this.data)==null?void 0:x.targetId)==="browse-feedFEsfv_channel_pivot"||_.p("web_enable_effect_pivot_panel")&&((I=this.data)==null?void 0:I.targetId)==="browse-feedFEsfv_effect_pivot")&&(W==null?void 0:W.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.p("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 W;return!((W=this.data)==null?0:W.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.FY().resolve(_.rL).getCurrentPage())==null?void 0:W.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.FY().resolve(_.rL).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var W;return this.hideChipsBar||(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.p("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"&&!_.p("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.data)==null?0:W.enableContentSpecificAspectRatio)||((P=this.data)==null?0:(x=P.responsiveContainerConfiguration)==null?0:x.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Wi("web_continuation_handler_margin",0):0}}});
t5.prototype.onIsShortsGridChange=t5.prototype.onIsShortsGridChange;t5.prototype.onReloadContinuationFinish=t5.prototype.onReloadContinuationFinish;t5.prototype.reflowContent=t5.prototype.reflowContent;t5.prototype.handleRerenderDownloadsData=t5.prototype.handleRerenderDownloadsData;t5.prototype.onRichShelfRendererCollapse=t5.prototype.onRichShelfRendererCollapse;t5.prototype.onRequestElementsPerRow=t5.prototype.onRequestElementsPerRow;t5.prototype.contentLengthChanged=t5.prototype.contentLengthChanged;
t5.prototype.dataChanged=t5.prototype.dataChanged;t5.prototype.onSizingChange=t5.prototype.onSizingChange;t5.prototype.onUseCompactListChange=t5.prototype.onUseCompactListChange;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Db),_.l("design:type",Object)],t5.prototype,"ironResizableBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],t5.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],t5.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],t5.prototype,"componentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],t5.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],t5.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],t5.prototype,"miniMode",void 0);_.f([_.c({value:[]}),_.l("design:type",Array)],t5.prototype,"shownItems",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],t5.prototype,"isReflowing",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],t5.prototype,"isFilteredFeed",void 0);_.f([_.c({selector:_.pAm}),_.l("design:type",Boolean)],t5.prototype,"guideIsExpanded",void 0);
_.f([_.c({selectorArgs:["entitySelectorType"],selector:function(W,P){if(_.p("kevlar_modern_downloads_page")&&P&&P!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(P){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var x=W.entities;P=_.tb(x);var I=_.pR(x),O=_.bwo(W),B=_.ayd(W);W=_.kNG(W);var Y=_.Stx(x),K=_.dE(P);x=_.jl(x);return _.c48(P,I,Y,O,B,K,x,W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return P=_.tb(W.entities),_.bi8(P);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return P=
_.ycW(W.entities),_.kGt(P);default:_.ge(new _.mW("Error: entitySelectorType defined but not matched in selector.",W,P))}}}),
_.l("design:type",Object)],t5.prototype,"entityDrivenRichGridData",void 0);_.f([_.c(),_.l("design:type",Object)],t5.prototype,"resizeOnObserverInit",void 0);_.f([_.c(),_.l("design:type",Object)],t5.prototype,"bigYoodleData",void 0);_.f([_.c(),_.l("design:type",Object)],t5.prototype,"mastheadData",void 0);_.f([_.c(),_.l("design:type",Boolean)],t5.prototype,"isInlinePreviewDisabled",void 0);_.f([_.c(),_.l("design:type",Object)],t5.prototype,"disableStickyFilterBar",void 0);
_.f([_.c(),_.l("design:type",Object)],t5.prototype,"transparentBackgroundChipsBar",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],t5.prototype,"hideChipsBar",void 0);_.f([_.c(),_.l("design:type",Object)],t5.prototype,"isWatchDefaultLayout",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],t5.prototype,"continuationShowButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],t5.prototype,"rowReducedHorizontalMargin",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],t5.prototype,"useCompactList",void 0);_.f([_.c({selector:function(W){return _.pR(W.entities).length>0}}),
_.l("design:type",Object)],t5.prototype,"manualDownloadsPresent",void 0);_.f([_.c({selector:function(W){return _.tb(W.entities).length>0}}),
_.l("design:type",Object)],t5.prototype,"smartDownloadsPresent",void 0);_.f([_.c({selector:_.ayd}),_.l("design:type",Object)],t5.prototype,"shouldRenderDownloadsBanner",void 0);_.f([_.c({selector:_.bwo}),_.l("design:type",Object)],t5.prototype,"hasOptedIntoSmartDownloads",void 0);_.f([_.OZ("useCompactList"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t5.prototype,"onUseCompactListChange",null);
_.f([_.OZ("sizing","typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t5.prototype,"onSizingChange",null);_.f([_.c({selector:_.zER}),_.l("design:type",Number)],t5.prototype,"miniplayerPlaybackState",void 0);_.f([_.c({selector:_.Ab}),_.l("design:type",Boolean)],t5.prototype,"miniplayerIsActive",void 0);
_.f([_.c({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.l("design:type",Boolean)],t5.prototype,"isInlinePreviewEnabled",void 0);_.f([_.c({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.l("design:type",String)],t5.prototype,"sizing",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],t5.prototype,"elementsPerRow",void 0);
_.f([_.c(),_.l("design:type",Object)],t5.prototype,"typographyBump",void 0);_.f([_.c(),_.l("design:type",Number)],t5.prototype,"itemWidth",void 0);_.f([_.BM("#header"),_.l("design:type",HTMLElement)],t5.prototype,"headerElement",void 0);_.f([_.BM("#contents"),_.l("design:type",HTMLElement)],t5.prototype,"contentsElement",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t5.prototype,"dataChanged",null);
_.f([_.K_("data.contents.length"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t5.prototype,"contentLengthChanged",null);_.f([_.I7("yt-request-elements-per-row"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t5.prototype,"onRequestElementsPerRow",null);
_.f([_.I7("yt-rich-shelf-renderer-collapse"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],t5.prototype,"onRichShelfRendererCollapse",null);_.f([_.K_("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t5.prototype,"handleRerenderDownloadsData",null);
_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],t5.prototype,"entitySelectorType",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"isSub",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"isWatch",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"isShortsPanel",null);_.f([_.c({reflectToAttribute:!0}),_.H("isWatch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"reducedTopMargin",null);_.f([_.c({reflectToAttribute:!0}),_.H("data","isWatch","isWatchDefaultLayout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"noTopMargin",null);
_.f([_.c({reflectToAttribute:!0}),_.H("isInlinePreviewEnabled","shownItems"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"topRowEndorsement",null);_.f([_.H("data.header"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"hideHeader",null);_.f([_.I7("yt-rich-grid-reflow"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],t5.prototype,"reflowContent",null);
_.f([_.I7("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t5.prototype,"onReloadContinuationFinish",null);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"isSlimGrid",null);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"isShortsGrid",null);
_.f([_.H("data","isSlimGrid","isShortsGrid"),_.c(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"noRichItemGutterMargins",null);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"isShortsGridSlim",null);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"isCompactGrid",null);
_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"isDefaultGrid",null);_.f([_.H("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"hideChipsBarOnHome",null);_.f([_.H("data.targetId"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"hideChipsBarOnWatch",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t5.prototype,"onIsShortsGridChange",null);_.f([_.H("data.enableContentSpecificAspectRatio"),_.c(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t5.prototype,"force16By9ThumbnailAspectRatio",null);_.f([_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],t5.prototype,"continuationTriggerOffset",null);t5=_.f([_.U({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],t5);
_.X(t5,"ytd-rich-grid-renderer",function(){if(YKf!==void 0)return YKf;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return YKf=W},{mode:2});var pN2=_.kl(function(W){var P=W.thumbsUp;W=W.thumbsDown;var x=_.n(_.YV(!1,void 0,"OxPsH")),I=x.next().value,O=x.next().value;x=_.n(_.YV(!1,void 0,"V5vWne"));var B=x.next().value,Y=x.next().value;return _.u("div",{class:"ytwThumbsUpDownThumbs"},_.u(_.MI,{data:P,onToggle:function(K){O(K);B()&&Y(!1)},
buttonShapeOverrides:function(){return{toggled:I()}}}),_.u(_.MI,{data:W,
onToggle:function(K){Y(K);I()&&O(!1)},
buttonShapeOverrides:function(){return{toggled:B()}}}))},"pi");
pN2.idomCompat=!0;var Q29=_.kl(function(W){var P=function(){return W.data().pendingStateEntityKey||""},x=_.dp(_.X4y,P),I=function(){var O;
if(!(O=W.disabled())){var B;O=!((B=x())==null||!B.isPendingResponse)}return O};
return _.u("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.u(_.sV,{each:function(){return W.data().chipData||[]},
keyBy:"REFERENCE"},function(O){return _.u(j2y,{data:O,disabled:I,pendingStateKey:P,onError:W.onError})}))},"qi"),j2y=_.kl(function(W){var P=_.fa(),x=_.n(_.YV(!0,void 0,"HBREAe")),I=x.next().value,O=x.next().value,B=function(){return W.data().text.content},Y=_.yB(function(K){var Z,d,v,m,t,C,z,D;
return _.y(function(w){switch(w.nextAddress){case 1:K.stopPropagation();if(W.disabled())return w.return();d=String(Math.floor(((Z=_.nC())==null?void 0:Z.getCurrentTime())||0)*1E3);v="youchat-"+Date.now();m=function(){_.zm(W.data().onClick||{});var a={continuationCommand:{token:W.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},k={inputComposerFormData:{clientMessageId:v,playerOffsetMs:d}};return new Promise(function(T,N){_.zm(a,{form:{formData:k},commandController:{onSuccess:function(Io,
F){T(F)},
onServerError:function(Io,F){N(F.error)}}})})};
t=_.fDv(W.pendingStateKey());t(!0);_.g73("#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");O(!1);_.OT(w,2);return _.S(w,m(),4);case 4:_.ci(w,3);break;case 2:C=_.yn(w),(D=(z=W).onError)==null||D.call(z,C);case 3:t(!1),_.Kl(w)}})});
return _.u(_.V,{cond:I,then:function(){return _.u("div",{class:"ytwYouChatChipsDataChipWrapper"},_.u("button",{el:P,class:"ytwYouChatChipsDataChip","data-disabled":W.disabled,"on:click":Y,tabindex:0},B))}})},"ri");var CfB=_.kl(function(W){var P=W.data;return _.u("yt-conversation-resource-view-model",{class:_.O4("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.u(_.V,{cond:function(){var x;return(x=P().conversationResourceData)==null?void 0:x.learningGuideData},
then:function(x){return _.u(_.sV,{each:function(){return x().sectionData||[]}},function(I){return _.u("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.u(_.mQ,{text:function(){return I.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.u("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.u(_.mQ,{text:function(){return I.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.u(_.mQ,{text:function(){return I.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"si");
CfB.idomCompat=!0;var AtQ=_.kl(function(W){var P=function(){var a;return(a=W.data().text)==null?void 0:a.content},x=function(){var a,k;
return(a=W.data().webData)==null?void 0:(k=a.textResult)==null?void 0:k.content},I=_.FY().resolve(_.eS),O=_.Ys(),B=function(){return W.data().chatResponseStyle},Y=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:W.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},K=function(){var a;
return W.data().webData||((a=W.data().text)==null?void 0:a.content)||W.data().videoResultsData||W.data().conversationResourceViewModel},Z=function(){var a;
return(a=W.data().videoResultsData)==null?void 0:a.videoShelf},d=function(){var a;
return _.Q(((a=W.data().videoResultsData)==null?void 0:a.videoShelf)||{},FHv)},v=function(){var a;
return(a=W.data().webData)==null?void 0:a.sourcesShelf},m=function(){var a;
return _.Q(((a=W.data().webData)==null?void 0:a.sourcesShelf)||{},FHv)},t=function(){return _.Q(W.data().conversationResourceViewModel||{},LHM)},C=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:W.data().thumbsDownViewModel&&W.data().thumbsUpViewModel},z=function(){return _.Q(W.data().thumbsUpViewModel,_.DZ)},D=function(){return _.Q(W.data().thumbsDownViewModel,_.DZ)};
_.Qa(function(){requestAnimationFrame(function(){var a;(a=W.shouldAnimateIcon)!=null&&a.call(W)&&Nm2(O.lottieEl)})});
var w={};return _.u("you-chat-item-view-model",{class:_.O4("ytwYouChatItemViewModelYouChatItemViewModel",(w.ytwYouChatItemViewModelHostNoPadding=function(){return!1},w)),
"data-target-id":function(){return W.data().id||""}},_.u(_.V,{cond:K,
then:function(){var a={};return _.u("div",{"aria-hidden":"true"},_.u(_.Jd,{className:_.O4("ytwYouChatItemViewModelIcon",(a.ytwYouChatItemViewModelRtl=I==="rtl",a.ytwYouChatItemViewModelHidden=function(){return!(W.data().hideIcon||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:K())},a)),
animationName:"YOUCHAT_ICON",data:Y,animationRef:O}))}}),_.u(_.V,{cond:K,
then:function(){var a={};return _.u("div",{class:_.O4("ytwYouChatItemViewModelHost",(a.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},a.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},a.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},a)),
role:"alert"},_.u(_.V,{cond:P,then:function(k){return _.u(_.QX,{text:k})}}),_.u(_.V,{cond:x,
then:function(k){return _.u(_.QX,{text:k})}}),_.u(_.V,{cond:Z,
then:function(){return _.u("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.u(_.jP,{data:d,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.u(_.V,{cond:v,
then:function(){return _.u("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.u(_.jP,{data:m,hasPeek:!0,disableArrows:!1}))}}),_.u(_.V,{cond:t,
then:function(){return _.u(CfB,{data:t})}}),_.u(_.V,{cond:C,
then:function(){return _.u(pN2,{thumbsUp:z,thumbsDown:D})}}))}}),_.u(_.V,{cond:function(){return W.data().chipsData},
then:function(a){return _.u(Q29,{data:a,disabled:W.pending,onError:W.onError})}}))},"ti");
AtQ.idomCompat={callbacks:{onError:!0,onSend:!0}};var ze3=_.kl(function(W){var P=function(){return W.data().choiceSelectedText};
return _.u("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.u(_.V,{cond:P,then:function(){return _.u("div",{class:"ytYouChatUserTurnChoiceSelected"},_.u(_.mQ,{text:P}))}}),_.u("div",{class:"ytYouChatUserTurnUserMessage"},function(){return W.data().text}))},"ui");var GjB=_.kl(function(W){var P=_.n((0,_.aTi)(W.data)).next().value;return _.u("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return W.data().targetId||""}},_.u(_.Ea,{data:function(){return W.data().header}},{chipBarViewModel:_.GHM}),_.u(_.Ea,{data:function(){return P().contents}},{accordionViewModel:_.nvi,
alertBannerViewModel:_.h8d,chatLoadingViewModel:_.kMQ,chatUserTurnViewModel:ze3,learningJourneyLoaderViewModel:_.IMi,lockupViewModel:_.R8,youChatItemViewModel:function(x){return _.u(AtQ,{data:x.data,pending:!1})}}))},"vi");_.lq(_.kl(function(W){var P=_.n((0,_.aTi)(W.data)).next().value;return _.u("yt-section-list-renderer",{class:_.O4("ytSectionListRendererHost",W.className),"data-target-id":function(){return W.data().targetId||""}},_.u(_.Ea,{data:function(){return P().contents}},{itemSectionRenderer:GjB}))},"wi"),"yt-section-list-renderer",{props:{data:_.cv,
className:_.Ng}});var ERO;var gRd;var pG=function(){return _.b.apply(this,arguments)||this};
_.A(pG,_.b);_.f([_.c(),_.l("design:type",Object)],pG.prototype,"data",void 0);pG=_.f([_.jd({is:"yt-alert-renderer",disableElementRegistration:!0})],pG);
_.X(pG,"yt-alert-renderer",function(){if(gRd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;ERO===void 0&&(ERO=document.createElement("template"));var I=ERO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);gRd=W}W=gRd;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.KJ3=function(W,P){var x,I;P=P===void 0?{}:P;var O,B,Y,K,Z,d,v,m,t,C,z,D;return _.y(function(w){switch(w.nextAddress){case 1:O=P;B=O.shouldWrap===void 0?!0:O.shouldWrap;Y=O.skipTransitionTimeoutMs===void 0?300:O.skipTransitionTimeoutMs;K=O.beforeTransition;Z=O.afterTransition;if(!B||!document.startViewTransition||document.visibilityState==="hidden")return w.return(W());x=window.innerWidth;I=window.innerHeight;d=!1;(v=K)==null||v();_.OT(w,2);m=document.startViewTransition(W);t=setTimeout(function(){m.skipTransition();
d=!0},Y);
return _.S(w,m.ready,4);case 4:return clearTimeout(t),_.S(w,m.finished,5);case 5:clearTimeout(t);(C=Z)==null||C();_.ci(w,0);break;case 2:z=_.yn(w),(D=Z)==null||D(),z&&!d&&document.visibilityState!=="hidden"&&x===window.innerWidth&&I===window.innerHeight&&_.G$(z),_.Kl(w)}})};
_.z6=function(W){return W!=null&&W.watch?W.watch.isTheaterMode:!1};
_.G6=function(){for(var W=Array(36),P=0,x,I=0;I<36;I++)I==8||I==13||I==18||I==23?W[I]="-":I==14?W[I]="4":(P<=2&&(P=33554432+Math.random()*16777216|0),x=P&15,P>>=4,W[I]=_.KQi[I==19?x&3|8:x]);return W.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Zl9=_.i4(['<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>']),
oDd=_.q_i(Zl9);oDd.setAttribute("style","display: none;");document.head.appendChild(oDd.content);_.EM=_.E$x(function(W){var P=_.ZV("DIV");W&&(P.className=W);P.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";W=_.ZV("DIV");_.y9M(W,"200px","200px");P.appendChild(W);document.body.appendChild(P);W=P.offsetWidth-P.clientWidth;_.oE(P);return W});var STM;var ub9;var gm=function(){var W=_.b.apply(this,arguments)||this;W.icon=null;return W};
_.A(gm,_.b);gm.prototype.dismiss=function(){_.Lf(this.hostElement,"yt-live-chat-error-message-dismiss")};
gm.prototype.computeIcon=function(W){return W&&W.iconType?"yt-icons:"+W.iconType.toLowerCase():"yt-icons:close"};
_.f([_.c(),_.l("design:type",Object)],gm.prototype,"data",void 0);_.f([_.c({computed:"computeIcon(data.icon)"}),_.l("design:type",Object)],gm.prototype,"icon",void 0);gm=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],gm);
_.X(gm,"yt-live-chat-error-message-renderer",function(){if(ub9===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;STM===void 0&&(STM=document.createElement("template"));var I=STM;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ub9=W}W=ub9;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var ggB,DDy,MiL,$DB,a6v,bim,kG6,UD4,XCO,zg,f66,N2O,Gg,l6G,T2M,r44,ii3,Rb3,FDd,qGm,LDy,WVM,PQM,xyG,Iod,O9f,Jiy,Bz9,n03,YO3,yi2,KVf,El,Z9O,o09,SO4,sa9,v0B,myQ,V6M,t6G,pYy,unm,dyL,Qa3,CQG,AiM,zPm,GoQ,jaB,g06;ggB=function(W,P){return _.Jb(W.entities,"timedMarkersListSyncEntity",P)};
DDy=function(W,P){return _.Jb(W.entities,"liveReactionsDataEntity",P)};
MiL=function(W,P){W=_.Jb(W.entities,"booleanEntity",P);return!(!W||!W.value)};
$DB=function(W,P){var x=_.E_();x&&W&&_.hn(x,_.ox(W),P)};
_.wC9=function(){_.p("web_watch_log_theater_mode")&&_.oRm("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.hbf=function(W,P,x){if(!W.includes("START_TIME_PLACEHOLDER")||!W.includes("END_TIME_PLACEHOLDER"))return W;var I=new Date(0),O=new Date(0);I.setUTCMilliseconds(P);O.setUTCMilliseconds(x);return W.replace("START_TIME_PLACEHOLDER",_.Hu(I,7)).replace("END_TIME_PLACEHOLDER",_.Hu(O,7))};
_.Hiv=function(W){return W.watch.isWatchActive};
_.CN=function(W){return W!=null&&W.watch?W.watch.isWatchFullscreen:!1};
_.ebM=function(W){return _.z6(W)||_.CN(W)||_.vRU(W)};
_.c4m=function(W){return!_.ebM(W)};
_.Ar=function(W){return W.watch.watchScrollTop};
a6v=function(W){return W.watch.isLiveChatCollapsed};
bim=function(W){return W.watch.openEngagementPanels};
kG6=function(W,P){return _.Jb(W.entities,"booleanEntity",P)};
UD4=function(){return function(W){_.cM(_.mG("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:W}))}};
XCO=function(W){switch(W){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}};
zg=function(W,P,x){var I=_.AF(x);W&&P&&I&&W.getPlayerPromise().then(function(O){_.zDd(I)&&_.z$();(new _.or(O)).executeCommand(I,P);_.p("continue_playback_on_desktop_companion_click")||O.pauseVideo()})};
f66=function(W){var P=_.RP(),x;if(x=_.eL("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var I;x=(I=x())==null?void 0:I.layoutId}else x=null;zg(P,x,W)};
N2O=function(W){var P=_.RP(),x;if(x=_.eL("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var I;x=(I=x())==null?void 0:I.layoutId}else x=null;zg(P,x,W)};
Gg=function(W,P){var x=W<0?"-":"";W=Math.abs(W);var I=Math.floor(W/3600),O=Math.floor(W)%3600,B=Math.floor(O/60);O=Math.floor(O)%60;var Y="";(P===void 0?0:P)&&(Y="."+Math.round((W-Math.floor(W))*10));return I>0?x+I+":"+(B<10?"0"+B:""+B)+":"+(O<10?"0"+O:""+O)+Y:x+B+":"+(O<10?"0"+O:""+O)+Y};
l6G=function(W){var P=W.match(/[^0-9:\.]/g);if(P&&P.length>0)return null;W=W.split(":");if(W.length===0||W.length>3)return null;P=1;for(var x=0;W.length>0;){var I=W.pop();if(I===void 0)break;var O=Number(I);if(I===""||isNaN(O))return null;x+=O*P;P*=60}return x};
T2M=function(W,P,x,I){W=Math.max(x,W);P=Math.min(P,I-x);W+P>I?(x=I,W=x-P):x=W+P;return{start:W,end:x}};
r44=function(W,P,x,I,O,B){W<x?W=x:W+O>I&&(W=I-O);P>I&&(P=I);P=Math.min(W+B,Math.max(W+O,P));return{start:W,end:P}};
ii3=function(W,P,x,I,O,B){P>I?P=I:P-O<x&&(P=x+O);W<x&&(W=x);W=Math.min(P-O,Math.max(P-B,W));return{start:W,end:P}};
Rb3=function(W){return _.p("web_transcript_cue_id_killswitch")?String(W):"ytd-transcript-renderer_"+W};
FDd=function(W){return _.p("web_transcript_cue_id_killswitch")?!0:W.startsWith("ytd-transcript-renderer")};
qGm=function(W){var P=_.RP(),x;if(x=_.eL("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var I;x=(I=x())==null?void 0:I.layoutId}else x=null;zg(P,x,W)};
LDy=function(W){W.style.height="auto";W.style.height=Math.min(W.scrollHeight||20,80)+"px"};
WVM=function(W,P){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:P}}],insertByPositionInSection:{sectionTargetId:W,position:"INSERTION_POSITION_LAST"}}}]}}}};
PQM=function(W){var P=_.RP(),x;x=(x=_.eL("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.layoutId:null;zg(P,x,W)};
xyG=function(W){var P=_.RP(),x;x=(x=_.eL("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.layoutId:null;zg(P,x,W)};
Iod=function(W,P){P=P===void 0?!1:P;if(W.simpleText)W=[{text:W.simpleText}];else{var x;W=((x=W.runs)!=null?x:[]).map(function(I){return Object.assign({},I)})}if(P)for(P=_.n(W),x=P.next();!x.done;x=P.next())x.value.bold=!0;
return W};
O9f=function(W){var P=W.startEndTimeTemplate,x=W.startTimeUtcMillis;W=W.endTimeUtcMillis;if(P&&x&&W)return _.bx(_.hbf(_.kz(P),Number(x),Number(W)))};
Jiy=function(W,P){var x,I,O=W==null?void 0:(x=W.viewCount)==null?void 0:(I=x.videoViewCountRenderer)==null?void 0:I.shortViewCount;if(!P&&O)return O;var B,Y;return W==null?void 0:(B=W.viewCount)==null?void 0:(Y=B.videoViewCountRenderer)==null?void 0:Y.viewCount};
Bz9=function(W,P){var x=W==null?void 0:W.relativeDateText;return!P&&x?[x,!0]:[W==null?void 0:W.dateText,!1]};
n03=function(W,P,x,I,O){I=I===void 0?!0:I;O=O===void 0?"":O;var B=Jiy(W,P),Y=_.n(Bz9(W,P)),K=Y.next().value;Y=Y.next().value;P=P?W==null?void 0:W.sponsorsOnlyFirstTimeLongText:W==null?void 0:W.sponsorsOnlyFirstTimeShortText;var Z=[];x&&B&&Z.push(B);!x&&Y||!K||Z.push(K);W=[].concat(_.ju(Z),[P,W==null?void 0:W.stationName,W==null?void 0:W.rating,W?O9f(W):void 0,W==null?void 0:W.upNextProgramText,W==null?void 0:W.superTitleLink]).filter(function(d){return!!d});
x={runs:[]};for(B=0;B<W.length;B++)x.runs.push.apply(x.runs,_.ju(Iod(W[B],I))),B<W.length-1&&x.runs.push({text:" "+O+" ",bold:I});return x};
YO3=function(W){if(W)return{runs:[{text:W,bold:!0}]}};
yi2=function(W){var P,x,I,O;if(W=W==null?void 0:(P=W.contents)==null?void 0:(x=P.twoColumnWatchNextResults)==null?void 0:(I=x.results)==null?void 0:(O=I.results)==null?void 0:O.contents){var B,Y;return(Y=(B=W.find(function(K){return!!K.videoPrimaryInfoRenderer}))==null?void 0:B.videoPrimaryInfoRenderer)==null?void 0:Y.updatedMetadataEndpoint}};
KVf=function(W,P){var x;return(x=W.sourceConfigs)==null?void 0:x.find(function(I){return I.videoId===P})};
El=function(W){return W==="End of video"||W==="End of playlist"};
Z9O=function(W){var P,x,I,O;return(P=W.getWatchNextResponse())==null?void 0:(x=P.contents)==null?void 0:(I=x.twoColumnWatchNextResults)==null?void 0:(O=I.playlist)==null?void 0:O.playlist};
o09=function(W){var P,x,I,O,B,Y;return(P=Z9O(W))==null?void 0:(x=P.playlistButtons)==null?void 0:(I=x.menuRenderer)==null?void 0:(O=I.topLevelButtons)==null?void 0:(B=O[0])==null?void 0:(Y=B.playlistLoopButtonRenderer)==null?void 0:Y.playlistLoopStateEntityKey};
SO4=function(W){var P=_.FY().resolve(_.wx),x;return(P=(x=_.Q(P.getAutoplayEndpoint(),_.U_))==null?void 0:x.playlistId)&&P===W};
sa9=function(W,P,x,I,O){function B(){_.Gr.cancelJob(gA);var Y=unm(P,x/W.getPlaybackRate()),K=Y.hours,Z=Y.minutes;Y=(Y.seconds*1E3||6E4)/W.getPlaybackRate();W.setVideoTimeLeft(dyL(K,Z));I&&W.getPlayerState()!==0&&W.setSleepTimerTimeLeft(dyL(K,Z,!0));(K>0||Z>0)&&!O&&(gA=_.pC(_.Gr,B,Y))}
_.Gr.cancelJob(gA);gA=_.pC(_.Gr,B)};
v0B=function(W,P,x){function I(){_.Gr.cancelJob(D0);var O=unm(P,x),B=O.hours;O=O.minutes;var Y=6E4/W.getPlaybackRate();if(B>0||O>0)W.setSleepTimerTimeLeft(dyL(B,O,!0)),D0=_.pC(_.Gr,I,Y)}
_.Gr.cancelJob(D0);D0=_.pC(_.Gr,I)};
myQ=function(W,P){var x=W.getVolume()/(P/500),I=function(O){_.Gr.cancelJob(M4);var B=Math.floor(O-x);W.setVolume(B,!1);B>0&&(M4=_.pC(_.Gr,function(){I(B)},500))};
_.Gr.cancelJob(M4);M4=_.pC(_.Gr,function(){I(W.getVolume())})};
V6M=function(W,P){_.Gr.cancelJob(M4);P&&W.syncVolume()};
t6G=function(){var W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.KK("SLEEP_TIMER_DISRUPTED")}}}}};_.FY().resolve(_.qR).resolveCommand(W)};
pYy=function(W){return(W.getDuration()-W.getProgressState().current)*1E3};
unm=function(W,P){W=W+P-(0,_.iA)();if(W<=0)return{hours:0,minutes:0,seconds:0};var x=new jaB(0,0,0,0,0,0,W);W=x.getHours();P=x.getMinutes();x=x.getSeconds();x!==0&&P++;P!==0&&P%60===0&&(W++,P=0);return{hours:W,minutes:P,seconds:x}};
dyL=function(W,P,x){return W>0&&P>0?x?_.KK("TIME_LEFT_HOURS_MINUTES",{hours:W.toString(),minutes:P.toString()}):_.KK("TIME_HOURS_MINUTES",{hours:W.toString(),minutes:P.toString()}):W>0?x?_.ZE("TIME_LEFT_HOURS",W):_.ZE("TIME_HOURS",W):x?_.KK("TIME_LEFT_MINUTES",{minutes:P.toString()}):_.KK("TIME_MINUTES",{minutes:P.toString()})};
Qa3=function(W,P){if(W.timelyActions)return W.timelyActions.find(function(x){var I;return((I=_.Q(x,$S))==null?void 0:I.cueRangeId)===P})};
CQG=function(W){var P=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.nb(W);W.keyMap_.forEach(function(x,I){_.N7(P,I)||this.remove(I)},W)};
AiM=function(W,P){W.reloadContinuationItemsCommandMatcher=P};
_.wA=function(W,P){W.insertBefore(P,W.childNodes[0]||null)};
zPm=function(W){if(W>=48&&W<=57||W>=96&&W<=106||W>=65&&W<=90||_.Z2&&W==0)return!0;switch(W){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 _.KW;default:return!1}};
GoQ=function(W){if(W.altKey&&!W.ctrlKey||W.metaKey||W.keyCode>=112&&W.keyCode<=123)return!1;if(zPm(W.keyCode))return!0;switch(W.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!_.KW;default:return W.keyCode<166||W.keyCode>183}};
jaB=function(W,P,x,I,O,B,Y){this.date=typeof W==="number"?new Date(W,P||0,x||1,I||0,O||0,B||0,Y||0):new Date(W&&W.getTime?W.getTime():_.O1())};
_.J8(jaB,_.jY);_.J=jaB.prototype;_.J.getHours=function(){return this.date.getHours()};
_.J.getMinutes=function(){return this.date.getMinutes()};
_.J.getSeconds=function(){return this.date.getSeconds()};
_.J.getMilliseconds=function(){return this.date.getMilliseconds()};
_.J.getUTCDay=function(){return this.date.getUTCDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.J.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.J.setHours=function(W){this.date.setHours(W)};
_.J.setMinutes=function(W){this.date.setMinutes(W)};
_.J.setSeconds=function(W){this.date.setSeconds(W)};
_.J.setMilliseconds=function(W){this.date.setMilliseconds(W)};
_.J.setUTCHours=function(W){this.date.setUTCHours(W)};
_.J.setUTCMinutes=function(W){this.date.setUTCMinutes(W)};
_.J.setUTCSeconds=function(W){this.date.setUTCSeconds(W)};
_.J.setUTCMilliseconds=function(W){this.date.setUTCMilliseconds(W)};
_.J.add=function(W){_.jY.prototype.add.call(this,W);W.hours&&this.setUTCHours(this.date.getUTCHours()+W.hours);W.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+W.minutes);W.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+W.seconds)};
_.J.JSC$9135_toIsoString=function(W){var P=_.jY.prototype.JSC$9135_toIsoString.call(this,W);return W?P+"T"+_.I_(this.getHours(),2)+":"+_.I_(this.getMinutes(),2)+":"+_.I_(this.getSeconds(),2):P+"T"+_.I_(this.getHours(),2)+_.I_(this.getMinutes(),2)+_.I_(this.getSeconds(),2)};
_.J.equals=function(W){return this.getTime()==W.getTime()};
_.J.toString=function(){return this.JSC$9135_toIsoString()};
_.J.clone=function(){var W=new jaB(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.E06=function(W){return _.LK({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:W}})};
g06=new _.R("imageTileRenderer");var Dy9=new _.R("adGridCardCollectionViewModel");var M6m=new _.R("carouselTitleViewModel");var $yO=new _.R("ctaCarouselItemViewModel");var wYy=new _.R("textFieldViewModel");_.hPf=new _.R("engagementPanelHeaderShowNavigationButtonCommand");var H9G=new _.R("hideEngagementPanelScrimAction");var ePL=new _.R("setActivePanelItemAction");var cim=new _.R("showEngagementPanelScrimAction");var aom=new _.R("updateEngagementPanelAction");var b94=new _.R("updateSearchInVideoResultsAction");var koM=new _.R("transcriptCueGroupRenderer");var Uyd=new _.R("transcriptCueRenderer");var XY6=new _.R("transcriptFooterRenderer");var fo9=new _.R("engagementPanelAdSubtitleRenderer");var NzM=new _.R("videoDescriptionFantasySectionViewModel");var lof=new _.R("deleteClipEngagementPanelCommand");var TzM=new _.R("loopCommand");var rid=new _.R("changeCreatorEndscreenVisibilityCommand");var i93=new _.R("liveChatCallForQuestionsRenderer");var RP9=new _.R("updateTimedMarkersSyncObserverCommand");var $S=new _.R("timelyActionViewModel");var FVm=new _.R("timelyActionsOverlayViewModel");var qOL=new _.R("repeatChapterCommand");var LV6=new _.R("watchPlayerOverflowMenuCommand");var W_G=new _.R("compositeVideoOverlayRenderer");var Pa3=new _.R("sortFilterSubMenuRenderer");var xF3=new _.R("switchListItemViewModel");var I4O=new _.R("inputComposerViewModel");var OSv=new _.R("transcriptEditSegmentCommand");var J$m=new _.R("transcriptUpdateSegmentTextCommand");var B5O=new _.R("transcriptSearchBoxRenderer");var noM=new _.R("transcriptSegmentListRenderer");var Y9O=new _.R("transcriptSegmentRenderer");_.y$f=new _.R("updateDateTextAction");var K_4=new _.R("updateTitleAction");var ZSd=new _.R("updateViewershipAction");var oo3=new _.R("carouselLockupRenderer");var S9d=new _.R("expandableVideoDescriptionBodyRenderer");var uam=new _.R("videoDescriptionYouchatSectionViewModel");_.hr=_.Wi("kevlar_watch_page_horizontal_margin",24);_.dFf=_.Wi("kevlar_watch_page_columns_top_padding",24);_.sNy=426+_.hr*2;_.HE=_.Wi("kevlar_watch_two_column_width_threshold",1E3);_.vof=_.hr*2;_.mFM=_.Wi("kevlar_watch_secondary_width",402);_.VE4=_.Wi("kevlar_watch_max_player_width",1280);_.tE3=_.Wi("kevlar_watch_flexy_metadata_height",136);_.p0d=_.vof+310+_.hr;_.jNf=_.vof+360+_.hr;var QNG={PAUSE_CHAT:18};var Cam;var A$L;var e1=function(){return _.b.apply(this,arguments)||this};
_.A(e1,_.b);e1.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
e1.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var W=_.Q(this.data.button,_.gp);W&&(W.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.N1.Object.defineProperties(e1,{template:{configurable:!0,enumerable:!0,get:function(){if(A$L===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Cam===void 0&&(Cam=document.createElement("template"));var I=Cam;x.call(P,I.content.cloneNode(!0),W.content.firstChild);A$L=W}W=A$L;return W}}});
_.f([_.h(_.GC),_.l("design:type",Object)],e1.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({selectorArgs:["data.enabledEntityKey"],selector:MiL,observer:"onEnabledChange"}),_.l("design:type",Boolean)],e1.prototype,"enabled",void 0);_.f([_.c(),_.l("design:type",Object)],e1.prototype,"data",void 0);e1=_.f([_.jd({is:"yt-disableable-button-view-model",noInjection:!0})],e1);var zr6;var GUB;var EoL=["transVert01","transVert02","transVert03"],go6="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),cE=function(){var W=_.b.apply(this,arguments)||this;W.emojiManager=_.gy;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};W.reactionBuckets=[];W.noEmojiIdentifier="NO_EMOJI";return W};
_.A(cE,_.b);_.J=cE.prototype;_.J.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.J.desktopFountainEmojiSizePxChanged=function(){_.qa(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.J.createUserReactionAnimation=function(W){this.createEmojiAnimation(W,!0)};
_.J.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var W;((W=this.data)==null?0:W.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.mG("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.ju(this.emojiContainer.children)).forEach(function(P){P.remove()})};
_.J.detached=function(){this.cleanupFountain()};
_.J.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var W;this.reactionBuckets=_.jU.unsafeClone((W=this.emojiFountainData)==null?void 0:W.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.J.processEmojiBucket=function(W){var P=this;if(this.reactionBuckets&&!(W>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var x=this.reactionBuckets[W];this.generateEmojiAnimations(x);if(W<this.reactionBuckets.length-1){var I;if(x==null?0:(I=x.duration)==null?0:I.seconds)this.emojiBucketTimerId=setTimeout(function(){P.processEmojiBucket(W+1)},Number(x.duration.seconds)*1E3)}}};
_.J.generateEmojiAnimations=function(W){var P=this,x=this.getRandomEmojiIdFromBucketWithOverride(W);if(x&&x!==this.noEmojiIdentifier){var I=0;W.targetEps?(I=this.linearInterpolateBounded(1,20,100,12,W.emojiSizeIndex||0),this.createEmojiAnimation(x,!1,W.emojiAnimationMs,I),I=this.getEmojiDelayMsFromTargetEps(W.targetEps)):(this.createEmojiAnimation(x),I=this.getEmojiDelayMsFromDistribution(W.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){P.generateEmojiAnimations(W)},I)}};
_.J.getRandomEmojiIdFromBucketWithOverride=function(W){if(!(W&&W.reactionsData&&W.reactionsData.length&&W.totalReactions))return this.noEmojiIdentifier;for(var P=W.totalReactions,x=1,I=_.n(W.reactionsData),O=I.next();!O.done;O=I.next())O=O.value,(O.reactionWeightOverride||O.reactionWeightOverride===0)&&O.reactionCount&&(P-=O.reactionCount,x-=O.reactionWeightOverride);I=!0;x<0&&(I=!1,P=W.totalReactions,x=1);if(I&&x>0&&P===0)if(x===1){O=0;for(var B=_.n(W.reactionsData),Y=B.next();!Y.done;Y=B.next())Y=
Y.value,Y.reactionCount&&Y.reactionCount>0&&O++;O=1/O;B=_.n(W.reactionsData);for(Y=B.next();!Y.done;Y=B.next())Y.value.reactionWeightOverride=O}else for(O=1/(1-x),B=_.n(W.reactionsData),Y=B.next();!Y.done;Y=B.next())Y=Y.value,Y.reactionWeightOverride&&(Y.reactionWeightOverride*=O);O=Math.random();B=0;Y=_.n(W.reactionsData);for(var K=Y.next();!K.done;K=Y.next())if(K=K.value,K.reactionCount&&(B=(K.reactionWeightOverride||K.reactionWeightOverride===0)&&I?B+K.reactionWeightOverride:B+x*K.reactionCount/
P,B>O&&(K.reactionCount--,W.totalReactions--,K=this.reactionItemToEmojiString(K),K!==this.noEmojiIdentifier)))return K;return this.noEmojiIdentifier};
_.J.reactionItemToEmojiString=function(W){if(W.unicodeEmojiId)return W.unicodeEmojiId;if(W.emoteId)return W.emoteId;if(W.videoReactionType)switch(W.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.J.createEmojiAnimation=function(W,P,x,I){P=P===void 0?!1:P;this.lastEmojiRequestedForTesting=W;var O=W.startsWith("yt-icons:"),B=_.Gh(this.emojiManager,W);if(B||O){var Y=document.createElement("emoji");Y.classList.add("yt-emoji-fountain-view-model");Y.classList.add(EoL[Math.floor(Math.random()*EoL.length)]);var K=document.createElement("div");K.classList.add("yt-emoji-fountain-view-model");K.classList.add("horizontal-container");K.classList.add(go6[Math.floor(Math.random()*go6.length)]);P?(x=document.createElement("div"),
x.classList.add("user-reaction-bubble"),x.classList.add("yt-emoji-fountain-view-model"),K.appendChild(x)):(x&&(Y.style.animationDuration=x+"ms",K.style.animationDuration=x+"ms"),I&&(Y.style.width=I+"px",Y.style.height=I+"px"));O?(O=document.createElement("yt-icon"),O.polymerController.icon=W,I&&(O.style.width=I+"px",O.style.height=I+"px"),W=O):W=this.emojiManager.createEmoji(B,!1);W.classList.add("yt-emoji-fountain-view-model");K.appendChild(W);Y.appendChild(K);this.emojiContainer.appendChild(Y);
Y.addEventListener("animationend",function(){Y.remove()});
var Z,d;if((Z=this.data)==null?0:(d=Z.loggingDirectives)==null?0:d.trackingParams)P=P?_.td(183501):_.td(183500),$DB(this.data.loggingDirectives.trackingParams,P),_.HnS(P);setTimeout(function(){Y&&Y.remove()},2E3)}};
_.J.getEmojiDelayMsFromDistribution=function(W){return Math.random()*(W||1)*1E3};
_.J.getEmojiDelayMsFromTargetEps=function(W){return Math.random()*2*(1/W)*1E3};
_.J.linearInterpolateBounded=function(W,P,x,I,O){O=Math.min(Math.max(O,W),x);return(P*(x-O)+I*(O-W))/(x-W)};
cE.prototype.onEmojiFountainDataEntityUpdate=cE.prototype.onEmojiFountainDataEntityUpdate;cE.prototype.desktopFountainEmojiSizePxChanged=cE.prototype.desktopFountainEmojiSizePxChanged;cE.prototype.isActiveChanged=cE.prototype.isActiveChanged;_.f([_.c(),_.l("design:type",_.zh)],cE.prototype,"emojiManager",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],cE.prototype,"ytLiveChatReduxBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],cE.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cE.prototype,"data",void 0);_.f([_.c({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(W,P){return _.Jb(W.entities,"emojiFountainDataEntity",P)}}),
_.l("design:type",Object)],cE.prototype,"emojiFountainData",void 0);_.f([_.c(),_.l("design:type",Boolean)],cE.prototype,"isActive",void 0);_.f([_.OZ("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cE.prototype,"isActiveChanged",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],cE.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",String)],cE.prototype,"lastEmojiRequestedForTesting",void 0);
_.f([_.c({value:function(){return _.Wi("desktop_fountain_emoji_size_px",20)}}),
_.l("design:type",Number)],cE.prototype,"desktopFountainEmojiSizePx",void 0);_.f([_.OZ("desktopFountainEmojiSizePx"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cE.prototype,"desktopFountainEmojiSizePxChanged",null);_.f([_.BM("#emoji-container"),_.l("design:type",HTMLElement)],cE.prototype,"emojiContainer",void 0);
_.f([_.OZ("emojiFountainData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cE.prototype,"onEmojiFountainDataEntityUpdate",null);cE=_.f([_.jd({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],cE);
_.X(cE,"yt-emoji-fountain-view-model",function(){if(GUB===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;zr6===void 0&&(zr6=document.createElement("template"));var I=zr6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);GUB=W}W=GUB;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var DF3;var MEv;var a5=function(){return _.b.apply(this,arguments)||this};
_.A(a5,_.b);a5.prototype.onChoiceChanged=function(){this.data&&_.qa(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
a5.prototype.onChoiceChanged=a5.prototype.onChoiceChanged;_.f([_.c(),_.l("design:type",Object)],a5.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a5.prototype,"onChoiceChanged",null);a5=_.f([_.U({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],a5);
_.X(a5,"yt-live-chat-banner-poll-choice",function(){if(MEv===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;DF3===void 0&&(DF3=document.createElement("template"));var I=DF3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);MEv=W}W=MEv;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var $F4;var w0d;var bX=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_button_rework_with_live");W.small=!1;return W};
_.A(bX,_.b);bX.prototype.computeIsSmall=function(){var W;return((W=this.buttonOverrides)==null?void 0:W.size)==="S"};
bX.prototype.computeId=function(){return this.data&&this.data.targetId};
_.f([_.h(_.E3.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],bX.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.c({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",String)],bX.prototype,"id",void 0);_.f([_.c(),_.l("design:type",Object)],bX.prototype,"buttonOverrides",void 0);_.f([_.c(),_.l("design:type",Object)],bX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],bX.prototype,"modern",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.l("design:type",Object)],bX.prototype,"small",void 0);bX=_.f([_.U({disableElementRegistration:!0,is:"yt-live-chat-button"})],bX);
_.X(bX,"yt-live-chat-button",function(){if(w0d===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;$F4===void 0&&($F4=document.createElement("template"));var I=$F4;x.call(P,I.content.cloneNode(!0),W.content.firstChild);w0d=W}W=w0d;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var hr4;var HSG;var kS=function(){var W=_.b.apply(this,arguments)||this;W.inCollapsedBanner=!1;W.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};W.questionButtonOverrides={style:"mono",type:"filled"};return W};
_.A(kS,_.b);_.J=kS.prototype;_.J.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]]"}}}}}};
_.J.onContextMenuButtonClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
_.J.onYtRendererstamperFinished=function(){this.menuButton=_.g(this.hostElement).querySelector("#menu-button")};
_.J.dataChanged=function(){var W,P;if((P=_.Q((W=this.data)==null?void 0:W.overflowMenuButton,_.w6))==null?0:P.command)this.data.contextMenuEndpoint=_.Q(this.data.overflowMenuButton,_.w6).command};
_.J.onButtonClick=function(){var W,P=_.Q((W=this.data)==null?void 0:W.askQuestionButton,_.w6);if(P){if(P.trackingParams&&(W=_.ox(P.trackingParams))){var x=_.E_();x&&_.bB(x,W)}_.Lf(this.hostElement,"innertube-command",P.command)}};
kS.prototype.onYtRendererstamperFinished=kS.prototype.onYtRendererstamperFinished;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],kS.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],kS.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.c({observer:"dataChanged"}),_.l("design:type",Object)],kS.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kS.prototype,"inCollapsedBanner",void 0);_.f([_.c(),_.l("design:type",Object)],kS.prototype,"buttonOverrides",void 0);_.f([_.c(),_.l("design:type",Object)],kS.prototype,"questionButtonOverrides",void 0);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kS.prototype,"onYtRendererstamperFinished",null);
kS=_.f([_.U({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],kS);
_.X(kS,"yt-live-chat-call-for-questions-renderer",function(){if(HSG===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;hr4===void 0&&(hr4=document.createElement("template"));var I=hr4;x.call(P,I.content.cloneNode(!0),W.content.firstChild);HSG=W}W=HSG;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var erB={};erB.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 W=this;window.requestAnimationFrame(function(){W.restoreFocusNode_||(W.restoreFocusNode_=document.activeElement);var P=_.tKd(W.hostElement);P.length&&P[P.length-1].focus()})},
isAttachedChanged_:function(W,P){W?this.focusChild_():P&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(W){this.hidden||_.c5(W).indexOf(this.hostElement)!==-1||(W.stopPropagation(),this.focusChild_())}};var c$2;var a4f;var Ul=function(){return _.b.apply(this,arguments)||this};
_.A(Ul,_.b);Ul.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ul.prototype.onClick=function(W){W.target!==this.confirmButton&&W.target!==this.cancelButton&&(this.hidden=!0)};
_.f([_.BM("#confirm_button"),_.l("design:type",Object)],Ul.prototype,"confirmButton",void 0);_.f([_.BM("#cancel_button"),_.l("design:type",Object)],Ul.prototype,"cancelButton",void 0);_.f([_.c(),_.l("design:type",bSO)],Ul.prototype,"data",void 0);_.f([_.c({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],Ul.prototype,"hidden",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ul.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(erB.YtLiveChatDialogBehavior),_.l("design:type",Object)],Ul.prototype,"ytLiveChatDialogBehavior",void 0);Ul=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Ul);
var bSO=_.X(Ul,"yt-live-chat-dialog-renderer",function(){if(a4f===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;c$2===void 0&&(c$2=document.createElement("template"));var I=c$2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);a4f=W}W=a4f;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var kU9;var UF6,X02=function(){if(UF6!==void 0)return UF6;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;kU9===void 0&&(kU9=document.createElement("template"));var I=kU9;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return UF6=W};var f44;var N5G;var Xw=function(){var W=_.b.apply(this,arguments)||this;W.tooltip=null;W.data=null;W.id="";W.active=!1;W.icon="";W.disabled=!1;W.showTooltip=!1;W.useToggledActiveState=!0;W.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return W};
_.A(Xw,_.b);_.J=Xw.prototype;
_.J.dataChanged=function(){var W;((W=this.data)==null?0:W.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,_.Fy)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var P;if((P=this.data)==null?0:P.disabled)this.disabled=!0};
_.J.computeId=function(W){return W};
_.J.computeIcon=function(W,P){if(!W)return"";if(this.useToggledActiveState)return"yt-icons:"+W.toLowerCase();var x,I;return P&&((x=this.data)==null?0:(I=x.toggledIcon)==null?0:I.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+W.toLowerCase()};
_.J.logPDGEntryPoint=function(){_.nXo(_.Oo("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")};
_.J.immediatelyShowTooltip=function(){var W=_.g(this.hostElement).querySelector("#tooltip");W.animationDelay=0;W.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};W.show()};
_.J.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.J.onClick=function(W){var P;((P=this.data)==null?0:P.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(),W.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Lf(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.J.computeShowTooltip=function(W,P){return!!(W&&W.tooltip&&P)};
_.J.maybeUpdateTooltipText=function(){var W=this,P;if((P=this.data)==null?0:P.tooltip){var x=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Fy)(W.tooltip).textContent=x},250)}};
_.J.handleLiveChatActions=function(W){var P=this;W.length&&(this.id!=="creator"&&this.id!=="product-picker"||W.forEach(function(x){(x=P.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",x))&&x.durationSec===x.fullDurationSec&&P.startBubble(P.colorFromDecimal(x.startBackgroundColor))}))};
_.J.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.J.startBubble=function(W){_.qa(this.hostElement,{"--yt-live-chat-monetization-button-glow":W});this.hostElement.setAttribute("bubble","")};
_.J.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.J.colorFromDecimal=function(W){typeof W==="string"&&(W=Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
Xw.prototype.onAnimationEnd=Xw.prototype.onAnimationEnd;Xw.prototype.disabledChanged=Xw.prototype.disabledChanged;Xw.prototype.dataChanged=Xw.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Xw.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.E3.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],Xw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Xw.prototype,"data",void 0);_.f([_.c({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",Object)],Xw.prototype,"id",void 0);_.f([_.c({notify:!0,reflectToAttribute:!0}),_.l("design:type",Object)],Xw.prototype,"active",void 0);
_.f([_.c({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.l("design:type",Object)],Xw.prototype,"icon",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Xw.prototype,"disabled",void 0);_.f([_.c({computed:"computeShowTooltip(data, disabled)"}),_.l("design:type",Object)],Xw.prototype,"showTooltip",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Xw.prototype,"useToggledActiveState",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xw.prototype,"dataChanged",null);_.f([_.OZ("disabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xw.prototype,"disabledChanged",null);_.f([_.I7("animationend"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Xw.prototype,"onAnimationEnd",null);
Xw=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Xw);
_.X(Xw,"yt-live-chat-icon-toggle-button-renderer",function(){if(N5G===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;f44===void 0&&(f44=document.createElement("template"));var I=f44;x.call(P,I.content.cloneNode(!0),W.content.firstChild);N5G=W}W=N5G;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var l4f;var T5f;var fN=function(){return _.b.apply(this,arguments)||this};
_.A(fN,_.b);fN.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f([_.c(),_.l("design:type",Object)],fN.prototype,"data",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);fN=_.f([_.U({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],fN);
_.X(fN,"yt-live-chat-message-input-prompt-header-renderer",function(){if(T5f===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;l4f===void 0&&(l4f=document.createElement("template"));var I=l4f;x.call(P,I.content.cloneNode(!0),W.content.firstChild);T5f=W}W=T5f;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var r$3;var iS9;var Rr9;var F_m;var q9B;var L_L;var N4=function(){return _.b.apply(this,arguments)||this};
_.A(N4,_.b);_.f([_.c(),_.l("design:type",Object)],N4.prototype,"data",void 0);N4=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],N4);
_.X(N4,"yt-live-chat-message-subtext-renderer",function(){if(L_L===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;q9B===void 0&&(q9B=document.createElement("template"));var I=q9B;x.call(P,I.content.cloneNode(!0),W.content.firstChild);L_L=W}W=L_L;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var lX=function(){var W=_.b.apply(this,arguments)||this;W.subtextOnBottom=!1;W.buttonOverrides={style:"mono",type:"tonal"};return W};
_.A(lX,_.b);lX.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],lX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],lX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],lX.prototype,"subtextOnBottom",void 0);_.f([_.c(),_.l("design:type",Object)],lX.prototype,"buttonOverrides",void 0);
lX=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],lX);
_.X(lX,"yt-live-chat-message-renderer",function(){if(F_m===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Rr9===void 0&&(Rr9=document.createElement("template"));var I=Rr9;x.call(P,I.content.cloneNode(!0),W.content.firstChild);F_m=W}W=F_m;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var W62;var P$G;var Tg=function(){var W=_.b.apply(this,arguments)||this;W.isRemovable=!1;W.hasPrefilledText=!1;W.isInputDirty=!1;W.overCharacterLimit=!1;W.underCharacterLimit=!1;W.showErrorMessage=!1;return W};
_.A(Tg,_.b);_.J=Tg.prototype;_.J.computeId=function(){return this.data.id};
_.J.computeInputData=function(){return this.data.inputData};
_.J.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.J.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.J.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.J.getLiveChatRichMessageInput=function(){return _.g(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.J.clearInput=function(){_.g(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.J.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.J.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.J.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.J.handleTextInputCharCountChanged=function(W){W=W.detail&&W.detail.characterCount;W!==void 0&&(this.characterCount=W,W!==0&&(this.isInputDirty=!0))};
_.J.onInputFocusOut=function(){this.isInputDirty=!0};
_.J.onClickCloseButton=function(){_.Lf(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Tg.prototype.handleTextInputCharCountChanged=Tg.prototype.handleTextInputCharCountChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Tg.prototype,"data",void 0);_.f([_.c({computed:"computeId(data.id)"}),_.l("design:type",String)],Tg.prototype,"id",void 0);_.f([_.c({computed:"computeInputData(data.inputData)"}),_.l("design:type",Object)],Tg.prototype,"inputData",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.l("design:type",Object)],Tg.prototype,"isRemovable",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.l("design:type",Object)],Tg.prototype,"hasPrefilledText",void 0);_.f([_.c({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.l("design:type",Number)],Tg.prototype,"charactersRemaining",void 0);
_.f([_.c(),_.l("design:type",Number)],Tg.prototype,"characterCount",void 0);_.f([_.c(),_.l("design:type",Object)],Tg.prototype,"isInputDirty",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.l("design:type",Object)],Tg.prototype,"overCharacterLimit",void 0);_.f([_.c({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.l("design:type",Object)],Tg.prototype,"underCharacterLimit",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.l("design:type",Object)],Tg.prototype,"showErrorMessage",void 0);_.f([_.I7("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Tg.prototype,"handleTextInputCharCountChanged",null);
Tg=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Tg);
_.X(Tg,"yt-live-chat-poll-editor-input",function(){if(P$G===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;W62===void 0&&(W62=document.createElement("template"));var I=W62;x.call(P,I.content.cloneNode(!0),W.content.firstChild);P$G=W}W=P$G;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var x9f;var IQB;var O19={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},rA=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_button_rework_with_live");W.closeButtonOverrides={iconPosition:"icon-only"};W.startButtonOverrides={style:"mono",type:"filled"};W.addOptionButtonOverrides={style:"mono",type:"text"};return W};
_.A(rA,_.b);_.J=rA.prototype;
_.J.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"}}}}};
_.J.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var W;_.Q((W=this.data)==null?void 0:W.startButton,_.w6)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.computeId=function(){return this.data&&this.data.id||""};
_.J.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.J.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.J.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.J.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.J.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var W=0;W<this.pollEditorInfoWithDefaults.minPollOptions;W++)this.addPollOptionData()};
_.J.getIsValidPoll=function(){var W=this;if(!this.pollEditorInfoWithDefaults)return!1;var P=this.pollEditorInfoWithDefaults,x=P.minPollOptionChars,I=P.maxPollOptionChars,O=P.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>P.maxPollQuestionChars)return!1;P=_.g(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(P).every(function(B,Y){B=B.characterCount;!B&&O[Y]&&(B=W.ytRendererBehavior.getSimpleString(O[Y]).length);return B!==void 0&&B>=x&&B<=I})};
_.J.isValidPollChanged=function(){var W;_.Q((W=this.data)==null?void 0:W.startButton,_.w6)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.addPollOptionData=function(){var W=this.pollEditorInfoWithDefaults,P=W.maxPollOptionChars,x=W.optionPlaceholderText,I=W.customOptionPlaceholderText,O=W.pollOptionData;this.currentNumPollOptions>=W.maxPollOptions||(W={liveChatPollOptionInput:{inputData:{placeholder:I[this.currentNumPollOptions]||x,maxCharacterLimit:P},maxCharacterLimit:P,minCharacterLimit:W.minPollOptionChars,hasPrefilledText:!!I[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=W.minPollOptions}},O.charCountErrorText&&
(W.liveChatPollOptionInput.charCountErrorText=O.charCountErrorText),O.charsRemainingAltLabel&&(W.liveChatPollOptionInput.charsRemainingAltLabel=O.charsRemainingAltLabel),O.removeOptionAltText&&(W.liveChatPollOptionInput.removeOptionAltText=O.removeOptionAltText),this.push("pollOptionsData",W),O=Array.from(_.g(_.g(this.hostElement).querySelector("#poll-options")).children),O.forEach(function(B,Y){B.polymerController.set("data.id",Y)}),_.g(O[O.length-1]).querySelector("#input").focus())};
_.J.getPollOptionInputValues=function(){var W=this,P=[],x=_.g(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),I=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(x).forEach(function(O,B){var Y=null;O=O.getLiveChatRichMessageInput();var K;(O==null?0:(K=O.textSegments)==null?0:K.length)?Y=_.$C(O):I[B]&&(Y=W.formattedStringToLiveChatRichMessageInput(I[B]));P.push(Y)});
return P};
_.J.requestCreateAndStartPoll=function(W){var P=this.getPollOptionInputValues();if(!P.some(function(I){return!I})){P={optionText:P};
var x=_.g(_.g(this.hostElement).querySelector("#poll-question")).firstChild;x&&x.liveChatRichMessageInput&&(P.questionText=_.$C(x.liveChatRichMessageInput));_.Iu(this.hostElement,[W,P])}};
_.J.selectedChanged=function(){if(this.selected){var W=_.g(_.g(this.hostElement).querySelector("#start-button")).firstElementChild;if(W){var P;(P=_.g(W).querySelector("#button")||_.rT(W).querySelector("button"))==null||P.focus()}}};
_.J.handleTextInputChanged=function(W){var P;((P=W.target)==null?void 0:P.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=W.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.J.handleStartButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),(W=W.detail.args[1])&&this.requestCreateAndStartPoll(W))};
_.J.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(W){this.createPollRequestInFlight=!1;(W=W.detail&&W.detail.data)&&W.success&&(_.Lf(this.hostElement,"picker-cancelled"),_.W7(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.J.onCloseClick=function(){_.Lf(this.hostElement,"picker-cancelled");_.W7(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.J.handlePollEditorInputClosed=function(W){var P=this.pollOptionsData.findIndex(function(x){return x.liveChatPollOptionInput.id===W.detail.id});
this.splice("pollOptionsData",P,1);this.isValidPoll=this.getIsValidPoll()};
_.J.onPickerCancelled=function(){this.reset()};
_.J.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var W=_.g(_.g(this.hostElement).querySelector("#poll-question")).firstChild;W&&W.setLiveChatRichMessageInput(null);if(W=_.g(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){W=_.n(Array.from(W));for(var P=W.next();!P.done;P=W.next())P.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.J.formattedStringToLiveChatRichMessageInput=function(W){return W.simpleText?{text_segments:[W.simpleText]}:{text_segments:W.runs}};
_.N1.Object.defineProperties(rA.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(O19,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
rA.prototype.onPickerCancelled=rA.prototype.onPickerCancelled;rA.prototype.handlePollEditorInputClosed=rA.prototype.handlePollEditorInputClosed;rA.prototype.handleServiceRequestCompleted=rA.prototype.handleServiceRequestCompleted;rA.prototype.handleServiceRequestSent=rA.prototype.handleServiceRequestSent;rA.prototype.handleTextInputChanged=rA.prototype.handleTextInputChanged;rA.prototype.selectedChanged=rA.prototype.selectedChanged;rA.prototype.isValidPollChanged=rA.prototype.isValidPollChanged;
rA.prototype.shouldInitializePollChanged=rA.prototype.shouldInitializePollChanged;rA.prototype.dataChanged=rA.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rA.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],rA.prototype,"modern",void 0);
_.f([_.c(),_.l("design:type",Object)],rA.prototype,"closeButtonOverrides",void 0);_.f([_.c(),_.l("design:type",Object)],rA.prototype,"startButtonOverrides",void 0);_.f([_.c(),_.l("design:type",Object)],rA.prototype,"addOptionButtonOverrides",void 0);_.f([_.c({computed:"computeId(data.id)",reflectToAttribute:!0}),_.l("design:type",String)],rA.prototype,"id",void 0);_.f([_.c({value:function(){return[]}}),
_.l("design:type",Array)],rA.prototype,"pollOptionsData",void 0);_.f([_.H("pollEditorInfoWithDefaults"),_.l("design:type",Object),_.l("design:paramtypes",[])],rA.prototype,"pollQuestionData",null);_.f([_.c({value:0}),_.l("design:type",Number)],rA.prototype,"pollQuestionCharacterCount",void 0);_.f([_.H("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],rA.prototype,"pollQuestionCharactersRemaining",null);
_.f([_.c({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.l("design:type",Boolean)],rA.prototype,"overQuestionCharacterLimit",void 0);_.f([_.H("data.pollEditorInfo"),_.l("design:type",Object),_.l("design:paramtypes",[])],rA.prototype,"pollEditorInfoWithDefaults",null);_.f([_.c({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.l("design:type",Number)],rA.prototype,"currentNumPollOptions",void 0);
_.f([_.c({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.l("design:type",Boolean)],rA.prototype,"hasMaxNumPollOptions",void 0);_.f([_.H("pollEditorInfoWithDefaults","pollOptionsData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rA.prototype,"shouldInitializePoll",null);_.f([_.c(),_.l("design:type",Object)],rA.prototype,"isValidPoll",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],rA.prototype,"createPollRequestInFlight",void 0);_.f([_.c(),_.l("design:type",Object)],rA.prototype,"selected",void 0);_.f([_.c({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.l("design:type",Boolean)],rA.prototype,"showQuestionErrorMessage",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"dataChanged",null);_.f([_.OZ("shouldInitializePoll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"shouldInitializePollChanged",null);_.f([_.OZ("isValidPoll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"isValidPollChanged",null);
_.f([_.OZ("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"selectedChanged",null);_.f([_.I7("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rA.prototype,"handleTextInputChanged",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"handleServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rA.prototype,"handleServiceRequestCompleted",null);
_.f([_.I7("yt-live-chat-poll-editor-input-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rA.prototype,"handlePollEditorInputClosed",null);_.f([_.I7("picker-cancelled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"onPickerCancelled",null);rA=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],rA);
_.X(rA,"yt-live-chat-poll-editor-panel-renderer",function(){if(IQB===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;x9f===void 0&&(x9f=document.createElement("template"));var I=x9f;x.call(P,I.content.cloneNode(!0),W.content.firstChild);IQB=W}W=IQB;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var JUQ;var BF2;var iX=function(){return _.b.apply(this,arguments)||this};
_.A(iX,_.b);iX.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
iX.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.N1.Object.defineProperties(iX.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var W,P;return(W=this.data)==null?void 0:(P=W.title)==null?void 0:P.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.AF((W=this.data)==null?void 0:W.onTapCommand)}}});
_.f([_.h(_.IM.YtEndpointBehavior),_.l("design:type",Object)],iX.prototype,"ytEndpointBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],iX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],iX.prototype,"itemId",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],iX.prototype,"hasPromotion",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],iX.prototype,"innertubeCommand",null);iX=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],iX);
_.X(iX,"yt-live-chat-product-picker-panel-item-view-model",function(){if(BF2===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;JUQ===void 0&&(JUQ=document.createElement("template"));var I=JUQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);BF2=W}W=BF2;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var nxL;var Yqf;var R5=function(){var W=_.b.apply(this,arguments)||this;W.id="product-picker";W.selected=!1;W.closeButtonId="close-button";W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.A(R5,_.b);_.J=R5.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var W=_.g(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");W.length&&W[0].focus()};
_.J.onCloseBuyFlow=function(){_.Lf(this.hostElement,"picker-cancelled")};
_.J.onCloseClick=function(){_.Lf(this.hostElement,"picker-cancelled");var W;((W=this.data)==null?0:W.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.Q(this.data.closeButton,_.gp))};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.Lf(this.hostElement,"picker-cancelled")};
R5.prototype.observeSelected=R5.prototype.observeSelected;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],R5.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],R5.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],R5.prototype,"id",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],R5.prototype,"selected",void 0);_.f([_.c(),_.l("design:type",Object)],R5.prototype,"closeButtonId",void 0);_.f([_.OZ("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],R5.prototype,"observeSelected",null);
R5=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],R5);
_.X(R5,"yt-live-chat-product-picker-panel-view-model",function(){if(Yqf===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;nxL===void 0&&(nxL=document.createElement("template"));var I=nxL;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Yqf=W}W=Yqf;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var yUd;var K66;var Fw=function(){var W=_.b.apply(this,arguments)||this;W.iconId="";W.icon="";W.disabled=!1;W.systemIcons=_.p("kevlar_system_icons");return W};
_.A(Fw,_.b);_.J=Fw.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.J.computeIconId=function(W){return W&&W.icon&&W.icon.iconType?W.icon.iconType.toLowerCase():""};
_.J.computeIcon=function(W){return W&&W.icon&&W.icon.iconType?(W=W.icon.iconType.toLowerCase(),(W.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+W):""};
_.J.computeDisabled=function(W){return!!W};
_.J.computeCommand=function(W,P){return P?void 0:W};
_.J.computeTooltip=function(W,P){return P&&W?W:""};
_.J.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.f([_.h(_.IM.YtEndpointBehavior),_.l("design:type",Object)],Fw.prototype,"ytEndpointBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Fw.prototype,"data",void 0);_.f([_.c({computed:"computeIconId(data)",reflectToAttribute:!0}),_.l("design:type",Object)],Fw.prototype,"iconId",void 0);
_.f([_.c({computed:"computeIcon(data)",reflectToAttribute:!0}),_.l("design:type",Object)],Fw.prototype,"icon",void 0);_.f([_.c({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.l("design:type",Object)],Fw.prototype,"disabled",void 0);_.f([_.c({computed:"computeCommand(data.command, disabled)"}),_.l("design:type",Object)],Fw.prototype,"command",void 0);_.f([_.c({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.l("design:type",String)],Fw.prototype,"tooltip",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Fw.prototype,"systemIcons",void 0);Fw=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Fw);
_.X(Fw,"yt-live-chat-product-button-renderer",function(){if(K66===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;yUd===void 0&&(yUd=document.createElement("template"));var I=yUd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);K66=W}W=K66;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Z1f;var ox6;var q4=function(){var W=_.b.apply(this,arguments)||this;W.selected=!1;W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.A(q4,_.b);_.J=q4.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.computeId=function(W){return W.id||""};
_.J.onCloseClick=function(){_.Lf(this.hostElement,"picker-cancelled")};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var W=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");W.length&&W[0].focus()};
_.J.onCloseBuyFlow=function(){_.Lf(this.hostElement,"picker-cancelled")};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.Lf(this.hostElement,"picker-cancelled")};
q4.prototype.observeSelected=q4.prototype.observeSelected;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],q4.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],q4.prototype,"data",void 0);
_.f([_.c({computed:"computeId(data)",reflectToAttribute:!0}),_.l("design:type",String)],q4.prototype,"id",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],q4.prototype,"selected",void 0);_.f([_.OZ("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q4.prototype,"observeSelected",null);q4=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],q4);
_.X(q4,"yt-live-chat-product-picker-renderer",function(){if(ox6===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Z1f===void 0&&(Z1f=document.createElement("template"));var I=Z1f;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ox6=W}W=ox6;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var SqQ;var uA2;var d92;var syM;var LN=function(){return _.b.apply(this,arguments)||this};
_.A(LN,_.b);LN.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()};
LN.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
LN.prototype.created=function(){this.ids={background:_.G6(),maskOne:_.G6(),maskTwo:_.G6(),gradient:_.G6(),largeBackground:_.G6(),largeGradientOne:_.G6(),largeGradientTwo:_.G6(),largeGradientPath:_.G6()}};
LN.prototype.maybeLoadAnimationBackground=LN.prototype.maybeLoadAnimationBackground;_.f([_.c({value:!1}),_.l("design:type",Boolean)],LN.prototype,"useLargeBackground",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],LN.prototype,"useAnimationBackground",void 0);_.f([_.c({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.l("design:type",Boolean)],LN.prototype,"useRegularBackground",void 0);
_.f([_.c(),_.l("design:type",Object)],LN.prototype,"ids",void 0);_.f([_.c(),_.l("design:type",Object)],LN.prototype,"lottieAnimation",void 0);_.f([_.BM("#animation-background"),_.l("design:type",HTMLDivElement)],LN.prototype,"animationBackground",void 0);_.f([_.OZ("useAnimationBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LN.prototype,"maybeLoadAnimationBackground",null);
LN=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],LN);
_.X(LN,"yt-live-interactivity-component-background",function(){if(syM===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;d92===void 0&&(d92=document.createElement("template"));var I=d92;x.call(P,I.content.cloneNode(!0),W.content.firstChild);syM=W}W=syM;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var WD=function(){var W=_.b.apply(this,arguments)||this;W.characterCount=0;W.showInputErrorMessage=!1;W.startQnaRequestInFlight=!1;W.modern=_.p("web_button_rework_with_live");W.buttonOverrides={style:"mono",type:"filled"};W.closeButtonOverrides={iconPosition:"icon-only"};W.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return W};
_.A(WD,_.b);_.J=WD.prototype;
_.J.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]]"}}}}}};
_.J.onCharacterCountChanged=function(W){var P,x,I,O,B=(x=_.Q(this==null?void 0:(P=this.data)==null?void 0:P.creatorCallForQuestions,i93))==null?void 0:(I=x.inputField)==null?void 0:(O=I.liveChatTextInputFieldRenderer)==null?void 0:O.maxCharacterLimit,Y,K;B!=null&&(W==null?void 0:(Y=W.detail)==null?void 0:Y.characterCount)!=null&&_.Q(this==null?void 0:(K=this.data)==null?void 0:K.startButton,_.w6)&&(P=W.detail.characterCount>B,this.set("data.startButton.buttonRenderer.isDisabled",W.detail.characterCount===
0||P),this.showInputErrorMessage=P)};
_.J.onCloseClick=function(){_.Lf(this.hostElement,"picker-cancelled");_.W7(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onPickerCancelled=function(){var W=_.g(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.setLiveChatRichMessageInput(null)};
_.J.handleOpenQnaStartPanel=function(){var W=_.g(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.focus()};
_.J.handleStartButtonAction=function(W){var P=this;if(W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),W=W.detail.args[1])){var x=_.g(this.hostElement).querySelector("#qna-creator-text-input-field"),I;(x==null?0:(I=x.liveChatRichMessageInput)==null?0:I.textSegments)&&x.liveChatRichMessageInput.textSegments.length!==0&&(I={rich_message:_.$C(x.liveChatRichMessageInput)},_.Iu(this.hostElement,[W,I]).then(function(){_.Lf(P.hostElement,"picker-cancelled")}))}};
_.J.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(W){var P;W=W==null?void 0:(P=W.detail)==null?void 0:P.data;(W==null?0:W.actions)&&W.actions.length>0?this.startQnaRequestInFlight=!1:_.W7(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
WD.prototype.handleServiceRequestError=WD.prototype.handleServiceRequestError;WD.prototype.handleServiceRequestCompleted=WD.prototype.handleServiceRequestCompleted;WD.prototype.handleServiceRequestSent=WD.prototype.handleServiceRequestSent;WD.prototype.onPickerCancelled=WD.prototype.onPickerCancelled;WD.prototype.onCharacterCountChanged=WD.prototype.onCharacterCountChanged;_.f([_.c(),_.l("design:type",Object)],WD.prototype,"characterCount",void 0);
_.f([_.c(),_.l("design:type",Object)],WD.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],WD.prototype,"showInputErrorMessage",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],WD.prototype,"startQnaRequestInFlight",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],WD.prototype,"modern",void 0);_.f([_.c(),_.l("design:type",Object)],WD.prototype,"buttonOverrides",void 0);
_.f([_.c(),_.l("design:type",Object)],WD.prototype,"closeButtonOverrides",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],WD.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.h(_.DF.YtLiveChatItemBehavior),_.l("design:type",_.Mo)],WD.prototype,"ytLiveChatItemBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],WD.prototype,"ytActionHandlerBehavior",void 0);_.f([_.I7("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],WD.prototype,"onCharacterCountChanged",null);_.f([_.I7("picker-cancelled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WD.prototype,"onPickerCancelled",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WD.prototype,"handleServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],WD.prototype,"handleServiceRequestCompleted",null);
_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],WD.prototype,"handleServiceRequestError",null);WD=_.f([_.U({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],WD);
_.X(WD,"yt-live-chat-qna-start-panel-renderer",function(){if(uA2===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;SqQ===void 0&&(SqQ=document.createElement("template"));var I=SqQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);uA2=W}W=uA2;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var vx3;var m93;var PD=function(){return _.b.apply(this,arguments)||this};
_.A(PD,_.b);PD.prototype.dismiss=function(){_.Lf(this.hostElement,"yt-live-chat-error-message-dismiss")};
PD.prototype.edit=function(){_.Lf(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.f([_.c(),_.l("design:type",Object)],PD.prototype,"data",void 0);PD=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],PD);
_.X(PD,"yt-live-chat-text-actions-error-message-renderer",function(){if(m93===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;vx3===void 0&&(vx3=document.createElement("template"));var I=vx3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);m93=W}W=m93;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var VRf;var tRd;var ph2;var jyd;var xF=function(){var W=_.b.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.A(xF,_.b);xF.prototype.sendReaction=function(){var W,P,x=((W=this.data)==null?void 0:W.emojiId)||((P=this.data)==null?void 0:P.emoteId),I;x&&((I=this.data)==null?0:I.shouldTriggerAnimation)&&_.W7(this.hostElement,"yt-create-user-reaction-animation",[x]);var O;(W=_.AF((O=this.data)==null?void 0:O.onTap))&&_.O2(W,this.hostElement);this.showNewnessDot&&_.W7(this.hostElement,"yt-hide-newness-dot")};
xF.prototype.onClick=function(W){(!W||W.clientX||W.clientY)&&this.sendReaction()};
xF.prototype.onKeyDown=function(W){W.key!=="Enter"&&W.key!==" "||W.repeat||this.sendReaction()};
_.N1.Object.defineProperties(xF.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var W,P;return!!(((W=this.data)==null?0:W.emojiId)||((P=this.data)==null?0:P.emoteId))}}});
_.f([_.c(),_.l("design:type",Object)],xF.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xF.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",Object)],xF.prototype,"newnessDotEligible",void 0);_.f([_.H("data.maybeShowNewnessDot"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xF.prototype,"showNewnessDot",null);_.f([_.H("data.emojiId","data.emoteId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xF.prototype,"useYtImage",null);
xF=_.f([_.jd({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],xF);
_.X(xF,"yt-reaction-control-panel-button-view-model",function(){if(jyd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;ph2===void 0&&(ph2=document.createElement("template"));var I=ph2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);jyd=W}W=jyd;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var Qym;var C$v;var Ig=function(){var W=_.b.apply(this,arguments)||this;W.reactionControlPanelExpanded=!1;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.A(Ig,_.b);_.J=Ig.prototype;_.J.expandedButtonsChanged=function(){var W,P;_.qa(this.hostElement,{"--expanded-buttons-height":((P=(W=this.expandedButtonsData)==null?void 0:W.length)!=null?P:0)*36+"px"})};
_.J.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}}};
_.J.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.J.onMouseLeave=function(){var W=this;this.collapseTimer=setTimeout(function(){W.reactionControlPanelExpanded=!1},500)};
_.J.onFocusIn=function(){this.onMouseEnter()};
_.J.onFocusOut=function(){this.onMouseLeave()};
_.J.onCollapsedButtonFocusIn=function(){var W=this;setTimeout(function(){var P;(P=W.expandedButtons.querySelector("button"))==null||P.focus()},100)};
_.J.onCollapsedButtonFocusOut=function(W){W.stopPropagation()};
_.N1.Object.defineProperties(Ig.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var W,P;return _.jU.unsafeClone((W=this.liveReactionsData)==null?void 0:W.emojiButtonData)||((P=this.data)==null?void 0:P.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((W=this.data)==null||!W.maybeShowNewnessDot)}}});
Ig.prototype.expandedButtonsChanged=Ig.prototype.expandedButtonsChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],Ig.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ig.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ig.prototype,"reactionControlPanelExpanded",void 0);_.f([_.c({selectorArgs:["data.liveReactionsDataEntityKey"],selector:DDy}),_.l("design:type",Object)],Ig.prototype,"liveReactionsData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ig.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",Object)],Ig.prototype,"newnessDotEligible",void 0);
_.f([_.H("liveReactionsData","data.expandedButtons"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ig.prototype,"expandedButtonsData",null);_.f([_.H("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.c({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],Ig.prototype,"showNewnessDot",null);_.f([_.BM("#expanded-buttons"),_.l("design:type",HTMLElement)],Ig.prototype,"expandedButtons",void 0);
_.f([_.OZ("expandedButtonsData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ig.prototype,"expandedButtonsChanged",null);Ig=_.f([_.jd({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Ig);
_.X(Ig,"yt-reaction-control-panel-view-model",function(){if(C$v===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Qym===void 0&&(Qym=document.createElement("template"));var I=Qym;x.call(P,I.content.cloneNode(!0),W.content.firstChild);C$v=W}W=C$v;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var OX=new _.$N("yt-live-chat"),AU4=Date.parse("2024-7-24"),JK=function(){var W=_.b.apply(this,arguments)||this;W.emojiManager=_.gy;W.newnessDotEligible=!1;W.newnessDotImpressionCounted=!1;W.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return W};
_.A(JK,_.b);_.J=JK.prototype;_.J.emojiCustomizationEnabledChanged=function(){var W;((W=this.data)==null?0:W.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((W=OX.getCreationTime("emoji-customization-count"))&&W<AU4&&OX.set("emoji-customization-count","0"),W=Number(OX.get("emoji-customization-count"))||0,W<3&&(this.newnessDotEligible=!0,OX.set("emoji-customization-count",(W+1).toString())),this.newnessDotImpressionCounted=!0)};
_.J.hideNewnessDot=function(){this.newnessDotEligible=!1;OX.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.J.handleReactionsMute=function(W){var P=_.E_(),x=_.td(206221),I={checkboxData:{state:W?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};P&&_.bB(P,x,I);this.reactionsMuted=W};
_.J.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.J.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}}};
_.N1.Object.defineProperties(JK.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return(!((W=this.liveReactionsData)==null||!W.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
JK.prototype.liveReactionsSettingChanged=JK.prototype.liveReactionsSettingChanged;JK.prototype.emojiCustomizationEnabledChanged=JK.prototype.emojiCustomizationEnabledChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.GC),_.l("design:type",Object)],JK.prototype,"ytLiveChatReduxBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],JK.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],JK.prototype,"data",void 0);_.f([_.c(),_.l("design:type",_.zh)],JK.prototype,"emojiManager",void 0);_.f([_.c(),_.l("design:type",Object)],JK.prototype,"newnessDotEligible",void 0);_.f([_.c(),_.l("design:type",Object)],JK.prototype,"newnessDotImpressionCounted",void 0);
_.f([_.c({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:MiL}),_.l("design:type",Boolean)],JK.prototype,"liveReactionsSetting",void 0);_.f([_.c({selectorArgs:["data.liveReactionsDataEntityKey"],selector:DDy}),_.l("design:type",Object)],JK.prototype,"liveReactionsData",void 0);_.f([_.c({value:function(){var W=_.p("enable_lwe_web_mute"),P=OX.get("allow-reactions");return P===void 0?!1:!P&&W}}),
_.l("design:type",Boolean)],JK.prototype,"reactionsMuted",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],JK.prototype,"liveReactionsEnabled",null);_.f([_.OZ("data.emojiCustomizationEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JK.prototype,"emojiCustomizationEnabledChanged",null);
_.f([_.OZ("liveReactionsEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JK.prototype,"liveReactionsSettingChanged",null);JK=_.f([_.jd({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],JK);
_.X(JK,"yt-reaction-control-panel-overlay-view-model",function(){if(tRd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;VRf===void 0&&(VRf=document.createElement("template"));var I=VRf;x.call(P,I.content.cloneNode(!0),W.content.firstChild);tRd=W}W=tRd;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var z7m={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(W){var P=this.$.pickers.selected;if(P){_.g(this.hostElement).removeAttribute(P+"-open");var x="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(x="#picker-buttons",P==="emoji"&&_.g(this.hostElement).querySelector("#emoji-picker-button")&&(x="#emoji-picker-button"));if(x=_.g(this.hostElement).querySelector(x).querySelector("#"+P))x.active=!1}x=W;P==W&&(x=null);P!=W&&
_.g(this.hostElement).setAttribute(W+"-open","");this.$.pickers.selected=x;_.W7(this.hostElement,"yt-live-chat-picker-changed",[x])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var BD=function(){var W=_.b.apply(this,arguments)||this;W.numSentMessages=0;W.timeoutDurationMs=0;W.timeoutMs=0;W.lastTimeoutTimeMs=0;W.pendingMessageId="";W.hasFiredInitialFocusActions=!1;W.isBeforeFocusEnabled=!0;W.id="";W.characterCount=0;W.maxCharacterLimit=0;W.remainingCharacterCount=0;W.inputExpanded=!1;W.buttonOverrides={iconPosition:"icon-only"};W.inReplyPanel=!1;W.countdownRatio=0;W.isTooltipVisible=!1;W.tooltipTimeout=1E4;W.systemIcons=_.p("kevlar_system_icons");W.tallerEmojiPicker=_.p("live_chat_taller_emoji_picker");
W.blockSendMessageWithCountdown=!_.p("live_chat_enable_send_button_in_slow_mode");W.sendReplyMessageInFlight=!1;W.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"};W.onResize=function(){W.maybeToggleCharacterCount()};
return W};
_.A(BD,_.b);_.J=BD.prototype;
_.J.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"}}}};
_.J.attached=function(){window.addEventListener("resize",this.onResize)};
_.J.detached=function(){window.removeEventListener("resize",this.onResize)};
_.J.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.J.sendMessage=function(){var W=this,P,x,I,O;return _.y(function(B){if(W.sendDisabled)return B.return();W.isTooltipVisible&&_.W7(W.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(W.data.sendButton&&W.data.sendButton.buttonRenderer){W.input.completeEmojis();P=W.data.sendButton.buttonRenderer.serviceEndpoint;if(!P)return B.return();I=((x=_.Q(P,_.spz))==null?void 0:x.clientIdPrefix)||"";O={client_message_id:I+String(W.numSentMessages++),rich_message:_.$C(W.input.liveChatRichMessageInput)};
W.pendingMessageId=O.client_message_id;W.inReplyPanel&&(W.sendReplyMessageInFlight=!0);_.Iu(W.hostElement,[P,O]);W.input.setLiveChatRichMessageInput(null)}_.Kl(B)})};
_.J.handleSendButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),this.sendMessage())};
_.J.onSendCompleted=function(W,P){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(W=this.get("timeoutDurationUsec",P.data))&&this.handleTimeout(Number(W)/1E3);this.errorMessage=this.get("errorMessage",P.data);this.pendingMessageId=""};
_.J.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.W7(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.J.handlePickerButtonToggle=function(W){W=W.detail.targetId;this.ytPickerBehavior.togglePicker_(W);if(W==="emoji")this.input.focus();else if(W==="qna-start-panel"){var P,x;(P=_.g(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(x=P.querySelector("#qna-creator-text-input-field"))==null||x.focus()}};
_.J.onComponentReplaced=function(W){var P,x;W.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((P=W.replacement.liveChatMessageInputRenderer)==null?0:(x=P.headerRenderer)==null?0:x.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.J.onEmojiSelect=function(W){this.input.focus();this.input.insertEmoji(W.detail)};
_.J.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.J.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.W7(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.W7(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.J.onOpenPopupAction=function(W,P){var x=this;P===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.W7(x.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.J.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.J.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.J.focusChanged=function(){this.maybeToggleCharacterCount()};
_.J.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var W=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",W>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.J.computeId=function(){return this.data&&this.data.targetId||""};
_.J.computeSendDisabled=function(W,P,x,I){W=!!(this.blockSendMessageWithCountdown&&x||!W||P&&W>P||I);(P=_.g(this.hostElement).querySelector("#send-button"))&&P.children.length&&(P.children[0].disabled=W);return W};
_.J.handleTimeout=function(W){this.timeoutDurationMs=this.timeoutMs=W;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.J.updateTimeout=function(W){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(W-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=W,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.J.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.J.onErrorMessageEdit=function(W){this.input.setLiveChatRichMessageInput(W.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.J.errorMessageChanged=function(){var W=this;_.gY(function(){_.W7(W.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.J.computeAuthorNameColor=function(W){var P;if(_.p("live_chat_author_name_color_usernames")&&(W==null?0:(P=W.authorName)==null?0:P.simpleText))return _.QXR(_.CjW(W.authorName.simpleText));if(_.p("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.QXR(_.L_(W.authorSeedColorArgb));if(_.p("live_chat_colored_usernames"))return"#cc0000";var x;return _.p("live_chat_simple_color_usernames")&&(W==null?0:(x=W.authorName)==null?0:x.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.L_(W.authorUsernameColorDark):_.L_(W.authorUsernameColorLight):""};
_.J.onIsTooltipVisibleChanged=function(){var W=_.g(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){W.hidden=!1;W.setAttribute("role","alert")},0):(W.hidden=!0,W.removeAttribute("role"))};
_.J.onFocusedChanged=function(W){this.inputFocused=W.detail.value};
_.N1.Object.defineProperties(BD.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 W;return!((W=this.data)==null||!W.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:(P=W.pickers)==null?void 0:P.find(function(x){return x.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return W?this.ytRendererBehavior.getSimpleString(W):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
BD.prototype.onIsTooltipVisibleChanged=BD.prototype.onIsTooltipVisibleChanged;BD.prototype.errorMessageChanged=BD.prototype.errorMessageChanged;BD.prototype.onErrorMessageEdit=BD.prototype.onErrorMessageEdit;BD.prototype.onErrorMessageDismiss=BD.prototype.onErrorMessageDismiss;BD.prototype.focusChanged=BD.prototype.focusChanged;BD.prototype.characterCountChanged=BD.prototype.characterCountChanged;BD.prototype.onEmojiSelect=BD.prototype.onEmojiSelect;BD.prototype.handlePickerButtonToggle=BD.prototype.handlePickerButtonToggle;
BD.prototype.onSendError=BD.prototype.onSendError;BD.prototype.onSendCompleted=BD.prototype.onSendCompleted;BD.prototype.sendMessage=BD.prototype.sendMessage;BD.prototype.dataChanged=BD.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],BD.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(z7m.YtPickerBehavior),_.l("design:type",Object)],BD.prototype,"ytPickerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.E3.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],BD.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"hasFiredInitialFocusActions",void 0);
_.f([_.c(),_.l("design:type",Object)],BD.prototype,"isBeforeFocusEnabled",void 0);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"data",void 0);_.f([_.c({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",Object)],BD.prototype,"id",void 0);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"characterCount",void 0);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"maxCharacterLimit",void 0);
_.f([_.c(),_.l("design:type",Object)],BD.prototype,"remainingCharacterCount",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],BD.prototype,"inputExpanded",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],BD.prototype,"inputFocused",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],BD.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.f([_.c(),_.l("design:type",_.hJ)],BD.prototype,"participantsManager",void 0);
_.f([_.c(),_.l("design:type",Object)],BD.prototype,"buttonOverrides",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],BD.prototype,"inReplyPanel",void 0);_.f([_.H("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BD.prototype,"sendDisabled",null);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"countdownRatio",void 0);
_.f([_.H("countdownRatio"),_.l("design:type",Number),_.l("design:paramtypes",[])],BD.prototype,"countdownStrokeDashOffset",null);_.f([_.H("countdownRatio"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BD.prototype,"countdownActive",null);_.f([_.H("data.interactionMessage"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BD.prototype,"hasInteractionMessage",null);
_.f([_.H("data.emojiPickerButton"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BD.prototype,"hasEmojiPickerButton",null);_.f([_.H("data, characterCount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BD.prototype,"showAvatar",null);_.f([_.H("data.pickers"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BD.prototype,"hasProductPickerPanelViewModel",null);
_.f([_.c(),_.l("design:type",Object)],BD.prototype,"errorMessage",void 0);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"genericErrorMessage",void 0);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"isTooltipVisible",void 0);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"tooltipTimeout",void 0);_.f([_.H("data.onInitialFocusCommand"),_.l("design:type",String),_.l("design:paramtypes",[])],BD.prototype,"tooltipMessage",null);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],BD.prototype,"systemIcons",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],BD.prototype,"tallerEmojiPicker",void 0);_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],BD.prototype,"authorNameColor",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],BD.prototype,"blockSendMessageWithCountdown",void 0);_.f([_.c(),_.l("design:type",Object)],BD.prototype,"sendReplyMessageInFlight",void 0);
_.f([_.BM("#input"),_.l("design:type",_.$NZ)],BD.prototype,"input",void 0);_.f([_.BM("#count"),_.l("design:type",HTMLElement)],BD.prototype,"count",void 0);_.f([_.BM("#input-container"),_.l("design:type",HTMLElement)],BD.prototype,"inputContainer",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BD.prototype,"dataChanged",null);
_.f([_.I7("yt-live-chat-send-message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],BD.prototype,"sendMessage",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[Event,_.U4]),_.l("design:returntype")],BD.prototype,"onSendCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BD.prototype,"onSendError",null);
_.f([_.I7("yt-live-chat-icon-toggle-button-renderer-toggle"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BD.prototype,"handlePickerButtonToggle",null);_.f([_.I7("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BD.prototype,"onEmojiSelect",null);
_.f([_.OZ("characterCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BD.prototype,"characterCountChanged",null);_.f([_.OZ("inputFocused"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BD.prototype,"focusChanged",null);_.f([_.I7("yt-live-chat-error-message-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BD.prototype,"onErrorMessageDismiss",null);
_.f([_.I7("yt-live-chat-error-message-edit"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BD.prototype,"onErrorMessageEdit",null);_.f([_.OZ("errorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BD.prototype,"errorMessageChanged",null);_.f([_.OZ("isTooltipVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BD.prototype,"onIsTooltipVisibleChanged",null);
BD=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],BD);
_.X(BD,"yt-live-chat-message-input-renderer",function(){if(iS9===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;r$3===void 0&&(r$3=document.createElement("template"));var I=r$3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);iS9=W}W=iS9;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var G9v;var Ex9;var nu=function(){var W=_.b.apply(this,arguments)||this;W.systemIcons=_.p("kevlar_system_icons");W.firedOnClickCommand=!1;W.inReplyPanel=!1;return W};
_.A(nu,_.b);
nu.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"}}}};
nu.prototype.onButtonToggle=function(W){W.target.disabled||this.ytPickerBehavior.togglePicker_(W.detail.targetId)};
nu.prototype.onClick=function(){var W=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.W7(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return W.firedOnClickCommand=!1},5E3))};
_.N1.Object.defineProperties(nu.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:(P=W.panels)==null?void 0:P.find(function(x){return x.liveChatProductPickerPanelViewModel}))!==void 0}}});
nu.prototype.onButtonToggle=nu.prototype.onButtonToggle;_.f([_.h(z7m.YtPickerBehavior),_.l("design:type",Object)],nu.prototype,"ytPickerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nu.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],nu.prototype,"systemIcons",void 0);_.f([_.c({reflectToAttribute:!1}),_.l("design:type",Object)],nu.prototype,"firedOnClickCommand",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],nu.prototype,"inReplyPanel",void 0);_.f([_.H("data.pickers"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nu.prototype,"hasProductPickerPanelViewModel",null);
_.f([_.I7("yt-live-chat-icon-toggle-button-renderer-toggle"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],nu.prototype,"onButtonToggle",null);nu=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],nu);
_.X(nu,"yt-live-chat-restricted-participation-renderer",function(){if(Ex9===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;G9v===void 0&&(G9v=document.createElement("template"));var I=G9v;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Ex9=W}W=Ex9;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var YF=function(){var W=_.b.apply(this,arguments)||this;W.genericErrorMessage=_.bx("Error, try again.");W.inReplyPanel=!1;W.hideBorder=!1;return W};
_.A(YF,_.b);YF.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}}}}}};
_.N1.Object.defineProperties(YF,{template:{configurable:!0,enumerable:!0,get:function(){return X02()}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],YF.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],YF.prototype,"genericErrorMessage",void 0);_.f([_.c(),_.l("design:type",Object)],YF.prototype,"inReplyPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],YF.prototype,"hideBorder",void 0);
YF=_.f([_.jd({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],YF);_.X(YF,"yt-live-chat-engagement-panel-input-renderer",function(){return X02()},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var gx2,D9v;gx2=_.td(115994);D9v=_.td(115993);_.yp=function(W,P,x){var I=this;var O=x.dragDownAction;this.layer=0;this.JSC$19834_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return I.dragDownAction()}}}};
this.JSC$19834_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return I.dragDownAction()}}}};
this.fullscreen=!1;var B=_.YY();_.YP(B,gx2,this.layer);_.YP(B,D9v,this.layer);this.dragDownAction=function(){O();_.hd(B,{visualElement:I.fullscreen?gx2:D9v})};
this.gesture=new _.KG(W,P,this.JSC$19834_watchConfig,"pandown");this.attach()};
_.yp.prototype.attach=function(){this.gesture.attach()};
_.yp.prototype.detach=function(){this.gesture.detach()};
_.yp.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$19834_watchFullScreenConfig:this.JSC$19834_watchConfig};var MR2={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(W){if(W&&W.length==1&&Array.isArray(W[0].loggingUrls)){W=_.jU.unsafeClone(W[0]);var P=this.macros||{},x=this.getAdModuleClient_();if(!x)return _.Jn();W.loggingUrls.forEach(function(I){if(I.baseUrl){var O=I.baseUrl;var B=P;B=B===void 0?{}:B;O=x.getOptions().includes("replaceUrlMacros")?_.ITM(x,"replaceUrlMacros",{url:O,additionalMapping:B}):O;I.baseUrl=O}},this);
W=[W]}return _.Iu(this.hostElement,W)},
getAdModuleClient_:function(){var W=_.RP(this);return W?(W=W.getPlayer())?new _.or(W):null:null}}]};var $9f;var Ku=function(){var W=_.b.apply(this,arguments)||this;W.isCollapsed=!1;W.modernPanels=_.p("kevlar_watch_modern_panels");W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return W};
_.A(Ku,_.b);_.J=Ku.prototype;_.J.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.onDonateTap=function(){var W=this.get("data.donateButton.buttonRenderer.command");if(W){var P=_.E_(),x=this.get("data.donateButton.buttonRenderer.trackingParams");P&&x&&_.bB(P,_.ox(x));this.ytOpenPopupBehavior.openPopup(W)}};
_.J.onShowMore=function(){this.isCollapsed=!1;var W=_.E_(),P=this.get("data.expandButton.buttonRenderer.trackingParams");W&&P&&_.bB(W,_.ox(P))};
_.J.onShowLess=function(){this.isCollapsed=!0};
_.J.dataChanged=function(){_.qa(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.J.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.J.handleUpdate=function(W){if(W=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",W))this.set("data.startLabel",W.startLabel),this.set("data.endLabel",W.endLabel),this.set("data.progress",W.progress),this.set("data.amountRaisedLabel",W.amountRaisedLabel),this.dataChanged()};
_.J.handleOpenPopupAction=function(W){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",W)&&_.W7(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.J.computeHeaderBackgroundUrl=function(W,P){if(W)return P?W.headerBackgroundDarkUrl:W.headerBackgroundUrl};
_.J.isProgressBarVisible=function(W){return!(!W||W.progress===void 0)};
_.J.headerBackgroundClass=function(){return _.$$("HTML_DIR")==="rtl"?"flip":""};
Ku.prototype.dataChanged=Ku.prototype.dataChanged;_.f([_.h(_.xX.YtOpenPopupBehavior),_.l("design:type",Object)],Ku.prototype,"ytOpenPopupBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Ku.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Ku.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Ku.prototype,"isCollapsed",void 0);_.f([_.c({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.l("design:type",String)],Ku.prototype,"headerBackgroundUrl",void 0);_.f([_.c(),_.l("design:type",Boolean)],Ku.prototype,"isDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ku.prototype,"modernPanels",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ku.prototype,"dataChanged",null);Ku=_.f([_.U({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Ku);
_.X(Ku,"ytd-donation-shelf-renderer",function(){if($9f!==void 0)return $9f;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return $9f=W},{mode:1});var whm;var Z_=function(){return _.b.apply(this,arguments)||this};
_.A(Z_,_.b);_.f([_.c(),_.l("design:type",Object)],Z_.prototype,"data",void 0);Z_=_.f([_.U({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Z_);
_.X(Z_,"ytd-donation-unavailable-renderer",function(){if(whm!==void 0)return whm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return whm=W},{mode:1});var h74;var og=function(){return _.b.apply(this,arguments)||this};
_.A(og,_.b);og.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],og.prototype,"data",void 0);og=_.f([_.U({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],og);
_.X(og,"ytd-limited-state-message-renderer",function(){if(h74!==void 0)return h74;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return h74=W},{mode:1});var H1G;var S0=function(){return _.b.apply(this,arguments)||this};
_.A(S0,_.b);S0.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
S0.prototype.onTap=function(W){var P=this.data&&this.data.endpoint;P&&!_.Nx(_.c5(W),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Lf(this.hostElement,"yt-navigate",{endpoint:P})};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],S0.prototype,"data",void 0);S0=_.f([_.U({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],S0);
_.X(S0,"ytd-autotagging-metadata-renderer",function(){if(H1G!==void 0)return H1G;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return H1G=W},{mode:1});var e7d;var uM=function(){return _.b.apply(this,arguments)||this};
_.A(uM,_.b);uM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uM.prototype,"data",void 0);uM=_.f([_.U({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],uM);
_.X(uM,"ytd-autotagging-metadata-row-renderer",function(){if(e7d!==void 0)return e7d;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return e7d=W},{mode:1});var cUd;var aQO;var dX=function(){var W=_.b.apply(this,arguments)||this;W.engagementPanelContent=!1;return W};
_.A(dX,_.b);dX.prototype.computeHasDividerLine=function(W,P){return W&&!P};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.l("design:type",Boolean)],dX.prototype,"hasDividerLine",void 0);_.f([_.c(),_.l("design:type",Object)],dX.prototype,"engagementPanelContent",void 0);
dX=_.f([_.U({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],dX);
_.X(dX,"ytd-metadata-row-header-renderer",function(){if(aQO!==void 0)return aQO;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return aQO=W},{mode:1});var b1d;var sX=function(){return _.b.apply(this,arguments)||this};
_.A(sX,_.b);sX.prototype.computeHasDividerLine=function(W){return W};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.l("design:type",Boolean)],sX.prototype,"hasDividerLine",void 0);sX=_.f([_.U({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],sX);
_.X(sX,"ytd-metadata-row-renderer",function(){if(b1d!==void 0)return b1d;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return b1d=W},{mode:1});var k99;var vD=function(){return _.b.apply(this,arguments)||this};
_.A(vD,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vD.prototype,"data",void 0);vD=_.f([_.U({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],vD);
_.X(vD,"ytd-metadata-with-image-row-renderer",function(){if(k99!==void 0)return k99;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return k99=W},{mode:1});var U9O;var mv=function(){var W=_.b.apply(this,arguments)||this;W.rounded=!0;W.fixie=!1;W.fullWidth=!1;return W};
_.A(mv,_.b);_.J=mv.prototype;_.J.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onDataChanged=function(){var W=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(P){W.onEndpointLinkKeyPress(P)}))};
_.J.onEndpointLinkKeyPress=function(W){W.target===this.endpointLink&&W.keyCode===13&&_.Lf(this.hostElement,"click")};
_.J.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var W;if((W=this.data)==null?0:W.endpoint)_.OL(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.J.onYtNavigate=function(W){this.endpointHref||(W.stopPropagation(),W.preventDefault())};
_.J.onInformationButtonContainerClick=function(W){W.target.id!=="information-button-container"&&(W.stopPropagation(),W.preventDefault())};
_.J.computeStyle=function(W){return W};
_.J.computeIsThumbnailStyle=function(W){return W==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.J.computeThumbnailWidth=function(W){switch(W){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}};
_.J.computeThumbnailObjectFit=function(W){switch(W){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.N1.Object.defineProperties(mv.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
mv.prototype.onYtNavigate=mv.prototype.onYtNavigate;mv.prototype.onClick=mv.prototype.onClick;mv.prototype.onDataChanged=mv.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],mv.prototype,"componentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],mv.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],mv.prototype,"componentStyle",void 0);_.f([_.c({computed:"computeIsThumbnailStyle(data.style)"}),_.l("design:type",Boolean)],mv.prototype,"isThumbnailStyle",void 0);_.f([_.c({computed:"computeThumbnailObjectFit(data.style)"}),_.l("design:type",String)],mv.prototype,"thumbnailObjectFit",void 0);
_.f([_.c({computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],mv.prototype,"thumbnailWidth",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mv.prototype,"rounded",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mv.prototype,"fixie",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mv.prototype,"fullWidth",void 0);_.f([_.BM("#endpoint-link"),_.l("design:type",HTMLAnchorElement)],mv.prototype,"endpointLink",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mv.prototype,"onDataChanged",null);_.f([_.H("data.endpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],mv.prototype,"endpointHref",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],mv.prototype,"onClick",null);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],mv.prototype,"onYtNavigate",null);mv=_.f([_.U({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],mv);
_.X(mv,"ytd-rich-metadata-renderer",function(){if(U9O!==void 0)return U9O;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return U9O=W},{mode:_.F4("kevlar_poly_si_batch_j075")?1:2});var XhO;var Vp=function(){var W=_.b.apply(this,arguments)||this;W.fixie=!1;W.fullWidth=!1;return W};
_.A(Vp,_.b);Vp.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Vp.prototype.computeHasDividerLine=function(W){return W};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Vp.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.l("design:type",Boolean)],Vp.prototype,"hasDividerLine",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Vp.prototype,"fixie",void 0);_.f([_.c(),_.l("design:type",Object)],Vp.prototype,"fullWidth",void 0);
Vp=_.f([_.U({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Vp);
_.X(Vp,"ytd-rich-metadata-row-renderer",function(){if(XhO!==void 0)return XhO;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return XhO=W},{mode:1});var tK=function(){var W=_.b.apply(this,arguments)||this;W.engagementPanelContent=!1;W.fixie=!1;W.fullWidth=!1;return W};
_.A(tK,_.b);
tK.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"}}}};
tK.prototype.computeCollapsibleItems=function(W,P,x){return W===void 0||P===void 0||x===void 0||x?[]:W.slice(P)};
tK.prototype.computeAlwaysShownItems=function(W,P){return W&&W.length?W.slice(0,P):[]};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],tK.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],tK.prototype,"collapsed",void 0);
_.f([_.c({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.l("design:type",Array)],tK.prototype,"alwaysShownItems",void 0);_.f([_.c({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.l("design:type",Array)],tK.prototype,"collapsibleItems",void 0);_.f([_.c(),_.l("design:type",Object)],tK.prototype,"engagementPanelContent",void 0);_.f([_.c(),_.l("design:type",Object)],tK.prototype,"fixie",void 0);
_.f([_.c(),_.l("design:type",Object)],tK.prototype,"fullWidth",void 0);tK=_.f([_.U({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],tK);
_.X(tK,"ytd-metadata-row-container-renderer",function(){if(cUd!==void 0)return cUd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return cUd=W},{mode:1});var fQ6;var pu=function(){var W=_.b.apply(this,arguments)||this;W.currentPageUrl="";W.baseUrl="";W.isHiddenByUser=null;W.hidden=!1;W.showAboveScrim=!1;W.watchNextGrid=_.p("kevlar_watch_grid");W.modernButtons=_.p("web_modern_buttons");W.roundedContainer=!0;W.noBorder=!1;W.roundBackground=!_.p("live_chat_round_background_killswitch");W.overflowHideChat=_.p("live_chat_overflow_hide_chat");W.forceDarkTheme=!1;W.theaterWatchWhile=!1;W.isListeningForPlayerProgress=!1;W.JSC$19870_playerEvents=new Map;W.isFrameReady=
!1;W.player=null;W.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 W};
_.A(pu,_.b);_.J=pu.prototype;_.J.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.P7(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.J.created=function(){var W=this;this.handleIframeEventListener=function(P){W.handleIframeEvent(P)};
this.handleKeyboardEventListener=function(P){W.handleKeyboardEvent(P)};
this.JSC$19870_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19870_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19870_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19870_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19870_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.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()};
_.J.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};
_.J.computeBaseUrl=function(W){var P="/live_chat";this.isChatReplay()&&(P="/live_chat_replay");return _.x1(_.PL(_.WL(_.ea(W),P),null),"").toString()};
_.J.dataChanged=function(){_.p("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.J.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var W=this.url;if(this.isChatReplay()&&this.player){var P=Math.floor(this.player.getProgressState().current*1E3);W=_.aE(_.ea(W),"playerOffsetMs",P.toString()).toString()}P=this.chatframe;try{var x=W==="about:blank"?_.oWi:_.my(W),I=P.contentDocument.location,O=_.Q4(x);O!==void 0&&I.replace(O)}catch(B){P.src=W}}};
_.J.collapsedChanged=function(){_.Lf(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.J.handleIframeEvent=function(W){if(W&&this.baseUrl.startsWith(W.origin)&&W.source===this.chatframe.contentWindow&&_.Jw(W.data))if(W.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(W);else if(W.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(W.data["yt-show-feedback-dialog"]){var P=_.FY().resolve(_.Rl(_.TA3));if(P){var x=W.ports,I;x&&x.length&&(I=function(){x[0].postMessage({})});
W=W.data["yt-show-feedback-dialog"];P.showFeedbackDialog(W.customProductData,W.feedbackContent,I,W.bucket)}}else if(W.data["yt-show-survey"])_.Lf(this.hostElement,"yt-show-survey",W.data["yt-show-survey"]);else if(W.data["yt-purchase-membership"])_.FY().resolve(_.qR).resolveCommand(W.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(W.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(W.data["yt-tunnel-out-live-service-request"]);else if(W.data["yt-user-activity"])_.qt();
else if(W.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(W.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(W.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(W.data["yt-open-popup"]);else if(W.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(W.data["yt-log-flow-logging-event-command"]);else if(W.data["yt-hide-live-chat"])this.onShowHideChat();else W.data["yt-report-moderation-state-log"]&&
this.player&&(P={cpn:this.player.getVideoData().cpn},_.Ay("liveChatBeingModerated",P))};
_.J.attachLiveChatResponseVeTrackingParams=function(W){W=_.ox(W);var P=_.E_(),x=_.eL("liveChatRenderer.trackingParams",this.data);P&&x&&_.hn(P,_.ox(x),W)};
_.J.handleBuyflowMessages=function(W){var P=W.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,x=W.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,I=W.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.KbU(_.yV(_.e9),P.replace(/-/g,"+").replace(/_/g,"/"),function(O){W.ports[0].postMessage({success:!0,buyFlowResponse:O})},void 0,function(O){W.ports[0].postMessage({success:!1,
error:O&&O.message||"Buyflow rejected without error."})},_.SI().get("hl"),void 0,function(){W.ports[0].postMessage({closed:!0})},x,I)};
_.J.setupPlayerProgressRelay=function(){var W=this;if(!this.isListeningForPlayerProgress){var P=_.F_();P!=null&&P.getPlayerPromise&&(P.getPlayerPromise().then(function(x){W.playerApiReady(x)}),this.isListeningForPlayerProgress=!0)}};
_.J.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.J.playerApiReady=function(W){this.setPlayer(W)};
_.J.playerProgressHandler=function(){if(this.player){var W=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":W.current})}};
_.J.playerAdStartHandler=function(W){this.postToContentWindow({"yt-player-ad-start":W})};
_.J.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.J.playerStateChangeHandler=function(W){this.postToContentWindow({"yt-player-state-change":W})};
_.J.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19870_playerEvents);W&&(this.player=W,this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19870_playerEvents),_.Lf(this.hostElement,"player-api-ready"))};
_.J.liveChatPageUrl=function(W,P,x,I){return!x||P?"about:blank":x.liveChatRenderer?(P=_.ea(this.currentPageUrl).JSC$7933_queryData_,CQG(P),W=_.ea(W),P.add("continuation",x.liveChatRenderer.continuations[0].reloadContinuationData.continuation),x=_.gT()==="USER_INTERFACE_THEME_DARK",(I||x)&&P.add("dark_theme","true"),_.PL(W,P),I=_.ea(W.toString()),x=I.JSC$7933_queryData_,"SESSION_INDEX"in _.D$&&(x.add("authuser",_.$$("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.D$&&x.add("pageId",_.$$("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.D$&&x.add("sdc",_.$$("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),I.toString()):""};
_.J.isCollapsed=function(W,P){return P!==null?P:this.isChatReplay()||W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!0:W?W.liveChatRenderer?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.p("live_chat_hide_premiere_replay_message")||W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.J.isHidden=function(W,P,x){var I=P&&P.conversationBarRenderer&&P.conversationBarRenderer.availabilityMessage,O=P&&P.liveChatRenderer&&P.liveChatRenderer.showHideButton,B=P&&P.liveChatRenderer&&P.liveChatRenderer.showButton;return x&&W&&!I&&!B||!x&&W&&!I&&!O?!0:P&&P.liveChatRenderer&&P.liveChatRenderer.initialDisplayState?P.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.J.computeButtonOverride=function(W,P){if(W&&P)return{type:"outline"}};
_.J.setCollapsedState=function(W){_.Q(W,_.xCp)&&(this.isHiddenByUser=!!_.Q(W,_.xCp).collapsed,!this.isHiddenByUser&&_.p("enable_teaser_framework_web_client")&&_.W7(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.J.forwardReduxActionToIframe=function(W){this.postToContentWindow({"yt-live-chat-forward-redux-action":W})};
_.J.onLoopRangeChange=function(W){this.showAboveScrim=!(W==null||!W.postId)};
_.J.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.J.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.J.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.J.sendDarkThemePostMessage=function(W){this.postToContentWindow({"yt-live-chat-set-dark-theme":W})};
_.J.onLiveChatBuyFlowCallback=function(W){this.postToContentWindow({"yt-live-chat-buy-flow-callback":W})};
_.J.handleKeyboardEvent=function(W){(0,_.jU.containsValue)(QNG,W.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:W.type,keyCode:W.keyCode}})};
_.J.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.J.postToContentWindow=function(W){if(this.isFrameReady)try{var P=window.location.protocol+"//"+window.location.host,x;(x=this.chatframe)!=null&&x.contentWindow?this.chatframe.contentWindow.postMessage(W,P):_.ge(new _.mW("Tried posting a message to an iframe with no content window",W))}catch(I){_.G$(I)}};
_.J.shouldHideChatFrame=function(W){return W&&_.p("hide_live_chat_button_when_collapsed")};
_.N1.Object.defineProperties(pu.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.p("live_chat_overflow_hide_chat")||_.p("web_watch_chat_hide_button_killswitch"))return _.p("live_chat_overflow_hide_chat");var W,P,x,I;return!!((W=this.data)==null?0:(P=W.liveChatRenderer)==null?0:(x=P.header)==null?0:(I=x.liveChatHeaderRenderer)==null?0:I.collapseButton)}}});
pu.prototype.collapsedChanged=pu.prototype.collapsedChanged;pu.prototype.urlChanged=pu.prototype.urlChanged;pu.prototype.dataChanged=pu.prototype.dataChanged;pu.prototype.onShowHideChat=pu.prototype.onShowHideChat;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],pu.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],pu.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],pu.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.h(_.xX.YtOpenPopupBehavior),_.l("design:type",Object)],pu.prototype,"ytOpenPopupBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],pu.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],pu.prototype,"currentPageUrl",void 0);
_.f([_.c({computed:"computeBaseUrl(currentPageUrl,data)"}),_.l("design:type",Object)],pu.prototype,"baseUrl",void 0);_.f([_.c({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.l("design:type",String)],pu.prototype,"url",void 0);_.f([_.c(),_.l("design:type",Object)],pu.prototype,"isHiddenByUser",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.l("design:type",Object)],pu.prototype,"hidden",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.l("design:type",Boolean)],pu.prototype,"collapsed",void 0);_.f([_.c({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.l("design:type",Boolean)],pu.prototype,"hideChatFrame",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pu.prototype,"showAboveScrim",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pu.prototype,"watchNextGrid",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],pu.prototype,"modernButtons",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pu.prototype,"roundedContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pu.prototype,"noBorder",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],pu.prototype,"roundBackground",void 0);
_.f([_.c({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.l("design:type",Object)],pu.prototype,"toggleButtonOverride",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],pu.prototype,"overflowHideChat",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pu.prototype,"forceDarkTheme",void 0);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],pu.prototype,"enableShowWithoutHideChatButton",null);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],pu.prototype,"theaterWatchWhile",void 0);_.f([_.BM("#chatframe"),_.l("design:type",HTMLIFrameElement)],pu.prototype,"chatframe",void 0);_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pu.prototype,"onShowHideChat",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pu.prototype,"dataChanged",null);
_.f([_.OZ("url"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pu.prototype,"urlChanged",null);_.f([_.OZ("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pu.prototype,"collapsedChanged",null);pu=_.f([_.U({is:"ytd-live-chat-frame",disableElementRegistration:!0})],pu);
_.X(pu,"ytd-live-chat-frame",function(){if(fQ6!==void 0)return fQ6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return fQ6=W},{mode:1});var NFm;var j0=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};return W};
_.A(j0,_.b);j0.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=_.j9(this.data.backgroundColor)))};
j0.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var W=this.getFormattedStringLoggingDirectives(this.data.headline);W&&this.rendererBehavior.logExplicitClick(W)}};
j0.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var W=this.getFormattedStringLoggingDirectives(this.data.description);W&&this.rendererBehavior.logExplicitClick(W)}};
j0.prototype.getFormattedStringLoggingDirectives=function(W){return W&&W.runs&&W.runs.length>0&&W.runs[0]&&W.runs[0].loggingDirectives?W.runs[0].loggingDirectives:null};
j0.prototype.dataChanged=j0.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],j0.prototype,"rendererBehavior",void 0);_.f([_.h(MR2.YtMacroReplacementBehavior),_.l("design:type",Object)],j0.prototype,"macroReplacementBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],j0.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],j0.prototype,"navigationEndpoint",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],j0.prototype,"enableColors",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],j0.prototype,"modern",void 0);_.f([_.c(),_.l("design:type",Object)],j0.prototype,"buttonOverrides",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j0.prototype,"dataChanged",null);j0=_.f([_.U({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],j0);
_.X(j0,"ytd-action-basic-immersive-content-renderer",function(){if(NFm!==void 0)return NFm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return NFm=W},{mode:1});var lQ6;var TFM;var Qp=function(){return _.b.apply(this,arguments)||this};
_.A(Qp,_.b);Qp.prototype.dataChanged=function(){var W;((W=this.data)==null?void 0:W.backgroundColor)!==void 0&&_.qa(this.hostElement,{"--bgu-color":_.j9(this.data.backgroundColor)})};
Qp.prototype.onImageTileClick=function(){var W;((W=this.data)==null?0:W.navigationEndpoint)&&_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var P;((P=this.data)==null?0:P.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.N1.Object.defineProperties(Qp.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?void 0:W.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 W;return((W=this.data)==null?void 0:W.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var W,P,x;if(((W=this.data)==null?void 0:(P=W.detailsLine)==null?void 0:P.texts)!=null&&((x=this.data)==null?void 0:x.detailsLine.texts.length)>0){var I;return(I=this.data)==null?void 0:I.detailsLine.texts.map(function(O){return O.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var W,P,x;if(((W=this.data)==null?void 0:(P=W.optionalDetailsLine)==null?void 0:P.texts)!=null&&((x=this.data)==null?void 0:x.optionalDetailsLine.texts.length)>0){var I;return(I=this.data)==null?void 0:I.optionalDetailsLine.texts.map(function(O){return O.text}).join("")}return null}}});
Qp.prototype.dataChanged=Qp.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Qp.prototype,"rendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Qp.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Qp.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.backgroundColor"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"hasBackgroundColor",null);
_.f([_.H("data.objectFit"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qp.prototype,"getObjectFit",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.tileRenderingStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"hasTileMetadata",null);_.f([_.H("data.detailsLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qp.prototype,"getSecondaryDetails",null);
_.f([_.H("data.optionalDetailsLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qp.prototype,"getOptionalDetails",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qp.prototype,"dataChanged",null);Qp=_.f([_.U({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Qp);
_.X(Qp,"ytd-image-tile-renderer",function(){if(TFM!==void 0)return TFM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return TFM=W},{mode:1});var rU3;var Cu=function(){return _.b.apply(this,arguments)||this};
_.A(Cu,_.b);Cu.prototype.getOpenLinkIcon=function(){return _.p("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Cu.prototype.onSitelinkTap=function(){_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.p("kevlar_command_handler_migration_killswitch"))_.OL(this.hostElement,this.data.clickCommands,this.hostElement);else for(var W=_.n(this.data.clickCommands),P=W.next();!P.done;P=W.next())this.ytComponentBehavior.resolveCommand(P.value)};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Cu.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Cu.prototype,"rendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Cu.prototype,"data",void 0);Cu=_.f([_.U({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Cu);
_.X(Cu,"ytd-sitelink-renderer",function(){if(rU3!==void 0)return rU3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rU3=W},{mode:1});var AK=function(){var W=_.b.apply(this,arguments)||this;W.paddingFix=_.p("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.A(AK,_.b);AK.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"}}}};
AK.prototype.dataChanged=function(){var W=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(P){P.clickTrackingParams&&delete P.clickTrackingParams;W.ytMacroReplacementBehavior.sendServiceRequestAction([P])})};
AK.prototype.shouldHideFooter=function(W){return!(W&&_.p("use_ads_engagement_panel_desktop_footer_cta"))};
_.N1.Object.defineProperties(AK.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((P=this.data)==null?void 0:P.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(x){var I;return(I=_.Q(x,g06))==null?void 0:I.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((P=this.data)==null?void 0:P.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(x){var I;return((I=_.Q(x,g06))==null?void 0:I.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
AK.prototype.dataChanged=AK.prototype.dataChanged;_.f([_.h(MR2.YtMacroReplacementBehavior),_.l("design:type",Object)],AK.prototype,"ytMacroReplacementBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],AK.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],AK.prototype,"paddingFix",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.imageTileRenderers"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AK.prototype,"removeBorderFromImageTiles",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.imageTileRenderers"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AK.prototype,"useFooteredMetadataRenderingStyle",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AK.prototype,"dataChanged",null);AK=_.f([_.U({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],AK);
_.X(AK,"ytd-action-engagement-panel-content-renderer",function(){if(lQ6!==void 0)return lQ6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return lQ6=W},{mode:1});var i19;var R7m=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;W=_.fa();_.RS(W,function(){return P().interaction},x);
_.FL(W,{visibilityCallback:function(I){var O,B=(O=P().interaction)==null?void 0:O.onFirstVisible;I&&B&&_.D1(B)},
showOption:_.U$});return _.u("ad-grid-card-image-full-metadata-view-model",{class:function(){var I;return((I=P().interaction)==null?0:I.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:W,"aria-label":function(){var I,O;return(I=P().interaction)==null?void 0:(O=I.accessibility)==null?void 0:O.label}},_.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.u(_.Ea,{data:function(){return P().adImage}},{adImageViewModel:function(I){return _.u(_.xn,{data:I.data,
customCommandResolver:x})}})),_.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.u(_.V,{cond:function(){return P().headline},
then:function(I){return _.u(_.mQ,{text:I,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.u(_.V,{cond:function(){return P().detailsLine},
then:function(I){return _.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.u(_.Ea,{data:I},{adDetailsLineViewModel:function(O){return _.u(_.iW,{data:O.data,customCommandResolver:x,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.u(_.V,{cond:function(){return P().secondaryDetailsLine},
then:function(I){return _.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.u(_.Ea,{data:I},{adDetailsLineViewModel:function(O){return _.u(_.iW,{data:O.data,customCommandResolver:x,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ci");var F66=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;W=_.fa();_.RS(W,function(){return P().interaction},x);
_.FL(W,{visibilityCallback:function(I){var O,B=(O=P().interaction)==null?void 0:O.onFirstVisible;I&&B&&_.D1(B)},
showOption:_.U$});return _.u("ad-grid-card-image-view-model",{class:function(){var I;return((I=P().interaction)==null?0:I.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:W,"aria-label":function(){var I,O;return(I=P().interaction)==null?void 0:(O=I.accessibility)==null?void 0:O.label}},_.u(_.Ea,{data:function(){return P().adImage}},{adImageViewModel:function(I){return _.u(_.xn,{data:I.data,
customCommandResolver:x})}}),_.u("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.u(_.Ea,{data:function(){return P().adCardBadge}},{adCardBadgeViewModel:_.Ajd})))},"Di");var qqy=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;W=_.fa();_.RS(W,function(){return P().interaction},x);
_.FL(W,{visibilityCallback:function(I){var O,B=(O=P().interaction)==null?void 0:O.onFirstVisible;I&&B&&_.D1(B)},
showOption:_.U$});return _.u("ad-grid-card-text-view-model",{class:function(){var I;return((I=P().interaction)==null?0:I.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:W,"aria-label":function(){var I,O;return(I=P().interaction)==null?void 0:(O=I.accessibility)==null?void 0:O.label}},_.u("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.u(_.V,{cond:function(){return P().title},
then:function(I){return _.u(_.mQ,{text:I,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.u("div",{class:function(){return _.p("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.u(_.sV,{each:function(){var I;
return((I=P())==null?void 0:I.descriptions)||[]},
keyBy:"INDEX"},function(I){return _.u(_.mQ,{text:I,className:function(){return _.p("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.u("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.u(_.Ea,{data:function(){return P().moreInfoButton}},{adButtonViewModel:function(I){return _.u(_.fr,{data:I.data,
customCommandResolver:x})}})))},"Ei");var L6Q=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;var I=W.adGridCardCollectionStyle;W=_.fa();_.FL(W,{visibilityCallback:function(O){var B,Y=(B=P().interaction)==null?void 0:B.onFirstVisible;O&&Y&&_.D1(Y)},
showOption:_.U$});return _.u("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:W,style:function(){return"grid-template-columns: repeat("+XCO(I?I():P().style)+", minmax(0, 1fr));"}},_.u(_.Ea,{data:function(){var O;
return(O=P())==null?void 0:O.gridCards}},{adGridCardImageViewModel:function(O){return _.u(F66,{data:O.data,
customCommandResolver:x})},
adGridCardImageFullMetadataViewModel:function(O){return _.u(R7m,{data:O.data,customCommandResolver:x})},
adGridCardTextViewModel:function(O){return _.u(qqy,{data:O.data,customCommandResolver:x})}}))},"Fi");_.lq(_.kl(function(W){var P=W.data;W=_.fa();_.RS(W,function(){return P().interaction},f66);
_.FL(W,{visibilityCallback:function(x){var I,O=(I=P().interaction)==null?void 0:I.onFirstVisible;x&&O&&_.D1(O)},
showOption:_.U$});return _.u("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:W},_.u("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.u(_.V,{cond:_.NzS("(min-width: "+((0,_.EM)()+_.HE)+"px)"),then:function(){return _.u(_.Ea,{data:function(){return P().adGridCardCollection}},{adGridCardCollectionViewModel:function(x){return _.u(L6Q,{data:x.data,
customCommandResolver:f66})}})},
else:function(){return _.u(_.Ea,{data:function(){return P().adGridCardCollection}},{adGridCardCollectionViewModel:function(x){return _.u(L6Q,{data:x.data,
customCommandResolver:f66,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.u("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.u(_.Ea,{data:function(){return P().adButton}},{adButtonViewModel:function(x){return _.u(_.fr,{data:x.data,
customCommandResolver:f66})}})))},"Gi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;W=_.fa();_.RS(W,function(){return P().interaction},N2O);
_.FL(W,{visibilityCallback:function(x){var I,O=(I=P().interaction)==null?void 0:I.onFirstVisible;x&&O&&_.D1(O)},
showOption:_.U$});return _.u("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:W},_.u("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.u(_.Ea,{data:function(){if(_.NzS("(min-width: "+((0,_.EM)()+_.HE)+"px)")())var x=P().adGridCardCollection;else{x=Object.assign({},_.Q(P().adGridCardCollection,Dy9));var I;x.gridCards!==void 0&&((I=x.gridCards)==null?void 0:I.length)>1?x.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":x.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";x={adGridCardCollectionViewModel:x}}return x}},{adGridCardCollectionViewModel:function(x){return _.u(L6Q,{data:x.data,
customCommandResolver:N2O})}})),_.u("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.u(_.Ea,{data:function(){return P().adButton}},{adButtonViewModel:function(x){return _.u(_.fr,{data:x.data,
customCommandResolver:N2O})}})))},"Hi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.cv}});var z8=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return W};
_.A(z8,_.b);_.J=z8.prototype;_.J.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"}}}};
_.J.attached=function(){this.getDataFromPlayerAndRender()};
_.J.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.J.getDataFromPlayerAndRender=function(){var W=this,P=_.RP(this.hostElement);P&&P.getPlayerPromise().then(function(x){W.getCachedDataAndListen(x)})};
_.J.getCachedDataAndListen=function(W){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=W)};
_.J.resolveCachedActions=function(){var W=_.eL("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(W=W&&W())&&!_.jU.isEmpty(W)&&this.sendUpdateEngagementPanelAction(W);(W=(W=_.eL("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&W())&&!_.jU.isEmpty(W)&&this.sendChangeEngagementPanelVisibilityAction(W);(W=(W=_.eL("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&W())&&!_.jU.isEmpty(W)&&this.sendScrollToEngagementPanelCommand(W)};
_.J.sendUpdateEngagementPanelAction=function(W){var P;_.W7(this.hostElement,"yt-update-engagement-panel-action",[(P=_.jU.get(W,"action"))!=null?P:W])};
_.J.sendChangeEngagementPanelVisibilityAction=function(W){_.W7(this.hostElement,"yt-change-engagement-panel-visibility-action",[W])};
_.J.sendScrollToEngagementPanelCommand=function(W){_.W7(this.hostElement,"yt-scroll-to-engagement-panel-command",[W])};
_.J.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.p("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.ge(Error("gm"))};
z8.prototype.dataChanged=z8.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],z8.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],z8.prototype,"componentBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],z8.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],z8.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],z8.prototype,"player",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z8.prototype,"dataChanged",null);z8=_.f([_.U({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],z8);
_.X(z8,"ytd-ads-engagement-panel-content-renderer",function(){if(i19!==void 0)return i19;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return i19=W},{mode:1});var WbQ;var G8=function(){var W=_.b.apply(this,arguments)||this;W.player=null;W.JSC$19907_playerEvents=new Map;W.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return W};
_.A(G8,_.b);_.J=G8.prototype;_.J.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]]"}}}}}};
_.J.created=function(){this.player=null;this.JSC$19907_playerEvents=new Map;this.JSC$19907_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19907_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19907_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19907_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.attached=function(){var W=this,P=_.RP();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));P&&P.getPlayerPromise().then(function(x){W.setPlayer(x);W.set("isPageLoad",!1)})};
_.J.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19907_playerEvents);this.set("player",W);W&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19907_playerEvents),W.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.J.onLoopRangeChange=function(W){var P=_.FY().resolve(_.Rl(_.rL));if((!P||P.isOnWatch())&&this.hostElement.clientHeight){var x;!W&&((x=this.data)==null?0:x.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.J.onVideoProgress=function(W){var P,x,I=((P=this.player)==null?void 0:(x=P.getPresentingPlayerType)==null?void 0:x.call(P))===2;this.isAdPlaying!==I&&this.set("isAdPlaying",I);var O;if(!I&&(O=this.player)!=null&&O.getLoopRange()){x=this.player.getLoopRange();P=x.startTimeMs;x=x.endTimeMs;I=this.player.getProgressState(1).seekableStart;var B;P<I*1E3&&((B=this.data)==null?0:B.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
W=x<W*1E3;var Y;((Y=this.player)==null?0:Y.getLoopRange())&&W&&this.player.seekTo(P/1E3)}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onYtDeleteClipEngagementPanelCommand=function(W){_.Q(W,lof).command&&this.ytComponentBehavior.resolveCommand(_.Q(W,lof).command)};
_.N1.Object.defineProperties(G8.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.bx("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],G8.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],G8.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],G8.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],G8.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],G8.prototype,"isAdPlaying",void 0);_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],G8.prototype,"isPageLoad",void 0);_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],G8.prototype,"isDarkTheme",void 0);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],G8.prototype,"voteCount",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],G8.prototype,"channelEndpoint",null);_.f([_.H("channelEndpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],G8.prototype,"channelHref",null);G8=_.f([_.U({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],G8);
_.X(G8,"ytd-clip-attribution-renderer",function(){if(WbQ!==void 0)return WbQ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return WbQ=W},{mode:1});var PT3;var EX=function(){var W=_.b.apply(this,arguments)||this;W.player=null;W.JSC$19912_playerEvents=new Map;return W};
_.A(EX,_.b);_.J=EX.prototype;_.J.created=function(){this.player=null;this.JSC$19912_playerEvents=new Map;this.JSC$19912_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19912_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19912_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.J.attached=function(){var W=this,P=_.RP();P&&P.getPlayerPromise().then(function(x){W.setPlayer(x);W.set("isPageLoad",!1)})};
_.J.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19912_playerEvents);this.set("player",W);if(W){this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19912_playerEvents);var P;(W==null?void 0:(P=W.getPresentingPlayerType)==null?void 0:P.call(W))===2&&this.playerAdStartHandler()}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onVideoProgress=function(){var W,P,x=((W=this.player)==null?void 0:(P=W.getPresentingPlayerType)==null?void 0:P.call(W))===2;this.isAdPlaying!==x&&this.set("isAdPlaying",x)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],EX.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],EX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],EX.prototype,"isAdPlaying",void 0);
_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],EX.prototype,"isPageLoad",void 0);EX=_.f([_.U({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],EX);
_.X(EX,"ytd-clip-section-footer-renderer",function(){if(PT3!==void 0)return PT3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return PT3=W},{mode:1});var xP4;var Ird;var gX=function(){return _.b.apply(this,arguments)||this};
_.A(gX,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],gX.prototype,"data",void 0);gX=_.f([_.U({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],gX);
_.X(gX,"ytd-clip-ad-state-renderer",function(){if(Ird!==void 0)return Ird;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ird=W},{mode:1});var Ovf;var D_=function(){var W=_.b.apply(this,arguments)||this;W.value="";W.valid=!1;W.userChangedValue=!1;W.disabled=!1;W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return W};
_.A(D_,_.b);_.J=D_.prototype;_.J.detached=function(){this.userChangedValue=!1};
_.J.handleKeyDown=function(W){if(_.KW)var P=13;else _.Q5S&&_.Z2?P=13:P=13;W.keyCode===P&&W.preventDefault()};
_.J.handleInput=function(){var W=_.g(this.hostElement).querySelector("#title");if(W){var P=(W.value||"").replace(/\r|\n/g," ");this.set("value",P);W.value=P;this.valid=W.validate();this.userChangedValue=!0}};
_.J.handleBlur=function(){this.valid=_.g(this.hostElement).querySelector("#title").validate()};
_.J.onValueChanged=function(){_.Lf(this.hostElement,"title-changed",{title:this.value})};
_.J.onValidChanged=function(){_.Lf(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.J.setInput=function(W,P){var x=_.g(this.hostElement).querySelector("#title");x&&(x.value=W,this.handleInput(),P&&(x.invalid=!1,this.valid=!0))};
_.J.onClipCreationDisable=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable=function(){this.set("disabled",!1)};
_.J.onClipCreationVisibilityChange=function(W){var P=this;W.visible?requestAnimationFrame(function(){var x;((x=_.g(P.hostElement).querySelector("#title"))==null?void 0:x.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
D_.prototype.onValidChanged=D_.prototype.onValidChanged;D_.prototype.onValueChanged=D_.prototype.onValueChanged;D_.prototype.handleBlur=D_.prototype.handleBlur;D_.prototype.handleInput=D_.prototype.handleInput;D_.prototype.handleKeyDown=D_.prototype.handleKeyDown;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],D_.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],D_.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],D_.prototype,"value",void 0);_.f([_.c(),_.l("design:type",Object)],D_.prototype,"valid",void 0);_.f([_.c(),_.l("design:type",Object)],D_.prototype,"userChangedValue",void 0);_.f([_.c(),_.l("design:type",Object)],D_.prototype,"disabled",void 0);_.f([_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],D_.prototype,"handleKeyDown",null);
_.f([_.I7("input"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D_.prototype,"handleInput",null);_.f([_.I7("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D_.prototype,"handleBlur",null);_.f([_.OZ("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D_.prototype,"onValueChanged",null);
_.f([_.OZ("valid"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D_.prototype,"onValidChanged",null);D_=_.f([_.U({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],D_);
_.X(D_,"ytd-clip-creation-text-input-renderer",function(){if(Ovf!==void 0)return Ovf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ovf=W},{mode:1});var JPQ;var BRL;var nhm;var Ypv;var yPf;var Mu=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};W.pendingStoryboardImages_={};W.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];W.tickLabelInterval=30;W.mediumTickInterval=5;W.largeTickInterval=15;W.aboveRulerHeight=32;W.rulerHeight=50;W.smallTickHeight=4;W.mediumTickHeight=8;W.largeTickHeight=16;W.mediaListeners_=
{};return W};
_.A(Mu,_.b);_.J=Mu.prototype;_.J.attached=function(){var W=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(P){P=_.n(["screen and (min-resolution: "+P+")","screen and (max-resolution: "+P+")"]);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=window.matchMedia(x);I&&(W.mediaListeners_[x]=W.updatePixelRatio_.bind(W),I.addEventListener?I.addEventListener("change",W.mediaListeners_[x]):I.addListener?I.addListener(W.mediaListeners_[x]):delete W.mediaListeners_[x])}})};
_.J.detached=function(){this.setPlayer(null);for(var W=_.n(Object.keys(this.mediaListeners_)),P=W.next();!P.done;P=W.next()){var x=P.value;P=this.mediaListeners_[x];(x=window.matchMedia(x))&&(x.removeEventListener?x.removeEventListener("change",P):x.removeListener&&x.removeListener(P))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.J.onVisibilityChangedAction_=function(W){var P=this;W.visible&&!this.player_&&(W=_.RP())&&W.getPlayerPromise().then(function(x){P.setPlayer(x)})};
_.J.setPlayer=function(W){W&&this.set("player_",W)};
_.J.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.J.setUpCanvas_=function(){var W=this.rulerWidth,P=this.devicePixelRatio_,x=this.visible;this.set("canvasReady_",!1);if(x&&P!==0){x=this.aboveRulerHeight+this.rulerHeight;var I=_.g(this.hostElement).querySelector("#ticks");I.width=W*P;I.height=x*P;I.style.width=W+"px";I.style.height=x+"px";I.getContext("2d").scale(P,P);this.set("canvasReady_",!0)}};
_.J.drawRuler_=function(W,P,x,I,O,B,Y,K,Z,d,v,m){W&&x&&P&&(W=_.g(this.hostElement).querySelector("#ticks"),P=W.getContext("2d"),P.clearRect(0,0,W.width,W.height),P.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),P.lineWidth=2,P.beginPath(),P.moveTo(0,this.aboveRulerHeight),P.lineTo(W.width,this.aboveRulerHeight),P.moveTo(0,W.height),P.lineTo(W.width,W.height),P.stroke(),this.drawRulerTicks_(W,B,O,I),this.drawStoryboardImages_(W,x,B,O,I),P.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
P.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Y-B,I,!1),this.rulerHeight),x=this.timeToPixels_(K-B,I,!1),P.fillRect(x,this.aboveRulerHeight,W.width-x,this.rulerHeight),this.drawSpeedLines_(W,B,m))};
_.J.drawRulerTicks_=function(W,P,x,I){var O=W.getContext("2d");O.save();O.lineWidth=1;for(var B=Math.floor(Math.max(0,P-this.tickLabelInterval));B<P+x;B++){O.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Y=(B-P)*I;O.beginPath();O.moveTo(Y,W.height);var K=this.smallTickHeight;B%this.largeTickInterval===0?K=this.largeTickHeight:B%this.mediumTickInterval===0&&(K=this.mediumTickHeight);O.lineTo(Y,W.height-K);O.stroke();B%this.tickLabelInterval===0&&(O.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),O.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),O.fillText(Gg(B),Y+4,12),O.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),O.moveTo(Y,0),O.lineTo(Y,this.aboveRulerHeight),O.stroke())}O.restore()};
_.J.percentToHex_=function(W){W=Math.round(W*255).toString(16);W.length<2&&(W="0"+W);return W};
_.J.drawSpeedLines_=function(W,P,x){var I=W.getContext("2d");I.save();var O=Math.min(25,Math.abs(x)-15)/25,B=W.width*.3*O,Y=W.width*-.3,K=W.width*1.3,Z=this.aboveRulerHeight;W=W.height;var d=Math.round(4*O),v=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");v.length<7&&(v="#"+v.substring(1,4).repeat(2));var m=this.percentToHex_(.5+O/2);m=v+m;v+="00";if(O>0)for(O=0;O<d;O++){var t=Y+Math.random()*(K-Y),C=Z+Math.random()*(W-Z),z=B+P%B,D=I.createLinearGradient(t,C,t+z,C);
x<0?(D.addColorStop(0,m),D.addColorStop(.4,m),D.addColorStop(.9,v)):(D.addColorStop(.1,v),D.addColorStop(.6,m),D.addColorStop(1,m));I.strokeStyle=D;I.lineWidth=1;I.beginPath();I.moveTo(t,C);I.lineTo(t+z,C);I.stroke()}I.restore()};
_.J.getStoryboardForTime_=function(W,P,x){x===void 0&&(x=P.getNumberOfStoryboardLevels()-1);W=P.getStoryboardFrameIndex(W,x);return P.getStoryboardFrame(W,x)};
_.J.drawStoryboardImages_=function(W,P,x,I,O){if(!this.disabled){W=W.getContext("2d");var B=this.getStoryboardForTime_(0,P);if(B){var Y=B.width/B.columns;B=B.height/B.rows;var K=Y/B,Z=this.rulerHeight*K;Z=this.tickLabelInterval*(K<this.tickLabelInterval*O/this.rulerHeight?1/Math.floor(this.tickLabelInterval*O/Z):Math.round(Z/(this.tickLabelInterval*O)));var d=Z*O,v=this.rulerHeight,m=d/this.rulerHeight,t=Math.floor(Math.max(0,x-Z));for(t-=t%Z;t<x+I;t+=Z){var C=this.getStoryboardForTime_(t,P),z=this.getPreloadedStoryboard_(C.url);
if(z){var D=(t-x)*O,w=this.aboveRulerHeight,a=C.column*Y,k=C.row*B;if(K<m){var T=v/(d/K);C=Y;T*=B;k+=(B-T)/2}else C=d/(v*K)*Y,T=B,a+=(Y-C)/2;W.drawImage(z,a,k,C,T,D,w,d,v)}else this.fetchStoryboardImage_(C)}}}};
_.J.getPreloadedStoryboard_=function(W){return this.storyboardImages_.find(function(P){if(P.src==W)return!0;var x=P.src.indexOf(W);return x!=-1&&x==P.src.length-W.length})};
_.J.fetchStoryboardImage_=function(W){var P=this,x=this.getPreloadedStoryboard_(W.url),I=this.pendingStoryboardImages_[W.url];x||I!==void 0||(x=new Promise(function(O){var B=new Image(W.width,W.height);B.src=W.url;B.onload=function(){O(B)};
B.onerror=function(){O(null)}}),this.pendingStoryboardImages_[W.url]=x,x.then(function(O){O&&P.push("storyboardImages_",O);
return O}).finally(function(){delete P.pendingStoryboardImages_[W.url]}))};
_.J.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.J.timeToPixels_=function(W,P,x){W*=P;return x===void 0||x?W+"px":W};
_.J.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Mu.prototype.drawRuler_=Mu.prototype.drawRuler_;Mu.prototype.setUpCanvas_=Mu.prototype.setUpCanvas_;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Mu.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],Mu.prototype,"start",void 0);_.f([_.c({value:30}),_.l("design:type",Number)],Mu.prototype,"end",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],Mu.prototype,"visible",void 0);_.f([_.c(),_.l("design:type",Object)],Mu.prototype,"player_",void 0);_.f([_.c(),_.l("design:type",Number)],Mu.prototype,"tickSpacing",void 0);_.f([_.c(),_.l("design:type",Number)],Mu.prototype,"windowSizeSec",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],Mu.prototype,"rulerWidth",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],Mu.prototype,"rulerShift",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],Mu.prototype,"canvasReady_",void 0);_.f([_.c({value:function(){return[]}}),
_.l("design:type",Array)],Mu.prototype,"storyboardImages_",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Mu.prototype,"disabled",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],Mu.prototype,"forceRender_",void 0);_.f([_.c({value:1}),_.l("design:type",Number)],Mu.prototype,"devicePixelRatio_",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],Mu.prototype,"windowSpeed",void 0);
_.f([_.OZ("visible","devicePixelRatio_","rulerWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mu.prototype,"setUpCanvas_",null);
_.f([_.OZ("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.l("design:returntype")],Mu.prototype,"drawRuler_",null);Mu=_.f([_.jd({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Mu);
_.X(Mu,"yt-clip-creation-scrubber-canvas",function(){if(yPf===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);yPf=W}W=yPf;return W},
{mode:2});var Kbv;var Zv6;var $F=function(){var W=_.b.apply(this,arguments)||this;W.start=0;W.end=30;W.visible=!1;W.draggingLeft_=!1;W.draggingRight_=!1;W.draggingRuler_=!1;W.draggingWindow_=!1;W.seekableStart=0;W.seekableEnd=0;W.rulerWidth_=0;W.rulerShift_=0;W.windowSlideSpeed=0;W.disabled=!1;W.initialized=!1;W.durationAccessibilityLabel="";W.activeLoopRange_=!1;W.rulerDragMouseStart_=0;W.rulerDragRulerStart_=0;W.rulerDragStartTime_=0;W.rulerDragEndTime_=0;W.dragMouseLastX_=0;W.scrollInterval_=null;W.scrubberVe_=null;W.boundHandlers_=
{};W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.A($F,_.b);_.J=$F.prototype;
_.J.created=function(){var W=this;this.JSC$19925_playerEvents=new Map;this.JSC$19925_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19925_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19925_playerEvents.set("onStateChange",this.onStateChange_);var P={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(P).forEach(function(x){W.boundHandlers_[x]=P[x].bind(W)})};
_.J.attached=function(){this.activeLoopRange_=!1;_.g(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.g(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.td(156731)};
_.J.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.g(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.g(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.J.onVisibilityChangedAction_=function(W){var P=this;W.visible&&!this.player_&&(W=_.RP())&&W.getPlayerPromise().then(function(x){P.setPlayer(x)})};
_.J.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19925_playerEvents);W&&(this.set("player_",W),this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19925_playerEvents))};
_.J.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.beginHandleDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=W.clientX,W.target===_.g(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():W.target===_.g(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.J.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.J.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.J.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.J.beginRulerDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=W.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.J.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.J.beginWindowScroll_=function(){var W=this;this.scrollInterval_=setInterval(function(){var P=W.windowSlideSpeed;if(P=_.yjf(W.start,W.boundedRulerStartLimit_())?P-.1:_.yjf(W.end,W.boundedRulerEndLimit_())?P+.1:0){var x=W.capRulerOffset_(W.rulerShift_+P);x==W.rulerShift_?P=0:(W.set("rulerShift_",x),_.Lf(W.hostElement,"set-fixed-length-range",{start:W.start+P,duration:W.end-W.start}))}W.set("windowSlideSpeed",P)},33)};
_.J.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.J.endDrag_=function(){this.logClick();var W=void 0;this.draggingRight_?W=this.end-1:this.draggingLeft_&&(W=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,W);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))};
_.J.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.J.updateRulerSize_=function(){this.set("rulerWidth_",_.g(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.J.handleMouseDrag_=function(W){W.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(W):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(W):this.draggingWindow_&&this.handleWindowDrag_(W))};
_.J.handleRulerDrag_=function(W){W=this.pixelsToTime_(W.clientX-this.rulerDragMouseStart_);W=this.capRulerOffset_(this.rulerDragRulerStart_-W);this.set("rulerShift_",W);var P=this.rulerDragStartTime_-(this.rulerDragRulerStart_-W);_.Lf(this.hostElement,"set-fixed-length-range",{start:P,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-W)-P})};
_.J.handleWindowDrag_=function(W){var P=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(P);_.Lf(this.hostElement,"set-fixed-length-range",{start:this.start+W,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.capRulerOffset_=function(W){var P=this.seekableStart-this.pixelsToTime_(16),x=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(P,W),x)};
_.J.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.J.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.J.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.J.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.J.handleWindowHandleDrag_=function(W){var P=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(P);if(this.draggingLeft_){var x=this.start+W;var I=this.end}else this.draggingRight_&&(x=this.start,I=this.end+W);_.Lf(this.hostElement,"set-range",{start:x,end:I,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.onVideoProgress_=function(W){this.disabled||(W=this.timeToPixels_(W-this.rulerShift_,this.tickSpacing_),_.g(this.hostElement).querySelector("#playhead").style.transform="translateX("+W+")")};
_.J.onClipCreationDisable_=function(){this.endDrag_()};
_.J.timeToPixels_=function(W,P,x){W*=P;return x===void 0||x?W+"px":W};
_.J.pixelsToTime_=function(W){return W/this.tickSpacing_};
_.J.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.centerRuler_=function(W,P,x){this.set("rulerShift_",this.capRulerOffset_(W+(P-W)/2-x/2))};
_.J.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.J.updateLoopRange_=function(W,P,x,I,O,B,Y){W&&(P&&I&&!x?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(W.pauseVideo(),W.seekTo(O,!1,void 0,void 0,50)):this.draggingRight_?(W.pauseVideo(),W.seekTo(B-.1,!1,void 0,void 0,50)):(Y!==void 0?W.seekTo(Y,!0,void 0,void 0,50):(P=W.getCurrentTime(),P<O||P>B?W.seekTo(O,!0,void 0,void 0,50):W.seekTo(P,!0,void 0,void 0,50)),W.playVideo()),W.setLoopRange({startTimeMs:O*1E3,endTimeMs:B*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(W.getCurrentTime())):
this.activeLoopRange_&&(W.setLoopRange(null),this.activeLoopRange_=!1))};
_.J.updateHandles_=function(){_.g(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.g(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.J.updateRuler_=function(){var W=this.end,P=this.start,x=this.draggableStartLimit_(),I=this.draggableEndLimit_();(P<x-.001||W>I+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.computeDurationLabel_=function(W,P){return W?W.replace("$clip_length",parseFloat(P).toFixed(1)):""};
_.J.computeDuration_=function(W,P){return this.isValidTime_(W)&&this.isValidTime_(P)&&W<P?P-W:0};
_.J.isValidTime_=function(W){return isNaN(parseFloat(W))||W<0?!1:this.player_?W>=this.seekableStart&&W<=this.seekableEnd:!0};
_.J.computeWindowSizeSec_=function(W,P,x){return Math.min((W||12E4)/1E3,x-P)};
_.J.computeTickSpacing_=function(W,P){return P?P/W:1};
_.J.onDragStateChanged_=function(){_.Lf(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.J.centerRangeOnTime_=function(W){var P=this.duration;W=T2M(W-P/2,P,this.seekableStart,this.seekableEnd);_.Lf(this.hostElement,"set-fixed-length-range",{start:W.start,duration:W.end-W.start})};
_.J.nearlyLessThan_=function(W,P,x){return W+(x===void 0?1E-6:x)<P};
_.J.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var W=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(W,this.start)||this.nearlyLessThan_(this.end,W))&&this.centerRangeOnTime_(W)}};
_.J.onStateChange_=function(W){this.visible&&!this.disabled&&W==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.J.computeDragState_=function(W,P,x,I){return W?"left":P?"right":x?"ruler":I?"window":"none"};
_.J.logClick=function(){var W=_.E_(),P=_.G7();W&&P&&this.scrubberVe_&&(_.p("combine_ve_grafts")?_.BK(_.YY(),this.scrubberVe_,P):_.hn(W,P,this.scrubberVe_),_.bB(W,this.scrubberVe_))};
$F.prototype.onDragStateChanged_=$F.prototype.onDragStateChanged_;$F.prototype.updateRuler_=$F.prototype.updateRuler_;$F.prototype.updateHandles_=$F.prototype.updateHandles_;$F.prototype.onUpdateLoopRange=$F.prototype.onUpdateLoopRange;$F.prototype.onInitializedChanged_=$F.prototype.onInitializedChanged_;$F.prototype.onVisibleChanged_=$F.prototype.onVisibleChanged_;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],$F.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",Object)],$F.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"start",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"end",void 0);_.f([_.c({computed:"computeDuration_(start, end)"}),_.l("design:type",Number)],$F.prototype,"duration",void 0);
_.f([_.c(),_.l("design:type",String)],$F.prototype,"lengthTemplate",void 0);_.f([_.c({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.l("design:type",String)],$F.prototype,"durationLabel",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"visible",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"player_",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"draggingLeft_",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"draggingRight_",void 0);
_.f([_.c(),_.l("design:type",Object)],$F.prototype,"draggingRuler_",void 0);_.f([_.c({value:!1}),_.l("design:type",Object)],$F.prototype,"draggingWindow_",void 0);_.f([_.c({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.l("design:type",Number)],$F.prototype,"tickSpacing_",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"seekableStart",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"seekableEnd",void 0);
_.f([_.c(),_.l("design:type",Number)],$F.prototype,"windowSizeMs",void 0);_.f([_.c({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.l("design:type",Number)],$F.prototype,"windowSizeSec_",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"rulerWidth_",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"rulerShift_",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"windowSlideSpeed",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$F.prototype,"disabled",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"initialized",void 0);_.f([_.c(),_.l("design:type",Object)],$F.prototype,"durationAccessibilityLabel",void 0);_.f([_.c({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.l("design:type",String)],$F.prototype,"dragState",void 0);
_.f([_.OZ("visible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$F.prototype,"onVisibleChanged_",null);_.f([_.OZ("initialized"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$F.prototype,"onInitializedChanged_",null);_.f([_.OZ("player_","visible","disabled","initialized","start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$F.prototype,"onUpdateLoopRange",null);
_.f([_.OZ("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$F.prototype,"updateHandles_",null);_.f([_.OZ("start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$F.prototype,"updateRuler_",null);
_.f([_.OZ("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$F.prototype,"onDragStateChanged_",null);$F=_.f([_.jd({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],$F);
_.X($F,"yt-clip-creation-scrubber-view",function(){if(Zv6===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Kbv===void 0&&(Kbv=document.createElement("template"));var I=Kbv;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Zv6=W}W=Zv6;return W},{mode:2});var wX=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};W.startHighlightTimeout=0;W.endHighlightTimeout=0;return W};
_.A(wX,_.b);_.J=wX.prototype;_.J.attached=function(){var W=this;this.startInput.addEventListener("input",function(P){return W.handleStartInput_(P)});
this.endInput.addEventListener("input",function(P){return W.handleEndInput_(P)});
this.startInput.addEventListener("focusout",function(P){return W.handleStartBlur_(P)});
this.endInput.addEventListener("focusout",function(P){return W.handleEndBlur_(P)})};
_.J.setPlayer=function(W){this.set("player_",W)};
_.J.onSetFixedLengthRange_=function(W){var P=W.detail;W=P.start;var x=P.duration,I=P.startLimit;P=P.endLimit;I||(I=this.seekableStart_);P||(P=this.seekableEnd_);W=T2M(W,x,I,P);this.start=W.start;this.end=W.end};
_.J.onSetRange_=function(W){var P=W.detail;W=P.start;var x=P.end,I=P.startLimit;P=P.endLimit;I||(I=this.seekableStart_);P||(P=this.seekableEnd_);if(W=r44(W,x,I,P,this.minLengthSec,this.maxLengthSec))this.start=W.start,this.end=W.end};
_.J.updateInputs_=function(){var W=this.end,P=this.start;this.startInput.focused||(this.startInput.value=Gg(P,!0));this.endInput.focused||(this.endInput.value=Gg(W,!0))};
_.J.handleStartInput_=function(W){W=l6G(W.target.value);if(W===null)this.set("startValid",!1);else{var P=this.end,x=r44(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);x?(this.set("endWillUpdate",x.end!==P),this.set("startValid",x.start===W)):this.set("startValid",!1)}};
_.J.handleEndInput_=function(W){W=l6G(W.target.value);if(W===null)this.set("endValid",!1);else{var P=this.start,x=ii3(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);x?(this.set("startWillUpdate",x.start!==P),this.set("endValid",x.end===W)):this.set("endValid",!1)}};
_.J.handleStartBlur_=function(W){W=l6G(W.target.value);W===null?this.startInput.value=Gg(this.start,!0):this.forceUpdateInputs_(r44(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.handleEndBlur_=function(W){W=l6G(W.target.value);W===null?this.endInput.value=Gg(this.end,!0):this.forceUpdateInputs_(ii3(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.forceUpdateInputs_=function(W){W&&(this.start=W.start,this.end=W.end);this.startInput.value=Gg(this.start,!0);this.endInput.value=Gg(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.J.initializeClipRange_=function(){var W=this.seekableEnd_,P=this.seekableStart_,x=this.visible_,I=this.player_;if(!I||!x||P===null||!W)this.set("initialized",!1);else if(!this.initialized){var O=I.getCurrentTime(),B=this.getDefaultLengthSec_();x=I.getVideoData();var Y=I.getPlayerState()==1,K=x.isLive;B=Math.min(B,W-P);O=Math.max(0,O);W=K?ii3(O-B,O,P,W,this.minLengthSec,this.maxLengthSec):Y?T2M(O-B/2,B,P,W):T2M(O,B,P,W);this.start=W.start;this.end=W.end;this.set("initialized",!0);x.isLive&&I.seekTo(W.start);
this.startInput.value=Gg(this.start,!0);this.endInput.value=Gg(this.end,!0)}};
_.J.onStartChanged_=function(){var W=this;_.Lf(this.hostElement,"start-changed",{start:this.start});var P;isNaN((P=this.oldStart)!=null?P:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){W.set("highlightStart",!1);W.startHighlightTimeout=0;W.oldStart=W.start},3E3))};
_.J.onEndChanged_=function(){var W=this;_.Lf(this.hostElement,"end-changed",{end:this.end});var P;isNaN((P=this.oldEnd)!=null?P:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){W.set("highlightEnd",!1);W.endHighlightTimeout=0;W.oldEnd=W.end},3E3))};
_.J.onVisibilityChangedAction_=function(W){var P=this;this.set("visible_",W.visible);this.visible_&&!this.player_&&(W=_.RP())&&W.getPlayerPromise().then(function(x){P.setPlayer(x)})};
_.J.computeMinLengthSec_=function(W){return W/1E3||5};
_.J.computeMaxLengthSec_=function(W){return W/1E3||60};
_.J.computeDefaultLengthSec_=function(W){return W/1E3};
_.J.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.J.computeSeekableStart_=function(W,P){return W&&P?W.getProgressState(1).seekableStart:0};
_.J.computeSeekableEnd_=function(W,P){return W&&P?W.getProgressState(1).seekableEnd:0};
_.J.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.J.onDragState_=function(W){this.set("highlightStart",W.detail.startChanging);this.set("highlightEnd",W.detail.endChanging)};
wX.prototype.onDragState_=wX.prototype.onDragState_;wX.prototype.onEndChanged_=wX.prototype.onEndChanged_;wX.prototype.onStartChanged_=wX.prototype.onStartChanged_;wX.prototype.initializeClipRange_=wX.prototype.initializeClipRange_;wX.prototype.updateInputs_=wX.prototype.updateInputs_;wX.prototype.onSetRange_=wX.prototype.onSetRange_;wX.prototype.onSetFixedLengthRange_=wX.prototype.onSetFixedLengthRange_;
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],wX.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wX.prototype,"data",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],wX.prototype,"start",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],wX.prototype,"startValid",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],wX.prototype,"startWillUpdate",void 0);_.f([_.c({value:30}),_.l("design:type",Number)],wX.prototype,"end",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],wX.prototype,"endValid",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],wX.prototype,"endWillUpdate",void 0);_.f([_.c({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.l("design:type",Number)],wX.prototype,"minLengthSec",void 0);
_.f([_.c({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.l("design:type",Number)],wX.prototype,"maxLengthSec",void 0);_.f([_.c({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.l("design:type",Number)],wX.prototype,"defaultLengthSec",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],wX.prototype,"visible_",void 0);_.f([_.c(),_.l("design:type",Object)],wX.prototype,"player_",void 0);
_.f([_.c({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.l("design:type",Number)],wX.prototype,"seekableStart_",void 0);_.f([_.c({computed:"computeSeekableEnd_(player_, visible_)"}),_.l("design:type",Number)],wX.prototype,"seekableEnd_",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],wX.prototype,"initialized",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],wX.prototype,"disabled",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],wX.prototype,"highlightStart",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],wX.prototype,"highlightEnd",void 0);_.f([_.BM("#start"),_.l("design:type",HTMLInputElement)],wX.prototype,"startInput",void 0);_.f([_.BM("#end"),_.l("design:type",HTMLInputElement)],wX.prototype,"endInput",void 0);
_.f([_.I7("set-fixed-length-range"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],wX.prototype,"onSetFixedLengthRange_",null);_.f([_.I7("set-range"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],wX.prototype,"onSetRange_",null);_.f([_.OZ("start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wX.prototype,"updateInputs_",null);
_.f([_.OZ("player_","visible_","seekableStart_","seekableEnd_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wX.prototype,"initializeClipRange_",null);_.f([_.OZ("start"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wX.prototype,"onStartChanged_",null);_.f([_.OZ("end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wX.prototype,"onEndChanged_",null);
_.f([_.I7("clips-drag-state"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],wX.prototype,"onDragState_",null);wX=_.f([_.jd({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],wX);
_.X(wX,"yt-clip-creation-scrubber-renderer",function(){if(Ypv===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;nhm===void 0&&(nhm=document.createElement("template"));var I=nhm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Ypv=W}W=Ypv;return W},{mode:2});var hK=function(){var W=_.b.apply(this,arguments)||this;W.player_=null;W.JSC$19939_playerEvents=new Map;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.A(hK,_.b);_.J=hK.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$19939_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19939_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19939_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19939_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.J.detached=function(){this.setPlayer(null)};
_.J.onVisibilityChangedAction_=function(W){var P=this,x;if((x=this.data)==null?0:x.externalVideoId){var I;this.videoId=(I=this.data)==null?void 0:I.externalVideoId}this.getPlayer().then(function(O){if(W.visible)P.returnTime=O.getCurrentTime(),P.isAtLiveHead=O.getProgressState().isAtLiveHead;else{var B=P.returnTime;P.isAtLiveHead&&(B=Number.POSITIVE_INFINITY);O.seekTo(B,void 0,void 0,void 0,51)}})};
_.J.getPlayer=function(){var W=this;if(!this.player_){var P=_.RP();if(P)return P.getPlayerPromise().then(function(x){W.setPlayer(x);return x})}return Promise.resolve(this.player_)};
_.J.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19939_playerEvents);if(W){this.player_=W;var P;((P=this.data)==null?0:P.externalVideoId)||this.set("videoId",W.getVideoData().video_id||"");var x;(W==null?void 0:(x=W.getPresentingPlayerType)==null?void 0:x.call(W))===2&&(this.set("isAdPlaying",!0),_.W7(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19939_playerEvents)}};
_.J.ready=function(){_.g(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.J.onTitleChanged_=function(W){this.set("titleValue",W.detail.title)};
_.J.onStartChanged_=function(W){this.set("start",W.detail.start)};
_.J.onEndChanged_=function(W){this.set("end",W.detail.end)};
_.J.onTitleValidChanged_=function(W){this.set("titleValid",W.detail.valid)};
_.J.onStartValidChanged_=function(W){this.set("startValid",W.detail.valid)};
_.J.onEndValidChanged_=function(W){this.set("endValid",W.detail.valid)};
_.J.onVideoDataChange_=function(){var W;if((W=this.data)==null||!W.externalVideoId){var P;this.set("videoId",((P=this.player_)==null?void 0:P.getVideoData().video_id)||"")}};
_.J.computeFormValid_=function(W,P,x,I){return!!(W&&P&&x&&I)};
_.J.computeCancelButton_=function(W,P,x){return W&&_.Q(W,_.w6)?{buttonRenderer:Object.assign({},_.Q(W,_.w6),{isDisabled:P||x})}:null};
_.J.computeSubmitButton_=function(W,P,x){return W&&_.Q(W,_.w6)?{buttonRenderer:Object.assign({},_.Q(W,_.w6),{command:void 0,isDisabled:!this.formValid||P||x})}:null};
_.J.computeSubmitCommand_=function(W){return W||null};
_.J.onSubmit_=function(W){var P=this;W.stopPropagation();W.preventDefault();this.submitCommand_&&(W={},W.comment_text=this.titleValue,W.clip_external_video_id=this.videoId,W.clip_offset_ms=parseInt(this.start*1E3,10),W.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Iu(this.hostElement,[this.submitCommand_,W]).then(function(){P.set("isLoading_",!1)},function(){P.set("isLoading_",!1)}))};
_.J.playerAdStartHandler_=function(){_.W7(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler_=function(){_.W7(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.J.onVideoProgress_=function(){var W=this;this.getPlayer().then(function(P){var x,I=(P==null?void 0:(x=P.getPresentingPlayerType)==null?void 0:x.call(P))===2;W.isAdPlaying!==I&&(I?W.playerAdStartHandler_():W.playerAdEndHandler_())})};
hK.prototype.onEndValidChanged_=hK.prototype.onEndValidChanged_;hK.prototype.onStartValidChanged_=hK.prototype.onStartValidChanged_;hK.prototype.onTitleValidChanged_=hK.prototype.onTitleValidChanged_;hK.prototype.onEndChanged_=hK.prototype.onEndChanged_;hK.prototype.onStartChanged_=hK.prototype.onStartChanged_;hK.prototype.onTitleChanged_=hK.prototype.onTitleChanged_;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],hK.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",Object)],hK.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],hK.prototype,"data",void 0);_.f([_.c({value:""}),_.l("design:type",String)],hK.prototype,"titleValue",void 0);
_.f([_.c({value:!1}),_.l("design:type",Boolean)],hK.prototype,"titleValid",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],hK.prototype,"start",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],hK.prototype,"startValid",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],hK.prototype,"end",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],hK.prototype,"endValid",void 0);_.f([_.c({value:""}),_.l("design:type",String)],hK.prototype,"videoId",void 0);
_.f([_.c({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.l("design:type",Boolean)],hK.prototype,"formValid",void 0);_.f([_.c({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.l("design:type",Object)],hK.prototype,"submitButton_",void 0);_.f([_.c({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.l("design:type",Object)],hK.prototype,"submitCommand_",void 0);
_.f([_.c({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.l("design:type",Object)],hK.prototype,"cancelButton_",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],hK.prototype,"isLoading_",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],hK.prototype,"isAdPlaying",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],hK.prototype,"returnTime",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],hK.prototype,"isAtLiveHead",void 0);
_.f([_.I7("title-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hK.prototype,"onTitleChanged_",null);_.f([_.I7("start-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hK.prototype,"onStartChanged_",null);_.f([_.I7("end-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hK.prototype,"onEndChanged_",null);
_.f([_.I7("title-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hK.prototype,"onTitleValidChanged_",null);_.f([_.I7("start-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hK.prototype,"onStartValidChanged_",null);_.f([_.I7("end-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hK.prototype,"onEndValidChanged_",null);
hK=_.f([_.jd({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],hK);
_.X(hK,"yt-clip-creation-renderer",function(){if(BRL===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;JPQ===void 0&&(JPQ=document.createElement("template"));var I=JPQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);BRL=W}W=BRL;return W},{mode:2});var HD=function(){return _.b.apply(this,arguments)||this};
_.A(HD,_.b);HD.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"}}}};
HD.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(W){return W.hasOwnProperty("clipCreationRenderer")})&&_.W7(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
HD.prototype.onPanelContentVisibleChanged=HD.prototype.onPanelContentVisibleChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.$9.YtVisibilityBehavior),_.l("design:type",Object)],HD.prototype,"ytVisibilityBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],HD.prototype,"ytdReduxBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],HD.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],HD.prototype,"panelContentVisible",void 0);_.f([_.OZ("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HD.prototype,"onPanelContentVisibleChanged",null);HD=_.f([_.U({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],HD);
_.X(HD,"ytd-clip-section-renderer",function(){if(xP4!==void 0)return xP4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return xP4=W},{mode:1});var ohd;var e0=function(){return _.b.apply(this,arguments)||this};
_.A(e0,_.b);_.J=e0.prototype;
_.J.onKeyDown=function(W){if(this.snippetElements.length!==0&&(W=W.keyCode,W===38||W===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);W===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.HX(this.highlightedIndex,-1,this.snippetElements.length);W=this.snippetElements.length;var P=this.highlightedIndex%W;this.highlightedIndex=P*W<0?P+W:P;W=this.snippetElements[this.highlightedIndex];this.highlightSnippet(W);this.ensureVisible(W)}};
_.J.onKeyUp=function(W){var P=this;GoQ(W)&&(W.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Gr.cancelJob(this.inputTimerId),this.inputTimerId=_.Gr.addLowPriorityJob(function(){P.typedValue&&(P.fetchSnippets(P.typedValue),P.logInputGesture(P.data))},1E3))};
_.J.onClick=function(W){(W=_.J9A(W.target,null,"snippet-item"))&&this.selectSnippet(W)};
_.J.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.J.ready=function(){var W=this;this.inputElement.addEventListener("focus",function(){W.snippetsWrapper.style.removeProperty("display")})};
_.J.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.J.getSourceTimelines=function(){if(!this.data)return[];var W=[];if(this.data.searchInVideoSources)for(var P=_.n(this.data.searchInVideoSources),x=P.next();!x.done;x=P.next())x=x.value,x==="SEARCH_IN_VIDEO_SOURCE_ASR"?W.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):x==="SEARCH_IN_VIDEO_SOURCE_OCR"&&W.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return W};
_.J.fetchSnippets=function(W){var P=_.W7(this.hostElement,"yt-get-current-video-id-action")[0],x=this.getSourceTimelines();W={getSearchInVideoCommand:{externalVideoId:P,query:W!=null?W:"",sourceTimelines:x},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}})};
_.J.filterSnippets=function(W,P){var x=this;if(P){this.filteredSnippets=(0,_.jU.unsafeClone)(W);var I=RegExp(_.Tgm(P),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Y){return I.test(x.ytRendererBehavior.getSimpleString(Y.snippet))});
W=_.n(this.filteredSnippets);for(var O=W.next();!O.done;O=W.next()){O=O.value;var B=this.ytRendererBehavior.getSimpleString(O.snippet);O.snippet={runs:[{text:B.substring(0,B.toLowerCase().indexOf(P))},{text:B.substring(B.toLowerCase().indexOf(P),B.toLowerCase().indexOf(P)+P.length),bold:!0},{text:B.substring(B.toLowerCase().indexOf(P)+P.length,B.length)}]}}}else this.filteredSnippets=W};
_.J.onUpdateSearchInVideoResults=function(W){if(!(this.snippets.length>0)){var P,x,I;if((I=(P=_.Q(W,b94))==null?void 0:(x=P.results)==null?void 0:x.length)!=null&&I){var O;this.filteredSnippets=this.snippets=((O=_.Q(W,b94))==null?void 0:O.results).map(function(B){var Y,K,Z;return{startMs:B==null?void 0:(Y=B.searchInVideoResultRenderer)==null?void 0:Y.startMs,startTimeText:B==null?void 0:(K=B.searchInVideoResultRenderer)==null?void 0:K.startTimeText,snippet:B==null?void 0:(Z=B.searchInVideoResultRenderer)==
null?void 0:Z.snippet}})}}};
_.J.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};
_.J.highlightSnippet=function(W){W.classList.add("highlighted")};
_.J.removeSnippetHighlight=function(W){W.classList.remove("highlighted")};
_.J.selectSnippet=function(W){this.typedValue=String(W.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(W);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.J.ensureVisible=function(W){var P=this.snippetsWrapper.scrollTop,x=P+this.snippetsWrapper.clientHeight,I=W.offsetTop-this.snippetsWrapper.offsetTop;W=I+W.clientHeight;I<P?this.snippetsWrapper.scrollTop-=P-I:W>x&&(this.snippetsWrapper.scrollTop+=W-x)};
_.J.seekPlayer=function(W){var P,x;return _.y(function(I){if(I.nextAddress==1){if(!W)return I.jumpTo(0);P=Number(W.dataset.startOffset);return _.S(I,_.F_().getPlayerPromise(),3)}x=I.yieldResult;x.seekTo(P/1E3,!0);x.wakeUpControls();_.Kl(I)})};
_.J.logInputGesture=function(W){var P=_.E_();P&&(W==null?0:W.trackingParams)&&_.k6(P,_.ox(W.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.J.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("typed-value-changed",this.typedValue))};
_.J.updateTypedValueFromBinding=function(W){this.typedValue=W.currentTarget.value};
e0.prototype.typedValueChangedForBinding=e0.prototype.typedValueChangedForBinding;e0.prototype.dataChanged=e0.prototype.dataChanged;e0.prototype.panelContentVisibleChanged=e0.prototype.panelContentVisibleChanged;e0.prototype.onClick=e0.prototype.onClick;e0.prototype.onKeyUp=e0.prototype.onKeyUp;e0.prototype.onKeyDown=e0.prototype.onKeyDown;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],e0.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],e0.prototype,"data",void 0);_.f([_.c({value:[]}),_.l("design:type",Array)],e0.prototype,"snippets",void 0);_.f([_.c({value:[]}),_.l("design:type",Array)],e0.prototype,"filteredSnippets",void 0);_.f([_.c({value:[]}),_.l("design:type",Array)],e0.prototype,"snippetElements",void 0);
_.f([_.BM("#siv-input"),_.l("design:type",HTMLElement)],e0.prototype,"inputElement",void 0);_.f([_.BM("#siv-snippets-wrapper"),_.l("design:type",HTMLElement)],e0.prototype,"snippetsWrapper",void 0);_.f([_.c(),_.l("design:type",String)],e0.prototype,"typedValue",void 0);_.f([_.c({value:-1}),_.l("design:type",Number)],e0.prototype,"highlightedIndex",void 0);_.f([_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[_.s7]),_.l("design:returntype")],e0.prototype,"onKeyDown",null);
_.f([_.I7("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[_.s7]),_.l("design:returntype")],e0.prototype,"onKeyUp",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],e0.prototype,"onClick",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],e0.prototype,"panelContentVisible",void 0);
_.f([_.OZ("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e0.prototype,"panelContentVisibleChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e0.prototype,"dataChanged",null);_.f([_.OZ("typedValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e0.prototype,"typedValueChangedForBinding",null);
e0=_.f([_.U({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],e0);
_.X(e0,"ytd-search-in-video-renderer",function(){if(ohd!==void 0)return ohd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ohd=W},{mode:1});var Spf;var cD=function(){return _.b.apply(this,arguments)||this};
_.A(cD,_.b);cD.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
cD.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]]"}}}}}};
cD.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,P,x,I,O=(P=_.Q((W=this.data)==null?void 0:W.onClickCommand,_.KS3))==null?void 0:(x=P.item)==null?void 0:(I=x.notificationTextRenderer)==null?void 0:I.successResponseText;O&&_.rDd(this.hostElement,O)}};
_.N1.Object.defineProperties(cD.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return this.isProductPlaceholder&&((W=this.data)==null?void 0:(P=W.hiddenProductOptions)==null?void 0:P.showDropCountdown)&&!!((x=this.data)==null?0:(I=x.hiddenProductOptions)==null?0:I.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isProductPlaceholder&&!((W=this.data)==null?0:W.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null?0:W.priceReplacementText)&&!((P=this.data)==null||!P.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],cD.prototype,"componentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cD.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],cD.prototype,"useCenterLayoutContainer",null);_.f([_.c({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],cD.prototype,"buttonOverride",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],cD.prototype,"isProductPlaceholder",null);
_.f([_.H("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],cD.prototype,"showDropCountdown",null);_.f([_.H("isProductPlaceholder","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],cD.prototype,"showBrandName",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],cD.prototype,"showPriceReplacementText",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],cD.prototype,"showPrice",null);
_.f([_.H("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],cD.prototype,"showMetadata",null);cD=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],cD);
_.X(cD,"ytd-product-list-item-renderer",function(){if(Spf!==void 0)return Spf;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Spf=W},{mode:1});var ugQ;var ag=function(){return _.b.apply(this,arguments)||this};
_.A(ag,_.b);ag.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
ag.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
ag.prototype.panelContentVisibleChanged=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return W.playerApi?x.jumpTo(2):_.S(x,_.F_().getPlayerPromise(),3);x.nextAddress!=2&&(W.playerApi=x.yieldResult);(P=W.playerApi)==null||P.productsInVideoVisibilityUpdated(!!W.panelContentVisible);_.Kl(x)})};
ag.prototype.panelContentVisibleChanged=ag.prototype.panelContentVisibleChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ag.prototype,"panelContentVisible",void 0);_.f([_.c(),_.l("design:type",Object)],ag.prototype,"data",void 0);
_.f([_.OZ("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],ag.prototype,"panelContentVisibleChanged",null);ag=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],ag);
_.X(ag,"ytd-product-list-renderer",function(){if(ugQ!==void 0)return ugQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return ugQ=W},{mode:1});var dP3;var bM=function(){var W=_.b.apply(this,arguments)||this;W.hideTimestamps=!!_.ye("hide-transcript-timestamps");W.currentCueIndex=-1;W.flatCues=[];W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};W.TEST_ONLY={getFlatCues:function(){return W.flatCues}};
return W};
_.A(bM,_.b);_.J=bM.prototype;_.J.hideTimestampsChanged=function(){_.Y9("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.dataChanged=function(){var W;if((W=this.data)!=null&&W.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;W=_.n(this.data.cueGroups);for(var P=W.next();!P.done;P=W.next()){P=_.n(_.Q(P.value,koM).cues);for(var x=P.next();!x.done;x=P.next())this.flatCues.push(Number(_.Q(x.value,Uyd).startOffsetMs))}}};
_.J.onYtPlayerTimeChanged=function(W){if(!(W<0)){for(var P=this.currentCueIndex,x=P;;){var I=x>=0?this.flatCues[x]/1E3:-1;if(W+.5<I)--x;else if(I=x+1<this.flatCues.length?this.flatCues[x+1]/1E3:Infinity,W+.5>I)x+=1;else break}x!==P&&(P>=0&&((W=this.getCueElement(P))&&W.classList.remove("active"),(P=this.getCueGroupElement(P))&&P.classList.remove("active")),(P=this.getCueElement(x))&&P.classList.add("active"),(P=this.getCueGroupElement(x))&&P.classList.add("active"),this.currentCueIndex=x,this.isHovered||
this.scrollElementToTop(x))}};
_.J.scrollElementToTop=function(W){W=this.getCueElement(W>=3?W-3:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J.getCueElement=function(W){return _.g(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[W]+'"]')};
_.J.getCueGroupElement=function(W){return(W=this.getCueElement(W))&&W.parentElement?W.parentElement.parentElement:null};
_.J.onTap=function(W){var P=_.af(W);W.target.classList.contains("cue")&&this.seekCueElement(P)};
_.J.onKeyPress=function(W){W.keyCode==13&&(W=_.J9A(W.target,null,"cue"))&&this.seekCueElement(W)};
_.J.seekCueElement=function(W){W=Number(W.getAttribute("start-offset"));_.W7(this.hostElement,"yt-transcript-player-seek",[W/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
bM.prototype.onMouseLeave=bM.prototype.onMouseLeave;bM.prototype.onMouseEnter=bM.prototype.onMouseEnter;bM.prototype.onKeyPress=bM.prototype.onKeyPress;bM.prototype.onTap=bM.prototype.onTap;bM.prototype.dataChanged=bM.prototype.dataChanged;bM.prototype.hideTimestampsChanged=bM.prototype.hideTimestampsChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],bM.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bM.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],bM.prototype,"hideTimestamps",void 0);_.f([_.c(),_.l("design:type",Boolean)],bM.prototype,"isHovered",void 0);_.f([_.OZ("hideTimestamps"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bM.prototype,"hideTimestampsChanged",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bM.prototype,"dataChanged",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],bM.prototype,"onTap",null);_.f([_.I7("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],bM.prototype,"onKeyPress",null);
_.f([_.I7("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bM.prototype,"onMouseEnter",null);_.f([_.I7("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bM.prototype,"onMouseLeave",null);bM=_.f([_.U({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],bM);
_.X(bM,"ytd-transcript-body-renderer",function(){if(dP3!==void 0)return dP3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return dP3=W},{mode:1});var s42;var kF=function(){var W=_.b.apply(this,arguments)||this;W.darkerPanels=_.p("web_watch_darker_panels");return W};
_.A(kF,_.b);kF.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kF.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kF.prototype,"darkerPanels",void 0);kF=_.f([_.U({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],kF);
_.X(kF,"ytd-transcript-footer-renderer",function(){if(s42!==void 0)return s42;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return s42=W},{mode:1});var vhd;var mP4;var UX=function(){var W=_.b.apply(this,arguments)||this;W.systemIcons=_.p("kevlar_system_icons");W.showClearButton=!1;return W};
_.A(UX,_.b);_.J=UX.prototype;_.J.handleInput=function(W){var P=this;W.target.value.length?_.De(this,"ytdTranscriptSearchBoxSearch",function(){P.emitSearchEvent(W)},500):(_.D2d(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=W.target.value.length>0};
_.J.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.J.handleClick=function(){var W,P=(W=this.data)==null?void 0:W.trackingParams;P&&_.Kg(_.YY(),P)};
_.J.handleClear=function(){_.D2d(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var W,P,x=(P=_.Q((W=this.data)==null?void 0:W.clearButton,_.w6))==null?void 0:P.trackingParams;x&&_.Kg(_.YY(),x);this.clear()};
_.J.emitSearchEvent=function(W){_.Lf(this.hostElement,"yt-transcript-search-box-search",{query:W.target.value});var P,x;(W=(x=_.Q((P=this.data)==null?void 0:P.searchButton,_.w6))==null?void 0:x.trackingParams)&&_.Kg(_.YY(),W)};
_.J.emitClearEvent=function(){_.Lf(this.hostElement,"yt-transcript-search-box-clear")};
_.N1.Object.defineProperties(UX.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.g(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UX.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],UX.prototype,"systemIcons",void 0);UX=_.f([_.U({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],UX);
_.X(UX,"ytd-transcript-search-box-renderer",function(){if(mP4!==void 0)return mP4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return mP4=W},{mode:1});var VC4;var tC6;var XD=function(){return _.b.apply(this,arguments)||this};
_.A(XD,_.b);XD.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var W,P;this.sectionHeaderAriaLabel=(W=this.data)==null?void 0:(P=W.accessibility)==null?void 0:P.accessibilityData.label}};
XD.prototype.fireSelectedEvent=function(W){_.Lf(this.hostElement,"ytd-transcript-section-header",{startMs:W})};
XD.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
XD.prototype.handleKeyPress=function(W){this.data&&W.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.N1.Object.defineProperties(XD.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=(W=this.data)==null?void 0:W.enableTappableTranscriptHeader)!=null?P:!1}}});
XD.prototype.dataChanged=XD.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],XD.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],XD.prototype,"sectionHeaderAriaLabel",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],XD.prototype,"enableTappableTranscriptHeader",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XD.prototype,"dataChanged",null);
XD=_.f([_.U({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],XD);
_.X(XD,"ytd-transcript-section-header-renderer",function(){if(tC6!==void 0)return tC6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return tC6=W},{mode:1});var pjy;var j4y;var fu=function(){var W=_.b.apply(this,arguments)||this;W.isEditMode=!1;W.touchCaptionsEnabled=!1;W.deleteCaptionCorrectionPopupCommand=null;W.voteCaptionCorrectionPopupCommand=null;W.roundedContainer=!0;W.mouseOver=!1;W.textChanged=!1;W.messages={suggest_correction:_.KK("suggest_correction",void 0,"Edit caption"),suggested_caption:_.KK("suggested_caption",void 0,"Suggested caption"),submit_correction:_.KK("submit_correction",void 0,"Submit for review"),cancel_correction:_.KK("cancel_correction",
void 0,"Cancel"),replay_segment:_.KK("replay_segment",void 0,"Re-play segment"),delete_correction:_.KK("delete_correction",void 0,"Delete correction")};W.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return W};
_.A(fu,_.b);_.J=fu.prototype;_.J.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)};
_.J.handleDelete=function(W){if(this.deleteCaptionCorrectionPopupCommand){var P=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);P&&this.ytdOpenPopupBehavior.openPopup(P);W.stopPropagation()}};
_.J.handleSubmit=function(W){if(this.data&&this.data.submitCaptionCorrectionCommand&&(W.stopPropagation(),this.textChanged)){var P;W=(P=_.Q(this.data.submitCaptionCorrectionCommand,_.Zgd))==null?void 0:P.params;P=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:W,correctionText:String(this.ironTextAreaElement.value),originalText:_.kz(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(P);this.isEditMode=!1}};
_.J.handleUpdateSegmentText=function(W){(W=_.Q(W,J$m))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&(W.userCorrection&&(this.editedText=W.userCorrection),W.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.kz(this.data.snippet)),W.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=W.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=W.voteCaptionCorrectionPopupCommand?
W.voteCaptionCorrectionPopupCommand:null,W.accessibility&&(this.segmentAriaLabel=W.accessibility.accessibilityData.label))};
_.J.handleCancel=function(W){this.isEditMode=!1;W.stopPropagation();this.logClientVe(159409)};
_.J.handleEditSegmentCommand=function(W){(W=_.Q(W,OSv))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&this.handleEdit()};
_.J.handleEditButtonClick=function(W){this.data&&(this.handleEdit(),W.stopPropagation())};
_.J.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var W;(W=this.ironTextAreaElement.textarea)==null||W.focus();this.logClientVe(159407)}};
_.J.handleMouseEnter=function(){this.mouseOver=!0};
_.J.handleMouseLeave=function(){this.mouseOver=!1};
_.J.handleReplay=function(W){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),W.stopPropagation(),this.logClientVe(159408))};
_.J.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()))};
_.J.handleKeypress=function(W){this.data&&(this.isEditMode?W.stopPropagation():this.isEnterPress(W)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(W)&&this.logClientVe(138758))};
_.J.handleTextboxClick=function(W){W.stopPropagation()};
_.J.handleTextboxKeydown=function(W){this.isControlEnterPress(W)?this.handleSubmit(W):W.key==="Escape"&&this.handleCancel(W)};
_.J.handleTextboxKeyup=function(){this.textChanged=_.kz(this.latestText)!==String(this.ironTextAreaElement.value)};
_.J.fireSelectedEvent=function(W){_.Lf(this.hostElement,"yt-transcript-segment-selected",{startMs:W})};
_.J.fireReplayEvent=function(W,P){_.Lf(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(W-100,0),endMs:P})};
_.J.fireEditEvent=function(W,P){_.Lf(this.hostElement,"yt-transcript-segment-edit",{startMs:W,endMs:P})};
_.J.isEnterPress=function(W){return W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13?!0:!1};
_.J.isControlEnterPress=function(W){var P=W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13;return(W.ctrlKey||W.metaKey)&&P};
_.J.isCopyPress=function(W){var P=W.ctrlKey;return W.key==="c"&&P};
_.J.logClick=function(){var W,P=(W=this.data)==null?void 0:W.trackingParams;P&&_.Kg(_.YY(),P)};
_.J.logClientVe=function(W){_.yI(_.YY(),_.td(W))};
_.N1.Object.defineProperties(fu.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}}});
fu.prototype.handleMouseLeave=fu.prototype.handleMouseLeave;fu.prototype.handleMouseEnter=fu.prototype.handleMouseEnter;fu.prototype.dataChanged=fu.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],fu.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],fu.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],fu.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],fu.prototype,"isEditMode",void 0);_.f([_.c(),_.l("design:type",Object)],fu.prototype,"touchCaptionsEnabled",void 0);_.f([_.c(),_.l("design:type",Object)],fu.prototype,"editedText",void 0);_.f([_.c(),_.l("design:type",Object)],fu.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.f([_.c(),_.l("design:type",Object)],fu.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.f([_.c(),_.l("design:type",String)],fu.prototype,"segmentAriaLabel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],fu.prototype,"roundedContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],fu.prototype,"mouseOver",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],fu.prototype,"textChanged",void 0);_.f([_.c(),_.l("design:type",Object)],fu.prototype,"messages",void 0);
_.f([_.BM("#suggestion"),_.l("design:type",Object)],fu.prototype,"ironTextAreaElement",void 0);_.f([_.H("data","editedText"),_.l("design:type",Object),_.l("design:paramtypes",[])],fu.prototype,"latestText",null);_.f([_.H("touchCaptionsEnabled","isEditMode"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],fu.prototype,"enableEditButton",null);
_.f([_.H("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],fu.prototype,"enableUndoButton",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fu.prototype,"dataChanged",null);_.f([_.I7("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fu.prototype,"handleMouseEnter",null);
_.f([_.I7("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fu.prototype,"handleMouseLeave",null);fu=_.f([_.U({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],fu);
_.X(fu,"ytd-transcript-segment-renderer",function(){if(j4y!==void 0)return j4y;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return j4y=W},{mode:1});var Nu=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};W.isError=!1;W.darkerPanels=_.p("web_watch_darker_panels");W.segmentOffsets=[];W.segmentIndex=-1;return W};
_.A(Nu,_.b);_.J=Nu.prototype;_.J.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"}}}}};
_.J.segmentsChanged=function(){this.updateOffsets()};
_.J.onYtPlayerTimeChanged=function(W){for(var P=this.segmentIndex,x=P;;){if(x>=0){var I=this.segmentOffsets[x].start;var O=this.segmentOffsets[x].isAutoScrollable}else I=-1,O=!0;var B=W+.5;if(!O){I=x+1<this.segmentOffsets.length?this.segmentOffsets[x+1].start:Infinity;if(B>=I){x+=1;continue}x=-1;break}if(B<I)I=x-1>=0&&this.segmentOffsets[x-1].isAutoScrollable,O=x===0||I?1:2,x-=O;else if(O=x+1<this.segmentOffsets.length&&this.segmentOffsets[x+1].isAutoScrollable?1:2,I=x+O<this.segmentOffsets.length?
this.segmentOffsets[x+O].start:Infinity,B>I)x+=O;else{if(x<0)break;x<this.segmentOffsets.length&&B>this.segmentOffsets[x].end&&(x=-1);break}}if(P!==x){if(P>=0){var Y;(Y=this.getSegmentElement(P))==null||Y.classList.remove("active")}this.segmentIndex=x;if(!(x<0)){var K;(K=this.getSegmentElement(x))==null||K.classList.add("active");this.isHovered||this.scrollElementToTop(x)}}};
_.J.handleSegmentEdit=function(W){W.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=W.target,_.W7(this.hostElement,"yt-transcript-player-edit",[W.detail.startMs/1E3,W.detail.endMs/1E3]))};
_.J.handleSegmentSelected=function(W){_.W7(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.J.handleSegmentReplay=function(W){_.W7(this.hostElement,"yt-transcript-player-replay",[W.detail.startMs/1E3,W.detail.endMs/1E3])};
_.J.handleSectionHeaderSelected=function(W){_.W7(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.onRetryButtonClick=function(){_.Lf(this.hostElement,"transcript-retry-button-click")};
_.J.getSegmentElement=function(W){return _.g(this.hostElement).querySelector(":nth-child("+(W+1)+")")};
_.J.scrollElementToTop=function(W){W=this.getSegmentElement(W>=2?W-2:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(W){var P,x=(P=W.transcriptSegmentRenderer)!=null?P:W.transcriptSectionHeaderRenderer;return{start:Number(x.startMs)/1E3,end:Number(x.endMs)/1E3,isAutoScrollable:W.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.J.clearHighlightedSegments=function(){var W=_.g(this.hostElement);W=_.n(W.querySelectorAll("ytd-transcript-segment-renderer"));for(var P=W.next();!P.done;P=W.next())P.value.classList.remove("active")};
_.N1.Object.defineProperties(Nu.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:W.searchResultSegments)||((P=this.data)==null?void 0:P.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Nu.prototype.onMouseLeave=Nu.prototype.onMouseLeave;Nu.prototype.onMouseEnter=Nu.prototype.onMouseEnter;Nu.prototype.handleSectionHeaderSelected=Nu.prototype.handleSectionHeaderSelected;Nu.prototype.handleSegmentReplay=Nu.prototype.handleSegmentReplay;Nu.prototype.handleSegmentSelected=Nu.prototype.handleSegmentSelected;Nu.prototype.handleSegmentEdit=Nu.prototype.handleSegmentEdit;Nu.prototype.segmentsChanged=Nu.prototype.segmentsChanged;
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Nu.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Nu.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Nu.prototype,"isError",void 0);
_.f([_.c(),_.l("design:type",Object)],Nu.prototype,"noResultLabel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Nu.prototype,"darkerPanels",void 0);_.f([_.H("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],Nu.prototype,"segments",null);_.f([_.H("segments","noResultLabel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nu.prototype,"displayNoResults",null);
_.f([_.OZ("segments"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nu.prototype,"segmentsChanged",null);_.f([_.I7("yt-transcript-segment-edit"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Nu.prototype,"handleSegmentEdit",null);_.f([_.I7("yt-transcript-segment-selected"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Nu.prototype,"handleSegmentSelected",null);
_.f([_.I7("yt-transcript-segment-replay"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Nu.prototype,"handleSegmentReplay",null);_.f([_.I7("ytd-transcript-section-header"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Nu.prototype,"handleSectionHeaderSelected",null);_.f([_.I7("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nu.prototype,"onMouseEnter",null);
_.f([_.I7("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nu.prototype,"onMouseLeave",null);Nu=_.f([_.U({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Nu);
_.X(Nu,"ytd-transcript-segment-list-renderer",function(){if(pjy!==void 0)return pjy;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return pjy=W},{mode:1});var lM=function(){var W=_.b.apply(this,arguments)||this;W.hideTimestamps=!!_.ye("hide-transcript-timestamps");W.isLoadingTranscripts=!1;W.darkerPanels=_.p("web_watch_darker_panels");W.isError=!1;W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return W};
_.A(lM,_.b);_.J=lM.prototype;_.J.headerChanged=function(){var W,P;this.baseGetTranscriptsCommand=(P=_.Q((W=this.data)==null?void 0:W.header,B5O))==null?void 0:P.onTextChangeCommand};
_.J.bodyChanged=function(){var W=this.getBodyRenderer();W&&(W.initialSegments&&(this.initialTranscriptsRenderer=W),W.noResultLabel&&(this.noResultLabel=W.noResultLabel),W.retryLabel&&(this.retryLabel=W.retryLabel))};
_.J.detached=function(){this.clearSearchBoxText()};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.J.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"}}}};
_.J.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.J.fireSearch=function(W){var P=this;if(W){var x=W.detail.query;if(this.baseGetTranscriptsCommand){var I;W=(I=_.Q(this.baseGetTranscriptsCommand,_.Lez))==null?void 0:I.params;var O;I=_.Q((O=this.data)==null?void 0:O.footer,XY6);var B;if((O=(B=_.Q(I==null?void 0:I.languageMenu,Pa3))==null?void 0:B.subMenuItems)&&O.length>0&&(B=O.find(function(Z){return Z.selected}))){var Y,K;
W=(Y=B.continuation)==null?void 0:(K=Y.reloadContinuationData)==null?void 0:K.continuation}Y=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:W,searchQuery:x}});this.ytComponentBehavior.resolveCommand(Y,{commandController:{onServerError:function(){P.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});AiM(this.ytContinuationHandlerBehavior,function(){return x===P.getCurrentSearchBoxText()})}}};
_.J.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.J.onRetryButtonClick=function(){this.isError=!1;var W={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:W}))};
_.J.hideTimestampsChanged=function(){_.Y9("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.handleSignalActionCopyTranscript=function(){var W=this,P=this.getBodyRenderer();P&&(P=((P==null?void 0:P.searchResultSegments)||(P==null?void 0:P.initialSegments)||[]).map(function(x){return _.Q(x,Y9O)}).filter(function(x){return!!x}).map(function(x){return{snippet:x.snippet||{runs:[{text:""}]},
startTimeText:x.startTimeText||{simpleText:""}}}).map(function(x){var I=(x.snippet.runs||[]).reduce(function(O,B){return O+B.text},"");
return W.hideTimestamps?I:x.startTimeText.simpleText+" "+I}).join("\n"),this.copyToClipboard(P))};
_.J.copyToClipboard=function(W){navigator.clipboard&&navigator.clipboard.writeText(W)};
_.J.getCurrentSearchBoxText=function(){var W;return(W=this.searchBox)==null?void 0:W.value};
_.J.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.J.getBodyRenderer=function(){var W;return _.Q((W=this.data)==null?void 0:W.body,noM)};
_.J.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.N1.Object.defineProperties(lM.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.g(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
lM.prototype.hideTimestampsChanged=lM.prototype.hideTimestampsChanged;lM.prototype.searchCleared=lM.prototype.searchCleared;lM.prototype.fireSearch=lM.prototype.fireSearch;lM.prototype.onReloadContinuationFinish=lM.prototype.onReloadContinuationFinish;lM.prototype.bodyChanged=lM.prototype.bodyChanged;lM.prototype.headerChanged=lM.prototype.headerChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],lM.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],lM.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],lM.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],lM.prototype,"hideTimestamps",void 0);
_.f([_.c(),_.l("design:type",Object)],lM.prototype,"isLoadingTranscripts",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],lM.prototype,"darkerPanels",void 0);_.f([_.c(),_.l("design:type",Object)],lM.prototype,"isError",void 0);_.f([_.OZ("data.header"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lM.prototype,"headerChanged",null);
_.f([_.K_("data.body"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lM.prototype,"bodyChanged",null);_.f([_.I7("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lM.prototype,"onReloadContinuationFinish",null);_.f([_.I7("yt-transcript-search-box-search"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],lM.prototype,"fireSearch",null);
_.f([_.I7("yt-transcript-search-box-clear"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lM.prototype,"searchCleared",null);_.f([_.OZ("hideTimestamps"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lM.prototype,"hideTimestampsChanged",null);lM=_.f([_.U({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],lM);
_.X(lM,"ytd-transcript-search-panel-renderer",function(){if(VC4!==void 0)return VC4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return VC4=W},{mode:1});var T8=function(){var W=_.b.apply(this,arguments)||this;W.player=null;W.playerPollJobId=0;return W};
_.A(T8,_.b);_.J=T8.prototype;_.J.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.J.onLoadReloadContinuation=function(W){_.p("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:W.target.data.continuation}}):(W={clickTrackingParams:W.target.data.clickTrackingParams,getTranscriptEndpoint:{params:W.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}}))};
_.J.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"}}}};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.J.attached=function(){this.updatePlayerListening()};
_.J.detached=function(){this.updatePlayerListening()};
_.J.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.J.startPlayerListening=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return(P=_.RP())?_.S(x,P.getPlayerPromise(),2):x.return();W.player=x.yieldResult;W.playerPollJobId=_.Gr.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3);
W.player.addEventListener("onCueRangeEnter",function(I){W.onCueRangeEnter(I)});
W.player.addEventListener("onCueRangeExit",function(I){W.onCueRangeExit(I)});
W.player.addEventListener("onStateChange",function(I){W.onPlayerStateChange(I)});
W.player.addEventListener("SEEK_TO",function(I){W.onPlayerSeek(I)});
_.Kl(x)})};
_.J.getPlayerVideoProgress=function(){var W=this;_.Gr.cancelJob(this.playerPollJobId);if(this.player){var P=this.player.getCurrentTime();_.W7(this.hostElement,"yt-player-time-changed",[P])}this.playerPollJobId=_.Gr.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3)};
_.J.stopPlayerListening=function(){this.player=null;_.Gr.cancelJob(this.playerPollJobId)};
_.J.onPlayerStateChange=function(W){W===2&&this.removePendingCue()};
_.J.onPlayerSeek=function(W){var P;if(P=this.pendingReplayCueId)P=this.pendingReplayCueId,P=W===(_.p("web_transcript_cue_id_killswitch")?Number(P):Number(P.split("_")[1]));P||this.removePendingCue()};
_.J.onCueRangeEnter=function(W){FDd(W)&&(this.pendingReplayCueId=W)};
_.J.onCueRangeExit=function(W){FDd(W)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.J.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.J.onYtTranscriptPlayerSeek=function(W){this.player&&this.player.seekTo(W,!0)};
_.J.onYtTranscriptPlayerReplay=function(W,P){this.player&&(this.player.addCueRange(Rb3(W),W,P),this.player.seekTo(W,!0),this.player.playVideo())};
_.J.onYtTranscriptPlayerEdit=function(W,P){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Rb3(W),W,P),this.player.seekTo(W,!0))};
T8.prototype.onLoadReloadContinuation=T8.prototype.onLoadReloadContinuation;T8.prototype.panelContentVisibleChanged=T8.prototype.panelContentVisibleChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],T8.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],T8.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],T8.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],T8.prototype,"panelContentVisible",void 0);_.f([_.OZ("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T8.prototype,"panelContentVisibleChanged",null);
_.f([_.I7("yt-load-reload-continuation"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],T8.prototype,"onLoadReloadContinuation",null);T8=_.f([_.U({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],T8);
_.X(T8,"ytd-transcript-renderer",function(){if(vhd!==void 0)return vhd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return vhd=W},{mode:1});var Q4M;var CTv;var rX=function(){return _.b.apply(this,arguments)||this};
_.A(rX,_.b);rX.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.OL(this.hostElement,[this.data.clickCommand],this.hostElement))};
rX.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.EM)()+_.HE)+"px)"};
rX.prototype.updateShouldHideFromBinding=function(W){this.shouldHide=W.detail.value};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],rX.prototype,"rendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rX.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],rX.prototype,"shouldHide",void 0);rX=_.f([_.U({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],rX);
_.X(rX,"ytd-ad-engagement-panel-banner-renderer",function(){if(CTv!==void 0)return CTv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return CTv=W},{mode:_.F4("kevlar_poly_si_batch_j070")?1:2});var AP4;var iM=function(){var W=_.b.apply(this,arguments)||this;W.modernPanels=_.p("kevlar_watch_modern_panels");W.buttonUpdate=_.p("web_modern_buttons");W.adsSemanticText=_.p("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.A(iM,_.b);iM.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.f([_.c(),_.l("design:type",Object)],iM.prototype,"data",void 0);_.f([_.c({computed:"computeHideDefaultAdBadge(data)"}),_.l("design:type",Boolean)],iM.prototype,"hideDefaultAdBadge",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],iM.prototype,"modernPanels",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],iM.prototype,"buttonUpdate",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],iM.prototype,"adsSemanticText",void 0);
iM=_.f([_.U({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],iM);
_.X(iM,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(AP4!==void 0)return AP4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return AP4=W},{mode:1});var z84;var Rg=function(){var W=_.b.apply(this,arguments)||this;W.darkerPanels=_.p("web_watch_darker_panels");W.enableSqueezebackPanels=_.p("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.p("desktop_shorts_v2_anchored_panel");W.modernPanels=_.p("kevlar_watch_modern_panels");W.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return W};
_.A(Rg,_.b);_.J=Rg.prototype;_.J.computeAdsInfoButton=function(){if(_.p("web_modern_buttons")){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.subtitleComplex,fo9))==null?void 0:P.adInfoRenderer}};
_.J.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}}}}}};
_.J.collapsedChanged=function(){var W;(W=this.data)!=null&&W.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.p("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.J.focus=function(W){this.titleElement&&_.XG(this.titleElement,W)};
_.J.computeTitleAriaLabel=function(W){var P=[];if(W.title){var x,I;P.push(this.ytRendererBehavior.getSimpleString(W.title)||((x=W.title.accessibility)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label))}W.contextualInfo&&P.push(this.ytRendererBehavior.getSimpleString(W.contextualInfo));return P.join(" ")};
_.J.onHeaderClick=function(W){this.shouldTriggerHeaderClick(W)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.OL(this.hostElement,[this.data.onClickCommand],this.hostElement)):(W=this.getVisibilityToggleButton())&&W.click())};
_.J.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var W=_.Q(this.data.visibilityButton,_.w6)||_.Q(this.data.visibilityButton,_.hc);W&&this.ytRendererBehavior.logExplicitClick(W)}};
_.J.getVisibilityToggleButton=function(){var W=_.g(this.hostElement).querySelector("#visibility-button").firstElementChild;return(W==null?void 0:W.is)==="ytd-toggle-button-renderer"?W:null};
_.J.shouldTriggerHeaderClick=function(W){return!_.Nx(_.c5(W),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.J.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(W){W=_.Q(W,_.hPf);this.targetId&&(W==null?void 0:W.targetId)===this.targetId&&(W=W.navigationButton)&&this.set("data.navigationButton",W)};
_.N1.Object.defineProperties(Rg.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.p("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!!(((W=this.entity)==null?0:W.isActionButtonHidden)||this.hideActionButton)}}});
Rg.prototype.collapsedChanged=Rg.prototype.collapsedChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Rg.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Rg.prototype,"ytdReduxBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Rg.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],Rg.prototype,"targetId",void 0);_.f([_.c(),_.l("design:type",Boolean)],Rg.prototype,"collapsed",void 0);_.f([_.c(),_.l("design:type",Boolean)],Rg.prototype,"hideActionButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Rg.prototype,"shortsPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Rg.prototype,"liveChatEngagementPanel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Rg.prototype,"darkerPanels",void 0);_.f([_.BM("#title"),_.l("design:type",HTMLElement)],Rg.prototype,"titleElement",void 0);_.f([_.c({computed:"computeAdsInfoButton(data)"}),_.l("design:type",Object)],Rg.prototype,"adsInfoButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Rg.prototype,"enableSqueezebackPanels",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Rg.prototype,"enableAnchoredPanel",void 0);_.f([_.c({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(W,P){return _.Jb(W.entities,"engagementPanelTitleHeaderEntity",P)}}),
_.l("design:type",Object)],Rg.prototype,"entity",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Rg.prototype,"modernPanels",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rg.prototype,"adsSemanticText",null);_.f([_.K_("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Rg.prototype,"collapsedChanged",null);
_.f([_.H("entity","hideActionButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rg.prototype,"isActionButtonHidden",null);Rg=_.f([_.U({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Rg);
_.X(Rg,"ytd-engagement-panel-title-header-renderer",function(){if(z84!==void 0)return z84;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return z84=W},{mode:1});var GH2;var FD=function(){return _.b.apply(this,arguments)||this};
_.A(FD,_.b);FD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],FD.prototype,"data",void 0);FD=_.f([_.U({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],FD);
_.X(FD,"ytd-macro-markers-info-item-renderer",function(){if(GH2!==void 0)return GH2;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return GH2=W},{mode:1});var EhQ;var MCd=function(W,P,x,I,O,B){_.vn.call(this);var Y=this;this.JSC$20041_containerElement=W;this.hostElement=P;this.supportedSyncItems=x;this.syncEntityKey=I;this.options=O;this.renderLazyListItems=B;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;ghy(this);DPB(this);this.JSC$20041_scrollAnimation=new _.zf(function(K){W.scrollTop=K});
_.nU(this,this.JSC$20041_scrollAnimation);this.addOnDisposeCallback(function(){Y.exitBrowsingMode(!1);Y.activeItem&&Y.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.A(MCd,_.vn);var ghy=function(W){var P=_.sx(_.FY().resolve(_.Ae),function(x){return x.entities.markersEngagementPanelSyncEntity||{}},function(x,I){var O;
x[W.syncEntityKey]!==I[W.syncEntityKey]&&((O=x[W.syncEntityKey])==null?void 0:O.activeItemIndex)!==void 0&&W.updatePanelActiveItem(x[W.syncEntityKey].activeItemIndex)});
W.unsubscribeFromTimedMarkersListSyncEntity=P;W.addOnDisposeCallback(P);$PM(W)},$PM=function(W){var P=_.FY().resolve(_.Ae);
P=_.DNA(P.getState(),W.syncEntityKey);(P==null?void 0:P.activeItemIndex)!==void 0&&(P=W.getItemByIndex(P.activeItemIndex))&&W.setActiveItem(P)},DPB=function(W){var P=new _.WO(W.onScroll,50,W);
_.nU(W,P);var x=function(){P.fire()};
W.JSC$20041_containerElement.addEventListener("scroll",x);W.addOnDisposeCallback(function(){W.JSC$20041_containerElement.removeEventListener("scroll",x)})};
_.J=MCd.prototype;
_.J.updatePanelActiveItem=function(W){var P=this.getItemByIndex(W);if(P){if(this.setActiveItem(P),this.contentVisible)if(this.browsingMode){var x;((x=this.options)==null?void 0:x.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(W=wjQ(this),P.offsetTop<this.JSC$20041_containerElement.clientHeight+this.JSC$20041_containerElement.scrollTop&&W&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));h8Q(this)}else this.scrollToItem(P)}else _.ge(new _.mW("Could not find "+this.supportedSyncItems+
" sync child to set active.",W,this.JSC$20041_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.J.getItemByIndex=function(W){var P;(P=this.renderLazyListItems)==null||P.call(this,W);P=this.JSC$20041_containerElement.querySelectorAll(this.supportedSyncItems);if(P.length>W)return P[W]};
_.J.setActiveItem=function(W){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));W.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=W};
_.J.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.JSC$20041_containerElement.scrollTop!==W&&this.JSC$20041_scrollAnimation.start(this.JSC$20041_containerElement.scrollTop,W,300)};
_.J.getScrollPositionForItem=function(W){if(this.JSC$20041_containerElement.querySelectorAll(this.supportedSyncItems)[0]===W)return 0;var P,x=((P=this.options)==null?0:P.percentOffset)?this.JSC$20041_containerElement.clientHeight*this.options.percentOffset:0;W=_.gJ(W).y+this.JSC$20041_containerElement.scrollTop-(_.gJ(this.JSC$20041_containerElement).y+x);return Math.max(0,Math.min(W,this.JSC$20041_containerElement.scrollHeight-this.JSC$20041_containerElement.offsetHeight))};
_.J.onScroll=function(){this.activeItemBelowSyncPosition=wjQ(this);if(this.activeItem&&!this.JSC$20041_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20041_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var W;switch((W=this.options)==null?void 0:W.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!HvB(this));h8Q(this);break;default:this.enterBrowsingMode(!0)}}};
_.J.enterBrowsingMode=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1){if(P.browsingMode)return O.return();P.browsingMode=!0;W&&P.hostElement.classList.add("browsing-mode");P.playerExitBrowsingModeListener=function(){P.exitBrowsingMode(!1)};
return _.S(O,_.Bq(),2)}x=O.yieldResult;(I=x)==null||I.addEventListener("SEEK_TO",P.playerExitBrowsingModeListener);_.Kl(O)})};
_.J.exitBrowsingMode=function(W){W=W===void 0?!0:W;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),W&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.J.removePlayerSeekListener=function(){var W=this,P,x;return _.y(function(I){if(I.nextAddress==1)return W.playerExitBrowsingModeListener?_.S(I,_.Bq(),3):I.jumpTo(0);P=I.yieldResult;(x=P)==null||x.removeEventListener("SEEK_TO",W.playerExitBrowsingModeListener);W.playerExitBrowsingModeListener=void 0;_.Kl(I)})};
var h8Q=function(W){var P;((P=W.options)==null?void 0:P.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(HvB(W)?W.hostElement.classList.remove("browsing-mode"):W.activeItem&&W.hostElement.classList.add("browsing-mode"))},wjQ=function(W){if(!W.activeItem)return!1;
var P,x=((P=W.options)==null?0:P.percentOffset)?W.JSC$20041_containerElement.clientHeight*W.options.percentOffset:0;return W.activeItem.offsetTop>=W.JSC$20041_containerElement.scrollTop+x},HvB=function(W){if(!W.activeItem)return!1;
var P=W.activeItem.offsetTop+14<=W.JSC$20041_containerElement.scrollTop+W.JSC$20041_containerElement.clientHeight;return W.activeItem.offsetTop+W.activeItem.clientHeight-14>=W.JSC$20041_containerElement.scrollTop&&P};
MCd.prototype.panelContentVisibleChanged=function(W){(this.contentVisible=W)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var e8v=function(W,P){W.syncEntityKey=P;var x;(x=W.unsubscribeFromTimedMarkersListSyncEntity)==null||x.call(W);ghy(W)},cPd=function(W,P){W.options=P};var qu=function(){var W=_.b.apply(this,arguments)||this;W.browsingMode=!1;W.modern=_.p("web_button_rework");W.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return W};
_.A(qu,_.b);_.J=qu.prototype;_.J.activeItemChanged=function(){if(!_.p("synced_panel_scrolling_controller")){var W;((W=this.syncEntity)==null?void 0:W.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.J.created=function(){var W=this;_.p("synced_panel_scrolling_controller")||(this.JSC$20045_scrollAnimation=new _.zf(function(P){W.contents.scrollTop=P}),this.boundExitBrowsingMode=function(){W.exitBrowsingMode(!1)})};
_.J.detached=function(){if(_.p("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.J.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"}}}};
_.J.dataChanged=function(){var W=this;_.p("synced_panel_scrolling_controller")?_.Xm(this,function(){if(W.scrollController){var P;(P=W.scrollController)==null||P.exitBrowsingMode(!1);var x,I,O;(I=W.scrollController)==null||e8v(I,(O=(x=W.data)==null?void 0:x.syncModelEntityKey)!=null?O:"default-macro-markers-list-renderer-entity-key");var B,Y,K;(K=W.scrollController)==null||cPd(K,{percentOffset:(B=W.data)==null?void 0:B.selectedItemAlignmentPercentOffset,floatingPillType:(Y=W.data)==null?void 0:Y.floatingPillType})}else{var Z,
d,v,m;W.scrollController=new MCd(W.contents,W.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(m=(Z=W.data)==null?void 0:Z.syncModelEntityKey)!=null?m:"default-macro-markers-list-renderer-entity-key",{percentOffset:(d=W.data)==null?void 0:d.selectedItemAlignmentPercentOffset,floatingPillType:(v=W.data)==null?void 0:v.floatingPillType},function(t){W.renderLazyListItems(t)})}W.scrollController.panelContentVisibleChanged(!!W.panelContentVisible)}):this.exitBrowsingMode()};
_.J.computeButtonShape=function(){var W=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){W.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.J.computeSyncEnabled=function(W){return!(W==null||!W.syncButtonLabel)};
_.J.renderLazyListItems=function(W){for(var P=this.contents.children,x=0,I=0;I<P.length;I++){var O=void 0;(O=P[I].ytLazyListBehavior)==null||O.fillRemainingListItems();var B=void 0,Y=void 0;O=_.Q((B=this.data)==null?void 0:(Y=B.contents)==null?void 0:Y[I],_.Owk);Y=B=void 0;if((B=O)==null?0:(Y=B.contents)==null?0:Y.length)x+=O.contents.length;if(x>=W)break}};
_.J.getItemByIndex=function(W){this.renderLazyListItems(W);var P=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(P.length>W)return P[W]};
_.J.setActiveItem=function(W){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);W.active!==void 0&&(W.active=!0);this.currentActiveItem=W};
_.J.handleSetActivePanelItemAction=function(W){if((W=_.Q(W,ePL))&&this.panelTargetId===W.panelTargetId){W=W.itemIndex;if(_.p("synced_panel_scrolling_controller")){var P,x;var I=(x=(P=this.data)==null?void 0:P.syncModelEntityKey)!=null?x:"default-macro-markers-list-renderer-entity-key"}else{var O;I=(O=this.data)==null?void 0:O.syncModelEntityKey}if(I){var B;((B=this.syncEntity)==null?void 0:B.activeItemIndex)!==W&&this.ytdReduxBehavior.dispatch(_.mG("markersEngagementPanelSyncEntity",I,{key:I,activeItemIndex:W}))}else this.updatePanelActiveItem(W)}};
_.J.updatePanelActiveItem=function(W){var P=this.getItemByIndex(W);P?(this.setActiveItem(P),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(P)):_.ge(new _.mW("Could not find ytd-macro-markers-list-renderer sync child to set active.",W,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.J.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.contents.scrollTop!==W&&this.JSC$20045_scrollAnimation.start(this.contents.scrollTop,W,300)};
_.J.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===W)return 0;W=_.gJ(W).y+this.contents.scrollTop-_.gJ(this.contents).y-this.getStickyHeaderHeight(W);return Math.min(W,this.contents.scrollHeight-this.contents.offsetHeight)};
_.J.getStickyHeaderHeight=function(W){if(W.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var P,x,I;return(I=(P=W.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(x=P.header)==null?void 0:x.offsetHeight)!=null?I:0}return 0};
_.J.onScroll=function(){_.p("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20045_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.J.enterBrowsingMode=function(){var W=this;return _.y(function(P){if(P.nextAddress==1){if(W.browsingMode)return P.return();W.browsingMode=!0;return _.S(P,_.F_().getPlayerPromise(),2)}W.player=P.yieldResult;W.player.addEventListener("SEEK_TO",W.boundExitBrowsingMode);_.Kl(P)})};
_.J.exitBrowsingMode=function(W){this.browsingMode&&(this.browsingMode=!1,(W===void 0||W)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.J.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.J.onSyncClick=function(){if(_.p("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.exitBrowsingMode()}else this.exitBrowsingMode()};
_.J.panelContentVisibleChanged=function(){if(_.p("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
qu.prototype.panelContentVisibleChanged=qu.prototype.panelContentVisibleChanged;qu.prototype.dataChanged=qu.prototype.dataChanged;qu.prototype.activeItemChanged=qu.prototype.activeItemChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],qu.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],qu.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qu.prototype,"data",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],qu.prototype,"useCustomColors",void 0);_.f([_.c({computed:"computeSyncEnabled(data)"}),_.l("design:type",Boolean)],qu.prototype,"syncEnabled",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],qu.prototype,"panelTargetId",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],qu.prototype,"panelContentVisible",void 0);_.f([_.BM("#contents"),_.l("design:type",HTMLElement)],qu.prototype,"contents",void 0);_.f([_.BM("#sync-container"),_.l("design:type",HTMLElement)],qu.prototype,"syncContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qu.prototype,"browsingMode",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],qu.prototype,"modern",void 0);_.f([_.c({selectorArgs:["data.syncModelEntityKey"],selector:_.DNA}),_.l("design:type",Object)],qu.prototype,"syncEntity",void 0);_.f([_.OZ("syncEntity.activeItemIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qu.prototype,"activeItemChanged",null);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qu.prototype,"dataChanged",null);_.f([_.OZ("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qu.prototype,"panelContentVisibleChanged",null);qu=_.f([_.U({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],qu);
_.X(qu,"ytd-macro-markers-list-renderer",function(){if(EhQ!==void 0)return EhQ;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return EhQ=W},{mode:1});var ar3;var Lu=function(){return _.b.apply(this,arguments)||this};
_.A(Lu,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Lu.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Lu.prototype,"data",void 0);Lu=_.f([_.U({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Lu);
_.X(Lu,"ytd-error-corrections-section-item-renderer",function(){if(ar3!==void 0)return ar3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return ar3=W},{mode:1});var bvf;var WG=function(){return _.b.apply(this,arguments)||this};
_.A(WG,_.b);WG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],WG.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],WG.prototype,"data",void 0);WG=_.f([_.U({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],WG);
_.X(WG,"ytd-error-corrections-section-renderer",function(){if(bvf!==void 0)return bvf;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return bvf=W},{mode:1});var kHM;var PG=function(){return _.b.apply(this,arguments)||this};
_.A(PG,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],PG.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],PG.prototype,"data",void 0);PG=_.f([_.U({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],PG);
_.X(PG,"ytd-topic-link-renderer",function(){if(kHM!==void 0)return kHM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return kHM=W},{mode:1});var UPy;var xb=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("kevlar_modern_sd_v2");W.modernLockupV2=_.p("modernize_structured_description_playlist_lockups_v2");W.modernTypography=_.p("web_modern_typography");return W};
_.A(xb,_.b);xb.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],xb.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xb.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xb.prototype,"modernLockupV2",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],xb.prototype,"modernTypography",void 0);xb=_.f([_.U({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],xb);
_.X(xb,"ytd-video-description-course-section-renderer",function(){if(UPy!==void 0)return UPy;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return UPy=W},{mode:1});var Xj3;var IT=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("kevlar_modern_sd_v2");W.modernTypography=_.p("web_modern_typography");return W};
_.A(IT,_.b);IT.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],IT.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],IT.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],IT.prototype,"modernTypography",void 0);
IT=_.f([_.U({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],IT);
_.X(IT,"ytd-video-description-files-section-renderer",function(){if(Xj3!==void 0)return Xj3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Xj3=W},{mode:1});var frG;var O5=function(){return _.b.apply(this,arguments)||this};
_.A(O5,_.b);O5.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],O5.prototype,"data",void 0);O5=_.f([_.U({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],O5);
_.X(O5,"ytd-video-description-gaming-section-renderer",function(){if(frG!==void 0)return frG;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return frG=W},{mode:1});var NRB;var J_=function(){var W=_.b.apply(this,arguments)||this;W.isExpanded=!1;return W};
_.A(J_,_.b);J_.prototype.computeHasDefaultMetadataEndpoint=function(W){var P;W=W==null?void 0:(P=W.defaultMetadata)==null?void 0:P.runs;return!(!W||W.length!==1||!W[0].navigationEndpoint)};
J_.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.N1.Object.defineProperties(J_.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],J_.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],J_.prototype,"isExpanded",void 0);_.f([_.c({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],J_.prototype,"hasDefaultMetadataEndpoint",void 0);
_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],J_.prototype,"isExpandable",null);_.f([_.H("data","isExpandable","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],J_.prototype,"showExpandedMetadata",null);J_=_.f([_.U({is:"ytd-info-row-renderer",disableElementRegistration:!0})],J_);
_.X(J_,"ytd-info-row-renderer",function(){if(NRB!==void 0)return NRB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return NRB=W},{mode:1});var lr4;var BG=function(){var W=_.b.apply(this,arguments)||this;W.currentIndex=0;W.supportComponentResize=!0;W.modern=_.p("kevlar_modern_sd_v2");W.JSC$20071_lastScrollContainerWidth=NaN;return W};
_.A(BG,_.b);_.J=BG.prototype;
_.J.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"}}}};
_.J.getItemsPath=function(){return"videoLockups"};
_.J.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.J.onIronResize=function(){this.updateVideoLockupStyles()};
_.J.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.J.updateVideoLockupStyles=function(){var W;this.JSC$20071_scrollContainer!==void 0&&(W=this.videoLockups)!=null&&W.length&&(W=this.JSC$20071_scrollContainer.clientWidth,W!==this.JSC$20071_lastScrollContainerWidth&&(this.JSC$20071_lastScrollContainerWidth=W,_.qa(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(W*.8,415)+"px"}),_.Lf(this.hostElement,"iron-resize")))};
_.N1.Object.defineProperties(BG.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var W=[],P;if((P=this.data)==null||!P.carouselLockups)return W;P=_.n(this.data.carouselLockups);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=void 0;((I=_.Q(x,oo3))==null?0:I.videoLockup)&&W.push(_.Q(x,oo3).videoLockup)}return W}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoLockups)==null||!W.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var W=[],P;if((P=this.data)==null||!P.carouselLockups)return W;var x;return(x=_.Q(this.data.carouselLockups[this.scrollCount],oo3))==null?void 0:x.infoRows}}});
BG.prototype.dataChanged=BG.prototype.dataChanged;BG.prototype.onIronResize=BG.prototype.onIronResize;BG.prototype.hiddenChanged=BG.prototype.hiddenChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],BG.prototype,"componentBehavior",void 0);_.f([_.h(_.RO.YtdHorizontalListBehavior),_.l("design:type",Object)],BG.prototype,"ytdHorizontalListBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],BG.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],BG.prototype,"inlineStructuredDescription",void 0);_.f([_.c({value:2}),_.l("design:type",Number)],BG.prototype,"initialCount",void 0);_.f([_.c(),_.l("design:type",Object)],BG.prototype,"currentIndex",void 0);
_.f([_.c(),_.l("design:type",Number)],BG.prototype,"scrollCount",void 0);_.f([_.c(),_.l("design:type",Object)],BG.prototype,"supportComponentResize",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],BG.prototype,"contentHidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],BG.prototype,"modern",void 0);_.f([_.BM("#scroll-container"),_.l("design:type",HTMLDivElement)],BG.prototype,"JSC$20071_scrollContainer",void 0);
_.f([_.OZ("contentHidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BG.prototype,"hiddenChanged",null);_.f([_.H("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],BG.prototype,"videoLockups",null);_.f([_.H("videoLockups"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BG.prototype,"hasVideoLockups",null);
_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BG.prototype,"onIronResize",null);_.f([_.H("data","scrollCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],BG.prototype,"infoRows",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BG.prototype,"dataChanged",null);BG=_.f([_.U({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],BG);
_.X(BG,"ytd-video-description-music-section-renderer",function(){if(lr4!==void 0)return lr4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return lr4=W},{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var TR2;var nV=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("kevlar_modern_sd_v2");W.modernTypography=_.p("web_modern_typography");return W};
_.A(nV,_.b);nV.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.f([_.c({}),_.l("design:type",Object)],nV.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],nV.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],nV.prototype,"modernTypography",void 0);
nV=_.f([_.U({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],nV);
_.X(nV,"ytd-video-description-transcript-section-renderer",function(){if(TR2!==void 0)return TR2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return TR2=W},{mode:1});var rP6;_.lq(_.kl(function(W){var P=_.dp(_.LHS,function(){return W.data().firstProviderLinkStatusEntityKey}),x=_.dp(_.LHS,function(){return W.data().secondProviderLinkStatusEntityKey}),I=function(){var O,B;
return((O=P())==null?void 0:O.linked)||((B=x())==null?void 0:B.linked)};
return _.u("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.u(_.mQ,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return W.data().sectionTitle}}),_.u(_.mQ,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return I()?W.data().connectedMessage:W.data().notConnectedMessage}}),_.u(_.V,{cond:I,
then:function(){return _.u(_.Ea,{data:function(){return W.data().connectedButton}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.u(_.V,{cond:function(){return!I()},
then:function(){return _.u(_.Ea,{data:function(){return W.data().notConnectedButton}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ii"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;return _.u("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.u("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.u(_.mQ,{text:function(){return P().sectionTitle}})),_.u("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.u(_.mQ,{text:function(){return P().bodyHeader}})),_.u("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.u(_.mQ,{text:function(){return P().bodyText}})),_.u(_.V,
{cond:function(){return P().attributionText},
then:function(){return _.u("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.u(_.mQ,{text:function(){return P().attributionText}}))}}))},"Ji"),"how-this-was-made-section-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){return _.u("yt-video-description-youchat-section-view-model",{class:_.O4("ytVideoDescriptionYouchatSectionViewModelHost")},_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.u(_.mQ,{text:function(){return W.data().sectionTitle}})),_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.u(_.mQ,{text:function(){return W.data().subHeaderText}})),_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.u(_.cq,{data:function(){return _.Q(W.data().primaryButton,
_.gp)}})))},"Ki"),"yt-video-description-youchat-section-view-model",{props:{data:_.cv}});var Yb=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("kevlar_modern_sd_v2");W.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return W};
_.A(Yb,_.b);_.J=Yb.prototype;
_.J.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}}}}}};
_.J.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.J.dataChanged=function(){var W,P;this.hasDescriptionOnly=!(((W=this.data)==null?void 0:(P=W.items)==null?void 0:P.length)!==1||!_.Q(this.data.items[0],S9d))};
_.J.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.J.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.J.autoFocusDescription=function(){var W;((W=_.FY().resolve(_.Rl(_.jK)))==null?0:W.isKeyBoardInUse())&&this.description&&_.fD(this.description)};
_.J.resize=function(){if(_.p("kevlar_disable_sd_resize"))this.JSC$20079_cardList&&_.Lf(this.JSC$20079_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Lf(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Lf(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.J.scrollToSection=function(W){if(W=this.getSectionElement(W))_.W7(this.hostElement,"yt-scroll-to-watch-element",[W]),W.focus()};
_.J.getSectionElement=function(W){switch(W){case "infocards-item-section":var P;return(P=this.infocardsSection)!=null?P:null;case "transcript-item-section":var x;return(x=this.transcriptSection)!=null?x:null;case "how-this-was-made-section-item-section":var I;return(I=this.howThisWasMadeSection)!=null?I:null;case "files-item-section":var O;return(O=this.filesSection)!=null?O:null;default:return null}};
_.J.handleSetActiveItemAction=function(W){var P=_.Q(W,ePL),x=P&&(P==null?void 0:P.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20079_cardList;if(P&&x){W=this.currentActiveChapter;var I=this.currentActiveProblem;P=x==null?void 0:x.getItemByIndex(P.itemIndex);var O=x=!0;P&&(P.active=!0,P.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(x=W!==P,O=!1,this.currentActiveChapter=P):(P==null?void 0:P.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(x=!1,O=I!==P,this.currentActiveProblem=P));W&&x&&(W.active=!1);I&&O&&(I.active=!1)}};
_.N1.Object.defineProperties(Yb.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.p("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Yb.prototype.onYtExpanderMoreTapped=Yb.prototype.onYtExpanderMoreTapped;Yb.prototype.onHiddenChanged=Yb.prototype.onHiddenChanged;Yb.prototype.dataChanged=Yb.prototype.dataChanged;Yb.prototype.panelContentVisibleChanged=Yb.prototype.panelContentVisibleChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Yb.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.Db),_.l("design:type",Object)],Yb.prototype,"ironResizableBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Yb.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],Yb.prototype,"panelContentVisible",void 0);_.f([_.c(),_.l("design:type",Boolean)],Yb.prototype,"hasDescriptionOnly",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Yb.prototype,"inlineStructuredDescription",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Yb.prototype,"hidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Yb.prototype,"shortsPanel",void 0);_.f([_.c(),_.l("design:type",Object)],Yb.prototype,"videoSummary",void 0);_.f([_.c(),_.l("design:type",Object)],Yb.prototype,"merchShelf",void 0);
_.f([_.H("videoSummary"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Yb.prototype,"showVideoSummary",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Yb.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Yb.prototype,"engagementPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Yb.prototype,"watchWhileSdp",void 0);
_.f([_.BM("ytd-expandable-video-description-body-renderer"),_.l("design:type",Object)],Yb.prototype,"description",void 0);_.f([_.BM("ytd-horizontal-card-list-renderer"),_.l("design:type",Object)],Yb.prototype,"JSC$20079_cardList",void 0);_.f([_.BM("ytd-horizontal-card-list-renderer[center-items]"),_.l("design:type",Object)],Yb.prototype,"problemWalkthroughCardList",void 0);_.f([_.BM("ytd-shelf-renderer"),_.l("design:type",Object)],Yb.prototype,"shelfSection",void 0);
_.f([_.BM("ytd-video-description-music-section-renderer"),_.l("design:type",Object)],Yb.prototype,"musicMetadataSection",void 0);_.f([_.BM("ytd-video-description-infocards-section-renderer"),_.l("design:type",Object)],Yb.prototype,"infocardsSection",void 0);_.f([_.BM("ytd-video-description-transcript-section-renderer"),_.l("design:type",Object)],Yb.prototype,"transcriptSection",void 0);
_.f([_.BM("how-this-was-made-section-view-model"),_.l("design:type",Object)],Yb.prototype,"howThisWasMadeSection",void 0);_.f([_.BM("ytd-video-description-files-section-renderer"),_.l("design:type",Object)],Yb.prototype,"filesSection",void 0);_.f([_.OZ("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yb.prototype,"panelContentVisibleChanged",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yb.prototype,"dataChanged",null);_.f([_.OZ("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yb.prototype,"onHiddenChanged",null);_.f([_.I7("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yb.prototype,"onYtExpanderMoreTapped",null);
Yb=_.f([_.U({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Yb);
_.X(Yb,"ytd-structured-description-content-renderer",function(){if(rP6!==void 0)return rP6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rP6=W},{mode:2});var ivB;var R8G;var y6=function(){return _.b.apply(this,arguments)||this};
_.A(y6,_.b);y6.prototype.computeAriaLabel=function(W){var P,x;return(W==null?void 0:(P=W.accessibility)==null?void 0:(x=P.accessibilityData)==null?void 0:x.label)||_.KK("LOADING",void 0,"Loading")};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],y6.prototype,"data",void 0);_.f([_.c({computed:"computeAriaLabel(data)"}),_.l("design:type",String)],y6.prototype,"ariaLabel",void 0);y6=_.f([_.jd({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],y6);
_.X(y6,"yt-content-loading-renderer",function(){if(R8G===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;ivB===void 0&&(ivB=document.createElement("template"));var I=ivB;x.call(P,I.content.cloneNode(!0),W.content.firstChild);R8G=W}W=R8G;return W},{mode:_.F4("kevlar_poly_si_batch_j043")?1:2});_.lq(_.kl(function(W){var P=_.n(_.YV(!1,void 0,"WbYeXc")),x=P.next().value,I=P.next().value;P=_.n(_.YV(!1,void 0,"msXkzc"));var O=P.next().value,B=P.next().value;_.AQ(function(){var Z=_.Q(W.data().collaboratePlaylistCollaborationSetting,xF3);Z&&I(Z.switchedOnByDefault);var d=_.Q(W.data().allowNewCollaboratorsPlaylistCollaborationSetting,xF3);d&&B(d.switchedOnByDefault);if(!Z&&!d||!Z&&W.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")I(!0),B(!0)});
var Y=function(Z){I(Z);B(Z);var d=W.data().playlistCollaborationEntityKey||"";var v=_.HM().getState();(v=_.Jb(v.entities,"playlistCollaborationEntity",d))&&(v==null?void 0:v.isCollaborative)===Z||_.HM().dispatch(_.mG("playlistCollaborationEntity",d,Object.assign({},v,{isCollaborative:Z})))},K=function(Z){B(Z)};
return _.u("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.u("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.u(_.Ea,{data:function(){return W.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(Z){return _.u(_.NR3,{data:Z.data,
onSwitch:Y})}})),_.u(_.V,{cond:x,
then:function(){return _.u("div",null,_.u("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.u(_.Ea,{data:function(){return W.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(Z){return _.u(_.NR3,{data:Z.data,
onSwitch:K,overrideDisabled:!1})}})),_.u(_.V,{cond:O,
then:function(){return _.u("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.u(_.Ea,{data:function(){return W.data().copyLinkButton}},{buttonViewModel:_.cq}))}}),_.u("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.u(_.Ea,{data:function(){return W.data().playlistCollaborators}},{contentListItemViewModel:_.t7O})))}}))},"Li"),"playlist-collaboration-view-model",{props:{data:_.cv}});var Fbd=_.kl(function(W){var P=W.data;var x=W.customCommandResolver;return _.u(_.qS,null,_.u("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.u(_.Ea,{data:function(){return P().adAvatar}},{adAvatarViewModel:function(I){return _.u(_.gpc,{data:I.data,
customCommandResolver:x})}})),_.u("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.u(_.V,{cond:function(){return P().headline},
then:function(I){return _.u(_.mQ,{text:I,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.u("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.u(_.Ea,{data:function(){return P().adBadge}},{adBadgeViewModel:function(I){return _.u(_.rZ,{data:I.data,
hasDot:function(){return P().primaryDetailsLine!==void 0},
customCommandResolver:x,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.u(_.Ea,{data:function(){return P().primaryDetailsLine}},{adDetailsLineViewModel:function(I){return _.u(_.iW,{data:I.data,
customCommandResolver:x,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Mi"),qpG=_.kl(function(W){var P=W.data;
var x=W.customCommandResolver;W=_.fa();_.RS(W,function(){return P().interaction},x);
_.FL(W,{visibilityCallback:function(I){var O,B=(O=P().interaction)==null?void 0:O.onFirstVisible;I&&B&&_.D1(B)},
showOption:_.U$});return _.u("ad-avatar-lockup-view-model",{class:function(){var I;return((I=P().interaction)==null?0:I.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:W,"aria-label":function(){var I,O;return(I=P().interaction)==null?void 0:(O=I.accessibility)==null?void 0:O.label}},_.u(_.tQ,null,_.u(_.mk,{when:function(){return P().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.u(Fbd,{data:P,
customCommandResolver:x})}),_.u(_.Va,null,function(){return null})))},"Ni");_.lq(_.kl(function(W){var P=W.data;var x=W.panelContentVisibility;W=_.fa();_.RS(W,function(){return P().interaction},qGm);
_.FL(W,{visibilityCallback:function(O){var B,Y=(B=P().interaction)==null?void 0:B.onFirstVisible;O&&Y&&_.D1(Y)},
showOption:_.U$});_.GB(function(){var O,B;if(B=_.eL("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Y;B=(Y=B())==null?void 0:Y.onLayoutVisibleCallback}else B=null;(O=B)==null||O()});
var I=function(){return x()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.u("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:W},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.u(_.V,{cond:_.NzS("(min-width: "+((0,_.EM)()+_.HE)+"px) or (max-width: 600px)"),then:function(){return _.u(_.Ea,{data:function(){return P().adImage}},{adImageViewModel:function(O){return _.u(_.xn,{data:O.data,
targetHeight:80,customCommandResolver:qGm})}})}})),_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.u(_.Ea,{data:function(){return P().adAvatarLockup}},{adAvatarLockupViewModel:function(O){return _.u(qpG,{data:O.data,
customCommandResolver:qGm})}})),_.u(_.V,{cond:I,
then:function(){return _.u(_.Ea,{data:function(){return P().adButton}},{adButtonViewModel:function(O){return _.u(_.fr,{data:O.data,
customCommandResolver:qGm})}})},
else:function(){return _.u(_.Ea,{data:function(){return P().menu}},{buttonViewModel:_.cq})}}),_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.u(_.Ea,{data:function(){var O=_.Q(P().toggleButton,_.DZ);
return{toggleButtonViewModel:Object.assign({},O,{isTogglingDisabled:!0,isToggled:I()})}}},{toggleButtonViewModel:_.MI})))))},"Oi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.cv,
panelContentVisibility:_.cv}});_.lq(_.kl(function(W){var P=function(){return _.Q(W.data().inputComposerViewModel,I4O)},x=function(){var w;
return((w=P())==null?void 0:w.youchatPendingResponseEntityKey)||""},I=_.dp(_.X4y,x),O=function(){var w;
return!((w=I())==null||!w.isPendingResponse)},B=_.n(_.YV(!0,void 0,"DR0q1d")),Y=B.next().value,K=B.next().value,Z=function(){return P().sectionTargetId||"youchat_messages_section"};
B=_.Nl();var d=_.fa(),v=_.dp(kG6,"chat_input_view_model_state"),m=UD4(),t=function(){var w;return!((w=v())==null||!w.value)};
_.AQ(function(){var w;!t()&&((w=P())==null?0:w.welcomeFeatureContinuation)&&(w={continuationCommand:{token:P().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.zm(w),m(!0));var a=Z(),k;(k=_.FY().resolve(_.Rl(_.Je)))==null||k.addEventListener("yt-navigate-start",function(){_.Ap.remove(a);m(!1)},{once:!0})});
var C=_.yB(function(w){var a=O()||!1;LDy(d.value);a||w.key!=="Enter"||w.shiftKey||(w.preventDefault(),D());return!1}),z=_.yB(function(){K(d.value.value.length===0);
return!1}),D=function(){var w,a,k,T,N,Io,F,nm,pm;
return _.y(function(zR){w=d.value.value;d.value.value="";LDy(d.value);a=WVM(Z(),w);_.zm(a);k=_.fDv(x());_.D1(((T=P())==null?void 0:T.onSubmitCommand)||{});k(!0);Io=String(Math.floor(((N=_.nC())==null?void 0:N.getCurrentTime())||0)*1E3);nm={continuationCommand:{token:(F=P())==null?void 0:F.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};pm={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:w,playerOffsetMs:Io}};_.zm(nm,{form:{formData:pm},commandController:{onSuccess:function(){k(!1)},
onServerError:function(){var Am=Z();_.zm({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:Am}}]}}});k(!1)}}});
_.Kl(zR)})};
return _.u("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:B},_.u("div",{class:"chatInputViewModelChatInputWrapper"},_.u("form",{class:"chatInputViewModelChatInputForm"},_.u("textarea",{class:"chatInputViewModelChatInput",el:d,"on:keydown":C,"on:keyup":z,placeholder:function(){var w,a;var k=_.Q((a=P())==null?void 0:a.inputFormField,wYy);return k==null?void 0:(w=k.contentProperties)==null?void 0:w.placeholderText},
rows:1}),_.u(_.cq,{data:function(){return _.Q(W.data().sendButton,_.gp)},
onClick:function(w){w.preventDefault();D();K(d.value.value.length===0)},
buttonOverrides:function(){return{disabled:Y()||O()}}})),_.u(_.mQ,{className:"chatInputViewModelChatDisclaimer",
text:function(){var w;return(w=_.Q(W.data().disclaimer,_.JcA))==null?void 0:w.text}})))},"Pi"),"yt-chat-input-view-model",{props:{data:_.cv}});var Lbv=["engagement-panel-clip-create","engagement-panel-clip-view"],WFO=0,KV=function(){var W=_.b.apply(this,arguments)||this;var P;W.headerData=(P=W.data)==null?void 0:P.header;W.darkerPanels=_.p("web_watch_darker_panels");W.matchContentTheme=_.p("web_watch_panel_content_match_theme");W.disableAutoFill=!1;W.isFullscreen=!1;W.isTheaterMode=!1;W.modernPanels=_.p("kevlar_watch_modern_panels");W.liveChatReplyPanel=!1;W.enableAnchoredPanel=_.p("desktop_shorts_v2_anchored_panel");W.disableBackdropFilter=
_.p("web_disable_backdrop_filter");W.trackEngagementPanelVisibility=_.p("web_watch_track_engagement_panel_visibility");W.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 W};
_.A(KV,_.b);_.J=KV.prototype;
_.J.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(W){var P;
return(W==null?void 0:(P=W.webComponentHint)==null?void 0:P.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.J.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var W;if((W=this.hostElement.parentElement)==null?0:W.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.J.detached=function(){this.updateTheaterDisablement()};
_.J.showPanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Gr.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.J.maybeScrollToItemSection=function(W){var P=this,x,I=W==null?void 0:(x=W.sectionListEngagementPanelExtras)==null?void 0:x.scrollToItemSectionIdentifier;I&&_.Gr.addJob(function(){var O;(O=P.sectionListRendererElement)==null||O.scrollToItemSection(I)},8)};
_.J.hidePanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Gr.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.J.updatePanel=function(W,P,x,I){var O=this;if((W=W==null?void 0:W.engagementPanelSectionListRenderer)||I){if(W){I=W.header;var B=W.content,Y=W.footer;(W=W.targetId)&&this.set("data.targetId",W);I&&this.set("data.header",I);B&&this.set("data.content",B);Y&&this.set("data.footer",Y)}else I&&(W=I.content,B=I.secondaryHeaderContent,(I=I.targetId)&&this.set("data.targetId",I),W&&this.set("data.content",W),B&&(this.secondaryHeaderData=B));this.updateChildVisibilityProperties();if(P){var K;_.p("kevlar_update_panel_focus_scroll_killswitch")||
(K={preventScroll:!0});this.focus(K)}_.Xm(this,function(){_.Lf(O.hostElement,"yt-refit");O.maybeScrollToItemSection(x)})}};
_.J.computeHeaderData=function(){var W,P=(0,_.jU.unsafeClone)((W=this.data)==null?void 0:W.header);if(P){W=new _.R(Object.keys(P)[0]);var x=_.Q(P,W),I=_.Q(this.secondaryHeaderData,W);I&&_.tF(P,W,Object.assign({},I,x))}return P};
_.J.getReloadContinuation=function(){var W,P,x,I=_.n(((W=this.data)==null?void 0:(P=W.content)==null?void 0:(x=P.sectionListRenderer)==null?void 0:x.continuations)||[]);for(W=I.next();!W.done;W=I.next())if(W=W.value,W.reloadContinuationData)return W.reloadContinuationData.continuation};
_.J.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var W;((W=this.data)==null?0:W.targetId)&&(W=this.contentElement.firstElementChild)&&W.setAttribute("panel-target-id",this.data.targetId)};
_.J.forwardPopupClosedToFlowRootRenderer=function(){var W=_.g(this.hostElement).querySelector("ytd-flow-root-renderer");if(W)W.onPopupClosed()};
_.J.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var W=_.p("web_watch_imax_theater_mode")&&this.isTheaterMode;W=_.p("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W;if(_.p("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||W){var P;this.visibility=
(P=this.data)==null?void 0:P.visibility;var x;this.trackEngagementPanelVisibility&&((x=this.data)==null?void 0:x.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var I,O,B,Y;this.contentEmpty=!!(((I=this.data)==null?0:(O=I.content)==null?0:O.structuredDescriptionContentRenderer)&&Object.keys((B=this.data)==null?void 0:(Y=B.content)==null?void 0:Y.structuredDescriptionContentRenderer).length===0);(P=_.FY().resolve(_.m3))&&P.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.J.isTheaterModeChanged=function(){_.p("web_watch_imax_theater_mode")&&this.hidePanel()};
_.J.isFullscreenChanged=function(){_.p("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.J.focus=function(W){if(this.header)this.header.focus(W);else{var P;(P=_.g(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||P.focus(W)}};
_.J.visibilityChanged=function(){if(!_.p("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var W=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O=I||!this.lastVisibility,B,Y,K=(B=this.data)==null?void 0:(Y=B.identifier)==null?void 0:Y.tag,
Z;if(((Z=this.data)==null?0:Z.onShowCommands)&&W&&O)_.OL(this.hostElement,this.data.onShowCommands,this.hostElement),K&&_.Xe().dispatch(_.LK({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:K}}));else{var d;((d=this.data)==null?0:d.onHideCommands)&&P&&x&&(_.OL(this.hostElement,this.data.onHideCommands,this.hostElement),K&&_.Xe().dispatch(_.LK({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:K}})))}W&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*WFO++));_.p("kevlar_watch_focus_on_engagement_panels")&&
W&&I&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.J.notifyVisibilityChanged=function(W){var P;_.P7(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,W,(P=this.data)==null?void 0:P.targetId])};
_.J.updateTheaterDisablement=function(){if(!_.p("kevlar_watch_theater_disablement_killswitch")){var W=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Lbv.includes(W)&&!_.p("watch_next_grid_ignore_disallowed_panels")){var P=_.z6(_.Xe().getState()),x=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";W!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():x?(this.originalTheaterState===void 0&&(this.originalTheaterState=P,this.theaterDisablementPanelIdentifier=
W),P&&_.W7(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.J.clearTheaterDisablement=function(){_.W7(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.J.updateChildVisibilityProperties=function(){this.hostElement||_.p("kevlar_panel_property_init_killswitch")||this._enableProperties();var W=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=W);var P,x=(P=this.headerElement)==null?void 0:P.firstElementChild;if(x&&!this.adHeaderImageLockupViewModel){P=W==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";x.collapsed=P;x=_.g(x).querySelector("#visibility-button");if(!x)return;(x=x.firstElementChild)&&
x.polymerController.is==="ytd-toggle-button-renderer"&&x.polymerController.data.isToggled!==P&&x.polymerController.set("data.isToggled",P)}var I;if(P=(I=this.contentElement)==null?void 0:I.firstElementChild)if(W&&W!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")P.removeAttribute("panel-content-visible");else{P.setAttribute("panel-content-visible","");var O;(O=P.markDirty)==null||O.call(P)}};
_.J.onYtChangeEngagementPanelVisibilityAction=function(W){var P=this,x,I=(x=this.data)==null?void 0:x.targetId,O,B,Y;x=((O=this.data)==null?void 0:(B=O.identifier)==null?void 0:B.tag)||((Y=this.data)==null?void 0:Y.panelIdentifier);var K=_.Q(W,_.y6m),Z;W=I&&(K==null?void 0:K.targetId)===I||x&&(K==null?void 0:(Z=K.panelIdentifier)==null?void 0:Z.tag)===x;this.dialog&&W&&(K==null?void 0:K.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(I==="engagement-panel-comments-section"?_.W7(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.W7(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",x]));!_.p("kevlar_use_engagement_panel_management_component")&&W&&(I=K.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!I?_.Gr.addJob(function(){P.visibility=K.visibility},2,this.hideDelayMs):this.visibility=K.visibility,K.visibility&&this.notifyVisibilityChanged(K.visibility))};
_.J.onYtScrollToEngagementPanelCommand=function(W){var P,x=(P=this.data)==null?void 0:P.targetId,I,O,B;P=((I=this.data)==null?void 0:(O=I.identifier)==null?void 0:O.tag)||((B=this.data)==null?void 0:B.panelIdentifier);W=_.Q(W,_.tAW);var Y;(x&&(W==null?void 0:W.targetId)===x||P&&(W==null?void 0:(Y=W.panelIdentifier)==null?void 0:Y.tag)===P)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.W7(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.J.attachVEs=function(W){var P,x;(W==null?0:(P=W.content)==null?0:(x=P.productListRenderer)==null?0:x.trackingParams)&&_.YY().graftServerVe(W.content.productListRenderer.trackingParams);var I,O;(W==null?0:(I=W.content)==null?0:(O=I.transcriptRenderer)==null?0:O.trackingParams)&&_.YY().graftServerVe(W.content.transcriptRenderer.trackingParams)};
_.J.onYtUpdateEngagementPanelAction=function(W){var P,x=(P=this.data)==null?void 0:P.targetId;W=_.Q(W,aom);x&&(W==null?void 0:W.targetId)===x&&(this.updatePanel({engagementPanelSectionListRenderer:{header:W==null?void 0:W.header,content:W==null?void 0:W.content}},!1),this.attachVEs(W))};
_.J.onYtShowEngagementPanelScrimAction=function(W){var P,x=(P=this.data)==null?void 0:P.targetId;W=_.Q(W,cim);x&&(W==null?void 0:W.engagementPanelTargetId)===x&&(this.scrimmed=!0)};
_.J.onYtHideEngagementPanelScrimAction=function(W){var P,x=(P=this.data)==null?void 0:P.targetId;W=_.Q(W,H9G);x&&(W==null?void 0:W.engagementPanelTargetId)===x&&(this.scrimmed=!1)};
_.J.getIdentifier=function(){var W,P,x;return((W=this.data)==null?void 0:W.panelIdentifier)||((P=this.data)==null?void 0:(x=P.identifier)==null?void 0:x.tag)};
_.J.getSurface=function(){var W,P;return(W=this.data)==null?void 0:(P=W.identifier)==null?void 0:P.surface};
_.N1.Object.defineProperties(KV.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var W=this.getIdentifier();return W==="engagement-panel-youchat"||W==="PAyouchat"}}});
KV.prototype.visibilityChanged=KV.prototype.visibilityChanged;KV.prototype.isFullscreenChanged=KV.prototype.isFullscreenChanged;KV.prototype.isTheaterModeChanged=KV.prototype.isTheaterModeChanged;KV.prototype.dataChanged=KV.prototype.dataChanged;KV.prototype.forwardPopupClosedToFlowRootRenderer=KV.prototype.forwardPopupClosedToFlowRootRenderer;KV.prototype.onYtRendererstamperFinished=KV.prototype.onYtRendererstamperFinished;
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],KV.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],KV.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],KV.prototype,"ytEventForwardingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],KV.prototype,"data",void 0);
_.f([_.c({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.l("design:type",Object)],KV.prototype,"headerData",void 0);_.f([_.c(),_.l("design:type",Object)],KV.prototype,"secondaryHeaderData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"visibility",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],KV.prototype,"contentEmpty",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],KV.prototype,"scrimmed",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],KV.prototype,"dialog",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],KV.prototype,"dropdown",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"darkerPanels",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"matchContentTheme",void 0);_.f([_.c(),_.l("design:type",Object)],KV.prototype,"disableAutoFill",void 0);
_.f([_.c({reflectToAttribute:!0,value:_.p("optimal_reading_width_comments_ep")}),_.l("design:type",Boolean)],KV.prototype,"optimalReadingWidthComments",void 0);_.f([_.c(),_.l("design:type",Number)],KV.prototype,"hideDelayMs",void 0);_.f([_.c({selector:_.CN,reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"isFullscreen",void 0);_.f([_.c({selector:_.z6,reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"isTheaterMode",void 0);
_.f([_.c(),_.l("design:type",Number)],KV.prototype,"showDelayMs",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.targetId"),_.l("design:type",Object),_.l("design:paramtypes",[])],KV.prototype,"targetId",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],KV.prototype,"webSize",null);_.f([_.c(),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],KV.prototype,"hideFooterBorder",null);
_.f([_.c(),_.l("design:type",Object)],KV.prototype,"isWatch",void 0);_.f([_.c(),_.l("design:type",Object)],KV.prototype,"originalTheaterState",void 0);_.f([_.c(),_.l("design:type",Object)],KV.prototype,"theaterDisablementPanelIdentifier",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"modernPanels",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],KV.prototype,"isWatchWhilePanel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],KV.prototype,"shortsPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],KV.prototype,"liveChatEngagementPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"liveChatReplyPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"enableAnchoredPanel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KV.prototype,"disableBackdropFilter",void 0);_.f([_.c(),_.l("design:type",Object)],KV.prototype,"trackEngagementPanelVisibility",void 0);_.f([_.BM("#header"),_.l("design:type",HTMLElement)],KV.prototype,"headerElement",void 0);_.f([_.BM("#header > *"),_.l("design:type",HTMLElement)],KV.prototype,"header",void 0);_.f([_.BM("ytd-section-list-renderer"),_.l("design:type",Object)],KV.prototype,"sectionListRendererElement",void 0);
_.f([_.BM("panel-ad-header-image-lockup-view-model"),_.l("design:type",HTMLElement)],KV.prototype,"adHeaderImageLockupViewModel",void 0);_.f([_.BM("#content"),_.l("design:type",HTMLElement)],KV.prototype,"contentElement",void 0);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KV.prototype,"onYtRendererstamperFinished",null);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KV.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.f([_.K_("data","isFullscreen","isTheaterMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KV.prototype,"dataChanged",null);_.f([_.OZ("isTheaterMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KV.prototype,"isTheaterModeChanged",null);
_.f([_.OZ("isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KV.prototype,"isFullscreenChanged",null);_.f([_.OZ("visibility"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KV.prototype,"visibilityChanged",null);KV=_.f([_.U({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],KV);
_.X(KV,"ytd-engagement-panel-section-list-renderer",function(){if(Q4M!==void 0)return Q4M;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Q4M=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var PJQ;var Z7=function(){var W=_.b.apply(this,arguments)||this;W.lastRenderedPanelIds=new Set;W.visiblePanels=[];W.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.A(Z7,_.b);_.J=Z7.prototype;_.J.dataChanged=function(){if(this.data){for(var W=[],P=_.n(this.data),x=P.next();!x.done;x=P.next()){x=x.value;var I=void 0,O=void 0,B=(I=x)==null?void 0:(O=I.engagementPanelSectionListRenderer)==null?void 0:O.visibility;O=I=void 0;((I=x)==null?0:(O=I.engagementPanelSectionListRenderer)==null?0:O.targetId)&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&W.push(x)}this.visiblePanels=W}else this.visiblePanels=[]};
_.J.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}}};
_.J.withoutVisiblePanelById=function(W){return this.visiblePanels.filter(function(P){var x;return((x=P.engagementPanelSectionListRenderer)==null?void 0:x.targetId)!==W})};
_.J.onYtChangeEngagementPanelVisibilityAction=function(W){var P=this,x=_.Q(W,_.y6m);if(this.data&&(x==null?0:x.targetId)&&(x==null?0:x.visibility)){var I,O=(I=this.data.find(function(Y){var K;return((K=Y.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===x.targetId}))==null?void 0:I.engagementPanelSectionListRenderer;
if(O){var B=this.withoutVisiblePanelById(x.targetId);x.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(W=this.data.find(function(Y){var K;return((K=Y.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===x.targetId}))&&(B=[W].concat(_.ju(B)));
this.hideDelayMs&&x.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&B.length===0?_.Gr.addJob(function(){O.visibility=x.visibility;P.visiblePanels=B},10,this.hideDelayMs):(O.visibility=x.visibility,this.visiblePanels=B);
_.P7(this.hostElement,"yt-engagement-panels-visible-changed",[B])}}};
_.J.onRendererstamperFinished=function(){var W=new Set(this.visiblePanels.map(function(P){var x;return(x=P.engagementPanelSectionListRenderer)==null?void 0:x.targetId}));
this.handlePanelVisibilityChange(W,this.lastRenderedPanelIds);this.lastRenderedPanelIds=W};
_.J.handlePanelVisibilityChange=function(W,P){W=W===void 0?new Set:W;P=P===void 0?new Set:P;if(this.data)for(var x=_.n(this.data),I=x.next();!I.done;I=x.next()){I=I.value;var O=void 0,B=void 0,Y=(O=I)==null?void 0:(B=O.engagementPanelSectionListRenderer)==null?void 0:B.targetId;if(Y&&(O=P.has(Y),B=W.has(Y),Y=void 0,!O&&B?(B=O=void 0,Y=(O=I)==null?void 0:(B=O.engagementPanelSectionListRenderer)==null?void 0:B.onShowCommands):O&&!B&&(B=O=void 0,Y=(O=I)==null?void 0:(B=O.engagementPanelSectionListRenderer)==
null?void 0:B.onHideCommands),Y))for(I=_.n(Y),Y=I.next();!Y.done;Y=I.next())this.ytComponentBehavior.resolveCommand(Y.value)}};
Z7.prototype.onRendererstamperFinished=Z7.prototype.onRendererstamperFinished;Z7.prototype.dataChanged=Z7.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Z7.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Z7.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Z7.prototype,"lastRenderedPanelIds",void 0);_.f([_.c(),_.l("design:type",Number)],Z7.prototype,"hideDelayMs",void 0);_.f([_.c(),_.l("design:type",Array)],Z7.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Array)],Z7.prototype,"visiblePanels",void 0);_.f([_.c(),_.l("design:type",Boolean)],Z7.prototype,"isWatchWhilePanel",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Z7.prototype,"dataChanged",null);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Z7.prototype,"onRendererstamperFinished",null);Z7=_.f([_.U({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Z7);
_.X(Z7,"ytd-watch-engagement-panels",function(){if(PJQ!==void 0)return PJQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return PJQ=W},{mode:1});var xjf;var oT=function(){return _.b.apply(this,arguments)||this};
_.A(oT,_.b);oT.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.a$(_.g(this.hostElement).querySelector("#text"),_.VzP(_.jWP,this.data.companionLegalText))};
oT.prototype.computeAutoScrollEnabled=function(W,P){return W&&!P};
oT.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
oT.prototype.onToggleTap=function(){this.expanded=!this.expanded};
oT.prototype.expandedChanged=oT.prototype.expandedChanged;oT.prototype.dataChanged=oT.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.B4m),_.l("design:type",Object)],oT.prototype,"ytdAutoScrollBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],oT.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],oT.prototype,"expanded",void 0);
_.f([_.c({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.l("design:type",Boolean)],oT.prototype,"autoScrollEnabled",void 0);_.f([_.c(),_.l("design:type",String)],oT.prototype,"expanderIcon",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oT.prototype,"dataChanged",null);
_.f([_.OZ("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oT.prototype,"expandedChanged",null);oT=_.f([_.U({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],oT);
_.X(oT,"ytd-companion-legal-text-renderer",function(){if(xjf!==void 0)return xjf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return xjf=W},{mode:1});var IM4;var SD=function(){var W=_.b.apply(this,arguments)||this;W.buttonUpdate=_.p("web_modern_buttons");W.kevlarWatchGrid=_.p("kevlar_watch_grid");W.centerAlignDescription=_.p("action_companion_center_align_description");W.truncateDomain=_.p("action_companion_truncate_domain");return W};
_.A(SD,_.b);_.J=SD.prototype;_.J.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.J.getOnLayoutVisibleCallback=function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.J.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",SD.JSC$20125_DEFAULT_AD_BADGE_RENDERER);var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.J.getButtonRenderer=function(W){return W.actionButton&&_.Q(W.actionButton,_.w6)?(delete _.Q(W.actionButton,_.w6).navigationEndpoint,_.Q(W.actionButton,_.w6)):{}};
_.J.onClick=function(W){var P=this;if((!_.p("web_modern_buttons")||!_.Nx(_.c5(W),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){W=_.RP();var x=this.getLayoutId();W&&x&&_.p("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(I){(new _.or(I)).executeCommand(P.data.navigationEndpoint,x)}):_.p("kevlar_companion_resolve_command_killswitch")?_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.W7(this.hostElement,"yt-companion-ad-clicked",["action-companion",x])}};
_.N1.Object.defineProperties(SD.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.data)==null?0:(P=W.detailsLine)==null?0:(x=P.adRating)==null?0:x.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return((W=this.data)==null?0:(P=W.detailsLine)==null?0:(x=P.adRating)==null?0:(I=x.ratingIcon)==null?0:I.iconType)?_.PW(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return((W=this.data)==null?0:(P=W.detailsLine)==null?0:(x=P.texts)==null?0:(I=x[0])==null?0:I.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 W,P;return((W=this.data)==null?0:(P=W.description)==null?0:P.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var W=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return W?W.indexOf("/default_banner")!==-1:!0}}});
SD.prototype.onClick=SD.prototype.onClick;SD.prototype.dataChanged=SD.prototype.dataChanged;SD.JSC$20125_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.KK("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],SD.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],SD.prototype,"rendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],SD.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],SD.prototype,"buttonUpdate",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],SD.prototype,"kevlarWatchGrid",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],SD.prototype,"centerAlignDescription",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],SD.prototype,"truncateDomain",void 0);
_.f([_.c({computed:"computeButtonOverride(buttonUpdate)"}),_.l("design:type",Object)],SD.prototype,"buttonOverride",void 0);_.f([_.H("data.detailsLine.adRating.ratingText"),_.l("design:type",Object),_.l("design:paramtypes",[])],SD.prototype,"getRating",null);_.f([_.H("getRating"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],SD.prototype,"computeRatingHidden",null);
_.f([_.H("data.detailsLine.adRating.ratingIcon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],SD.prototype,"iconType",null);_.f([_.H("data.detailsLine.texts.0.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],SD.prototype,"getDetailsLine",null);_.f([_.H("getDetailsLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],SD.prototype,"computeDetailsLineHidden",null);
_.f([_.H("data.description.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],SD.prototype,"getDescriptionText",null);_.f([_.H("getDescriptionText"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],SD.prototype,"computeDescriptionTextHidden",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],SD.prototype,"interactionLoggingClientData",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],SD.prototype,"hideBanner",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SD.prototype,"dataChanged",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],SD.prototype,"onClick",null);SD=_.f([_.U({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],SD);
_.X(SD,"ytd-action-companion-ad-renderer",function(){if(IM4!==void 0)return IM4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return IM4=W},{mode:_.F4("kevlar_poly_si_batch_j067")?1:2});var OpL;var Jvy;var ui=function(){var W=_.b.apply(this,arguments)||this;W.buttonUpdate=_.p("web_modern_buttons");W.hideLegacyBanner=_.p("enable_dsa_one_click_ata_translators_infeed_elements");W.adInfoButtonStyle="mono";W.adInfoButtonType="text";W.noDotAdBadge=!0;return W};
_.A(ui,_.b);_.J=ui.prototype;_.J.getOnLayoutVisibleCallback=function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.J.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 W=this.data.image.thumbnail.thumbnails[0];this.imageSrc=W.url?_.my(W.url):void 0;this.imageWidth=W.width||0;this.imageHeight=W.height||0}this.data.clickthroughEndpoint&&_.Q(this.data.clickthroughEndpoint,_.aR)&&(W=_.Q(this.data.clickthroughEndpoint,_.aR).url,_.p("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
W||"":W?(W=_.my(W),this.clickThroughUrl=_.u5(W)):this.clickThroughUrl=void 0);(W=this.getOnLayoutVisibleCallback())&&W()}};
_.J.onClick=function(W){_.Nx(_.c5(W),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(W)};
_.J.handleClick=function(){var W=this;this.data&&this.data.clickthroughEndpoint&&(_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(P){W.macroReplacementBehavior.sendServiceRequestAction([P])}),_.W7(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.J.onLoad=function(){_.P7(this.hostElement,"yt-refit-popups-action")};
_.N1.Object.defineProperties(ui.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
ui.prototype.onLoad=ui.prototype.onLoad;ui.prototype.onClick=ui.prototype.onClick;ui.prototype.dataChanged=ui.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ui.prototype,"rendererBehavior",void 0);_.f([_.h(MR2.YtMacroReplacementBehavior),_.l("design:type",Object)],ui.prototype,"macroReplacementBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ui.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ui.prototype,"buttonUpdate",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ui.prototype,"hideLegacyBanner",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ui.prototype,"adInfoButtonStyle",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ui.prototype,"adInfoButtonType",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ui.prototype,"macros",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ui.prototype,"interactionLoggingClientData",null);_.f([_.c(),_.l("design:type",String)],ui.prototype,"clickThroughUrl",void 0);_.f([_.c(),_.l("design:type",_.ZH)],ui.prototype,"imageSrc",void 0);_.f([_.c(),_.l("design:type",Number)],ui.prototype,"imageWidth",void 0);_.f([_.c(),_.l("design:type",Number)],ui.prototype,"imageHeight",void 0);_.f([_.c(),_.l("design:type",Object)],ui.prototype,"noDotAdBadge",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ui.prototype,"dataChanged",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ui.prototype,"onClick",null);_.f([_.I7("load"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ui.prototype,"onLoad",null);ui=_.f([_.U({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],ui);
_.X(ui,"ytd-image-companion-renderer",function(){if(Jvy!==void 0)return Jvy;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Jvy=W},{mode:_.F4("kevlar_poly_si_batch_j067")?1:2});var B$3;var dH=function(){return _.b.apply(this,arguments)||this};
_.A(dH,_.b);_.J=dH.prototype;_.J.dataChanged=function(){this.set("data.adBadge",dH.JSC$20134_DEFAULT_AD_BADGE_RENDERER);if(this.data){var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.J.getOnLayoutVisibleCallback=function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.J.onCompanionClicked=function(W){this.data&&(W.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.W7(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.J.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var W=_.RP(),P=this.getLayoutId(),x=this.data.clickToAdvSiteEndpoint;W&&P&&_.p("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(I){(new _.or(I)).executeCommand(x,P)}):_.Lf(this.hostElement,"yt-navigate",{endpoint:x})}};
_.J.sendTrackingPings=function(W){if(W&&W.length!==0&&W[0].loggingUrls&&(W=W[0].loggingUrls.map(this.getBaseUrl)))for(var P=0;P<W.length;P++)_.cP(W[P])};
_.J.getBaseUrl=function(W){return W.baseUrl||""};
_.N1.Object.defineProperties(dH.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.eL("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
dH.prototype.onCompanionClicked=dH.prototype.onCompanionClicked;dH.prototype.dataChanged=dH.prototype.dataChanged;dH.JSC$20134_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.KK("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dH.prototype,"data",void 0);_.f([_.BM("#title"),_.l("design:type",HTMLElement)],dH.prototype,"shopTitle",void 0);
_.f([_.K_("data.impressionEndpoints"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dH.prototype,"dataChanged",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],dH.prototype,"interactionLoggingClientData",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],dH.prototype,"onCompanionClicked",null);
dH=_.f([_.U({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],dH);
_.X(dH,"ytd-shopping-companion-renderer",function(){if(B$3!==void 0)return B$3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return B$3=W},{mode:1});_.lq(_.kl(function(W){var P=W.data;var x=_.fa();_.RS(x,function(){return P().interaction},PQM);
_.FL(x,{visibilityCallback:function(I){var O,B=(O=P().interaction)==null?void 0:O.onFirstVisible;I&&B&&_.D1(B)},
showOption:_.U$});_.GB(function(){var I,O;O=(O=_.eL("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.onLayoutVisibleCallback:null;(I=O)==null||I()});
W=_.yB(function(){_.P7(x.value,"yt-refit-popups-action")});
return _.u("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":W,el:x,"aria-label":function(){var I,O;return(I=P().interaction)==null?void 0:(O=I.accessibility)==null?void 0:O.label}},_.u("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.u(_.Ea,{data:function(){return P().adImage}},{adImageViewModel:function(I){return _.u(_.xn,{data:I.data,
targetHeight:80,customCommandResolver:PQM})}})),_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.u(_.Ea,{data:function(){return P().adBadge}},{adBadgeViewModel:function(I){return _.u(_.rZ,{data:I.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.u(_.Ea,{data:function(){return P().menu}},{buttonViewModel:_.cq}))))},"Qi"),"banner-image-layout-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;W=_.fa();_.RS(W,function(){return P().interaction},xyG);
_.FL(W,{visibilityCallback:function(x){var I,O=(I=P().interaction)==null?void 0:I.onFirstVisible;x&&O&&_.D1(O)},
showOption:_.U$});_.GB(function(){var x,I;I=(I=_.eL("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.onLayoutVisibleCallback:null;(x=I)==null||x()});
return _.u("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:W},_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.u(_.Ea,{data:function(){return P().adImage}},{adImageViewModel:function(x){return _.u(_.xn,{data:x.data,
targetHeight:80,customCommandResolver:xyG})}})),_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.u(_.Ea,{data:function(){return P().adAvatarLockup}},{adAvatarLockupViewModel:function(x){return _.u(qpG,{data:x.data,
customCommandResolver:xyG})}})),_.u(_.Ea,{data:function(){return P().adButton}},{adButtonViewModel:function(x){return _.u(_.fr,{data:x.data,
customCommandResolver:xyG})}}),_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.u(_.Ea,{data:function(){return P().menu}},{buttonViewModel:_.cq}))))},"Ri"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.cv}});var nv4={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"},s5=function(){var W=_.b.apply(this,arguments)||this;W.updateCompanionDataJobId=0;W.contentVideoId=null;W.player=null;W.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return W};
_.A(s5,_.b);_.J=s5.prototype;_.J.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:nv4}}};
_.J.attached=function(){var W=this,P=_.RP();P&&P.getPlayerPromise().then(function(x){W.getCachedDataAndListen(x)})};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.J.updateRendererStamper=function(){var W={};if(this.data)for(var P in nv4)if(this.data[P]){W[P]=this.data[P];break}if(this.oneofRenderer!=void 0||Object.keys(W).length)this.oneofRenderer=W};
_.J.getCachedDataAndListen=function(W){var P=this.retrieveCachedCompanionData();P&&Object.keys(P).length&&this.receiveCompanionData(P);this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=W};
_.J.retrieveCachedCompanionData=function(){return _.xW.yt&&_.xW.yt.www&&_.xW.yt.www.ads&&_.xW.yt.www.ads.eventcache&&_.xW.yt.www.ads.eventcache.getLastCompanionData?_.xW.yt.www.ads.eventcache.getLastCompanionData():null};
_.J.receiveCompanionData=function(W){W&&Object.keys(W).length?(this.contentVideoId=W.contentVideoId,this.setCompanionData(W)):this.setCompanionData(W)};
_.J.setCompanionData=function(W){this.cancelPendingCompanionAdJobs();if(W){this.updateCompanionDataJobId=0;for(var P in nv4)nv4.hasOwnProperty(P)&&(this.data[P]=void 0);W.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",W.shoppingCompanionCarouselRenderer):W.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",W.imageCompanionAdRenderer):W.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",W.actionCompanionAdRenderer),_.P7(this.hostElement,
"yt-hide-unlimited-offer-module"),_.P7(this.hostElement,"yt-hide-tvfilm-offer-module")):W.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",W.bannerImageLayoutViewModel):W.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",W.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.J.dataChanged=function(){var W=this,P=_.RP();P?P.getPlayerPromise().then(function(x){W.contentVideoId&&x.getVideoUrl().includes("v="+W.contentVideoId)||(W.cancelPendingCompanionAdJobs(),W.updateRendererStamper())}):_.co(Error("hm"))};
_.J.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Gr.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.J.handleCompanionAdClicked=function(W,P){this.player.onAdUxClicked(W,P);this.player.pauseVideo()};
s5.prototype.dataChanged=s5.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],s5.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],s5.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],s5.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],s5.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],s5.prototype,"oneofRenderer",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],s5.prototype,"dataChanged",null);s5=_.f([_.U({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],s5);
_.X(s5,"ytd-companion-slot-renderer",function(){if(OpL!==void 0)return OpL;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return OpL=W},{mode:_.F4("kevlar_poly_si_batch_j067")?
1:2});var Y64;var vG=function(){return _.b.apply(this,arguments)||this};
_.A(vG,_.b);vG.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
vG.prototype.dataChanged=vG.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vG.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],vG.prototype,"companionSlotData",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vG.prototype,"dataChanged",null);
vG=_.f([_.U({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],vG);
_.X(vG,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Y64!==void 0)return Y64;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Y64=W},{mode:1});var yvO;var mL=function(){var W=_.b.apply(this,arguments)||this;W.skinnyMode=!1;W.COMPACT_EVENT_COUNT=4;W.onShelfToggleButtonTap=function(){W.logTap(W.data);W.showingMore=!W.showingMore};
W.onShelfToggleButtonFocus=function(){W.showingMore||(W.logTap(W.data),W.showingMore=!0,_.Xm(W,function(){var P=W.COMPACT_EVENT_COUNT-1,x;(x=_.g(W.hostElement).querySelector("#event-"+P))==null||x.focus()}))};
return W};
_.A(mL,_.b);_.J=mL.prototype;_.J.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.J.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.J.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.WM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.WM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.WM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.WM(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.WM(this.infoTooltip,this.infoTooltip.hide))};
_.J.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.WM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.WM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.WM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.WM(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.WM(this.infoTooltip,this.infoTooltip.hide))};
_.J.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)};
_.J.onShowingMoreChanged=function(){var W;this.showingMoreChanged((W=this.showingMore)!=null?W:!1)};
_.J.showingMoreChanged=function(W){var P=this.get("data.events")||[];this.set("restEvents",P.slice(1,W?P.length:this.COMPACT_EVENT_COUNT).map(function(x){return x.ticketEventRenderer}));
P.slice(0,W?P.length:this.COMPACT_EVENT_COUNT).forEach(function(x){var I=_.E_();x=x.ticketEventRenderer.trackingParams;_.G7()&&I&&x&&(x=_.ox(x),I&&_.eI(I,x))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.J.computeAriaLabel=function(W){return W.subtitle1+", "+W.subtitle2};
_.J.logTap=function(W){_.G7()&&this.ytRendererBehavior.logExplicitClick(W)};
_.J.isKeyboardAction=function(W){return this.get("detail.x",W)===0&&this.get("detail.y",W)===0};
_.J.onFirstEventTap=function(W){W.target&&this.handleTap(W.target,this.firstEvent,this.isKeyboardAction(W))};
_.J.onTicketLinkTap=function(W){W.target&&this.handleTap(W.target,W.model.item,this.isKeyboardAction(W))};
_.J.handleTap=function(W,P,x){if(P.buttonCommand)if(P.hasMultipleOffers)Object.assign(_.Q(P.buttonCommand,_.Ac),{properties:{source:x?"keyboard":"tap"}}),this.logTap(P),this.popupPositionTarget=W,_.OL(this.hostElement,[P.buttonCommand],this.hostElement);else{var I;if((I=_.Q(P.buttonCommand,_.aR))==null?0:I.url)this.logTap(P),_.ME(window,_.Q(P.buttonCommand,_.aR).url)}};
mL.prototype.onShowingMoreChanged=mL.prototype.onShowingMoreChanged;mL.prototype.dataChanged=mL.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mL.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],mL.prototype,"firstEvent",void 0);_.f([_.c(),_.l("design:type",Object)],mL.prototype,"restEvents",void 0);_.f([_.c(),_.l("design:type",String)],mL.prototype,"imageUrl",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],mL.prototype,"showingMore",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],mL.prototype,"canShowMore",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mL.prototype,"skinnyMode",void 0);_.f([_.c(),_.l("design:type",HTMLElement)],mL.prototype,"popupPositionTarget",void 0);_.f([_.BM("#banner-info-tooltip"),_.l("design:type",Object)],mL.prototype,"infoTooltip",void 0);
_.f([_.BM("#info-container"),_.l("design:type",HTMLElement)],mL.prototype,"infoContainer",void 0);_.f([_.BM("#shelf-toggler"),_.l("design:type",HTMLElement)],mL.prototype,"shelfToggleButton",void 0);_.f([_.BM("#separator"),_.l("design:type",HTMLDivElement)],mL.prototype,"separator",void 0);_.f([_.c(),_.l("design:type",String)],mL.prototype,"shelfTogglerLabelText",void 0);_.f([_.c(),_.l("design:type",String)],mL.prototype,"shelfTogglerIcon",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mL.prototype,"dataChanged",null);_.f([_.K_("showingMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mL.prototype,"onShowingMoreChanged",null);mL=_.f([_.U({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],mL);
_.X(mL,"ytd-ticket-shelf-renderer",function(){if(yvO!==void 0)return yvO;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return yvO=W},{mode:1});var KFM;var Zp2;var V6=function(){return _.b.apply(this,arguments)||this};
_.A(V6,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],V6.prototype,"data",void 0);V6=_.f([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],V6);
_.X(V6,"ytd-comments-entry-point-message-renderer",function(){if(Zp2!==void 0)return Zp2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Zp2=W},{mode:1});var ov2;var t_=function(){return _.b.apply(this,arguments)||this};
_.A(t_,_.b);_.N1.Object.defineProperties(t_.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.teaserAvatar)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],t_.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],t_.prototype,"hasAvatar",null);t_=_.f([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],t_);
_.X(t_,"ytd-comments-entry-point-teaser-renderer",function(){if(ov2!==void 0)return ov2;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return ov2=W},{mode:1});var S6m;var pV=function(){return _.b.apply(this,arguments)||this};
_.A(pV,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],pV.prototype,"data",void 0);pV=_.f([_.U({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],pV);
_.X(pV,"ytd-comments-simplebox-renderer",function(){if(S6m!==void 0)return S6m;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return S6m=W},{mode:1});var jD=function(){var W=_.b.apply(this,arguments)||this;W.fullHeight=!_.p("comment_teaser_full_height_kill_switch")&&_.p("kevlar_watch_grid");return W};
_.A(jD,_.b);jD.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"}}}};
jD.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
jD.prototype.onTap=function(){var W=this.tapCommand;W&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(W))};
jD.prototype.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.N1.Object.defineProperties(jD.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.onTap)return this.data.onTap;var P,x;if(((P=this.data)==null?0:P.teaserContent)||((x=this.data)==null?0:x.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
jD.prototype.onKeyUp=jD.prototype.onKeyUp;jD.prototype.onTap=jD.prototype.onTap;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],jD.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jD.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],jD.prototype,"fullHeight",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jD.prototype,"tapCommand",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jD.prototype,"simpleboxPlaceholder",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jD.prototype,"hasSimpleboxPlaceholder",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jD.prototype,"simpleboxAvatar",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jD.prototype,"teaserContent",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jD.prototype,"hasTeaserContent",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jD.prototype,"teaserAvatar",null);
_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jD.prototype,"hasTeaserAvatar",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jD.prototype,"messageText",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jD.prototype,"contentRenderer",null);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jD.prototype,"hasContents",null);
_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jD.prototype,"hasContentRenderer",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jD.prototype,"onTap",null);_.f([_.I7("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[_.s7]),_.l("design:returntype")],jD.prototype,"onKeyUp",null);jD=_.f([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],jD);
_.X(jD,"ytd-comments-entry-point-header-renderer",function(){if(KFM!==void 0)return KFM;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return KFM=W},{mode:1});var u2y;_.WF(_.YC,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var djM=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),s32={numberText:"",heightPx:2*djM,shouldAnimate:!1},Q6=function(){var W=_.b.apply(this,arguments)||this;W.usingAnimatedComponents=!0;W.wasDetailed=!1;W.JSC$20171_browserSupportsAnimation=_.p("web_supports_animations_api");W.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};W.detailed=!1;W.shouldAnimate=!1;W.viewCountProps=s32;W.dateTextProps=
s32;W.metadataBadgesInDescription=_.p("web_metadata_badges_in_description");return W};
_.A(Q6,_.b);_.J=Q6.prototype;_.J.resetAnimationState=function(){this.shouldAnimate=!1};
_.J.updateDynamicMetadata=function(){if(this.JSC$20171_browserSupportsAnimation){if(!this.detailed){var W,P,x,I;var O=(W=this.videoPrimaryInfoRenderer)==null?void 0:(P=W.viewCount)==null?void 0:(x=P.videoViewCountRenderer)==null?void 0:(I=x.extraShortViewCount)==null?void 0:I.simpleText;var B,Y,K,Z;var d=(B=this.videoPrimaryInfoRenderer)==null?void 0:(Y=B.viewCount)==null?void 0:(K=Y.videoViewCountRenderer)==null?void 0:(Z=K.shortViewCount)==null?void 0:Z.simpleText}if(!d){var v,m,t,C;O=(v=this.videoPrimaryInfoRenderer)==
null?void 0:(m=v.viewCount)==null?void 0:(t=m.videoViewCountRenderer)==null?void 0:(C=t.unlabeledViewCountValue)==null?void 0:C.simpleText;var z,D,w,a;d=(z=this.videoPrimaryInfoRenderer)==null?void 0:(D=z.viewCount)==null?void 0:(w=D.videoViewCountRenderer)==null?void 0:(a=w.viewCount)==null?void 0:a.simpleText}var k,T,N;W=Number((k=this.videoPrimaryInfoRenderer)==null?void 0:(T=k.viewCount)==null?void 0:(N=T.videoViewCountRenderer)==null?void 0:N.originalViewCount);var Io,F;k=(Io=this.videoPrimaryInfoRenderer)==
null?void 0:(F=Io.relativeDateText)==null?void 0:F.simpleText;var nm;Io=!((nm=this.videoPrimaryInfoRenderer)==null||!nm.relativeDateText);if(O&&d&&W&&(k||!Io)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;nm=d.split(new RegExp("("+O+")"));O=YO3(nm[0]);var pm;d={numberText:(pm=nm[1])!=null?pm:"",numberValue:W,heightPx:2*djM,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var zR;pm=((zR=nm[2])!=null?zR:"")+"  ";this.setViewCount(d,O,YO3(pm));
if(!this.detailed&&Io){O=k.split(/(\d+)/);zR=YO3(O[0]);var Am;pm={numberText:(Am=O[1])!=null?Am:"",heightPx:2*djM,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var kW;Am=((kW=O[2])!=null?kW:"")+"  ";this.setDateText(pm,zR,YO3(Am))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.J.setViewCount=function(W,P,x){_.kz(P)!==_.kz(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=P);this.viewCountProps.numberText!==(W==null?void 0:W.numberText)&&(this.viewCountProps=W||s32);_.kz(x)!==_.kz(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=x)};
_.J.setDateText=function(W,P,x){_.kz(P)!==_.kz(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=P);this.dateTextProps.numberText!==(W==null?void 0:W.numberText)&&(this.dateTextProps=W||s32);_.kz(x)!==_.kz(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=x)};
_.J.onYtUpdateViewershipAction=function(W){this.videoPrimaryInfoRenderer&&(_.Q(W,ZSd).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.Q(W,ZSd).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.Q(W,ZSd).viewCount)))};
_.J.onYtUpdateDateTextAction=function(W){if(this.videoPrimaryInfoRenderer){W=_.Q(W,_.y$f).dateText;this.shouldAnimate=!0;var P;((P=this.videoPrimaryInfoRenderer)==null?0:P.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",W):this.set("videoPrimaryInfoRenderer.dateText",W)}};
_.N1.Object.defineProperties(Q6.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return n03(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.kz(n03(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.kz(this.viewCountPreNumberText),this.viewCountProps.numberText,_.kz(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.kz(this.dateTextPreNumberText),this.dateTextProps.numberText,_.kz(this.dateTextPostNumberText)].join("")}}});
Q6.prototype.updateDynamicMetadata=Q6.prototype.updateDynamicMetadata;Q6.prototype.resetAnimationState=Q6.prototype.resetAnimationState;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Q6.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Q6.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Q6.prototype,"videoPrimaryInfoRenderer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q6.prototype,"detailed",void 0);_.f([_.c(),_.l("design:type",Object)],Q6.prototype,"shouldAnimate",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q6.prototype,"viewCountPreNumberText",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q6.prototype,"viewCountProps",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q6.prototype,"viewCountPostNumberText",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q6.prototype,"dateTextPreNumberText",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q6.prototype,"dateTextProps",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q6.prototype,"dateTextPostNumberText",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Q6.prototype,"metadataBadgesInDescription",void 0);_.f([_.H("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.l("design:type",Object),_.l("design:paramtypes",[])],Q6.prototype,"infoText",null);
_.f([_.H("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.l("design:type",String),_.l("design:paramtypes",[])],Q6.prototype,"descriptionInfoTooltipText",null);_.f([_.H("detailed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Q6.prototype,"showDescriptionInfoTooltip",null);
_.f([_.H("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.l("design:type",String),_.l("design:paramtypes",[])],Q6.prototype,"animatedViewCountAccessibilityLabel",null);_.f([_.H("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.l("design:type",String),_.l("design:paramtypes",[])],Q6.prototype,"animatedDateTextAccessibilityLabel",null);
_.f([_.OZ("videoPrimaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Q6.prototype,"resetAnimationState",null);_.f([_.OZ("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Q6.prototype,"updateDynamicMetadata",null);Q6=_.f([_.U({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Q6);
_.X(Q6,"ytd-watch-info-text",function(){if(u2y!==void 0)return u2y;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return u2y=W},{mode:1});var vv9;var mj2=_.kl(function(W){var P=W.data;var x=W.setTapCommand;_.jj(function(){var I=_.AF(P().onTap);x(I)});
return _.u("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.u(_.Ea,{data:function(){return P().avatar}},{avatarViewModel:_.DI}),_.u("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.u("span",null,function(){return P().simpleboxText})))},"Si");var VW3=_.kl(function(W){return _.u("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.u(_.V,{cond:function(){return _.Q(W.data().avatar,_.rp)},
then:function(P){return _.u(_.DI,{data:P,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.u("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.u(_.mQ,{text:function(){return W.data().teaserText}})))},"Ti");var tWv=_.kl(function(W){var P=W.data;var x=W.setTapCommand;_.jj(function(){var I=_.AF(P().onTap);x(I)});
return _.u("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.u(_.Ea,{data:function(){return P().teasers}},{commentsEntryPointTeaserViewModel:VW3}))},"Ui");var p3Q=_.kl(function(W){var P=W.data;var x=W.setTapCommand;_.jj(function(){var I=_.AF(P().onTap);x(I)});
return _.u("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.u(_.mQ,{text:function(){return P().messageText}}))},"Vi");var j3M=_.kl(function(W){var P=W.data;var x=W.setTapCommand;var I=W.isDisabled;_.jj(function(){var O=(I==null?0:I())?void 0:_.AF(P().onTap);x(O)});
return _.u("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.u(_.Sy,{icon:function(){return P().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.u(_.V,{cond:function(){return P().image},
then:function(O){return _.u(_.bq,{data:O,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.u(_.mQ,{text:function(){return P().text},
className:function(){return P().image||P().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.u(_.Ea,{data:function(){return P().button}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:I==null?void 0:I()}}})}}))},"Wi");var Q3B=_.kl(function(W){var P=W.data;var x=W.itemIndex;var I=W.selectedIndex;var O=W.indexUpdatedCallback;var B=W.observer;W=W.title;var Y=_.fa(),K=function(m){x()===I()&&O(m)},Z=_.G4(a6v),d=_.G4(bim),v=function(){var m,t,C;
return((m=P())==null?void 0:m.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!Z()||((t=P())==null?void 0:t.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&d().includes("PAposts_by_host")||((C=P())==null?void 0:C.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&d().includes("PAyouchat")};
_.AQ(function(){B&&B().observe(Y.value)});
return _.u("yt-carousel-item-view-model",{el:Y,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":W},_.u(_.Ea,{data:function(){var m,t;return(t=(m=_.Q(P().carouselItem,$yO))==null?void 0:m.textCarousel)!=null?t:P().carouselItem}},{textCarouselItemViewModel:function(m){return _.u(j3M,{data:m.data,
setTapCommand:K,isDisabled:v})},
commentTeaserCarouselItemViewModel:function(m){return _.u(tWv,{data:m.data,setTapCommand:K})},
commentInputBoxCarouselItemViewModel:function(m){return _.u(mj2,{data:m.data,setTapCommand:K})},
commentsEntryPointMessageViewModel:function(m){return _.u(p3Q,{data:m.data,setTapCommand:K})}}))},"Xi");var CJ9=_.kl(function(W){var P=W.numDots;var x=W.activeIndex;return _.u("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.u(_.sV,{each:function(){return Array.from({length:P()})},
keyBy:"INDEX"},function(I,O){return _.u("div",{class:function(){var B={};return _.BF("ytCarouselDotsShapeDot",(B.ytCarouselDotsShapeDotActive=O===x(),B))}})}))},"Yi");var Avf=_.kl(function(W){var P=W.data;var x=W.handleCarouselNavigation;var I=W.numItems;var O=W.selectedIndex;var B=function(){return{disabled:O()===0}},Y=function(){return{disabled:O()===I()-1}};
return _.u("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.u("div",null,_.u("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return P().title}),_.u(_.V,{cond:function(){return P().subtitle},
then:function(K){return _.u("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return P().subtitleAccessibilityText}},K)}})),_.u(_.V,{cond:function(){return I()>1},
then:function(){return _.u("div",{class:"ytCarouselTitleViewModelNavigation"},_.u(CJ9,{numDots:I,activeIndex:O}),_.u(_.V,{cond:function(){return P().previousButton},
then:function(K){return _.u(_.Ea,{data:K},{buttonViewModel:function(Z){return _.u(_.cq,{data:Z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return x(-1)},
buttonOverrides:B})}})}}),_.u(_.V,{cond:function(){return P().nextButton},
then:function(K){return _.u(_.Ea,{data:K},{buttonViewModel:function(Z){return _.u(_.cq,{data:Z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return x(1)},
buttonOverrides:Y})}})}}))}}))},"Zi");_.lq(_.kl(function(W){var P=W.data;var x=_.fa(),I=_.fa(),O=_.$$("HTML_DIR")==="rtl",B=!1,Y=0,K=0;W=_.n(_.YV(0,void 0,"m0dtIf"));var Z=W.next().value,d=W.next().value;W=_.n(_.YV(0,void 0,"fL6I6"));var v=W.next().value,m=W.next().value;W=_.n(_.YV(!1,void 0,"ZPrwNb"));var t=W.next().value,C=W.next().value,z=function(){var nm,pm,zR;return(zR=(nm=P())==null?void 0:(pm=nm.carouselTitles)==null?void 0:pm.length)!=null?zR:0},D=function(){I.value&&I.value.scrollLeft!==Y&&d((O?I.value.scrollLeft<Y:I.value.scrollLeft>
Y)?Math.min(Z()+1,z()-1):Math.max(Z()-1,0))},w;
window.IntersectionObserver&&(w=new IntersectionObserver(function(nm){nm=_.n(nm);for(var pm=nm.next();!pm.done;pm=nm.next())if(pm.value.isIntersecting){if(B){B=!1;break}D()}else d(K)},{threshold:.2}));
_.jj(function(){if(I.value){var nm=(O?-1:1)*(v()/z()+12)*(t()&&w?K:Z());typeof I.value.scrollTo==="function"?I.value.scrollTo({left:nm,behavior:"smooth"}):I.value.scrollLeft=nm;Y=nm;K=t()&&w?K:Z()}});
var a,k=function(nm){a=nm};
_.AQ(function(){var nm=function(){var zR=I.value.offsetWidth*z(),Am=24*(z()-1);m(zR+Am)};
nm();if(window.ResizeObserver){var pm=new ResizeObserver(nm);pm.observe(I.value);_.C4(function(){pm.disconnect();w&&w.disconnect()})}});
W=_.yB(function(nm){if(_.zeC(_.Ua(nm),x.value,["BUTTON".toString()])||!a)return!1;_.FY().resolve(_.qR).resolveCommand(a,{forceClickLogging:!0});return!1});
var T=function(nm){nm=Z()+nm;nm>=0&&nm<z()&&(B=!0,d(nm))},N=_.yB(function(){C(!0);
return!1}),Io=_.yB(function(){w||D();
C(!1);return!1}),F={};
return _.u("yt-video-metadata-carousel-view-model",{class:_.O4("ytVideoMetadataCarouselViewModelHost",(F.ytVideoMetadataCarouselViewModelShortMode=_.p("mweb_video_metadata_carousel_short_mode"),F)),el:x,"on:click":W,"on:touchstart":N,"on:touchend":Io,hidden:function(){var nm,pm;return!((nm=P())==null?0:(pm=nm.carouselItems)==null?0:pm.length)}},_.u("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.u(_.V,{cond:function(){return P().carouselTitles},
then:function(nm){return _.u(_.Ea,{data:function(){return nm()[t()&&w?K:Z()]}},{carouselTitleViewModel:function(pm){return _.u(Avf,{data:pm.data,
handleCarouselNavigation:T,numItems:z,selectedIndex:Z})}})}})),_.u("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:I},_.u("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+v()+"px;"}},_.u(_.V,{cond:function(){return P().carouselItems},
then:function(nm){return _.u(_.sV,{each:nm},function(pm,zR){return _.u(_.Ea,{data:function(){return pm}},{carouselItemViewModel:function(Am){return _.u(Q3B,{data:Am.data,
itemIndex:zR,selectedIndex:Z,indexUpdatedCallback:k,observer:w,title:function(){a:{var kW=zR();var $W,ao=($W=P())==null?void 0:$W.carouselTitles;if(ao&&(kW=ao[kW])){var e8;kW=(e8=_.Q(kW,M6m))==null?void 0:e8.title;break a}kW=void 0}return kW}})}})})}}))))},"$i"),"yt-video-metadata-carousel-view-model",{props:{data:_.cv}});var zv4=_.p("web_action_buttons_update_owner_width")?32:12,CV=function(){var W=_.b.apply(this,arguments)||this;W.metadataBadgesInDescription=_.p("web_metadata_badges_in_description");W.descriptionCollapsed=!0;W.useFadedScrimDescription=_.p("kevlar_enable_faded_scrim_on_description");W.skinnyMode=!1;W.playlist=!1;W.isDark=document.documentElement.hasAttribute("dark");W.disableVideoOwnerOnTap=_.p("swatchie_video_owner_on_tap_ks");W.swatcherooDelayLoad=_.p("swatcheroo_enable_ghost_cards");W.primaryMenuWidth=
0;W.videoId="";W.titleHeadlineXs=_.p("web_watch_typography_title_headline_xs");W.titleHeadlineS=_.p("web_watch_typography_title_headline_s");W.titleHeadlineM=_.p("web_watch_typography_title_headline_m");W.titleHashtagBlackLinkified=_.p("web_title_hashtag_black_linkified");W.titleHashtagGreyLinkified=_.p("web_title_hashtag_grey_linkified");W.actionButtonsUpdateOwnerWidth=_.p("web_action_buttons_update_owner_width");W.shouldForceIconOnly=!1;W.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};W.isFullscreen=!1;W.isTheaterMode=!1;return W};
_.A(CV,_.b);_.J=CV.prototype;_.J.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.J.updateOwnerAndDescriptionPosition=function(){_.p("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.wA(this.bottomRowElement,this.ownerElement)):(_.wA(this.bottomRowElement,this.descriptionElement),_.wA(this.topRowElement,this.ownerElement)))};
_.J.titleOnTap=function(W){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Nx(_.c5(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var P;((P=window.getSelection())==null?0:P.toString().length)||this.handleExpandDescriptionCommands()}};
_.J.videoOwnerOnTap=function(W){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Nx(_.c5(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.J.detached=function(){var W=this,P;return _.y(function(x){(P=W.resizeObserver)==null||P.disconnect();_.Kl(x)})};
_.J.maybeAttachResizeObserver=function(){var W=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.WO(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){W.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.J.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var W=this.hostElement.clientWidth,P=Math.max(this.largerItemWrap?400:350,W/2-zv4);if(_.p("web_action_buttons_update_owner_width")){var x;P=(((x=document.getElementById("owner"))==null?void 0:x.clientWidth)||0)+zv4}this.actionsOnSeparateLine=this.primaryMenuWidth>W-P?!0:!1}};
_.J.stripAttributedDescription=function(W){return{content:W.content.replace(/[\r\n]{2,}/g,"\n")}};
_.J.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.p("web_modern_buttons"),forceIconButton:!_.p("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:_.p("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"}}}};
_.J.videoPrimaryInfoRendererChanged=function(){var W;if((W=this.videoPrimaryInfoRenderer)==null?0:W.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.J.videoSecondaryInfoRendererChanged=function(){var W,P;(P=(W=this.descriptionInlineExpander).collapse)==null||P.call(W);this.descriptionExpandClientVe=_.td(110509);this.descriptionCollapseClientVe=_.td(110510);W=_.E_();P=_.G7();W&&P&&(_.p("combine_ve_grafts")?(_.BK(_.YY(),this.descriptionExpandClientVe,P),_.BK(_.YY(),this.descriptionCollapseClientVe,P)):_.H7(W,P,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.J.structuredDescriptionContentRendererChanged=function(){_.p("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.J.updateTopLevelIconsOnly=function(){var W=this;_.p("top_level_update_killswitch")||this.menu&&_.Gr.addLowPriorityJob(function(){W.menu.topLevelIconsOnly=W.skinnyMode},_.Wi("swathceroo_delay_flexible_menu_update",100))};
_.J.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.p("web_action_buttons_minimize_subscribe")};
_.J.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.J.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.J.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.J.onYtTextInlineExpanderExpandedChanged=function(){if(!_.p("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var W,P;(P=(W=this.structuredDescriptionContentRendererElement).resize)==null||P.call(W)}};
_.J.onRenderStamperFinished=function(W){(W==null?void 0:W.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.J.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.J.onYtExpanderLessTapped=function(){var W,P=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showLessCommand;P&&this.ytComponentBehavior.resolveCommand(P)};
_.J.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.J.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.J.onDescriptionClick=function(W){if(!_.Nx(_.c5(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var P;((P=window.getSelection())==null?0:P.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.p("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.J.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.J.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.J.logCollapseClick=function(){var W=_.E_();W&&this.descriptionCollapseClientVe&&_.bB(W,this.descriptionCollapseClientVe)};
_.J.logExpandClick=function(){var W=_.E_();W&&this.descriptionExpandClientVe&&_.bB(W,this.descriptionExpandClientVe)};
_.J.collapseDescription=function(){this.descriptionCollapsed=!0};
_.J.scrollToTopOfContainer=function(){_.W7(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.J.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.J.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.J.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.J.resize=function(){if(this.descriptionInlineExpander){var W,P;(P=(W=this.descriptionInlineExpander).resize)==null||P.call(W)}else _.ge(new _.mW("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var x;(x=this.menu)==null||x.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.p("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.J.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var W,P,x,I,O=_.p("web_action_buttons_update_owner_width")?(x=(W=_.g(this.menu).querySelector("#button-shape"))==null?void 0:W.clientWidth)!=null?x:0:(I=(P=_.g(this.menu).querySelector("#button"))==null?void 0:P.clientWidth)!=null?I:0,B,Y;W=((Y=(B=_.g(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:B.clientWidth)!=null?Y:0)+8+O;var K,Z;O=(Z=(K=_.g(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:K.children.length)!=null?Z:2;W<=8*O||(this.primaryMenuWidth=W)}};
_.J.onYtUpdateTitleAction=function(W){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.Q(W,K_4).title)};
_.J.onYtUpdateDescriptionAction=function(W){if(W=_.Q(W,_.smp)){var P,x=!((P=this.videoSecondaryInfoRenderer)==null||!P.attributedDescription);W.isEmpty||!W.description&&!W.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):W.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",W.attributedDescription):W.description&&(x?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.pt(W.description)):this.set("videoSecondaryInfoRenderer.description",W.description))}};
_.J.onYtDarkModeToggledAction=function(W){this.isDark=W};
_.J.registerPanel=function(){if(!_.p("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var W=_.p("web_watch_imax_theater_mode")&&this.isTheaterMode;W=_.p("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W;var P=_.FY().resolve(_.m3);P&&!W&&P.registerPanel("engagement-panel-structured-description",this)}};
_.J.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.J.showPanel=function(W){this.expandDescription();var P=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;P.resize();var x,I=W==null?void 0:(x=W.sectionListEngagementPanelExtras)==null?void 0:x.scrollToItemSectionIdentifier;I?_.Gr.addJob(function(){P==null||P.scrollToSection(I)},8):this.scrollToTopOfContainer()};
_.J.isVisible=function(){return!this.descriptionCollapsed};
_.J.getReloadContinuation=function(){};
_.J.hidePanel=function(){};
_.J.updatePanel=function(){};
_.N1.Object.defineProperties(CV.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.structuredDescriptionContentRenderer)!=null&&W.items){var P;W=_.n((P=this.structuredDescriptionContentRenderer)==null?void 0:P.items);for(P=W.next();!P.done;P=W.next())if(P=_.Q(P.value,_.m_w))return P}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoPrimaryInfoRenderer)==null?0:W.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return!!((W=this.videoSecondaryInfoRenderer)==null?0:(P=W.owner)==null?0:(x=P.videoOwnerRenderer)==null?0:x.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.p("swatchie_sd_new_line_strip_ks")){var W,P;if((W=this.videoSecondaryInfoRenderer)==null?0:(P=W.attributedDescription)==null?0:P.content){var x,I;return(I=this.stripAttributedDescription((x=this.videoSecondaryInfoRenderer)==null?void 0:x.attributedDescription))!=null?I:{runs:[]}}}var O,B,Y,K;return(K=(Y=(O=this.videoSecondaryInfoRenderer)==null?void 0:O.description)!=null?Y:(B=this.videoSecondaryInfoRenderer)==null?
void 0:B.attributedDescription)!=null?K:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.headerRuns)!=null?P:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentsEntryPointHeaderRenderer)==null||!W.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoMetadataCarousel)==null||!W.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Wi("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Wi("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var W,P,x=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(P=W.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer);if(x&&x.rows&&x.collapsedItemCount!==void 0&&!(x.rows.length<=x.collapsedItemCount))return x.rows=x.rows.slice(x.collapsedItemCount),x.collapsedItemCount=0,x}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var W,P,x=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(P=W.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer);if(x&&x.rows&&x.collapsedItemCount!==void 0)return x.rows=x.rows.slice(0,x.collapsedItemCount),x.collapsedItemCount=x.rows.length,x}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var W,P;return!!((W=this.structuredDescriptionContentRenderer)==null?0:(P=W.items)==null?0:P.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var W;return(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.videoSecondaryInfoRenderer)==null?0:(P=W.owner)==null?0:(x=P.videoOwnerRenderer)==null?0:x.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return!!((W=this.videoPrimaryInfoRenderer)==null?0:(P=W.videoActions)==null?0:(x=P.menuRenderer)==null?0:(I=x.flexibleItems)==null?0:I.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.HW(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.HW(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var W=this;if(_.p("web_title_hashtag_grey_delinkified")){var P,x=_.jU.unsafeClone((P=this.videoPrimaryInfoRenderer)==null?void 0:P.title);(P=x==null?void 0:x.runs)&&P.forEach(function(I){if(I==null?0:I.navigationEndpoint)I.textColor=4284506208,W.isDark&&(I.textColor=4289374890)});
return x}return(x=this.videoPrimaryInfoRenderer)==null?void 0:x.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.p("web_title_hashtag_black_delinkified")||_.p("web_title_hashtag_grey_delinkified")}}});
CV.prototype.resetDescriptionState=CV.prototype.resetDescriptionState;CV.prototype.registerPanel=CV.prototype.registerPanel;CV.prototype.onYtExpanderLessTapped=CV.prototype.onYtExpanderLessTapped;CV.prototype.onYtExpanderMoreTapped=CV.prototype.onYtExpanderMoreTapped;CV.prototype.onRenderStamperFinished=CV.prototype.onRenderStamperFinished;CV.prototype.onYtTextInlineExpanderExpandedChanged=CV.prototype.onYtTextInlineExpanderExpandedChanged;CV.prototype.onYtTextInlineExpanderCollapseClicked=CV.prototype.onYtTextInlineExpanderCollapseClicked;
CV.prototype.onYtTextInlineExpanderExpandClicked=CV.prototype.onYtTextInlineExpanderExpandClicked;CV.prototype.moveActionsElement=CV.prototype.moveActionsElement;CV.prototype.updateShouldForceIconOnly=CV.prototype.updateShouldForceIconOnly;CV.prototype.updateTopLevelIconsOnly=CV.prototype.updateTopLevelIconsOnly;CV.prototype.structuredDescriptionContentRendererChanged=CV.prototype.structuredDescriptionContentRendererChanged;CV.prototype.videoSecondaryInfoRendererChanged=CV.prototype.videoSecondaryInfoRendererChanged;
CV.prototype.videoPrimaryInfoRendererChanged=CV.prototype.videoPrimaryInfoRendererChanged;CV.prototype.maybeUpdateActionsOnSeparateLine=CV.prototype.maybeUpdateActionsOnSeparateLine;CV.prototype.updateOwnerAndDescriptionPosition=CV.prototype.updateOwnerAndDescriptionPosition;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],CV.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],CV.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],CV.prototype,"ytdReduxBehavior",void 0);_.f([_.BM("#above-the-fold"),_.l("design:type",HTMLElement)],CV.prototype,"aboveTheFoldContainer",void 0);_.f([_.BM("#menu ytd-menu-renderer"),_.l("design:type",Object)],CV.prototype,"menu",void 0);
_.f([_.BM("#description-inline-expander"),_.l("design:type",Object)],CV.prototype,"descriptionInlineExpander",void 0);_.f([_.BM("#faded-structured-description"),_.l("design:type",Object)],CV.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.f([_.BM("#structured-description"),_.l("design:type",Object)],CV.prototype,"structuredDescriptionContentRendererElement",void 0);_.f([_.BM("#title"),_.l("design:type",HTMLElement)],CV.prototype,"titleElement",void 0);
_.f([_.BM("#description"),_.l("design:type",HTMLElement)],CV.prototype,"descriptionElement",void 0);_.f([_.BM("#description-interaction"),_.l("design:type",Object)],CV.prototype,"descriptionInteraction",void 0);_.f([_.BM("#owner"),_.l("design:type",HTMLElement)],CV.prototype,"ownerElement",void 0);_.f([_.BM("#top-row"),_.l("design:type",HTMLElement)],CV.prototype,"topRowElement",void 0);_.f([_.BM("#bottom-row"),_.l("design:type",HTMLElement)],CV.prototype,"bottomRowElement",void 0);
_.f([_.BM("#actions"),_.l("design:type",HTMLElement)],CV.prototype,"actionsElement",void 0);_.f([_.BM("#bottom-actions"),_.l("design:type",HTMLElement)],CV.prototype,"bottomActionsElement",void 0);_.f([_.BM("#ytd-watch-info-text"),_.l("design:type",Object)],CV.prototype,"watchInfoTextElement",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"videoPrimaryInfoRenderer",void 0);
_.f([_.c(),_.l("design:type",Object)],CV.prototype,"videoSecondaryInfoRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"commentsEntryPointHeaderRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"videoMetadataCarousel",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"structuredDescriptionContentRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"videoSummary",void 0);
_.f([_.c(),_.l("design:type",Object)],CV.prototype,"merchShelf",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"infoPanelBelowMetadata",void 0);_.f([_.H("structuredDescriptionContentRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"productShelf",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"metadataBadgesInDescription",void 0);
_.f([_.H("videoPrimaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"shouldHideBadges",null);_.f([_.H("productShelf","descriptionCollapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CV.prototype,"shouldShowProductShelf",null);_.f([_.c(),_.l("design:type",Boolean)],CV.prototype,"isWatchFlexy",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"descriptionCollapsed",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],CV.prototype,"useFadedScrimDescription",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"skinnyMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("videoSecondaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"largerItemWrap",null);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"playlist",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"clarifyBox",void 0);
_.f([_.c(),_.l("design:type",Object)],CV.prototype,"playerAds",void 0);_.f([_.c(),_.l("design:type",Boolean)],CV.prototype,"isDark",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],CV.prototype,"actionsOnSeparateLine",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"disableVideoOwnerOnTap",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"swatcherooDelayLoad",void 0);
_.f([_.c(),_.l("design:type",Boolean)],CV.prototype,"suppressTopLevelMetadataRows",void 0);_.f([_.c(),_.l("design:type",Object)],CV.prototype,"primaryMenuWidth",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"videoId",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"titleHeadlineXs",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"titleHeadlineS",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"titleHeadlineM",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"titleHashtagBlackLinkified",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"titleHashtagGreyLinkified",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.f([_.c(),_.l("design:type",Object)],CV.prototype,"shouldForceIconOnly",void 0);_.f([_.K_("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"updateOwnerAndDescriptionPosition",null);_.f([_.K_("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.f([_.H("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"descriptionText",null);_.f([_.H("videoSecondaryInfoRenderer.headerRuns"),_.l("design:type",Array),_.l("design:paramtypes",[])],CV.prototype,"headerRuns",null);_.f([_.c({value:!1}),_.H("commentsEntryPointHeaderRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"hasTeaser",null);
_.f([_.c({value:!1,reflectToAttribute:!0}),_.H("videoMetadataCarousel"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"hasTeaserCarousel",null);_.f([_.c({value:3}),_.H("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"descriptionMaxLines",null);_.f([_.H("videoSecondaryInfoRenderer.metadataRowContainer"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"collapsibleMetadataRows",null);
_.f([_.H("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"alwaysVisibleMetadataRows",null);_.f([_.H("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CV.prototype,"hasInlineStructuredDescription",null);
_.f([_.H("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CV.prototype,"showInlineStructuredDescription",null);_.f([_.H("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"descriptionExpandCommand",null);
_.f([_.H("videoSecondaryInfoRenderer.owner"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"videoOwnerCommand",null);_.f([_.c({reflectToAttribute:!0}),_.H("videoPrimaryInfoRenderer.videoActions"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CV.prototype,"flexMenuEnabled",null);_.f([_.c({selector:_.CN,reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"isFullscreen",void 0);
_.f([_.c({selector:_.z6,reflectToAttribute:!0}),_.l("design:type",Object)],CV.prototype,"isTheaterMode",void 0);_.f([_.H("descriptionText","useFadedScrimDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CV.prototype,"showAttributedStringDescription",null);_.f([_.H("descriptionText","useFadedScrimDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CV.prototype,"showFormattedStringDescription",null);
_.f([_.H("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CV.prototype,"showFadedStructuredDescription",null);_.f([_.K_("videoPrimaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"videoPrimaryInfoRendererChanged",null);_.f([_.H("videoPrimaryInfoRenderer.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"videoTitle",null);
_.f([_.H("videoPrimaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],CV.prototype,"noEndpoints",null);_.f([_.K_("videoSecondaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"videoSecondaryInfoRendererChanged",null);
_.f([_.OZ("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"structuredDescriptionContentRendererChanged",null);_.f([_.OZ("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"updateTopLevelIconsOnly",null);
_.f([_.OZ("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"updateShouldForceIconOnly",null);_.f([_.OZ("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"moveActionsElement",null);_.f([_.I7("yt-text-inline-expander-expand-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.f([_.I7("yt-text-inline-expander-collapse-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.f([_.I7("yt-text-inline-expander-expanded-changed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],CV.prototype,"onRenderStamperFinished",null);_.f([_.I7("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"onYtExpanderMoreTapped",null);_.f([_.I7("yt-expander-less-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"onYtExpanderLessTapped",null);
_.f([_.OZ("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"registerPanel",null);_.f([_.OZ("videoSecondaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CV.prototype,"resetDescriptionState",null);CV=_.f([_.U({disableElementRegistration:!0,is:"ytd-watch-metadata"})],CV);
_.X(CV,"ytd-watch-metadata",function(){if(vv9!==void 0)return vv9;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return vv9=W},{mode:2});_.hvM=function(W){_.vn.call(this);this.JSC$20194_watchApi=W;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;GJL(this);EvG(this);gvv(this);Dj4(this);MWv(this);$jy(this);w3L(this)};
_.A(_.hvM,_.vn);var gvv=function(W){var P=function(){_.p("kevlar_is_pupi_enabled")||A_(W)};
W.JSC$20194_watchApi.getRoot().addEventListener("yt-player-updated",P);W.addOnDisposeCallback(function(){W.JSC$20194_watchApi.getRoot().removeEventListener("yt-player-updated",P)})},MWv=function(W){if(_.p("kevlar_endscreen_auto_theater_mode")){var P=W.JSC$20194_watchApi.subscribeToActiveChanged(function(){Hp9(W)},!1);
W.addOnDisposeCallback(P)}},GJL=function(W){var P,x,I,O,B;
_.y(function(Y){if(Y.nextAddress==1)return _.S(Y,W.JSC$20194_watchApi.playerApi,2);P=Y.yieldResult;x=function(K){K=!!K;z_(W)&&(K=K?2:1,_.iG.getInstance().setState(K,!0,!1))};
I=function(K){K&&_.c4m(_.Xe().getState())&&(_.W7(W.JSC$20194_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),W.temporaryTheaterMode=!0)};
O=function(K){_.p("kevlar_player_update_autonav_on_new_data")&&K.type==="newdata"&&(_.p("kevlar_is_pupi_enabled")||A_(W))};
B=function(K){W.onPlayerStateChange(K)};
_.p("kevlar_endscreen_auto_theater_mode")&&P.addEventListener("onAutonavCancelled",I);P.addEventListener("onAutonavChangeRequest",x);P.addEventListener("onVideoDataChange",O);P.addEventListener("onStateChange",B);W.addOnDisposeCallback(function(){P.removeEventListener("onAutonavChangeRequest",x);P.removeEventListener("onVideoDataChange",O);P.removeEventListener("onStateChange",B);_.p("kevlar_endscreen_auto_theater_mode")&&P.removeEventListener("onAutonavCancelled",I)});
_.Kl(Y)})},EvG=function(W){W.JSC$20194_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){W.autonavCancelledBySignal=!0;
_.p("kevlar_is_pupi_enabled")||A_(W)});
W.JSC$20194_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(P,x,I){x&&A_(W,I)});
W.JSC$20194_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){z_(W)&&_.iG.getInstance().setState(2,!0,!0)});
W.JSC$20194_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){z_(W)&&_.iG.getInstance().setState(1,!0,!0)});
W.addOnDisposeCallback(function(){W.JSC$20194_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");W.JSC$20194_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");W.JSC$20194_watchApi.unregisterActionHandler("yt-enable-autoplay-command");W.JSC$20194_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},Dj4=function(W){var P=W.JSC$20194_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){w3L(W)}),x=W.JSC$20194_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){$jy(W)});
W.addOnDisposeCallback(function(){W.JSC$20194_watchApi.unsubscribeByKey(P);W.JSC$20194_watchApi.unsubscribeByKey(x)})},w3L=function(W){W.autonavCancelledBySignal=!1;
_.p("kevlar_is_pupi_enabled")||A_(W)},$jy=function(W){var P=W.JSC$20194_watchApi.getWatchNextResponse(),x,I;
var O=(P=(I=_.Q(P==null?void 0:(O=P.playerOverlays)==null?void 0:(x=O.playerOverlayRenderer)==null?void 0:x.autonavToggle,_.mGm))==null?void 0:I.enabled)?2:1;_.p("kevlar_is_pupi_enabled")?_.iG.getInstance().setState(O,!1,!1):A_(W);_.p("web_persist_server_autonav_state_on_client")&&typeof P==="boolean"&&_.zsA(O===2)},z_=function(W){if(W.autonavCancelledBySignal)return!1;
var P,x,I,O;return!!((P=W.JSC$20194_watchApi.getWatchNextResponse())==null?0:(x=P.contents)==null?0:(I=x.twoColumnWatchNextResults)==null?0:(O=I.autoplay)==null?0:O.autoplay)};
_.hvM.prototype.onPlayerStateChange=function(W){if(W===0){W=!_.iG.getInstance().isAutoplaySetExplicitly();var P=this.JSC$20194_watchApi.getWatchNextResponse(),x,I,O,B;P=_.Q(P==null?void 0:(x=P.contents)==null?void 0:(I=x.twoColumnWatchNextResults)==null?void 0:(O=I.autoplay)==null?void 0:(B=O.autoplay)==null?void 0:B.autoplayExplicitChoiceDialogRenderer,_.NQw);z_(this)&&W&&P&&_.Ix.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:P},popupType:"DIALOG"}})}else Hp9(this)};
var Hp9=function(W){W.temporaryTheaterMode&&(W.temporaryTheaterMode=!1,_.W7(W.JSC$20194_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},A_=function(W,P){P=P===void 0?!1:P;
var x;_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20194_watchApi.playerApi,2);x=I.yieldResult;z_(W)?x.setAutonavState(_.iG.getInstance().getState(),P):x.setAutonavState(1,P);_.Kl(I)})};var ev2={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"};_.aMm=function(W){_.vn.call(this);var P=this;this.JSC$20199_watchApi=W;var x=this.JSC$20199_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){cv6(P)});
this.addOnDisposeCallback(function(){P.JSC$20199_watchApi.unsubscribeByKey(x)});
cv6(this)};
_.A(_.aMm,_.vn);var cv6=function(W){var P=W.JSC$20199_watchApi.getPlayerResponse(),x=W.JSC$20199_watchApi.getWatchNextResponse();if(!_.nvW(P==null?void 0:P.playabilityStatus,x==null?void 0:x.playerOverlays)){var I;var O=P==null?void 0:(I=P.playabilityStatus)==null?void 0:I.errorScreen}W.JSC$20199_watchApi.provideRenderingData("ERROR_SCREEN",O)};var bpQ=_.kl(function(W){var P=W.data;W=_.yB(function(){var x=P().onTap;x&&_.FY().resolve(_.qR).resolveCommand(x)});
return _.u("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":W},_.u("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.u(_.Ea,{data:function(){return P().channelAvatar}},{avatarViewModel:_.DI}),_.u(_.mQ,{text:function(){return P().subtitle}})))},"aj");var G_={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},kJL=_.kl(function(W){var P=W.data;return _.u("yt-player-quick-action-buttons",{class:_.O4("ytPlayerQuickActionButtonsHost")},_.u(_.sV,{each:function(){if(_.p("delhi_modern_web_player_icons")&&!_.p("enable_web_delhi_icons")){var x=P();x=JSON.parse(JSON.stringify(x));for(var I=_.n(x),O=I.next();!O.done;O=I.next()){var B=O.value,Y=void 0;O=_.Q((Y=_.Q(B,_.wp))==null?void 0:Y.toggleButtonViewModel,
_.DZ);var K=void 0;Y=_.Q((K=_.Q(B,_.hp))==null?void 0:K.toggleButtonViewModel,_.DZ);B=_.Q(B,_.gp);if(O){Y=_.Q(O.defaultButtonViewModel,_.gp);O=_.Q(O.toggledButtonViewModel,_.gp);B=void 0;if((B=Y)==null?0:B.iconName)Y.iconName=G_[Y.iconName];Y=void 0;if((Y=O)==null?0:Y.iconName)O.iconName=G_[O.iconName]}else if(Y){O=_.Q(Y.defaultButtonViewModel,_.gp);Y=_.Q(Y.toggledButtonViewModel,_.gp);B=void 0;if((B=O)==null?0:B.iconName)O.iconName=G_[O.iconName];O=void 0;if((O=Y)==null?0:O.iconName)Y.iconName=G_[Y.iconName]}else B&&
(B.iconName=G_[B.iconName])}}else x=P();return x}},function(x){return _.u(_.Ea,{data:function(){return x}},{buttonViewModel:_.cq,
likeButtonViewModel:function(I){return _.u(_.C7,{data:I.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.Qz})}))},"bj");_.X3O=function(W){_.vn.call(this);var P=this;this.JSC$20202_watchApi=W;W=_.n(_.YV({},void 0,"ufFdVc"));this.quickActionsViewModel=W.next().value;this.setQuickActionsViewModel=W.next().value;W=_.n(_.YV({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=W.next().value;this.setPlayerOverlayVideoDetailsRenderer=W.next().value;var x=this.JSC$20202_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ujv(P)});
this.addOnDisposeCallback(function(){P.JSC$20202_watchApi.unsubscribeByKey(x)});
Ujv(this)};
_.A(_.X3O,_.vn);
var Ujv=function(W){var P,x,I,O,B,Y,K,Z,d,v,m,t,C,z;_.y(function(D){if(D.nextAddress==1)return _.S(D,W.JSC$20202_watchApi.playerApi,2);P=D.yieldResult;x=W.JSC$20202_watchApi.getWatchNextResponse();B=(I=x)==null?void 0:(O=I.playerOverlays)==null?void 0:O.playerOverlayRenderer;K=_.Q((Y=B)==null?void 0:Y.fullscreenQuickActionsBar,_.AhZ);(d=(Z=W).setQuickActionsViewModel)==null||d.call(Z,K||{});K&&fMB(W,P);t=(v=B)==null?void 0:(m=v.videoDetails)==null?void 0:m.playerOverlayVideoDetailsRenderer;(z=(C=
W).setPlayerOverlayVideoDetailsRenderer)==null||z.call(C,t||{});t&&N$v(W,P);_.Kl(D)})},fMB=function(W,P){if(!W.quickActionButtonsContainer){W.quickActionButtonsContainer=document.createElement("div");
P.setFullscreenQuickActions(W.quickActionButtonsContainer);var x=function(){return W.quickActionsViewModel().quickActionButtons||[]},I=_.jL(W.quickActionButtonsContainer,function(){return _.u(kJL,{data:x})});
W.addOnDisposeCallback(function(){P.setFullscreenQuickActions(void 0);I()})}},N$v=function(W,P){if(!W.playerOverlayVideoDetailsRendererContainer){W.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
P.setPlayerOverlayVideoDetailsRenderer(W.playerOverlayVideoDetailsRendererContainer);var x=_.jL(W.playerOverlayVideoDetailsRendererContainer,function(){return _.u(bpQ,{data:W.playerOverlayVideoDetailsRenderer})});
W.addOnDisposeCallback(function(){P.setPlayerOverlayVideoDetailsRenderer(void 0);x()})}};_.E5=function(W){_.vn.call(this);var P=this;this.JSC$20207_watchApi=W;this.JSC$20207_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;W=_.sx(_.Xe(),_.CN,function(x){lMm(P,x)});
this.addOnDisposeCallback(W);W=_.sx(_.Xe(),_.Ar,function(x){P.onWatchScroll(x)});
this.addOnDisposeCallback(W);_.p("kevlar_watch_while_v2")&&(W=_.sx(_.Xe(),_.Ab,function(x){T$d(P,x)}),this.addOnDisposeCallback(W));
rv6(this);ipM(this);Rvy();this.onWatchScroll(_.Ar(_.Xe().getState()));_.wo("START_IN_FULL_WINDOW_MODE")&&this.JSC$20207_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.A(_.E5,_.vn);var rv6=function(W){W.JSC$20207_watchApi.registerActionHandler("yt-fullscreen-change-action",function(P){var x=W.JSC$20207_watchApi.isActive();P&&!x||_.Xe().dispatch(_.LK({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!P}}))});
W.addOnDisposeCallback(function(){W.JSC$20207_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},ipM=function(W){var P,x;
_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20207_watchApi.playerApi,2);P=I.yieldResult;x=function(){W.onFullerscreenEduClicked()};
P.addEventListener("onFullerscreenEduClicked",x);W.addOnDisposeCallback(function(){P.removeEventListener("onFullerscreenEduClicked",x)});
_.Kl(I)})},lMm=function(W,P){var x;
_.y(function(I){if(I.nextAddress==1)return W.isFullscreen=!!_.iO(),_.S(I,W.JSC$20207_watchApi.playerApi,2);x=I.yieldResult;W.JSC$20207_miniplayerActive||x.setFauxFullscreen(W.isFullscreen);if(P&&(W.JSC$20207_watchApi.focusOnPlayer(),!W.fullerscreenEduButtonShownThisPlayback)){W.fullerscreenEduButtonShownThisPlayback=!0;var O=_.ye("yt-fullerscreen-edu-button-shown-count")||0;_.Y9("yt-fullerscreen-edu-button-shown-count",O+1,31536E3);W.updateFullerscreenEduButtonSubtleModeState()}_.Kl(I)})},T$d=function(W,
P){var x;
_.y(function(I){if(I.nextAddress==1)return W.JSC$20207_miniplayerActive=P,_.S(I,W.JSC$20207_watchApi.playerApi,2);x=I.yieldResult;x.setFauxFullscreen(!W.JSC$20207_miniplayerActive&&W.isFullscreen);_.Kl(I)})};
_.E5.prototype.onWatchScroll=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1)return _.p("external_fullscreen_with_edu")?_.S(O,P.JSC$20207_watchApi.playerApi,2):O.return();x=O.yieldResult;I=W<=0;P.shouldShowFullerscreenEdu!==I&&(P.shouldShowFullerscreenEdu=I,x.updateFullerscreenEduButtonVisibility(!P.shouldShowFullerscreenEdu));_.Kl(O)})};
_.E5.prototype.onFullerscreenEduClicked=function(){this.JSC$20207_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var W=_.ye("yt-fullerscreen-edu-button-click-count")||0;_.Y9("yt-fullerscreen-edu-button-click-count",W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.E5.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var W=this,P,x,I,O,B,Y;return _.y(function(K){if(K.nextAddress==1)return P=_.ye("yt-fullerscreen-edu-button-click-count")||0,x=_.ye("yt-fullerscreen-edu-button-shown-count")||0,I=_.Wi("external_fullscreen_button_click_threshold"),O=_.Wi("external_fullscreen_button_shown_threshold"),B=P>=I||x>=O,_.S(K,W.JSC$20207_watchApi.playerApi,2);Y=K.yieldResult;Y.updateFullerscreenEduButtonSubtleModeState(B);_.Kl(K)})};
_.E5.prototype.disposeInternal=function(){_.vn.prototype.disposeInternal.call(this);var W=_.iO();_.p("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Ri(W)};
var Rvy=function(){if(_.p("web_watch_add_viewport_meta_tag")){var W=document.querySelector("meta[name=viewport]"),P=document.head;P&&!W&&(W=document.createElement("meta"),W.name="viewport",W.content="width=device-width, initial-scale=1.0, viewport-fit=cover",P.appendChild(W))}};_.gH=function(W){_.vn.call(this);var P=this;this.JSC$20211_watchApi=W;this.jobId=0;this.pendingRequestId=void 0;var x=this.JSC$20211_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){FFL(P)});
this.addOnDisposeCallback(function(){P.JSC$20211_watchApi.unsubscribeByKey(x)});
FFL(this)};
_.A(_.gH,_.vn);var q63=function(W){_.Gr.cancelJob(W.jobId);W.pendingRequestId=void 0},FFL=function(W){q63(W);
var P=yi2(W.JSC$20211_watchApi.getWatchNextResponse());if(P){var x=250,I,O=(I=_.Q(P,_.GNl))==null?void 0:I.initialDelayMs;_.p("web_watch_updated_metadata_server_initial_delay")&&O&&(x=O);W.jobId=_.Gr.addLowPriorityJob(function(){return W.fetchUpdatedMetadata(P)},x)}};
_.gH.prototype.fetchUpdatedMetadata=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a;return _.y(function(k){switch(k.nextAddress){case 1:P&&(I={continuation:P});if(!_.p("web_get_updated_metadata_fantasy_panel_continuation_params")){k.jumpTo(2);break}O=_.FY().resolve(_.m3);B="PAsports_fantasy";return _.S(k,O.isVisible(B,!0),3);case 3:k.yieldResult&&(d=(K=(Y=O).getUpdatePanelContinuationData)==null?void 0:(Z=K.call(Y,B))==null?void 0:Z.updatePanelContinuationRequest)&&(I||(I={}),I.clientParams=
{panelContinuationParams:{panelContinuation:d}});case 2:v=_.FY().resolve(_.m7);if(!v)return _.G$(Error("im")),k.return();m={};x.pendingRequestId=m;return _.S(k,_.cF(v,W,I),4);case 4:t=k.yieldResult;if(m!==x.pendingRequestId)return k.return();D=(C=t)==null?void 0:(z=C.continuation)==null?void 0:z.timedContinuationData;((w=D)==null?0:w.continuation)&&((a=D)==null?0:a.timeoutMs)&&(x.jobId=_.Gr.addLowPriorityJob(function(){return x.fetchUpdatedMetadata(W,D.continuation)},D.timeoutMs));
_.Kl(k)}})};
_.gH.prototype.disposeInternal=function(){_.vn.prototype.disposeInternal.call(this);q63(this)};var LFL=_.kl(function(W){var P=_.yB(function(){var I=W.data().videoId;if(W.active())I=_.iB(I),_.FY().resolve(_.qR).resolveCommand(I);else{var O=W.playerApi(),B=O.getAvailableAudioTracks(),Y,K,Z=(Y=W.sourceVideoConfig().audioTracks)==null?void 0:(K=Y.find(function(d){return d.isDefaultForSource}))==null?void 0:K.id;
if(B=B.find(function(d){return d.getLanguageInfo().getId()===Z}))O.setAudioTrack(B,!0),O.setCompositeParam({activeVideoId:I}),W.setActiveSourceId(I)}}),x={};
return _.u("ytw-composite-source-video-overlay",{class:_.O4("ytwCompositeSourceVideoOverlayHost",(x.ytwCompositeSourceVideoOverlayActive=W.active,x.ytwCompositeSourceVideoOverlayInteracting=W.interacting,x)),style:_.oP({left:function(){var I;return((I=W.data().topLeftCornerX)!=null?I:0)*100+"%"},
top:function(){var I;return((I=W.data().topLeftCornerY)!=null?I:0)*100+"%"},
width:function(){var I;return((I=W.data().width)!=null?I:0)*100+"%"},
height:function(){var I;return((I=W.data().height)!=null?I:0)*100+"%"}}),
"on:click":P},_.u("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"cj");var WKv=_.kl(function(W){var P=_.n(_.Zh(function(){var K,Z=(K=W.data().sources)==null?void 0:K.find(function(d){return d.isActive});
if(Z)return Z.videoId})),x=P.next().value,I=P.next().value;
P=_.n(_.YV(!1,void 0,"WI4BUb"));var O=P.next().value,B=P.next().value;P=_.yB(function(){B(!0)});
var Y=_.yB(function(){B(!1)});
return _.u("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":P,"on:mouseout":Y},_.u(_.V,{cond:function(){return W.data().sources},
then:function(K){return _.u(_.sV,{each:K},function(Z){return _.u(LFL,{data:Z,active:function(){return Z.videoId===x()},
setActiveSourceId:I,interacting:O,playerApi:W.playerApi,sourceVideoConfig:function(){return KVf(W.compositeVideoConfig(),Z.videoId)}})})}}))},"dj");_.ImL=function(W){_.vn.call(this);this.JSC$20227_watchApi=W;W=_.n(_.YV({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=W.next().value;this.setCompositeVideoOverlayRenderer=W.next().value;W=_.n(_.YV({},void 0,"U5hcq"));this.compositeVideoConfig=W.next().value;this.setCompositeVideoConfig=W.next().value;P22(this);xA9(this)};
_.A(_.ImL,_.vn);var P22=function(W){var P=W.JSC$20227_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){xA9(W)});
W.addOnDisposeCallback(function(){W.JSC$20227_watchApi.unsubscribeByKey(P)})},OG3=function(W){var P;
return _.y(function(x){if(x.nextAddress==1)return _.S(x,W.JSC$20227_watchApi.playerApi,2);P=x.yieldResult;P.setCompositeVideoOverlayRendererComponent(W.container);_.Kl(x)})},J5d=function(W){var P;
return _.y(function(x){if(x.nextAddress==1)return _.S(x,W.JSC$20227_watchApi.playerApi,2);P=x.yieldResult;P.setCompositeVideoOverlayRendererComponent(void 0);_.Kl(x)})},Bf4=function(W){var P,x;
return _.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20227_watchApi.playerApi,2);P=I.yieldResult;W.container=document.createElement("div");x=_.jL(W.container,function(){return _.u(WKv,{data:W.compositeVideoOverlayRenderer,compositeVideoConfig:W.compositeVideoConfig,playerApi:P})});
W.addOnDisposeCallback(x);_.Kl(I)})},xA9=function(W){var P,x,I,O,B,Y,K,Z;
_.y(function(d){return d.nextAddress==1?(P=W.JSC$20227_watchApi.getPlayerResponse(),B=_.Q((x=P)==null?void 0:(I=x.overlay)==null?void 0:(O=I.playerControlsOverlayRenderer)==null?void 0:O.compositeVideoOverlay,W_G),Z=(Y=P)==null?void 0:(K=Y.playerConfig)==null?void 0:K.compositeVideoConfig,B&&W.setCompositeVideoOverlayRenderer(B),Z&&W.setCompositeVideoConfig(Z),B&&Z?W.container?d.jumpTo(6):_.S(d,Bf4(W),6):nkM(W)?_.S(d,J5d(W),0):d.jumpTo(0)):nkM(W)?d.jumpTo(0):_.S(d,OG3(W),0)})},nkM=function(W){var P;
return!((P=W.container)==null||!P.parentElement)};
_.ImL.prototype.disposeInternal=function(){nkM(this)&&J5d(this);_.vn.prototype.disposeInternal.call(this)};_.ok4=function(W){_.vn.call(this);var P=this;this.JSC$20233_watchApi=W;var x=this.JSC$20233_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var I=P.JSC$20233_watchApi.getPlayerResponse();if(I){var O,B;if(I=_.Q((O=I.endscreen)==null?void 0:(B=O.endscreenRenderer)==null?void 0:B.hideButton,_.DZ)){var Y;(Y=P.setEndscreenHideButton)==null||Y.call(P,I);Ygf(P)}}});
this.addOnDisposeCallback(function(){P.JSC$20233_watchApi.unsubscribeByKey(x)});
W=_.n(_.YV({},void 0,"PPHRb"));this.endscreenHideButton=W.next().value;this.setEndscreenHideButton=W.next().value;y52(this);KK2(this);ZGy(this)};
_.A(_.ok4,_.vn);var Ygf=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return W.creatorEndscreenHideButtonContainer?I.return():_.S(I,W.JSC$20233_watchApi.playerApi,2);P=I.yieldResult;W.creatorEndscreenHideButtonContainer=document.createElement("div");_.bZ(W.creatorEndscreenHideButtonContainer,!1);P.setCreatorEndscreenHideButton(W.creatorEndscreenHideButtonContainer);x=_.jL(W.creatorEndscreenHideButtonContainer,function(){return _.u(_.MI,{data:W.endscreenHideButton,useOutlinedIcon:!0})});
W.addOnDisposeCallback(function(){x();P.setCreatorEndscreenHideButton(void 0)});
_.Kl(I)})},y52=function(W){var P,x;
_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20233_watchApi.playerApi,2);P=I.yieldResult;x=function(){W.creatorEndscreenHideButtonContainer&&_.bZ(W.creatorEndscreenHideButtonContainer,!0)};
P.addEventListener("endscreenelementshown",x);W.addOnDisposeCallback(function(){P.removeEventListener("endscreenelementshown",x)});
_.Kl(I)})},KK2=function(W){var P=function(){W.creatorEndscreenHideButtonContainer&&_.bZ(W.creatorEndscreenHideButtonContainer,!1)},x=W.JSC$20233_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",P),I=W.JSC$20233_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",P);
W.addOnDisposeCallback(function(){W.JSC$20233_watchApi.unsubscribeByKey(x);W.JSC$20233_watchApi.unsubscribeByKey(I)})},ZGy=function(W){W.JSC$20233_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(P){var x=_.Q(P,rid);
W.JSC$20233_watchApi.playerApi.then(function(I){I==null||I.setCreatorEndscreenVisibility(!!x.hide)})});
W.addOnDisposeCallback(function(){W.JSC$20233_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.uS2=function(W){_.vn.call(this);this.JSC$20239_watchApi=W;Sg4(this)};
_.A(_.uS2,_.vn);var Sg4=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20239_watchApi.playerApi,2);P=I.yieldResult;x=function(O){_.Xe().dispatch(_.LK({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:O}}))};
P.addEventListener("onRetroModeChanged",x);W.addOnDisposeCallback(function(){P.removeEventListener("onRetroModeChanged",x)});
_.Kl(I)})};var D0=0,gA=0,M4=0;var dA6;dA6=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.D7=function(W){_.vn.call(this);this.JSC$20252_watchApi=W;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;swL(this)};
_.A(_.D7,_.vn);
var swL=function(W){var P,x,I;_.y(function(O){if(O.nextAddress==1)return _.S(O,W.JSC$20252_watchApi.playerApi,2);P=O.yieldResult;if(W.isDisposed())return O.return();W.sessionStorage=_.n42("yt-sleep-timer");W.sessionStorage||_.ge(new _.mW("SessionStorage for Sleep Timer is undefined."));((x=W.sessionStorage)==null?void 0:x.get("yt-sleep-timer"))==="true"&&(t6G(),(I=W.sessionStorage)==null||I.remove("yt-sleep-timer"),P.syncVolume());vkv(W,P);mAO(W,P);VTG(W,P);_.Kl(O)})},vkv=function(W,P){var x=function(d){W.onSleepTimerSettingsChanged(d,
P)},I=function(d){W.onPlayerStateChange(d,P)},O=function(){W.onLoopChange(P)},B=function(){W.onCloseMiniplayer(P)},Y=function(){sa9(P,(0,_.iA)(),pYy(P),W.selectedOption==="End of video",P.getPlayerState()!==1)},K=function(){W.onSeekComplete(P)},Z=function(){_.Gr.cancelJob(gA);
var d=P.getCurrentTime()>=P.getDuration(),v=W.selectedOption==="End of video"||W.selectedOption==="End of playlist"&&!SO4(W.playlistId);d&&v&&tTv(W,P)};
P.addEventListener("onSleepTimerSettingsChanged",x);P.addEventListener("onLoopChange",O);P.addEventListener("onLoopRangeChange",O);P.addEventListener("onStateChange",I);P.addEventListener("onCloseMiniplayer",B);P.addEventListener("onSleepTimerFeatureAvailable",Y);P.addEventListener("SEEK_COMPLETE",K);P.addEventListener("onAdStart",Z);W.addOnDisposeCallback(function(){P.removeEventListener("onSleepTimerSettingsChanged",x);P.removeEventListener("onLoopChange",O);P.removeEventListener("onLoopRangeChange",
O);P.removeEventListener("onStateChange",I);P.removeEventListener("onCloseMiniplayer",B);P.removeEventListener("onSleepTimerFeatureAvailable",Y);P.removeEventListener("SEEK_COMPLETE",K);P.removeEventListener("onAdStart",Z)})},mAO=function(W,P){var x=W.JSC$20252_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var I=P.getVideoData().video_id,O,B=(O=Z9O(W.JSC$20252_watchApi))==null?void 0:O.playlistId;
W.pauseAutonavPlayback&&(P.pauseVideo(),P.syncVolume(),W.pauseAutonavPlayback=!1);if(W.selectedOption==="End of video"&&I!==W.videoId)MJ(W,P);else{if(W.selectedOption==="End of playlist"){O=SO4(W.playlistId);if(B!==W.playlistId){MJ(W,P);break a}O?O&&pHM(W,P):jwf(W,P)}W.videoId=I;W.playlistId=B}}});
W.addOnDisposeCallback(function(){W.JSC$20252_watchApi.unsubscribeByKey(x)})},VTG=function(W,P){var x=_.FY().resolve(_.Ae),I=_.sx(x,_.Q9R,function(B){B&&W.selectedOption!=="Off"&&MJ(W,P)}),O=W.JSC$20252_watchApi.subscribeToActiveChanged(function(B){var Y,K;
return _.y(function(Z){if(Z.nextAddress==1)return _.S(Z,_.ug().navigationFinishPromise,2);Y=!_.$W3();K=_.FY().resolve(_.kc).isMiniplayerActive();B||!El(W.selectedOption)||K||Y||MJ(W,P);_.Kl(Z)})},!1);
x=_.sx(x,function(B){return B.entities.playlistLoopStateEntity||{}},function(B){B=B===void 0?{}:B;
var Y=o09(W.JSC$20252_watchApi);if(Y){var K;((K=B[Y])==null?void 0:K.state)==="PLAYLIST_LOOP_STATE_ALL"&&El(W.selectedOption)&&MJ(W,P)}});
W.addOnDisposeCallback(I);W.addOnDisposeCallback(x);W.addOnDisposeCallback(O)};
_.D7.prototype.onSleepTimerSettingsChanged=function(W,P){switch(W){case "Off":this.selectedOption!=="Off"&&MJ(this,P);break;case "End of video":case "End of playlist":QwL(this,W,P);break;default:QwL(this,W,P,dA6.get(W))}};
_.D7.prototype.onLoopChange=function(W){(W.getLoopVideo()||W.getLoopRange())&&El(this.selectedOption)&&MJ(this,W)};
_.D7.prototype.onCloseMiniplayer=function(W){El(this.selectedOption)&&MJ(this,W)};
var QwL=function(W,P,x,I){C2B(W,x);W.selectedOption=P;W.videoId=x.getVideoData().video_id;W.playlistId="";var O;(O=W.sessionStorage)==null||O.set("yt-sleep-timer","true");W.adjustmentsCount++;sa9(x,(0,_.iA)(),pYy(x),W.selectedOption==="End of video");if(W.selectedOption==="End of video")jwf(W,x),A53(W,x);else if(W.selectedOption==="End of playlist"){A53(W,x);var B,Y;W.playlistId=(Y=(B=Z9O(W.JSC$20252_watchApi))==null?void 0:B.playlistId)!=null?Y:"";SO4(W.playlistId)||jwf(W,x)}else I&&(W.presetFadeSchedulerId=
_.pC(_.Gr,function(){myQ(x,15E3)},I-15E3),W.presetPauseSchedulerId=_.pC(_.Gr,function(){tTv(W,x)},I),v0B(x,(0,_.iA)(),I))},tTv=function(W,P){if(W.JSC$20252_watchApi.isActive()){var x={dismissDialogEndpoint:{}};
var I={commandExecutorCommand:{commands:[x,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};x={buttonViewModel:{title:_.KK("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:x}}};I={buttonViewModel:{title:_.KK("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:I}}};var O={dialogHeaderViewModel:{headline:{content:_.KK("SLEEP_TIMER_ENDED_TITLE")}}},
B={basicContentViewModel:{paragraphs:[{text:{content:_.KK("SLEEP_TIMER_ENDED_TEXT")}}]}};x={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:O,content:B,footer:{panelFooterViewModel:{primaryButton:x,secondaryButton:I,shouldHideDivider:!0}}}}}}};_.FY().resolve(_.qR).resolveCommand(x,{form:{element:W}})}else t6G();za9(W,!1);GVL(W,P);P.pauseVideo();_.iG.getInstance().getState()===2&&P.getPlayerState()===5&&(W.pauseAutonavPlayback=!0)},MJ=function(W,P){za9(W,!0);
GVL(W,P);t6G()},GVL=function(W,P){C2B(W,P);
W.selectedOption="Off";W.videoId="";W.playlistId="";W.adjustmentsCount=0;var x;(x=W.sessionStorage)==null||x.remove("yt-sleep-timer");_.Gr.cancelJob(D0);P.resetSleepTimerMenuSettings()},za9=function(W,P){P={timer_length_adjustment_times_during_session:W.adjustmentsCount-1,
is_session_cancelled:P};switch(W.selectedOption){case "Off":P.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":P.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":P.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:P.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",P.option_duration_in_minutes=dA6.get(W.selectedOption)/6E4}_.Ay("sleepTimerSessionFinishEvent",P)};
_.D7.prototype.onPlayerStateChange=function(W,P){W===1?sa9(P,(0,_.iA)(),pYy(P),this.selectedOption==="End of video"):W===0?(_.Gr.cancelJob(gA),P.setVideoTimeLeft(dyL(0,0))):W===2&&_.Gr.cancelJob(gA);this.selectedOption==="End of video"?W===0?tTv(this,P):W===2&&V6M(P):this.selectedOption!=="End of playlist"||SO4(this.playlistId)||(W===0?tTv(this,P):W===2&&V6M(P))};
_.D7.prototype.onSeekComplete=function(W){W.getPlayerState()===2&&sa9(W,(0,_.iA)(),pYy(W),this.selectedOption==="End of video",!0)};
_.D7.prototype.onCueRangeEnter=function(W,P){W==="sleep-timer-fade-audio"&&myQ(P,(P.getDuration()-P.getProgressState().current)*1E3)};
_.D7.prototype.onCueRangeExit=function(W,P){W==="sleep-timer-fade-audio"&&P.getPlayerState()!==0&&V6M(P,!0)};
var jwf=function(W,P){P.addCueRange("sleep-timer-fade-audio",P.getDuration()-15,P.getDuration());P.addEventListener("onCueRangeEnter",function(x){W.onCueRangeEnter(x,P)});
P.addEventListener("onCueRangeExit",function(x){W.onCueRangeExit(x,P)})},pHM=function(W,P){P.removeCueRange("sleep-timer-fade-audio");
P.removeEventListener("onCueRangeEnter",function(x){W.onCueRangeEnter(x,P)});
P.removeEventListener("onCueRangeExit",function(x){W.onCueRangeExit(x,P)})},C2B=function(W,P){El(W.selectedOption)?pHM(W,P):(_.Gr.cancelJob(W.presetPauseSchedulerId),_.Gr.cancelJob(W.presetFadeSchedulerId),W.presetPauseSchedulerId=0,W.presetFadeSchedulerId=0);
V6M(P,!0)},A53=function(W,P){P.setLoop(!1);
P.setLoopVideo(!1);P.setLoopRange(null);(W=o09(W.JSC$20252_watchApi))&&_.FY().resolve(_.Ae).dispatch(_.mG("playlistLoopStateEntity",W,{key:W,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.MT3=function(W){_.vn.call(this);this.JSC$20255_watchApi=W;Ek2(this);gkQ(this);DAB(this);W=W.getRoot();if(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-grid")W.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.wC9();_.p("web_watch_log_theater_mode_cookie_state")&&_.SB.get("wide","0")==="1"&&_.oRm("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.A(_.MT3,_.vn);var Ek2=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20255_watchApi.playerApi,2);P=I.yieldResult;x=function(O){$A2(W,!!O)};
P.addEventListener("SIZE_CLICKED",x);W.addOnDisposeCallback(function(){P.removeEventListener("SIZE_CLICKED",x)});
_.Kl(I)})},gkQ=function(W){W.JSC$20255_watchApi.registerActionHandler("yt-toggle-theater-mode",function(P,x){$A2(W,P,x===void 0?!0:x)});
W.addOnDisposeCallback(function(){W.JSC$20255_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.MT3.prototype.getState=function(){return _.z6(_.Xe().getState())};
var $A2=function(W,P,x){x=x===void 0?!0:x;var I,O,B,Y=_.p("enable_player_resize_transition")&&!!W.JSC$20255_watchApi.getWatchNextResponse()&&!((I=W.JSC$20255_watchApi.getWatchNextResponse())==null?0:(O=I.contents)==null?0:(B=O.twoColumnWatchNextResults)==null?0:B.conversationBar);_.KJ3(function(){_.Xe().dispatch(_.LK({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:P}}));_.p("theater_mode_scroll_to_top_killswitch")||W.JSC$20255_watchApi.scrollWatchTo(0,!1);_.iO()&&_.p("external_fullscreen")&&_.Ri(document.documentElement);
DAB(W);x&&_.uA("wide",P?"1":"0",-1);_.W7(W.JSC$20255_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);W.JSC$20255_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:P});P&&_.wC9()},{shouldWrap:Y})},DAB=function(W){var P;
_.y(function(x){if(x.nextAddress==1)return _.S(x,W.JSC$20255_watchApi.playerApi,2);P=x.yieldResult;P.setSizeStyle(!0,W.getState());_.Kl(x)})};var HG2=function(W){_.vn.call(this);var P=this;this.playerApi=W;this.timeToPanelSyncKeyMap={};var x;if(W==null?0:(x=W.isReady)==null?0:x.call(W)){x=_.sx(_.FY().resolve(_.Ae),function(O){return O.entities.timedMarkersListSyncEntity||{}},function(O,B){O=O===void 0?{}:O;
B=B===void 0?{}:B;for(var Y=_.n(Object.keys(B)),K=Y.next();!K.done;K=Y.next())K=K.value,O[K]!==B[K]&&wHG(P,B[K]);B=_.n(Object.keys(O));for(Y=B.next();!Y.done;Y=B.next())Y=Y.value,K=O[Y],P.timeToPanelSyncKeyMap[Y]&&hav(P,K)});
this.addOnDisposeCallback(x);var I=function(O){P.onCueRangeEnter(O)};
W.addEventListener("onCueRangeEnter",I);this.addOnDisposeCallback(function(){var O;(O=W.removeEventListener)==null||O.call(W,"onCueRangeEnter",I)})}};
_.A(HG2,_.vn);
var hav=function(W,P){var x,I;if((x=W.playerApi)==null?0:(I=x.isReady)==null?0:I.call(x)){var O;if((x=P==null?void 0:(O=P.timedListData)==null?void 0:O.sections)&&P!=null&&P.key)for(O=_.n(x),x=O.next();!x.done;x=O.next())if(x=x.value,x.timedSyncDataList&&x.sectionId)for(I=0;I<x.timedSyncDataList.length;I++){var B=x.timedSyncDataList[I];B.syncItemId&&W.playerApi.addCueRange(x.sectionId+"_"+P.key+"_"+B.syncItemId,Number(B.videoTimeMs)/1E3,I===x.timedSyncDataList.length-1?0x8000000000000:Number(x.timedSyncDataList[I+
1].videoTimeMs)/1E3)}}},wHG=function(W,P){var x,I;
if((x=W.playerApi)==null?0:(I=x.isReady)==null?0:I.call(x)){var O;if((x=P==null?void 0:(O=P.timedListData)==null?void 0:O.sections)&&P!=null&&P.key)for(O=_.n(x),x=O.next();!x.done;x=O.next())if(x=x.value,x.timedSyncDataList&&x.sectionId){I=_.n(x.timedSyncDataList);for(var B=I.next();!B.done;B=I.next())B=B.value,B.syncItemId&&W.playerApi.removeCueRange(x.sectionId+"_"+P.key+"_"+B.syncItemId)}}};
HG2.prototype.onCueRangeEnter=function(W){for(var P=_.n(Object.keys(this.timeToPanelSyncKeyMap)),x=P.next();!x.done;x=P.next()){x=x.value;var I=_.n(W.split("_"+x+"_")),O=I.next().value;I=I.next().value;if(O&&I){W=_.FY().resolve(_.Ae);P=this.timeToPanelSyncKeyMap[x];var B=_.DNA(W.getState(),P);x=eam(x,O,I);if(x===-1)break;x={activeSyncId:I,activeItemIndex:x,activeSectionInfo:{sectionIdentifier:O}};B?W.dispatch(_.$s("markersEngagementPanelSyncEntity",P,x)):W.dispatch(_.mG("markersEngagementPanelSyncEntity",
P,Object.assign({},{key:P},x)));break}}};
var eam=function(W,P,x){var I=_.FY().resolve(_.Ae),O,B;W=(O=ggB(I.getState(),W))==null?void 0:(B=O.timedListData)==null?void 0:B.sections;if(!W)return-1;O=0;B=_.n(W);for(W=B.next();!W.done;W=B.next()){W=W.value;I=W.timedSyncDataList||[];if(W.sectionId===P)return P=I.findIndex(function(Y){return Y.syncItemId===x}),P===-1?P:O+P;
O+=I.length}return-1};_.bGG=function(W){_.vn.call(this);var P=this;this.JSC$20267_watchApi=W;this.unresolvedCommands=[];this.JSC$20267_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(x){c5y(P,x)});
this.addOnDisposeCallback(function(){P.JSC$20267_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
amM(this)};
_.A(_.bGG,_.vn);var amM=function(W){var P;_.y(function(x){if(x.nextAddress==1)return _.S(x,W.JSC$20267_watchApi.playerApi,2);P=x.yieldResult;if(W.isDisposed())return x.return();W.timedSyncObserver=new HG2(P);W.unresolvedCommands.length&&(W.unresolvedCommands.forEach(function(I){return c5y(W,I)}),W.unresolvedCommands=[]);
_.nU(W,W.timedSyncObserver);_.Kl(x)})},c5y=function(W,P){if(W.timedSyncObserver){var x=_.Q(P,RP9);
if(x&&x.timedSyncEntityKey&&x.panelSyncEntityKey){W=W.timedSyncObserver;P=x.timedSyncEntityKey;var I=x.panelSyncEntityKey;x=!!x.isEnabled;x=x===void 0?!0:x;var O=_.FY().resolve(_.Ae);O=ggB(O.getState(),P);x?W.timeToPanelSyncKeyMap[P]||(W.timeToPanelSyncKeyMap[P]=I,hav(W,O)):(delete W.timeToPanelSyncKeyMap[P],wHG(W,O))}}else W.unresolvedCommands.push(P)};var kV6=_.kl(function(W){var P=W.data,x=W.maybeLogSmartSkipClientData,I=_.fa();_.NI(I,function(){return P().rendererContext},{onTap:function(v,m){m({disableClickTracking:!0})}});
var O=null,B=null,Y=_.p("web_enable_auto_focus_for_timely_action_button"),K=function(){O=document.activeElement},Z=function(){P().smartSkipMetadata&&(O=document.activeElement,_.g73(function(){return B}))},d=function(v){if(P().smartSkipMetadata&&(!v||v.key!=="Enter")){O&&O.isConnected&&(_.g73(function(){return O}),O=null);
var m;(m=B)==null||m.blur()}};
W=_.yB(function(){x==null||x(!0,P());return!1});
_.FL(I,{visibilityCallback:function(v){if(Y)v?B&&P().smartSkipMetadata&&(Z(),document.addEventListener("focusin",K)):(document.removeEventListener("focusin",K),d());else if(v&&_.p("web_ephemeral_actions")){v=_.Xd(P().rendererContext);var m=Number(P().maxVisibleDurationMilliseconds),t,C=(t=_.Q(P().rendererContext,_.TS))==null?void 0:t.label;v&&m&&C&&(t={label:C,command:v,durationMs:m},_.FY().resolve(_.y9).enqueue(t))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.Qa(function(){if(Y){var v;if((B=(v=I.value)==null?void 0:v.querySelector("button"))&&P().smartSkipMetadata){var m;(m=I.value)==null||m.addEventListener("keydown",d)}}});
_.C4(function(){Y&&(B&&P().smartSkipMetadata&&B.removeEventListener("keydown",d),document.removeEventListener("focusin",K),d())});
return _.u("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:I,"on:click":W},_.u(_.Ea,{data:function(){return P().content}},{buttonViewModel:_.cq}))},"ej");var UA6=_.kl(function(W){var P=W.data,x=W.playerApi,I=_.FY().resolve(_.ZVw);W=_.n(_.Zh(function(){P()}));
var O=W.next().value,B=W.next().value,Y=function(){return Qa3(P(),O())},K=function(d,v){var m,t,C=(m=_.Q(v==null?void 0:v.rendererContext,_.Xcx))==null?void 0:(t=m.loggingDirectives)==null?void 0:t.trackingParams;
if((v=v==null?void 0:v.smartSkipMetadata)&&v.loggingData&&(t=v.loggingData,v=t.algorithmId,m=t.startMilliseconds,t=t.endMilliseconds,v&&m!==void 0&&t!==void 0)){var z,D;d={smartSkipData:Object.assign({},{versionName:v,startMediaTimeMs:m,endMediaTimeMs:t},d&&{userInteractionMediaTimeMs:(Math.floor(((z=_.RP())==null?void 0:(D=z.getPlayer())==null?void 0:D.getCurrentTime())||0)*1E3).toString()})};z=_.E_();var w;C&&(w=_.ox(C));z&&w&&_.UL(z,w,d)}},Z=function(d,v){var m=Qa3(P(),d);
if(m){var t=_.Q(m,$S),C;if(C=v)C=x(),m=_.Q(m,$S),C=m!=null&&m.smartSkipMetadata?!(C==null?0:C.isSameMarkerTypeVisible((m==null?void 0:m.smartSkipMetadata.markerKey)||"")):!0;if(C){var z,D;(t==null?0:(z=t.smartSkipMetadata)==null?0:(D=z.loggingData)==null?0:D.isCounterfactual)||(K(!1,t),B(d))}else v||O()!==d||B(void 0)}};
_.jj(function(){var d=P().timelyActions;if(d){d=_.n(d);for(var v=d.next();!v.done;v=d.next()){v=_.Q(v.value,$S);var m=void 0;(m=v)!=null&&m.cueRangeId&&I.timelyActionsMap.set(v.cueRangeId,Z)}_.C4(function(){I.timelyActionsMap.clear()})}});
return _.u("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.u(_.Ea,{data:Y},{timelyActionViewModel:function(d){return _.u(kV6,{data:d.data,maybeLogSmartSkipClientData:function(){K(!0,_.Q(Y(),$S))}})}}))},"fj");_.fm3=function(W){_.vn.call(this);this.JSC$20279_watchApi=W;W=_.n(_.YV({},void 0,"pLDp2"));this.timelyActionsOverlay=W.next().value;this.setTimelyActionsOverlay=W.next().value;XHv(this)};
_.A(_.fm3,_.vn);var XHv=function(W){var P,x,I,O;_.y(function(B){if(B.nextAddress==1)return Nf9(W),lmm(W),W.timelyActionsContainer=document.createElement("div"),_.S(B,W.JSC$20279_watchApi.playerApi,2);P=B.yieldResult;(I=(x=P).insertTimelyActionUi)==null||I.call(x,W.timelyActionsContainer);O=_.jL(W.timelyActionsContainer,function(){return _.u(UA6,{data:W.timelyActionsOverlay,playerApi:P})});
W.addOnDisposeCallback(O);_.Kl(B)})},lmm=function(W){var P=W.JSC$20279_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Nf9(W)});
W.addOnDisposeCallback(function(){W.JSC$20279_watchApi.unsubscribeByKey(P)})},Nf9=function(W){var P=W.JSC$20279_watchApi.getWatchNextResponse();
if(P){var x,I;if(P=_.Q((x=P.playerOverlays)==null?void 0:(I=x.playerOverlayRenderer)==null?void 0:I.timelyActionsOverlayViewModel,FVm)){var O;(O=W.setTimelyActionsOverlay)==null||O.call(W,P)}}};_.r53=function(W){_.vn.call(this);this.JSC$20283_watchApi=W;TfG(this)};
_.A(_.r53,_.vn);var TfG=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20283_watchApi.playerApi,2);P=I.yieldResult;x=function(O){_.Ix.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.Q(O,_.ZHd)},popupType:"TOAST"}})};
P.addEventListener("onYtShowToast",x);W.addOnDisposeCallback(function(){P.removeEventListener("onYtShowToast",x)});
_.Kl(I)})};var iGf,qgv,RaO,FKG,xZf,Wiy,PyG,O$L,JB2;iGf=!1;_.LKm=function(W){_.vn.call(this);this.JSC$20286_watchApi=W;this.fullscreen=this.theater=!1;RaO(this);FKG(this);qgv(this)};
_.A(_.LKm,_.vn);qgv=function(W){var P,x,I;_.y(function(O){if(O.nextAddress==1)return _.S(O,W.JSC$20286_watchApi.playerApi,2);P=O.yieldResult;if(W.isDisposed())return O.return();x=W.JSC$20286_watchApi.getElement("CINEMATICS");if(!x)return O.return();W.JSC$20286_cinematicController=new _.Ol(x,P);_.nU(W,W.JSC$20286_cinematicController);_.w24(W.JSC$20286_cinematicController);Wiy(W,_.tf7());I=W.JSC$20286_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(B){PyG(W,B)});
W.addOnDisposeCallback(function(){W.JSC$20286_watchApi.unsubscribeByKey(I)});
xZf(W);PyG(W,W.JSC$20286_cinematicController.isAllowed());_.Ia4(W,W.fullscreen,W.theater);O$L(W);_.Kl(O)})};
RaO=function(W){var P=W.JSC$20286_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xZf(W)});
W.addOnDisposeCallback(function(){W.JSC$20286_watchApi.unsubscribeByKey(P)})};
FKG=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20286_watchApi.playerApi,2);P=I.yieldResult;x=function(O){Wiy(W,O)};
P.addEventListener("cinematicSettingsToggleChange",x);W.addOnDisposeCallback(function(){P.removeEventListener("cinematicSettingsToggleChange",x)});
_.Kl(I)})};
xZf=function(W){var P=W.JSC$20286_watchApi.getWatchNextResponse(),x;P=_.Q(P==null?void 0:(x=P.pageVisualEffects)==null?void 0:x[0],_.jT);var I;(I=W.JSC$20286_cinematicController)==null||_.HHd(I,P)};
Wiy=function(W,P){var x;(x=W.JSC$20286_cinematicController)==null||_.h13(x,P);JB2(W)};
PyG=function(W,P){var x;_.y(function(I){if(I.nextAddress==1)return _.p("kevlar_watch_cinematics_invisible")&&(P=!1),_.S(I,W.JSC$20286_watchApi.playerApi,2);x=I.yieldResult;x.updateCinematicSettings(P);JB2(W);_.Kl(I)})};
O$L=function(W){var P=_.SI();if(_.p("kevlar_measure_ambient_mode_idle")&&!P.getFlag(192)&&!iGf){iGf=!0;var x=_.VE(_.Gr,function(){_.FY().resolve(_.J9d).start(1E4)},5E3);
W.addOnDisposeCallback(function(){_.Gr.cancelJob(x);_.FY().resolve(_.J9d).stop()})}};
_.Ia4=function(W,P,x){W.fullscreen=P;W.theater=x;var I;(I=W.JSC$20286_cinematicController)==null||I.setFullscreen(W.fullscreen,W.theater);if(_.p("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(W.theater||W.fullscreen){var O;(O=W.JSC$20286_cinematicController)==null||_.e1G(O)}else if((W=W.JSC$20286_cinematicController)!=null){var B;(B=W.currentCinematicEffect)==null||B.pause()}};
JB2=function(W){if(_.p("web_cinematic_theater_mode")||_.p("web_cinematic_fullscreen")){var P;W.JSC$20286_watchApi.getRoot().toggleCinematicsActive(!((P=W.JSC$20286_cinematicController)==null||!P.isEnabled()))}};_.yBf=function(W){_.vn.call(this);var P=this;this.JSC$20289_watchApi=W;this.commentsReady=!1;this.setCommentsJobId=0;W=_.sx(_.Xe(),_.Ar,function(){BIf(P)});
this.addOnDisposeCallback(W);var x=this.JSC$20289_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nrG(P)}),I=this.JSC$20289_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){nrG(P)});
this.addOnDisposeCallback(function(){P.JSC$20289_watchApi.unsubscribeByKey(x);P.JSC$20289_watchApi.unsubscribeByKey(I)});
var O=function(){_.p("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&YDy(P,"false")};
this.JSC$20289_watchApi.getRoot().addEventListener("yt-page-data-will-update",O);this.addOnDisposeCallback(function(){P.JSC$20289_watchApi.getRoot().removeEventListener("yt-page-data-will-update",O)});
nrG(this)};
_.A(_.yBf,_.vn);var nrG=function(W){W.commentsReady=!1;_.Gr.cancelJob(W.setCommentsJobId);W.setCommentsJobId=_.VE(_.Gr,function(){BIf(W)},1E3)},BIf=function(W){if(!W.commentsReady){_.CK("cmi");
_.Gr.cancelJob(W.setCommentsJobId);var P,x,I,O,B=(P=W.JSC$20289_watchApi.getWatchNextResponse())==null?void 0:(x=P.contents)==null?void 0:(I=x.twoColumnWatchNextResults)==null?void 0:(O=I.results)==null?void 0:O.results.contents;P=void 0;if(B&&B.length)for(B=_.n(B),x=B.next();!x.done;x=B.next())if(x=x.value,O=I=void 0,((I=x)==null?void 0:(O=I.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"){_.p("web_watch_provide_undefined_comments")?P=x.itemSectionRenderer:W.JSC$20289_watchApi.provideRenderingData("COMMENTS",
x.itemSectionRenderer);YDy(W,"true");break}_.p("web_watch_provide_undefined_comments")&&W.JSC$20289_watchApi.provideRenderingData("COMMENTS",P);W.commentsReady=!0;W.JSC$20289_watchApi.dispatchEvent("yt-watch-comments-ready")}},YDy=function(W,P){var x;
(x=W.JSC$20289_watchApi.getElement("COMMENTS"))==null||x.setAttribute("canScheduleJobs",P)};_.HG=function(W){_.vn.call(this);var P=this;this.JSC$20292_watchApi=W;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.p("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.p("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.p("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Wi("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)Kif(this);
else{var x=this.JSC$20292_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){$b(P);wH(P)}),I=this.JSC$20292_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){h_(P);
wH(P)});
this.JSC$20292_watchApi.getRoot().is==="ytd-watch-grid"&&_.p("swatcheroo_pbs_load_grid")&&(Z$9(this),orM(this));this.addOnDisposeCallback(function(){P.JSC$20292_watchApi.unsubscribeByKey(x);P.JSC$20292_watchApi.unsubscribeByKey(I);_.Gr.cancelJob(P.provideRichGridJobId)});
$b(this);h_(this)}};
_.A(_.HG,_.vn);var Kif=function(W){var P=W.JSC$20292_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){W.providePlayerJobId=_.GS(_.Gr,function(){$b(W);wH(W)},W.provideAllDataDelayMs)}),x=W.JSC$20292_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){W.provideWatchNextJobId=_.GS(_.Gr,function(){h_(W);
wH(W)},W.provideAllDataDelayMs)}),I=W.JSC$20292_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){W.provideWatchNextJobId=_.GS(_.Gr,function(){h_(W);
wH(W)},W.provideAllDataDelayMs)});
W.JSC$20292_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.VE(_.Gr,function(){$b(W);h_(W);wH(W)},100)});
W.JSC$20292_watchApi.addPageDisposeJob(function(){_.Gr.cancelJob(W.provideWatchNextJobId);_.Gr.cancelJob(W.providePlayerJobId)});
W.addOnDisposeCallback(function(){W.JSC$20292_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");W.JSC$20292_watchApi.unsubscribeByKey(P);W.JSC$20292_watchApi.unsubscribeByKey(x);W.JSC$20292_watchApi.unsubscribeByKey(I);_.Gr.cancelJob(W.providePlayerJobId);_.Gr.cancelJob(W.provideWatchNextJobId)});
$b(W);h_(W)},$b=function(W){var P=W.JSC$20292_watchApi.getPlayerResponse(),x,I,O=(I=P==null?void 0:(x=P.playabilityStatus)==null?void 0:x.messageRenderers)!=null?I:[],B,Y;
P=(Y=P==null?void 0:(B=P.playabilityStatus)==null?void 0:B.messages)!=null?Y:[];B=_.n(P);for(Y=B.next();!Y.done;Y=B.next())O.push({alertRenderer:{text:_.bx(Y.value),type:"WARNING"}});W.JSC$20292_watchApi.provideRenderingData("ALERTS",O)},h_=function(W){var P=[],x,I,O,B=W.JSC$20292_watchApi.getWatchNextResponse(),Y,K,Z,d,v=B==null?void 0:(Y=B.contents)==null?void 0:(K=Y.twoColumnWatchNextResults)==null?void 0:(Z=K.results)==null?void 0:(d=Z.results)==null?void 0:d.contents;
if(v)for(Y=_.n(v),K=Y.next();!K.done;K=Y.next())if(K=K.value,K.videoPrimaryInfoRenderer)var m=K;else if(K.videoSecondaryInfoRenderer){var t=K;d=Z=void 0;K=Object.assign({},(Z=K.videoSecondaryInfoRenderer)==null?void 0:(d=Z.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(K.rows&&K.collapsedItemCount!==void 0){K.rows=K.rows.slice(0,K.collapsedItemCount).filter(function(lp){return!!lp.richMetadataRowRenderer});
K.collapsedItemCount=K.rows.length;var C={metadataRowContainerRenderer:K}}}else if(K.merchandiseShelfRenderer)var z=K;else if(K.ticketShelfRenderer)var D=K;else if(K.expandableMetadataRenderer)var w=K;else if(K.itemSectionRenderer)if(Z=K.itemSectionRenderer.contents,d=void 0,W.directlyProvideComments&&((d=K.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section")_.CK("cmi"),W.JSC$20292_watchApi.provideRenderingData("COMMENTS",K.itemSectionRenderer);else if(Z)for(K=_.n(Z),Z=
K.next();!Z.done;Z=K.next())if(Z=Z.value,Z.commentsEntryPointHeaderRenderer)var a=Z;else if(Z.clarificationRenderer||Z.infoPanelContainerRenderer||Z.infoPanelContentRenderer||Z.emergencyOneboxRenderer){P.push(Z);var k=k||!!t}else Z.limitedStateMessageRenderer?I=Z:Z.videoMetadataCarouselViewModel&&(O=Z);if(_.p("web_watch_merch_in_sd_when_ticket_shelf_present")&&z&&D){var T=z;z=void 0}if(W.provideWatchNextSecondaryResults){var N,Io,F;W.JSC$20292_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
B==null?void 0:(N=B.contents)==null?void 0:(Io=N.twoColumnWatchNextResults)==null?void 0:(F=Io.secondaryResults)==null?void 0:F.secondaryResults)}if(W.JSC$20292_watchApi.getRoot().is==="ytd-watch-grid"){var nm,pm;W.JSC$20292_watchApi.provideRenderingData("LIVE_CHAT",B==null?void 0:(nm=B.contents)==null?void 0:(pm=nm.twoColumnWatchNextResults)==null?void 0:pm.conversationBar)}var zR,Am,kW,$W;(N=B==null?void 0:(zR=B.contents)==null?void 0:(Am=zR.twoColumnWatchNextResults)==null?void 0:(kW=Am.secondaryResults)==
null?void 0:($W=kW.secondaryResults)==null?void 0:$W.offerModule)&&(N.donationShelfRenderer||N.donationUnavailableRenderer)&&W.JSC$20292_watchApi.getRoot().is!=="ytd-watch-grid"&&(x=N);zR=W.JSC$20292_watchApi.getPlayerResponse();if(!zR||!_.nvW(zR.playabilityStatus,B==null?void 0:B.playerOverlays)){var ao;if(B==null?0:(ao=B.contents)==null?0:ao.singleColumnWatchNextResults){var e8,iC;var hw=B==null?void 0:(e8=B.contents.singleColumnWatchNextResults.results)==null?void 0:(iC=e8.results)==null?void 0:
iC.contents}else{var dk,Oc,Bm,GA;ao=!!(v==null?0:(dk=v[0])==null?0:(Oc=dk.itemSectionRenderer)==null?0:(Bm=Oc.contents)==null?0:(GA=Bm[0])==null?0:GA.backgroundPromoRenderer);var KM,PZ;dk=!!(B==null?0:(KM=B.contents)==null?0:(PZ=KM.twoColumnWatchNextResults)==null?0:PZ.secondaryResults);ao&&!dk&&(hw=v)}}v=P[0];KM=P[1];k&&P.length===1&&(KM=v,v=void 0);W.JSC$20292_watchApi.provideRenderingData("PRIMARY_INFO",m);W.JSC$20292_watchApi.provideRenderingData("SECONDARY_INFO",t);W.JSC$20292_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
a);W.JSC$20292_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",O);W.JSC$20292_watchApi.provideRenderingData("CLARIFICATION",v);W.JSC$20292_watchApi.provideRenderingData("RICH_METADATA",C);W.JSC$20292_watchApi.provideRenderingData("MERCH_SHELF",z);_.p("web_watch_merch_in_sd_when_ticket_shelf_present")&&W.JSC$20292_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",T);W.JSC$20292_watchApi.provideRenderingData("TICKET_SHELF",D);W.JSC$20292_watchApi.provideRenderingData("LIMITED_STATE",I);W.JSC$20292_watchApi.getRoot().is!==
"ytd-watch-grid"&&W.JSC$20292_watchApi.provideRenderingData("DONATION_SHELF",x);W.JSC$20292_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",hw);W.JSC$20292_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",KM);W.JSC$20292_watchApi.provideRenderingData("EXPANDABLE_METADATA",w);if(W.swatcherooProvideAllDataOnScheduledJob){var j$,YW,QZ,ez,b3,D3;m=B==null?void 0:(j$=B.contents)==null?void 0:(YW=j$.twoColumnWatchNextResults)==null?void 0:(QZ=YW.secondaryResults)==null?void 0:(ez=QZ.secondaryResults)==
null?void 0:(b3=ez.results)==null?void 0:(D3=b3[0])==null?void 0:D3.richGridRenderer;W.JSC$20292_watchApi.provideRenderingData("RICH_GRID_RENDERER",m)}};
_.HG.prototype.hasCompanionAds=function(W){var P,x;return(x=W==null?void 0:(P=W.adPlacements)==null?void 0:P.some(function(I){var O,B,Y,K;return(I==null?void 0:(O=I.adPlacementRenderer)==null?void 0:(B=O.renderer)==null?void 0:B.actionCompanionAdRenderer)||(I==null?void 0:(Y=I.adPlacementRenderer)==null?void 0:(K=Y.renderer)==null?void 0:K.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?x:!1};
var wH=function(W){if(!_.p("swaterdoo_ps_wn_handle_ks")){W.swatcherooProvideAllDataOnScheduledJob||orM(W,3E3);var P=W.JSC$20292_watchApi.getPlayerResponse(),x,I,O,B,Y,K=(x=W.JSC$20292_watchApi.getWatchNextResponse())==null?void 0:(I=x.contents)==null?void 0:(O=I.twoColumnWatchNextResults)==null?void 0:(B=O.secondaryResults)==null?void 0:(Y=B.secondaryResults)==null?void 0:Y.offerModule;P=W.hasCompanionAds(P);var Z,d;x=(K==null?void 0:(Z=K.tvfilmOfferModuleRenderer)==null?void 0:Z.clientShouldSuppressIfCompanionAdDisplayed)||
(K==null?void 0:(d=K.unlimitedOfferModuleRenderer)==null?void 0:d.suppressIfCompanionAds);Z=P&&x;W.JSC$20292_watchApi.getRoot().is==="ytd-watch-grid"&&W.JSC$20292_watchApi.provideRenderingData("OFFER_MODULE",Z?void 0:K)}},orM=function(W,P){_.p("swatcheroo_pbs_load_grid")&&(W.provideRichGridJobId&&_.Gr.cancelJob(W.provideRichGridJobId),W.provideRichGridJobId=_.GS(_.Gr,function(){W.provideRichGridJobId=0;
var x,I,O,B,Y,K,Z,d=(x=W.JSC$20292_watchApi.getWatchNextResponse())==null?void 0:(I=x.contents)==null?void 0:(O=I.twoColumnWatchNextResults)==null?void 0:(B=O.secondaryResults)==null?void 0:(Y=B.secondaryResults)==null?void 0:(K=Y.results)==null?void 0:(Z=K[0])==null?void 0:Z.richGridRenderer;d&&W.JSC$20292_watchApi.provideRenderingData("RICH_GRID_RENDERER",d)},P))},Z$9=function(W){var P,x;
_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20292_watchApi.playerApi,2);P=I.yieldResult;x=function(){W.onPlaybackStart()};
P.addEventListener("onPlaybackStartExternal",x);W.addOnDisposeCallback(function(){P.removeEventListener("onPlaybackStartExternal",x)});
_.Kl(I)})};
_.HG.prototype.onPlaybackStart=function(){orM(this)};_.uk6=function(W){_.vn.call(this);var P=this;this.JSC$20302_watchApi=W;W.playerApi.then(function(x){P.player=x});
this.gestures=new _.yp(this.JSC$20302_watchApi.getRoot(),W.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.Hiv(_.Xe().getState())&&_.Ar(_.Xe().getState())<=0)if(_.CN(_.Xe().getState())){var x;(x=P.player)==null||x.toggleFullscreen()}else _.W7(P.JSC$20302_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
SDO(this)};
_.A(_.uk6,_.vn);var SDO=function(W){var P=_.sx(_.Xe(),_.CN,function(x){W.gestures&&W.gestures.update(x)});
W.addOnDisposeCallback(P);P=_.sx(_.Xe(),_.Ar,function(x){W.gestures&&(x>0?W.gestures.detach():W.gestures.attach())});
W.addOnDisposeCallback(P)};_.sbM=function(W){_.vn.call(this);var P=this;this.JSC$20305_watchApi=W;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(W.subscribeToActiveChanged(function(x){P.onActiveChanged(x)}));
dZB(this)};
_.A(_.sbM,_.vn);var vrO=function(W){if(_.p("swatcheroo_page_dispose_all_watch_data"))W.pageDisposalDataTypes=Object.values(ev2).filter(function(x){return x!=="PLAYLIST"});
else if(_.p("swatcheroo_page_dispose_rich_grid")){var P;(P=W.pageDisposalDataTypes)==null||P.push("RICH_GRID_RENDERER")}},dZB=function(W){_.p("swatcheroo_enable_ghost_cards")&&(vrO(W),W.JSC$20305_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Gr.cancelJob(W.clearDataJobId);
W.clearDataJobId=0}),W.runPageDisposeJob=function(){var P=_.FY().resolve(_.rL).getDestinationPageType()==="watch";
W.clearDataJobId=_.GS(_.Gr,W.runClearDataJob,P?0:_.Wi("web_watch_delay_page_dispose_ms",1E4))},W.runClearDataJob=function(){mZd(W)},W.runOnYtNavigateAwayFinish=function(){W.clearDataJobId&&(_.Gr.cancelJob(W.clearDataJobId),W.clearDataJobId=0,mZd(W))},document.addEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish),W.JSC$20305_watchApi.addPageDisposeJob(W.runPageDisposeJob),W.addOnDisposeCallback(function(){W.JSC$20305_watchApi.removePageDisposeJob(W.runPageDisposeJob);
W.JSC$20305_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish)}))},mZd=function(W){W.pageDisposalDataTypes.forEach(function(P){W.JSC$20305_watchApi.provideRenderingData(P,void 0)});
W.clearDataJobId=0};
_.sbM.prototype.onActiveChanged=function(W){W&&((W=document.querySelector("#watch-page-skeleton"))&&_.oE(W),VNy(this),document.body.removeAttribute("no-y-overflow"),_.wo("IS_SHELL_LOAD")&&_.M72())};
var VNy=function(W){_.y(function(P){if(P.nextAddress==1)return _.S(P,W.JSC$20305_watchApi.playerApi,2);_.Lo();_.Kl(P)})};var tNf;tNf=_.p("kevlar_watch_while_counterfactual")?0:.25;_.eD=function(W){_.vn.call(this);this.JSC$20308_watchApi=W;this.JSC$20308_watchWhileEnabled=_.p("kevlar_watch_while_v2");this.pipEnabled=_.p("web_enable_pip_on_miniplayer");p8v(this);jb4(this);Qbv(this)};
_.A(_.eD,_.vn);var p8v=function(W){W.JSC$20308_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Cyy(W)});
W.addOnDisposeCallback(function(){W.JSC$20308_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},jb4=function(W){var P,x;
_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20308_watchApi.playerApi,2);P=I.yieldResult;x=function(){Cyy(W)};
P.addEventListener("onCollapseMiniplayer",x);W.addOnDisposeCallback(function(){P.removeEventListener("onCollapseMiniplayer",x)});
_.Kl(I)})},Qbv=function(W){var P=W.JSC$20308_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&P&&W.JSC$20308_watchWhileEnabled&&(W.playerIntersectionObserver=new IntersectionObserver(function(x){W.handleIntersect(x)},{threshold:[tNf]}),W.playerIntersectionObserver.observe(P),W.addOnDisposeCallback(function(){var x;
(x=W.playerIntersectionObserver)==null||x.disconnect()}))},Cyy=function(W){var P,x,I;
_.y(function(O){if(O.nextAddress==1){P=_.FY().resolve(_.rL);x=P.data;I=_.YgG(x.response,x.playerResponse);_.ug().miniplayerButtonActivation=!0;if(W.pipEnabled)return _.ug().watchPipActivation=!0,O.jumpTo(2);_.FY().resolve(_.kc).collapse();return _.S(O,_.ug().navigationFinishPromise,2)}if(O.nextAddress!=4)return _.ug().currentEndpoint=I.watchEndpoint||null,_.S(O,_.FY().resolve(_.kc).activate(W.JSC$20308_watchApi.getElement("PLAYER"),I,x),4);_.ug().userActivation=!0;_.Kl(O)})};
_.eD.prototype.handleIntersect=function(W){ABd(this,W[W.length-1])};
var ABd=function(W,P){W.watchWhileJobId&&_.Gr.cancelJob(W.watchWhileJobId);W.watchWhileJobId=_.Gr.addLowPriorityJob(function(){var x,I;return _.y(function(O){if(O.nextAddress==1)return W.watchWhileJobId=void 0,x=_.FY().resolve(_.kc),P.intersectionRatio>tNf?x.isMiniplayerActive()?_.S(O,x.deactivate(),0):O.jumpTo(0):(I=!x.isMiniplayerActive())?_.S(O,zg4(W),5):O.jumpTo(4);O.nextAddress!=4&&(I=O.yieldResult);if(!I)return O.jumpTo(0);_.ug().watchWhileActivation=!0;return _.S(O,G3G(W),0)})},100)},zg4=function(W){return _.y(function(P){return P.nextAddress==
1?_.p("kevlar_watch_while_paused")?P.return(!0):_.S(P,W.isPlayerPlaying(),2):P.return(P.yieldResult)})};
_.eD.prototype.isPlayerPlaying=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,W.JSC$20308_watchApi.playerApi,2);P=x.yieldResult;return x.return(P.getPlayerStateObject().isPlaying)})};
var G3G=function(W){var P,x;return _.y(function(I){P=_.FY().resolve(_.rL).data;x=_.YgG(P.response,P.playerResponse);_.ug().currentEndpoint=x.watchEndpoint||null;return _.S(I,_.FY().resolve(_.kc).activate(W.JSC$20308_watchApi.getElement("PLAYER"),x,P),0)})};_.DZG=function(W){_.vn.call(this);this.JSC$20312_watchApi=W;Er9(this);grG(this)};
_.A(_.DZG,_.vn);var grG=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20312_watchApi.playerApi,2);P=I.yieldResult;x=function(O){var B;O.sessionData&&O.sessionData.itct&&(B=O.sessionData.itct);var Y=O.watchEndpoint;if(Y&&O.sessionData&&O.sessionData.autonav)Y=_.U6o(Y,B);else{var K;Y=_.iB(O.videoId,(K=O.listId)!=null?K:void 0,B)}B={endpoint:Y};O.sessionData&&(B.tempData=O.sessionData);W.JSC$20312_watchApi.dispatchEvent("yt-navigate",B)};
P.addEventListener("onPlayVideo",x);W.addOnDisposeCallback(function(){P.removeEventListener("onPlayVideo",x)});
_.Kl(I)})},Er9=function(W){var P=function(x){W.onYtNavigate(x)};
W.JSC$20312_watchApi.getRoot().addEventListener("yt-navigate",P);W.addOnDisposeCallback(function(){W.JSC$20312_watchApi.getRoot().removeEventListener("yt-navigate",P)})};
_.DZG.prototype.onYtNavigate=function(W){var P=this,x,I,O,B,Y,K,Z,d,v;return _.y(function(m){if(m.nextAddress==1){if(!((x=W.detail)==null?0:(I=x.endpoint)==null?0:I.watchEndpoint))return m.return();O=W.detail.endpoint.watchEndpoint;B=P.JSC$20312_watchApi.getWatchNextResponse();K=_.Q((Y=B)==null?void 0:Y.currentVideoEndpoint,_.U_);if(!K)return m.return();if(O.videoId!==K.videoId||O.playlistId&&O.playlistId!==K.playlistId||typeof O.startTimeSeconds!=="number")return m.jumpTo(0);W.stopPropagation();
(Z=_.p("kevlar_watch_while_v2")&&!_.p("kevlar_watch_while_counterfactual"))&&_.FY().resolve(_.kc).isMiniplayerActive()||P.JSC$20312_watchApi.scrollWatchTo(0,!0);return _.S(m,P.JSC$20312_watchApi.playerApi,3)}d=m.yieldResult;v=O.startTimeSeconds;d.seekTo(v,void 0,void 0,void 0,84);d.wakeUpControls();v<d.getDuration()&&d.playVideo();_.Kl(m)})};_.$ZQ=function(W){_.vn.call(this);var P=this;this.JSC$20315_watchApi=W;var x=this.JSC$20315_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MNL(P)});
this.addOnDisposeCallback(function(){P.JSC$20315_watchApi.unsubscribeByKey(x)});
MNL(this)};
_.A(_.$ZQ,_.vn);var MNL=function(W){var P=W.JSC$20315_watchApi.getWatchNextResponse();if(P){var x,I=[].concat(_.ju((x=P==null?void 0:P.engagementPanels)!=null?x:[]));I.unshift.apply(I,_.ju(w8G(P)));W.JSC$20315_watchApi.provideRenderingData("ENGAGEMENT_PANELS",I)}},hgO=function(W){var P,x,I,O=(P=W.engagementPanels)==null?void 0:(x=P.find(function(C){var z;
return((z=C.engagementPanelSectionListRenderer)==null?void 0:z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(I=x.engagementPanelSectionListRenderer.content)==null?void 0:I.structuredDescriptionContentRenderer,B;
if(_.Q(O==null?void 0:(B=O.items)==null?void 0:B.find(function(C){return!!_.Q(C,uam)}),uam))return!0;
var Y,K,Z,d;if(W=(((Y=W.contents)==null?void 0:(K=Y.twoColumnWatchNextResults)==null?void 0:(Z=K.results)==null?void 0:(d=Z.results)==null?void 0:d.contents)||[]).find(function(C){return C.videoPrimaryInfoRenderer})){var v,m,t;
return(((v=W.videoPrimaryInfoRenderer)==null?void 0:(m=v.videoActions)==null?void 0:(t=m.menuRenderer)==null?void 0:t.flexibleItems)||[]).some(function(C){C=_.Q(C,_.TQd);if(!C)return!1;var z,D;C=(z=C.topLevelButton)==null?void 0:(D=z.buttonViewModel)==null?void 0:D.onTap;if(!C)return!1;z=_.AF(C);if(!z)return!1;var w;return((w=_.Q(z,_.wh))==null?void 0:w.panelIdentifier)==="PAyouchat"})}return!1},w8G=function(W){var P=[];
if(!_.p("web_watch_inject_placeholder_fantasy_panel_killswitch")){var x,I,O,B=(x=W.engagementPanels)==null?void 0:(I=x.find(function(K){var Z;return((Z=K.engagementPanelSectionListRenderer)==null?void 0:Z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(O=I.engagementPanelSectionListRenderer.content)==null?void 0:O.structuredDescriptionContentRenderer,Y;
_.Q(B==null?void 0:(Y=B.items)==null?void 0:Y.find(function(K){return!!_.Q(K,NzM)}),NzM)&&(x=_.R78("PAsports_fantasy"),x.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P.push(x))}hgO(W)&&(W=_.R78("PAyouchat"),W.engagementPanelSectionListRenderer.targetId="PAyouchat",W.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P.push(W));
return P};_.egB=function(W){_.vn.call(this);this.JSC$20318_watchApi=W;H$6(this)};
_.A(_.egB,_.vn);var H$6=function(W){W.JSC$20318_watchApi.registerActionHandler("yt-loop-command",function(P){cBL(W,P)});
W.JSC$20318_watchApi.registerActionHandler("yt-repeat-chapter-command",function(P){aa3(W,P)});
W.addOnDisposeCallback(function(){W.JSC$20318_watchApi.unregisterActionHandler("yt-loop-command");W.JSC$20318_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},cBL=function(W,P){var x;
_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20318_watchApi.playerApi,2);x=I.yieldResult;_.Q(P,TzM).loop?(x.setLoopRange({startTimeMs:Number(_.Q(P,TzM).startTimeMs),endTimeMs:Number(_.Q(P,TzM).endTimeMs),postId:_.Q(P,TzM).postId,type:"clips"}),x.playVideo()):x.setLoopRange(null);_.Kl(I)})},aa3=function(W,P){var x,I;
_.y(function(O){if(O.nextAddress==1)return _.S(O,W.JSC$20318_watchApi.playerApi,2);x=O.yieldResult;I=_.Q(P,qOL).repeat;I==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(x.setLoopRange({startTimeMs:Number(_.Q(P,qOL).startTimeMs),endTimeMs:Number(_.Q(P,qOL).endTimeMs),type:"repeatChapter"}),x.playVideo()):I==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&x.setLoopRange(null);_.Kl(O)})};_.k3M=function(W){_.vn.call(this);this.JSC$20323_watchApi=W;b$G(this)};
_.A(_.k3M,_.vn);var b$G=function(W){W.JSC$20323_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(P){UZG(W,P)});
W.addOnDisposeCallback(function(){W.JSC$20323_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},UZG=function(W,P){var x,I,O,B,Y,K,Z,d,v,m,t;
_.y(function(C){if(C.nextAddress==1)return _.S(C,W.JSC$20323_watchApi.playerApi,2);x=C.yieldResult;if(B=(O=(I=_.Q(P,LV6))==null?void 0:I.highlightedMenuItemKey)!=null?O:"")(K=(Y=x).highlightSettingsMenuItem)==null||K.call(Y,B);if(v=(d=(Z=_.Q(P,LV6))==null?void 0:Z.openMenuItemKey)!=null?d:"")(t=(m=x).openSettingsMenuItem)==null||t.call(m,v);_.Kl(C)})};var X84=_.On("/youtube/app/watch/player_state","playerStateEntity");_.NIf=function(W){_.vn.call(this);this.JSC$20326_watchApi=W;fa9(this)};
_.A(_.NIf,_.vn);var laO=function(W){switch(W){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"}},fa9=function(W){var P,x;
_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20326_watchApi.playerApi,2);P=I.yieldResult;x=function(O){W.onPlayerStateChange(O)};
P.addEventListener("onStateChange",x);W.addOnDisposeCallback(function(){P.removeEventListener("onStateChange",x)});
_.Kl(I)})};
_.NIf.prototype.onPlayerStateChange=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,P.JSC$20326_watchApi.playerApi,2);x=O.yieldResult;I=x.getVideoData().video_id;_.HM().dispatch(_.mG("playerStateEntity",X84,{key:X84,playerState:laO(W),videoId:I}));_.Kl(O)})};_.TI6=function(W){_.vn.call(this);var P=this;this.JSC$20330_watchApi=W;_.FY().resolve(_.wx).setPlayer(this.JSC$20330_watchApi.getElement("PLAYER"));W=this.JSC$20330_watchApi.subscribeToActiveChanged(function(x){P.onActiveChanged(x)});
this.addOnDisposeCallback(W)};
_.A(_.TI6,_.vn);_.TI6.prototype.onActiveChanged=function(W){var P=this,x=_.FY().resolve(_.wx),I=function(){rBM(P)};
W?(W=this.JSC$20330_watchApi.getElement("PLAYLIST_PANEL"))?(x.setPlaylistComponent(W),x.addEventListener("yt-playlist-data-updated",I),this.addOnDisposeCallback(function(){x.removeEventListener("yt-playlist-data-updated",I)}),rBM(this)):_.co(Error("jm")):(x.removeEventListener("yt-playlist-data-updated",I),x.cancelVideoSkip())};
var rBM=function(W){var P=_.FY().resolve(_.wx);W.JSC$20330_watchApi.provideRenderingData("PLAYLIST",P.getPlaylistData())};_.cG=function(W){_.vn.call(this);var P=this;this.JSC$20333_watchApi=W;this.onPageScroll=function(){P.scrollThrottle.fire();P.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.WO(this.onThrottledScroll,200,this);_.nU(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.WO(this.onMastheadThrottledScroll,50,this);_.nU(this,this.mastheadScrollThrottle);this.animation=new _.zf(function(x){P.JSC$20333_watchApi.getRoot().setScrollTop(x)});
W=_.sx(_.Xe(),_.CN,function(){i$O(P)});
this.addOnDisposeCallback(W);Rgm(this);Fif(this);this.onThrottledScroll()};
_.A(_.cG,_.vn);
var i$O=function(W){var P=W.JSC$20333_watchApi.getRoot();!W.pageScrollElement&&P.pageScrollElement?(W.pageScrollElement=P.pageScrollElement,P.pageScrollElement.addEventListener("scroll",W.onPageScroll),W.addOnDisposeCallback(function(){W.pageScrollElement&&W.pageScrollElement.removeEventListener("scroll",W.onPageScroll)})):W.pageScrollElement&&!P.pageScrollElement&&(W.pageScrollElement.removeEventListener("scroll",W.onPageScroll),W.pageScrollElement=void 0)},Rgm=function(W){window.addEventListener("scroll",W.onPageScroll);
W.addOnDisposeCallback(function(){window.removeEventListener("scroll",W.onPageScroll)})},Fif=function(W){W.JSC$20333_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(P){a:{var x;
if(x=W.JSC$20333_watchApi.getRoot().contains(P)&&!W.animation.isAnimating()){x=P.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var I,O,B=(P==null?void 0:(I=P.parentElement)==null?void 0:(O=I.parentElement)==null?void 0:O.id)==="fixed-secondary";x=!(x&&B)}if(x){if(_.p("kevlar_watch_scroll_manager_absolute_offset_killswitch"))I=P.offsetTop;else for(I=0,O=P;O!==null;)I+=O.offsetTop,I-=O.scrollTop,O=O.offsetParent;O=I;I=O-24;P=O+P.offsetHeight+24;O=W.JSC$20333_watchApi.getRoot().getPageScrollingElement();
x=W.JSC$20333_watchApi.getRoot().getScrollTop();B=x+O.clientHeight-56;if(I<x+56)P=I-56;else if(P>B)P-=O.clientHeight;else break a;W.scrollWatchTo(Math.max(0,P),!0)}}});
W.addOnDisposeCallback(function(){W.JSC$20333_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.cG.prototype.onThrottledScroll=function(){var W=_.Xe(),P=W.dispatch,x=this.JSC$20333_watchApi.getRoot().getScrollTop();P.call(W,_.LK({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:x}}))};
_.cG.prototype.onMastheadThrottledScroll=function(){this.JSC$20333_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20333_watchApi.getRoot().getScrollTop())};
_.cG.prototype.scrollWatchTo=function(W,P){(P===void 0?0:P)?this.animation.start(this.JSC$20333_watchApi.getRoot().getScrollTop(),Math.max(0,W),500):this.JSC$20333_watchApi.getRoot().setScrollTop(W)};_.WNm=function(W){_.vn.call(this);var P=this;this.JSC$20336_watchApi=W;var x=this.JSC$20336_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qDO(P)}),I=this.JSC$20336_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Lim(P)});
this.addOnDisposeCallback(function(){P.JSC$20336_watchApi.unsubscribeByKey(x);P.JSC$20336_watchApi.unsubscribeByKey(I)});
qDO(this);Lim(this)};
_.A(_.WNm,_.vn);
var qDO=function(W){var P,x,I,O=(I=(P=W.JSC$20336_watchApi.getPlayerResponse())==null?void 0:(x=P.videoDetails)==null?void 0:x.title)!=null?I:"";W.JSC$20336_watchApi.dispatchEvent("yt-update-title",O)},Lim=function(W){var P,x,I,O,B,Y,K,Z=(K=((Y=(P=W.JSC$20336_watchApi.getWatchNextResponse())==null?void 0:(x=P.contents)==null?void 0:(I=x.twoColumnWatchNextResults)==null?void 0:(O=I.results)==null?void 0:(B=O.results)==null?void 0:B.contents)!=null?Y:[]).find(function(d){return!!d.videoPrimaryInfoRenderer}))==null?
void 0:K.videoPrimaryInfoRenderer;
(P=_.kz(Z==null?void 0:Z.title))&&W.JSC$20336_watchApi.dispatchEvent("yt-update-title",P)};_.x4f=function(W){_.vn.call(this);this.JSC$20339_watchApi=W;PXv(this)};
_.A(_.x4f,_.vn);var PXv=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$20339_watchApi.playerApi,2);P=I.yieldResult;x=function(){W.onYpcContentRequest()};
P.addEventListener("onYpcContentRequest",x);W.addOnDisposeCallback(function(){P.removeEventListener("onYpcContentRequest",x)});
_.Kl(I)})};
_.x4f.prototype.onYpcContentRequest=function(){var W,P,x,I,O,B=(W=this.JSC$20339_watchApi.getWatchNextResponse())==null?void 0:(P=W.contents)==null?void 0:(x=P.twoColumnWatchNextResults)==null?void 0:(I=x.secondaryResults)==null?void 0:(O=I.secondaryResults)==null?void 0:O.offerModule,Y,K,Z,d;W=(d=(Z=(K=(Y=B==null?void 0:B.episodeOfferModuleRenderer)!=null?Y:B==null?void 0:B.movieOfferModuleRenderer)!=null?K:B==null?void 0:B.unlimitedOfferModuleRenderer)!=null?Z:B==null?void 0:B.liveOfferModuleRenderer)!=
null?d:B==null?void 0:B.tvfilmOfferModuleRenderer;var v,m,t;B=(t=B==null?void 0:(v=B.tvfilmOfferModuleRenderer)==null?void 0:(m=v.actionButtons)==null?void 0:m.length)!=null?t:0;m=Math.max(B-1,0);var C,z,D;v=(D=W==null?void 0:(C=W.offerButton)==null?void 0:C.buttonRenderer)!=null?D:W==null?void 0:(z=W.actionButtons)==null?void 0:z[m].buttonRenderer;var w,a;(C=(a=(w=v==null?void 0:v.navigationEndpoint)!=null?w:v==null?void 0:v.serviceEndpoint)!=null?a:v==null?void 0:v.command)&&_.Ix.instance.resolveCommand(C)};
}catch(e){_._DumpException(e)}
try{
var DMM,GM2,AY3;_.zM4=function(){var W=_.jU.clone(CAd),P;return(new _.yE(function(x,I){W.onSuccess=function(O){_.aNd(O)?x(new AY3(O)):I(new _.lf("Request failed, status="+_.I6(O),"net.badstatus",O))};
W.onError=function(O){I(new _.lf("Unknown request error","net.unknown",O))};
W.onTimeout=function(O){I(new _.lf("Request timed out","net.timeout",O))};
P=_.yO("//googleads.g.doubleclick.net/pagead/id",W)})).thenCatch(function(x){if(x instanceof _.Rq){var I;
(I=P)==null||I.abort()}return _.s2(x)})};
_.EO6=function(W){a:{var P="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(P="EMBEDDED_PLAYER_MODE_PFL");var x=W.raw_embedded_player_response;if(!x&&(W=W.embedded_player_response))try{x=JSON.parse(W)}catch(O){break a}if(x)b:for(var I in GM2)if(GM2[I]==x.embeddedPlayerMode){P=GM2[I];break b}}return P==="EMBEDDED_PLAYER_MODE_PFL"};
_.gOG=function(){if(_.p("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.n1d())return Error("pf");var W=_.$$("PLAYER_VARS",{});if(_.jU.get(W,"privembed",!1)=="1")return Error("qf");if(_.EO6(W))return Error("rf")};
DMM=function(W){switch(W){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:_.n2(W,"unknown result type")}};
_.MBv=function(W,P,x){P=_.JJA[P];x={detected:W===0,source:P.omP,detectionResult:DMM(W),contentCpn:x};_.Ay("biscottiBasedDetection",x);_.Q8p.increment(P.omP,W);P.gCg!==void 0&&_.MR("CATSTAT",_.IFU(W,P))};
_.Tj=function(W,P){var x={};x.key=W;x.value=P;return _.Mf7().then(function(I){return new Promise(function(O,B){try{var Y=I.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(x);Y.onsuccess=function(){O()};
Y.onerror=function(){B()}}catch(K){B(K)}})})};
_.wi4=function(){var W=_.Wi("user_engagement_experiments_rate_limit_ms"),P=$Md.get("last-user-engagement-exp-trigger-timestamp");return!P||(0,_.iA)()>=P+W?($Md.set("last-user-engagement-exp-trigger-timestamp",(0,_.iA)()),!0):!1};
_.r4=function(W,P,x,I,O){P=P===void 0?null:P;x=x===void 0?null:x;I=I===void 0?null:I;O=O===void 0?null:O;W={youThereEventType:W};x&&(W.lactThresholdMs=x.lactThresholdMs,W.mediaPosSec=x.promptDelaySec,W.lactServerRequestMs=x.lactServerRequestMs,W.triggerReason=x.triggerReason);O!=null&&(W.renderingMediaPosSec=Math.round(O));P||(P=_.E_());P&&(W.clientScreenNonce=P);I&&(W.clientPlaybackNonce=I);_.Ay("youThere",W)};
GM2={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"};AY3=function(W){this.xhr=W};
_.lf=function(W,P,x){_.Wd.call(this,W+", errorCode="+P);this.errorCode=P;this.xhr=x;this.name="PromiseAjaxError"};
_.A(_.lf,_.Wd);var CAd={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var $Md=new _.$N("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.BJ2=function(W){return _.LK({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:W})};
}catch(e){_._DumpException(e)}
try{
var U5,SlQ,d46,s5m,vS2,m4y,pEG,gSv,D49,M1d,V1m,t1m,uwQ,Ard,CX6,hGv;_.oS6=function(){var W=window.location.hash;W.charAt(0)==="#"&&(W=W.charAt(1)==="!"?W.substring(2):W.substring(1));return _.k$(W)};
U5=function(W,P,x){var I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,P(),2);I=O.yieldResult;x(I,W);_.Kl(O)})};
SlQ=function(){return _.y(function(W){return W.nextAddress==1?_.S(W,(_.gOG()!==void 0?_.s2(Error("sf")):_.zM4()).then(function(){return 1},function(P){if(P.message==="Biscotti id is disabled")return 3;
_.ge("Failed fetching bid");return 0}),2):W.return(W.yieldResult)})};
d46=function(){var W=_.TK("OXl0LWhhdmVuLWVtYmVkLXBsYXllciNuZmF1ZjVoYWZlbw=="),P=_.TK("bXU3MTFlMTM5a2NoaWZyYW1lIw==");return document.querySelector(P+uwQ+W)?0:1};
s5m=function(){return _.NbR(_.Ux)};
vS2=function(){return _.lid()===0?0:_.Tb7()};
m4y=function(){return _.eTt(_.S3A([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
pEG=function(){for(var W=function(O){return _.TK(O)},P=[V1m,
t1m],x=2,I=0;I<P.length&&(x=_.eTt(_.S3A(P[I],W)),x!==0);I++);return x};
_.j5L=function(W){_.y(function(P){switch(P.nextAddress){case 1:return _.S(P,U5("b.f_",SlQ,W),2);case 2:return _.S(P,U5("j.s_",_.hTR,W),3);case 3:return _.S(P,U5("r.s_",_.MxR,W),4);case 4:return _.S(P,U5("e.h_",pEG,W),5);case 5:if(!_.p("ab_det_sc_inj")){P.jumpTo(6);break}return _.S(P,U5("s.i_",_.Xvx,W),6);case 6:if(_.p("ab_deg_unex_thr")){P.jumpTo(8);break}return _.S(P,U5("a.o_",_.kCC,W),8);case 8:if(_.p("ks_get_o_pp")){P.jumpTo(10);break}return _.S(P,U5("g.o_",_.b6d,W),10);case 10:if(_.p("ks_det_gpbl")){P.jumpTo(12);
break}return _.S(P,U5("p.i_",_.aix,W),12);case 12:return _.S(P,U5("f.i_",_.txG,W),14);case 14:return _.S(P,U5("a.b_",_.g9m,W),15);case 15:return _.S(P,U5("p.m_",_.QsR,W),16);case 16:if(!_.p("ab_det_el_h_v2")){P.jumpTo(17);break}return _.S(P,U5("n.h_",m4y,W),17);case 17:return _.S(P,U5("o.p_",s5m,W),19);case 19:if(!_.p("ab_det_em_inj")){P.jumpTo(20);break}return _.S(P,U5("e.i_",d46,W),20);case 20:if(_.p("ab_det_apm"))return _.S(P,U5("o.a_",vS2,W),0);P.jumpTo(0)}})};
_.Q5M=function(W,P){W={videoId:W};P&&(W.playlistId=P);return W};
_.zGy=function(){if(_.n1d()){var W=_.$$("PLAYER_VARS",{});if(_.jU.get(W,"privembed",!1)!="1"&&!_.EO6(W)){var P=function(){CX6=!0;"google_ad_status"in window?_.MR("DCLKSTAT",1):_.MR("DCLKSTAT",2)};
try{_.h1("//static.doubleclick.net/instream/ad_status.js",P)}catch(x){}Ard.push(_.Gr.addLowPriorityJob(function(){if(!(CX6||"google_ad_status"in window)){try{_.Lz7("//static.doubleclick.net/instream/ad_status.js",P)}catch(x){}CX6=!0;_.MR("DCLKSTAT",3)}},5E3))}}};
_.XW=function(W,P,x){x=x===void 0?!1:x;var I=Math.max(W.width,_.sNy);if(_.p("kevlar_watch_feed_big_thumbs")&&W.width>=1550-_.EM()&&W.height>=800)I-=_.jNf;else if(W.width>=_.HE){var O=_.vof+_.mFM+_.hr;_.p("kevlar_watch_feed_big_thumbs")&&(O=_.p0d);I-=O}else I-=_.vof;I=Math.min(I,_.VE4);O=240;x&&(O=380);P<.5624||(!_.p("kevlar_watch_flexy_disable_small_window_sizing")&&(W.height<630&&W.width>=657||W.height>=630&&W.width>=_.HE&&W.width<1327)?O=360:!_.p("kevlar_watch_flexy_disable_large_window_sizing")&&
W.height>=630&&W.width>=1327&&(O=480));var B=Math.min(I*P,W.height-(56+_.dFf+_.tE3));B=Math.max(B,O);P<1?I=B/P:W.width>=_.HE&&(I=_.XW(W,.5625,x).width);return new _.y7(Math.round(I),Math.round(B))};
_.GgQ=function(W){var P=0;W.indexOf("h")!=-1&&(W=W.split("h"),P=W[0]*60*60,W=W[1]);W.indexOf("m")!=-1&&(W=W.split("m"),P=W[0]*60+P,W=W[1]);W.indexOf("s")!=-1?(W=W.split("s"),P=W[0]*1+P):P=W*1+P;return P};
_.ESf=function(){_.Wi("service_worker_push_logged_out_prompt_watches")!=-1&&_.iD("WatchCount").then(function(W){W>=100||_.Tj("WatchCount",W+1)})};
gSv=function(W){var P=W.externalVideoId||"";return P?(_.p("webfe_watch_shorts_canonical_url_fix")||_.$$("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&W.isShortsEligible?"https://www.youtube.com/shorts/"+P:"https://www.youtube.com/watch?v="+P:""};
D49=function(W){var P=[];W.viewCount&&P.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:W.viewCount});W.likeCount&&P.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:W.likeCount});return P};
M1d=function(W){var P,x,I={"@context":"https://schema.org","@type":"VideoObject",description:_.kz(W.description),duration:"PT"+(W.lengthSeconds||"0")+"S",embedUrl:W.embed?W.embed.iframeUrl:"",name:_.kz(W.title),thumbnailUrl:((P=W.thumbnail)==null?void 0:(x=P.thumbnails)==null?void 0:x.map(function(v){return v&&v.url||""}))||[],
uploadDate:W.publishDate};_.p("mweb_video_schema_id_killswitch")||(I["@id"]=gSv(W));P=D49(W);P.length&&(I.interactionStatistic=P);W.category&&(I.genre=W.category);W.ownerChannelName&&(I.author=W.ownerChannelName);W.liveBroadcastDetails&&(I.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:W.liveBroadcastDetails.startTimestamp,endDate:W.liveBroadcastDetails.endTimestamp}]);if(W.learningResource){W=W.learningResource;I["@type"]=["VideoObject","LearningResource"];var O;if((O=W.learningResourceType)==
null?0:O.length)I.learningResourceType=W.learningResourceType[0];var B;if((B=W.educationalAlignment)==null?0:B.length)I.educationalAlignment={"@type":"AlignmentObject",targetName:W.educationalAlignment[0]};var Y;if((Y=W.educationalLevel)==null?0:Y.length){O=W.educationalLevel[0];var K;if((K=W.educationalLevelCountry)==null?0:K.length)O+=" ("+W.educationalLevelCountry+")";I.educationalLevel=O}var Z,d;if(((Z=W.learningResourceType)==null?0:Z.length)&&W.learningResourceType[0]==="Problem walkthrough"&&
((d=W.problemDescriptions)==null?0:d.length))for(I.hasPart=[],K=_.n(W.problemDescriptions),Z=K.next();!Z.done;Z=K.next())O=Z.value,Z=O.problemDescriptionText,d=O.startOffset,O=O.url,Z&&d!==void 0&&O&&I.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:Z,text:Z,startOffset:d,url:O})}return I};
_.$4L=function(W){return _.LK({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:W}})};
V1m=[["I3RvMW1qYmE4cTJncHJpbWFyeQ==",null],[null,["ZGVyZXIjcjNsZ3gxZjg3cXRueXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVu","bGUtc2NvcGUjMXA1d2k4NDFicjQ4c3R5"]],["dGhlYWQtYWQja2Qxam94Z2kwbDh0bWFz",["dGQtcmljaC1ncmlkLXJlbmRlcmVyI2twbjZramZjYnFwbHk="]],[null,["dGQtcmljaC1ncmlkLXJlbmRlcmVyI2dkd3Juam9kZ21vM3k=","bGUtc2NvcGUjN254NTdnY2dsNzA0c3R5"]],[null,["bmVyLXByb21vLXJlbmRlcmVyIzdtYzNsNmI4bnBlM3l0ZC1iYW4=","bGUtc2NvcGUjaWJpOW94cnEyMHJyc3R5"]],[null,["Y2U1eXRkLWFkLXNsb3QtcmVuZGVyZXIjZ2M1Z3NrcHhi"]]];
t1m=[["cGxheWVyLWFkcyN1YjdibDNkZ3FjdHc=",null]];uwQ="#";Ard=[];CX6=!1;_.wEQ=["engagement-panel-ads"];hGv=new _.R("updateSentimentBarStateCommand");_.HNy=new _.R("showSurveyCommand");_.fV=new _.R("changeMarkersVisibilityCommand");var cr6,a0v,XEd,U43,kgd,NJ;_.eG3=function(W,P){this.playerProvider_=W;this.actionSenderElement_=P;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.eG3.prototype.reset=function(){cr6(this);this.isUserPredictedAbsent_=!1};
cr6=function(W,P){!W.youThereData_||W.showWarningJob_||P!==void 0&&P||(_.r4("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.E_(),W.youThereData_,W.clientPlaybackNonce_),_.z$());_.Gr.cancelJob(W.showWarningJob_);W.showWarningJob_=0;_.Gr.cancelJob(W.showBlockingWarningJob_);W.showBlockingWarningJob_=0;_.Gr.cancelJob(W.pausePlaybackJob_);W.pausePlaybackJob_=0;W.youThereData_=null;W.clientPlaybackNonce_=void 0;W.inYouThereFlow_=!1};
_.bNm=function(W,P){var x,I,O;_.y(function(B){if(B.nextAddress==1)return W.reset(),_.S(B,W.playerProvider_().getPlayerPromise(),2);x=B.yieldResult;W.clientPlaybackNonce_=x.getVideoData().cpn;W.youThereData_=P.configData.youThereData;if(!W.youThereData_)return B.return();if(W.youThereData_.triggerReason&&W.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.wi4())return _.r4("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.E_(),W.youThereData_,W.clientPlaybackNonce_),B.return();I=W.youThereData_.promptDelaySec;
O=x.getCurrentTime();W.showWarningJob_=_.Gr.addLowPriorityJob(function(){return _.y(function(Y){W.showWarningJob_=0;return _.S(Y,a0v(W),0)})},Math.max(I-O,0)*1E3);
_.Kl(B)})};
a0v=function(W){var P,x,I,O,B,Y;return _.y(function(K){if(K.nextAddress==1)return _.S(K,W.playerProvider_().getPlayerPromise(),2);if(K.nextAddress!=3)return P=K.yieldResult,x=P.getCurrentTime(),_.S(K,kgd(W),3);I=K.yieldResult;if(!I||!W.youThereData_)return K.return();if(_.p("check_user_lact_at_prompt_shown_time_on_web")&&(O=parseInt(W.youThereData_.lactThresholdMs,10),_.LD()<O))return _.r4("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.E_(),W.youThereData_,W.clientPlaybackNonce_),K.return();if(W.youThereData_.playbackPauseDelayMs<=
0)return U43(W),K.return();!_.p("external_fullscreen")&&(B=_.iO())&&(W.ignoreFullscreenExitUserActivity_=!0,_.Gr.addLowPriorityJob(function(){W.ignoreFullscreenExitUserActivity_=!1},2E3),_.Ri(B));
W.youThereData_.showToastWarningPrompt&&(NJ(W,W.youThereData_.showWarningActions),W.inYouThereFlow_=!0,_.r4("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.E_(),W.youThereData_,W.clientPlaybackNonce_,x),_.r4("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.E_(),W.youThereData_,W.clientPlaybackNonce_,x));Y=0;W.youThereData_.blockingPromptDelayMs&&(Y=W.youThereData_.blockingPromptDelayMs);W.showBlockingWarningJob_=_.Gr.addLowPriorityJob(function(){return _.y(function(Z){W.showBlockingWarningJob_=0;return _.S(Z,
XEd(W),0)})},Y);
_.Kl(K)})};
XEd=function(W){var P,x,I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,kgd(W),2);P=O.yieldResult;if(!W.youThereData_)return O.return();P&&(W.youThereData_.showBlockingWarningAction&&(_.r4("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.E_(),W.youThereData_,W.clientPlaybackNonce_),(x=_.Q(W.youThereData_.showBlockingWarningAction,_.B7))?NJ(W,x.commands):NJ(W,[W.youThereData_.showBlockingWarningAction]),W.inYouThereFlow_=!0),I=W.youThereData_.playbackPauseDelayMs,W.pausePlaybackJob_=
_.Gr.addLowPriorityJob(function(){return _.y(function(B){W.pausePlaybackJob_=0;return _.S(B,U43(W),0)})},I));
_.Kl(O)})};
U43=function(W){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,kgd(W),2);P=x.yieldResult;if(!W.youThereData_)return x.return();P&&(_.r4("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.E_(),W.youThereData_,W.clientPlaybackNonce_),NJ(W,W.youThereData_.showPausedActions),W.inYouThereFlow_=!0);_.Kl(x)})};
_.eG3.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var W=_.Q(this.youThereData_.userActiveDuringFlowAction,_.B7);W?NJ(this,W.commands):NJ(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.r4("YOU_THERE_EVENT_TYPE_LACT_RESET",_.E_(),this.youThereData_,this.clientPlaybackNonce_),_.z$());cr6(this,!0)}_.f0Q(this,!1)};
_.NA4=function(W){_.r4("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.E_(),W.youThereData_,W.clientPlaybackNonce_)};
kgd=function(W){var P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,W.playerProvider_().getPlayerPromise(),2);P=I.yieldResult;x=P.getPlayerState();return I.return(x==-1||x==1||x==3)})};
_.f0Q=function(W,P){var x;_.y(function(I){if(I.nextAddress==1){if(W.isUserPredictedAbsent_==P)return I.jumpTo(0);W.isUserPredictedAbsent_=P;return _.S(I,W.playerProvider_().getPlayerPromise(),3)}x=I.yieldResult;x.setUserEngagement(P);P&&_.r4("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.E_(),W.youThereData_,W.clientPlaybackNonce_);_.Kl(I)})};
NJ=function(W,P){if(_.p("handle_service_request_actions")||_.p("kevlar_youthere_service_endpoint_actions_killswitch"))_.OL(W.actionSenderElement_,P,W.actionSenderElement_);else{P=_.n(P);for(var x=P.next();!x.done;x=P.next())x=x.value,x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.sendPost?_.Iu(W.actionSenderElement_,[x]):_.OL(W.actionSenderElement_,[x],W.actionSenderElement_)}};var l06;var TAB;var li=function(){var W=_.b.apply(this,arguments)||this;W.systemIcons=_.p("kevlar_system_icons");W.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return W};
_.A(li,_.b);li.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var W=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(W=this.data.percentIfLiked||0,this.activated=!0):(W=this.data.percentIfIndifferent||0,this.activated=!1);_.g(this.hostElement).querySelector("#like-bar").style.width=W+"%"}};
li.prototype.handleUpdateSentimentBarStateCommand=function(W){this.data&&this.set("data.likeStatus",_.Q(W,hGv).likeStatus)};
li.prototype.observeLikeStatus=li.prototype.observeLikeStatus;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],li.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],li.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],li.prototype,"activated",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],li.prototype,"systemIcons",void 0);_.f([_.OZ("data.likeStatus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],li.prototype,"observeLikeStatus",null);li=_.f([_.U({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],li);
_.X(li,"ytd-sentiment-bar-renderer",function(){if(TAB!==void 0)return TAB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return TAB=W},{mode:1});var rry;var T_=function(){var W=_.b.apply(this,arguments)||this;W.small=!0;return W};
_.A(T_,_.b);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],T_.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],T_.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],T_.prototype,"small",void 0);T_=_.f([_.U({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],T_);
_.X(T_,"ytd-video-view-count-renderer",function(){if(rry!==void 0)return rry;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rry=W},{mode:_.F4("kevlar_poly_si_batch_j080")?1:2});var rH=function(){var W=_.b.apply(this,arguments)||this;W.infoFormattedStrings=[];W.wrapVideoActions=_.p("kevar_watch_wrap_video_actions");W.hideSentimentBar=_.p("kevlar_watch_hide_sentiment_bar");W.actionMap={};return W};
_.A(rH,_.b);_.J=rH.prototype;_.J.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.p("web_modern_buttons"),forceIconButton:!_.p("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.J.dataChanged=function(){_.p("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.J.computeInfoFormattedStrings=function(W){if(!W)return[];var P=[];W.dateText&&P.push(W.dateText);W.stationName&&P.push(W.stationName);W.rating&&P.push(W.rating);W.startEndTimeTemplate&&W.startTimeUtcMillis&&W.endTimeUtcMillis&&P.push(_.bx(_.hbf(_.kz(W.startEndTimeTemplate),Number(W.startTimeUtcMillis),Number(W.endTimeUtcMillis))));W.upNextProgramText&&P.push(W.upNextProgramText);return P};
_.J.scheduleInitialUpdatedMetadataRequest=function(){var W,P=(W=this.data)==null?void 0:W.updatedMetadataEndpoint;if(P){var x;W=Number((x=_.Q(P,_.GNl))==null?void 0:x.initialDelayMs);x=isNaN(W)?250:W;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),x)}};
_.J.setSentimentBarWidth=function(){var W=this;_.Xm(this,function(){var P=_.g(W.hostElement).querySelector("ytd-menu-renderer");if(P){P=P.topLevelButtons;for(var x=0,I=0;I<P.length;I++){var O=P[I],B=W.get("toggleButtonSupportedData.toggleButtonIdData.id",O.data);if(B==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||B==="TOGGLE_BUTTON_ID_TYPE_LIKE")x+=O.clientWidth+8;else break}x&&(W.sentiment.style.width=x-8+" px")}})};
_.J.fetchUpdatedMetadata=function(W){var P;W&&(P={continuation:W});var x;(W=(x=this.data)==null?void 0:x.updatedMetadataEndpoint)&&_.FY().resolve(_.qR).resolveCommand(W,{form:Object.assign({},P,{element:this.hostElement})})};
_.J.onYtServiceRequestSent=function(W,P){P.endpoint&&_.Q(P.endpoint,_.i6)&&(this.hasUpdateSentimentBarStateCommands()&&!_.p("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.Q(P.endpoint,_.i6).status),this.setSentimentBarWidth())};
_.J.hasUpdateSentimentBarStateCommands=function(){var W,P,x,I,O=(I=(W=this.data)==null?void 0:(P=W.videoActions)==null?void 0:(x=P.menuRenderer)==null?void 0:x.topLevelButtons)!=null?I:[];W=_.n(O);for(P=W.next();!P.done;P=W.next()){P=P.value;O=I=x=void 0;var B=(x=P.toggleButtonRenderer)==null?void 0:(I=x.toggleButtonSupportedData)==null?void 0:(O=I.toggleButtonIdData)==null?void 0:O.id;if(B==="TOGGLE_BUTTON_ID_TYPE_LIKE"||B==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){I=x=void 0;P=(I=_.Q((x=P.toggleButtonRenderer)==
null?void 0:x.defaultServiceEndpoint,_.B7))==null?void 0:I.commands;if(!P)break;P=_.n(P);for(x=P.next();!x.done;x=P.next())if(_.Q(x.value,hGv))return!0}}return!1};
_.J.onYtServiceRequestCompleted=function(W,P){var x;(W=(x=P.data)==null?void 0:x.loggingDirectives)&&_.Rcm(_.YY(),W);this.get("continuation.timedContinuationData",P.data)&&this.data&&this.data.updatedMetadataEndpoint&&(P=P.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,P.continuation),P.timeoutMs))};
_.J.computeHasDateText=function(W){return!!W&&!!W.dateText};
_.N1.Object.defineProperties(rH.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return!((I=(W=this.data)==null?void 0:(P=W.videoActions)==null?void 0:(x=P.menuRenderer)==null?void 0:x.flexibleItems)==null||!I.length)}}});
rH.prototype.onYtServiceRequestCompleted=rH.prototype.onYtServiceRequestCompleted;rH.prototype.onYtServiceRequestSent=rH.prototype.onYtServiceRequestSent;rH.prototype.dataChanged=rH.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],rH.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],rH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.XU.YtTaskEmitterBehavior),_.l("design:type",Object)],rH.prototype,"ytTaskEmitterBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rH.prototype,"data",void 0);_.f([_.c({computed:"computeInfoFormattedStrings(data)"}),_.l("design:type",Array)],rH.prototype,"infoFormattedStrings",void 0);
_.f([_.c({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],rH.prototype,"hasDateText",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],rH.prototype,"wrapVideoActions",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],rH.prototype,"hideSentimentBar",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rH.prototype,"flexMenuEnabled",null);
_.f([_.BM("#sentiment"),_.l("design:type",Object)],rH.prototype,"sentiment",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rH.prototype,"dataChanged",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],rH.prototype,"onYtServiceRequestSent",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],rH.prototype,"onYtServiceRequestCompleted",null);
_.X(rH,"ytd-video-primary-info-renderer",function(){if(l06===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);l06=W}W=l06;return W},{mode:1});var iN3;var ii=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.A(ii,_.b);_.J=ii.prototype;_.J.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"}}}};
_.J.dataChanged=function(){var W;this.descriptionToggled=!((W=this.data)==null||!W.defaultExpanded);var P;this.collapsed=this.descriptionAlwaysCollapsed||!((P=this.data)==null?0:P.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.td(110509);this.showLessClientVe=_.td(110510);W=_.E_();P=_.G7();W&&P&&_.H7(W,P,[this.showMoreClientVe,this.showLessClientVe])};
_.J.onYtExpanderMoreTapped=function(){var W,P=(W=this.data)==null?void 0:W.showMoreCommand;P&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(P);(W=_.E_())&&this.showMoreClientVe&&_.bB(W,this.showMoreClientVe)};
_.J.onYtExpanderLessTapped=function(){var W=_.E_();W&&this.showLessClientVe&&_.bB(W,this.showLessClientVe);var P;(W=(P=this.data)==null?void 0:P.showLessCommand)&&this.componentBehavior.resolveCommand(W)};
_.J.handleUpdateDateTextAction=function(W){this.data&&this.data.dateText&&this.set("data.dateText",_.Q(W,_.y$f).dateText)};
_.J.handleUpdateDescriptionAction=function(W){if(W=_.Q(W,_.smp))W.isEmpty||!W.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.pt(W.description)):this.set("data.description",W.description)};
_.J.onYtChangeEngagementPanelVisibilityAction=function(W){if(_.p("web_structured_description_show_more")||_.p("web_engagement_panel_open_description")){var P,x=(P=_.Q(W,_.y6m))==null?void 0:P.targetId,I;W=((I=_.Q(W,_.y6m))==null?void 0:I.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";x==="engagement-panel-structured-description"&&W&&(this.descriptionToggled=!0)}};
_.J.updateCollapsedFromBinding=function(W){this.collapsed=W.detail.value};
_.J.updateDescriptionToggledFromBinding=function(W){this.descriptionToggled=W.detail.value};
_.J.updateCanCollapseFromBinding=function(W){this.canCollapse=W.detail.value};
_.N1.Object.defineProperties(ii.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.data)==null?void 0:(P=W.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer;return!!x&&!!x.rows&&x.rows.length>x.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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}}});
ii.prototype.onYtExpanderLessTapped=ii.prototype.onYtExpanderLessTapped;ii.prototype.onYtExpanderMoreTapped=ii.prototype.onYtExpanderMoreTapped;ii.prototype.dataChanged=ii.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],ii.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ii.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ii.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],ii.prototype,"collapsed",void 0);_.f([_.c(),_.l("design:type",Boolean)],ii.prototype,"descriptionToggled",void 0);
_.f([_.c(),_.l("design:type",Boolean)],ii.prototype,"canCollapse",void 0);_.f([_.c(),_.l("design:type",Object)],ii.prototype,"subscribeButtonData",void 0);_.f([_.c(),_.l("design:type",Number)],ii.prototype,"descriptionCollapsedHeight",void 0);_.f([_.c(),_.l("design:type",Object)],ii.prototype,"structuredDescriptionContentRenderer",void 0);_.f([_.c({value:function(){return _.p("web_watch_description_always_collapsed")}}),
_.l("design:type",Boolean)],ii.prototype,"descriptionAlwaysCollapsed",void 0);_.f([_.BM("#description"),_.l("design:type",HTMLDivElement)],ii.prototype,"description",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ii.prototype,"dataChanged",null);_.f([_.I7("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ii.prototype,"onYtExpanderMoreTapped",null);
_.f([_.I7("yt-expander-less-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ii.prototype,"onYtExpanderLessTapped",null);_.f([_.H("data.metadataRowContainer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ii.prototype,"metadataCollapsible",null);_.f([_.H("data","structuredDescriptionContentRenderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ii.prototype,"hasInlineStructuredDescription",null);
_.f([_.H("data.attributedDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ii.prototype,"hasAttributedDescription",null);_.f([_.H("hasInlineStructuredDescription","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ii.prototype,"loadStructuredDescription",null);_.f([_.H("data","structuredDescriptionContentRenderer","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ii.prototype,"showInlineStructuredDescription",null);
_.f([_.H("data","hasInlineStructuredDescription","metadataCollapsible"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ii.prototype,"descriptionAlwaysCollapsible",null);
_.X(ii,"ytd-video-secondary-info-renderer",function(){if(iN3===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);iN3=W}W=iN3;return W},{mode:2});var RGm;var RT=function(){return _.b.apply(this,arguments)||this};
_.A(RT,_.b);RT.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:_.p("web_modern_buttons"),forceIconButton:!_.p("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
RT.prototype.activate=function(W){W.appendTo(this.player);W.getPlayerPromise().then(function(P){P.setMinimized(!0)});
this.active=!0};
RT.prototype.deactivate=function(){var W=this.player.firstElementChild;W.getPlayerPromise().then(function(P){P.setMinimized(!1)});
this.active=!1;return W};
RT.prototype.onScrollUpTap=function(){var W=_.FY().resolve(_.rL).getCurrentPage();W&&W.setScrollTop(0)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],RT.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],RT.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],RT.prototype,"active",void 0);
_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.l("design:type",Boolean)],RT.prototype,"darkLaunch",void 0);_.f([_.BM("#player"),_.l("design:type",HTMLDivElement)],RT.prototype,"player",void 0);RT=_.f([_.U({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],RT);
_.X(RT,"ytd-miniplayer-bar-renderer",function(){if(RGm!==void 0)return RGm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return RGm=W},{mode:1});_.lq(_.kl(function(W){var P=_.fa();_.jj(function(){var x;if(x=JSON)x=M1d(W.data()),x=_.hH(JSON.stringify(x).replace(/</g,"\\u003C"));var I=W.data(),O=_.kz(I.title).trim().length===0,B=!I.publishDate||I.publishDate.trim().length===0,Y,K,Z,d,v=!((Y=I.thumbnail)==null?0:(K=Y.thumbnails)==null?0:K.length)||!((Z=I.thumbnail)==null?0:Z.thumbnails[0].url)||((d=I.thumbnail)==null?void 0:d.thumbnails[0].url.trim().length)===0;P.value&&x&&!(O||B||v)&&_.e5(P.value,x)});
return _.u("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.u("script",{el:P,type:"application/ld+json"}))},"gj"),"player-microformat-renderer",{props:{data:_.Ng}});
}catch(e){_._DumpException(e)}
try{
var yr6;_.I0m=function(W){return W.watch.watchWindowSize};
_.ONm=function(W){return _.LK({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:W}})};
yr6=function(W){_.vn.call(this);var P=this;this.JSC$20343_watchApi=W;W=_.sx(_.Xe(),_.vRU,function(){Jrv(P)});
this.addOnDisposeCallback(W);W=_.sx(_.Xe(),_.I0m,function(){Jrv(P)});
this.addOnDisposeCallback(W);BAm(this);nSM(this);Ylv()};
_.A(yr6,_.vn);var BAm=function(W){var P=function(I){_.Xe().dispatch(_.E06(I.matches))},x=window.matchMedia("(max-width: "+(999+_.EM())+"px)");
x.addListener(P);W.addOnDisposeCallback(function(){x.removeListener(P)});
P(x)},nSM=function(W){W.JSC$20343_watchApi.registerActionHandler("yt-window-resized",function(){Ylv()});
W.addOnDisposeCallback(function(){W.JSC$20343_watchApi.unregisterActionHandler("yt-window-resized")})},Ylv=function(){var W=_.S9();
_.Xe().dispatch(_.LK({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:W.width,height:W.height}}}))},Jrv=function(W){var P;
_.y(function(x){if(x.nextAddress==1)return _.S(x,W.JSC$20343_watchApi.playerApi,2);P=x.yieldResult;P.setSize(NaN,NaN);_.Kl(x)})};_.aT=function(W){_.F1.call(this);var P=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return P.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(x){P.initOrDisposeActiveModules(x)}));
this.onAttached()};
_.A(_.aT,_.F1);_.J=_.aT.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(W){return this.rootElement.getElement(W)};
_.J.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(W,P){var x=this;if(_.p("web_watch_controller_reg_multiple_handlers_killswitch")){var I={};_.kM(_.bs.getInstance(),(I[W]=P,I),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),I={},_.kM(_.bs.getInstance(),(I[W]=function(){var O=_.tH.apply(0,arguments);return(x.actionHandlers.get(W)||[]).map(function(B){return B.apply(null,_.ju(O))})},I),this.getRoot())),this.actionHandlers.get(W).push(P)};
_.J.unregisterActionHandler=function(W){if(_.p("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.UA(_.bs.getInstance(),(P[W]=!0,P),this.getRoot())}else(P=this.actionHandlers.get(W))?(P.pop(),P.length===0&&(P={},_.UA(_.bs.getInstance(),(P[W]=!0,P),this.getRoot()),this.actionHandlers.delete(W))):_.ge(new _.mW("Attempted to unregister an action handler which is not registered.",W))};
_.J.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.lC(this.rootElement.pageDisposeJobs,W)};
_.J.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.Ft(this.rootElement.pageDisposeJobs,W)};
_.J.dispatchEvent=function(W,P){_.Lf(this.rootElement,W,P)};
_.J.provideRenderingData=function(W,P){this.rootElement.provideRenderingData(W,P)};
_.J.scrollWatchTo=function(W,P){var x;(x=this.watchScrollManager)==null||x.scrollWatchTo(W,P)};
_.J.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.Xm(W,function(){if(W&&W.firstElementChild){var P=W.querySelector(".html5-video-player");P&&(_.lL(_.FY().resolve(_.jy)),P.focus())}else _.ge(Error("km"))})};
_.J.updateCinematicFullscreenConfig=function(){var W=!!this.rootElement.theater,P=!!this.rootElement.fullscreen,x;(x=this.watchCinematicManager)==null||_.Ia4(x,P,W)};
_.J.subscribeToActiveChanged=function(W,P){P=P===void 0?!0:P;var x=_.sx(_.Xe(),_.Hiv,function(I){W(I)});
P&&W(_.Hiv(_.Xe().getState()));return x};
_.J.isActive=function(){return _.Hiv(_.Xe().getState())};
_.J.onAttached=function(){var W=_.p("external_fullscreen");_.p("use_unified_flag_accessor")&&(W=_.FY().resolve(_.UbO).retriever.getFlag(_.fCc));(W||_.wo("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var KN2=function(W){return W.getRoot().is==="ytd-watch-flexy"||W.getRoot().is==="ytd-watch-grid"},bi=function(W){return W.getRoot().is==="ytd-watch-fixie"};
_.aT.prototype.initPersistentModules=function(){if(bi(this)||KN2(this)&&_.p("kevlar_watch_flexy_theater_manager")){var W=new _.MT3(this);_.nU(this,W)}W=new _.sbM(this);_.nU(this,W);W=new _.E5(this);_.nU(this,W);W=new _.HG(this);_.nU(this,W);W=new _.NIf(this);_.nU(this,W);W=new _.D7(this);_.nU(this,W);if(bi(this)||KN2(this)&&_.p("kevlar_watch_flexy_playlist_manager"))W=new _.TI6(this),_.nU(this,W)};
_.aT.prototype.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.cG(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.DZG(this)),this.activeModules.push(new _.hvM(this)),bi(this)&&this.activeModules.push(new yr6(this)),this.activeModules.push(new _.WNm(this)),this.activeModules.push(new _.eD(this)),(bi(this)||_.p("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.aMm(this)),this.activeModules.push(new _.egB(this)),
(bi(this)||_.p("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.x4f(this)),(bi(this)||_.p("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.r53(this)),_.p("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.LKm(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.p("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.k3M(this)),_.p("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.uk6(this)),
W=_.p("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.p("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new _.yBf(this)),_.p("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.gH(this)),this.activeModules.push(new _.bGG(this)),this.activeModules.push(new _.$ZQ(this)),_.p("web_enable_timely_actions")&&this.activeModules.push(new _.fm3(this)),_.p("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.ok4(this)),
_.p("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ImL(this)),_.p("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.X3O(this)),_.p("web_player_rtr_ctrls")&&this.activeModules.push(new _.uS2(this))):(_.rJ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.aT.prototype.disposeInternal=function(){_.F1.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.N1.Object.defineProperties(_.aT.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var wN4,CG,heG,HY3,cty,aXG,eeG,bYM;wN4=function(){var W=_.dw();W.info||(W.info={});return W.info};
CG=function(W){return Math.round(_.v7()+W)};
heG=function(){var W;if(_.p("csi_use_performance_navigation_timing")){var P,x,I,O=_.sL==null?void 0:(W=_.sL.getEntriesByType)==null?void 0:(P=W.call(_.sL,"navigation"))==null?void 0:(x=P[0])==null?void 0:(I=x.toJSON)==null?void 0:I.call(x);O?(O.requestStart=CG(O.requestStart),O.responseEnd=CG(O.responseEnd),O.redirectStart=CG(O.redirectStart),O.redirectEnd=CG(O.redirectEnd),O.domainLookupEnd=CG(O.domainLookupEnd),O.connectStart=CG(O.connectStart),O.connectEnd=CG(O.connectEnd),O.responseStart=CG(O.responseStart),
O.secureConnectionStart=CG(O.secureConnectionStart),O.domainLookupStart=CG(O.domainLookupStart),O.isPerformanceNavigationTiming=!0,W=O):W=_.sL.timing}else W=_.p("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.sL.timing)):_.sL.timing;return W};
HY3=function(){if(_.sL.getEntriesByType){var W=_.sL.getEntriesByType("paint");if(W=_.bC(W,function(x){return x.name==="first-paint"}))return CG(W.startTime)}var P;
_.p("csi_use_performance_navigation_timing")?P=_.sL.getEntriesByType("first-paint")[0].startTime:P=_.sL.timing.msFirstPaint;return P?Math.max(0,P):0};
cty=function(){var W=window.location.protocol,P=_.sL.getEntriesByType("resource");P=_.nW(P,function(x){return x.name.indexOf(W+"//fonts.gstatic.com/s/")===0});
(P=eeG(P,function(x,I){return I.duration>x.duration?I:x}))&&P.startTime>0&&P.responseEnd>0&&(_.mZ("wffs",CG(P.startTime)),_.mZ("wffe",CG(P.responseEnd)))};
aXG=function(W,P){W=document.querySelector(W);if(!W)return!1;var x="",I=W.nodeName;I==="SCRIPT"?(x=W.src,x||(x=W.getAttribute("data-timing-href"))&&(x=window.location.protocol+x)):I==="LINK"&&(x=W.href);_.$H(document)&&W.setAttribute("nonce",_.$H(document));return x?(W=_.sL.getEntriesByName(x))&&W[0]&&(W=W[0],x=_.v7(),_.mZ("rsf_"+P,x+Math.round(W.fetchStart)),_.mZ("rse_"+P,x+Math.round(W.responseEnd)),W.transferSize!==void 0&&W.transferSize===0)?!0:!1:!1};
_.A5=function(W,P){_.Ho(function(){_.cVS("").info.actionType=W;P&&_.MR("TIMING_AFT_KEYS",P);_.MR("TIMING_ACTION",W);var x=_.WaU(_.$$("TIMING_INFO",{}));Object.keys(x).length>0&&_.VY(x);x={isNavigation:!0,actionType:_.kuC(_.$$("TIMING_ACTION"))};var I=_.$$("PREVIOUS_ACTION");I&&(x.previousAction=_.kuC(I));if(I=_.$$("CLIENT_PROTOCOL"))x.httpProtocol=I;if(I=_.$$("CLIENT_TRANSPORT"))x.transportProtocol=I;(I=_.E_())&&I!=="UNDEFINED_CSN"&&(x.clientScreenNonce=I);I=_.Lmx();if(I===1||I===-1)x.isVisible=!0;
I=_.DCt().loadType==="cold";var O=wN4();I||(I=O.yt_lt==="cold");if(I){x.loadType="cold";I=wN4();O=heG();var B=_.v7(),Y=_.$$("CSI_START_TIMESTAMP_MILLIS",0);Y>0&&!_.p("embeds_web_enable_csi_start_override_killswitch")&&(B=Y);B&&(_.mZ("srt",O.responseStart),I.prerender!==1&&_.lnm(B));I=HY3();I>0&&_.mZ("fpt",I);I=heG();I.isPerformanceNavigationTiming&&_.VY({performanceNavigationTiming:!0},void 0);_.mZ("nreqs",I.requestStart,void 0);_.mZ("nress",I.responseStart,void 0);_.mZ("nrese",I.responseEnd,void 0);
I.redirectEnd-I.redirectStart>0&&(_.mZ("nrs",I.redirectStart,void 0),_.mZ("nre",I.redirectEnd,void 0));I.domainLookupEnd-I.domainLookupStart>0&&(_.mZ("ndnss",I.domainLookupStart,void 0),_.mZ("ndnse",I.domainLookupEnd,void 0));I.connectEnd-I.connectStart>0&&(_.mZ("ntcps",I.connectStart,void 0),_.mZ("ntcpe",I.connectEnd,void 0));I.secureConnectionStart>=_.v7()&&I.connectEnd-I.secureConnectionStart>0&&(_.mZ("nstcps",I.secureConnectionStart,void 0),_.mZ("ntcpe",I.connectEnd,void 0));_.sL&&"getEntriesByType"in
_.sL&&cty();I=[];if(document.querySelector&&_.sL&&_.sL.getEntriesByName)for(var K in bYM)bYM.hasOwnProperty(K)&&(O=bYM[K],aXG(K,O)&&I.push(O));if(I.length>0)for(x.resourceInfo=[],K=_.n(I),I=K.next();!I.done;I=K.next())x.resourceInfo.push({resourceCache:I.value})}_.VY(x);x=_.$Cm();x.preLoggedGelInfos||(x.preLoggedGelInfos=[]);K=x.preLoggedGelInfos;x=_.wL8();I=void 0;for(O=0;O<K.length;O++)if(B=K[O],B.loadType){I=B.loadType;break}if(_.DCt().loadType==="cold"&&(x.loadType==="cold"||I==="cold")){I=_.MtA();
O=_.$Cm();O=O.gelTicks?O.gelTicks:O.gelTicks={};for(var Z in I)if(!(Z in O))if(typeof I[Z]==="number")_.mZ(Z,_.tn(Z));else if(_.p("log_repeated_ytcsi_ticks"))for(B=_.n(I[Z]),Y=B.next();!Y.done;Y=B.next())Y=Y.value,_.mZ(Z.slice(1),Y);Z={};I=!1;K=_.n(K);for(O=K.next();!O.done;O=K.next())I=O.value,_.w1R(x,I),_.w1R(Z,I),I=!0;I&&_.VY(Z)}_.x_o(!0);Z=_.$$("TIMING_ACTION");_.eL("ytglobal.timingready_")&&Z&&_.oUG()&&_.Pdd()&&_.FmR()})()};
eeG=function(W,P){return Array.prototype.reduce.call(W,P,{duration:0})};
bYM={'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 kjQ={};kjQ.YtVisibilityRootBehavior=[_.ZqP.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.TD(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.$$("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var W=_.$$("INNERTUBE_CLIENT_NAME")!=="WEB";_.p("kevlar_use_vimio_behavior")&&W&&_.sOd()}}];_.zV={};_.zV.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(W){W.detail.contextProvider=this;W.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
kjQ.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.aP();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(W){var P=this;this.pageCount+=1;_.p("kevlar_use_vimio_behavior")&&(_.$$("INNERTUBE_CLIENT_NAME")==="WEB"?_.Gr.addJob(function(){P.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(W)},
loadPage_:function(W){this.data=W},
ytPageBehaviorActiveObserver_:function(W){var P=this;_.p("kevlar_use_vimio_behavior")&&(W?_.$$("INNERTUBE_CLIENT_NAME")==="WEB"?_.Gr.addJob(function(){P.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(W){if(!this.setScrollTopJobId_){var P=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){P.setScrollTopJobId_=0;var x=_.FY().resolve(_.Rl(_.jy));x&&_.lL(x);this.getPageScrollingElement().scrollTop=W}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.A6(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var $h6;var Q3=function(){var W=_.b.apply(this,arguments)||this;W.playerListenerConfig=null;W.actionMap={"yt-show-watch-page-survey":"openSurvey"};return W};
_.A(Q3,_.b);_.J=Q3.prototype;_.J.dataChanged=function(){var W=this,P=_.RP();P&&P.getPlayerPromise().then(function(I){W.maybeRemovePlayerListeners(I)});
var x=this.data&&this.data.survey;x&&((x=(x=x.singleOptionSurveyRenderer||x.checkboxSurveyRenderer||x.multiStageSurveyRenderer)&&x.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(P,x):this.openSurvey())};
_.J.triggerWatchPageSurvey=function(W,P){var x=this,I,O,B,Y,K,Z,d,v,m;return _.y(function(t){if(t.nextAddress==1)return W?_.S(t,W.getPlayerPromise(),2):t.return();x.player=t.yieldResult;if(!x.player)return t.return();I={};O=_.n(P);for(B=O.next();!B.done;B=O.next())Y=B.value,K=_.n(x.createEventListenerPair(Y)),Z=K.next().value,d=K.next().value,v=Z,m=d,v&&m&&(I[v]=m,x.ytPlayerListenerBehavior.listenToPlayerEvent(x.player,v,m));x.playerListenerConfig=I;_.Kl(t)})};
_.J.createEventListenerPair=function(W){var P=W.playbackEventTrigger;return P?this.handlePlaybackTrigger(P):(W=W.watchTimeTrigger)?this.handleWatchTimeTrigger(W):[void 0,void 0]};
_.J.handleWatchTimeTrigger=function(W){var P=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var x=W.videoWatchFraction,I=W.watchTimeSec;return I&&x?["onVideoProgress",function(){P.player&&P.isWatchTimeConditionMet(P.player,x,I)&&P.showSurvey()}]:[void 0,
void 0]};
_.J.isWatchTimeConditionMet=function(W,P,x){var I=W.getProgressState(),O=I.current-this.lastKnownPlaybackPosition;O<5&&(this.accumulatedMediaTime+=O);this.lastKnownPlaybackPosition=I.current;I=Math.round(this.accumulatedMediaTime/I.duration*1E3)/1E3;return W.getPresentingPlayerType&&W.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>x||I>P)};
_.J.handlePlaybackTrigger=function(W){var P=this;W=W.playbackEvent;if(W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var x="onStateChange";var I=function(O){O===0&&P.showSurvey()}}else W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(x="onVideoProgress",I=function(O){P.player&&P.player.getPresentingPlayerType&&P.player.getPresentingPlayerType()===1&&O&&P.showSurvey()}):W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(x="onAdEnd",I=this.showSurvey);
return[x,I]};
_.J.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.J.openSurvey=function(){var W=this,P=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.BJ2(!!P));_.Gr.addJob(function(){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:P}})},0,0)};
_.J.maybeRemovePlayerListeners=function(W){if(this.playerListenerConfig){for(var P=_.n(Object.keys(this.playerListenerConfig)),x=P.next();!x.done;x=P.next())x=x.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(W,x,this.playerListenerConfig[x]);this.playerListenerConfig=null}};
Q3.prototype.dataChanged=Q3.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],Q3.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],Q3.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Q3.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],Q3.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Q3.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Q3.prototype,"playerListenerConfig",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],Q3.prototype,"lastKnownPlaybackPosition",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],Q3.prototype,"accumulatedMediaTime",void 0);_.f([_.c(),_.l("design:type",Object)],Q3.prototype,"player",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Q3.prototype,"dataChanged",null);Q3=_.f([_.U({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Q3);
_.X(Q3,"ytd-survey-trigger-renderer",function(){if($h6!==void 0)return $h6;var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return $h6=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var vgv=new _.R("promotedSparklesWebRenderer");var mD6=new _.R("relatedChipCommand");var Vid;var tiO;var dA=function(){return _.b.apply(this,arguments)||this};
_.A(dA,_.b);dA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dA.prototype,"data",void 0);dA=_.f([_.U({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],dA);
_.X(dA,"ytd-compact-tvfilm-entry-point-renderer",function(){if(tiO!==void 0)return tiO;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return tiO=W},{mode:1});var pCd;var jLf;var QL9;var sl=function(){return _.b.apply(this,arguments)||this};
_.A(sl,_.b);sl.prototype.ready=function(){this.initializeDefs()};
sl.prototype.initializeDefs=function(){var W=this.meta.byKey("yt-icons"),P=_.g(W).querySelector("#star"),x=_.g(W).querySelector("#star_half");W=_.g(W).querySelector("#star_border");P&&this.defs.appendChild(P.cloneNode(!0));x&&this.defs.appendChild(x.cloneNode(!0));W&&this.defs.appendChild(W.cloneNode(!0))};
sl.prototype.percentChanged=function(){for(var W=this.rating;W.firstChild;)W.removeChild(W.firstChild);var P=Math.round(this.percent/10);W=Math.floor(P/2);P%=2;var x=5-W-P;this.appendStars("star",W,0);this.appendStars("star_half",P,W);this.appendStars("star_border",x,W+P)};
sl.prototype.appendStars=function(W,P,x){for(var I=0;I<P;I++){var O=(18+this.spacing)*(I+x),B=document.createElementNS("http://www.w3.org/2000/svg","use");_.nKL(B,"#"+W);B.setAttribute("x",""+O);B.setAttribute("y","0");this.rating.appendChild(B)}};
sl.prototype.percentChanged=sl.prototype.percentChanged;_.f([_.BM("#defs"),_.l("design:type",HTMLElement)],sl.prototype,"defs",void 0);_.f([_.BM("#rating"),_.l("design:type",HTMLElement)],sl.prototype,"rating",void 0);_.f([_.c(),_.l("design:type",Number)],sl.prototype,"percent",void 0);_.f([_.c({value:6}),_.l("design:type",Number)],sl.prototype,"spacing",void 0);_.f([_.c({value:_.ph.create("iron-meta",{type:"iconset"})}),_.l("design:type",_.Au)],sl.prototype,"meta",void 0);
_.f([_.OZ("percent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sl.prototype,"percentChanged",null);sl=_.f([_.U({disableElementRegistration:!0,is:"ytd-ratings"})],sl);
_.X(sl,"ytd-ratings",function(){if(QL9!==void 0)return QL9;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return QL9=W},{mode:1});var vE=function(){return _.b.apply(this,arguments)||this};
_.A(vE,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vE.prototype,"data",void 0);vE=_.f([_.U({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],vE);
_.X(vE,"ytd-offer-review-renderer",function(){if(jLf!==void 0)return jLf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return jLf=W},{mode:1});var mN=function(){var W=_.b.apply(this,arguments)||this;W.badges=[{textBadge:{label:_.bx("CC")}}];return W};
_.A(mN,_.b);_.J=mN.prototype;_.J.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.J.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(W&&W.commandMetadata&&_.Q(W.commandMetadata,_.zN)&&_.Q(W.commandMetadata,_.zN).fireAutomatically)_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}});else{var P;W&&((P=_.Q(W,_.zN))==null?0:P.fireAutomatically)&&_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}})}};
_.J.isEmptyContent=function(W){return this.isStorefrontEntryPointEmpty(W)&&this.shouldHideOfferModule(W)};
_.J.isStorefrontEntryPointEmpty=function(W){return!W||!W.storefrontEntryPoint};
_.J.shouldHideOfferModule=function(W){return!!W.hideVideoDetails};
_.J.isOfferModuleNavigationInactive=function(W){return!W.navigationEndpoint&&!W.serviceEndpoint};
_.J.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
mN.prototype.dataChanged=mN.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mN.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.l("design:type",Boolean)],mN.prototype,"hidden",void 0);
_.f([_.c(),_.l("design:type",Object)],mN.prototype,"badges",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mN.prototype,"dataChanged",null);mN=_.f([_.U({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],mN);
_.X(mN,"ytd-movie-offer-module-renderer",function(){if(pCd!==void 0)return pCd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return pCd=W},{mode:1});var ClB;var Vh=function(){return _.b.apply(this,arguments)||this};
_.A(Vh,_.b);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Vh.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Vh.prototype,"data",void 0);Vh=_.f([_.U({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Vh);
_.X(Vh,"ytd-media-masthead-renderer",function(){if(ClB!==void 0)return ClB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ClB=W},{mode:1});var A43;_.lq(_.VWp,"course-metadata-view-model",{props:{data:_.Ng,isOverlay:_.Ng}});var tr=function(){var W=_.b.apply(this,arguments)||this;W.isMetadataVisible=!1;W.modernPanels=_.p("kevlar_watch_modern_panels");W.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return W};
_.A(tr,_.b);_.J=tr.prototype;
_.J.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"}}}}};
_.J.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.J.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.J.expanderChanged=function(){var W;if((W=this.data)==null?0:W.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.J.isExpandButtonToggled=function(){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.expandMetadataButton,_.DZ))==null?void 0:P.isToggled};
_.J.onVisibilityButtonClick=function(){var W;if((W=this.data)==null?0:W.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.J.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
tr.prototype.expanderChanged=tr.prototype.expanderChanged;tr.prototype.dataChanged=tr.prototype.dataChanged;tr.prototype.descriptionChanged=tr.prototype.descriptionChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h([_.rb.YtActionHandlerBehavior]),_.l("design:type",Object)],tr.prototype,"actionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],tr.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],tr.prototype,"isMetadataVisible",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],tr.prototype,"modernPanels",void 0);_.f([_.BM("#expander"),_.l("design:type",Object)],tr.prototype,"expander",void 0);_.f([_.OZ("data.description"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tr.prototype,"descriptionChanged",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tr.prototype,"dataChanged",null);_.f([_.OZ("isMetadataVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tr.prototype,"expanderChanged",null);tr=_.f([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],tr);
_.X(tr,"ytd-tvfilm-offer-module-renderer",function(){if(A43!==void 0)return A43;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return A43=W},{mode:2});var zbM;var pN=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return W};
_.A(pN,_.b);pN.prototype.dataChanged=function(){this.hostElement.hidden=!1};
pN.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
pN.prototype.onThumbnailTap=function(W){this.data&&this.data.serviceEndpoint&&(_.FY().resolve(_.qR).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),W.stopPropagation())};
pN.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
pN.prototype.dataChanged=pN.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pN.prototype,"rendererBehaviors",void 0);_.f([_.h([_.rb.YtActionHandlerBehavior]),_.l("design:type",Object)],pN.prototype,"actionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],pN.prototype,"data",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pN.prototype,"dataChanged",null);pN=_.f([_.U({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],pN);
_.X(pN,"ytd-unlimited-offer-module-renderer",function(){if(zbM!==void 0)return zbM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zbM=W},{mode:1});var GG3;var Egd;var j1=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return W};
_.A(j1,_.b);j1.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
j1.prototype.handleRelatedChipCommand=function(W){W=_.Q(W,mD6);var P=W.contents;P?_.P7(this.hostElement,"yt-item-section-replace-action",[P,W.targetSectionIdentifier]):_.P7(this.hostElement,"yt-item-section-continuation-action",[W.continuationData,W.targetSectionIdentifier])};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],j1.prototype,"actionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],j1.prototype,"data",void 0);j1=_.f([_.jd({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],j1);
_.X(j1,"yt-related-chip-cloud-renderer",function(){if(Egd===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;GG3===void 0&&(GG3=document.createElement("template"));var I=GG3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Egd=W}W=Egd;return W},{mode:2});var Qh=function(){var W=_.b.apply(this,arguments)||this;W.isTwoColumns=!0;W.hideOfferModules=!1;W.watchFeedBigThumbs=_.p("kevlar_watch_feed_big_thumbs");W.watchNextGridHideChips=_.p("kevlar_watch_grid_hide_chips");W.eligibleToSwitchToGrid=_.p("web_watch_eligible_to_switch_to_grid");W.disableShortsShelfHeightOverride=_.p("web_shorts_wn_shelf_ratio_tuning");W.isWatchNextGrid=!1;W.reuseComponents=!_.p("kevlar_watch_grid");W.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return W};
_.A(Qh,_.b);_.J=Qh.prototype;
_.J.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.p("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}}};
_.J.getItemsPath=function(){return"data.results"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.J.created=function(){this.ytLazyListBehavior.initialCount=1};
_.J.ready=function(){_.qa(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.J.resultsChanged=function(){if(this.data&&this.data.results){for(var W=this.data.results,P=null,x=null,I=0;I<W.length;I++)W[I].relatedChipCloudRenderer?P=W[I].relatedChipCloudRenderer:W[I].itemSectionRenderer&&(x=W[I].itemSectionRenderer);if(P&&x)for(this.set("data.continuations",[]),W=_.Q(P.content,_.RKc).chips,P=0;P<W.length;P++)if(I=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",W[P]),I.loadCached||!I.contents){I.contents=x.contents;break}}};
_.J.dataChanged=function(){var W=this,P;if((P=this.data)!=null&&P.results&&this.hasAllowedInstreamAd(this.playerData)){if(P=this.data.results.filter(function(K){return!!K.promotedSparklesWebRenderer})){for(var x=0;x<P.length;x++){var I=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",P[x]);
if(I)for(var O=0;O<I.length;O++)I[O]&&I[O].baseUrl&&_.cP(I[O].baseUrl)}this.set("data.results",this.data.results.filter(function(K){return!K.promotedSparklesWebRenderer}))}if(P=this.data.results.filter(function(K){return!!W.getSparklesAd(K)})){P=_.n(P);
for(O=P.next();!O.done;O=P.next())if(I=x=void 0,O=(x=this.getSparklesAd(O.value))==null?void 0:(I=x.errorCommand)==null?void 0:I.loggingUrls)for(x=_.n(O),I=x.next();!I.done;I=x.next())(I=I.value)&&I.baseUrl&&_.cP(I.baseUrl);var B,Y;this.set("data.results",(B=this.data)==null?void 0:(Y=B.results)==null?void 0:Y.filter(function(K){return!K.adSlotRenderer}))}}};
_.J.getSparklesAd=function(W){var P,x;W=_.Q((P=W.adSlotRenderer)==null?void 0:(x=P.fulfillmentContent)==null?void 0:x.fulfilledLayout,_.v5b);return _.Q(W==null?void 0:W.renderingContent,vgv)};
_.J.hasAllowedInstreamAd=function(W){W=this.get("adPlacements",W)||[];for(var P=0;P<W.length;P++){var x=this.get("adPlacementRenderer.config.adPlacementConfig",W[P]);if(x&&x.suppressDisplayAd)return!0}return!1};
_.J.computeHideUnlimitedOfferModule=function(W,P){return W&&W.offerModule&&P&&W.offerModule.unlimitedOfferModuleRenderer&&W.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(P)?!0:!1};
_.J.hideUnlimitedOfferModuleChanged=function(){var W=_.g(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");W&&(W.hidden=this.hideUnlimitedOfferModule)};
_.J.updateLockupContainerTypes=function(){var W=this;if(this.eligibleToSwitchToGrid){var P;(P=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||P.forEach(function(x){x.containerType=W.lockupContainerType})}};
_.J.computeHideTvfilmOfferModule=function(W,P){var x,I;return!!((W==null?0:(x=W.offerModule)==null?0:(I=x.tvfilmOfferModuleRenderer)==null?0:I.clientShouldSuppressIfCompanionAdDisplayed)&&P&&this.hasCompanionAds(P))};
_.J.hideTvfilmOfferModuleChanged=function(){var W=_.g(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");W&&(W.hidden=this.hideTvfilmOfferModule)};
_.J.hasCompanionAds=function(W){W=this.get("adPlacements",W)||[];for(var P=0;P<W.length;P++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",W[P]))return!0;var x=void 0,I=void 0,O=void 0;if(!_.p("web_watch_top_banner_companion_check_killswitch")&&((x=W[P])==null?0:(I=x.adPlacementRenderer)==null?0:(O=I.renderer)==null?0:O.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.J.hasSuppressedResults=function(W){return W==null?!0:W.filter(function(P){return!P.continuationItemRenderer&&!P.compactPromotedVideoRenderer&&!P.promotedSparklesWebRenderer}).length===0};
_.J.computeShowButton=function(W,P){return this.isWatchNextGrid?W:W||this.hasSuppressedResults(P)};
_.J.showButtonChanged=function(){if(this.isWatchNextGrid){var W=_.g(this.hostElement).querySelector("ytd-rich-grid-renderer");W&&this.showButton!==null&&(W.continuationShowButton=this.showButton)}else{W=_.g(this.hostElement).querySelector("yt-next-continuation");var P=_.g(this.hostElement).querySelector("ytd-continuation-item-renderer"),x=_.g(this.hostElement).querySelector("ytd-item-section-renderer");W&&(W.showButton=this.showButton);P&&(P.showButton=this.showButton);x&&(x.continuationShowButton=
this.showButton)}};
_.J.continuationTap=function(W){var P;if(((P=this.data)==null?void 0:P.continuations)!=null&&W.target.tagName==="TP-YT-PAPER-BUTTON")for(W=this.data.continuations,P=0;P<W.length;P++)W[P].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(W[P].nextContinuationData||{})};
_.J.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("shown-items-changed",this.shownItems))};
_.N1.Object.defineProperties(Qh.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.shownItems)==null||!W.some(function(P){return!!P.lockupViewModel}))}}});
Qh.prototype.shownItemsChangedForBinding=Qh.prototype.shownItemsChangedForBinding;Qh.prototype.showButtonChanged=Qh.prototype.showButtonChanged;Qh.prototype.hideTvfilmOfferModuleChanged=Qh.prototype.hideTvfilmOfferModuleChanged;Qh.prototype.updateLockupContainerTypes=Qh.prototype.updateLockupContainerTypes;Qh.prototype.hideUnlimitedOfferModuleChanged=Qh.prototype.hideUnlimitedOfferModuleChanged;Qh.prototype.dataChanged=Qh.prototype.dataChanged;Qh.prototype.resultsChanged=Qh.prototype.resultsChanged;
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Qh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],Qh.prototype,"ytLazyListBehavior",void 0);_.f([_.h(_.M2.YtNextContinuationBehavior),_.l("design:type",Object)],Qh.prototype,"ytNextContinuationBehavior",void 0);
_.f([_.h(_.Dv),_.l("design:type",Object)],Qh.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Qh.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Qh.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Qh.prototype,"playerData",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],Qh.prototype,"autoFill",void 0);_.f([_.c({value:60}),_.l("design:type",Number)],Qh.prototype,"targetFramerate",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Qh.prototype,"isTwoColumns",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Qh.prototype,"hideOfferModules",void 0);_.f([_.c(),_.l("design:type",Object)],Qh.prototype,"shownItems",void 0);_.f([_.c({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.l("design:type",Boolean)],Qh.prototype,"hideUnlimitedOfferModule",void 0);
_.f([_.c({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.l("design:type",Boolean)],Qh.prototype,"hideTvfilmOfferModule",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Qh.prototype,"watchFeedBigThumbs",void 0);_.f([_.c(),_.l("design:type",Object)],Qh.prototype,"watchNextGridHideChips",void 0);_.f([_.c(),_.l("design:type",Object)],Qh.prototype,"eligibleToSwitchToGrid",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Qh.prototype,"disableShortsShelfHeightOverride",void 0);_.f([_.c({selector:_.br,reflectToAttribute:!0}),_.l("design:type",Object)],Qh.prototype,"isGridViewEnabled",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Qh.prototype,"showMoreButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Qh.prototype,"isWatchNextGrid",void 0);
_.f([_.c({computed:"computeShowButton(showMoreButton, data.results)"}),_.l("design:type",Boolean)],Qh.prototype,"showButton",void 0);_.f([_.K_("data.results.*"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qh.prototype,"resultsChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qh.prototype,"dataChanged",null);
_.f([_.OZ("hideUnlimitedOfferModule"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qh.prototype,"hideUnlimitedOfferModuleChanged",null);_.f([_.H("isGridViewEnabled","containsLockupViewModel","data"),_.c({reflectToAttribute:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],Qh.prototype,"lockupContainerType",null);
_.f([_.OZ("lockupContainerType","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qh.prototype,"updateLockupContainerTypes",null);_.f([_.OZ("hideTvfilmOfferModule"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qh.prototype,"hideTvfilmOfferModuleChanged",null);_.f([_.OZ("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qh.prototype,"showButtonChanged",null);
_.f([_.OZ("shownItems"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qh.prototype,"shownItemsChangedForBinding",null);_.f([_.H("shownItems"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qh.prototype,"containsLockupViewModel",null);
_.X(Qh,"ytd-watch-next-secondary-results-renderer",function(){if(Vid===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);Vid=W}W=Vid;return W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.FN3={};
_.FN3.YtdWatchBehavior=[_.L.YtRendererBehavior,_.aO.YtPlayerListenerBehavior,_.TC.YtRendererstamperBehavior,_.rb.YtActionHandlerBehavior,_.zV.YtPageBehavior,_.IM.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.wo("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.p("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.p("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.wo("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.p("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, fullscreen, theater)"},richItemMinWidth:{type:Number,
value:function(){return _.Wi("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Wi("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.p("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.p("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.p("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.p("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.p("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("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 _.p("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("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 _.p("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var W={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:_.Md(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Md(["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"||_.p("swa_prov_panels_ks")?W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},W.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return W},
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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.p("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.p("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.p("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.eG3(function(){return _.ih(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.p("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.nT;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;_.p("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.p("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));_.p("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.WM(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.p("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.p("kevlar_watch_while_v2")&&!_.p("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.p("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.Lf(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.p("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.p("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var P=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var x;(x=this.watchController)==null||x.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.jI({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.CK("nw");this.loading=!1;_.VE(_.Gr,function(){P.initDclkstatus_();var I,O=((I=P.player)==null?void 0:I.getVideoData().cpn)||"";_.j5L(function(B,Y){_.MBv(B,Y,O)})})},
onPageLoadWithSameData_:function(){_.p("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.p("kevlar_watch_frame0_loading_state")){var P,x,I;W=(P=this.loadingData)==null?void 0:(x=P.endpoint)==null?void 0:(I=x.watchEndpoint)==null?void 0:I.videoId;var O;W&&(O="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.g(this.hostElement).querySelector("#player").style.backgroundImage=O?"url("+O+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.g(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var P,x;(x=(P=this.watchMetadata).updateSentimentBarWidth)==
null||x.call(P);var I,O;(O=(I=this.watchMetadata).resize)==null||O.call(I)}_.p("kevlar_watch_frame0_loading_state")&&(_.g(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var P=_.g(this.hostElement).querySelector(W);P?_.Fu(P,!1):_.ge(new _.mW("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var P=_.g(this.hostElement).querySelector(W);P?_.qV(P):_.ge(new _.mW("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var P=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Gr.addLowPriorityJob(function(){P.onWindowResized_(_.S9(!0))})},
updateTheaterModeState_:function(W){if(!_.p("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.wC9()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var W=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.p("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.g(this.hostElement).querySelector("#player-full-bleed-container"):_.g(this.hostElement).querySelector("#player-container-inner");var P=this.getPlayerContainer(),x=_.p("kevlar_watch_while_v2")||_.p("web_watch_pip");P.parentElement!==W&&(x&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.ih(this).appendTo(W,
P),W.appendChild(_.g(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.y(function(P){if(P.nextAddress==1)return _.S(P,_.FY().resolve(_.kc).deactivate(),2);W.updatePlayerLocation();_.Kl(P)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var P=this.getCinematicsLocationContainer();W.parentElement!==P&&P.appendChild(W);var x;(x=this.watchController)==null||x.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.g(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.g(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,P){var x=document.documentElement.hasAttribute("dark"),I=x&&_.p("web_cinematic_theater_mode"),O=x&&_.p("web_cinematic_fullscreen");x=!x&&this.cinematicLightTheme;return W&&I||P&&O||(P||W)&&x},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W=this,P;(P=this.watchController)==null||P.setWatchNextResponse(this.data);_.p("kevlar_watch_flexy_comments_manager")||this.initComments_();_.p("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.FY().resolve(_.wx).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.p("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Gr.addLowPriorityJob(function(){_.P7(W.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.p("web_watch_start_chat_in_theater_mode")){var x,I,O;if((x=this.data)==null?0:(I=x.contents)==null?0:(O=I.twoColumnWatchNextResults)==null?0:O.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var B,Y;((B=this.data)==null?0:(Y=B.contents)==null?0:Y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(W){var P;(P=this.watchController)==null||P.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(P=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),P&&!W||_.Xm(this,function(){_.CK("pbu")}));
this.setPlayerAds_();_.P7(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(W,P){if((_.p("kevlar_watch_while_v2")||_.p("web_watch_pip"))&&this.playerData&&P)return this.playerData.videoDetails},
watchPageActiveChanged_:function(W){_.Xe().dispatch(_.ONm(this.active));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new _.aT(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);_.p("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var P=_.ih(this);_.p("kevlar_disable_prepare_player")||
P.preparePlayer();_.p("kevlar_watch_flexy_playlist_manager")||_.FY().resolve(_.wx).setPlayer(P);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();P={"--ytd-watch-flexy-scrollbar-width":_.EM()+"px"};this.is==="ytd-watch-grid"&&(P["--ytd-watch-flexy-sidebar-width"]=_.mFM+"px",P["--ytd-watch-grid-horizontal-page-margins"]=_.hr+"px",P["--ytd-watch-grid-columns-top-margins"]=_.dFf+"px",P["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Wi("kv_pl_mx_sz_ks")&&
_.Wi("kevlar_watch_max_player_width")&&(P["--ytd-watch-flexy-max-player-width-wide-screen"]=_.VE4+"px");_.Wi("kevlar_watch_flexy_metadata_height")&&(P["--ytd-watch-flexy-space-below-player"]=_.tE3+"px");this.safeUpdateStyles(P);_.p("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.yp(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.p("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.g(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.EM(),P=_.HE+W,x=P;this.fixedPanels&&(P+=_.mFM);var I=657+W;W=1327+W;_.g(this.hostElement).querySelector("#two-column-query").query="(min-width: "+P+"px)";_.g(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(I+"px), (min-height: 630px) and (min-width: ")+(P+"px) and (max-width: ")+(W+"px)");_.g(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");_.g(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+x+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.g(this.hostElement).querySelector("#miniplayer-bar").firstChild,P=this.squeezeback&&!_.p("web_watch_squeezeback_player_size_killswitch");return W&&W.active||this.theater||_.p("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||P||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.y7(NaN,NaN):_.XW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.XW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.TD(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.S9());_.p("browse_skeleton_removal_on_watch_killswitch")||_.wo("IS_SHELL_LOAD")&&_.M72();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var P=_.ih(this);P.addEventListener("yt-player-updated",_.WM(this,this.onPlayerUpdated_));P.getPlayerPromise().then(function(x){W.playerApiReady_(x)});
_.p("kevlar_watch_flexy_playlist_manager")||(P=_.FY().resolve(_.wx),_.p("kevlar_watch_observe_playlist_navigations_killswitch")&&P.addEventListener("yt-navigate",_.WM(this,this.onYtNavigate_)),P.setPlaylistComponent(_.g(this.hostElement).querySelector("#playlist")),P.addEventListener("yt-playlist-data-updated",_.WM(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Gr.addLowPriorityJob(function(){_.Lf(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.ih(this).removeEventListener("yt-player-updated",_.WM(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.p("kevlar_watch_flexy_playlist_manager")){var W=_.FY().resolve(_.wx);_.p("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.WM(this,this.onYtNavigate_));
W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.WM(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.p("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Lf(this.hostElement,"yt-autonav-pause-player",!1);W=_.iO();_.p("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Ri(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,P){P.hasComments?P.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):P.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,P){this.player&&(P?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.A5("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.g(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.g(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.p("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.p("kevlar_unified_player")||_.p("kevlar_player_new_bootstrap_adoption"))&&_.Lo()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,P){P=P===void 0?!0:P;_.iO()&&_.p("external_fullscreen")&&_.Ri(document.documentElement);this.theaterRequested_=W;P&&_.uA("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.W7(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Lf(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(W){_.Dw(W,typeof this.player),this.player&&_.Dw(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.W7(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,P){return this.loading?P:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.n(W);for(var P=W.next();!P.done;P=W.next())P=P.value,P.youThereRenderer&&_.bNm(this.youThereManager_,P.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var P=this.youThereManager_;_.LD()<W.lowEngagementThresholdMs||_.f0Q(P,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.W7(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,P,x){return!!W&&!this.isVideoPlayable_(W,x)&&!P},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,P){if(!W)return!1;var x=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",I=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var O;P=P==null?void 0:(O=P.playerOverlayRenderer)==null?void 0:O.gatedActionsOverlayRenderer;return!!x||!!I||!!W||!!P},
hasWatchNextResponseErrorRenderer:function(W){var P=this.getPageContents(W),x,I,O,B,Y;return!(W==null?0:(x=W.contents)==null?0:(I=x.twoColumnWatchNextResults)==null?0:I.secondaryResults)&&!!((O=P[0])==null?0:(B=O.itemSectionRenderer)==null?0:(Y=B.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,P,x){var I=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",P),O=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];O=_.p("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&O.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var B=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);B==void 0&&(B=!0);!x||this.isVideoPlayable_(W,this.getPlayerOverlays_(P))||
I||O||!B||_.FY().resolve(_.wx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ESf()},
onPlayerFeedbackStartRequest_:function(W){_.W7(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.W7(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,P,x,I,O,B,Y,K,Z=((W=this.data)==null?NaN:(P=W.contents)==null?NaN:(x=P.twoColumnWatchNextResults)==null?NaN:(I=x.secondaryResults)==null?NaN:(O=I.secondaryResults)==null?NaN:(B=O.offerModule)==null?NaN:(Y=B.tvfilmOfferModuleRenderer)==null?NaN:(K=Y.actionButtons)==null?NaN:K.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(Z>=0?Z:0)+".buttonRenderer."];P=_.n(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(x=P.next();!x.done;x=P.next())for(x=x.value,I=_.n(W),O=I.next();!O.done;O=I.next())if(O="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+x+O.value,O=this.get(O+"navigationEndpoint",this.data)||this.get(O+"serviceEndpoint",this.data)||this.get(O+"command",this.data)){_.O2(O,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.Lf(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Lf(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.Xe().dispatch(_.gwz(W))},
onPlayerSubscribe_:function(W){_.W7(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.W7(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.W7(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
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(W){return!_.p("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.p("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.p("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var W,P,x,I;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(P=W.contents)==null?void 0:(x=P.twoColumnWatchNextResults)==null?void 0:(I=x.secondaryResults)==null?void 0:I.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.p("swatcheroo_pbs_load_grid")&&!_.p("swatcheroo_provide_all_data_on_scheduled_job")){_.Gr.cancelJob(this.setRichGridJobId_);var W,P,x,I,O,B,Y;this.setRichGridRendererData((W=this.data)==null?void 0:(P=W.contents)==null?void 0:(x=P.twoColumnWatchNextResults)==null?void 0:(I=x.secondaryResults)==null?void 0:(O=I.secondaryResults)==null?void 0:(B=O.results)==null?void 0:(Y=B[0])==null?
void 0:Y.richGridRenderer)}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,P=(W=this.data)==null?void 0:W.engagementPanels;if(P==null?0:P.length){W=null;P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=void 0;if(((I=x.engagementPanelSectionListRenderer)==null?void 0:I.targetId)==="engagement-panel-structured-description"){W=x;break}}var O,B,Y;W=(O=W)==null?void 0:(B=O.engagementPanelSectionListRenderer)==null?void 0:(Y=B.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(W==null?0:W.items){O=
[];B=_.n(W.items);for(Y=B.next();!Y.done;Y=B.next()){Y=Y.value;if(!_.p("sd_horizontal_list_show_nav_killswitch")){var K=I=x=P=W=void 0,Z=void 0,d=(W=Y.horizontalCardListRenderer)==null?void 0:(P=W.header)==null?void 0:(x=P.richListHeaderRenderer)==null?void 0:(I=x.navigationButton)==null?void 0:(K=I.buttonRenderer)==null?void 0:(Z=K.command)==null?void 0:Z.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(v){return!_.Q(v,_.hPf)}))}Y.expandableVideoDescriptionBodyRenderer||
Y.videoDescriptionHeaderRenderer||O.push(Y)}return{items:O}}}},
constructWarning_:function(W){return{text:_.bx(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.Lf(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.p("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var P=this.getScrollTop()>0;this.gestures_&&(P?this.gestures_.detach():this.gestures_.attach());P!==this.showFullerscreenEdu_&&_.p("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=P,_.ih(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Lf(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.Gr.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.VE(_.Gr,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.p("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.CK("cmi");_.Gr.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.n(W);for(var P=W.next();!P.done;P=W.next())if(P=P.value,this.get("itemSectionRenderer.sectionIdentifier",P)==="comment-item-section"){this.comments=P.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Lf(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.p("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.p("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.CK("cmc")},
doRemoveComments_:function(){this.comments={};_.p("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Gr.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Gr.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,P){var x=_.Q(P.endpoint,_.U_);x&&(!(P=this.get("data.currentVideoEndpoint.watchEndpoint"))||x.videoId!==P.videoId||x.playlistId&&x.playlistId!==P.playlistId||x.index!==void 0&&x.index!==P.index||typeof x.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.ih(this).getPlayerPromise().then(function(I){var O=x.startTimeSeconds;I.seekTo(O);I.wakeUpControls();O<I.getDuration()&&I.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.oS6();"t"in W&&(W=_.GgQ(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var P,x;(W=_.kz(W==null?void 0:(P=W[0])==null?void 0:(x=P.videoPrimaryInfoRenderer)==null?void 0:x.title))&&_.Lf(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.Lf(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,P,x){if(this.active&&this.player){var I=this.player.getVideoData();if(I.video_id===x&&(x=I.list,_.p("polymer_enable_mdx_queue")&&x&&x.startsWith("RQ")&&(x=void 0),I.video_id!==W||x!=P)){var O;_.p("kevlar_player_watch_endpoint_navigation")?O=_.U6o(_.Q5M(W,P)):O=this.buildWatchEndpoint_(W,P);_.Lf(this.hostElement,"yt-navigate",{endpoint:O,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,P,x){return _.iB(W,P,x)},
initDclkstatus_:function(){_.zGy()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var P=W.querySelector("#primary-info"),x=W.querySelector("#secondary-info"),I=W.querySelector("#related");P&&_.g(this.hostElement).querySelector("#info-skeleton").appendChild(P);x&&_.g(this.hostElement).querySelector("#meta-skeleton").appendChild(x);I&&(_.g(this.hostElement).querySelector("#related-skeleton").appendChild(I),this.watchNextSkeletonEl_=I);_.oE(W)}},
handlePlayerUpdated_:function(){_.ih(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,P){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof P!=="undefined"){var x=this.watchNextSkeletonEl_.children,I=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,x.length);P||(I=0,W=x.length);for(P=I;P<W;P++)x[P].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.p("external_fullscreen")||_.W7(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var P=_.ih(this);P.getPlayerPromise().then(function(x){x.setFauxFullscreen(!!_.iO())});
this.updateFullBleedElementLocations();W&&(P.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,P){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!P},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,P){return P&&!!W},
computeResponseHasComments:function(W){var P,x,I,O,B;return!!(W==null?0:(P=W.contents)==null?0:(x=P.twoColumnWatchNextResults)==null?0:(I=x.results)==null?0:(O=I.results)==null?0:(B=O.contents)==null?0:B.some(function(Y){var K;return(Y==null?void 0:(K=Y.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,P,x,I){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&I?!1:!!W&&!!Object.keys(W).length&&!P},
identity:_.UU,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.p("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var P=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.ih(this).getPlayerPromise().then(function(x){var I=x.getPlayerState();I!==5&&I!==0&&(x=1/x.getVideoAspectRatio(),P.videoHeightToWidthRatio_!==x&&(P.videoHeightToWidthRatio_=x))})},
schedulePlayerSizeUpdate_:function(W){var P=this,x=_.p("kevlar_watch_while_v2")||_.p("web_watch_pip"),I=function(){if(P.watchMetadata){var O,B;(B=(O=P.watchMetadata).resize)==null||B.call(O)}_.ih(P).getPlayerPromise().then(function(Y){if(_.p("kevlar_set_internal_player_size")){if(!x||!P.isMiniplayerActive()){var K=P.calculateCurrentPlayerSize_();Y.setInternalSize(K.width,K.height)}}else Y.setSize(NaN,NaN);_.p("kevlar_watch_while")&&P.updateWatchWhileScrollThreshold_()})};
W?I():_.GS(_.Gr,I)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.Q(W,_.HNy).survey)},
onDownloadedVideoDeleted:function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1){if(!P.active||(x=P.playerData)==null||!x.offlineState||P.videoId!==W)return O.return();(I=P.player)==null||I.stopVideo();_.ug().navigatingAwayFromWatchDeletedVideo=!0;_.O2(_.GGC,P.hostElement);return _.S(O,_.ug().navigationFinishPromise,2)}_.ug().navigatingAwayFromWatchDeletedVideo=!1;_.Kl(O)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.HX(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.g(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var P=this.windowSize_.height>=624,x=this.active?this.getScrollTop():0;!W.active&&P&&x>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!P||x<this.watchWhileScrollThreshold_&&!_.iO())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var W=_.g(this.hostElement).querySelector("#secondary-inner");if(W){var P=_.g(this.hostElement).querySelector("#below"),x=_.g(this.hostElement).querySelector("#secondary"),I=_.g(this.hostElement).querySelector("#comments");I&&x&&P&&(this.defaultTwoColumnLayout?(W.appendChild(I),x.appendChild(W)):(P.appendChild(I),_.wA(P,W)))}}},
isTwoColumnsChanged_:function(W,P){if(W!==!0||P!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(W=_.g(this.hostElement).querySelector("#secondary-inner"))){P=_.g(this.hostElement).querySelector("#below");var x=_.g(this.hostElement).querySelector("#secondary"),I=_.g(this.hostElement).querySelector("#comments");I&&x&&P&&(this.isTwoColumns_?(W.appendChild(I),x.appendChild(W)):(P.appendChild(I),
_.wA(P,W)))}}else{W=!_.p("live_chat_over_engagement_panels");P=_.g(this.hostElement).querySelector("#chat-container");x=_.g(this.hostElement).querySelector("#panels");var O=_.g(this.hostElement).querySelector("#alerts");I=_.g(this.hostElement).querySelector("#playlist");var B=_.g(this.hostElement).querySelector("#related"),Y=_.g(this.hostElement).querySelector("#donation-shelf"),K=_.g(this.hostElement).querySelector("#comments");this.isTwoColumns_?(O=_.g(this.hostElement).querySelector("#secondary-inner"),
W&&O.appendChild(x),O.appendChild(I),_.p("web_watch_theater_chat")||O.appendChild(P),W||O.appendChild(x),O.appendChild(Y),O.appendChild(B)):(W&&_.D9(x,O),_.D9(I,O),_.p("web_watch_theater_chat")||_.D9(P,O),W||_.D9(x,O),_.D9(Y,O),K&&_.D9(B,K));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.p("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.p("web_watch_enable_fs_squeezeback_panels")&&_.p("web_watch_theater_chat")){var W=_.g(this.hostElement).querySelector("#chat-container"),P=this.theater&&!this.fullscreen||_.p("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&P?_.p("web_watch_theater_chat_beside_player")?(P=_.g(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==
P&&P.append(W),this.panelsBesidePlayer=!0):_.p("web_watch_theater_fixed_chat")&&(P=_.g(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==P&&P.append(W),this.fixedPanels=!0):(_.p("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.p("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),P=_.g(this.hostElement).querySelector("#playlist"),W&&P?_.MQ(W,P):_.ge(new _.mW("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!P})));
this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,P){return _.p("sw_metadata_vis_toggle_ks")?!0:!!W||!!P},
computeForceDarkPanelTheme:function(W){return _.p("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.qa(this.hostElement,W)}catch(P){_.ge(P)}},
videoHeightToWidthRatioChanged_:function(W,P){P&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.ih(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.ih(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.NA4(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var P=_.ye(W)||0;_.Y9(W,P+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.ye("yt-fullerscreen-edu-button-click-count")||0,P=_.ye("yt-fullerscreen-edu-button-shown-count")||0,x=_.Wi("external_fullscreen_button_shown_threshold"),I=W>=_.Wi("external_fullscreen_button_click_threshold")||P>=x;_.ih(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonSubtleModeState(I)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,P){return P},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.FY().resolve(_.wx).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var W=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Gr.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Gr.addLowPriorityJob(function(){W.fullHeightPanelPositionUpdateJobId=0;var P=_.g(W.hostElement).querySelector("#secondary"),x=_.g(W.hostElement).querySelector("#fixed-secondary");P=P.getBoundingClientRect();var I=P.width;W.swatcherooSqueezeback&&
(I+=_.hr);if(W.swatcherooSqueezeback){var O=_.g(W.hostElement).querySelector("#squeezeback-constraining-container");O.style.width=I+"px";O.style.flex="0 0 "+I+"px"}x.style.width=I+"px";x.style.left=P.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Gr.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Gr.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var P;!W.isTwoColumns_||W.theater||W.fullscreen?P=460:P=W.calculateNormalPlayerSize_().height;var x=P+"px";_.p("live_chat_taller_height")&&!W.theater&&(x="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.p("live_chat_medium_height")&&!W.theater&&(x="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.p("live_chat_scaled_height")&&!W.theater&&(x="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":P+"px","--ytd-watch-flexy-chat-max-height":x,"--ytd-watch-flexy-structured-description-max-height":P+"px","--ytd-watch-flexy-comments-panel-max-height":P+"px","--ytd-comments-engagement-panel-content-height":P+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.OL(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var P=_.g(this.hostElement).querySelector("#engagement-panel-scrim");W?P.addEventListener("tap",_.WM(this,this.onEngagementPanelScrimClick_)):P.removeEventListener("tap",_.WM(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var P=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var x=this.getPageScrollingElement(),I=this.getScrollTop(),O=I+x.clientHeight-56;if(P<I+56)P-=56;else if(W>O)P=W-x.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,P),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.p("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.K5().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,P,x){if(this.active&&this.trackEngagementPanelVisibility&&!_.wEQ.includes(x)){if(P==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.P7(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.p("kevlar_single_panel_fullscreen")){var I=_.FY().resolve(_.m3);this.visiblePanelIdentifiers_.forEach(function(O){O!==x&&I.hidePanel(O)})}this.visiblePanelIdentifiers_.add(x)}P!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&P!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(x);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,P,x){return W||P||this.enableFullBleedSingleColumnDefaultPlayer&&!x},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,P){return!W&&P},
updatePanelsLocation:function(){if(_.p("web_watch_enable_fs_squeezeback_panels")){var W=_.g(this.hostElement).querySelector("#below"),P=_.g(this.hostElement).querySelector("#panels"),x=_.g(this.hostElement).querySelector("#chat-container"),I=_.g(this.hostElement).querySelector("#panels-full-bleed-container"),O=_.g(this.hostElement).querySelector("#secondary-inner");this.fullscreen||this.theater&&this.iMaxTheaterMode?(I.appendChild(P),I.appendChild(x)):this.isTwoColumns_?(_.wA(O,P),_.wA(O,x)):(W.appendChild(P),
W.appendChild(x))}},
swatcherooUpdatePanelsLocation:function(W,P,x,I,O,B){if(this.is==="ytd-watch-grid"){P=W&&!P;this.swatcherooSplitScroll&&(P?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));x=_.g(this.hostElement).querySelector("#panels");var Y=_.g(this.hostElement).querySelector("#playlist"),K=_.g(this.hostElement).querySelector("#fixed-secondary"),Z=_.g(this.hostElement).querySelector("#fixed-below"),
d=_.g(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),v=_.g(this.hostElement).querySelector("#chat-container");B&&(W?K.appendChild(x):Z.appendChild(x));O?W?K.appendChild(v):Z.appendChild(v):_.MQ(v,d);I?W?K.appendChild(Y):Z.appendChild(Y):_.MQ(Y,d);this.swatcherooSplitScroll&&(W=_.g(this.hostElement).querySelector("#secondary"),I=_.g(this.hostElement).querySelector("#columns"),O=_.g(this.hostElement).querySelector("#fixed-columns-secondary"),P?O.appendChild(W):
I.appendChild(W))}},
computeMetadataSkinnyMode:function(W,P,x){return this.is!=="ytd-watch-grid"?!1:W?x:P},
computeWatchWhilePanelsActive:function(W,P){return W||P},
computeNoBorderOnChat:function(W){return _.p("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,P){return W&&!P},
computePanelExpanded:function(W,P,x){return W||P||x},
computeSqueezeback:function(W,P,x){if(_.p("web_watch_enable_fs_squeezeback_panels")){var I=this.iMaxTheaterMode&&this.theater;return(W||P)&&(x||I)}},
computeSwatcherooSqueezeback:function(W,P,x){return this.is!=="ytd-watch-grid"||_.p("ww_squeezeback_killswitch")?!1:W&&P&&x},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(W){_.ih(this).getPlayerPromise().then(function(P){var x;(x=P.changeMarkerVisibility)==null||x.call(P,_.Q(W,_.fV).isVisible||!1,_.Q(W,_.fV).entityKeys||[],_.Q(W,_.fV).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.Xe().dispatch(_.$4L(W.detail))},
onSetPlaylistCollapsed:function(W){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!W)},
provideRenderingData:function(W,P){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=P;break;case "PRIMARY_INFO":_.p("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=P);this.videoPrimaryInfoRendererValue=P==null?void 0:P.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.p("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=P);this.videoSecondaryInfoRendererValue=P==null?void 0:P.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
P;break;case "CLARIFICATION":this.clarifyBoxValue=P;break;case "LIVE_CHAT":this.conversationBar=P;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=P;break;case "PLAYLIST":this.externalPlaylistData_=P!=null?P:{};break;case "MERCH_SHELF":this.merchShelfValue=P==null?void 0:P.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=P;break;case "TICKET_SHELF":this.ticket=P;break;case "OFFER_MODULE":this.offerModule=P;break;case "LIMITED_STATE":this.limitedStateValue=
P;break;case "DONATION_SHELF":this.donation=P;break;case "ALERTS":this.alertsValue=P;break;case "COMMENTS":this.comments=P;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=P;break;case "ENGAGEMENT_PANELS":this.engagementPanels=P;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=P;break;case "RICH_GRID_RENDERER":this.richGridRendererData=P;break;case "EXPANDABLE_METADATA":this.expandableMetadata=P;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
P}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.FY().resolve(_.kc).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Hj9;_.hML=function(W){return W.shorts.isShortsActive};
_.eMM=function(W){return W.findIndex(function(P){return Hj9.indexOf(P.tagName)>-1})>-1};
_.cYL=function(W){return _.LK({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:W}})};
_.a84=function(){var W=_.FY().resolve(_.Pv);_.Uat(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(W.isFullscreenEnabled()?_.Ri(document.documentElement):_.dCo(document.documentElement))};
Hj9=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.qh=new Map;_.qh.set(32,59972);_.qh.set(27,50765);_.qh.set(70,60102);_.qh.set(76,60221);_.qh.set(77,60222);_.qh.set(74,60223);_.qh.set(84,60224);_.qh.set(38,61941);_.qh.set(40,61942);_.qh.set(73,62521);_.qh.set(67,62522);_.qh.set(80,63390);_.qh.set(78,63397);_.qh.set(75,59972);_.qh.set(188,63385);_.qh.set(190,63384);_.qh.set(36,63387);
_.qh.set(35,63386);_.qh.set(37,63388);_.qh.set(39,63389);_.qh.set(79,63423);_.qh.set(87,63424);_.qh.set(107,63426);_.qh.set(109,63425);_.qh.set(65,63428);_.qh.set(83,63430);_.qh.set(68,63429);_.qh.set(221,63431);_.qh.set(219,63432);_.qh.set(97,63439);_.qh.set(98,63440);_.qh.set(99,63441);_.qh.set(100,63442);_.qh.set(101,63443);_.qh.set(102,63444);_.qh.set(103,63445);_.qh.set(104,63446);_.qh.set(105,63447);_.LY=new Map;_.LY.set(80,63390);_.LY.set(78,63397);_.LY.set(188,63400);_.LY.set(190,63401);
_.LY.set(191,60765);_.LY.set(13,247917);_.WS=new Map;_.PS=new Map;
}catch(e){_._DumpException(e)}
try{
var HlG,aum,bly,kE9;_.MuG=function(W){return W.ui.guideIsVisibleButNotPersistent};
_.$i3=function(W){return W.ui.tabGesturesIsActive};
_.wrO=function(){var W=_.Pi("service_worker_scope");try{return navigator.serviceWorker.getRegistration(W)}catch(P){return Promise.reject(P)}};
_.hYy=function(W){return!(!W||!W.pushManager)};
HlG=function(){return _.wrO().then(_.hYy).catch(function(){return!1})};
_.eYL=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?HlG():Promise.resolve(!1)};
_.coy=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
aum=function(){var W,P,x;return _.y(function(I){switch(I.nextAddress){case 1:return _.S(I,_.QI.getInstance(),2);case 2:W=I.yieldResult;if(!W){P=void 0;I.jumpTo(3);break}return _.S(I,W.get("lmqf"),4);case 4:P=I.yieldResult;case 3:switch((x=P)||(x="SD"),x){case "HD":return I.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return I.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return I.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return I.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return I.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
bly=function(W){var P,x,I;return _.y(function(O){if(O.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.p("disable_av1_setting")){var B=window.localStorage["yt-player-av1-pref"];B=B==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":B==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else B="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(P=W===B)return O.jumpTo(2);I=x=W;return _.S(O,aum(),3)}O.nextAddress!=2&&(P=I===O.yieldResult);return O.return(P)})};var Uiv;var XrG=_.QM.IronButtonState,fu4=(0,_.th)(HTMLElement);
_.vM({_template:function(){if(Uiv!==void 0)return Uiv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;kE9===void 0&&(kE9=document.createElement("template"));var I=kE9;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Uiv=W},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[XrG,_.pT,_.CT,_.Gb],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(W){var P=(0,_.Sk)(this);P.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:W});P.shadowRoot.appendChild(W);return fu4.prototype._attachDom.call(this,W)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.VS(this.$.content).getDistributedNodes(),P=0,x=W.length;P<x;P++)if(W[P].nodeType===Node.ELEMENT_NODE)return W[P]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var P="";W?P=W.label||W.getAttribute("label")||W.textContent.trim():P="";this.value=P;this._setSelectedItemLabel(P)},
_computeMenuVerticalOffset:function(W,P){return P?P:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",P=this.contentElement;P&&P.setAttribute("aria-expanded",W)}});_.aZ=new _.R("navigateAction");var N_6=new _.R("formRenderer");var bD=function(){var W=_.Yl.apply(this,arguments)||this;W.showInput=!1;return W};
_.A(bD,_.Yl);_.J=bD.prototype;_.J.detached=function(){this.showInput&&window.removeEventListener("click",_.WM(this,this.closeOnOutsideClick_))};
_.J.stopPropagation_=function(W){this.showInput&&W.stopPropagation()};
_.J.closeOnOutsideClick_=function(W){this.closeOnOutsideClickCondition(W)&&(this.showInput=!1,window.removeEventListener("click",_.WM(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.J.closeOnOutsideClickCondition=function(){return!0};
_.J.closeOnOutsideClickHandler=function(){};
_.J.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.WM(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.J.openOnClickHandler=function(){};
_.J.showInputChanged=function(){};
_.J.setShowInput=function(W){this.showInput=W};
bD.prototype.setShowInput=bD.prototype.setShowInput;bD.prototype.showInputChanged=bD.prototype.showInputChanged;bD.prototype.openOnClickHandler=bD.prototype.openOnClickHandler;bD.prototype.openOnClick_=bD.prototype.openOnClick_;bD.prototype.closeOnOutsideClickHandler=bD.prototype.closeOnOutsideClickHandler;bD.prototype.closeOnOutsideClickCondition=bD.prototype.closeOnOutsideClickCondition;bD.prototype.closeOnOutsideClick_=bD.prototype.closeOnOutsideClick_;bD.prototype.stopPropagation_=bD.prototype.stopPropagation_;
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],bD.prototype,"showInput",void 0);_.f([_.I7("click"),_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],bD.prototype,"stopPropagation_",null);_.f([_.OZ("showInput"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],bD.prototype,"showInputChanged",null);bD=_.f([_.yL()],bD);_.luB=[bD.prototype];var T_G;var roM;var k7=function(){return _.b.apply(this,arguments)||this};
_.A(k7,_.b);_.J=k7.prototype;_.J.computePreselectedOption=function(W,P){return P===this.itemSelected_?W:void 0};
_.J.dataChanged_=function(){var W=this;this.preselectedSubreason=this.itemSelected_=-1;var P;(P=this.data)!=null&&P.key&&_.Xm(this,function(){var x,I=Number((x=W.data)==null?void 0:x.key);!Number.isNaN(I)&&(W.itemSelected_=I,x=(x=(W.data.items||[])[I])&&x.optionSelectableItemRenderer&&x.optionSelectableItemRenderer.preselectedIndex)&&(W.preselectedSubreason=x)})};
_.J.isSubReasonHidden_=function(W,P){return W!=P};
_.J.onTopItemSelected_=function(W,P){for(var x=_.g(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),I=0,O=x.length;I<O;I++)x[I].select(0);_.W7(this.hostElement,"yt-report-form-update",[P.item.value]);W.stopPropagation()};
_.J.onItemSelected_=function(W,P){_.W7(this.hostElement,"yt-report-form-update",[P.item.value]);W.stopPropagation()};
_.J.getItem_=function(W){return W.serviceItem?W.serviceItem:W.navigationItem?W.navigationItem:W.optionSelectableItemRenderer?W.optionSelectableItemRenderer:null};
_.J.computeText_=function(W){return(W=this.getItem_(W))?this.ytRendererBehavior.getSimpleString(W.text):null};
_.J.validate=function(){return this.itemSelected_!==-1};
_.J.computeAriaLabel_=function(W){var P=_.kz(W.text);(W=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label)&&(P+=". "+W);return P};
_.J.computeItemSelected_=function(W){return W};
_.J.preventSelection_=function(W){W.stopPropagation();this.tooltipTapped=!0};
_.J.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.J.updateItemSelectedFromBinding=function(W){this.itemSelected_=W.detail.value};
_.J.save=function(){var W;this.validate()&&(W=this.data)!=null&&W.items&&(W=this.data.items[this.itemSelected_],W!=null&&W.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(W.optionSelectableItemRenderer.submitEndpoint)||_.Iu(this.hostElement,[W.optionSelectableItemRenderer.submitEndpoint])))};
k7.prototype.onPaperRippleTransitionEnd_=k7.prototype.onPaperRippleTransitionEnd_;k7.prototype.dataChanged_=k7.prototype.dataChanged_;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],k7.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],k7.prototype,"data",void 0);_.f([_.c({value:-1}),_.l("design:type",Number)],k7.prototype,"itemSelected_",void 0);
_.f([_.c({computed:"computeItemSelected_(itemSelected_)"}),_.l("design:type",Number)],k7.prototype,"value",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],k7.prototype,"restoreFocusOnClose",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],k7.prototype,"tooltipTapped",void 0);_.f([_.c({value:-1}),_.l("design:type",Number)],k7.prototype,"preselectedSubreason",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k7.prototype,"dataChanged_",null);_.f([_.I7("transitionend"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k7.prototype,"onPaperRippleTransitionEnd_",null);k7=_.f([_.jd({is:"yt-options-renderer",disableElementRegistration:!0})],k7);
_.X(k7,"yt-options-renderer",function(){if(roM===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;T_G===void 0&&(T_G=document.createElement("template"));var I=T_G;x.call(P,I.content.cloneNode(!0),W.content.firstChild);roM=W}W=roM;return W},{mode:2});var il9;var RYv;var FJv;var qTO;var LJQ;var WY6;var UM=function(){return _.b.apply(this,arguments)||this};
_.A(UM,_.b);UM.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
UM.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
UM.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.x6(this.hostElement,"yt-share-panel-can-select-contact-action"))W&&W.detail&&(W.detail.x||W.detail.y)&&_.g(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:W?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.W7(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.f([_.c({observer:"onDataChanged"}),_.l("design:type",Object)],UM.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.l("design:type",String)],UM.prototype,"componentTitle",void 0);_.f([_.BM("#thumbnail"),_.l("design:type",Object)],UM.prototype,"thumbnail",void 0);UM=_.f([_.jd({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],UM);
_.X(UM,"yt-enrolled-contact-renderer",function(){if(WY6===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;LJQ===void 0&&(LJQ=document.createElement("template"));var I=LJQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);WY6=W}W=WY6;return W},{mode:2});var PzO;var xTM;var XI=function(){return _.b.apply(this,arguments)||this};
_.A(XI,_.b);XI.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
XI.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
XI.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.x6(this.hostElement,"yt-share-panel-can-select-contact-action"))W&&W.detail&&(W.detail.x||W.detail.y)&&_.g(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:W?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.W7(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.f([_.c({observer:"onDataChanged"}),_.l("design:type",Object)],XI.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.l("design:type",String)],XI.prototype,"componentTitle",void 0);_.f([_.BM("#thumbnail"),_.l("design:type",Object)],XI.prototype,"thumbnail",void 0);XI=_.f([_.jd({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],XI);
_.X(XI,"yt-suggested-contact-renderer",function(){if(xTM===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;PzO===void 0&&(PzO=document.createElement("template"));var I=PzO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);xTM=W}W=xTM;return W},{mode:2});var fQ=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-share-panel-reset-action":"onReset"};return W};
_.A(fQ,_.b);fQ.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"}}}}}};
fQ.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.W7(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
fQ.prototype.onReset=function(){for(var W=_.g(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),P=W.length-1;P>=0;P--)W[P].classList.toggle("selected")};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],fQ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({observer:"onDataChanged"}),_.l("design:type",Object)],fQ.prototype,"data",void 0);
fQ=_.f([_.jd({is:"yt-contact-section-renderer",disableElementRegistration:!0})],fQ);
_.X(fQ,"yt-contact-section-renderer",function(){if(qTO===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;FJv===void 0&&(FJv=document.createElement("template"));var I=FJv;x.call(P,I.content.cloneNode(!0),W.content.firstChild);qTO=W}W=qTO;return W},{mode:2});var Nd=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return W};
_.A(Nd,_.b);_.J=Nd.prototype;_.J.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"}}}};
_.J.onYtRefreshFormCommand=function(W){var P;(W=_.Q((P=_.Q(W,_.mQP))==null?void 0:P.formRenderer,N_6))&&this.set("data",W)};
_.J.reset=function(){var W=_.g(this.hostElement).querySelector("#fields").children;W=_.n(W);for(var P=W.next();!P.done;P=W.next())P=P.value,P.reset&&P.reset()};
_.J.getForm=function(){var W={},P=_.g(this.hostElement).querySelector("#fields").children;P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;if(!x.validate())return null;W[x.data.key]=x.value}return W};
_.J.submitFormFields=function(){if(this.fields)for(var W=_.n(this.fields),P=W.next();!P.done;P=W.next())P=P.value,P.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?P.save():P.nodeName==="YT-OPTIONS-RENDERER"&&P.save()};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Nd.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Nd.prototype,"data",void 0);_.f([_.n_("#fields > *"),_.l("design:type",Array)],Nd.prototype,"fields",void 0);
Nd=_.f([_.jd({is:"yt-form-renderer",disableElementRegistration:!0})],Nd);
_.X(Nd,"yt-form-renderer",function(){if(RYv===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;il9===void 0&&(il9=document.createElement("template"));var I=il9;x.call(P,I.content.cloneNode(!0),W.content.firstChild);RYv=W}W=RYv;return W},{mode:2});var IC6;var lD=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return W};
_.A(lD,_.b);lD.prototype.onCheckboxChange=function(W){this.data&&(W=(this.checked=_.af(W).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}})};
lD.prototype.handleUpdateCheckboxCommand=function(W){(W=_.Q(W,_.wxm))&&this.data&&this.data.id===W.id&&(this.set("data.disabled",W.disabled),this.set("data.title",W.title))};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],lD.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],lD.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],lD.prototype,"checked",void 0);lD=_.f([_.U({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],lD);
_.X(lD,"ytd-settings-checkbox-renderer",function(){if(IC6!==void 0)return IC6;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return IC6=W},{mode:1});var O52;var T6=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return W};
_.A(T6,_.b);T6.prototype.dataChanged=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return W.radio.removeAttribute("checked"),!W.data||!W.data.id||W.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.coy()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(P=W.data&&W.data.id)?_.S(x,bly(W.data.id),4):x.jumpTo(3):(W.set("data.hidden",!0),x.jumpTo(0));x.nextAddress!=3&&(P=x.yieldResult);P&&_.W7(W.hostElement,"yt-select-settings-radio-option",[W.data.id]);_.Kl(x)})};
T6.prototype.onButtonChanged=function(W){_.af(W).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.W7(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
T6.prototype.onSelectOption=function(W){this.data&&this.data.id&&(this.data.id===W?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
T6.prototype.dataChanged=T6.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],T6.prototype,"ytActionHandlerBehavior",void 0);_.f([_.BM("#radio"),_.l("design:type",Object)],T6.prototype,"radio",void 0);_.f([_.c(),_.l("design:type",Object)],T6.prototype,"data",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],T6.prototype,"dataChanged",null);T6=_.f([_.U({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],T6);
_.X(T6,"ytd-settings-radio-option-renderer",function(){if(O52!==void 0)return O52;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return O52=W},{mode:1});var JlG;var rm=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return W};
_.A(rm,_.b);
rm.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"}}}};
rm.prototype.handleUpdateTextCommand=function(W){(W=_.Q(W,_.hRZ))&&this.data&&this.data.id===W.id&&this.set("data",W)};
rm.prototype.handleUpdateConnectedAppRendererCommand=function(W){if(_.Q(W,_.c6m)&&this.data){var P,x;if(W=(P=_.Q(W,_.c6m))==null?void 0:(x=P.newConnectedAppRenderer)==null?void 0:x.connectedAppRenderer)this.data=W}};
rm.prototype.computeConnectedAppStyle=function(W){return W.style?W.style.toLowerCase().replace(/_/g,"-"):""};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],rm.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rm.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.l("design:type",String)],rm.prototype,"connectedAppStyle",void 0);rm=_.f([_.U({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],rm);
_.X(rm,"ytd-connected-app-renderer",function(){if(JlG!==void 0)return JlG;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return JlG=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.CU("iuT5Oc");

_.Az();
}catch(e){_._DumpException(e)}
try{
_.CU("L3n37");
var OuM=function(W){return W.watch.isLearningJourneyActive},JKf=_.td(115994),BX2=_.td(115993),nFO=function(W,P,x){var I=this;
var O=x.dragDownAction;this.layer=0;this.JSC$20406_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return I.dragDownAction()}}}};
this.JSC$20406_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return I.dragDownAction()}}}};
this.fullscreen=!1;var B=_.YY();_.YP(B,JKf,this.layer);_.YP(B,BX2,this.layer);this.dragDownAction=function(){O();_.hd(B,{visualElement:I.fullscreen?JKf:BX2})};
this.gesture=new _.KG(W,P,this.JSC$20406_watchConfig,"pandown");this.attach()};
nFO.prototype.attach=function(){this.gesture.attach()};
nFO.prototype.detach=function(){this.gesture.detach()};
nFO.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$20406_watchFullScreenConfig:this.JSC$20406_watchConfig};var YXQ=function(W){_.F1.call(this);var P=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return P.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(x){P.initOrDisposeActiveModules(x)}));
this.onAttached()};
_.A(YXQ,_.F1);_.J=YXQ.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(W){return this.rootElement.getElement(W)};
_.J.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(W,P){var x=this;if(_.p("web_watch_controller_reg_multiple_handlers_killswitch")){var I={};_.kM(_.bs.getInstance(),(I[W]=P,I),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),I={},_.kM(_.bs.getInstance(),(I[W]=function(){var O=_.tH.apply(0,arguments);return(x.actionHandlers.get(W)||[]).map(function(B){return B.apply(null,_.ju(O))})},I),this.getRoot())),this.actionHandlers.get(W).push(P)};
_.J.unregisterActionHandler=function(W){if(_.p("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.UA(_.bs.getInstance(),(P[W]=!0,P),this.getRoot())}else(P=this.actionHandlers.get(W))?(P.pop(),P.length===0&&(P={},_.UA(_.bs.getInstance(),(P[W]=!0,P),this.getRoot()),this.actionHandlers.delete(W))):_.ge(new _.mW("Attempted to unregister an action handler which is not registered.",W))};
_.J.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.lC(this.rootElement.pageDisposeJobs,W)};
_.J.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.Ft(this.rootElement.pageDisposeJobs,W)};
_.J.dispatchEvent=function(W,P){_.Lf(this.rootElement,W,P)};
_.J.provideRenderingData=function(W,P){this.rootElement.provideRenderingData(W,P)};
_.J.scrollWatchTo=function(W,P){var x;(x=this.watchScrollManager)==null||x.scrollWatchTo(W,P)};
_.J.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.Xm(W,function(){if(W&&W.firstElementChild){var P=W.querySelector(".html5-video-player");P&&(_.lL(_.FY().resolve(_.jy)),P.focus())}else _.ge(Error("km"))})};
_.J.updateCinematicFullscreenConfig=function(){var W=!!this.rootElement.theater,P=!!this.rootElement.fullscreen,x;(x=this.watchCinematicManager)==null||_.Ia4(x,P,W)};
_.J.subscribeToActiveChanged=function(W,P){P=P===void 0?!0:P;var x=_.sx(_.Xe(),OuM,function(I){W(I)});
P&&W(OuM(_.Xe().getState()));return x};
_.J.isActive=function(){return OuM(_.Xe().getState())};
_.J.onAttached=function(){var W=_.p("external_fullscreen");_.p("use_unified_flag_accessor")&&(W=_.FY().resolve(_.UbO).retriever.getFlag(_.fCc));(W||_.wo("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.J.initPersistentModules=function(){if(_.p("kevlar_watch_flexy_theater_manager")){var W=new _.MT3(this);_.nU(this,W)}W=new _.sbM(this);_.nU(this,W);W=new _.E5(this);_.nU(this,W);W=new _.HG(this);_.nU(this,W);W=new _.NIf(this);_.nU(this,W);W=new _.D7(this);_.nU(this,W);_.p("kevlar_watch_flexy_playlist_manager")&&(W=new _.TI6(this),_.nU(this,W))};
_.J.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.cG(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.DZG(this)),this.activeModules.push(new _.hvM(this)),this.activeModules.push(new _.WNm(this)),this.activeModules.push(new _.eD(this)),_.p("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.aMm(this)),this.activeModules.push(new _.egB(this)),_.p("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.x4f(this)),
_.p("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.r53(this)),_.p("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.LKm(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.p("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.k3M(this)),_.p("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.uk6(this)),W=_.p("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.p("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new _.yBf(this)),_.p("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.gH(this)),this.activeModules.push(new _.bGG(this)),this.activeModules.push(new _.$ZQ(this)),_.p("web_enable_timely_actions")&&this.activeModules.push(new _.fm3(this)),_.p("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.ok4(this)),_.p("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ImL(this)),
_.p("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.X3O(this)),_.p("web_player_rtr_ctrls")&&this.activeModules.push(new _.uS2(this))):(_.rJ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.J.disposeInternal=function(){_.F1.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.N1.Object.defineProperties(YXQ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var yKG={},Kv3=["learning-journey-engagement-panel","PAlearning_chat"];
yKG.YtdLearningJourneyWatchBehavior=[_.L.YtRendererBehavior,_.aO.YtPlayerListenerBehavior,_.TC.YtRendererstamperBehavior,_.rb.YtActionHandlerBehavior,_.zV.YtPageBehavior,_.IM.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 _.wo("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.p("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 _.wo("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 _.p("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.p("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 _.Wi("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Wi("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.p("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.p("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("web_watch_rounded_player_large")||_.p("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 _.p("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.p("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("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 _.p("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.p("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 _.p("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);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:_.Md(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Md(["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}}}},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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.p("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.p("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.p("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.eG3(function(){return _.ih(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.p("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
_.p("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.nT;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;_.p("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.p("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));_.p("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.WM(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.p("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.p("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.p("kevlar_watch_while_v2")&&!_.p("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.p("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.Lf(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.p("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.p("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var P=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var x;(x=this.watchController)==null||x.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.jI({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.CK("nw");this.loading=!1;_.VE(_.Gr,function(){P.initDclkstatus_();var I,O=((I=P.player)==null?void 0:I.getVideoData().cpn)||"";_.j5L(function(B,Y){_.MBv(B,Y,O)})})},
onPageLoadWithSameData_:function(){_.p("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.p("kevlar_watch_frame0_loading_state")){var P,x,I;W=(P=this.loadingData)==null?void 0:(x=P.endpoint)==null?void 0:(I=x.watchEndpoint)==null?void 0:I.videoId;var O;W&&(O="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.g(this.hostElement).querySelector("#player").style.backgroundImage=O?"url("+O+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.g(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var P,x;(x=(P=this.watchMetadata).updateSentimentBarWidth)==
null||x.call(P);var I,O;(O=(I=this.watchMetadata).resize)==null||O.call(I)}_.p("kevlar_watch_frame0_loading_state")&&(_.g(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var P=_.g(this.hostElement).querySelector(W);P?_.Fu(P,!1):_.ge(new _.mW("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var P=_.g(this.hostElement).querySelector(W);P?_.qV(P):_.ge(new _.mW("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var P=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Gr.addLowPriorityJob(function(){P.onWindowResized_(_.S9(!0))})},
updateTheaterModeState_:function(W){if(!_.p("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.wC9()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var W=this.theater;_.p("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.g(this.hostElement).querySelector("#player-full-bleed-container"):_.g(this.hostElement).querySelector("#player-container-inner");var P=this.getPlayerContainer(),x=_.p("kevlar_watch_while_v2")||_.p("web_watch_pip");P.parentElement!==W&&(x&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.ih(this).appendTo(W,P),W.appendChild(_.g(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.y(function(P){if(P.nextAddress==1)return _.S(P,_.FY().resolve(_.kc).deactivate(),2);W.updatePlayerLocation();_.Kl(P)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var P=this.getCinematicsLocationContainer();W.parentElement!==P&&P.appendChild(W);var x;(x=this.watchController)==null||x.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.g(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.g(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,P){var x=document.documentElement.hasAttribute("dark"),I=x&&_.p("web_cinematic_theater_mode"),O=x&&_.p("web_cinematic_fullscreen");x=!x&&this.cinematicLightTheme;return W&&I||P&&O||(P||W)&&x},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data);_.p("kevlar_watch_flexy_comments_manager")||this.initComments_();_.p("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.FY().resolve(_.wx).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.p("web_watch_start_chat_in_theater_mode")){var P,
x,I;if((P=this.data)==null?0:(x=P.contents)==null?0:(I=x.twoColumnWatchNextResults)==null?0:I.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var O,B;((O=this.data)==null?0:(B=O.contents)==null?0:B.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(W){var P;(P=this.watchController)==null||P.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(P=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),P&&!W||_.Xm(this,function(){_.CK("pbu")}));
this.setPlayerAds_();_.P7(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(W){_.Xe().dispatch(_.LK({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new YXQ(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.p("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var P=_.ih(this);_.p("kevlar_disable_prepare_player")||P.preparePlayer();_.p("kevlar_watch_flexy_playlist_manager")||_.FY().resolve(_.wx).setPlayer(P);this.updatePageMediaQueries();P={"--ytd-watch-flexy-scrollbar-width":_.EM()+
"px"};!_.Wi("kv_pl_mx_sz_ks")&&_.Wi("kevlar_watch_max_player_width")&&(P["--ytd-watch-flexy-max-player-width-wide-screen"]=_.VE4+"px");_.Wi("kevlar_watch_flexy_metadata_height")&&(P["--ytd-watch-flexy-space-below-player"]=_.tE3+"px");this.safeUpdateStyles(P);_.p("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new nFO(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.p("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.g(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.EM(),P=_.HE+W,x=P;this.fixedPanels&&(P+=_.mFM);var I=657+W;W=1327+W;_.g(this.hostElement).querySelector("#two-column-query").query="(min-width: "+P+"px)";_.g(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(I+"px), (min-height: 630px) and (min-width: ")+(P+"px) and (max-width: ")+(W+"px)");_.g(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");_.g(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+x+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.g(this.hostElement).querySelector("#miniplayer-bar").firstChild;return W&&W.active||this.theater||_.p("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.y7(NaN,NaN):_.XW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.XW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.TD(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.S9());_.p("browse_skeleton_removal_on_watch_killswitch")||_.wo("IS_SHELL_LOAD")&&_.M72();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var P=_.ih(this);P.addEventListener("yt-player-updated",_.WM(this,this.onPlayerUpdated_));P.getPlayerPromise().then(function(x){W.playerApiReady_(x)});
_.p("kevlar_watch_flexy_playlist_manager")||(P=_.FY().resolve(_.wx),_.p("kevlar_watch_observe_playlist_navigations_killswitch")&&P.addEventListener("yt-navigate",_.WM(this,this.onYtNavigate_)),P.setPlaylistComponent(_.g(this.hostElement).querySelector("#playlist")),P.addEventListener("yt-playlist-data-updated",_.WM(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Gr.addLowPriorityJob(function(){_.Lf(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.ih(this).removeEventListener("yt-player-updated",_.WM(this,this.onPlayerUpdated_));if(!_.p("kevlar_watch_flexy_playlist_manager")){var W=_.FY().resolve(_.wx);_.p("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.WM(this,this.onYtNavigate_));W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.WM(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.p("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Lf(this.hostElement,"yt-autonav-pause-player",!1);W=_.iO();_.p("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Ri(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,P){P.hasComments?P.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):P.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,P){this.player&&(P?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.A5("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.g(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.g(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.p("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.p("kevlar_unified_player")||_.p("kevlar_player_new_bootstrap_adoption"))&&_.Lo()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,P){P=P===void 0?!0:P;_.iO()&&_.p("external_fullscreen")&&_.Ri(document.documentElement);this.theaterRequested_=W;P&&_.uA("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.p("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.W7(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Lf(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(W){_.Dw(W,typeof this.player),this.player&&_.Dw(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.W7(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,P){return this.loading?P:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.n(W);for(var P=W.next();!P.done;P=W.next())P=P.value,P.youThereRenderer&&_.bNm(this.youThereManager_,P.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var P=this.youThereManager_;_.LD()<W.lowEngagementThresholdMs||_.f0Q(P,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.W7(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,P,x){return!!W&&!this.isVideoPlayable_(W,x)&&!P},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,P){if(!W)return!1;var x=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",I=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var O;P=P==null?void 0:(O=P.playerOverlayRenderer)==null?void 0:O.gatedActionsOverlayRenderer;return!!x||!!I||!!W||!!P},
hasWatchNextResponseErrorRenderer:function(W){var P=this.getPageContents(W),x,I,O,B,Y;return!(W==null?0:(x=W.contents)==null?0:(I=x.twoColumnWatchNextResults)==null?0:I.secondaryResults)&&!!((O=P[0])==null?0:(B=O.itemSectionRenderer)==null?0:(Y=B.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,P,x){var I=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",P),O=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];O=_.p("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&O.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var B=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);B==void 0&&(B=!0);!x||this.isVideoPlayable_(W,this.getPlayerOverlays_(P))||
I||O||!B||_.FY().resolve(_.wx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ESf()},
onPlayerFeedbackStartRequest_:function(W){_.W7(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.W7(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,P,x,I,O,B,Y,K,Z=((W=this.data)==null?NaN:(P=W.contents)==null?NaN:(x=P.twoColumnWatchNextResults)==null?NaN:(I=x.secondaryResults)==null?NaN:(O=I.secondaryResults)==null?NaN:(B=O.offerModule)==null?NaN:(Y=B.tvfilmOfferModuleRenderer)==null?NaN:(K=Y.actionButtons)==null?NaN:K.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(Z>=0?Z:0)+".buttonRenderer."];P=_.n(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(x=P.next();!x.done;x=P.next())for(x=x.value,I=_.n(W),O=I.next();!O.done;O=I.next())if(O="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+x+O.value,O=this.get(O+"navigationEndpoint",this.data)||this.get(O+"serviceEndpoint",this.data)||this.get(O+"command",this.data)){_.O2(O,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.Lf(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Lf(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.Xe().dispatch(_.gwz(W))},
onPlayerSubscribe_:function(W){_.W7(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.W7(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.W7(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(W){return!_.p("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.p("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var W,P,x,I;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(P=W.contents)==null?void 0:(x=P.twoColumnWatchNextResults)==null?void 0:(I=x.secondaryResults)==null?void 0:I.secondaryResults}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,P=(W=this.data)==null?void 0:W.engagementPanels;if(P==null?0:P.length){W=null;P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=void 0;if(((I=x.engagementPanelSectionListRenderer)==null?void 0:I.targetId)==="engagement-panel-structured-description"){W=x;break}}var O,B,Y;W=(O=W)==null?void 0:(B=O.engagementPanelSectionListRenderer)==null?void 0:(Y=B.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(W==null?0:W.items){O=
[];B=_.n(W.items);for(Y=B.next();!Y.done;Y=B.next()){Y=Y.value;if(!_.p("sd_horizontal_list_show_nav_killswitch")){var K=I=x=P=W=void 0,Z=void 0,d=(W=Y.horizontalCardListRenderer)==null?void 0:(P=W.header)==null?void 0:(x=P.richListHeaderRenderer)==null?void 0:(I=x.navigationButton)==null?void 0:(K=I.buttonRenderer)==null?void 0:(Z=K.command)==null?void 0:Z.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(v){return!_.Q(v,_.hPf)}))}Y.expandableVideoDescriptionBodyRenderer||
Y.videoDescriptionHeaderRenderer||O.push(Y)}return{items:O}}}},
constructWarning_:function(W){return{text:_.bx(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.Lf(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.p("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var P=this.getScrollTop()>0;this.gestures_&&(P?this.gestures_.detach():this.gestures_.attach());P!==this.showFullerscreenEdu_&&_.p("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=P,_.ih(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Lf(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.Gr.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.VE(_.Gr,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.p("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.CK("cmi");_.Gr.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.n(W);for(var P=W.next();!P.done;P=W.next())if(P=P.value,this.get("itemSectionRenderer.sectionIdentifier",P)==="comment-item-section"){this.comments=P.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Lf(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.p("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.p("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.CK("cmc")},
doRemoveComments_:function(){this.comments={};_.p("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Gr.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Gr.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,P){var x=_.Q(P.endpoint,_.U_);x&&(!(P=this.get("data.currentVideoEndpoint.watchEndpoint"))||x.videoId!==P.videoId||x.playlistId&&x.playlistId!==P.playlistId||x.index!==void 0&&x.index!==P.index||typeof x.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.ih(this).getPlayerPromise().then(function(I){var O=x.startTimeSeconds;I.seekTo(O);I.wakeUpControls();O<I.getDuration()&&I.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.oS6();"t"in W&&(W=_.GgQ(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var P,x;(W=_.kz(W==null?void 0:(P=W[0])==null?void 0:(x=P.videoPrimaryInfoRenderer)==null?void 0:x.title))&&_.Lf(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.Lf(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,P,x){if(this.active&&this.player){var I=this.player.getVideoData();if(I.video_id===x&&(x=I.list,_.p("polymer_enable_mdx_queue")&&x&&x.startsWith("RQ")&&(x=void 0),I.video_id!==W||x!=P)){var O;_.p("kevlar_player_watch_endpoint_navigation")?O=_.U6o(_.Q5M(W,P)):O=this.buildWatchEndpoint_(W,P);_.Lf(this.hostElement,"yt-navigate",{endpoint:O,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,P,x){return _.iB(W,P,x)},
initDclkstatus_:function(){_.zGy()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var P=W.querySelector("#primary-info"),x=W.querySelector("#secondary-info"),I=W.querySelector("#related");P&&_.g(this.hostElement).querySelector("#info-skeleton").appendChild(P);x&&_.g(this.hostElement).querySelector("#meta-skeleton").appendChild(x);I&&(_.g(this.hostElement).querySelector("#related-skeleton").appendChild(I),this.watchNextSkeletonEl_=I);_.oE(W)}},
handlePlayerUpdated_:function(){_.ih(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,P){if(this.watchNextSkeletonEl_&&typeof P!=="undefined"){var x=this.watchNextSkeletonEl_.children,I=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,x.length);P||(I=0,W=x.length);for(P=I;P<W;P++)x[P].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.p("external_fullscreen")||_.W7(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var P=_.ih(this);P.getPlayerPromise().then(function(x){x.setFauxFullscreen(!!_.iO())});
this.updateFullBleedElementLocations();W&&(P.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,P){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!P},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,P){return P&&!!W},
computeResponseHasComments:function(W){var P,x,I,O,B;return!!(W==null?0:(P=W.contents)==null?0:(x=P.twoColumnWatchNextResults)==null?0:(I=x.results)==null?0:(O=I.results)==null?0:(B=O.contents)==null?0:B.some(function(Y){var K;return(Y==null?void 0:(K=Y.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,P){this.responseHasComments=this.computeResponseHasComments(this.data);return!!W&&!!Object.keys(W).length&&!P},
identity:_.UU,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.p("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.p("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var P=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.ih(this).getPlayerPromise().then(function(x){var I=x.getPlayerState();I!==5&&I!==0&&(x=1/x.getVideoAspectRatio(),P.videoHeightToWidthRatio_!==x&&(P.videoHeightToWidthRatio_=x))})},
schedulePlayerSizeUpdate_:function(W){var P=this,x=_.p("kevlar_watch_while_v2")||_.p("web_watch_pip"),I=function(){if(P.watchMetadata){var O,B;(B=(O=P.watchMetadata).resize)==null||B.call(O)}_.ih(P).getPlayerPromise().then(function(Y){if(_.p("kevlar_set_internal_player_size")){if(!x||!P.isMiniplayerActive()){var K=P.calculateCurrentPlayerSize_();Y.setInternalSize(K.width,K.height)}}else Y.setSize(NaN,NaN);_.p("kevlar_watch_while")&&P.updateWatchWhileScrollThreshold_()})};
W?I():_.GS(_.Gr,I)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.Q(W,_.HNy).survey)},
onDownloadedVideoDeleted:function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1){if(!P.active||(x=P.playerData)==null||!x.offlineState||P.videoId!==W)return O.return();(I=P.player)==null||I.stopVideo();_.ug().navigatingAwayFromWatchDeletedVideo=!0;_.O2(_.GGC,P.hostElement);return _.S(O,_.ug().navigationFinishPromise,2)}_.ug().navigatingAwayFromWatchDeletedVideo=!1;_.Kl(O)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.HX(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.g(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var P=this.windowSize_.height>=624,x=this.active?this.getScrollTop():0;!W.active&&P&&x>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!P||x<this.watchWhileScrollThreshold_&&!_.iO())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(W,P){if(W!==!0||P!==void 0){W=!_.p("live_chat_over_engagement_panels");P=_.g(this.hostElement).querySelector("#chat-container");var x=_.g(this.hostElement).querySelector("#plj-sidebar"),I=_.g(this.hostElement).querySelector("#panels"),O=_.g(this.hostElement).querySelector("#plj-panels"),B=_.g(this.hostElement).querySelector("#plj-playlist"),Y=_.g(this.hostElement).querySelector("#alerts"),K=_.g(this.hostElement).querySelector("#playlist"),Z=_.g(this.hostElement).querySelector("#related"),
d=_.g(this.hostElement).querySelector("#donation-shelf"),v=_.g(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.g(this.hostElement).querySelector("#secondary-inner"),Y.appendChild(x),x.appendChild(B),B.appendChild(K),x.appendChild(O),W&&Y.appendChild(I),_.p("web_watch_theater_chat")||Y.appendChild(P),W||Y.appendChild(I),Y.appendChild(d),Y.appendChild(Z)):(W&&_.D9(I,Y),_.D9(K,Y),_.p("web_watch_theater_chat")||_.D9(P,Y),W||_.D9(I,Y),_.D9(d,Y),v&&(O&&_.D9(O,v),_.D9(Z,v)));_.p("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.p("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.p("web_watch_theater_chat")){var W=_.g(this.hostElement).querySelector("#chat-container"),P=this.theater&&!this.fullscreen||_.p("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&P?_.p("web_watch_theater_chat_beside_player")?(P=_.g(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==P&&P.append(W),this.panelsBesidePlayer=!0):_.p("web_watch_theater_fixed_chat")&&
(P=_.g(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==P&&P.append(W),this.fixedPanels=!0):(_.p("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.p("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),P=_.g(this.hostElement).querySelector("#playlist"),W&&P?_.MQ(W,P):_.ge(new _.mW("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!P})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,P){return _.p("sw_metadata_vis_toggle_ks")?!0:!!W||!!P},
computeForceDarkPanelTheme:function(W){return _.p("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.qa(this.hostElement,W)}catch(P){_.ge(P)}},
videoHeightToWidthRatioChanged_:function(W,P){P&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.p("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.ih(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.ih(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.NA4(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var P=_.ye(W)||0;_.Y9(W,P+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.ye("yt-fullerscreen-edu-button-click-count")||0,P=_.ye("yt-fullerscreen-edu-button-shown-count")||0,x=_.Wi("external_fullscreen_button_shown_threshold"),I=W>=_.Wi("external_fullscreen_button_click_threshold")||P>=x;_.ih(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonSubtleModeState(I)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,P){return P},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.FY().resolve(_.wx).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.panelMaxHeightUpdateJob_&&_.Gr.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Gr.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var P;!W.isTwoColumns_||W.theater||W.fullscreen?P=460:P=W.calculateNormalPlayerSize_().height;var x=P+"px";_.p("live_chat_taller_height")&&!W.theater&&(x="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.p("live_chat_medium_height")&&
!W.theater&&(x="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.p("live_chat_scaled_height")&&!W.theater&&(x="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":P+"px","--ytd-watch-flexy-chat-max-height":x,"--ytd-watch-flexy-structured-description-max-height":P+"px","--ytd-watch-flexy-comments-panel-max-height":P+"px","--ytd-comments-engagement-panel-content-height":P+"px"})})},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.OL(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var P=_.g(this.hostElement).querySelector("#engagement-panel-scrim");W?P.addEventListener("tap",_.WM(this,this.onEngagementPanelScrimClick_)):P.removeEventListener("tap",_.WM(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var P=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var x=this.getPageScrollingElement(),I=this.getScrollTop(),O=I+x.clientHeight-56;if(P<I+56)P-=56;else if(W>O)P=W-x.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,P),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.p("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.K5().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,P,x){this.active&&this.trackEngagementPanelVisibility&&!_.wEQ.includes(x)&&(P==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(x),P!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&P!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(x),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,P){return W||P},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,P){return!W&&P},
computeWatchWhilePanelsActive:function(W,P){return W||P},
computeNoBorderOnChat:function(W){return _.p("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,P){return W&&!P},
computePanelExpanded:function(W,P,x){return W||P||x},
onChangeMarkersVisibility:function(W){_.ih(this).getPlayerPromise().then(function(P){var x;(x=P.changeMarkerVisibility)==null||x.call(P,_.Q(W,_.fV).isVisible||!1,_.Q(W,_.fV).entityKeys||[],_.Q(W,_.fV).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.Xe().dispatch(_.$4L(W.detail))},
provideRenderingData:function(W,P){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=P;break;case "PRIMARY_INFO":_.p("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=P);this.videoPrimaryInfoRendererValue=P==null?void 0:P.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.p("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=P);this.videoSecondaryInfoRendererValue=P==null?void 0:P.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
P;break;case "CLARIFICATION":this.clarifyBoxValue=P;break;case "LIVE_CHAT":this.conversationBar=P;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=P;break;case "PLAYLIST":this.externalPlaylistData_=P!=null?P:{};break;case "MERCH_SHELF":this.merchShelfValue=P==null?void 0:P.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=P;break;case "OFFER_MODULE":this.offerModule=P;break;case "LIMITED_STATE":this.limitedStateValue=P;break;case "DONATION_SHELF":this.donation=P;break;
case "ALERTS":this.alertsValue=P;break;case "COMMENTS":this.comments=P;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=P;break;case "ENGAGEMENT_PANELS":this.engagementPanels=P;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=P;break;case "RICH_GRID_RENDERER":this.richGridRendererData=P;break;case "EXPANDABLE_METADATA":this.expandableMetadata=P;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=P}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.FY().resolve(_.kc).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(W){return Kv3.map(function(P){return W.find(function(x){var I;return(x==null?void 0:(I=x.engagementPanelSectionListRenderer)==null?void 0:I.targetId)===P})}).filter(function(P){return P!==void 0})},
getNonLearningJourneyEngagementPanels:function(W){return W.filter(function(P){var x;return!Kv3.includes((P==null?void 0:(x=P.engagementPanelSectionListRenderer)==null?void 0:x.targetId)||"")})}}];var Zu2;var LV=function(){var W=_.b.apply(this,arguments)||this;W.flexy=!0;W.learningJourney=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.p("enable_player_resize_transition");W.smallerChatMinHeight=_.p("live_chat_smaller_min_height");W.cinematicTheaterMode=_.p("web_cinematic_theater_mode");W.transparentTheaterMode=_.p("web_transparent_theater_mode");W.cinematicFullscreen=_.p("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.p("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.p("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.theaterLargerPlayer=_.p("web_watch_theater_larger_player");W.defaultCollapsePlaylist=_.p("web_watch_default_collapse_playlist");return W};
_.A(LV,_.b);_.J=LV.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var W=this,P=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",P);this.secondary.addEventListener("scroll",P)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(W){_.p("web_watch_update_narrow_width_killswitch")||_.Xe().dispatch(_.E06(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.J.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.J.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20415_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20415_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.N1.Object.defineProperties(LV.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var P=0;P<this.data.pageVisualEffects.length;P++)if(W=_.Q(this.data.pageVisualEffects[P],_.jT))return P=void 0,(P=W.config)==null?void 0:P.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.learningJourneyEngagementPanels)==null?void 0:W.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){window.history.back()}}}}});
_.N1.Object.defineProperties(LV,{template:{configurable:!0,enumerable:!0,get:function(){if(Zu2===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);Zu2=W}W=Zu2;return W}}});
LV.prototype.updateMiniplayerIsActiveValue=LV.prototype.updateMiniplayerIsActiveValue;LV.prototype.updateScrollTopValue=LV.prototype.updateScrollTopValue;LV.prototype.updateFullscreenValue=LV.prototype.updateFullscreenValue;LV.prototype.updateTheaterValue=LV.prototype.updateTheaterValue;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],LV.prototype,"ytComponentBehavior",void 0);
_.f([_.h(yKG.YtdLearningJourneyWatchBehavior),_.l("design:type",Object)],LV.prototype,"ytdWatchBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],LV.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],LV.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],LV.prototype,"playerData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"flexy",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"learningJourney",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"roundedInfoPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"viewTransitionEnabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"smallerChatMinHeight",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"cinematicTheaterMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"transparentTheaterMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"cinematicFullscreen",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"useLargerMaxPlayerValue",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"cinematicFullscreenV2",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"isDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],LV.prototype,"theaterLargerPlayer",void 0);_.f([_.c(),_.l("design:type",Object)],LV.prototype,"defaultCollapsePlaylist",void 0);_.f([_.c({selector:_.z6}),_.l("design:type",Object)],LV.prototype,"theaterValue",void 0);
_.f([_.c({selector:_.CN}),_.l("design:type",Object)],LV.prototype,"fullscreenValue",void 0);_.f([_.c({selector:_.Ar}),_.l("design:type",Object)],LV.prototype,"scrollTopValue",void 0);_.f([_.c({selector:_.Ab}),_.l("design:type",Object)],LV.prototype,"miniplayerIsActiveValue",void 0);_.f([_.BM("#ytd-plj-player"),_.l("design:type",HTMLElement)],LV.prototype,"ytdPlayer",void 0);_.f([_.BM("#playlist"),_.l("design:type",HTMLElement)],LV.prototype,"JSC$20415_ytdPlaylistPanelRenderer",void 0);
_.f([_.R2("ytd-comments"),_.l("design:type",HTMLElement)],LV.prototype,"ytdComments",void 0);_.f([_.BM("#primary"),_.l("design:type",HTMLElement)],LV.prototype,"primary",void 0);_.f([_.BM("#secondary"),_.l("design:type",HTMLElement)],LV.prototype,"secondary",void 0);_.f([_.BM("#player-container"),_.l("design:type",HTMLElement)],LV.prototype,"playerContainer",void 0);_.f([_.BM("#cinematics"),_.l("design:type",HTMLElement)],LV.prototype,"JSC$20415_cinematics",void 0);
_.f([_.OZ("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LV.prototype,"updateTheaterValue",null);_.f([_.OZ("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LV.prototype,"updateFullscreenValue",null);_.f([_.OZ("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LV.prototype,"updateScrollTopValue",null);
_.f([_.OZ("miniplayerIsActiveValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LV.prototype,"updateMiniplayerIsActiveValue",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],LV.prototype,"cinematicLightTheme",null);_.f([_.c({reflectToAttribute:!0}),_.H("learningJourneyEngagementPanels"),_.l("design:type",Object),_.l("design:paramtypes",[])],LV.prototype,"hasLearningJourneyPanels",null);
LV=_.f([_.U({is:"ytd-watch-learning-journey"})],LV);_.jf.registerService(_.YDd,LV);
_.Az();
}catch(e){_._DumpException(e)}
try{
_.CU("Tm0L3c");
var LNG;var WvM;var PMf=function(){return _.b.apply(this,arguments)||this};
_.A(PMf,_.b);PMf=_.f([_.U({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],PMf);
_.X(PMf,"ytd-ghost-comments-renderer",function(){if(WvM===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);WvM=W}W=WvM;return W},{mode:1});var xuL;var I_v=function(){return _.b.apply(this,arguments)||this};
_.A(I_v,_.b);I_v=_.f([_.U({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],I_v);
_.X(I_v,"ytd-ghost-watch-metadata-renderer",function(){if(xuL===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);xuL=W}W=xuL;return W},{mode:1});var qJ=function(){var W=_.b.apply(this,arguments)||this;W.ghostGridRenderer={rows:6};W.roundedInfoPanel=!0;W.hideOfferModules=!0;W.smallerChatMinHeight=_.p("live_chat_smaller_min_height");W.cinematicTheaterMode=_.p("web_cinematic_theater_mode");W.transparentTheaterMode=_.p("web_transparent_theater_mode");W.darkerPanels=_.p("web_watch_darker_panels");W.cinematicFullscreen=_.p("web_cinematic_fullscreen");W.cinematicFullscreenV2=_.p("web_cinematic_fullscreen_v2");W.isDarkTheme=document.documentElement.hasAttribute("dark");
return W};
_.A(qJ,_.b);_.J=qJ.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var W=this,P=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",P);this.secondary.addEventListener("scroll",P)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(W){this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.J.updateShownItemsFromBinding=function(W){_.p("swatcheroo_direct_use_rich_grid")||(W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value)};
_.J.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20403_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20403_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.N1.Object.defineProperties(qJ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var P=0;P<this.data.pageVisualEffects.length;P++)if(W=_.Q(this.data.pageVisualEffects[P],_.jT))return P=void 0,(P=W.config)==null?void 0:P.enableInLightTheme;return!1}}});
qJ.prototype.updateMiniplayerIsActiveValue=qJ.prototype.updateMiniplayerIsActiveValue;qJ.prototype.updateScrollTopValue=qJ.prototype.updateScrollTopValue;qJ.prototype.updateFullscreenValue=qJ.prototype.updateFullscreenValue;qJ.prototype.updateTheaterValue=qJ.prototype.updateTheaterValue;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],qJ.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.FN3.YtdWatchBehavior),_.l("design:type",Object)],qJ.prototype,"ytdWatchBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],qJ.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qJ.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],qJ.prototype,"ghostGridRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],qJ.prototype,"playerData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"roundedInfoPanel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"hideOfferModules",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"smallerChatMinHeight",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"cinematicTheaterMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"transparentTheaterMode",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"darkerPanels",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"cinematicFullscreen",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"cinematicFullscreenV2",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qJ.prototype,"isDarkTheme",void 0);_.f([_.c({selector:_.z6}),_.l("design:type",Object)],qJ.prototype,"theaterValue",void 0);
_.f([_.c({selector:_.CN}),_.l("design:type",Object)],qJ.prototype,"fullscreenValue",void 0);_.f([_.c({selector:_.Ar}),_.l("design:type",Object)],qJ.prototype,"scrollTopValue",void 0);_.f([_.c({selector:_.Ab}),_.l("design:type",Object)],qJ.prototype,"miniplayerIsActiveValue",void 0);_.f([_.BM("#ytd-player"),_.l("design:type",HTMLElement)],qJ.prototype,"ytdPlayer",void 0);_.f([_.BM("#playlist"),_.l("design:type",HTMLElement)],qJ.prototype,"JSC$20403_ytdPlaylistPanelRenderer",void 0);
_.f([_.BM("#ytd-comments"),_.l("design:type",HTMLElement)],qJ.prototype,"ytdComments",void 0);_.f([_.BM("#primary"),_.l("design:type",HTMLElement)],qJ.prototype,"primary",void 0);_.f([_.BM("#secondary"),_.l("design:type",HTMLElement)],qJ.prototype,"secondary",void 0);_.f([_.BM("#player-container"),_.l("design:type",HTMLElement)],qJ.prototype,"playerContainer",void 0);_.f([_.BM("#cinematics"),_.l("design:type",HTMLElement)],qJ.prototype,"JSC$20403_cinematics",void 0);
_.f([_.OZ("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qJ.prototype,"updateTheaterValue",null);_.f([_.OZ("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qJ.prototype,"updateFullscreenValue",null);_.f([_.OZ("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qJ.prototype,"updateScrollTopValue",null);
_.f([_.OZ("miniplayerIsActiveValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qJ.prototype,"updateMiniplayerIsActiveValue",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],qJ.prototype,"cinematicLightTheme",null);
_.X(qJ,"ytd-watch-grid",function(){if(LNG===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);LNG=W}W=LNG;return W},{mode:2});_.jf.registerService(_.nro,qJ);
_.Az();
}catch(e){_._DumpException(e)}
try{
_.CU("CF909");
var ql6;var FW=function(){var W=_.b.apply(this,arguments)||this;W.flexy=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.p("enable_player_resize_transition");W.smallerChatMinHeight=_.p("live_chat_smaller_min_height");W.cinematicTheaterMode=_.p("web_cinematic_theater_mode");W.transparentTheaterMode=_.p("web_transparent_theater_mode");W.cinematicFullscreen=_.p("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.p("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.p("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.defaultCollapsePlaylist=_.p("web_watch_default_collapse_playlist");W.retroModeReduxValue=!1;return W};
_.A(FW,_.b);_.J=FW.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateRetroModeReduxValue=function(){_.p("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.J.ready=function(){var W=this,P=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",P);this.secondary.addEventListener("scroll",P)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(W){_.p("web_watch_update_narrow_width_killswitch")||_.Xe().dispatch(_.E06(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.J.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.J.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20398_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20398_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.N1.Object.defineProperties(FW.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var P=0;P<this.data.pageVisualEffects.length;P++)if(W=_.Q(this.data.pageVisualEffects[P],_.jT))return P=void 0,(P=W.config)==null?void 0:P.enableInLightTheme;return!1}}});
_.N1.Object.defineProperties(FW,{template:{configurable:!0,enumerable:!0,get:function(){if(ql6===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);ql6=W}W=ql6;return W}}});
FW.prototype.updateRetroModeReduxValue=FW.prototype.updateRetroModeReduxValue;FW.prototype.updateScrollTopValue=FW.prototype.updateScrollTopValue;FW.prototype.updateFullscreenValue=FW.prototype.updateFullscreenValue;FW.prototype.updateTheaterValue=FW.prototype.updateTheaterValue;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],FW.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.FN3.YtdWatchBehavior),_.l("design:type",Object)],FW.prototype,"ytdWatchBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],FW.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],FW.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],FW.prototype,"playerData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"flexy",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"roundedInfoPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"viewTransitionEnabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"smallerChatMinHeight",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"cinematicTheaterMode",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"transparentTheaterMode",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"cinematicFullscreen",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"useLargerMaxPlayerValue",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"cinematicFullscreenV2",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FW.prototype,"isDarkTheme",void 0);_.f([_.c(),_.l("design:type",Object)],FW.prototype,"defaultCollapsePlaylist",void 0);_.f([_.c({selector:_.z6}),_.l("design:type",Object)],FW.prototype,"theaterValue",void 0);_.f([_.c({selector:_.CN}),_.l("design:type",Object)],FW.prototype,"fullscreenValue",void 0);_.f([_.c({selector:_.Ar}),_.l("design:type",Object)],FW.prototype,"scrollTopValue",void 0);
_.f([_.c({selector:_.Ab}),_.l("design:type",Object)],FW.prototype,"miniplayerIsActive",void 0);_.f([_.c({selector:function(W){return W.watch.isWatchRetroMode}}),
_.l("design:type",Object)],FW.prototype,"retroModeReduxValue",void 0);_.f([_.R2("ytd-player"),_.l("design:type",HTMLElement)],FW.prototype,"ytdPlayer",void 0);_.f([_.BM("#playlist"),_.l("design:type",HTMLElement)],FW.prototype,"JSC$20398_ytdPlaylistPanelRenderer",void 0);_.f([_.R2("ytd-comments"),_.l("design:type",HTMLElement)],FW.prototype,"ytdComments",void 0);_.f([_.BM("#primary"),_.l("design:type",HTMLElement)],FW.prototype,"primary",void 0);
_.f([_.BM("#secondary"),_.l("design:type",HTMLElement)],FW.prototype,"secondary",void 0);_.f([_.BM("#player-container"),_.l("design:type",HTMLElement)],FW.prototype,"playerContainer",void 0);_.f([_.BM("#cinematics"),_.l("design:type",HTMLElement)],FW.prototype,"JSC$20398_cinematics",void 0);_.f([_.OZ("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FW.prototype,"updateTheaterValue",null);
_.f([_.OZ("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FW.prototype,"updateFullscreenValue",null);_.f([_.OZ("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FW.prototype,"updateScrollTopValue",null);_.f([_.OZ("retroModeReduxValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FW.prototype,"updateRetroModeReduxValue",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],FW.prototype,"cinematicLightTheme",null);FW=_.f([_.U({is:"ytd-watch-flexy"})],FW);_.jf.registerService(_.BIG,FW);
_.Az();
}catch(e){_._DumpException(e)}
try{
_.CU("nmfa2d");
var ZNm;var kb=function(){var W=_.b.apply(this,arguments)||this;W.hidden=!1;W.errorScreen=null;W.playlistData={};return W};
_.A(kb,_.b);_.J=kb.prototype;_.J.getPlayer=function(){return this.ytdPlayer};
_.J.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:_.Md(["aa","eocs"])}}};
_.J.onActiveChanged=function(){_.Xe().dispatch(_.ONm(this.ytPageBehavior.active))};
_.J.playerDataChanged=function(){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData)};
_.J.dataChanged=function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data)};
_.J.sizeChanged=function(){var W,P;(P=(W=this.metadata).resize)==null||P.call(W)};
_.J.attached=function(){this.watchController=new _.aT(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.J.detached=function(){_.TD(this.watchController);this.watchController=void 0};
_.J.getPlayerContainer=function(){return this.playerContainer};
_.J.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20350_playlistPanel}};
_.J.provideRenderingData=function(W,P){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=P;break;case "ERROR_SCREEN":this.errorScreen=P!=null?P:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=P;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=P;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=P;break;case "RICH_METADATA":this.richMetadataRowContainer=P;break;case "CLARIFICATION":this.clarificationData=P;break;case "PLAYLIST":this.playlistData=
P!=null?P:{};break;case "MERCH_SHELF":this.merchShelf=P;break;case "TICKET_SHELF":this.ticketShelf=P;break;case "LIMITED_STATE":this.limitedState=P;break;case "DONATION_SHELF":this.donationShelf=P;break;case "ALERTS":this.alerts=P}};
_.N1.Object.defineProperties(kb.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return!this.hidden&&!!((W=this.data)==null?0:(P=W.contents)==null?0:(x=P.twoColumnWatchNextResults)==null?0:x.conversationBar)}}});
kb.prototype.sizeChanged=kb.prototype.sizeChanged;kb.prototype.dataChanged=kb.prototype.dataChanged;kb.prototype.playerDataChanged=kb.prototype.playerDataChanged;kb.prototype.onActiveChanged=kb.prototype.onActiveChanged;_.f([_.h(_.zV.YtPageBehavior),_.l("design:type",Object)],kb.prototype,"ytPageBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],kb.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],kb.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"playerData",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],kb.prototype,"hidden",void 0);_.f([_.BM("#ytd-player"),_.l("design:type",HTMLElement)],kb.prototype,"ytdPlayer",void 0);_.f([_.BM("#player-container"),_.l("design:type",HTMLElement)],kb.prototype,"playerContainer",void 0);_.f([_.BM("#metadata"),_.l("design:type",Object)],kb.prototype,"metadata",void 0);_.f([_.BM("#playlist"),_.l("design:type",HTMLElement)],kb.prototype,"JSC$20350_playlistPanel",void 0);
_.f([_.c({selector:_.c4m,reflectToAttribute:!0}),_.l("design:type",Object)],kb.prototype,"fixie",void 0);_.f([_.c({selector:_.ebM,reflectToAttribute:!0}),_.l("design:type",Object)],kb.prototype,"singleColumn",void 0);_.f([_.c({selector:function(W){return _.z6(W)&&!_.CN(W)},
reflectToAttribute:!0}),_.l("design:type",Object)],kb.prototype,"theater",void 0);_.f([_.c({selector:_.CN,reflectToAttribute:!0}),_.l("design:type",Object)],kb.prototype,"fullscreen",void 0);_.f([_.c({selector:_.I0m}),_.l("design:type",Object)],kb.prototype,"windowSize",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"singleColumnContents",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"errorScreen",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"playlistData",void 0);
_.f([_.c(),_.l("design:type",Object)],kb.prototype,"videoPrimaryInfoRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"videoSecondaryInfoRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"richMetadataRowContainer",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"clarificationData",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"commentsEntryPointHeaderRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"ticketShelf",void 0);
_.f([_.c(),_.l("design:type",Object)],kb.prototype,"merchShelf",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"donationShelf",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"limitedState",void 0);_.f([_.c(),_.l("design:type",Object)],kb.prototype,"alerts",void 0);_.f([_.H("playlistData"),_.l("design:type",Object),_.l("design:paramtypes",[])],kb.prototype,"hasPlaylistData",null);
_.f([_.H("data","hidden"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],kb.prototype,"hasChat",null);_.f([_.OZ("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kb.prototype,"onActiveChanged",null);_.f([_.OZ("playerData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kb.prototype,"playerDataChanged",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kb.prototype,"dataChanged",null);_.f([_.OZ("windowSize","singleColumn"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kb.prototype,"sizeChanged",null);
_.X(kb,"ytd-watch-fixie",function(){if(ZNm===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);ZNm=W}W=ZNm;return W},{mode:1});_.jf.registerService(_.JBm,kb);
_.Az();
}catch(e){_._DumpException(e)}
try{
_.CU("xwEKAe");
var cj3=function(W){var P=_.SI();if(P.getFlag(202))P=P.getFlag(201);else{var x;P=(W==null?void 0:(x=W.config)==null?void 0:x.settingOnByDefault)!==void 0?W.config.settingOnByDefault:!_.p("web_shorts_cinematics_disabled_by_default")}return P},aJv=function(W){var P=_.SI();
_.uB(0,201,W);_.uB(0,202,!0);P.save()},bH9=function(W){return(W=_.sAA(W))?_.msd(W):0},kz9=function(W){return W.shorts.isSmallScreenSqueezeback},Uq9=function(W){return W.shorts.isPlaybackStarted},X2M=function(W,P,x,I){W=P-W;
x=I-x;return Math.sqrt(W*W+x*x)},fJm=function(W,P){W&&_.FY().resolve(_.qR).resolveCommand(W,{forceClickLogging:!0,
form:{element:P}})},NP4=function(W){W.unsubscribeFromStore=_.sx(W.storeWithShorts,_.hML,function(P){W.initOrDisposeActiveModules(P);
!P&&W.storeWithShorts.getState().shorts.isFullscreen&&(_.Ri(document.documentElement),W.storeWithShorts.dispatch(_.cYL(!1)))});
W.initOrDisposeActiveModules(_.hML(W.storeWithShorts.getState()))},lJ4=function(W){var P=_.FY().resolve(_.Pv);
P.rootElement=W;NP4(P)},TPm=function(){return _.FY().resolve(_.Pv).dismissedIndices},rjf=function(W){return _.LK({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:W}})},iH9=function(W){return _.LK({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:W}})},Jr=function(W){return _.LK({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:W}})},BE=function(W,P){if(W instanceof BE)this.array_=W.array_;
else{var x;if(x=_.xi(W))a:{for(var I=x=0;I<W.length;I++){if(!_.xi(W[I])||x>0&&W[I].length!=x){x=!1;break a}for(var O=0;O<W[I].length;O++)if(typeof W[I][O]!=="number"){x=!1;break a}x==0&&(x=W[I].length)}x=x!=0}if(x)this.array_=_.Lm(W);else if(W instanceof _.y7)this.array_=R1y(W.height,W.width);else if(typeof W==="number"&&typeof P==="number"&&W>0&&P>0)this.array_=R1y(W,P);else throw Error("Yl");}this.size_=new _.y7(this.array_[0].length,this.array_.length)},F2y=function(W,P,x){for(var I=0;I<W.getSize().height;I++)for(var O=
0;O<W.getSize().width;O++)P.call(x,W.array_[I][O],I,O,W)},qQf=function(W,P){var x=new BE(W.getSize());
F2y(W,function(I,O,B){x.array_[O][B]=P.call(void 0,I,O,B,W)});
return x},R1y=function(W,P){for(var x=[],I=0;I<W;I++){x[I]=[];
for(var O=0;O<P;O++)x[I][O]=0}return x};
BE.prototype.add=function(W){if(!_.K2m(this.size_,W.getSize()))throw Error("Zl");return qQf(this,function(P,x,I){return P+W.array_[x][I]})};
BE.prototype.equals=function(W,P){if(this.size_.width!=W.size_.width||this.size_.height!=W.size_.height)return!1;P=P||0;for(var x=0;x<this.size_.height;x++)for(var I=0;I<this.size_.width;I++)if(!_.yjf(this.array_[x][I],W.array_[x][I],P))return!1;return!0};
BE.prototype.getSize=function(){return this.size_};
var nN=function(W,P,x){return P>=0&&P<W.size_.height&&x>=0&&x<W.size_.width?W.array_[P][x]:null};
BE.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var L2Q=function(W,P,x,I){if(!(P>=0&&P<W.size_.height&&x>=0&&x<W.size_.width))throw Error("$l`"+P+"`"+x+"`"+W.size_.height+"`"+W.size_.width);W.array_[P][x]=I};
BE.prototype.multiply=function(W){if(W instanceof BE){if(this.size_.width!=W.getSize().height)throw Error("am");return WDG(this,W)}if(typeof W==="number")return Pld(this,W);throw Error("bm");};
var WDG=function(W,P){var x=new BE(W.size_.height,P.getSize().width);F2y(x,function(I,O,B){for(var Y=I=0;Y<this.size_.width;Y++)I+=nN(this,O,Y)*nN(P,Y,B);L2Q(x,O,B,I)},W);
return x},Pld=function(W,P){return qQf(W,function(x){return x*P})};var xDy=new _.R("inlineSurveyRenderer");var I6y=new _.R("interstitialViewModel");var Oi3=new _.R("reelNavigateCommand");var J4M=new _.R("reelNonVideoContentDismissalCommand");var B2f=new _.R("showReelsCommentsOverlayCommand");var ng6=new _.R("shortsSuggestedActionViewModel");var YG4=new _.R("videoInteractionPopUpRenderer");var y44;var KDB;var Zi3;var YS=function(){var W=_.b.apply(this,arguments)||this;W.ctaVisualElement=null;W.currentCsn=null;return W};
_.A(YS,_.b);_.J=YS.prototype;_.J.onDataChanged=function(){this.maybeLogShows()};
_.J.computeButtonShape=function(){var W=this;if(this.data)return{buttonText:_.kz(this.data.text),state:"active",onTap:function(){W.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.J.maybeCreateCtaVe=function(){var W;if((W=this.data)!=null&&W.badgeInteractionLogging){var P;if(W=(P=this.data.badgeInteractionLogging)==null?void 0:P.trackingParams)this.ctaVisualElement=_.ox(W)}};
_.J.maybeLogClicks=function(){this.currentCsn=_.E_(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.bB(this.currentCsn,this.ctaVisualElement)};
_.J.maybeLogShows=function(){this.currentCsn=_.E_(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.c7(this.currentCsn,[this.ctaVisualElement])};
_.J.onTap=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var P;this.ytComponentBehavior.resolveCommand((P=this.data)==null?void 0:P.onClickCommand);this.maybeLogClicks()}};
YS.prototype.onDataChanged=YS.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],YS.prototype,"ytComponentBehavior",void 0);_.f([_.c({}),_.l("design:type",Object)],YS.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YS.prototype,"onDataChanged",null);
YS=_.f([_.U({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],YS);
_.X(YS,"ytd-shopping-overlay-badge-renderer",function(){if(Zi3!==void 0)return Zi3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Zi3=W},{mode:1});_.lq(_.KPv,"reel-sound-metadata-view-model",{props:{data:_.Ng,overlayDensity:_.Ng}});_.lq(_.qi3,"player-disclosure-view-model",{props:{data:_.cv}});_.lq(_.DqW,"pivot-button-view-model",{props:{data:_.Ng,className:_.Ng}});_.lq(_.MFp,"reel-action-bar-view-model",{props:{data:_.cv,buttonShapeOverrideables:_.cv}});_.lq(_.kl(function(W){function P(){var ao,e8,iC,hw,dk=(e8=_.Q((ao=T())==null?void 0:ao.command,_.KS3))==null?void 0:(iC=e8.item)==null?void 0:(hw=iC.notificationTextRenderer)==null?void 0:hw.successResponseText;if(dk)_.W7(I.value,"yt-open-popup-action",[_.NB(dk),I.value]);else if(N())fJm(N(),z.value);else{var Oc;fJm((Oc=T())==null?void 0:Oc.command,z.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var x=W.data;var I=_.fa();W=_.n(_.YV("0px",void 0,"O1N7Ce"));var O=W.next().value,B=W.next().value;W=_.n(_.YV("0px",void 0,"tTDBdb"));var Y=W.next().value,K=W.next().value;W=_.n(_.YV(0,void 0,"fh8Zkc"));var Z=W.next().value,d=W.next().value;W=_.n(_.YV(0,void 0,"CUjqGd"));var v=W.next().value,m=W.next().value,t=function(){var ao;if(((ao=_.nC())==null?void 0:ao.getPlayerState())!==-1){I.value.style.display="inherit";var e8;(e8=_.nC())==null||e8.removeEventListener("onStateChange",t)}C()},C=function(){var ao=
document.querySelector("video");
if(ao){d(ao.getBoundingClientRect().width);m(ao.getBoundingClientRect().height);var e8;B((ao==null?void 0:(e8=ao.style)==null?void 0:e8.left)||"0px");var iC;K((ao==null?void 0:(iC=ao.style)==null?void 0:iC.top)||"0px")}};
_.jj(function(){var ao,e8,iC;if(((ao=_.nC())==null?void 0:ao.getPlayerState())===-1&&Math.round(((iC=(e8=_.nC())==null?void 0:e8.getVideoAspectRatio())!=null?iC:0)*100)!==Math.round(Z()/v()*100)){I.value.style.display="none";var hw,dk;m(Z()/((dk=(hw=_.nC())==null?void 0:hw.getVideoAspectRatio())!=null?dk:1))}},"VB5m5");
_.Qa(function(){var ao;(ao=_.nC())==null||ao.addEventListener("onStateChange",t);window.addEventListener("resize",C);C();var e8,iC,hw;if((hw=(e8=x())==null?void 0:(iC=e8.regions)==null?void 0:iC[0])==null||!hw.transformationMatrix)throw Error("fm");var dk;if((dk=x())==null?0:dk.trackingParams){var Oc;_.YY().graftServerVe((Oc=x().trackingParams)!=null?Oc:"")}_.C4(function(){var Bm;(Bm=_.nC())==null||Bm.removeEventListener("onStateChange",t);window.removeEventListener("resize",C)})});
var z=_.fa(),D=_.n(_.YV(!1,void 0,"TPsTce"));W=D.next().value;var w=D.next().value,a=_.n(_.YV(!1,void 0,"Uz6CHf"));D=a.next().value;var k=a.next().value,T=function(){var ao;return _.Q((ao=x())==null?void 0:ao.popUp,YG4)},N=function(){var ao;
return(ao=x())==null?void 0:ao.command},Io=function(){return _.Q(N(),_.V2)!==void 0};
a=_.yB(function(){Io()&&w(!0);k(!0);return!1});
var F=_.yB(function(){w(!1);k(!1);return!1}),nm=_.yB(function(){Io()&&w(!0);
return!1}),pm=_.yB(function(){Io()&&w(!1);
return!1}),zR=_.yB(function(){P();
return!1}),Am=_.yB(function(ao){ao.key==="Enter"&&P();
return!1}),kW={},$W={};
return _.u("yt-player-overlay-video-interactions",{el:I},_.u("svg",{"on:mouseover":a,"on:mouseout":F,"on:keydown":Am,"on:focus":nm,"on:blur":pm,el:z,tabindex:0,"aria-label":function(){var ao;return(ao=x())==null?void 0:ao.a11yString},
id:"player-overlay-video-interaction-svg",class:_.O4("yt-player-overlay-video-interactions__interactions-svg",(kW["yt-player-overlay-video-interactions__interactions-svg-hover"]=W,kW),($W["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=D,$W)),role:"button",style:function(){var ao,e8,iC,hw=(iC=(ao=x())==null?void 0:(e8=ao.regions)==null?void 0:e8[0].transformationMatrix)!=null?iC:[];ao=Z();e8=v();iC=[];for(var dk=0,Oc=-1;dk<hw.length;dk++)dk%3===0&&(Oc++,iC[Oc]=[]),iC[Oc].push(hw[dk]);
hw=new BE(iC);iC=new BE([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);iC=hw.multiply(iC);hw=new BE([[0,0],[0,0],[0,0],[0,0]]);for(dk=0;dk<iC.getSize().width;dk++){Oc=nN(iC,0,dk);var Bm=nN(iC,1,dk);if(Oc===null||Bm===null)throw Error("em`"+(dk+1).toString());L2Q(hw,dk,0,Oc*ao);L2Q(hw,dk,1,Bm*e8)}ao=nN(hw,0,0);dk=nN(hw,1,0);e8=nN(hw,0,1);Oc=nN(hw,1,1);if(ao===null||dk===null||e8===null||Oc===null)throw Error("cm");iC=X2M(ao,dk,e8,Oc);Bm=nN(hw,3,0);hw=nN(hw,3,1);if(Bm===null||hw===null)throw Error("dm");hw=X2M(ao,
Bm,e8,hw);Oc=(Number((Oc*-1).toFixed(2))-Number((e8*-1).toFixed(2)))/(Number(dk.toFixed(2))-Number(ao.toFixed(2)));Bm=Math.atan(Oc)*180/Math.PI;dk=Oc===Number.POSITIVE_INFINITY?-90:Oc===Number.NEGATIVE_INFINITY?90:Object.is(Oc,-0)?180:Oc===0?0:Oc>0?Bm*-1:ao<dk?Bm*-1:Math.abs(Bm)+180;return"left:calc("+ao+"px + "+O()+"); top:calc("+(e8+"px + "+Y()+"); width:")+(iC+"px; height:")+(hw+"px; transform:rotate(")+(dk+"deg);")},
"on:click":zR}))},"Ai"),"yt-player-overlay-video-interactions",{props:{data:_.cv}});_.lq(_.IH9,"yt-reel-metapanel-view-model",{props:{data:_.cv,overlayDensity:_.cv}});var yh=function(){var W=_.b.apply(this,arguments)||this;W.showScrubber=!1;W.isWatchWhileMode=!1;W.enableAnchoredPanel=_.p("desktop_shorts_v2_anchored_panel");W.anchoredPanelActive=!1;W.enableLivingroomLayout=_.p("reels_enable_livingroom_layout");W.enablePlayerMetadataContainer=_.p("reels_web_enable_metadata_container");W.enableSqueezebackPanels=_.p("web_shorts_enable_squeezeback_panels");W.isSqueezebackActive=!1;W.smallScreenSqueezeback=!1;W.isPlayerStarted=!1;W.overlayDensity=0;W.isOverlay=!1;W.isImmersive=
!1;W.isImmersiveHorizontal=!1;W.isFullscreen=!1;W.onWindowResized=function(){var P;W.set("isImmersive",((P=window.getComputedStyle(W.hostElement))==null?void 0:P.getPropertyValue("--immersive-mode-on"))==="1");W.set("isImmersiveHorizontal",W.isImmersive&&W.enableLivingroomLayout&&!W.isWatchWhileMode)};
return W};
_.A(yh,_.b);_.J=yh.prototype;_.J.updateIsOverlay=function(W){this.isOverlay=W.detail.value};
_.J.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.p("web_enable_flexible_overlay")||_.p("web_enable_format_first")||_.p("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.J.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.J.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.J.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.J.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.J.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.J.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.J.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Pi("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.Pi("reels_action_justified_content")||"flex-start")};
_.J.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.J.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.KK("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.KK("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.KK("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.KK("SHARE_LABEL",
void 0,"Share")}}});_.p("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.KK("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()};
_.J.setEmptyOverlayMetadata=function(){_.p("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}))};
_.N1.Object.defineProperties(yh.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoPanel)}}});
yh.prototype.onIsActiveChanged=yh.prototype.onIsActiveChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],yh.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],yh.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],yh.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],yh.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],yh.prototype,"isActive",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],yh.prototype,"hidden",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],yh.prototype,"useShortsIcon",void 0);_.f([_.c({value:"left"}),_.l("design:type",String)],yh.prototype,"buttonTooltipPosition",void 0);
_.f([_.c({value:_.p("reels_enable_livingroom_layout")?"top":"left"}),_.l("design:type",String)],yh.prototype,"likeButtonTooltipPosition",void 0);_.f([_.c({value:"none"}),_.l("design:type",String)],yh.prototype,"textTransform",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"showScrubber",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"isWatchWhileMode",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data.infoPanel"),_.l("design:type",Object),_.l("design:paramtypes",[])],yh.prototype,"hasInfoPanel",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"enableAnchoredPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"anchoredPanelActive",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"enableLivingroomLayout",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],yh.prototype,"enablePlayerMetadataContainer",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"enableSqueezebackPanels",void 0);_.f([_.c({selector:_.gdm,reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"isSqueezebackActive",void 0);_.f([_.c({selector:kz9,reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"smallScreenSqueezeback",void 0);
_.f([_.c({selector:Uq9}),_.l("design:type",Object)],yh.prototype,"isPlayerStarted",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"overlayDensity",void 0);_.f([_.c(),_.l("design:type",Object)],yh.prototype,"isOverlay",void 0);_.f([_.c({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.l("design:type",Boolean)],yh.prototype,"isShortsOverlay",void 0);_.f([_.c(),_.l("design:type",Object)],yh.prototype,"isImmersive",void 0);
_.f([_.c(),_.l("design:type",Object)],yh.prototype,"isImmersiveHorizontal",void 0);_.f([_.c({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.l("design:type",Boolean)],yh.prototype,"isShortsImmersive",void 0);_.f([_.c({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.l("design:type",Object)],yh.prototype,"buttonOverride",void 0);
_.f([_.c({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.l("design:type",Object)],yh.prototype,"actionBarButtonOverride",void 0);_.f([_.c({selector:_.vO,reflectToAttribute:!0}),_.l("design:type",Object)],yh.prototype,"isFullscreen",void 0);_.f([_.OZ("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yh.prototype,"onIsActiveChanged",null);yh=_.f([_.U({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],yh);
_.X(yh,"ytd-reel-player-overlay-renderer",function(){if(KDB!==void 0)return KDB;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[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="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return KDB=W},{mode:1});var og4;var KN=function(){var W=_.b.apply(this,arguments)||this;W.videoDuration=0;W.playedTime=0;W.isActive=!1;W.JSC$19613_playerEvents=new Map;return W};
_.A(KN,_.b);_.J=KN.prototype;_.J.created=function(){this.JSC$19613_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19613_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.J.attached=function(){this.getPlayerAndInitializeListeners()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19613_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.WM(this,this.onPageChanged))};
_.J.getPlayerAndInitializeListeners=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return P=_.RP(),P?_.S(x,P.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.WM(W,W.onPageChanged)),x.jumpTo(0));W.player=x.yieldResult;W.initializePlayerListeners();_.Kl(x)})};
_.J.onPageChanged=function(W){var P=this;return _.y(function(x){if(x.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?x.return():_.S(x,_.F_().getPlayerPromise(),2);P.player=x.yieldResult;P.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.WM(P,P.onPageChanged));_.Kl(x)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19613_playerEvents)};
_.J.onVideoDataChange=function(W){var P=this;return _.y(function(x){if(!P.player||W.type!=="newdata")return x.return();P.videoDuration=_.p("web_shorts_use_progress_state_for_gapless")?P.player.getProgressState(W.playertype).seekableEnd:P.player.getDuration(W.playertype);P.playedTime=0;_.Kl(x)})};
_.J.onVideoProgress=function(W){var P=this,x,I;return _.y(function(O){if(!P.player)return O.return();x=P.player.getPresentingPlayerType();I=P.player.getPlayerState();P.videoDuration=_.p("web_shorts_use_progress_state_for_gapless")?P.player.getProgressState(x).seekableEnd:P.player.getDuration(x);P.playedTime=I===0?P.videoDuration:W;_.Kl(O)})};
_.J.getPercentPlayed=function(W,P){return W?_.HX(P/W,0,1):0};
_.N1.Object.defineProperties(KN.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 W="";return W=this.videoDuration&&this.playedTime?W+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):W+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],KN.prototype,"componentBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],KN.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],KN.prototype,"player",void 0);_.f([_.c(),_.l("design:type",Object)],KN.prototype,"videoDuration",void 0);_.f([_.c(),_.l("design:type",Object)],KN.prototype,"playedTime",void 0);_.f([_.c(),_.l("design:type",Object)],KN.prototype,"isActive",void 0);
_.f([_.H("videoDuration","playedTime"),_.l("design:type",Number),_.l("design:paramtypes",[])],KN.prototype,"percentPlayed",null);_.f([_.H("videoDuration","playedTime"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"percentPlayedStyle",null);_.f([_.H("videoDuration","isActive"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KN.prototype,"hideProgressBar",null);
_.X(KN,"ytd-progress-bar-line",function(){if(og4===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);og4=W}W=og4;return W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var SGB;_.WF(_.Tfo,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var Z0=function(){var W=_.b.apply(this,arguments)||this;W.playerState=null;W.isMuted=!1;W.shortsModernControlsEnabled=_.p("web_shorts_modern_controls");W.volumeControlsOrientationState="vertical_down";W.JSC$19616_playerEvents=new Map;return W};
_.A(Z0,_.b);_.J=Z0.prototype;_.J.created=function(){this.JSC$19616_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19616_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.J.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.td(28662);this.playPauseButtonClientVE=_.td(36842);this.fullscreenButtonToggleOffClientVE=_.td(222256);this.fullscreenButtonToggleOnClientVE=_.td(222257);var W=_.E_(),P=_.G7();W&&P&&(_.p("combine_ve_grafts")?(_.BK(_.YY(),this.muteButtonClientVE,P),_.BK(_.YY(),this.playPauseButtonClientVE,P)):_.H7(W,P,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19616_playerEvents),this.player=null)};
_.J.getPlayerAndInitializeListeners=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return P=_.RP(),P?_.S(x,P.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.WM(W,W.onPageChanged)),x.jumpTo(0));W.player=x.yieldResult;W.initializePlayerListeners();_.Kl(x)})};
_.J.onPageChanged=function(W){var P=this;return _.y(function(x){if(x.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?x.return():_.S(x,_.F_().getPlayerPromise(),2);P.player=x.yieldResult;P.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.WM(P,P.onPageChanged));_.Kl(x)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19616_playerEvents)};
_.J.onPlayerStateChange=function(W){this.playerState=W};
_.J.onPlayerVolumeChange=function(W){this.isMuted=W.muted};
_.J.onPlayPauseButtonClick=function(){var W=this,P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,_.F_().getPlayerPromise(),2);P=I.yieldResult;(x=_.E_())&&W.playPauseButtonClientVE&&_.bB(x,W.playPauseButtonClientVE);P.getPlayerState()!==1?P.playVideo():P.pauseVideo();_.Kl(I)})};
_.J.computePlayPauseIcon=function(W){return W===2||W===-1||W===5?"PLAY_ARROW_FILLED":_.p("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.J.computeFullscreenLabel=function(W){return W?_.KK("FULLSCREEN_EXIT_LABEL"):_.KK("FULLSCREEN_ENTER_LABEL")};
_.J.computePlayPauseLabel=function(W){return W===1||W===3?_.KK("PLAYER_LABEL_PAUSE"):_.KK("PLAYER_LABEL_PLAY")};
_.J.onMuteButtonClick=function(){var W=this,P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,_.F_().getPlayerPromise(),2);P=I.yieldResult;(x=_.E_())&&W.muteButtonClientVE&&_.bB(x,W.muteButtonClientVE);P.isMuted()?P.unMute(!0):P.mute(!0);_.Kl(I)})};
_.J.computeMuteIcon=function(W){return W?"miniplayer:volume-off":"miniplayer:volume-up"};
_.J.computeMuteLabel=function(W){return W?_.KK("PLAYER_LABEL_UNMUTE"):_.KK("PLAYER_LABEL_MUTE")};
_.J.onFullscreenButtonClick=function(){var W=_.E_();W&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.bB(W,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.bB(W,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.a84()};
_.N1.Object.defineProperties(Z0.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var W=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(){W.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.p("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.p("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Z0.prototype,"componentBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],Z0.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Z0.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Z0.prototype,"player",void 0);_.f([_.c(),_.l("design:type",Object)],Z0.prototype,"playerState",void 0);_.f([_.c(),_.l("design:type",Object)],Z0.prototype,"isMuted",void 0);
_.f([_.c({computed:"computePlayPauseIcon(playerState)"}),_.l("design:type",String)],Z0.prototype,"playPauseIcon",void 0);_.f([_.c({computed:"computeMuteIcon(isMuted)"}),_.l("design:type",String)],Z0.prototype,"muteIcon",void 0);_.f([_.c({selector:_.vO}),_.l("design:type",Boolean)],Z0.prototype,"isFullscreen",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Z0.prototype,"shortsModernControlsEnabled",void 0);
_.f([_.c(),_.l("design:type",Object)],Z0.prototype,"volumeControlsOrientationState",void 0);_.f([_.H("playerState"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z0.prototype,"playPauseButtonData",null);_.f([_.H("isFullscreen"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z0.prototype,"fullscreenButtonData",null);_.f([_.H("isFullscreen"),_.l("design:type",String),_.l("design:paramtypes",[])],Z0.prototype,"fullscreenIcon",null);
_.X(Z0,"ytd-shorts-player-controls",function(){if(SGB===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);SGB=W}W=SGB;return W},{mode:1});var uZd;_.lq(_.Wvk,"yt-interstitial-view-model",{props:{data:_.cv}});var dDd=_.kl(function(W){var P=W.data;return _.u("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.u("h1",{class:"reelWatchBreakViewModelHostTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u("h2",{class:"reelWatchBreakViewModelHostBody"},_.u(_.mQ,{text:function(){return P().body},
isOverlay:!0})),_.u(_.Ea,{data:function(){return P().buttons}},{buttonViewModel:function(x,I){return _.u("div",{class:function(){return I()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.u(_.cq,{data:x.data}))}}))},"Bi");
dDd.idomCompat=!0;_.lq(dDd,"reel-watch-break-view-model",{props:{data:_.cv}});var o5=function(){return _.b.apply(this,arguments)||this};
_.A(o5,_.b);o5.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}}};
_.N1.Object.defineProperties(o5.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.Q((W=this.data)==null?void 0:W.renderer,xDy)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.Q((W=this.data)==null?void 0:W.renderer,I6y)}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],o5.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],o5.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],o5.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data.renderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],o5.prototype,"isSurvey",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.renderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],o5.prototype,"isInterstitialViewModel",null);o5=_.f([_.U({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],o5);
_.X(o5,"ytd-reel-non-video-content-renderer",function(){if(uZd!==void 0)return uZd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return uZd=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var sLd;_.lq(_.FuQ,"desktop-shorts-player-controls",{});var S1=function(){var W=_.b.apply(this,arguments)||this;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.showPlayerControls=!1;W.showScrubber=!1;W.autoHideJobId=0;W.modern=_.p("web_button_rework");W.overlayType=_.Pi("web_shorts_expanded_overlay_type");W.panelData=void 0;W.isWatchWhileMode=!1;W.hasError=!1;W.panelShowDelayMs=1;W.scrubberComponent={};W.useStamper=_.p("web_shorts_enable_title_deflation");W.isFullscreen=!1;W.shouldHideOverlay=!1;W.enableAnchoredPanel=_.p("desktop_shorts_v2_anchored_panel");
W.enablePersistentAnchoredPanel=_.p("desktop_shorts_v2_persistent_anchored_panel");W.hideWatchWhilePanel=_.p("web_shorts_hide_watch_while_panel");W.isPersistentPanelActive=!1;W.anchoredPanelActive=!1;W.isShortsPipActive=!1;W.smallScreenSqueezeback=!1;W.enableFlexibleOverlay=_.p("web_enable_flexible_overlay");W.overlayDensity=0;W.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
W.onWindowResized=function(){_.De(W,"calculateOverlayDensity",function(){W.calculateOverlayDensity()},100)};
return W};
_.A(S1,_.b);_.J=S1.prototype;_.J.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.J.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.J.shouldRenderOverlayControl=function(W){return!this.useStamper&&this.isVideoContent(W)};
_.J.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var W=_.FY().resolve(_.m3);this.isWatchWhileMode&&(_.p("web_enable_shorts_new_carousel")?_.Gr.addJob(function(){W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.J.handleShowReelsCommentsOverlayCommand=function(W){W=_.Q(W,B2f);this.isActive&&(W==null?0:W.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))};
_.J.updateEngagementPanelVisibility=function(W,P){W&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:P?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:W}})};
_.J.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.J.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.FY().resolve(_.Pv).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.J.handleWatchWhilePanelScrimClick=function(){var W=_.FY().resolve(_.m3);this.activeWatchWhilePanel&&(W.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.J.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.J.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.p("web_enable_shorts_new_carousel")?0:void 0}}};
_.J.handlePlayerClick=function(W){var P=this,x,I;if((I=(x=window).matchMedia)!=null&&I.call(x,"(any-pointer: coarse)").matches||!W)this.showPlayerControls=!0,_.Gr.cancelJob(this.autoHideJobId),this.autoHideJobId=_.VE(_.Gr,function(){P.showPlayerControls=!1},4E3)};
_.J.isFirstReel=function(){return this.index===0};
_.J.handleMouseenter=function(){_.Gr.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.J.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.J.handleScrubberEnter=function(){this.showScrubber=!0};
_.J.handleScrubberLeave=function(){this.showScrubber=!1};
_.J.maybeLogNonDefaultAspectRatio=function(){var W;(W=this.data)!=null&&W.thumbnail&&this.isActive&&.5625!==bH9(this.data.thumbnail)&&_.oRm("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.J.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var W=document.querySelector("#shorts-container");if(W){W=W.offsetWidth/2-this.playerContainer.offsetWidth/2;W=W>=368?1:W>=168?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&W===1&&(W=0);this.isPersistentPanelActive&&(W=0);this.overlayDensity=W;var P;(P=this.onOverlayDensityChanged)==null||P.call(this,this.index,this.overlayDensity)}}};
_.J.onOverlayDensityChange=function(){var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity);(W=_.g(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&W.set("overlayDensity",this.overlayDensity);if(W=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))W.overlayDensity=this.overlayDensity};
_.J.isVideoContent=function(W){_.FY().resolve(_.Pv);return!!_.Q(W,_.uS)};
_.J.isNonVideoContent=function(W){_.FY().resolve(_.Pv);return!!_.Q(W,_.M3)};
_.J.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.N1.Object.defineProperties(S1.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var W,P;return _.p("web_enable_format_first")||((W=this.data)==null?void 0:W.adsOverlay)&&_.p("web_enable_format_first_ads_only")||((P=this.data)==null?void 0:P.reelPlayerOverlayRenderer)&&_.p("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isActive||!this.isPlayerStarted||(W=this.data)!=null&&W.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var W;if(this.useStamper&&((W=this.data)==null?0:W.command)&&this.isVideoContent(this.data.command)){var P,x;if(((P=this.data)==null?0:P.adsOverlay)&&Object.keys((x=this.data)==null?void 0:x.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var I,O;if(((I=this.data)==null?0:I.reelPlayerOverlayRenderer)&&Object.keys((O=this.data)==null?void 0:O.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
S1.prototype.onOverlayDensityChange=S1.prototype.onOverlayDensityChange;S1.prototype.calculateOverlayDensity=S1.prototype.calculateOverlayDensity;S1.prototype.maybeLogNonDefaultAspectRatio=S1.prototype.maybeLogNonDefaultAspectRatio;S1.prototype.onEngagementPanelsChanged=S1.prototype.onEngagementPanelsChanged;S1.prototype.onScrubberDataChange=S1.prototype.onScrubberDataChange;S1.prototype.updateShouldHideOverlay=S1.prototype.updateShouldHideOverlay;
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],S1.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],S1.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],S1.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],S1.prototype,"index",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],S1.prototype,"isActive",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],S1.prototype,"isHiddenInDom",void 0);_.f([_.c(),_.l("design:type",Object)],S1.prototype,"isPlayerPaused",void 0);_.f([_.c({selector:Uq9}),_.l("design:type",Object)],S1.prototype,"isPlayerStarted",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"showPlayerControls",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"showScrubber",void 0);_.f([_.c(),_.l("design:type",Object)],S1.prototype,"autoHideJobId",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"overlayType",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],S1.prototype,"ytdReduxBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],S1.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],S1.prototype,"watchWhileEngagementPanels",void 0);_.f([_.c(),_.l("design:type",Object)],S1.prototype,"panelData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"isWatchWhileMode",void 0);_.f([_.c(),_.l("design:type",String)],S1.prototype,"activeWatchWhilePanel",void 0);
_.f([_.c(),_.l("design:type",Object)],S1.prototype,"hasError",void 0);_.f([_.c(),_.l("design:type",Object)],S1.prototype,"panelShowDelayMs",void 0);_.f([_.c(),_.l("design:type",Object)],S1.prototype,"scrubberComponent",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"useStamper",void 0);_.f([_.c({selector:_.vO,reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"isFullscreen",void 0);
_.f([_.c(),_.l("design:type",Object)],S1.prototype,"shouldHideOverlay",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"enableAnchoredPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"enablePersistentAnchoredPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"hideWatchWhilePanel",void 0);
_.f([_.c({selector:_.gdm,reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"isPersistentPanelActive",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"anchoredPanelActive",void 0);_.f([_.c({selector:_.m0,reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"isShortsPipActive",void 0);_.f([_.c({selector:kz9,reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"smallScreenSqueezeback",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],S1.prototype,"enableFormatFirst",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"enableFlexibleOverlay",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],S1.prototype,"overlayDensity",void 0);_.f([_.c(),_.l("design:type",Function)],S1.prototype,"onOverlayDensityChanged",void 0);
_.f([_.c(),_.H("isActive","hasError"),_.l("design:type",Object),_.l("design:paramtypes",[])],S1.prototype,"shouldRenderPlayerElements",null);_.f([_.c(),_.H("isActive","isWatchWhileMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],S1.prototype,"watchWhileOrPersistentActive",null);_.f([_.OZ("isActive","hasError","showingExpandedOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S1.prototype,"updateShouldHideOverlay",null);
_.f([_.c({reflectToAttribute:!0}),_.H("isActive","isPlayerStarted","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],S1.prototype,"shouldRenderScrubber",null);_.f([_.OZ("shouldRenderScrubber"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S1.prototype,"onScrubberDataChange",null);_.f([_.H("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],S1.prototype,"overlayComponent",null);
_.f([_.OZ("watchWhileEngagementPanels"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S1.prototype,"onEngagementPanelsChanged",null);_.f([_.BM("#player-container"),_.l("design:type",HTMLElement)],S1.prototype,"playerContainer",void 0);_.f([_.BM("#cinematic-container"),_.l("design:type",HTMLElement)],S1.prototype,"cinematicContainer",void 0);
_.f([_.OZ("isPersistentPanelActive","data.thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S1.prototype,"maybeLogNonDefaultAspectRatio",null);_.f([_.OZ("isPersistentPanelActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S1.prototype,"calculateOverlayDensity",null);_.f([_.OZ("overlayDensity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S1.prototype,"onOverlayDensityChange",null);
S1=_.f([_.U({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],S1);
_.X(S1,"ytd-reel-video-renderer",function(){if(sLd!==void 0)return sLd;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return sLd=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var uX=function(){var W=_.b.apply(this,arguments)||this;W.isPreviousPageShorts=!1;W.index=0;W.delayedActiveIndex=0;W.playablePreviousIndex=null;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.intersectionObserverThreshold=.6;W.fitToVisibleBounds=!1;W.pageSubtype="shorts";W.enablePreviousContinuation=_.p("shorts_in_playlists_web");W.shortsPipEnabled=_.p("web_shorts_pip");W.isDark=document.documentElement.hasAttribute("dark");W.shortsViewTransitions=_.p("web_shorts_view_transitions");W.isFullscreen=!1;W.isShortsPipActive=
!1;W.buttonOverride={iconPosition:"icon-only",size:"XL"};W.anchoredPanelActive=!1;W.isActive=!1;W.smallScreenPersistentPanel=!1;W.isPersistentPanelActive=!1;W.smallScreenSqueezeBack=!1;W.enableScrollIntoViewCenter=_.p("web_scroll_into_view_center");W.formatFirst=_.p("web_enable_format_first")||_.p("web_enable_format_first_ads_only")||_.p("web_enable_format_first_organic_only");W.enableFlexibleOverlay=_.p("web_enable_flexible_overlay");W.isShortsInitialized=!1;W.hidePreviousButtonImmediately=!1;W.showPreviousButtonImmediately=
!1;W.endOfNextContinuation=!1;W.currentPlayerIndex=0;W.nextReelVe=_.td(56921);W.prevReelVe=_.td(56922);W.loopToggleOffVe=_.td(198013);W.loopToggleOnVe=_.td(198014);W.ambientModeToggleVe=_.td(227860);W.reelPlayerPausedStateRendererVe=_.td(141313);W.storedPlaybackSpeed=null;W.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"};
W.onOverlayDensityChanged=function(P,x){var I;(I=W.getActiveReelVideo(P))==null||I.setAttribute("overlay-density",String(x))};
return W};
_.A(uX,_.b);_.J=uX.prototype;
_.J.deflateInactivePreviousSlides=function(){var W=_.Wi("web_shorts_deflate_inactive_slides_aggressive_distance");if(W>0&&this.shortsProcessedSequence&&this.activeIndex){W=this.activeIndex-W;for(var P=0;P<=W;P++){var x=void 0;((x=this.shortsProcessedSequence[P].reelPlayerOverlayRenderer)==null?0:x.likeButton)&&this.set("shortsProcessedSequence."+P+".reelPlayerOverlayRenderer",{});x=void 0;((x=this.shortsProcessedSequence[P].adsOverlay)==null?0:x.adSlotMetadata)&&this.set("shortsProcessedSequence."+P+
".adsOverlay",{})}}};
_.J.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.J.onResize=function(){var W=_.Xe(),P=W.dispatch,x=this.calculateIsSmallWidth();P.call(W,_.LK({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:x}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.J.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:_.p("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.J.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var W=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,P=W,x=0;W<250&&(P=W+this.shortsInnerContainer.clientWidth,x=24);_.qa(this.hostElement,{"--ytd-shorts-header-width":P+"px","--ytd-shorts-top-spacing":x+"px"})}};
_.J.isFirstShorts=function(W){return W?this.index===-W.length:this.index===0};
_.J.isActiveReel=function(W,P,x){x&&(P=this.calculatePrevIndex(P,x));return W===P};
_.J.onFullscreenChange=function(){if(_.p("web_fullscreen_shorts")){var W;(W=this.getActiveReelVideo(this.activeIndex))==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.FY().resolve(_.kc).close(!0)}};
_.J.engagementPanelsChanged=function(){var W;this.watchWhileEngagementPanels=(W=this.data)==null?void 0:W.engagementPanels};
_.J.unregisterPanels=function(){var W=_.FY().resolve(_.m3);if(this.watchWhileEngagementPanels)for(var P=_.n(this.watchWhileEngagementPanels),x=P.next();!x.done;x=P.next()){var I=void 0,O=void 0;x=(I=x.value.engagementPanelSectionListRenderer)==null?void 0:(O=I.identifier)==null?void 0:O.tag;W&&x&&W.panelMap.delete(x)}};
_.J.isVideoContent=function(W){return this.isVideoContentCommand(W==null?void 0:W.command)};
_.J.getActiveReelVideo=function(W){return _.g(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+W+'"]')};
_.J.calculatePrevIndex=function(W,P){return P?W-((P==null?void 0:P.length)||0):-1};
_.J.onKeydown=function(W){var P=_.c5(W)||[];if(!_.eMM(P))if(W.code==="ArrowUp")W.preventDefault(),this.handlePrevButtonClick();else if(W.code==="ArrowDown")W.preventDefault(),this.handleNextButtonClick();else if(W.code==="KeyM")this.toggleMuteUnmuteVideo();else if(W.code==="KeyK"||W.code==="Space")this.togglePlayPauseVideo();else if((W.code==="KeyA"||W.code==="ArrowLeft")&&_.p("web_shorts_keyboard_enable_seek_shortcuts")){var x;(x=this.player)==null||x.seekBy(-5)}else if((W.code==="KeyD"||W.code===
"ArrowRight")&&_.p("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var I;(I=this.player)==null||I.seekBy(5)}};
_.J.onServiceRequestCompleted=function(W,P){W=P.data;W.continuationEndpoint&&W.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:W.entries,continuationEndpoint:W.continuationEndpoint}}):W.prevContinuationEndpoint&&W.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:W.prevEntries,prevContinuationEndpoint:W.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.J.handleEngagementPanelVisibilityChanged=function(W,P){var x=_.FY().resolve(_.m3);if(W&&x){var I,O=((I=W.identifier)==null?void 0:I.tag)||W.panelIdentifier||W.targetId;if(P==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==O){x.hidePanel(this.activePanel);var B;this.activePanel=((B=W.identifier)==null?void 0:B.tag)||W.panelIdentifier}else this.isPersistentPanelActive=!0,_.Xe().dispatch(rjf(!0)),this.anchoredPanelActive=!0,this.activePanel=O;else P==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===O&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Xe().dispatch(rjf(!1)))}};
_.J.handlePanelScrimClick=function(){var W=_.FY().resolve(_.m3);this.activePanel&&(W.hidePanel(this.activePanel),_.Xe().dispatch(rjf(!1)))};
_.J.getShortsLoopSetting=function(){var W,P,x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:return _.p("kevlar_shorts_auto_advance")?_.S(B,_.QI.getInstance(),2):B.return(!0);case 2:return(W=B.yieldResult)?_.S(B,W.get("sfvles"),3):B.return(!0);case 3:return x=(P=B.yieldResult)!=null?P:!1,_.S(B,W.get("sfvle"),4);case 4:return O=(I=B.yieldResult)!=null?I:!0,x?B.return(O):B.return(!0)}})};
_.J.handleSignalActionToggleLoopShortsOff=function(){var W=this,P,x,I;return _.y(function(O){switch(O.nextAddress){case 1:if(!W.player)return O.return();W.player.setLoopVideo(!1);P=_.YY();_.yI(P,W.loopToggleOffVe);return _.S(O,_.QI.getInstance(),2);case 2:return(x=O.yieldResult)?_.S(O,x.set("sfvle",!1),3):O.return();case 3:return _.S(O,x.set("sfvles",!0),4);case 4:I=_.SI(),_.uB(0,203,!1),_.uB(0,204,!0),I.save(),_.Kl(O)}})};
_.J.handleSignalActionToggleLoopShortsOn=function(){var W=this,P,x,I;return _.y(function(O){switch(O.nextAddress){case 1:if(!W.player)return O.return();W.player.setLoopVideo(!0);P=_.YY();_.yI(P,W.loopToggleOnVe);return _.S(O,_.QI.getInstance(),2);case 2:return(x=O.yieldResult)?_.S(O,x.set("sfvle",!0),3):O.return();case 3:return _.S(O,x.set("sfvles",!0),4);case 4:I=_.SI(),_.uB(0,203,!0),_.uB(0,204,!0),I.save(),_.Kl(O)}})};
_.J.handleSignalActionToggleCinematicShortsOn=function(){aJv(!0);var W;(W=this.JSC$19640_cinematicController)==null||_.h13(W,!0);_.yI(_.YY(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.J.handleSignalActionToggleCinematicShortsOff=function(){aJv(!1);var W;(W=this.JSC$19640_cinematicController)==null||_.h13(W,!1);_.yI(_.YY(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.J.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.J.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.J.unhideCurrentOverlay=function(){if(this.overlayContainer){var W=this.overlayContainer.querySelector("#experiment-overlay");W&&_.Gr.addLowPriorityJob(function(){W.style.display="unset"},100)}};
_.J.getCurrentShort=function(){if(this.currentEndpoint){var W=this.currentEndpoint;if(this.isNonVideoContentCommand(W)){var P=_.Q(W,_.M3);return{reelNonVideoContentRenderer:_.Q(P==null?void 0:P.renderer,_.aRP),command:W}}if(this.data){var x;P=(x=_.Q(this.currentEndpoint,_.uS))==null?void 0:x.thumbnail;var I;x=(I=this.data.overlay)==null?void 0:I.reelPlayerOverlayRenderer;_.FY().resolve(_.Pv);W=this.data;var O,B;I=(O=W.overlay)==null?void 0:(B=O.shortsAdsRenderer)==null?void 0:B.adSlots;if(I!==void 0)I.length===
0?(_.xA("Shorts ads returned no ad slots."),W=void 0):(I.length>1&&_.xA("Shorts ads has more than one ad slots."),W=_.Q(I[0],_.Vec));else{var Y,K;W=_.Q((Y=W.overlay)==null?void 0:(K=Y.shortsAdsRenderer)==null?void 0:K.overlay,_.Vec)}Y=W;W=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.Q(this.currentEndpoint,_.uS),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:x,thumbnail:P,command:W,adsOverlay:Y}}}};
_.J.created=function(){var W=this;this.scrollToVideoThrottle=new _.WO(function(P){var x;(x=W.getActiveReelVideo(P))==null||x.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.WO(function(P){var x;(x=W.getActiveReelVideo(P))==null||x.scrollIntoView({behavior:"auto",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.J.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.J.attached=function(){var W=this;lJ4(this);this.pageScrollElement=_.g(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.WM(this,this.processResetAction));_.p("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.p("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var P=W.getActiveReelVideo(W.activeIndex);
W.maybeCreateIntersectionObserver();P==null||P.scrollIntoView({behavior:"instant",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"});W.shortsContainer.style.overflowY="scroll"}))};
_.J.calculateSqueezebackPanelSize=function(){var W=this,P=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Gr.addLowPriorityJob(function(){P<360?_.Xe().dispatch(iH9(!0)):(W.hostElement.style.setProperty("--anchored-panel-width",Math.min(P,480)+"px"),_.Xe().dispatch(iH9(!1)))})};
_.J.detached=function(){var W=_.FY().resolve(_.Pv);W.rootElement=void 0;var P;(P=W.unsubscribeFromStore)==null||P.call(W);W.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.WM(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.J.onResizeFinished=function(W,P){var x=this,I=new ResizeObserver(function(){x.shortsContainer.style.overflowY="hidden";_.Gr.addLowPriorityJob(function(){P()},100)});
I.observe(W);return I};
_.J.resetDocumentScrollTop=function(){var W,P;if((W=document)==null?0:(P=W.scrollingElement)==null?0:P.scrollTop)document.scrollingElement.scrollTop=0};
_.J.loadPage_=function(W){var P=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),W){var x;if((x=_.Q(this.currentEndpoint,_.uS))==null?0:x.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=W;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){P.isPlayerStarted&&
(P.handleOnPlaybackCommand(),P.afterPlayerStarted=function(){})};
this.registerPanel(W)}};
_.J.afterPlayerStarted=function(){};
_.J.handleOnPlaybackCommand=function(){if(_.p("web_shorts_comment_stickers")&&this.isPlayerStarted){var W,P=(W=_.Q(this.currentEndpoint,_.uS))==null?void 0:W.onPlaybackCommand;P&&this.ytComponentBehavior.resolveCommand(P)}};
_.J.maybeCreateIntersectionObserver=function(){var W=this,P=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==P){this.intersectionObserverThreshold=P;var x={rootMargin:"0px",threshold:P},I;(I=this.intersectionObserver)==null||I.disconnect();this.intersectionObserver=new IntersectionObserver(function(O){O=_.n(O);for(var B=O.next();!B.done;B=O.next())if(B=B.value,B.intersectionRatio>P){B=Number(B.target.id);if(isNaN(B))break;if(B===W.index)break;
_.Yjd();W.loadVideo(B);_.zZ("r_vtc")}},x);
this.observeShorts()}};
_.J.observeShorts=function(){var W=[].concat(_.ju(_.g(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));W=_.n(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;var x=void 0;(x=this.intersectionObserver)==null||x.observe(P)}};
_.J.initCsi=function(){_.A5("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var W={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"}},P,x;if((P=this.playerData)==null?0:(x=P.cacheMetadata)==null?0:x.isCacheHit)W.isCacheHit=!0;var I;if(P=(I=_.Q(this.currentEndpoint,_.uS))==null?void 0:
I.prefetchTaskId)W.prefetchInfo={taskId:P};_.jI(W)};
_.J.isAd=function(){var W,P;return!!((W=_.Q(this.currentEndpoint,_.uS))==null?0:(P=W.adClientParams)==null?0:P.isAd)};
_.J.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.J.getPlayerContainer=function(){var W;return(W=_.g(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:W.playerContainer};
_.J.onPlayerStateChange=function(W){var P=this;this.isPlayerPaused=W===2;W!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?W===1&&this.index===0&&(this.isPlayerStarted||_.Xe().dispatch(Jr(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Xe().dispatch(Jr(!0)));this.player&&!this.player.getLoopVideo()&&_.Gr.addLowPriorityJob(function(){P.getShortsLoopSetting().then(function(x){var I;(I=P.player)==null||I.setLoopVideo(x)})});
this.isPlayerPaused&&_.p("web_shorts_paused_state_logging")&&_.c7(_.E_(),[this.reelPlayerPausedStateRendererVe])};
_.J.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
_.J.isShortPlayable=function(){if(_.p("kevlar_playable_short_killswitch"))return!0;var W;return(W=this.playerData)!=null&&W.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.J.setNormalPlaybackSpeed=function(){var W=this,P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,W.getPlayer().getPlayerPromise(),2);P=I.yieldResult;x=P.getPlaybackRate();x!==1&&(W.storedPlaybackSpeed=x,P.setPlaybackRate(1));_.Kl(I)})};
_.J.restorePlaybackSpeed=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1)return W.storedPlaybackSpeed===null?x.jumpTo(0):_.S(x,W.getPlayer().getPlayerPromise(),3);P=x.yieldResult;P.setPlaybackRate(W.storedPlaybackSpeed);W.storedPlaybackSpeed=null;_.Kl(x)})};
_.J.playerDataChanged=function(){var W=this,P,x,I,O,B,Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1){P=W.getPlayer();_.p("web_shorts_dynamic_intersection_observer_threshold")&&((x=W.intersectionObserver)==null||x.disconnect());if(W.playerData){if(((I=W.playerData.videoDetails)==null?void 0:I.videoId)!==((O=P.getPlayer())==null?void 0:O.getVideoData().video_id)){B={};if(Y=_.Q(W.currentEndpoint,_.uS))B.watch_endpoint=Y,Y.endTimeSeconds&&(B.end=Y.endTimeSeconds);P.loadVideoWithPlayerResponse(W.playerData,
B)}}else return v.return();return W.player?v.jumpTo(2):_.S(v,P.getPlayerPromise(),3)}v.nextAddress!=2&&(W.player=v.yieldResult,W.JSC$19640_playerStateChangeListener=W.onPlayerStateChange.bind(W),W.player.addEventListener("onStateChange",W.JSC$19640_playerStateChangeListener),_.p("kevlar_client_enable_shorts_player_bootstrap")&&_.Lo(),W.scrollToVideoThrottle.fire(W.index),W.movePlayerToVideo(W.index),_.Gr.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(m){var t;(t=W.player)==null||
t.setLoopVideo(m)})}),_.pwW.resolve(W.player),W.player.syncVolume(),W.getPlayer().focusOnPlayer());
_.p("web_shorts_caption_language_entity_killswitch")||_.Gr.addLowPriorityJob(function(){var m=_.FY().resolve(_.Pv),t,C=(t=W.player)==null?void 0:t.getOption("captions","track");t=_.On("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(C){var z;((z=_.dp(_.nI8,t)())==null?void 0:z.value)!==C.displayName&&m.store.dispatch(_.mG("stringEntity",t,{key:t,value:C.displayName||""}))}else m.store.dispatch(_.mG("stringEntity",t,{key:t,value:"CAPTIONS_UNAVAILABLE"}))});
_.Gr.addLowPriorityJob(function(){W.observeShorts()},100);
K=W.player.getPlayerState(W.player.getPresentingPlayerType());K!==1||W.isPlayerStarted||_.Xe().dispatch(Jr(!0));W.updateBackNavContainerWidth();Z=_.Q(W.currentEndpoint,_.uS);((d=Z)==null?0:d.startTimeSeconds)&&W.player.seekTo(Z.startTimeSeconds);if(W.JSC$19640_cinematicController||W.cinematicsInitializeJobId)return v.return();W.cinematicsInitializeJobId=_.Gr.addLowPriorityJob(function(){W.initCinematicController();W.cinematicsInitializeJobId=void 0});
_.Kl(v)})};
_.J.onShortUndoDismiss=function(){var W=this,P=TPm().pop();P!==void 0&&(_.Xm(this,function(){W.showCardWithIndex(P)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.J.onShortsDismiss=function(W){if(W=W.detail.reelDismissalActionRenderer)(W=_.Q(W.onDismissalCompletionRenderer,_.ZHd))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:W}}}),this.scrollAndDismissCard()};
_.J.processReelNonVideoContentDismissalCommand=function(W){var P=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);W=_.Q(W,J4M);this.activeDimissalTimeout=setTimeout(function(){P.scrollAndDismissCard()},Number(W==null?void 0:W.delayMs))};
_.J.scrollAndDismissCard=function(){var W=this,P=this.index;TPm().push(P);_.Xm(this,function(){var x=W.getPlayableNextIndex();x!==null&&(x=W.getActiveReelVideo(x),W.hideCardWithIndex(P),x==null||x.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"}))})};
_.J.hideCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!0};
_.J.showCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!1};
_.J.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.J.activeChanged=function(W){_.Xe().dispatch(_.LK({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:W}}));if(W)document.addEventListener("keydown",_.WM(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var P;(P=this.player)==null||P.sendAbandonmentPing()}var x;(x=this.player)==null||x.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.WM(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.J.graftClientVisualElements=function(){if(this.data){var W=_.YY();_.tZd(W,_.Jn({response:this.reelWatchSequenceResponse}));_.BK(W,this.nextReelVe);_.BK(W,this.prevReelVe);_.p("kevlar_shorts_auto_advance")&&(_.BK(W,this.loopToggleOffVe),_.BK(W,this.loopToggleOnVe));_.BK(W,this.ambientModeToggleVe);_.c7(_.E_(),[this.nextReelVe,this.prevReelVe]);_.p("web_shorts_paused_state_logging")&&_.BK(W,this.reelPlayerPausedStateRendererVe)}};
_.J.graftNvcRenderer=function(){var W,P,x,I,O=this.index<0?(W=this.shortsProcessedPrevSequence)==null?void 0:(P=W[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:P.command:(x=this.shortsProcessedSequence)==null?void 0:(I=x[this.index])==null?void 0:I.command;if(O&&this.isNonVideoContentCommand(O)){W=_.Q(O,_.M3);var B,Y;(W=(B=_.Q(W==null?void 0:W.renderer,_.aRP))==null?void 0:(Y=B.loggingDirectives)==null?void 0:Y.trackingParams)&&_.YY().graftServerVe(W)}};
_.J.setActiveIndex=function(){_.FY().resolve(_.Pv).setActiveIndex(this.index)};
_.J.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.J.lazyUpdateMiniplayerData=function(){var W=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Gr.addLowPriorityJob(function(){W.updateMiniplayerData();W.updateMiniplayerDataJobId=void 0}))};
_.J.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Gr.cancelJob(this.updateMiniplayerDataJobId)};
_.J.updateMiniplayerData=function(){var W,P,x,I=_.FY().resolve(_.kc),O={shortsData:this.getCurrentShort(),previousButtonDisabled:!((W=this.prevButtonData)==null||!W.isDisabled),nextButtonDisabled:!((P=this.nextButtonData)==null||!P.isDisabled),playabilityStatus:(x=this.playerData)==null?void 0:x.playabilityStatus};_.jH(I,O)};
_.J.resetPlayerLocation=function(){var W=this.getPlayer();this.initialPlayerContainer&&W.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.J.movePlayerToVideo=function(W,P){var x=this;P=P===void 0?!0:P;var I=this.getActiveReelVideo(W),O=this.getPlayer();if(I){this.overlayContainer||(this.overlayContainer=_.g(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||O.appendTo(this.overlayContainer.playerContainer,void 0,!0));I.appendChild(this.overlayContainer);var B;(B=this.player)==null||B.setSize(NaN,NaN);this.isActive||_.VE(_.Gr,function(){x.isActive=!0});
O.style.visibility="visible";_.p("reels_web_disable_rtr_tick")||_.p("reels_web_use_pbs_first_shorts")&&W===0||_.CK("r_tr");this.currentPlayerIndex=W;I.appendChild(this.errorScreenContainer);var Y;(Y=this.JSC$19640_cinematicController)==null||_.e1G(Y)}else P?_.Gr.addLowPriorityJob(function(){x.movePlayerToVideo(x.index,!1)}):Math.random()<=_.Wi("web_shorts_error_logging_threshold")&&_.EA(new _.mW("Trying to movePlayerToVideo with undefined container.",{firstAttempt:P,
index:W}))};
_.J.enableFormatFirst=function(W){return _.p("web_enable_format_first")||W.adsOverlay&&_.p("web_enable_format_first_ads_only")||W.reelPlayerOverlayRenderer&&_.p("web_enable_format_first_organic_only")};
_.J.getAspectRatio=function(W){if(W!=null&&W.thumbnail&&this.enableFormatFirst(W))return"--ytd-shorts-player-ratio: "+bH9(W.thumbnail)};
_.J.getBackgroundImage=function(W){if(W!=null&&W.thumbnail)return(W=_.rc(W.thumbnail.thumbnails))?'background-image:url("'+W+'");':"background-color:black;"};
_.J.onPersistentPanelActiveChanged=function(){var W=this.getCurrentShort();if(W&&this.enableFormatFirst(W)&&(W==null?0:W.thumbnail)&&bH9(W.thumbnail)!==.5625){var P;(P=this.player)==null||P.setSize(NaN,NaN)}};
_.J.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.J.moveCinematicsToVideo=function(){var W=_.g(this.hostElement).querySelector("ytd-reel-video-renderer");(W==null?0:W.cinematicContainer)&&W.cinematicContainer!==this.shortsCinematicContainer.parentElement&&W.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.J.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.J.updatePrevButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(W){var P;this.prevButtonData=W=Object.assign({},W,{accessibility:{label:_.KK("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:W.isDisabled||this.index===-(((P=this.shortsProcessedPrevSequence)==null?void 0:P.length)||0),tooltip:this.isUpArrowHidden?"":_.KK("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=W=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.J.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.J.updateNextButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(W){var P;this.nextButtonData=W=Object.assign({},W,{accessibility:{label:_.KK("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:W.isDisabled||this.index===((P=this.shortsProcessedSequence)==null?void 0:P.length),tooltip:_.KK("NEXT_VIDEO_LABEL")||""})}};
_.J.getPlayablePreviousIndex=function(){for(var W,P=this.index-1;P>=-(((W=this.prevShortsSequence)==null?void 0:W.length)||0);P--)if(!TPm().includes(P))return P;return null};
_.J.getIndexInSequence=function(W,P){return W.findIndex(function(x){var I;return((I=_.Q(x.command,_.uS))==null?void 0:I.videoId)===P})};
_.J.handlePrevButtonClick=function(W){var P=this,x,I;return _.y(function(O){x=P.getPlayablePreviousIndex();if(x===null)return O.return();P.gestureType=((I=W)==null?void 0:I.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";x===0&&(P.hidePreviousButtonImmediately=!0);if(P.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){P.transitionToVideoThrottle.fire(x)}),O.return();
P.scrollToVideoThrottle.fire(x);_.Kl(O)})};
_.J.getPlayableNextIndex=function(){for(var W,P=this.index+1;P<(((W=this.shortsProcessedSequence)==null?void 0:W.length)||0);P++)if(!TPm().includes(P))return P;return null};
_.J.handleNextButtonClick=function(W,P){var x=this,I,O;return _.y(function(B){I=x.getPlayableNextIndex();if(I===null)return B.return();I===1&&(x.showPreviousButtonImmediately=!0);x.gestureType=((O=W)==null?void 0:O.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";P&&(x.gestureType=P);if(x.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){x.transitionToVideoThrottle.fire(I)}),B.return();
x.scrollToVideoThrottle.fire(I);_.Kl(B)})};
_.J.handleReelNavigateCommand=function(W,P,x){(W=_.Q(W,Oi3))&&P&&W.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(x)};
_.J.loadVideo=function(W,P){P=P===void 0?!1:P;if(W!==this.currentPlayerIndex){_.Xe().dispatch(Jr(!1));if(this.isAd()&&!P){var x;(x=this.player)==null||x.notifyShortsAdSwipeEvent()}if((P=this.JSC$19640_cinematicController)!=null){var I;(I=P.currentCinematicEffect)==null||I.pause()}if((I=this.JSC$19640_cinematicController)!=null){var O;(O=I.currentCinematicEffect)==null||O.clear()}I=W>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(I));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var B,Y,K,Z;O=W<0?(B=this.shortsProcessedPrevSequence)==null?void 0:(Y=B[this.shortsProcessedPrevSequence.length+W])==null?void 0:Y.command:(K=this.shortsProcessedSequence)==null?void 0:(Z=K[W])==null?void 0:Z.command;this.index=W;this.gestureType||(this.gestureType=I?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
O&&this.isVideoContentCommand(O)&&(this.ytComponentBehavior.resolveCommand(O,{form:{createScreenConfig:{clickedVisualElement:I?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(O&&this.isNonVideoContentCommand(O)){this.currentEndpoint=O;this.data=void 0;B=_.YY();Y=_.Q(O,_.M3);var d,v;(Y=(d=_.Q(Y==null?void 0:Y.renderer,_.aRP))==null?void 0:(v=d.screenLoggingData)==null?void 0:v.screenVeType)&&_.JN(B,Y);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}var m,t;if(((m=this.reelWatchSequenceResponse)==null?0:m.continuationEndpoint)&&((t=this.reelWatchSequenceResponse)==null?0:t.entries)&&W===this.reelWatchSequenceResponse.entries.length-1){var C,z;d={contentPlaybackContext:_.dT({},(z=_.Q((C=this.currentEndpoint)==null?void 0:C.commandMetadata,_.rU))==null?void 0:z.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:d})}var D,w,a;((D=this.reelWatchSequenceResponse)==
null?0:D.prevContinuationEndpoint)&&W===-(((w=this.reelWatchSequenceResponse)==null?void 0:(a=w.prevEntries)==null?void 0:a.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.J.setMiniplayerPreview=function(W){W=(W===void 0?0:W)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var P,x,I=_.FY().resolve(_.kc),O={shortsData:void 0,shortsPreviewThumbnail:W?(P=this.shortsProcessedSequence)==null?void 0:(x=P[W])==null?void 0:x.thumbnail:void 0};_.jH(I,O)};
_.J.updateTitle=function(W){var P,x;W=(W==null?0:W.adPlacements)?"":(x=W==null?void 0:(P=W.videoDetails)==null?void 0:P.title)!=null?x:"";_.Lf(this.hostElement,"yt-update-title",W)};
_.J.registerPanel=function(W){var P=_.FY().resolve(_.m3);if(P){W=_.n(W.engagementPanels||[]);for(var x=W.next();!x.done;x=W.next()){x=x.value;var I=x.engagementPanelSectionListRenderer,O=void 0,B=void 0,Y=void 0,K=void 0,Z=((O=I)==null?void 0:O.targetId)||((B=I)==null?void 0:B.panelIdentifier)||((Y=I)==null?void 0:(K=Y.identifier)==null?void 0:K.tag);O=I=void 0;(O=(I=P).registerPanelContent)==null||O.call(I,Z,x)}}};
_.J.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Xe().dispatch(Jr(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Xe().dispatch(rjf(!1));var W=_.FY().resolve(_.Pv);W.dismissedIndices=[];W.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.FY().resolve(_.kc).close(!0)};
_.J.processAppendReelWatchSequenceContinuationEntriesAction=function(W){var P=this,x;(x=this.intersectionObserver)==null||x.disconnect();W=W.appendReelWatchSequenceContinuationEntriesAction;if(W==null?0:W.entries){var I;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.ju(((I=this.reelWatchSequenceResponse)==null?void 0:I.entries)||[]),_.ju(W.entries)),continuationEndpoint:W.continuationEndpoint})}else if(W==null?0:W.prevEntries){var O;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.ju(((O=this.reelWatchSequenceResponse)==null?void 0:O.prevEntries)||[]),_.ju(W.prevEntries)),prevContinuationEndpoint:W.prevContinuationEndpoint});_.Gr.addLowPriorityJob(function(){P.movePlayerToVideo(P.index);var B;(B=P.getActiveReelVideo(P.index))==null||B.scrollIntoView({block:"nearest",inline:P.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.Gr.addLowPriorityJob(function(){P.observeShorts()},100)};
_.J.processWatchSequence=function(W){var P=this;return W.map(function(x){x=x.command;if(P.isVideoContentCommand(x)){var I=_.Q(x,_.uS);return{reelPlayerOverlayRenderer:_.Q(I==null?void 0:I.overlay,_.bh3),thumbnail:I.thumbnail,command:x}}return P.isNonVideoContentCommand(x)?(I=_.Q(x,_.M3),{reelNonVideoContentRenderer:_.Q(I==null?void 0:I.renderer,_.aRP),command:x}):{command:x}})};
_.J.calculateIntersectionObserverThreshold=function(){if(!_.p("web_shorts_dynamic_intersection_observer_threshold"))return.6;var W=_.g(this.hostElement).querySelector("ytd-reel-video-renderer"),P=1;(W==null?0:W.offsetHeight)&&(W==null?0:W.offsetWidth)&&(P=Math.min(W.offsetHeight,this.shortsContainer.offsetHeight)/W.offsetHeight*(Math.min(W.offsetWidth,this.shortsContainer.offsetWidth)/W.offsetWidth));return Math.round(P*.6*10)/10};
_.J.isVideoContentCommand=function(W){_.FY().resolve(_.Pv);return!!_.Q(W,_.uS)};
_.J.isNonVideoContentCommand=function(W){_.FY().resolve(_.Pv);return!!_.Q(W,_.M3)};
_.J.initCinematicController=function(){var W=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19640_cinematicController=new _.Ol(this.shortsCinematicContainer,this.player);var P,x=_.Q((P=this.data)==null?void 0:P.background,_.jT);_.HHd(this.JSC$19640_cinematicController,x);_.h13(this.JSC$19640_cinematicController,cj3(x));_.w24(this.JSC$19640_cinematicController);_.Gr.addLowPriorityJob(function(){W.moveCinematicsToVideo()})}};
_.J.handleMiniplayerNavigateShorts=function(W){W==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():W==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.J.handleSignalActionToggleShortsPictureInPicture=function(){if(_.FY().resolve(_.kc).pictureInPictureSupported()){var W=_.FY().resolve(_.Pv);if(_.p("web_shorts_pip")){var P=_.FY().resolve(_.kc);W.isShortsPipActive()?P.deactivate():P.isMiniplayerActive()||(_.ug().shortsPipActivation=!0,_.nH3(P))}}else(W=this.player)==null||W.togglePictureInPicture()};
_.J.shouldDisplayReelVideoOverlay=function(W,P){return _.p("web_enable_shorts_new_carousel")?Math.abs(W-P)<2:!0};
_.N1.Object.defineProperties(uX.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.prevEntries)return this.processWatchSequence([].concat(_.ju(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var W=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!W)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var P=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.ju(this.prevShortsSequence.slice(0,P)),[W],_.ju(this.prevShortsSequence.slice(P+
1)))}P=this.index+this.shortsProcessedPrevSequence.length;W.thumbnail=this.shortsProcessedPrevSequence[P].thumbnail;return[].concat(_.ju(this.shortsProcessedPrevSequence.slice(0,P)),[W],_.ju(this.shortsProcessedPrevSequence.slice(P+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var W=this.getCurrentShort();if(!W||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[W];if(W==null||!W.reelNonVideoContentRenderer){var P=this.getIndexInSequence(this.shortsSequence,_.Q(this.currentEndpoint,_.uS).videoId);if(this.index===0&&P!==-1)return this.currentPlayerIndex=this.index=P,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.ju(this.shortsSequence.slice(0,this.index)),[W],_.ju(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){W.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var x,I,O,B;P=((I=_.Q((x=this.shortsProcessedSequence[0])==null?void 0:x.command,_.uS))==null?void 0:I.videoId)===((B=_.Q((O=this.shortsSequence[0])==null?void 0:O.command,_.uS))==null?void 0:B.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.ju(this.shortsProcessedSequence.slice(0,
this.index)),[W],_.ju(this.shortsSequence.slice(P)))}return[W].concat(_.ju(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var W=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;W&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(W)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var W,P;return this.index===((W=this.reelWatchSequenceResponse)==null?void 0:(P=W.entries)==null?void 0:P.length)}var x;return!((x=this.reelWatchSequenceResponse)==null?0:x.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var W;(W=this.delayedActiveIndexUpdateDebouncer)==null||W.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return this.isShortPlayable()||((P=_.Q((W=this.data)==null?void 0:W.watchStatus,_.ihW))==null?void 0:(x=P.style)==null?void 0:x.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var W=this,P=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),x;if((this.data||P)&&(((x=this.data)==null?0:x.engagementPanels)||this.isAd()||P)){P=!1;this.activePanel="shorts-comments-panel";var I;x=_.n(((I=this.data)==null?void 0:I.engagementPanels)||[]);for(I=x.next();!I.done;I=x.next()){I=I.value.engagementPanelSectionListRenderer;var O=void 0,B=void 0,Y=void 0,K=void 0;if((((O=I)==null?void 0:(B=O.identifier)==
null?void 0:B.tag)||((Y=I)==null?void 0:Y.targetId)||((K=I)==null?void 0:K.panelIdentifier))===this.activePanel){P=!0;break}}if(this.isPersistentPanelActive){var Z=_.FY().resolve(_.m3);_.VE(_.Gr,function(){Z.showPanel(W.activePanel,void 0,void 0,void 0,null)},100)}var d;
x=[].concat(_.ju(Object.values(((d=this.data)==null?void 0:d.engagementPanels)||{})));if(_.p("enable_preview_panel_for_shorts_search_suggested_action")){var v,m,t,C,z;((C=_.Q((v=this.data)==null?void 0:(m=v.overlay)==null?void 0:(t=m.reelPlayerOverlayRenderer)==null?void 0:t.metapanel,_.chw))==null?void 0:(z=C.metadataItems)==null?void 0:z.find(function(D){var w,a;return((w=_.Q(D,ng6))==null?void 0:(a=w.icon)==null?void 0:a.iconType)==="SEARCH"}))!==void 0&&x.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}d=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);v=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return d===void 0&&v===void 0||(d==null?0:d.isDisabled)||(v==null?void 0:v.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!P?(P=x==null?void 0:x.findIndex(function(D){var w,
a;return((w=D.engagementPanelSectionListRenderer)==null?void 0:(a=w.identifier)==null?void 0:a.tag)==="shorts-comments-panel"}),P===-1||P===void 0||x!=null&&x.splice(P,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.KK("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.KK("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:_.KK("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.KK("LEARN_MORE",void 0,"Learn more"),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/9706180",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://support.google.com/youtube/answer/9706180"}}}]}}}]}}]}},identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"},loggingDirectives:{clientVeSpec:{uiType:139722}},visibility:"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"}}].concat(_.ju(Object.values(x||
{})))):x}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.shortsProcessedSequence)==null?void 0:W[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var W=this,P,x,I;if((P=this.playerData)==null?0:(x=P.playabilityStatus)==null?0:(I=x.errorScreen)==null?0:I.playerInterstitialRenderer)return _.Gr.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.playerData.playabilityStatus.errorScreen;
var O,B;return((O=this.data)==null?void 0:O.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((B=this.data)==null?0:B.watchStatus)&&_.Q(this.data.watchStatus,_.R$W)?(_.Gr.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.N1.Object.defineProperties(uX,{template:{configurable:!0,enumerable:!0,get:function(){if(y44===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);y44=W}W=y44;return W}}});
uX.prototype.onNextButtonDataChange=uX.prototype.onNextButtonDataChange;uX.prototype.onPrevButtonDataChange=uX.prototype.onPrevButtonDataChange;uX.prototype.onPersistentPanelActiveChanged=uX.prototype.onPersistentPanelActiveChanged;uX.prototype.lazyUpdateMiniplayerData=uX.prototype.lazyUpdateMiniplayerData;uX.prototype.onShortsPipActiveChanged=uX.prototype.onShortsPipActiveChanged;uX.prototype.setActiveIndex=uX.prototype.setActiveIndex;uX.prototype.graftNvcRenderer=uX.prototype.graftNvcRenderer;
uX.prototype.graftClientVisualElements=uX.prototype.graftClientVisualElements;uX.prototype.onActiveChanged=uX.prototype.onActiveChanged;uX.prototype.onShortsDismiss=uX.prototype.onShortsDismiss;uX.prototype.onShortUndoDismiss=uX.prototype.onShortUndoDismiss;uX.prototype.playerDataChanged=uX.prototype.playerDataChanged;uX.prototype.afterPlayerStarted=uX.prototype.afterPlayerStarted;uX.prototype.unhideCurrentOverlay=uX.prototype.unhideCurrentOverlay;uX.prototype.onServiceRequestCompleted=uX.prototype.onServiceRequestCompleted;
uX.prototype.engagementPanelsChanged=uX.prototype.engagementPanelsChanged;uX.prototype.onFullscreenChange=uX.prototype.onFullscreenChange;uX.prototype.onResize=uX.prototype.onResize;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],uX.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.zV.YtPageBehavior),_.l("design:type",Object)],uX.prototype,"ytPageBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],uX.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.Db),_.l("design:type",Object)],uX.prototype,"ironResizableBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],uX.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],uX.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],uX.prototype,"ytdReduxBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],uX.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"playerData",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"reelWatchSequenceResponse",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"cachedReelWatchSequenceResponse",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"currentEndpoint",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"nextButtonData",void 0);
_.f([_.c(),_.l("design:type",Object)],uX.prototype,"prevButtonData",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"isPreviousPageShorts",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"index",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"delayedActiveIndex",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"playablePreviousIndex",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"player",void 0);
_.f([_.c(),_.l("design:type",Object)],uX.prototype,"isPlayerPaused",void 0);_.f([_.c({selector:Uq9}),_.l("design:type",Object)],uX.prototype,"isPlayerStarted",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"intersectionObserver",void 0);_.f([_.c(),_.l("design:type",Number)],uX.prototype,"cinematicsInitializeJobId",void 0);_.f([_.c(),_.l("design:type",Number)],uX.prototype,"updateMiniplayerDataJobId",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"fitToVisibleBounds",void 0);
_.f([_.c(),_.l("design:type",Object)],uX.prototype,"pageSubtype",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],uX.prototype,"enablePreviousContinuation",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"shortsPipEnabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"isDark",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"shortsViewTransitions",void 0);
_.f([_.c({selector:_.vO,reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"isFullscreen",void 0);_.f([_.c({selector:_.m0,reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"isShortsPipActive",void 0);_.f([_.BM("#shorts-inner-container"),_.l("design:type",HTMLElement)],uX.prototype,"shortsInnerContainer",void 0);_.f([_.BM("#back-nav-button ytd-button-renderer"),_.l("design:type",_.UN)],uX.prototype,"backNavButton",void 0);
_.f([_.BM("#shorts-container"),_.l("design:type",HTMLElement)],uX.prototype,"shortsContainer",void 0);_.f([_.R2("error-screen"),_.l("design:type",HTMLElement)],uX.prototype,"errorScreenContainer",void 0);_.f([_.R2("player"),_.l("design:type",Object)],uX.prototype,"playerElement",void 0);_.f([_.R2("shorts-cinematic-container"),_.l("design:type",HTMLElement)],uX.prototype,"shortsCinematicContainer",void 0);
_.f([_.R2("initial-player-container"),_.l("design:type",HTMLElement)],uX.prototype,"initialPlayerContainer",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"buttonOverride",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"anchoredPanelActive",void 0);_.f([_.c(),_.l("design:type",String)],uX.prototype,"activePanel",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"isActive",void 0);
_.f([_.c({selector:kz9,reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"smallScreenPersistentPanel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"isPersistentPanelActive",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"smallScreenSqueezeBack",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"enableScrollIntoViewCenter",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"formatFirst",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"enableFlexibleOverlay",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"panelContainer",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"overlayContainer",void 0);_.f([_.c(),_.l("design:type",Object)],uX.prototype,"isShortsInitialized",void 0);_.f([_.H("reelWatchSequenceResponse"),_.l("design:type",Object),_.l("design:paramtypes",[])],uX.prototype,"prevShortsSequence",null);
_.f([_.H("data","prevShortsSequence"),_.l("design:type",Object),_.l("design:paramtypes",[])],uX.prototype,"shortsProcessedPrevSequence",null);_.f([_.H("reelWatchSequenceResponse"),_.l("design:type",Object),_.l("design:paramtypes",[])],uX.prototype,"shortsSequence",null);_.f([_.H("data","shortsSequence"),_.l("design:type",Object),_.l("design:paramtypes",[])],uX.prototype,"shortsProcessedSequence",null);
_.f([_.c({reflectToAttribute:!0}),_.H("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uX.prototype,"isUpArrowHidden",null);_.f([_.c({reflectToAttribute:!0}),_.H("reelWatchSequenceResponse","index","endOfNextContinuation"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uX.prototype,"isDownArrowHidden",null);
_.f([_.c(),_.H("index"),_.l("design:type",Number),_.l("design:paramtypes",[])],uX.prototype,"activeIndex",null);_.f([_.H("isShortPlayable","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uX.prototype,"shouldRenderOfflineContent",null);_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"onResize",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],uX.prototype,"anchoredEngagementPanels",null);
_.f([_.c(),_.l("design:type",Object)],uX.prototype,"watchWhileEngagementPanels",void 0);_.f([_.OZ("isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"onFullscreenChange",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"engagementPanelsChanged",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],uX.prototype,"onServiceRequestCompleted",null);_.f([_.H("data","shortsSequence","index"),_.l("design:type",Object),_.l("design:paramtypes",[])],uX.prototype,"activeReel",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"unhideCurrentOverlay",null);
_.f([_.OZ("isPlayerStarted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"afterPlayerStarted",null);_.f([_.H("playerData","reelWatchSequenceResponse","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],uX.prototype,"errorScreen",null);_.f([_.H("errorScreen"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uX.prototype,"hasError",null);
_.f([_.OZ("playerData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],uX.prototype,"playerDataChanged",null);_.f([_.I7("yt-dismissible-item-undo-feedback"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"onShortUndoDismiss",null);_.f([_.I7("yt-disable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],uX.prototype,"onShortsDismiss",null);
_.f([_.K_("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"onActiveChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"graftClientVisualElements",null);_.f([_.OZ("currentPlayerIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"graftNvcRenderer",null);
_.f([_.OZ("index"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"setActiveIndex",null);_.f([_.OZ("isShortsPipActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"onShortsPipActiveChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"lazyUpdateMiniplayerData",null);
_.f([_.c(),_.l("design:type",Object)],uX.prototype,"onOverlayDensityChanged",void 0);_.f([_.OZ("isPersistentPanelActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"onPersistentPanelActiveChanged",null);_.f([_.OZ("index","data","isUpArrowHidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"onPrevButtonDataChange",null);
_.f([_.OZ("index","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uX.prototype,"onNextButtonDataChange",null);uX=_.f([_.U({is:"ytd-shorts"})],uX);_.jf.registerService(_.O$7,uX);
_.Az();
}catch(e){_._DumpException(e)}
try{
_.CU("JzFVk");
var aT4=function(W){return _.u("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},cDv(W.data.ctaButton,{buttonViewModel:{}}),_.u(_.mQ,{text:W.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var byy;var kx6;var wI=function(){return _.b.apply(this,arguments)||this};
_.A(wI,_.b);wI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wI.prototype.computeBlueBottomLink=function(W){return W};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wI.prototype,"data",void 0);_.f([_.c({computed:"computeIcon_(data.bottomIcon)"}),_.l("design:type",String)],wI.prototype,"bottomIcon",void 0);
_.f([_.c({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.l("design:type",Boolean)],wI.prototype,"enableBlueBottomLink",void 0);wI=_.f([_.U({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],wI);
_.X(wI,"ytd-web-answer-renderer",function(){if(kx6!==void 0)return kx6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return kx6=W},{mode:_.F4("kevlar_poly_si_batch_j035")?1:2});var Uef;var hB=function(){var W=_.b.apply(this,arguments)||this;W.hasChipBar=!1;return W};
_.A(hB,_.b);hB.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}}};
hB.prototype.computeHasChipBar=function(W){return!(W==null||!W.chipBar)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],hB.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.l("design:type",Object)],hB.prototype,"hasChipBar",void 0);hB=_.f([_.U({is:"ytd-search-header-renderer",disableElementRegistration:!0})],hB);
_.X(hB,"ytd-search-header-renderer",function(){if(Uef!==void 0)return Uef;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Uef=W},{mode:1});var X$4;var H8=function(){return _.b.apply(this,arguments)||this};
_.A(H8,_.b);H8.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],H8.prototype,"data",void 0);H8=_.f([_.U({disableElementRegistration:!0,is:"ytd-page-continuation"})],H8);
_.X(H8,"ytd-page-continuation",function(){if(X$4!==void 0)return X$4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return X$4=W},{mode:1});var fT2;var Nsd;var lTf;var eN=function(){return _.b.apply(this,arguments)||this};
_.A(eN,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eN.prototype,"data",void 0);eN=_.f([_.U({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],eN);
_.X(eN,"ytd-watch-card-one-vs-one-event",function(){if(lTf!==void 0)return lTf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return lTf=W},{mode:1});var c8=function(){return _.b.apply(this,arguments)||this};
_.A(c8,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],c8.prototype,"data",void 0);c8=_.f([_.U({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],c8);
_.X(c8,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Nsd!==void 0)return Nsd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Nsd=W},{mode:1});var Ts2;var ab=function(){return _.b.apply(this,arguments)||this};
_.A(ab,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ab.prototype,"data",void 0);ab=_.f([_.U({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],ab);
_.X(ab,"ytd-banner-and-box-hero-image-renderer",function(){if(Ts2!==void 0)return Ts2;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ts2=W},{mode:1});var rDy;var by=function(){var W=_.b.apply(this,arguments)||this;W.modern=_.p("web_modern_buttons");return W};
_.A(by,_.b);by.prototype.computeIcon=function(){var W,P,x=(W=this.data)==null?void 0:(P=W.icon)==null?void 0:P.iconType;if(x)return _.PW(x)};
by.prototype.computeButtonShape=function(){var W;return{buttonText:_.kz((W=this.data)==null?void 0:W.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.N1.Object.defineProperties(by.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"}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],by.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],by.prototype,"modern",void 0);_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],by.prototype,"buttonColor",null);
by=_.f([_.U({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],by);
_.X(by,"ytd-call-to-action-button-renderer",function(){if(rDy!==void 0)return rDy;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rDy=W},{mode:1});var iyL;var kr=function(){return _.b.apply(this,arguments)||this};
_.A(kr,_.b);kr.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.g(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Tm(this.data.leftThumbnail.thumbnails,216)+")")};
kr.prototype.onLeftThumbnailChanged=kr.prototype.onLeftThumbnailChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kr.prototype,"data",void 0);_.f([_.OZ("data.leftThumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kr.prototype,"onLeftThumbnailChanged",null);kr=_.f([_.U({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],kr);
_.X(kr,"ytd-collage-hero-image-renderer",function(){if(iyL!==void 0)return iyL;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return iyL=W},{mode:1});var Rzv;var UD=function(){return _.b.apply(this,arguments)||this};
_.A(UD,_.b);UD.prototype.computeStyle=function(W){return W};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UD.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],UD.prototype,"componentStyle",void 0);UD=_.f([_.U({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],UD);
_.X(UD,"ytd-single-hero-image-renderer",function(){if(Rzv!==void 0)return Rzv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Rzv=W},{mode:1});var F$3;var Xk=function(){return _.b.apply(this,arguments)||this};
_.A(Xk,_.b);_.J=Xk.prototype;
_.J.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:_.p("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.J.computeSubtitle=function(W){if(this.data){var P;if(this.data.upcomingEventData){W=_.kz(W.subtitle);var x=Number(this.data.upcomingEventData.startTime);isNaN(x)||(P=_.bx(_.aS(W,x)))}else P=W.subtitle;return P}};
_.J.onHeroTap=function(W){W.preventDefault();var P=this.data&&this.data.navigationEndpoint;!P||!_.Nx(_.c5(W),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Nx(_.c5(W),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.p("kevlar_watchcard_hero_video_renderer_killswitch")?_.Lf(this.hostElement,"yt-navigate",{navigationEndpoint:P}):this.ytComponentBehavior.resolveCommand(P))};
_.J.computeHeroTabIndex=function(W){return W&&W.simpleText?-1:0};
_.J.computeHeroRole=function(W){return W&&W.simpleText?"":"link"};
_.J.computeIsReminderButtonPresent=function(W){return!(!W||!W.reminderButton)};
_.J.computeHideBottomItems=function(W){return!(this.computeIsReminderButtonPresent(W)||W.subtitle)};
_.J.dataChanged=function(){var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),P;((P=_.Q(W==null?void 0:W.commandMetadata,_.zN))==null?0:P.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W)};
Xk.prototype.dataChanged=Xk.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Xk.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Xk.prototype,"data",void 0);
_.f([_.c({computed:"computeSubtitle(data)"}),_.l("design:type",String)],Xk.prototype,"subtitle",void 0);_.f([_.c({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Xk.prototype,"isReminderButtonPresent",void 0);_.f([_.c({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Xk.prototype,"hideBottomItems",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xk.prototype,"dataChanged",null);Xk=_.f([_.U({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Xk);
_.X(Xk,"ytd-watch-card-hero-video-renderer",function(){if(F$3!==void 0)return F$3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return F$3=W},{mode:1});var qsm;var f$=function(){return _.b.apply(this,arguments)||this};
_.A(f$,_.b);_.J=f$.prototype;_.J.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"}}}};
_.J.computeTitleBadges=function(W){return W?[W]:[]};
_.J.computeHeaderStyle=function(W){return W?W.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.J.computeAvatarAriaLabel=function(W){if(W){var P,x,I,O;return(O=(P=W.avatar)==null?void 0:(x=P.accessibility)==null?void 0:(I=x.accessibilityData)==null?void 0:I.label)!=null?O:_.kz(W==null?void 0:W.title)}};
_.J.computeAvatarHeight=function(W){return W==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.J.computeBadgeRowClass=function(W){return(W==null?0:W[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],f$.prototype,"data",void 0);_.f([_.c({computed:"computeTitleBadges(data.titleBadge)"}),_.l("design:type",Array)],f$.prototype,"titleBadges",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.l("design:type",String)],f$.prototype,"headerStyle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.l("design:type",String)],f$.prototype,"badgeRowClass",void 0);f$=_.f([_.U({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],f$);
_.X(f$,"ytd-watch-card-rich-header-renderer",function(){if(qsm!==void 0)return qsm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return qsm=W},{mode:1});var L$4;var W2v;var NZ=function(){return _.b.apply(this,arguments)||this};
_.A(NZ,_.b);NZ.prototype.onMetadataTap=function(W){var P=this.data&&this.data.navigationEndpoint;P&&!_.Nx(_.c5(W),this.hostElement,["A".toString()])&&_.Lf(this.hostElement,"yt-navigate",{endpoint:P})};
_.N1.Object.defineProperties(NZ.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 W;if(this.data.upcomingEventData){var P=_.kz(this.data.subtitle),x=Number(this.data.upcomingEventData.startTime);isNaN(x)||(W=_.bx(_.aS(P,x)))}else W=this.data.subtitle;return W}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],NZ.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data.style"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],NZ.prototype,"isCondensed",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],NZ.prototype,"subtitle",null);
NZ=_.f([_.U({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],NZ);
_.X(NZ,"ytd-watch-card-compact-video-renderer",function(){if(W2v!==void 0)return W2v;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return W2v=W},{mode:1});var PvQ;var ly=function(){return _.b.apply(this,arguments)||this};
_.A(ly,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ly.prototype,"data",void 0);ly=_.f([_.U({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],ly);
_.X(ly,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(PvQ!==void 0)return PvQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return PvQ=W},{mode:1});var T3=function(){return _.b.apply(this,arguments)||this};
_.A(T3,_.b);T3.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}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],T3.prototype,"ytRendererStamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],T3.prototype,"data",void 0);T3=_.f([_.U({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],T3);
_.X(T3,"ytd-vertical-watch-card-list-renderer",function(){if(L$4!==void 0)return L$4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return L$4=W},{mode:1});var xq9;var rI=function(){var W=_.b.apply(this,arguments)||this;W.ariaExpanded="false";return W};
_.A(rI,_.b);_.J=rI.prototype;_.J.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.J.dataChanged=function(){var W;this.currentSeasonIndex=((W=this.data)==null?void 0:W.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.J.computeEpisodesInfo=function(W,P,x){if(W!==void 0&&P.length===W.length)return W[x]};
_.J.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.J.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.J.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.J.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.J.getUppercaseSimpleString=function(W){return this.ytRendererBehavior.getSimpleString(W).toUpperCase()};
_.J.updateCurrentSeasonIndexFromBinding=function(W){this.currentSeasonIndex=W.detail.value};
rI.prototype.onIronOverlayClosed=rI.prototype.onIronOverlayClosed;rI.prototype.currentSeasonIndexChanged=rI.prototype.currentSeasonIndexChanged;rI.prototype.dataChanged=rI.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rI.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",String)],rI.prototype,"label",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],rI.prototype,"currentSeasonIndex",void 0);_.f([_.c({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.l("design:type",Object)],rI.prototype,"episodesInfo",void 0);_.f([_.c({value:"false"}),_.l("design:type",Object)],rI.prototype,"ariaExpanded",void 0);_.f([_.BM("#lists"),_.l("design:type",Object)],rI.prototype,"lists",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rI.prototype,"dataChanged",null);_.f([_.K_("currentSeasonIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rI.prototype,"currentSeasonIndexChanged",null);_.f([_.I7("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],rI.prototype,"onIronOverlayClosed",null);
rI=_.f([_.U({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],rI);
_.X(rI,"ytd-watch-card-section-dropdown-renderer",function(){if(xq9!==void 0)return xq9;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return xq9=W},{mode:1});var IJm;var iy=function(){var W=_.b.apply(this,arguments)||this;W.isSearch=!1;return W};
_.A(iy,_.b);iy.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}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],iy.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],iy.prototype,"isSearch",void 0);iy=_.f([_.U({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],iy);
_.X(iy,"ytd-watch-card-section-sequence-renderer",function(){if(IJm!==void 0)return IJm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return IJm=W},{mode:1});var cDv=_.CC({buttonViewModel:_.cq});_.ql(aT4);_.WF(aT4,"ytd-button-banner-view-model",{propNames:["data"]});var Rb=function(){var W=_.b.apply(this,arguments)||this;W.isSearch=!1;return W};
_.A(Rb,_.b);
Rb.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"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Rb.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],Rb.prototype,"rounded",void 0);_.f([_.c(),_.l("design:type",Object)],Rb.prototype,"isSearch",void 0);
Rb=_.f([_.U({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Rb);
_.X(Rb,"ytd-universal-watch-card-renderer",function(){if(fT2!==void 0)return fT2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return fT2=W},{mode:1});var OHv;_.lq(_.kl(function(W){var P=W.data;var x;W=!((x=_.FY().resolve(_.Rl(_.hF)))==null||!x());x={};return _.u("overview-message-view-model",{class:_.O4("ytwOverviewMessageViewModelHost",(x.ytwOverviewMessageViewModelDarkBackground=W,x.ytwOverviewMessageViewModelLightBackground=!W,x))},_.u(_.V,{cond:function(){return P().primaryImage},
then:function(I){return _.u(_.bq,{data:I,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.u(_.V,{cond:function(){return P().primaryText},
then:function(){return _.u("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.u(_.mQ,{text:function(){return P().primaryText}}))}}),_.u(_.V,{cond:function(){return P().secondaryText},
then:function(){return _.u("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.u(_.mQ,{text:function(){return P().secondaryText}}))}}))},"zi"),"overview-message-view-model",{props:{data:_.cv}});_.WF(_.gvc,"ytd-overview-answer-view-model",{propNames:["data"]});var Fk=function(){return _.b.apply(this,arguments)||this};
_.A(Fk,_.b);Fk.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"}}}};
Fk.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],Fk.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Fk.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Fk.prototype,"isSearch",void 0);
Fk=_.f([_.U({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Fk);
_.X(Fk,"ytd-secondary-search-container-renderer",function(){if(OHv!==void 0)return OHv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return OHv=W},{mode:1});var Jj4;var qZ=function(){var W=_.b.apply(this,arguments)||this;W.renderSecondarySearchContainer=!1;W.isSearch=!1;W.isSearchDova=_.p("dova_on_search");return W};
_.A(qZ,_.b);_.J=qZ.prototype;_.J.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.J.created=function(){var W=this;this.boundStampSecondarySearchContainerIfFits=function(){W.stampSecondarySearchContainerIfFits()};
_.MR("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.J.computeIsSearchFrictionPage=function(W){var P,x,I,O,B;W=W==null?void 0:(P=W.primaryContents)==null?void 0:(x=P.sectionListRenderer)==null?void 0:(I=x.contents)==null?void 0:(O=I[0])==null?void 0:(B=O.itemSectionRenderer)==null?void 0:B.contents;if(!W)return!1;P=_.n(W);for(x=P.next();!x.done;x=P.next())if(I=void 0,(I=x.value)==null?0:I.searchFrictionViewModel)return!0;return!1};
_.J.computeShowSecondaryColumn=function(W,P){return!!(P&&P.secondaryContents&&W)};
_.J.activeChanged=function(){var W=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.WM(this,this.debounceStampSecondarySearchContainerIfFits)),_.gY(function(){W.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.WM(this,this.debounceStampSecondarySearchContainerIfFits))};
_.J.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.J.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.J.debounceStampSecondarySearchContainerIfFits=function(){_.De(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.J.onRetrieveLocation=function(W,P){P.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);W.stopPropagation()};
_.J.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
qZ.prototype.dataChanged=qZ.prototype.dataChanged;qZ.prototype.onRetrieveLocation=qZ.prototype.onRetrieveLocation;qZ.prototype.persistentGuideChanged=qZ.prototype.persistentGuideChanged;qZ.prototype.activeChanged=qZ.prototype.activeChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],qZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.h(_.Db),_.l("design:type",Object)],qZ.prototype,"ironResizableBehavior",void 0);_.f([_.c(),_.l("design:type",Boolean)],qZ.prototype,"active",void 0);_.f([_.c(),_.l("design:type",Object)],qZ.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.p("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],qZ.prototype,"useBiggerThumbs",void 0);_.f([_.c({reflectToAttribute:!0,value:function(){return _.Pi("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],qZ.prototype,"biggerThumbsStyle",void 0);_.f([_.c(),_.l("design:type",Object)],qZ.prototype,"renderSecondarySearchContainer",void 0);_.f([_.c({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.l("design:type",Boolean)],qZ.prototype,"showSecondaryColumn",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.l("design:type",Boolean)],qZ.prototype,"isSearchFrictionPage",void 0);
_.f([_.c(),_.l("design:type",Object)],qZ.prototype,"isSearch",void 0);_.f([_.c(),_.l("design:type",Object)],qZ.prototype,"isSearchDova",void 0);_.f([_.OZ("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qZ.prototype,"activeChanged",null);_.f([_.OZ("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qZ.prototype,"persistentGuideChanged",null);
_.f([_.I7("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],qZ.prototype,"onRetrieveLocation",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qZ.prototype,"dataChanged",null);qZ=_.f([_.U({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],qZ);
_.X(qZ,"ytd-two-column-search-results-renderer",function(){if(Jj4!==void 0)return Jj4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Jj4=W},{mode:1});var L$=function(){var W=_.b.apply(this,arguments)||this;W.hasSearchHeader=!1;W.hasSecondaryContent=!1;W.hasBiggerThumbs=_.p("enable_desktop_search_bigger_thumbs");W.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return W};
_.A(L$,_.b);_.J=L$.prototype;_.J.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:_.Md(["aa","eocs"])}}};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.loadPage_=function(W){this.initCsi();W&&(this.data=W,_.MR("REFINEMENTS_TUPLE",["FromSearchResponse",W.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.fD(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.J.initCsi=function(){_.A5("results",["ol","cpt"])};
_.J.updateTitle=function(){var W=_.hz(window.location.href,"q");W||(W=_.hz(window.location.href,"search_query"));_.Lf(this.hostElement,"yt-update-title",W||"")};
_.J.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.J.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.p("web_srp_data_changed_terminate_imp_killswitch")||_.W7(this.hostElement,"yt-terminate-video-preview-action")};
_.J.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.J.computeHasSearchHeader=function(W){var P;W=W==null?void 0:(P=W.header)==null?void 0:P.searchHeaderRenderer;return!!W&&(!!W.searchFilterButton||!!W.chipBar)};
_.J.computeHasSecondaryContent=function(W){var P,x;return!!(W==null?0:(P=W.contents)==null?0:(x=P.twoColumnSearchResultsRenderer)==null?0:x.secondaryContents)};
_.N1.Object.defineProperties(L$,{template:{configurable:!0,enumerable:!0,get:function(){if(byy===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);byy=W}W=byy;return W}}});
L$.prototype.onReloadContinuationFinish=L$.prototype.onReloadContinuationFinish;L$.prototype.dataChanged=L$.prototype.dataChanged;_.f([_.h(_.zV.YtPageBehavior),_.l("design:type",Object)],L$.prototype,"ytPageBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],L$.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],L$.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],L$.prototype,"data",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],L$.prototype,"monitorScroll",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],L$.prototype,"hasSearchHeader",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],L$.prototype,"hasSecondaryContent",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],L$.prototype,"hasBiggerThumbs",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L$.prototype,"dataChanged",null);
_.f([_.I7("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L$.prototype,"onReloadContinuationFinish",null);L$=_.f([_.U({is:"ytd-search"})],L$);_.jf.registerService(_.IaW,L$);
_.Az();
}catch(e){_._DumpException(e)}
try{
_.CU("h8y2qb");
var Uhf=function(W){if(W=_.sAA(W)){var P;(P=W.sources)!=null&&P[0]?(P=_.msd(W),P=P<1?"VERTICAL":P>1?"HORIZONTAL":"SQUARE"):P=void 0;return P}},GV=function(W){_.pb.call(this,"upload");
this.opts.query=W},fX4=function(W,P){return _.u(XN9,{data:W,
onYtNavigate:P})},N46=function(W,P){return _.Jb(W.entities,"pageHeaderEntity",P)},T44=function(W,P){return W.map(function(x){if(x.tabRenderer)return lXM(x.tabRenderer);
if(x.expandableTabRenderer&&P){var I=x.expandableTabRenderer;return{customTabRenderable:function(){return P(I)}}}return{}})},lXM=function(W){return{identifier:W.tabIdentifier,
aTagConfig:_.Gm({innertubeCommand:W.endpoint,forceNewState:!0}),title:W.title,selected:W.selected,disabled:W.unselectable,icon:W.icon}},rtm=function(W){return _.LK({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:W})},iYy=function(W){if(!_.qx(document,"gtm-noscript")){var P=document.createElement("noscript");
P.id="gtm-noscript";P.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+W+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(P)}};_.J8(GV,_.pb);GV.prototype.JSC$7975_setLabel=function(W){GV.superClass_.JSC$7975_setLabel.call(this,W);return this};
GV.prototype.addUploadMetadata=function(W,P){GV.superClass_.addUploadMetadata.call(this,W,P);return this};var Re6=function(W){if(W!=="youtubebanner"&&W!=="youtube-channel-banner")throw Error("Ul");GV.call(this,W)};
_.A(Re6,GV);Re6.prototype.JSC$7975_setLabel=function(W){GV.prototype.JSC$7975_setLabel.call(this,W);return this};
Re6.prototype.addUploadMetadata=function(W,P){GV.prototype.addUploadMetadata.call(this,W,P);return this};var Fdy=[_.Db,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(W){_.VS(W).path[0]!==this&&(this.resetLayout(),W.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var W=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Bz(this._layoutDebouncer,_.dc,W);_.nh(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var W=this;requestAnimationFrame(function(){W.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},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 qKv=[_.OEk,{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(W,P){var x=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[W];if(!x)throw new ReferenceError(this._getUndefinedMsg(W));W=this._boundEffect(x,P||{});W.setUp();return W},
_effectsChanged:function(W,P,x){this._tearDownEffects();W&&x&&(W.split(" ").forEach(function(I){var O;I!==""&&((O=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[I])?this._effects.push(this._boundEffect(O,P[I])):console.warn(this._getUndefinedMsg(I)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(W,P){P=P||{};var x=parseFloat(P.startsAt||0),I=parseFloat(P.endsAt||1),O=I-x,B=function(){};
I=x===0&&I===1?W.run:function(Y,K){W.run.call(this,Math.max(0,(Y-x)/O),K)};
return{setUp:W.setUp?W.setUp.bind(this,P):B,run:W.run?I.bind(this):B,tearDown:W.tearDown?W.tearDown.bind(this):B}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(W){W.setUp()!==!1&&this._effectsRunFn.push(W.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(W){W.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(W,P){this._effectsRunFn&&this._effectsRunFn.forEach(function(x){x(W,P)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var W=this._clampedScrollTop;this._updateScrollState(W);this.threshold>0&&this._setThresholdTriggered(W>=this.threshold)}},
_getDOMRef:function(W){console.warn("_getDOMRef","`"+W+"` is undefined")},
_getUndefinedMsg:function(W){return"Scroll effect `"+W+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+W+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Vl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(W){var P={};W=parseFloat(W.scalar);P.background=this._getDOMRef("background");P.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");P.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");P.deltaBg=P.backgroundFrontLayer.offsetHeight-P.background.offsetHeight;P.deltaBg===0?(isNaN(W)&&(W=.8),P.deltaBg=(this._dHeight||0)*W):(isNaN(W)&&(W=
1),P.deltaBg*=W);this._fxParallaxBackground=P},
run:function(W){var P=this._fxParallaxBackground;this.transform("translate3d(0px, "+P.deltaBg*Math.min(1,W)+"px, 0px)",P.backgroundFrontLayer);P.backgroundRearLayer&&this.transform("translate3d(0px, "+P.deltaBg*Math.min(1,W)+"px, 0px)",P.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Ld3;var Wjy;var PNm=function(){};
_.J=PNm.prototype;_.J._scrollTargetChanged=function(){};
_.J.scroll=function(){};
_.J._isValidScrollTarget=function(){};
_.J._toggleScrollListener=function(){};
_.J.toggleScrollListener=function(){};
_.J.createEffect=function(){};
_.J._effectsChanged=function(){};
_.J._layoutIfDirty=function(){};
_.J._boundEffect=function(){};
_.J._setUpEffect=function(){};
_.J._tearDownEffects=function(){};
_.J._runEffects=function(){};
_.J._scrollHandler=function(){};
_.J._scrollStateChanged=function(){};
_.J._getUndefinedMsg=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J._appResetLayoutHandler=function(){};
_.J.resetLayout=function(){};
_.J._notifyLayoutChanged=function(){};
_.J._notifyDescendantResize=function(){};
_.J._setThresholdTriggered=function(){};
PNm=_.vM({_template:function(){if(Wjy!==void 0)return Wjy;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Ld3===void 0&&(Ld3=document.createElement("template"));var I=Ld3;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return Wjy=W},
is:"tp-yt-app-header",behaviors:[qKv,Fdy],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 W=_.VS(this.$.slot).getDistributedNodes(),P=0,x;x=W[P];P++)if(x.nodeType===Node.ELEMENT_NODE)if(x.hasAttribute("sticky")){this._stickyElRef=x;break}else this._stickyElRef||(this._stickyElRef=x);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var W=this._clampedScrollTop,P=this._height===0||W===0,x=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;P||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();P?this._updateScrollState(W,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=x}},
_updateScrollState:function(W,P){if(this._height!==0){var x=0,I=this._top;var O=this._maxHeaderTop;var B=W-this._lastScrollTop,Y=Math.abs(B),K=W>this._lastScrollTop,Z=performance.now();this._mayMove()&&(x=this._clamp(this.reveals?I+B:W,0,O));W>=this._dHeight&&(x=this.condenses&&!this.fixed?Math.max(this._dHeight,x):x,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Y<100){if(Z-this._initTimestamp>300||this._wasScrollingDown!==K)this._initScrollTop=W,this._initTimestamp=Z;W>=O&&
(Math.abs(this._initScrollTop-W)>30||Y>10?(K&&W>=O?x=O:!K&&W>=this._dHeight&&(x=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((x-I)/(B/(Z-this._lastTimestamp)),0,300)+"ms"):x=this._top)}O=this._dHeight===0?W>0?1:0:x/this._dHeight;P||(this._lastScrollTop=W,this._top=x,this._wasScrollingDown=K,this._lastTimestamp=Z);if(P||O!==this._progress||I!==x||W===0)this._progress=O,this._runEffects(O,x),this._transformHeader(x)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(W){this.translate3d(0,-W+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&W>=this._stickyElTop?Math.min(W,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(W,P,x){return Math.min(x,Math.max(P,W))},
_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),_.VS(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(W){switch(W){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.VS(this).querySelector("[main-title]");case "condensedTitle":return _.VS(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var xk2;var IY9;_.vM({_template:function(){if(IY9!==void 0)return IY9;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;xk2===void 0&&(xk2=document.createElement("template"));var I=xk2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return IY9=W},
is:"tp-yt-app-header-layout",behaviors:[Fdy],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.VS(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var W=this.header;if(this.isAttached&&W){this.$.wrapper.classList.remove("initializing");W.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)W.style.left=
"",W.style.right="";else{var P=this.getBoundingClientRect(),x=document.documentElement.clientWidth-P.right;W.style.left=P.left+"px";W.style.right=x+"px"}P=this.$.contentContainer.style;x=W.offsetHeight;W.fixed&&!W.condenses&&this.hasScrollingRegion?(P.marginTop=x+"px",P.paddingTop=""):(P.paddingTop=x+"px",P.marginTop="")}}});var O8Q=new _.R("replaceFeedContentAction");var JOv=new _.R("alertCommand");var Br6=new _.R("manageLabsStateCommand");var np4=new _.R("inlineFormRenderer");var Eg=new _.R("playlistSidebarPrimaryInfoRenderer");var YEf=new _.R("productDetailsThumbnailRenderer"),yOy=new _.R("productDetailsVariantRenderer"),KjL=new _.R("productDetailsVariantOptionRenderer"),Z8B=new _.R("productDetailsOffersContainerRenderer"),opm=new _.R("productDetailsOfferRenderer");var SEv=new _.R("shoppingFlaggingRenderer");var uEv=new _.R("playlistBylineRenderer");var dk2=new _.R("insertChannelTabCommand");var gf=function(){return _.Yl.apply(this,arguments)||this};
_.A(gf,_.Yl);_.J=gf.prototype;_.J.activeChanged=function(){if(this.active){var W=_.g(this.hostElement).querySelector("#header");W&&_.Lf(W,"iron-resize");window.addEventListener("scroll",_.WM(this,this.onScroll))}else window.removeEventListener("scroll",_.WM(this,this.onScroll)),_.Lf(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.J.guideVisibleChanged=function(){var W=_.g(this.hostElement).querySelector("#header");W&&_.Lf(W,"iron-resize")};
_.J.onScroll=function(){var W=this;_.De(this,"onScroll",function(){var P=_.g(W.hostElement).querySelector("#header");P&&P.polymerController&&(P=P.polymerController.getScrollState().progress===1?"standard":"seamed",_.Lf(W.hostElement,"yt-request-panel-mode-change",{mode:P}))},10)};
_.J.tabsChanged=function(){if(this.tabs){for(var W=null,P=0,x=this.tabs.length;P<x;++P){var I=this.tabs[P].tabRenderer;if(I&&I.selected){W=P;break}}this.selected=W}};
_.J.onTabsActivate=function(W){_.Lf(this.hostElement,"yt-navigate",{endpoint:this.tabs[W.detail.selected].tabRenderer.endpoint})};
gf.prototype.tabsChanged=gf.prototype.tabsChanged;gf.prototype.guideVisibleChanged=gf.prototype.guideVisibleChanged;gf.prototype.activeChanged=gf.prototype.activeChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],gf.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.c(),_.l("design:type",Array)],gf.prototype,"tabs",void 0);
_.f([_.c(),_.l("design:type",Object)],gf.prototype,"selected",void 0);_.f([_.c(),_.l("design:type",Boolean)],gf.prototype,"active",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],gf.prototype,"disableHeaderFluidWidth",void 0);_.f([_.OZ("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gf.prototype,"activeChanged",null);
_.f([_.OZ("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gf.prototype,"guideVisibleChanged",null);_.f([_.OZ("tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gf.prototype,"tabsChanged",null);gf=_.f([_.yL()],gf);var sUO=[_.L.YtRendererBehavior,_.wW.YtdGuideStateAwareBehavior,gf.prototype];var vpf=2/3,mk6=_.td(130749),VrO=function(W,P){var x=this;this.element=W;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){x.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:vpf,moveAction:function(I){x.moveAction(I)},
triggerAction:function(){x.element.isReloading=!0;_.hd(_.YY(),{visualElement:mk6});_.Ix.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:x.element}})}}}};
_.YP(_.YY(),mk6,this.layer);this.gesture=new _.KG(W,P,this.refreshConfig,"pan-down");this.attach()};
_.J=VrO.prototype;_.J.attach=function(){this.gesture.attach()};
_.J.detach=function(){this.gesture.detach()};
_.J.reset=function(){this.element.close()};
_.J.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.J.moveAction=function(W){this.element.rotation=W*360};var trG=_.td(130750),Dm=function(W,P,x,I,O){var B=this;this.element=W;this.parent=x;this.channelHeader=I;this.ytdReduxDispatch=O;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){B.tabsStartAtInPx=B.channelHeader.clientHeight-48;var Y;(Y=B.selectedTab)!=null&&Y.title&&(Y=_.FY().resolve(_.Rl(_.rL)))&&(Y=Y.getCurrentPage(),B.lastVisitedTabScrollPosition=Y.getScrollTop(),B.previousTab&&
((B.lastVisitedTabScrollPosition===void 0?0:B.lastVisitedTabScrollPosition<B.channelHeader.clientHeight-48)?B.scrollPositionForTabs.has(B.selectedTab.title)&&B.scrollPositionForTabs.delete(B.selectedTab.title):B.scrollPositionForTabs.set(B.selectedTab.title,Y.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:pSO(),triggerAction:function(){B.navigate(B.previousTab)},
moveAction:function(Y,K){B.moveAction(Y,K)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-pSO(),triggerAction:function(){B.navigate(B.nextTab)},
moveAction:function(Y,K){B.moveAction(Y,K)}}}};
_.YP(_.YY(),trG,this.layer);this.gesture=new _.KG(W,P,this.tabConfig);this.attach()};
Dm.prototype.attach=function(){this.gesture.attach()};
Dm.prototype.detach=function(){this.gesture.detach()};
Dm.prototype.tabsChanged=function(W){if(W){var P=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;W=_.n(W);for(var x=W.next();!x.done;x=W.next()){x=x.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=x);var I=void 0;if((I=x)==null?0:I.selected)this.previousTab=P,this.selectedTab=x;P=x}P=this.gesture;W=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}});
P.config=W;this.scrollPositionNeedsUpdate=!0}};
Dm.prototype.moveAction=function(W,P){if(!this.tabsElement){var x;this.tabsElement=(x=this.parent.header)==null?void 0:x.tabsElement;P==="right"&&this.previousTab?_.BC3(_.Is.instance,this.previousTab.endpoint,{},""):P==="left"&&this.nextTab&&_.BC3(_.Is.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}x=this.tabsElement._pos;P==="right"&&(W*=-1);this.tabsElement._positionBar(x.width,x.left*1+x.width*W)};
var pSO=function(){var W,P;return(P=(W=_.FY().resolve(_.rL).getCurrentPage())==null?void 0:W.clientWidth)!=null?P:0};
Dm.prototype.navigate=function(W){this.element.data=void 0;if(W=W==null?void 0:W.endpoint)this.ytdReduxDispatch(rtm(!0)),_.hd(_.YY(),{visualElement:trG}),_.Ix.instance.resolveCommand({navigateAction:{endpoint:W}},{form:{element:this.element}})};var jUm;var QUy;var MA=function(){return _.b.apply(this,arguments)||this};
_.A(MA,_.b);MA.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],MA.prototype,"data",void 0);MA=_.f([_.U({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],MA);
_.X(MA,"ytd-labs-edit-renderer",function(){if(QUy!==void 0)return QUy;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return QUy=W},{mode:1});var CN3;var $k=function(){var W=_.b.apply(this,arguments)||this;W.dark=!1;W.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A($k,_.b);$k.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$k.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.setBackgroundImage(W);this.dark=W};
$k.prototype.onDarkModeToggledAction=function(W){this.setBackgroundImage(W);this.dark=W};
$k.prototype.setBackgroundImage=function(W){_.qa(this.hostElement,{"--yt-labs-header-background":"url("+(W?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],$k.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$k.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$k.prototype,"dark",void 0);
$k=_.f([_.U({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],$k);
_.X($k,"ytd-labs-header-renderer",function(){if(CN3!==void 0)return CN3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return CN3=W},{mode:1});var AOQ;var wf=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return W};
_.A(wf,_.b);wf.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"}}}}}};
wf.prototype.onYtToggleButton=function(W){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",W.detail.toggled)};
wf.prototype.onManageLabsState=function(W){if(W=_.Q(W,Br6))W.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?W.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&W.labsItemId===this.data.labsItemId&&(W.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.W7(this.hostElement,"yt-check-labs-opted-in-state").some(function(P){return P})&&this.data.confirmationDialogCommand?_.OL(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.FY().resolve(_.qR).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&W.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.FY().resolve(_.qR).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
wf.prototype.onCheckLabsOptedInState=function(){var W=this.get("data.primaryButton.toggleButtonRenderer");return W?W.isToggled:!1};
_.N1.Object.defineProperties(wf.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
wf.prototype.onYtToggleButton=wf.prototype.onYtToggleButton;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],wf.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wf.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],wf.prototype,"itemStyle",null);_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],wf.prototype,"onYtToggleButton",null);wf=_.f([_.U({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],wf);
_.X(wf,"ytd-labs-item-renderer",function(){if(AOQ!==void 0)return AOQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return AOQ=W},{mode:1});var zqv;var Gl2;var h5=function(){return _.b.apply(this,arguments)||this};
_.A(h5,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],h5.prototype,"data",void 0);h5=_.f([_.U({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],h5);
_.X(h5,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Gl2!==void 0)return Gl2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Gl2=W},{mode:1});var EpQ;var HH=function(){return _.b.apply(this,arguments)||this};
_.A(HH,_.b);HH.prototype.observeSuperchatChip=function(){if(this.data){var W={"--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)};_.qa(this.hostElement,W)}};
HH.prototype.colorFromDecimal=function(W){return _.Qy(Number(W||0))};
HH.prototype.observeSuperchatChip=HH.prototype.observeSuperchatChip;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],HH.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HH.prototype,"observeSuperchatChip",null);HH=_.f([_.U({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],HH);
_.X(HH,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(EpQ!==void 0)return EpQ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return EpQ=W},{mode:1});var eT=function(){return _.b.apply(this,arguments)||this};
_.A(eT,_.b);eT.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"}}}};
_.N1.Object.defineProperties(eT.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gW),_.l("design:type",Object)],eT.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eT.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eT.prototype,"hideMessageBlock",null);
eT=_.f([_.U({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],eT);
_.X(eT,"ytd-live-chat-history-entry-renderer",function(){if(zqv!==void 0)return zqv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zqv=W},{mode:1});var gpv;var cH=function(){return _.b.apply(this,arguments)||this};
_.A(cH,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cH.prototype,"data",void 0);cH=_.f([_.U({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],cH);
_.X(cH,"ytd-channel-options-renderer",function(){if(gpv!==void 0)return gpv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gpv=W},{mode:1});var Dky;var aw=function(){return _.b.apply(this,arguments)||this};
_.A(aw,_.b);aw.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],aw.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],aw.prototype,"data",void 0);aw=_.f([_.U({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],aw);
_.X(aw,"ytd-settings-email-item-renderer",function(){if(Dky!==void 0)return Dky;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Dky=W},{mode:1});var MrL;var b2=function(){return _.b.apply(this,arguments)||this};
_.A(b2,_.b);b2.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"}}}};
b2.prototype.getExpansionIcon=function(W){return W?"arrow_drop_up":"arrow_drop_down"};
b2.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.N1.Object.defineProperties(b2.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],b2.prototype,"data",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],b2.prototype,"expanded",void 0);_.f([_.H("expanded"),_.l("design:type",String),_.l("design:paramtypes",[])],b2.prototype,"emailListExpanded",null);
_.f([_.BM("#options"),_.l("design:type",Object)],b2.prototype,"options",void 0);b2=_.f([_.U({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],b2);
_.X(b2,"ytd-settings-email-list-renderer",function(){if(MrL!==void 0)return MrL;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return MrL=W},{mode:1});var $kd;var kk=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.A(kk,_.b);kk.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"}}}};
kk.prototype.handleSignalActionSubmitForm=function(){var W,P=(W=this.formRenderer)==null?void 0:W.getForm();P&&this.data.serviceEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},P,{element:this.hostElement})})};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],kk.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],kk.prototype,"data",void 0);_.f([_.BM("yt-form-renderer"),_.l("design:type",Object)],kk.prototype,"formRenderer",void 0);
kk=_.f([_.U({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],kk);
_.X(kk,"ytd-settings-gaia-link-renderer",function(){if($kd!==void 0)return $kd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return $kd=W},{mode:1});var wSm;var Ug=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return W};
_.A(Ug,_.b);Ug.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.coy()&&this.set("data.hidden",!1)};
Ug.prototype.onSwitchReady=function(){var W=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.p("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.eYL().then(function(P){P&&(Notification.permission==="default"?W.set("data.hidden",!1):Notification.permission==="granted"&&_.iD("NotificationsDisabled").then(function(x){x||_.W7(W.hostElement,"yt-toggle-settings-switch",[W.data.id,!x]);W.set("data.hidden",!1)}).catch(function(){}))})})};
Ug.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}}}}};
Ug.prototype.handleUpdateOptionsCommand=function(W){(W=_.Q(W,_.Hdp))&&this.data&&this.data.id===W.id&&(this.set("data.hidden",W.hidden),W.text!==void 0&&this.set("data.text",W.text),W.clearOptions&&this.set("data.options",[]))};
Ug.prototype.onSwitchReady=Ug.prototype.onSwitchReady;Ug.prototype.dataChanged=Ug.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ug.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Ug.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ug.prototype,"data",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ug.prototype,"dataChanged",null);_.f([_.I7("yt-settings-switch-ready"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ug.prototype,"onSwitchReady",null);Ug=_.f([_.U({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Ug);
_.X(Ug,"ytd-settings-options-renderer",function(){if(wSm!==void 0)return wSm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return wSm=W},{mode:1});var hq6;var XS=function(){return _.b.apply(this,arguments)||this};
_.A(XS,_.b);XS.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
XS.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
XS.prototype.onYtExpanderMoreTapped=XS.prototype.onYtExpanderMoreTapped;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],XS.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],XS.prototype,"data",void 0);
_.f([_.I7("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XS.prototype,"onYtExpanderMoreTapped",null);XS=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],XS);
_.X(XS,"ytd-product-details-description-renderer",function(){if(hq6!==void 0)return hq6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return hq6=W},{mode:1});var H8M;var fG=function(){var W=_.b.apply(this,arguments)||this;W.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";W.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";W.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";W.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return W};
_.A(fG,_.b);fG.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N1.Object.defineProperties(fG.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:(P=W.offerData)==null?void 0:P.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?void 0:W.purchaseButtonRenderers)!==void 0&&((P=this.data)==null?void 0:P.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.formattedFromMerchantText)&&(!((P=this.data)==null||!P.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],fG.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],fG.prototype,"data",void 0);
_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],fG.prototype,"shippingIcon",void 0);_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],fG.prototype,"shippingAddressIcon",void 0);_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],fG.prototype,"googleGuaranteeIcon",void 0);
_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],fG.prototype,"returnPolicyIcon",void 0);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],fG.prototype,"showAdditionalFees",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],fG.prototype,"showMultiPurchaseButtons",null);
_.f([_.H("data","showMultiPurchaseButtons"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],fG.prototype,"showPurchaseData",null);fG=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],fG);
_.X(fG,"ytd-product-details-hero-offer-renderer",function(){if(H8M!==void 0)return H8M;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return H8M=W},{mode:1});var eqB;var cOv;var NA=function(){return _.b.apply(this,arguments)||this};
_.A(NA,_.b);_.J=NA.prototype;_.J.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.J.onKeyDown=function(W){W=W.keyCode;W!==13&&W!==32||this.handleSelection()};
_.J.onMouseEnterImage=function(){var W;((W=this.data)==null?void 0:W.thumbnailDetails)!==void 0&&_.P7(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.J.onMouseLeaveImage=function(){_.P7(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.J.handleSelection=function(){this.data&&_.Lf(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.N1.Object.defineProperties(NA.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],NA.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],NA.prototype,"isSelected",null);NA=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],NA);
_.X(NA,"ytd-product-details-thumbnail-renderer",function(){if(cOv!==void 0)return cOv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return cOv=W},{mode:1});var l2=function(){var W=_.b.apply(this,arguments)||this;var P={};W.actionMap=(P["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",P["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",P);W.selectedThumbnailIndex=0;W.selectItem=function(x){x.target.onKeyDown(x)};
return W};
_.A(l2,_.b);_.J=l2.prototype;_.J.handlePreviewImageSelect=function(W){this.hoverThumbnail=W};
_.J.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.J.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.J.onThumbnailSelected=function(W,P){this.selectedThumbnailIndex=P};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.J.updateOffset=function(){var W=_.g(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_()};
_.N1.Object.defineProperties(l2.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.imageRenderer){var P,x;return((P=this.data)==null?void 0:(x=P.imageRenderer)==null?void 0:x.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var W;if((W=this.data)==null?0:W.imageRenderer){var P;return(P=_.Q(this.data.imageRenderer[this.selectedThumbnailIndex],YEf))==null?void 0:P.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var W=this,P,x,I,O=(I=(P=this.data)==null?void 0:(x=P.imageRenderer)==null?void 0:x.map(function(B,Y){return{productDetailsThumbnailRenderer:Object.assign({},_.Q(B,YEf),{index:Y,isSelected:Y===W.selectedThumbnailIndex})}}))!=null?I:[];
return Object.assign({},this.data,{imageRenderer:O})}}});
l2.prototype.updateOffset=l2.prototype.updateOffset;l2.prototype.dataChanged=l2.prototype.dataChanged;l2.prototype.onThumbnailSelected=l2.prototype.onThumbnailSelected;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.RO.YtdHorizontalListBehavior),_.l("design:type",Object)],l2.prototype,"ytdHorizontalListBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],l2.prototype,"componentBehavior",void 0);_.f([_.h([_.rb.YtActionHandlerBehavior]),_.l("design:type",Object)],l2.prototype,"actionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],l2.prototype,"data",void 0);_.f([_.c({value:"$.items.children"}),_.l("design:type",String)],l2.prototype,"itemsPath",void 0);_.f([_.c({value:3}),_.l("design:type",Number)],l2.prototype,"initialCount",void 0);
_.f([_.BM("#items"),_.l("design:type",Object)],l2.prototype,"items",void 0);_.f([_.c(),_.l("design:type",Object)],l2.prototype,"selectedThumbnailIndex",void 0);_.f([_.c(),_.l("design:type",Object)],l2.prototype,"hoverThumbnail",void 0);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],l2.prototype,"showThumbnails",null);
_.f([_.I7("ytd-product-details-thumbnail-renderer-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Number]),_.l("design:returntype")],l2.prototype,"onThumbnailSelected",null);_.f([_.H("data","selectedThumbnailIndex","hoverThumbnail"),_.l("design:type",Object),_.l("design:paramtypes",[])],l2.prototype,"thumbnailDetails",null);_.f([_.H("data","selectedThumbnailIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],l2.prototype,"populatedData",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],l2.prototype,"dataChanged",null);_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],l2.prototype,"updateOffset",null);l2=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],l2);
_.X(l2,"ytd-product-details-image-carousel-renderer",function(){if(eqB!==void 0)return eqB;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return eqB=W},{mode:_.F4("kevlar_poly_si_batch_j079")?1:2});var aY3;var TV=function(){return _.b.apply(this,arguments)||this};
_.A(TV,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],TV.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],TV.prototype,"data",void 0);TV=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],TV);
_.X(TV,"ytd-product-details-offer-renderer",function(){if(aY3!==void 0)return aY3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return aY3=W},{mode:1});var b8d;var rf=function(){var W=_.b.apply(this,arguments)||this;W.isOffersHidden=!0;return W};
_.A(rf,_.b);rf.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var W,P=_.Q((W=this.data)==null?void 0:W.viewOffersButton,_.w6);P&&this.ytRendererBehavior.logExplicitClick(P)};
rf.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.N1.Object.defineProperties(rf.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return(x=_.Q((W=this.data)==null?void 0:(P=W.offers)==null?void 0:P[0],opm))==null?void 0:(I=x.offerData)==null?void 0:I.vendorLogoUrl}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],rf.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rf.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],rf.prototype,"isOffersHidden",void 0);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],rf.prototype,"firstOfferVendorLogoUrl",null);rf=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],rf);
_.X(rf,"ytd-product-details-offers-container-renderer",function(){if(b8d!==void 0)return b8d;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return b8d=W},{mode:1});var kld;var UkM;var i2=function(){return _.b.apply(this,arguments)||this};
_.A(i2,_.b);i2.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
i2.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.P7(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
i2.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.P7(this,"ytd-product-details-variant-image-unselect")};
_.N1.Object.defineProperties(i2.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 W;return((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.data)==null?void 0:W.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((P=this.data)==null?void 0:P.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((x=this.data)==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var W;if(((W=this.data)==null?void 0:W.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,P;return this.isUnavailable?(W=this.data)==null?void 0:W.variantOptionUnavailableAccessibilityLabel:(P=this.data)==null?void 0:P.variantOptionAccessibilityLabel}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],i2.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],i2.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],i2.prototype,"displayType",void 0);
_.f([_.H("displayType","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],i2.prototype,"isImageButton",null);_.f([_.H("displayType","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],i2.prototype,"isPillButton",null);_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],i2.prototype,"isActive",null);
_.f([_.H("data"),_.c({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],i2.prototype,"isUnavailable",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],i2.prototype,"thumbnailDetails",null);_.f([_.H("isUnavailable","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],i2.prototype,"accessibilityLabel",null);i2=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],i2);
_.X(i2,"ytd-product-details-variant-option-renderer",function(){if(UkM!==void 0)return UkM;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return UkM=W},{mode:1});var XS6;var Rw=function(){var W=_.b.apply(this,arguments)||this;W.variantsExpanded=!1;W.hideShowMoreLessVariantButton=!0;W.initialized=!1;W.computeVariantsDebouncer=null;W.computeVariants=function(P){P=P===void 0?!1:P;W.variantsExpanded||W.showOptions()||!P||(W.variantsExpanded=!0);if(W.variantsExpanded){P=_.n(W.items.children);for(var x=P.next();!x.done;x=P.next())x.value.hidden=!1}W.initialized=!0};
return W};
_.A(Rw,_.b);_.J=Rw.prototype;_.J.ready=function(){var W=this;setTimeout(function(){W.computeVariants(!0)})};
_.J.showOptions=function(){for(var W=_.n(this.items.children),P=W.next();!P.done;P=W.next())P.value.hidden=!0;var x=this.container.getBoundingClientRect().width,I=0,O=W=0;P=!1;for(var B=_.n(this.items.children),Y=B.next();!Y.done;Y=B.next()){Y=Y.value;Y.hidden=!1;var K=Y.getBoundingClientRect().width;if(I+K<x)I+=K;else if(++O<2)I=K;else break;W+=1;Y.hasAttribute("is-active")&&(P=!0)}for(x=W;x<this.items.children.length;x++)this.items.children[x].hidden=!0;this.hideShowMoreLessVariantButton=W===this.items.children.length;
return P};
_.J.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Bz(this.computeVariantsDebouncer,_.rl.after(100),this.computeVariants)};
_.J.onShowMoreLessVariantsButtonClick=function(){var W;(W=this.data)!=null&&W.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.J.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.N1.Object.defineProperties(Rw.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.data)==null?void 0:(P=W.variantOptionRenderers)==null?void 0:P.find(function(B){return _.Q(B,KjL).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),I,O;
return(O=(I=_.Q(x,KjL))==null?void 0:I.name)!=null?O:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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"}}}});
Rw.prototype.debouncedComputeVariants=Rw.prototype.debouncedComputeVariants;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Rw.prototype,"componentBehavior",void 0);_.f([_.h(_.Db),_.l("design:type",Object)],Rw.prototype,"ironResizableBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Rw.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Rw.prototype,"variantsExpanded",void 0);_.f([_.c(),_.l("design:type",Object)],Rw.prototype,"hideShowMoreLessVariantButton",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Rw.prototype,"initialized",void 0);_.f([_.BM("#items"),_.l("design:type",HTMLDivElement)],Rw.prototype,"items",void 0);_.f([_.BM("#container"),_.l("design:type",HTMLDivElement)],Rw.prototype,"container",void 0);
_.f([_.BM("#more-variants-button"),_.l("design:type",HTMLElement)],Rw.prototype,"moreVariantsButton",void 0);_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],Rw.prototype,"selectedOptionName",null);_.f([_.OZ("data","variantsExpanded"),_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Rw.prototype,"debouncedComputeVariants",null);
_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],Rw.prototype,"displayType",null);_.f([_.H("displayType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Rw.prototype,"variantItemsClassname",null);Rw=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Rw);
_.X(Rw,"ytd-product-details-variant-renderer",function(){if(XS6!==void 0)return XS6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return XS6=W},{mode:1});var FS=function(){return _.b.apply(this,arguments)||this};
_.A(FS,_.b);
FS.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"}}}};
_.N1.Object.defineProperties(FS.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(P=_.Q((W=this.data)==null?void 0:W.offersContainerRenderer,Z8B))==null?void 0:P.offers;return x!==void 0&&(x==null?void 0:x.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((x=(W=this.data)==null?void 0:(P=W.variants)==null?void 0:P.map(function(I){var O,B;I=(B=(O=_.Q(I,yOy))==null?void 0:O.variantOptionRenderers)==null?void 0:B.find(function(K){var Z;return((Z=_.Q(K,KjL))==null?void 0:Z.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Y;return(Y=_.Q(I,KjL))==null?void 0:Y.name}).filter(function(I){return typeof I==="string"}))!=null?x:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I=(P=_.Q((W=this.data)==null?void 0:W.shoppingFlaggingRenderer,SEv))==null?void 0:(x=P.reportButton)==null?void 0:x.buttonRenderer;if(I)return{text:I.text,command:I.command,icon:{iconType:"FLAG"},accessibilityData:I.accessibilityData,trackingParams:I.trackingParams,loggingDirectives:I.loggingDirectives}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],FS.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],FS.prototype,"data",void 0);_.f([_.BM("#image-carousel-renderer"),_.l("design:type",Object)],FS.prototype,"imageCarouselRenderer",void 0);
_.f([_.BM("#hero-offer-renderer"),_.l("design:type",Object)],FS.prototype,"productDetailsHeroOfferRenderer",void 0);_.f([_.BM("#variants"),_.l("design:type",Object)],FS.prototype,"productDetailsVariantRenderer",void 0);_.f([_.BM("#offers"),_.l("design:type",Object)],FS.prototype,"productDetailsOffersContainerRenderer",void 0);_.f([_.BM("#description-renderer"),_.l("design:type",Object)],FS.prototype,"productDetailsDescriptionRenderer",void 0);
_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FS.prototype,"showPurchaseData",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FS.prototype,"showHeroOfferRenderer",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FS.prototype,"showBrandText",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FS.prototype,"showOffers",null);
_.f([_.H("showOffers","showPurchaseData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FS.prototype,"showBuySeparator",null);_.f([_.H("showOffers","showPurchaseData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FS.prototype,"showBuyCard",null);_.f([_.H("data"),_.l("design:type",String),_.l("design:paramtypes",[])],FS.prototype,"selectedVariantsText",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],FS.prototype,"shoppingReportingButtonData",null);
FS=_.f([_.U({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],FS);
_.X(FS,"ytd-product-details-renderer",function(){if(kld!==void 0)return kld;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return kld=W},{mode:1});var fY6;var Nr6;var lY6;var qA=function(){return _.b.apply(this,arguments)||this};
_.A(qA,_.b);qA.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.N1.Object.defineProperties(qA.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qA.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],qA.prototype,"formattedAmount",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qA.prototype,"ariaLabel",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data.style"),_.l("design:type",String),_.l("design:paramtypes",[])],qA.prototype,"vcBalanceWidgetStyle",null);qA=_.f([_.jd({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],qA);
_.X(qA,"yt-vc-balance-renderer",function(){if(lY6===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Nr6===void 0&&(Nr6=document.createElement("template"));var I=Nr6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);lY6=W}W=lY6;return W},{mode:2});_.Ad("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var LG=function(){return _.b.apply(this,arguments)||this};
_.A(LG,_.b);_.N1.Object.defineProperties(LG.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:""}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],LG.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],LG.prototype,"data",void 0);_.f([_.c({selectorArgs:["data.vcBalanceEntityKey"],selector:function(W,P){return _.Jb(W.entities,"vcBalanceEntity",P)}}),
_.l("design:type",Object)],LG.prototype,"vcBalanceEntity",void 0);_.f([_.H("vcBalanceEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],LG.prototype,"formattedAmount",null);_.f([_.H("vcBalanceEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],LG.prototype,"vcBalanceAriaLabel",null);LG=_.f([_.U({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],LG);
_.X(LG,"ytd-vc-balance-renderer",function(){if(fY6!==void 0)return fY6;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return fY6=W},{mode:1});var Trv;var W8=function(){var W=_.b.apply(this,arguments)||this;W.rotation=0;W.isReloading=!1;return W};
_.A(W8,_.b);W8.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
W8.prototype.reset=function(){this.hostElement.style.opacity=""};
W8.prototype.close=function(){var W=this;return _.y(function(P){if(P.nextAddress==1)return _.S(P,W.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.hostElement.style.opacity="0";_.Kl(P)})};
W8.prototype.rotationChanged=W8.prototype.rotationChanged;_.f([_.c(),_.l("design:type",Object)],W8.prototype,"rotation",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],W8.prototype,"isReloading",void 0);_.f([_.BM("#icon"),_.l("design:type",HTMLElement)],W8.prototype,"icon",void 0);_.f([_.OZ("rotation"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W8.prototype,"rotationChanged",null);
W8=_.f([_.U({disableElementRegistration:!0,is:"ytd-refresh"})],W8);
_.X(W8,"ytd-refresh",function(){if(Trv!==void 0)return Trv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Trv=W},{mode:1});var rO6;var P8=function(){return _.b.apply(this,arguments)||this};
_.A(P8,_.b);P8.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"}}}};
P8.prototype.dataChanged=function(){if(this.data){var W=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var P=_.Tm(this.data.banner.thumbnails,this.hostElement.clientWidth);P&&(P.indexOf("//")===0&&(P="https:"+P),this.hasBannerArt=!0,_.qa(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+P+")"}))}this.hasBannerArt!==W&&_.g(this.hostElement).querySelector("#header").fire("iron-resize")}};
P8.prototype.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
P8.prototype.dataChanged=P8.prototype.dataChanged;_.f([_.h(sUO),_.l("design:type",Object)],P8.prototype,"ytdTabbedHeaderBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.MW),_.l("design:type",Object)],P8.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],P8.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],P8.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],P8.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],P8.prototype,"selected",void 0);_.f([_.c(),_.l("design:type",Boolean)],P8.prototype,"active",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],P8.prototype,"hasBannerArt",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P8.prototype,"dataChanged",null);P8=_.f([_.U({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],P8);
_.X(P8,"ytd-interactive-tabbed-header-renderer",function(){if(rO6!==void 0)return rO6;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rO6=W},{mode:1});var i8m;var xr=function(){return _.b.apply(this,arguments)||this};
_.A(xr,_.b);xr.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xr.prototype.computeActionsAlignment=function(W){return(W==null?void 0:W.actionsAlignment)||""};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],xr.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.l("design:type",String)],xr.prototype,"actionsAlignment",void 0);
xr=_.f([_.U({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],xr);
_.X(xr,"ytd-page-footer-renderer",function(){if(i8m!==void 0)return i8m;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return i8m=W},{mode:1});var Rq4;var Fjf;var Ib=function(){var W=_.b.apply(this,arguments)||this;W.isEditing=!1;W.useSlot=!1;W.isMultiline=!1;return W};
_.A(Ib,_.b);_.J=Ib.prototype;_.J.onKeydown=function(W){if(W.keyCode===13&&!this.isMultiline)this.onSave();else if(W.keyCode===27)this.onCancel()};
_.J.computeComponentStyle=function(W){return(W==null?0:W.style)?W.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.J.computeisMultiline=function(W){if(this.multilineOverride!==void 0)return this.multilineOverride;var P,x;return!!(W==null?0:(P=W.formField)==null?0:(x=P.textInputFormFieldRenderer)==null?0:x.isMultiline)};
_.J.computeTextDisplayed=function(W,P){if(W)return W;if(P)return P};
_.J.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.J.onSave=function(){if(this.textForm.validate()){this.textForm.save();var W=this.textForm.value;if(W)this.set("data.textDisplayed",_.bx(W));else{var P;((P=this.data)==null?0:P.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.wy("inline-form-changed",this.data));this.isEditing=!1}};
_.J.onCancel=function(){var W=_.kz(this.data.textDisplayed);W===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(W);this.isEditing=!1};
Ib.prototype.onKeydown=Ib.prototype.onKeydown;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],Ib.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ib.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Ib.prototype,"isEditing",void 0);_.f([_.c(),_.l("design:type",Object)],Ib.prototype,"useSlot",void 0);_.f([_.c(),_.l("design:type",Boolean)],Ib.prototype,"multilineOverride",void 0);_.f([_.c(),_.l("design:type",Boolean)],Ib.prototype,"enableOverlayTheme",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.l("design:type",String)],Ib.prototype,"componentStyle",void 0);
_.f([_.c({computed:"computeisMultiline(data)"}),_.l("design:type",Object)],Ib.prototype,"isMultiline",void 0);_.f([_.BM("#text-form"),_.l("design:type",Object)],Ib.prototype,"textForm",void 0);_.f([_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],Ib.prototype,"onKeydown",null);Ib=_.f([_.U({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Ib);
_.X(Ib,"ytd-inline-form-renderer",function(){if(Fjf!==void 0)return Fjf;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Fjf=W},{mode:1});var qE3;var OD=function(){var W=_.b.apply(this,arguments)||this;W.previousSelectValue=void 0;W.selectedItemMessage=void 0;return W};
_.A(OD,_.b);OD.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
OD.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var W,P,x,I,O=(W=this.data)==null?void 0:(P=W.dropdown)==null?void 0:(x=P.dropdownRenderer)==null?void 0:(I=x.entries)==null?void 0:I.map(function(K){return K.privacyDropdownItemRenderer});
W=_.n(O!=null?O:[]);for(P=W.next();!P.done;P=W.next())if((P=P.value)&&P.int32Value===this.selectedValue){this.selectedItemMessage=P.itemMessage;break}}else this.selectedItemMessage=void 0;var B;(B=this.onValueChanged)==null||B.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Y;(Y=this.data)!=null&&Y.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
OD.prototype.onValueChangedForSelectedValue=function(W){this.selectedValue=W.detail.value};
OD.prototype.selectedValueChanged=OD.prototype.selectedValueChanged;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],OD.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],OD.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],OD.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],OD.prototype,"theme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Number)],OD.prototype,"selectedValue",void 0);_.f([_.c(),_.l("design:type",Function)],OD.prototype,"onValueChanged",void 0);
_.f([_.K_("selectedValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OD.prototype,"selectedValueChanged",null);OD=_.f([_.U({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],OD);
_.X(OD,"ytd-dropdown-form-field-renderer",function(){if(qE3!==void 0)return qE3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return qE3=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var Ljm;var JB=function(){return _.b.apply(this,arguments)||this};
_.A(JB,_.b);_.N1.Object.defineProperties(JB.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var W=[],P=_.n(this.data||[]),x=P.next();!x.done;x=P.next())(x=_.Q(x.value,uEv))&&W.push(x);return W}}});
_.f([_.c(),_.l("design:type",Array)],JB.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],JB.prototype,"byline",null);JB=_.f([_.U({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],JB);
_.X(JB,"ytd-playlist-byline-renderer",function(){if(Ljm!==void 0)return Ljm;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ljm=W},{mode:1});var W$f;var B8=function(){var W=_.b.apply(this,arguments)||this;W.rtlBullet=_.p("web_playlist_stats_rtl_bullet_icon_killswitch");W.modern=_.p("web_modern_buttons");W.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return W};
_.A(B8,_.b);_.J=B8.prototype;_.J.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"}}}}};
_.J.attached=function(){};
_.J.computeIsCustomThumbnail=function(W){return W?!!W.playlistCustomThumbnailRenderer:!1};
_.J.onYtNavigate=function(W,P){if(P&&P.actions&&P.actions.indexOf("shuffle")>-1){W=_.FY().resolve(_.wx);var x=P.tempData||{};x.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);P.tempData=x;W.isShuffleNextPlaylist=!0}};
_.J.onUpdatePlaylistAction=function(W){var P;W=(P=_.Q(W,_.SF3))==null?void 0:P.updatedRenderer;if(P=_.Q(W,Eg))this.data=P};
_.J.computeStyleType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(W){return W==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.J.computeHideThumbnailAria=function(W){if(W==null?0:W.thumbnailOverlays)for(var P=0;P<W.thumbnailOverlays.length;P++){var x=void 0;if((x=W.thumbnailOverlays[P])==null?0:x.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
B8.prototype.onYtNavigate=B8.prototype.onYtNavigate;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],B8.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],B8.prototype,"ytComponentBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],B8.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],B8.prototype,"rtlBullet",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.l("design:type",String)],B8.prototype,"styleType",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],B8.prototype,"thumbnailWidth",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],B8.prototype,"modern",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.l("design:type",Boolean)],B8.prototype,"isCustomThumbnail",void 0);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],B8.prototype,"onYtNavigate",null);
B8=_.f([_.U({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],B8);
_.X(B8,"ytd-playlist-sidebar-primary-info-renderer",function(){if(W$f!==void 0)return W$f;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return W$f=W},{mode:1});var PK4;var n$=function(){return _.b.apply(this,arguments)||this};
_.A(n$,_.b);n$.prototype.computeOwnerVisibility=function(W){return!(!W.videoOwner&&!W.button)};
n$.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],n$.prototype,"data",void 0);n$=_.f([_.U({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],n$);
_.X(n$,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(PK4!==void 0)return PK4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return PK4=W},{mode:1});var xeM;var Yr=function(){var W=_.b.apply(this,arguments)||this;W.expanded=!1;W.isCompact=!1;return W};
_.A(Yr,_.b);_.J=Yr.prototype;_.J.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.J.dataChanged=function(){this.data&&_.a$(_.g(this.text),_.VzP(_.jWP,_.kz(this.data.text||null)))};
_.J.computeAutoScrollEnabled=function(W,P){return W&&!P};
_.J.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.J.toggleOnTap=function(){this.expanded=!this.expanded};
Yr.prototype.expandedChanged=Yr.prototype.expandedChanged;Yr.prototype.dataChanged=Yr.prototype.dataChanged;_.f([_.h(_.B4m),_.l("design:type",Object)],Yr.prototype,"ytdAutoScrollBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Yr.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Yr.prototype,"expanded",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Yr.prototype,"isCompact",void 0);_.f([_.c({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.l("design:type",Boolean)],Yr.prototype,"autoScrollEnabled",void 0);_.f([_.BM("#text"),_.l("design:type",Object)],Yr.prototype,"text",void 0);_.f([_.BM("#expander-icon"),_.l("design:type",Object)],Yr.prototype,"expanderIcon",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yr.prototype,"dataChanged",null);_.f([_.OZ("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yr.prototype,"expandedChanged",null);Yr=_.f([_.U({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Yr);
_.X(Yr,"ytd-channel-legal-info-renderer",function(){if(xeM!==void 0)return xeM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return xeM=W},{mode:1});var IT2;var Oyy=_.KK("DOWNLOAD",{},"Download"),JDm=_.KK("DOWNLOADING",{},"Downloading"),Bs2=_.KK("DOWNLOADED",{},"Downloaded"),y0=function(){var W=_.b.apply(this,arguments)||this;W.downloadProgress=0;W.isDownloadComplete=!1;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.A(y0,_.b);_.J=y0.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var W;(W=this.data)!=null&&W.tooltip||(W=_.En(_.Xe().getState(),this.playlistId),this.updateButtonState(W))};
_.J.computePlaylistId=function(W){return W};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(W){if(this.data&&(this.data.tooltip!==JDm||!_.ux(W))){this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=Oyy;var P="OFFLINE_DOWNLOAD";var x="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":W=Bs2;P="OFFLINE_PIN";x="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":W=JDm;P="OFFLINE_DOWNLOADING_ZERO";x="ACTION_REMOVE_WITH_PROMPT";
break;default:W=Oyy,P="OFFLINE_DOWNLOAD",x="ACTION_ADD"}var I=Object.assign({},this.data);I.tooltip=W;I.accessibilityData={accessibilityData:{label:W}};I.icon={iconType:P};I.size="SIZE_DEFAULT";_.Q(I.command,_.SK)&&(_.Q(I.command,_.SK).action=x);this.set("data",I)}};
_.J.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?W="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var P;W!==((P=this.data.icon)==null?void 0:P.iconType)&&(P=Object.assign({},this.data),P.tooltip=JDm,P.accessibilityData={accessibilityData:{label:JDm}},P.icon={iconType:W},_.Q(P.command,_.SK)&&(_.Q(P.command,_.SK).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",P))}};
y0.prototype.updateProgress=y0.prototype.updateProgress;y0.prototype.onTransferStateChanged=y0.prototype.onTransferStateChanged;y0.prototype.dataChanged=y0.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],y0.prototype,"ytdReduxBehavior",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],y0.prototype,"forceIconButton",void 0);
_.f([_.c({value:!0}),_.l("design:type",Boolean)],y0.prototype,"forceIconOnly",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],y0.prototype,"overrides",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],y0.prototype,"buttonTooltipPosition",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],y0.prototype,"styleActionButton",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],y0.prototype,"disableTextTransform",void 0);
_.f([_.c({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.l("design:type",String)],y0.prototype,"playlistId",void 0);_.f([_.c(),_.l("design:type",Object)],y0.prototype,"data",void 0);_.f([_.c({selector:_.hER,selectorArgs:["playlistId"]}),_.l("design:type",Object)],y0.prototype,"downloadProgress",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],y0.prototype,"isDownloadComplete",void 0);
_.f([_.c({selector:_.En,selectorArgs:["playlistId"]}),_.l("design:type",String)],y0.prototype,"transferState",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],y0.prototype,"showTooltips",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],y0.prototype,"sendCommandWhenDisabled",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],y0.prototype,"disabled",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y0.prototype,"dataChanged",null);_.f([_.K_("transferState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y0.prototype,"onTransferStateChanged",null);_.f([_.K_("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y0.prototype,"updateProgress",null);
y0=_.f([_.U({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],y0);
_.X(y0,"ytd-download-playlist-button-renderer",function(){if(IT2!==void 0)return IT2;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return IT2=W},{mode:1});var nEv;_.lq(_.bW,"thumbnail-overlay-button-view-model",{props:{data:_.cv,lockupExperiments:_.cv}});var K$=function(){var W=_.b.apply(this,arguments)||this;W.isSquare=!1;W.isVertical=!1;return W};
_.A(K$,_.b);K$.prototype.computeIsSquare=function(W){return W!=null&&W.thumbnail?Uhf(W.thumbnail)==="SQUARE":!1};
K$.prototype.computeIsVertical=function(W){return W!=null&&W.thumbnail?Uhf(W.thumbnail)==="VERTICAL":!1};
K$.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.l("design:type",Object)],K$.prototype,"isSquare",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.l("design:type",Object)],K$.prototype,"isVertical",void 0);
_.f([_.c(),_.l("design:type",Object)],K$.prototype,"data",void 0);K$=_.f([_.U({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],K$);
_.X(K$,"ytd-hero-playlist-thumbnail-renderer",function(){if(nEv!==void 0)return nEv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return nEv=W},{mode:1});var Za=function(){var W=_.b.apply(this,arguments)||this;W.isDarkTheme=!1;W.isUltraWide=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return W};
_.A(Za,_.b);_.J=Za.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.FY();var W;(W=_.FY().resolve(_.Rl(_.bo)))!=null&&(W.headerElement=this.hostElement)};
_.J.detached=function(){var W;(W=_.FY().resolve(_.Rl(_.bo)))!=null&&(W.headerElement=void 0)};
_.J.onUpdateHeader=function(W){(W=W.detail)&&this.set("data",W)};
_.J.computeTextDisplayed=function(W){if(W)return W.textDisplayed?W.textDisplayed:W.placeholder};
_.J.gradientColorToLinearGradientStop=function(W){var P=this.isDarkTheme?W.darkThemeColor:W.lightThemeColor;return P?_.Qy(P)+" "+((W==null?void 0:W.startLocation)||0)*100+"%":"transparent"};
_.J.onWindowResize=function(){var W;((W=this.data)==null?0:W.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.J.onIronResize=function(W){this.isUltraWide=!W.detail.value};
_.J.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.J.onUpdatePlaylistName=function(W){var P=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},W.detail.value));_.Xm(this,function(){var x;(x=P.editableTitle)==null||x.resize()})};
_.J.onUpdatePlaylistDescription=function(W){var P=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},W.detail.value));_.Xm(this,function(){var x;(x=P.editableDescriptionInlineExpander)==null||x.resize()})};
_.J.getCinematicData=function(W){return _.Q(W==null?void 0:W.cinematicContainer,_.jT)};
_.N1.Object.defineProperties(Za.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 W,P=(W=this.getCinematicData(this.data))==null?void 0:W.config;return(W=this.isDarkTheme?P==null?void 0:P.darkThemeBackgroundColor:P==null?void 0:P.lightThemeBackgroundColor)?"background-color:"+_.j9(W)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var W;return _.Q((W=this.data)==null?void 0:W.descriptionForm,np4)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var W=this,P,x,I;return"background:linear-gradient(to bottom, "+(((I=(P=this.getCinematicData(this.data))==null?void 0:(x=P.gradientColorConfig)==null?void 0:x.map(function(O){return W.gradientColorToLinearGradientStop(O)}))==null?void 0:I.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var W;return _.kz((W=this.data)==null?void 0:W.descriptionTapText)}}});
Za.prototype.onUpdateHeader=Za.prototype.onUpdateHeader;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Za.prototype,"actionHandlerBehavior",void 0);_.f([_.BM("#description-inline-expander"),_.l("design:type",Object)],Za.prototype,"descriptionInlineExpander",void 0);
_.f([_.BM("#editable-description-inline-expander"),_.l("design:type",Object)],Za.prototype,"editableDescriptionInlineExpander",void 0);_.f([_.c(),_.l("design:type",Object)],Za.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Za.prototype,"isUltraWide",void 0);_.f([_.BM("#editable-title-display"),_.l("design:type",Object)],Za.prototype,"editableTitle",void 0);_.f([_.H("isUltraWide"),_.l("design:type",Object),_.l("design:paramtypes",[])],Za.prototype,"maxDescriptionLines",null);
_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Za.prototype,"noCinematicData",null);_.f([_.I7("yt-new-playlist-header"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Za.prototype,"onUpdateHeader",null);_.f([_.H("data","isDarkTheme"),_.l("design:type",Object),_.l("design:paramtypes",[])],Za.prototype,"backgroundStyle",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Za.prototype,"descriptionFormData",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Za.prototype,"getDropdownTheme",null);_.f([_.H("data","isDarkTheme"),_.l("design:type",String),_.l("design:paramtypes",[])],Za.prototype,"gradientStyle",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Za.prototype,"descriptionTapText",null);
Za=_.f([_.U({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Za);
_.X(Za,"ytd-playlist-header-renderer",function(){if(Rq4!==void 0)return Rq4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Rq4=W},{mode:_.F4("kevlar_poly_si_batch_j078")?1:2});var YsQ;var yD2;var ob=function(){return _.b.apply(this,arguments)||this};
_.A(ob,_.b);ob.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ob.prototype,"data",void 0);ob=_.f([_.U({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],ob);
_.X(ob,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(yD2!==void 0)return yD2;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return yD2=W},{mode:1});var SN=function(){return _.b.apply(this,arguments)||this};
_.A(SN,_.b);
SN.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}}}}};
SN.prototype.computeUsePremiumShowStyle=function(W){if(!W||!W.items)return!1;for(var P=0;P<W.items.length;P++)if(_.Q(W.items[P],Eg)){var x=void 0;return((x=_.Q(W.items[P],Eg))==null?void 0:x.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],SN.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.l("design:type",Boolean)],SN.prototype,"usePremiumShowStyle",void 0);
SN=_.f([_.U({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],SN);
_.X(SN,"ytd-playlist-sidebar-renderer",function(){if(YsQ!==void 0)return YsQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return YsQ=W},{mode:1});var K$f;var ZyO;var oE9=function(W,P,x,I,O,B,Y,K){this.minWidth=W;this.minHeight=P;this.recommendedWidth=x;this.recommendedHeight=I;this.JSC$19400_maxFileSize=O;this.title=B;this.bannerGalleryTitle=Y;this.channelId=K;this.picker_=null;W=_.jMt("yt-banner");P=W.addView;x=(new Re6("youtubebanner")).addUploadMetadata("silo_id","19");x.opts.ytMaxFileSize=this.JSC$19400_maxFileSize;I=this.recommendedHeight;x.opts.ytRecWidth=this.recommendedWidth;x.opts.ytRecHeight=I;P.call(W,x);W.addView(new _.Cb);P=W.addView;x=new _.Cb;
x.opts.type="ytbanner";P.call(W,x.JSC$7975_setLabel(this.bannerGalleryTitle));P=W.setTitle(this.title).setSize(1E3);P.urlParamMap_.set("thumbs","orig");x=this.minWidth;I=this.minHeight;if(isNaN(x)||isNaN(I))throw Error("kb`"+x+"`"+I);P.urlParamMap_.set("minSize",x+"x"+I);P.urlParamMap_.set("cropMode","ytcb");this.builder_=W};
oE9.prototype.open=function(){var W=this;return new _.yE(function(P,x){_.WkM(W.builder_,function(I){I.action=="picked"?P(I):I.action=="cancel"&&x(Error("Wl"))});
W.picker_&&W.picker_.dispose();W.picker_=W.builder_.build();W.picker_.setVisible(!0)})};
oE9.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Ssy=function(W){this.channelId=W},uQ6=function(W,P){var x="";
P.viewToken&&(x=P.viewToken[2].type);var I=P.docs[0];P=I.crop;W={channel_id:W.channelId,fife_url:I.thumbnails[0].url,photo_id:I.id,is_gallery_image:x=="ytbanner"};P&&(W.crop_top=P.top,W.crop_right=P.right,W.crop_bottom=P.bottom,W.crop_left=P.left);return _.r$C("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:W})};var uy=function(){var W=_.b.apply(this,arguments)||this;W.ariaLabel=null;return W};
_.A(uy,_.b);_.J=uy.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){this.picker&&this.picker.dispose()};
_.J.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.J.computeAriaLabel=function(W){return W};
_.J.onTap=function(){var W=this,P;if((P=this.data)==null||!P.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new oE9(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var x;(x=this.picker)==null||x.open().then(function(I){W.handleBannerPicked(I)},function(){})}};
_.J.handleBannerPicked=function(W){var P=this;this.uploader||(this.uploader=new Ssy(this.data.channelId||""));this.message=this.data.uploadingText;uQ6(this.uploader,W).then(function(x){P.handleBannerUploadSucceeded(x)},function(x){P.handleBannerUploadFailed(x)})};
_.J.handleBannerUploadSucceeded=function(W){W&&W.errors?this.handleBannerUploadFailed(W):(_.Lf(this.hostElement,"yt-banner-updated",W),this.message=null)};
_.J.handleBannerUploadFailed=function(W){this.message=W&&W.errors&&W.errors.length?W.errors[0]:null};
uy.prototype.dataChanged=uy.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],uy.prototype,"componentBehavior",void 0);_.f([_.h(_.$u),_.l("design:type",Object)],uy.prototype,"ironButtonState",void 0);_.f([_.c(),_.l("design:type",Object)],uy.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.l("design:type",Object)],uy.prototype,"ariaLabel",void 0);
_.f([_.c(),_.l("design:type",Object)],uy.prototype,"message",void 0);_.f([_.c(),_.l("design:type",Object)],uy.prototype,"picker",void 0);_.f([_.c(),_.l("design:type",Object)],uy.prototype,"uploader",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uy.prototype,"dataChanged",null);uy=_.f([_.U({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],uy);
_.X(uy,"ytd-channel-banner-editor-renderer",function(){if(ZyO!==void 0)return ZyO;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return ZyO=W},{mode:1});var de3;var sB3=_.i4(["#"]),dI=function(){return _.b.apply(this,arguments)||this};
_.A(dI,_.b);dI.prototype.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W,!0)||_.pz(sB3)};
dI.prototype.dataChanged=function(){var W=this.data;W&&W.targetId&&_.jri(_.Bv(),W.targetId,this.moreIcon)};
dI.prototype.dataChanged=dI.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],dI.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dI.prototype,"data",void 0);_.f([_.BM("#more-icon"),_.l("design:type",Object)],dI.prototype,"moreIcon",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dI.prototype,"dataChanged",null);
dI=_.f([_.U({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],dI);
_.X(dI,"ytd-channel-tagline-renderer",function(){if(de3!==void 0)return de3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return de3=W},{mode:1});var vE6;var sD=function(){return _.b.apply(this,arguments)||this};
_.A(sD,_.b);_.J=sD.prototype;_.J.ready=function(){var W=this;_.g(this.hostElement).querySelector("#form").addEventListener("submit",function(P){W.onSubmit(P)})};
_.J.onDataChanged=function(){var W;((W=this.data)==null?0:W.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.J.onIconButtonKeydown=function(W){W.keyCode===13&&this.iconButton.click()};
_.J.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.J.openOnClickHandler=function(){this.input.focus()};
_.J.onSubmit=function(W){W.preventDefault();return!1};
_.J.submitOnEnterKeyUp=function(W){var P;if(W.keyCode===13&&((P=this.data)==null?0:P.expandedText)){W=this.data.endpoint;P=_.jU.unsafeClone(W);var x;((x=_.Q(P==null?void 0:P.commandMetadata,_.rU))==null?0:x.url)?(_.Q(P.commandMetadata,_.rU).url=_.hy(_.Q(P.commandMetadata,_.rU).url,"query",this.data.expandedText),_.Q(P,_.KL)&&(_.Q(P,_.KL).query=this.data.expandedText),_.Lf(this.hostElement,"yt-navigate",{endpoint:P,tempData:{disableCache:!0}})):(x=new _.mW("Error: Trying to navigate to an endpoint without url",
W),_.G$(x))}};
_.J.updateDataExpandedTextFromBinding=function(W){this.set("data.expandedText",W.detail.value)};
sD.prototype.onDataChanged=sD.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.luB),_.l("design:type",Object)],sD.prototype,"ytdExpandableInputBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sD.prototype,"data",void 0);_.f([_.BM("#input"),_.l("design:type",Object)],sD.prototype,"input",void 0);_.f([_.BM("#icon-button"),_.l("design:type",HTMLElement)],sD.prototype,"iconButton",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sD.prototype,"onDataChanged",null);sD=_.f([_.U({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],sD);
var XN9=_.R7()(sD,"ytd-expandable-tab-renderer",function(){if(vE6===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);vE6=W}W=vE6;return W},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var mem;var v8=function(){var W=_.b.apply(this,arguments)||this;W.avatarSize=80;W.ariaLabel=_.KK("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return W};
_.A(v8,_.b);v8.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
v8.prototype.computeHref=function(W){var P;return((P=_.Q(W,_.aR))==null?0:P.url)?this.componentBehavior.computeHref_(W):null};
v8.prototype.onTap=function(){var W,P;(W=this.data)==null||!W.editAvatarServiceEndpoint||((P=_.Q(this.data.editAvatarServiceEndpoint,_.aR))==null?0:P.url)||_.FY().resolve(_.qR).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.f([_.h(_.$u),_.l("design:type",Object)],v8.prototype,"ironButtonState",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],v8.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],v8.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],v8.prototype,"avatarSize",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],v8.prototype,"ariaLabel",void 0);v8=_.f([_.U({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],v8);
_.X(v8,"ytd-channel-avatar-editor",function(){if(mem!==void 0)return mem;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return mem=W},{mode:1});var VsG=_.kl(function(W){var P=W.data;var x=W.noPadding;var I=W.enableBanner;var O=W.cinematicContainerTopbarOffset;var B=W.allowCinematicContainerOverflow;var Y=W.displayAsSidebar;W=W.className;_.jj(function(){P().tagManagerId&&(_.db(P().tagManagerId,_.$$("GL")),iYy(P().tagManagerId))});
var K=_.dp(N46,function(){return P().pageHeaderEntityKey});
return _.u("yt-page-header-renderer",{class:_.O4("page-header-renderer-wiz",W)},_.u(_.Ea,{data:function(){var Z;return((Z=K())==null?0:Z.header)?K().header:(Y==null?0:Y())&&P().sidebarContent?P().sidebarContent:P().content}},{pageHeaderViewModel:function(Z){return _.u(_.CJw,{data:Z.data,
noPadding:x,enableBanner:I,cinematicContainerTopbarOffset:O,allowCinematicContainerOverflow:B,displayAsSidebar:function(){return(Y==null?void 0:Y())&&P().enableSidebarView}})}}))},"xi");
VsG.idomCompat=!0;_.lq(VsG,"yt-page-header-renderer",{props:{data:_.cv,noPadding:_.cv,enableBanner:_.cv,cinematicContainerTopbarOffset:_.cv,allowCinematicContainerOverflow:_.cv,displayAsSidebar:_.cv,className:_.cv}});_.lq(_.j3k,"yt-image-banner-view-model",{props:{data:_.cv,isPositionRelative:_.cv}});_.lq(_.kJb,"yt-tab-group-shape",{props:{shape:_.cv}});var mi=function(){var W=_.b.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(P){return fX4(P,function(){return void W.onSearchNavigate()})};
W.isRichGrid=!1;W.isConstrainedList=!1;W.richGridMiniMode=!1;W.richGridStyle="RICH_GRID_STYLE_UNKNOWN";W.isRichGridShorts=!1;W.responsiveSizing="COMPACT";W.disableGridStateAware=!1;W.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return W};
_.A(mi,_.b);_.J=mi.prototype;_.J.computeHeaderDisabled=function(W,P){return P||!W||this.tabsHidden};
_.J.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.J.computeIsRichGridShorts=function(W){return W==="RICH_GRID_STYLE_SHORTS_GRID"||W==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.J.computeImageBannerViewModel=function(){var W,P;return _.Q((P=_.Q((W=this.data)==null?void 0:W.content,_.xGZ))==null?void 0:P.banner,_.F4A)};
_.J.computeHasCinematicContainer=function(){var W,P;return!((P=_.Q((W=this.data)==null?void 0:W.content,_.xGZ))==null||!P.background)};
_.J.handleHeaderResize=function(){var W=_.g(this.hostElement).querySelector("#header");W&&_.Lf(W,"iron-resize")};
_.J.handleInsertTabCommand=function(W){var P=_.Q(W,dk2);P&&(P.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(x){return x.tabRenderer&&x.tabRenderer.tabIdentifier===P.tabIdentifier})||this.splice("tabs",P.tabIndex||-1,0,P.tab))};
_.J.handleRefreshChannelTabAction=function(W){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===W&&_.Lf(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.J.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.qa(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.J.observerRichGridSlimItemsPerRow=function(){_.qa(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.J.updateCssVars=function(){this.richGridItemsPerRow&&_.qa(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Wi("rich_grid_max_item_width",500))+16)-16+"px"})};
_.J.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.qa(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.J.onDataChanged=function(){this.handleHeaderResize()};
_.J.onWindowResize=function(){this.handleHeaderResize()};
_.J.onFocusedChanged=function(W){(W=_.af(W))&&W.is==="tp-yt-paper-tab"&&W.hasRipple()&&(W.getRipple().holdDown=!W.pointerDown&&W.focused)};
_.J.updateSelectedFromBinding=function(W){this.ytdTabbedHeaderBehavior.selected=W.detail.value};
_.J.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.N1.Object.defineProperties(mi.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:T44(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.imageBannerViewModel)==null?void 0:W.style)==="IMAGE_BANNER_STYLE_INSET"}}});
mi.prototype.onDataChanged=mi.prototype.onDataChanged;mi.prototype.updateCssVarsForResponsiveGrid=mi.prototype.updateCssVarsForResponsiveGrid;mi.prototype.updateCssVars=mi.prototype.updateCssVars;mi.prototype.observerRichGridSlimItemsPerRow=mi.prototype.observerRichGridSlimItemsPerRow;mi.prototype.observerRichGridItemsPerRow=mi.prototype.observerRichGridItemsPerRow;_.f([_.h(_.MW),_.l("design:type",Object)],mi.prototype,"ytdGridStateAwareBehavior",void 0);
_.f([_.h(sUO),_.l("design:type",Object)],mi.prototype,"ytdTabbedHeaderBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],mi.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],mi.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],mi.prototype,"ytdReduxBehavior",void 0);_.f([_.BM("#tabs"),_.l("design:type",Object)],mi.prototype,"tabsElement",void 0);_.f([_.c(),_.l("design:type",Array)],mi.prototype,"tabs",void 0);_.f([_.c(),_.l("design:type",Object)],mi.prototype,"expandableCustomTabRenderable",void 0);_.f([_.H("tabs.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],mi.prototype,"tabGroupShape",null);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mi.prototype,"isRichGrid",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mi.prototype,"isConstrainedList",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Object)],mi.prototype,"richGridMiniMode",void 0);_.f([_.c({selector:function(W){return W.ui.richGridStyle}}),
_.l("design:type",Object)],mi.prototype,"richGridStyle",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.l("design:type",Object)],mi.prototype,"isRichGridShorts",void 0);_.f([_.c({selector:_.CR}),_.l("design:type",Number)],mi.prototype,"richGridItemsPerRow",void 0);_.f([_.c({selector:function(W){return W.ui.richGridContainerWidth}}),
_.l("design:type",Number)],mi.prototype,"richGridContainerWidth",void 0);_.f([_.c({selector:_.tOd}),_.l("design:type",Number)],mi.prototype,"richGridSlimItemsPerRow",void 0);_.f([_.c(),_.l("design:type",Object)],mi.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mi.prototype,"responsiveSizing",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],mi.prototype,"disableGridStateAware",void 0);
_.f([_.c({computed:"computeImageBannerViewModel(data)"}),_.l("design:type",Object)],mi.prototype,"imageBannerViewModel",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.l("design:type",Boolean)],mi.prototype,"hasCinematicContainer",void 0);_.f([_.c({selector:_.MuG,reflectToAttribute:!0}),_.l("design:type",Boolean)],mi.prototype,"guideIsVisibleButNotPersistent",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("imageBannerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],mi.prototype,"hasBanner",null);_.f([_.c({reflectToAttribute:!0}),_.H("imageBannerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],mi.prototype,"hasInsetBanner",null);_.f([_.c({computed:"computeTabsHidden(tabs)",value:!0}),_.l("design:type",Boolean)],mi.prototype,"tabsHidden",void 0);
_.f([_.OZ("richGridItemsPerRow","isRichGrid"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mi.prototype,"observerRichGridItemsPerRow",null);_.f([_.OZ("richGridSlimItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mi.prototype,"observerRichGridSlimItemsPerRow",null);
_.f([_.OZ("richGridItemsPerRow","richGridMiniMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mi.prototype,"updateCssVars",null);_.f([_.OZ("richGridContainerWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mi.prototype,"updateCssVarsForResponsiveGrid",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mi.prototype,"onDataChanged",null);
mi=_.f([_.U({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],mi);
_.X(mi,"ytd-tabbed-page-header",function(){if(K$f!==void 0)return K$f;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return K$f=W},{mode:1});var tsQ;var V0=function(){return _.b.apply(this,arguments)||this};
_.A(V0,_.b);V0.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.qa(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.N1.Object.defineProperties(V0.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var W,P;return this.componentBehavior.computeIcon_(((P=_.Q((W=this.data)==null?void 0:W.badge,_.TNW))==null?void 0:P.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.badge,_.TNW))==null?void 0:P.label}}});
V0.prototype.observerRichGridItemsPerRow=V0.prototype.observerRichGridItemsPerRow;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],V0.prototype,"componentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],V0.prototype,"ytdReduxBehavior",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.QT}),_.l("design:type",Boolean)],V0.prototype,"richGridMiniMode",void 0);
_.f([_.c({selector:_.CR}),_.l("design:type",Number)],V0.prototype,"richGridItemsPerRow",void 0);_.f([_.c(),_.l("design:type",Object)],V0.prototype,"data",void 0);_.f([_.OZ("richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V0.prototype,"observerRichGridItemsPerRow",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],V0.prototype,"badgeIconName",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],V0.prototype,"badgeLabel",null);V0=_.f([_.U({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],V0);
_.X(V0,"ytd-member-hub-profile-renderer",function(){if(tsQ!==void 0)return tsQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return tsQ=W},{mode:1});var p$m;var tB=function(){return _.b.apply(this,arguments)||this};
_.A(tB,_.b);tB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],tB.prototype,"data",void 0);tB=_.f([_.U({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],tB);
_.X(tB,"ytd-settings-sidebar-renderer",function(){if(p$m!==void 0)return p$m;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return p$m=W},{mode:1});var jB9;var p$=function(){var W=_.b.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(P){return fX4(P,function(){return void W.onSearchNavigate()})};
return W};
_.A(p$,_.b);p$.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
p$.prototype.onSearchNavigate=function(){this.selected=void 0};
p$.prototype.onTabsChange=function(){var W,P=(W=this.tabs)==null?void 0:W.findIndex(function(x){var I;return x==null?void 0:(I=x.tabRenderer)==null?void 0:I.selected});
P!==void 0&&(this.selected=P)};
p$.prototype.onTabsActive=function(W){if(this.tabs!==void 0){var P,x;(W=(P=this.tabs[W.detail.selected])==null?void 0:(x=P.tabRenderer)==null?void 0:x.endpoint)&&_.Lf(this.hostElement,"yt-navigate",{endpoint:W})}};
_.N1.Object.defineProperties(p$.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:T44(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
p$.prototype.onTabsChange=p$.prototype.onTabsChange;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.MW),_.l("design:type",Object)],p$.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],p$.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],p$.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Array)],p$.prototype,"tabs",void 0);_.f([_.c(),_.l("design:type",Number)],p$.prototype,"selected",void 0);_.f([_.H("tabs.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],p$.prototype,"tabGroupShape",null);_.f([_.c(),_.l("design:type",Object)],p$.prototype,"expandableCustomTabRenderable",void 0);
_.f([_.H("tabs"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],p$.prototype,"tabsEnabled",null);_.f([_.K_("tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p$.prototype,"onTabsChange",null);p$=_.f([_.U({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],p$);
_.X(p$,"ytd-topic-channel-details-renderer",function(){if(jB9!==void 0)return jB9;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return jB9=W},{mode:1});var QBM;var jN=function(){var W=_.b.apply(this,arguments)||this;W.disableGridStateAware=!1;return W};
_.A(jN,_.b);jN.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]]"}}}}}};
jN.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
jN.prototype.updateCssVars=function(){_.qa(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Wi("rich_grid_max_item_width",500))+16)-16+"px"})};
jN.prototype.updateCssVars=jN.prototype.updateCssVars;jN.prototype.activeChanged=jN.prototype.activeChanged;_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],jN.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],jN.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jN.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Array)],jN.prototype,"tabs",void 0);_.f([_.c(),_.l("design:type",Boolean)],jN.prototype,"active",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],jN.prototype,"disableGridStateAware",void 0);
_.f([_.c({selector:_.CR}),_.l("design:type",Number)],jN.prototype,"richGridItemsPerRow",void 0);_.f([_.c({selector:_.QT}),_.l("design:type",Boolean)],jN.prototype,"richGridMiniMode",void 0);_.f([_.BM("ytd-carousel-item-renderer"),_.l("design:type",Object)],jN.prototype,"carousel",void 0);_.f([_.OZ("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jN.prototype,"activeChanged",null);
_.f([_.OZ("richGridItemsPerRow","richGridMiniMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jN.prototype,"updateCssVars",null);jN=_.f([_.U({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],jN);
_.X(jN,"ytd-carousel-header-renderer",function(){if(QBM!==void 0)return QBM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return QBM=W},{mode:1});var CKm;var ADG=_.i4(["https://www.google-analytics.com/analytics.js"]),Q0=function(){var W=_.b.apply(this,arguments)||this;W.scriptAnalyticsAdded=!1;return W};
_.A(Q0,_.b);Q0.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var W,P=(W=this.data)==null?void 0:W.tagManagerId;P&&(_.db(P,_.$$("GL")),iYy(P))};
Q0.prototype.sendGoogleAnalyticsPageview=function(W){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var x=_.tH.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(x)};
var P=window.ga;P("set","page",window.location.pathname);P.l=+new Date;P("set","forceSSL",!0);P("create",W,"'auto'");P("send","pageview")};
Q0.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var W=_.ZV("SCRIPT");W.name="ga-analytics";var P=_.W9(ADG);_.c6(W,P);W.async=!0;_.g(this.hostElement).appendChild(W)};
Q0.prototype.dataChanged=Q0.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],Q0.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Q0.prototype,"dataChanged",null);Q0=_.f([_.U({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Q0);
_.X(Q0,"ytd-channel-metadata-renderer",function(){if(CKm!==void 0)return CKm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return CKm=W},{mode:1});var zz9;var Gx2;var C$=function(){return _.b.apply(this,arguments)||this};
_.A(C$,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],C$.prototype,"data",void 0);C$=_.f([_.U({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],C$);
_.X(C$,"ytd-sub-feed-option-renderer",function(){if(Gx2!==void 0)return Gx2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Gx2=W},{mode:1});var EEy;var AB=function(){return _.b.apply(this,arguments)||this};
_.A(AB,_.b);AB.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],AB.prototype,"ytRendererStamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],AB.prototype,"data",void 0);AB=_.f([_.U({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],AB);
_.X(AB,"ytd-sub-feed-selector-renderer",function(){if(EEy!==void 0)return EEy;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return EEy=W},{mode:1});var z3=function(){return _.b.apply(this,arguments)||this};
_.A(z3,_.b);
z3.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}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],z3.prototype,"data",void 0);z3=_.f([_.U({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],z3);
_.X(z3,"ytd-browse-feed-actions-renderer",function(){if(zz9!==void 0)return zz9;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return zz9=W},{mode:1});var gEv;var Ded;var G3=function(){return _.b.apply(this,arguments)||this};
_.A(G3,_.b);G3.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],G3.prototype,"data",void 0);G3=_.f([_.U({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],G3);
_.X(G3,"ytd-mini-channel-renderer",function(){if(Ded!==void 0)return Ded;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ded=W},{mode:1});var MsG;var ED=function(){return _.b.apply(this,arguments)||this};
_.A(ED,_.b);ED.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ED.prototype,"data",void 0);ED=_.f([_.U({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],ED);
_.X(ED,"ytd-vertical-channel-section-renderer",function(){if(MsG!==void 0)return MsG;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return MsG=W},{mode:1});var gI=function(){return _.b.apply(this,arguments)||this};
_.A(gI,_.b);gI.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],gI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],gI.prototype,"data",void 0);gI=_.f([_.U({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],gI);
_.X(gI,"ytd-browse-secondary-contents-renderer",function(){if(gEv!==void 0)return gEv;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return gEv=W},{mode:1});var $em;var Da=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};W.notActive=!1;W.isConstrainedList=!1;return W};
_.A(Da,_.b);_.J=Da.prototype;
_.J.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(W){var P;return(W==null?void 0:(P=W.webComponentHint)==null?void 0:P.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}}}}};
_.J.getPath=function(W,P){var x="data.tabs.#"+P+".";W.tabs[P].tabRenderer?x+="tabRenderer.":W.tabs[P].expandableTabRenderer&&(x+="expandableTabRenderer.");return x+"content.sectionListRenderer"};
_.J.computeDisplayedContent=function(W){this.unlinkPaths("content");if(W&&W.tabs)for(var P=W.tabs.length,x=0;x<P;x++){var I=W.tabs[x].tabRenderer||W.tabs[x].expandableTabRenderer;if(I.selected&&I.content)return this.linkPaths("content",this.getPath(W,x)),I.content}return null};
_.J.computeHasSecondaryColumnData=function(W){return!!W&&!!W.secondaryContents};
_.J.onRetrieveLocation=function(W,P){P.locationRetrieved(P.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);W.stopPropagation()};
_.J.onYtServiceRequestSent=function(W,P){_.p("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(P)};
_.J.onYtServiceRequestCompleted=function(W,P){_.p("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(P)};
_.J.onReplaceFeedContentAction=function(W){if(!_.p("replace_feed_content_action_killswitch")&&!this.notActive){var P;(W=(P=_.Q(W,O8Q))==null?void 0:P.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(W)}};
_.J.handleServiceRequestActions=function(W){if(W=W.actions){W=_.n(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;var x=void 0;((x=_.Q(P,O8Q))==null?0:x.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.Q(P,O8Q).items)}}};
Da.prototype.onYtServiceRequestCompleted=Da.prototype.onYtServiceRequestCompleted;Da.prototype.onYtServiceRequestSent=Da.prototype.onYtServiceRequestSent;Da.prototype.onRetrieveLocation=Da.prototype.onRetrieveLocation;_.f([_.h(_.MW),_.l("design:type",Object)],Da.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Da.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Da.prototype,"data",void 0);_.f([_.c({computed:"computeDisplayedContent(data)"}),_.l("design:type",Object)],Da.prototype,"content",void 0);
_.f([_.c({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Da.prototype,"hasSecondaryColumnData",void 0);_.f([_.c({value:function(){return window.outerHeight>1024?3:2}}),
_.l("design:type",Number)],Da.prototype,"initialCount",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],Da.prototype,"pageSubtype",void 0);_.f([_.BM("ytd-section-list-renderer"),_.l("design:type",Object)],Da.prototype,"listRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],Da.prototype,"notActive",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Da.prototype,"isConstrainedList",void 0);
_.f([_.c(),_.l("design:type",String)],Da.prototype,"responsiveSizing",void 0);_.f([_.I7("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Da.prototype,"onRetrieveLocation",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],Da.prototype,"onYtServiceRequestSent",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],Da.prototype,"onYtServiceRequestCompleted",null);Da=_.f([_.U({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Da);
_.X(Da,"ytd-two-column-browse-results-renderer",function(){if($em!==void 0)return $em;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return $em=W},{mode:2});var w$d;var hzf;var MZ=function(){var W=_.b.apply(this,arguments)||this;W.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"]);W.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"]);W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return W};
_.A(MZ,_.b);_.J=MZ.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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_]]"}}}}}};
_.J.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.J.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.computeAlertStyle_=function(W){return W};
_.J.observerElementsPerRow=function(){this.elementsPerRow&&_.qa(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.J.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.J.requestElementsPerRow=function(){_.Lf(this.hostElement,"yt-request-elements-per-row")};
MZ.prototype.onIsVisibleChanged_=MZ.prototype.onIsVisibleChanged_;MZ.prototype.observerElementsPerRow=MZ.prototype.observerElementsPerRow;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],MZ.prototype,"actionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],MZ.prototype,"data",void 0);_.f([_.c({value:6,reflectToAttribute:!0}),_.l("design:type",Number)],MZ.prototype,"elementsPerRow",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],MZ.prototype,"wrapButtons",void 0);_.f([_.c({value:_.$$("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.l("design:type",Boolean)],MZ.prototype,"isMusic",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.l("design:type",String)],MZ.prototype,"alertStyle",void 0);_.f([_.c({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.l("design:type",Function)],MZ.prototype,"dismissBoundButtonTap_",void 0);_.f([_.c({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.l("design:type",Function)],MZ.prototype,"acceptBoundButtonTap_",void 0);_.f([_.OZ("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MZ.prototype,"observerElementsPerRow",null);_.f([_.OZ("data.isVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MZ.prototype,"onIsVisibleChanged_",null);MZ=_.f([_.jd({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],MZ);
_.X(MZ,"yt-alert-with-actions-renderer",function(){if(hzf===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;w$d===void 0&&(w$d=document.createElement("template"));var I=w$d;x.call(P,I.content.cloneNode(!0),W.content.firstChild);hzf=W}W=hzf;return W},{mode:2});_.lq(_.kl(function(W){function P(t){var C={};return _.u(_.mQ,{text:t,className:_.O4("ytPersonalGreetingViewModelHeadline",(C.ytPersonalGreetingViewModelHeadlineSmall=function(){return K()===48},C))})}
function x(t,C){return _.u("span",{el:t,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},P(C))}
var I=_.fa(),O=_.fa(),B=_.fa(),Y=function(){return W.data().canvasPromoData},K=function(){var t;
return(t=W.data().bannerHeight)!=null?t:56},Z=_.CQo(I,{throttleMs:100}),d=_.CQo(O,{throttleMs:100}),v=_.CQo(B,{throttleMs:100}),m=function(){return d.width()-Z.width()>1};
_.NI(I,function(){var t;return(t=W.data())==null?void 0:t.rendererContext},void 0,void 0,void 0,!0);
return _.u("yt-personal-greeting-view-model",{el:I,"aria-hidden":m,class:_.O4(W.className,"ytPersonalGreetingViewModelHost"),style:_.oP({height:(0,_.mq)(function(){return m()?0:K()})})},_.u(_.V,{cond:function(){return W.data().avatar&&!(v.width()+(W.data().avatar?48:0)-Z.width()>1)},
then:function(){return _.u(_.Ea,{data:function(){return W.data().avatar}},{decoratedAvatarViewModel:function(t){return _.u(_.ml,{data:t.data,
className:_.O4("ytPersonalGreetingViewModelAvatar")})}})}}),_.u("h1",null,P(function(){var t;
return(Y==null?void 0:(t=Y())==null?void 0:t.headline)||(v.width()+(W.data().avatar?48:0)-Z.width()>1?W.data().shorterGreeting:W.data().greeting)})),x(B,function(){return W.data().greeting}),x(O,function(){return W.data().shorterGreeting}))},"yi"),"yt-personal-greeting-view-model",{props:{data:_.cv,
className:_.cv}});var $r=function(){var W=_.b.apply(this,arguments)||this;W.hidden=!1;W.isConstrainedList=!1;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.responsiveSizing="COMPACT";W.attachedPlayers=_.p("kevlar_channel_trailer_multi_attach")?[]:void 0;W.player=null;W.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return W};
_.A($r,_.b);_.J=$r.prototype;
_.J.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}}}}};
_.J.created=function(){var W=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){W.disposeMastheadAd()}]};
_.J.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new VrO(this.refresh,this.contents))};
_.J.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.J.activeChanged=function(){var W=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=W)};
_.J.tabsChanged=function(){var W=this,P,x;if(this.pageSubtype==="channels"||_.p("kevlar_tab_gestures_for_tabbed_header_data")&&((P=this.data)==null?0:(x=P.header)==null?0:x.carouselHeaderRenderer))this.tabGestures=new Dm(this.contents,this.contents,this.hostElement,this.header,function(Y){W.ytdReduxBehavior.dispatch(Y)});
var I,O,B;P=(I=this.data)==null?void 0:(O=I.contents)==null?void 0:(B=O.twoColumnBrowseResultsRenderer)==null?void 0:B.tabs;this.tabGestures&&this.tabGestures.tabsChanged(P)};
_.J.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.J.engagementPanelsChanged=function(){var W=_.FY().resolve(_.m3);if(W){if(this.engagementPanels)for(var P=_.n(this.engagementPanels),x=P.next();!x.done;x=P.next()){var I=void 0;(x=(I=x.value.identifier)==null?void 0:I.tag)&&W.panelMap.delete(x)}this.engagementPanels=[];var O;P=_.n(((O=this.data)==null?void 0:O.panels)||[]);for(O=P.next();!O.done;O=P.next()){O=_.Q(O.value,_.qMQ);var B=x=void 0,Y=void 0,K=void 0;if(I=((x=O)==null?void 0:x.targetId)||((B=O)==null?void 0:B.panelIdentifier)||((Y=O)==
null?void 0:(K=Y.identifier)==null?void 0:K.tag))B=x=void 0,(B=(x=W).registerPanelContent)==null||B.call(x,I,{engagementPanelSectionListRenderer:O}),this.engagementPanels.push(O)}}};
_.J.onStampFinished=function(){var W=this;_.Xm(this,function(){if(W.tabGestures){var P=W.tabGestures;if(P.scrollPositionNeedsUpdate){var x=_.FY().resolve(_.Rl(_.rL)),I;if((I=P.selectedTab)!=null&&I.title&&x&&(I=x.getCurrentPage())){if(P.scrollPositionForTabs.has(P.selectedTab.title)){var O,B;x=(B=(O=x.getCurrentPage())==null?void 0:O.clientHeight)!=null?B:0;O=P.scrollPositionForTabs.get(P.selectedTab.title);I.setScrollTop(O);x>O+100&&(P.scrollPositionNeedsUpdate=!1)}else I.setScrollTop(Math.min(P.lastVisitedTabScrollPosition!==
void 0?P.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,P.tabsStartAtInPx)),P.scrollPositionNeedsUpdate=!1;P.ytdReduxDispatch(rtm(!1))}}}})};
_.J.loadPage_=function(W){this.initCsi();W&&(this.data=W);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.J.getTitle=function(W){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",W))return this.get("microformat.microformatDataRenderer.title",W);if(this.get("header.feedTabbedHeaderRenderer.title",W))return _.kz(this.get("header.feedTabbedHeaderRenderer.title",W));if(this.get("header.interactiveTabbedHeaderRenderer.title",W))return this.get("header.interactiveTabbedHeaderRenderer.title",W);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
W))return _.kz(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",W));var P,x;return _.p("enable_page_header_page_title")&&(W==null?0:(P=W.header)==null?0:(x=P.pageHeaderRenderer)==null?0:x.pageTitle)?W.header.pageHeaderRenderer.pageTitle:""};
_.J.updateTitle=function(W){_.Lf(this.hostElement,"yt-update-title",this.getTitle(W))};
_.J.initCsi=function(){_.A5(this.pageSubtype||"browse",["ol","cpt"])};
_.J.getPlayer=function(){if(_.p("kevlar_channel_trailer_multi_attach")){for(var W=_.n(this.attachedPlayers),P=W.next();!P.done;P=W.next())if(P=P.value,P.isConnected||_.wv(this.hostElement,P))return P;return null}return this.player};
_.J.getPlayerContainer=function(){return null};
_.J.onPlayerAttached=function(W,P){_.p("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(P):this.player=P};
_.J.onPlayerDetached=function(W,P){_.p("kevlar_channel_trailer_multi_attach")?(W=this.attachedPlayers.indexOf(P),W<0||this.attachedPlayers.splice(W,1)):this.player=null};
_.J.getServiceTrackingParams=function(){var W,P;return((W=this.data)==null?void 0:(P=W.responseContext)==null?void 0:P.serviceTrackingParams)||[]};
_.J.setMastheadAd=function(W){W&&W.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=W&&W.mastheadAd};
_.J.dataChanged=function(){var W=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.M72();_.Xm(this,function(){_.P7(W.hostElement,"ytd-update-grid-state-action")})};
_.J.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.J.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(P){return!!P.alertWithActionsRenderer})}};
_.J.computeGreetingData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(P){return!!P.personalGreetingViewModel})}};
_.J.computeHasMemberHubProfileRenderer=function(W){var P;return!!(W==null?0:(P=W.header)==null?0:P.memberHubProfileRenderer)};
_.J.handleAlertCommand=function(W){this.get("alertCommand.alert.alertWithActionsRenderer",W)&&(W=_.Q(W,JOv),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",W.alert))};
_.J.handleYtPlaylistDeletionRedirect=function(W){W=this.get("playlistDeletionRedirectCommand.redirectEndpoint",W);_.Lf(this.hostElement,"yt-navigate",{endpoint:W})};
_.J.computeFluidWidth=function(W,P,x){if(P==="mini_app"||x)return!0;var I,O,B;W=W==null?void 0:(I=W.contents)==null?void 0:(O=I.twoColumnBrowseResultsRenderer)==null?void 0:(B=O.tabs)==null?void 0:B.find(function(Z){var d;return Z==null?void 0:(d=Z.tabRenderer)==null?void 0:d.selected});
if(!W)return!1;var Y,K;return!!((Y=W.tabRenderer)==null?0:(K=Y.content)==null?0:K.richGridRenderer)&&!["channel","channels","playables"].includes(P)};
_.J.computeHeaderFluidWidth=function(W){return W==="hashtag-landing-page"};
_.J.computeHasSidebar=function(W){var P;return!!(W.sidebar||((P=W.header)==null?0:P.playlistHeaderRenderer))};
_.J.computeHasPageHeaderSidebar=function(W){var P,x;return!!((P=W.header)==null?0:(x=P.pageHeaderRenderer)==null?0:x.enableSidebarView)};
_.J.computeUseUnifiedShowPageLayout=function(W){if(!W||this.pageSubtype!=="show"||!W.sidebar||!W.sidebar.playlistSidebarRenderer)return!1;W=W.sidebar.playlistSidebarRenderer;if(!W.items)return!1;for(var P=0;P<W.items.length;P++)if(_.Q(W.items[P],Eg)){var x=void 0;return((x=_.Q(W.items[P],Eg))==null?void 0:x.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.J.computeIsConstrainedList=function(W){return _.p("web_enable_constrained_list_subscriptions_channels")&&W==="subscriptions-channels"};
_.J.computeResponsiveSizing=function(W){return W==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.N1.Object.defineProperties($r.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var W,P;return((W=this.data)==null?0:(P=W.header)==null?0:P.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var W,P;if(!((W=this.data)==null?0:(P=W.sidebar)==null?0:P.playlistSidebarRenderer))return!1;var x;return(x=this.data)!=null&&x.header?!1:!0}}});
_.N1.Object.defineProperties($r,{template:{configurable:!0,enumerable:!0,get:function(){if(jUm===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);jUm=W}W=jUm;return W}}});
$r.prototype.dataChanged=$r.prototype.dataChanged;$r.prototype.onPlayerDetached=$r.prototype.onPlayerDetached;$r.prototype.onPlayerAttached=$r.prototype.onPlayerAttached;$r.prototype.onStampFinished=$r.prototype.onStampFinished;$r.prototype.engagementPanelsChanged=$r.prototype.engagementPanelsChanged;$r.prototype.scrollAtTopChanged=$r.prototype.scrollAtTopChanged;$r.prototype.tabsChanged=$r.prototype.tabsChanged;$r.prototype.activeChanged=$r.prototype.activeChanged;
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],$r.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],$r.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],$r.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.zV.YtPageBehavior),_.l("design:type",Object)],$r.prototype,"ytPageBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],$r.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],$r.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$r.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$r.prototype,"hidden",void 0);
_.f([_.c(),_.l("design:type",Object)],$r.prototype,"mastheadAdData",void 0);_.f([_.c({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.l("design:type",Object)],$r.prototype,"alertBannerData",void 0);_.f([_.c({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.l("design:type",Object)],$r.prototype,"greetingData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],$r.prototype,"pageSubtype",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.l("design:type",Boolean)],$r.prototype,"hasMemberHubProfileRenderer",void 0);_.f([_.c({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],$r.prototype,"hasSidebar",void 0);_.f([_.c({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],$r.prototype,"hasPageHeaderSidebar",void 0);
_.f([_.c({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],$r.prototype,"roundedContainer",void 0);_.f([_.c({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],$r.prototype,"useUnifiedShowPageLayout",void 0);_.f([_.c({computed:"computeIsConstrainedList(pageSubtype)"}),_.l("design:type",Object)],$r.prototype,"isConstrainedList",void 0);
_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$r.prototype,"usePlaylistHeaderRenderer",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$r.prototype,"useOldPlaylistSidebarRenderer",null);_.f([_.c({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.l("design:type",Boolean)],$r.prototype,"fluidWidth",void 0);_.f([_.c({selector:function(W){return W.ui.scrollAtTop}}),
_.l("design:type",Boolean)],$r.prototype,"scrollAtTop",void 0);_.f([_.c({selector:_.$i3}),_.l("design:type",Boolean)],$r.prototype,"tabGesturesIsActive",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],$r.prototype,"darkerDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.l("design:type",Boolean)],$r.prototype,"disableHeaderFluidWidth",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.l("design:type",String)],$r.prototype,"responsiveSizing",void 0);_.f([_.BM("ytd-two-column-browse-results-renderer"),_.l("design:type",HTMLElement)],$r.prototype,"contents",void 0);_.f([_.BM("#header"),_.l("design:type",HTMLElement)],$r.prototype,"header",void 0);_.f([_.BM("ytd-refresh"),_.l("design:type",Object)],$r.prototype,"refresh",void 0);
_.f([_.OZ("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$r.prototype,"activeChanged",null);_.f([_.OZ("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$r.prototype,"tabsChanged",null);_.f([_.OZ("scrollAtTop"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$r.prototype,"scrollAtTopChanged",null);
_.f([_.c(),_.l("design:type",Object)],$r.prototype,"engagementPanels",void 0);_.f([_.OZ("data.panels"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$r.prototype,"engagementPanelsChanged",null);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$r.prototype,"onStampFinished",null);
_.f([_.I7("yt-player-attached"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Element]),_.l("design:returntype")],$r.prototype,"onPlayerAttached",null);_.f([_.I7("yt-player-detached"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Element]),_.l("design:returntype")],$r.prototype,"onPlayerDetached",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$r.prototype,"dataChanged",null);
$r=_.f([_.U({is:"ytd-browse"})],$r);_.jf.registerService(_.xZG,$r);
_.Az();
}catch(e){_._DumpException(e)}
try{
_.CU("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 xp=function(W){if(!W)return"browse";var P=W.page,x=W.url,I,O,B,Y=(I=W.response)==null?void 0:(O=I.responseContext)==null?void 0:(B=O.webResponseContextExtensionData)==null?void 0:B.pageTheme;if(Y)P=Y.toLowerCase().replace(/_/g,"-");else if(P!=="watch"&&P!=="learning_journey_watch"){var K,Z;if((P==="browse"||P==="settings")&&((K=W.response)==null?0:(Z=K.sidebar)==null?0:Z.settingsSidebarRenderer))P="WEB_PAGE_TYPE_SETTINGS";else{var d,v;P==="browse"&&((d=W.response)==null?0:(v=d.metadata)==null?
0:v.channelMetadataRenderer)?P="channel":x&&(P=_.Y3(x)||P)}}return P},UMv=function(){var W=_.eL("yt.aba.att");
return W?W:_.Tf.instance!==void 0?_.Tf.instance.t8s.bind(_.Tf.instance):null},Xi9=function(W,P){var x;
return _.y(function(I){return(x=UMv())?I.return(x(W,P,6E4)):I.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},f8G=function(W,P,x,I,O){P=P===void 0?[]:P;
O=O?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:O}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Ru(W),dialogMessages:P.map(function(B){return _.Ru(B)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ru(x),serviceEndpoint:O}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ru(I)}}}}}},NO4=function(W){var P=!!_.am().queueProxy;
var x,I,O;W=W==null?void 0:(x=W.response)==null?void 0:(I=x.currentVideoEndpoint)==null?void 0:(O=I.watchEndpoint)==null?void 0:O.playlistId;return!(!P&&!W)},l82=function(W,P){var x=_.ug();
if(NO4(W))return x.playlistWatchPageActivation=!0;switch(xp(P)){case "yts-products":return x.productDetailsPageActivation=!0;case "mini_app":return x.miniAppPageActivation=!0;case "playables":return x.playablesDestPageActivation=!0;default:return!1}},TOv=function(W,P,x){for(var I=typeof W==="string"?W.split(""):W,O=W.length-1;O>=0;--O)O in I&&P.call(x,I[O],O,W)},rYM=function(W,P){P=_.vWA(W,P);
P>=0&&_.TR(W,P)},ijG=function(W){return Array.prototype.concat.apply([],arguments)},RMd=function(W){var P=0;
P=P===void 0?0:P;if(!_.mO(W))throw _.mP("uint64");var x=typeof W;switch(P){case 512:switch(x){case "string":return _.KPU(W);case "bigint":return String((0,_.h9)(64,W));default:return _.YcA(W)}case 1024:switch(x){case "string":return _.ZMG(W);case "bigint":return _.Fl((0,_.h9)(64,W));default:return _.ywR(W)}case 0:switch(x){case "string":return _.KPU(W);case "bigint":return _.Fl((0,_.h9)(64,W));default:return _.nim(W)}default:return _.n2(P,"Unknown format requested type for int64")}},FWy=function(W){W!=
null&&(W=W.JSC$6716_value_||"",W=typeof W==="string"?W:new Uint8Array(W));
return W},qyf=function(W){for(var P=_.tH.apply(1,arguments),x=W[0],I=0;I<W.length-1;I++)x+=String(P[I]),x+=W[I+1];
P=document.implementation.createHTMLDocument("");I=P.createElement("style");P.head.appendChild(I);P=I.sheet;P.insertRule(x,0);if(P.cssRules.length===1&&(x=P.cssRules[0],x instanceof CSSStyleRule))return new _.U0(x.cssText.replace(/</g,"\\3C "))},LW4=function(W,P){if(/-[a-z]/.test(P))return null;
if(_.c9d&&W.dataset){if(_.YUG()&&!(P in W.dataset))return null;W=W.dataset[P];return W===void 0?null:W}return W.getAttribute("data-"+_.Kf(P))},PE2=function(){var W=Wp3;
_.eL("yt.ads.biscotti.getId_")||_.lA("yt.ads.biscotti.getId_",W)},xtQ=function(W){_.lA("yt.ads.biscotti.lastId_",W)},OD3=function(){var W={};
for(_.QO=new Iqf(W.handleError===void 0?_.EA:W.handleError,W.logEvent===void 0?_.Ay:W.logEvent);_.Cj.length>0;)switch(W=_.Cj.shift(),W.type){case "ERROR":_.QO.logError(W.payload);break;case "EVENT":_.QO.logEvent(W.eventType,W.payload)}},J0G=function(W,P,x){return _.XVA(function(I){return x?I.userIdentifier!==void 0&&!W.includes(I.userIdentifier)&&x.includes(I.publicName):I.userIdentifier!==void 0&&!W.includes(I.userIdentifier)},P)},B33=function(W){var P,x;
return _.y(function(I){if(I.nextAddress==1)return P=_.sy("YtIdbMeta hasAnyMeta other"),_.S(I,_.XVA(function(O){return O.userIdentifier!==void 0&&O.userIdentifier!==P},W),2);
x=I.yieldResult;return I.return(x.length>0)})},YzL=function(W,P){nN4||(nN4=_.Gr.addLowPriorityJob(function(){var x,I,O,B,Y;
return _.y(function(K){switch(K.nextAddress){case 1:return _.S(K,_.TM(),2);case 2:x=K.yieldResult;if(!x)return K.return();I=!0;_.OT(K,3);return _.S(K,J0G(W,x,P),5);case 5:O=K.yieldResult;if(!O.length){I=!1;K.jumpTo(6);break}B=O[0];return _.S(K,_.a6(B.actualName),7);case 7:return _.S(K,_.Uy(B.actualName,x),6);case 6:_.ci(K,4);break;case 3:Y=_.yn(K),_.AY(Y),I=!1;case 4:_.Gr.cancelJob(nN4),nN4=0,I&&YzL(W,P),_.Kl(K)}})}))},y06=function(){var W;
return _.y(function(P){return P.nextAddress==1?_.S(P,_.TM(),2):(W=P.yieldResult)?P.return(B33(W)):P.return(!1)})},Kp9=function(W){var P=100;
P=P===void 0?500:P;var x,I,O,B,Y,K;return _.y(function(Z){return Z.nextAddress==1?(x=_.$$("INNERTUBE_CONTEXT_CLIENT_NAME",0),I=[x,(0,_.iA)()-2592E6],O=[x,(0,_.iA)()],B=IDBKeyRange.bound(I,O),_.S(Z,_.dam(W),2)):Z.nextAddress!=3?(Y=Z.yieldResult,K=[],_.S(Z,_.kO(Y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(d){K.length=0;return _.R6(d.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:B,direction:"prev"},function(v){if(v.getValue()&&K.length<P)return K.push(v.getValue()),
v.delete().then(function(){return v.continue()})})}),3)):Z.return(K)})},ZDQ=function(){var W;
return _.y(function(P){if(P.nextAddress==1)return _.S(P,_.TM(),2);W=P.yieldResult;if(!W||!_.vi()&&!_.p("nwl_init_require_datasync_id_killswitch")||!_.hkW())return P.jumpTo(0);_.ekm=!0;_.HLU.isNwlInitialized=_.ekm;return _.S(P,_.lwm().awaitInitialization(),0)})},IU=function(W,P){_.L7m[W]=!0;
var x=_.WB();x&&x.publish.apply(x,arguments);_.L7m[W]=!1},SzQ=function(){if(_.DB7()&&!oNL){var W=function(x){x=x.data;
if(x.op==="serializedGelBatch"){var I=_.WTt.get(x.key);I&&(_.xgd(x.serializedBatch,I.client,I.resolve,I.networklessOptions,I.isIsolated,I.useVSSEndpoint,I.dangerousLogToVisitorSession,I.requestsOutstanding),_.WTt.delete(x.key))}},P=_.gzx();
P&&(P.addEventListener("message",W),P.onerror=function(){_.WTt.clear()});
oNL=!0}},OE=function(){this.relativeTimeStart_=_.O1()},uGd=function(W,P){W!=null&&this.append.apply(this,arguments)},dtB=function(){return _.$a("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},sD9=function(W,P,x){x=x===void 0?!1:x;
var I,O,B,Y,K;return _.y(function(Z){switch(Z.nextAddress){case 1:_.uA("SOCS",W,34128E3,"youtube.com",!0);if(_.Se)return O=fetch(P,{method:"POST",mode:_.ai(P),credentials:_.cV(P),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),B=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.ai("/upgrade_visitor_cookie?eom=1"),credentials:_.cV("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.S(Z,Promise.all([O,B]).then(function(d){return d[1]}),5);
fetch(P,{method:"POST",mode:_.ai(P),credentials:_.cV(P),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.S(Z,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.ai("/upgrade_visitor_cookie?eom=1"),credentials:_.cV("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:I=Z.yieldResult;Z.jumpTo(3);break;case 5:I=Y=Z.yieldResult;case 3:if(!I.ok)throw Error("nf");return _.S(Z,I.text(),7);case 7:K=Z.yieldResult,
!K.includes('"state_switch":true')&&!x||K.includes("skip_reload_for_test")||window.location.reload(),_.Kl(Z)}})},vN2=function(W){return _.y(function(P){return P.nextAddress==1?_.S(P,sD9(W.socsCookie,W.savePreferenceUrl,!0),2):P.return()})},mt3=function(W){return _.y(function(P){return P.nextAddress==1?_.S(P,sD9(W.socsCookie,W.savePreferenceUrl),2):P.return()})},tVQ=function(W){W=W.xhr.responseText;
if(!_.Bd(W,")]}'"))throw new JO;W=JSON.parse(W.substr(4));if((W.type||1)>1)throw new JO;W=W.id;xtQ(W);BS=_.Xp(W);VV6(18E5,2);return W},jD4=function(W,P){P=new pPf(P);
xtQ("");BS=_.o9Z(P);W>0&&VV6(12E4,W-1);throw P;},VV6=function(W,P){_.Oy(function(){_.zM4().then(tVQ,function(x){return jD4(P,x)}).thenCatch(_.me)},W)},Wp3=function(){var W=_.gOG();
if(W!==void 0)return _.s2(W);BS||(BS=_.zM4().then(tVQ).thenCatch(function(P){return jD4(2,P)}));
return BS},QDO=function(){var W=document;
return _.bC(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(P){return"on"+P.toLowerCase()in W})},CEQ=function(W){W.addEventListener("click",function(P){var x=P.target;
x&&x.getAttribute("href")&&(x=x.getAttribute("href"),_.ME(window,x,"_blank"),P.preventDefault(),P.stopImmediatePropagation())})},A0f=function(W){var P,x,I,O=(I=(x=((P=W.mainDownloadsListEntity)!=null?P:{})[_.upW])==null?void 0:x.refresh)!=null?I:"",B;
W=(B=W.refresh)==null?void 0:B[O];O=W!=null?W:{};return(O==null?0:O.refreshTime)?Number(O==null?void 0:O.refreshTime):0},zh9=function(W,P){var x=_.VT(W);
return P.every(function(I){var O;I=I==null?void 0:(O=I.playbackDataEntity)==null?void 0:O.key;if(!I)return!1;O=_.On(_.Pu(I).entityId,"mainVideoEntity");return!!x[O]})},GrB=function(W){W=_.sn(W.entities);
return _.Fst(W).length},EN3=function(W,P){if(P){var x;
W=(x=_.Jb(W.entities,"downloadQualityPickerEntity",P))!=null?x:void 0}else W=void 0;return W},MV6=function(){gNM||(_.aY=_.K8U,gNM=new DtG);
return gNM},$tQ=function(W){var P=document.getElementsByTagName("ytd-enforcement-message-view-model");
P.length===0||getComputedStyle(P[0]).display==="none"?W(0,"p.h_"):W(1,"p.h_")},wPB=function(){n8=0;
var W=[_.S9(!0)];Yp&&_.P7(Yp,"yt-window-resized",W)},hhd=function(){n8||(n8=_.Gr.addLowPriorityJob(wPB,200))},ehL=function(){y8=0;
HD6=_.a3c(document);var W=[HD6];Yp&&_.P7(Yp,"yt-window-scrolled",W)},c0d=function(){y8||(y8=_.Gr.addLowPriorityJob(ehL,200))},bDG=function(W){W=W===void 0?null:W;
aq4.push(_.r3(window,"resize",hhd));aq4.push(_.r3(window,"scroll",c0d));W&&(Yp=W)},kry=function(W){_.y(function(P){if(P.nextAddress==1)return _.S(P,W.delete("yt-appshell-assets"),2);
_.Kl(P)})},UtQ=function(W){return _.bA((0,_.wez)(),W)},fqv=function(){var W;
_.y(function(P){return P.nextAddress==1?_.S(P,K8.getInstance(),2):(W=P.yieldResult)?_.S(P,XP9(W),0):P.jumpTo(0)})},lq2=function(){var W;
_.y(function(P){return P.nextAddress==1?_.S(P,ZY.getInstance(),2):(W=P.yieldResult)?_.S(P,N3G(W),0):P.jumpTo(0)})},T36=function(W){kry(W);
fqv();lq2()},r04=function(W){var P,x;
return _.y(function(I){if(I.nextAddress==1)return _.S(I,_.aFR(W),2);if(P=I.yieldResult){var O;a:{if(P.headers&&(O=P.headers.get("date"))&&(O=Date.parse(O),!isNaN(O))){O=Math.round((0,_.iA)()-O);break a}O=-1}x=O;if(x>-1)return I.return(x)}return I.return(-1)})},iDO=function(){var W=_.xW.caches,P=_.wo("IS_SHELL_LOAD"),x,I;
_.y(function(O){if(O.nextAddress==1)return x=-1,P?_.S(O,r04(W),3):(I=_.v7(),x=Math.round((0,_.iA)()-I),O.jumpTo(2));O.nextAddress!=2&&(x=O.yieldResult);x>=0&&x<2147483648&&_.jI({appInstallDataAgeMs:x});_.Kl(O)})},RhQ=function(W){var P=_.ea(_.xW.location.href),x={};
"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(I){var O=P.JSC$7933_queryData_.getValues(I);if(O==null?0:O.length)x[I]=O});
return _.P9(W,new Map(Object.entries(x)))},Fp6=function(W){W=W.match(/(.*)::.*::.*/);
if(W!==null)return W[1]},qz6=function(W){if(_.IxW()){var P=Object.keys(window.localStorage);
P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=Fp6(x);I===void 0||W.includes(I)||self.localStorage.removeItem(x)}}},Lpf=function(){if(!_.IxW())return!1;
var W=_.sy(),P=Object.keys(window.localStorage);P=_.n(P);for(var x=P.next();!x.done;x=P.next())if(x=Fp6(x.value),x!==void 0&&x!==W)return!0;return!1},Wnv=function(W){return _.Tj("NotificationsDisabled",W)},PsQ=function(){return Notification.permission!="granted"?Promise.resolve():_.wrO().then(function(W){return W?W.pushManager.getSubscription().then(function(P){if(P)return Promise.resolve();
P={userVisibleOnly:!0,applicationServerKey:_.up("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return W.pushManager.subscribe(P).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},xlQ=function(W){return _.wrO().then(function(P){if(!P||!P.active)return Promise.reject(new _.mW("serviceworker.postMessage",W,P));
try{return P.active.postMessage(W),Promise.resolve()}catch(x){return Promise.reject(x)}})},Iw3=function(){xlQ({type:"notifications_register",
data:_.$$("ID_TOKEN")})},JyL=function(){var W={isWide:_.SB.get("wide","0")==="1"},P=_.SI();
if(P=P.getFlag(165)||P.getFlag(174))W.theme=_.gT(!0);if(_.pbx()){var x=_.Eo()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";W.systemTheme=x}!P&&_.p("parent_tools_enable_app_settings")&&_.UV(window.location.href).theme!==void 0&&(W.theme=_.gT());if((P=oU)?!_.jU.equals(P,W):W)P={currentValue:W},Oa2&&(P.timeSinceLastSnapshotSecs=Math.round(((0,_.iA)()-Oa2)/1E3)),oU&&(P.previousValue=oU),_.Ay("appSettingsCaptured",P),oU=W,Oa2=(0,_.iA)()},BeO=function(){if(!_.wo("LOGGED_IN"))return Promise.resolve(!1);
var W=_.Pi("service_worker_push_force_notification_prompt_tag");return W?_.iD("PromptTags").then(function(P){if(!P)return!0;var x=[];try{x=JSON.parse(P)}catch(I){return!1}return x&&x.indexOf(W)==-1}):Promise.resolve(!1)},nMv=function(){var W=_.Wi("service_worker_push_prompt_delay_microseconds");
return W?_.iD("PromptTime").then(function(P){return Promise.resolve(Date.now()-W>(P||0))}):Promise.resolve(!0)},YAB=function(){var W=_.Wi("service_worker_push_logged_out_prompt_watches");
return W==-1?Promise.resolve(!1):_.iD("WatchCount").then(function(P){return P>=W})},yy3=function(){var W=_.qx(document,"yt-push-prompt-modal-bg");
W&&_.oE(W)},Kn2=function(){return _.Wi("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.iD("PromptCount").then(function(W){W||(W=0);
return Promise.resolve(W<_.Wi("service_worker_push_prompt_cap"))})},ZaM=function(W){return _.wo("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.wo("LOGGED_IN")&&(W===void 0?0:W)?BeO().then(function(P){if(P)return!0;
P=[Kn2(),nMv()];_.wo("LOGGED_IN")||P.push(YAB());return Promise.all(P).then(function(x){return x.every(function(I){return I})})}):Promise.resolve(!1)},oM6=function(){_.iD("PromptCount").then(function(W){return _.Tj("PromptCount",W+1)}).then(function(){return _.Tj("PromptTime",Date.now())}).then(function(){var W=_.Pi("service_worker_push_force_notification_prompt_tag");
if(W)return _.iD("PromptTags").then(function(P){var x=[];if(P)try{x=JSON.parse(P)}catch(I){return!1}x||(x=[]);x.push(W);return _.Tj("PromptTags",JSON.stringify(x))})})},uL4=function(){SAB||yy3()},dly=function(W){W.style.zIndex=2147483648;
W.style.pointerEvents="auto";W.style.backgroundColor="rgba(0, 0, 0, 0.6)";W.style.width="100%";W.style.height="100vh";W.style.position="absolute";W.style.top="0";W.style.left="0";W.style.border="none"},sRm=function(){var W=_.qx(document,"yt-push-prompt-modal-bg");
SAB=_.p("service_worker_push_prompt_modal_ignore_click");W?dly(W):(W=_.zT("div",{id:"yt-push-prompt-modal-bg"}),dly(W),document.body.appendChild(W),_.iLC(document,"click",uL4))},vMO=function(){var W=arguments;
_.p("service_worker_push_prompt_modal_enable")&&sRm();return Notification.requestPermission().then(function(P){yy3();var x=document.getElementById("ticker");x&&(x.className=x.classList.remove("show"));if(P=="granted")return PsQ().then(function(){Wnv(!1);Iw3();return Promise.resolve(!0)});
P=="denied"&&Iw3();return Promise.resolve(!1)}).catch(function(){yy3();
return Promise.reject.apply(Promise,_.ju(W))})},mlL=function(W){W=W===void 0?!1:W;
var P=_.zHm().client;if(P&&P.browserVersion){var x=P.browserVersion,I=P.browserName=="CHROME"&&_.dS(x,"50.0.0")<0;P=P.browserName=="OPERA"&&_.dS(x,"42.0.0")<0;if(I||P)return Promise.resolve()}return _.eYL().then(function(O){if(!O)return Promise.resolve();O=PsQ().then(function(){return xlQ({type:"notifications_check_registration",data:_.$$("ID_TOKEN")})});
return Notification.permission!="default"?O.catch(function(){}):O.then(function(){return ZaM(W)}).then(function(B){if(B)return oM6(),vMO().then(function(){})}).catch(function(){})})},VoO=function(W){return _.hYy(W)?mlL():Promise.resolve()},toy=function(W){var P=W.installing||W.waiting;
return W.active||!P?Promise.resolve(W):new Promise(function(x){var I=function(O){O=O.target;if(O.state==="activated"||O.state==="redundant")P.removeEventListener("statechange",I),x(W)};
P.addEventListener("statechange",I)})},pB3=function(){var W=new _.bAo("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.se(W,{mainAppWeb:_.wT()});var P=_.WUm;_.p("service_worker_forward_exp_params")&&(P=RhQ(P));try{var x=_.gyA(P).catch(function(){_.vX(W,"FAILURE");return new Promise(function(){})});
_.p("service_worker_push_enabled")&&x.then(function(I){_.vX(W,"SUCCESS");return I}).then(toy).then(VoO)}catch(I){if(_.vX(W,"FAILURE"),I.name!=="SecurityError")throw I;
}},jRy=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&pB3()},QRQ=function(W,P){var x={};
P&&(x.serializedYpcFamilyCreateLoggingParams=P);_.Ay(W,x);_.z$()},CsG=function(W,P){var x={};
x.serializedYpcRefundFlowLoggingParams=P;W&&(x.eventType=W);_.Ay("ypcRefundFlowEvent",x);_.z$()},Ayy=function(W){W&&_.MZA("transactionFlowSucceeded",W)},zU6=function(W){W&&_.DD("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},G$f=function(W){var P,x,I,O,B,Y,K;
_.y(function(Z){if(Z.nextAddress==1)return _.S(Z,_.uCR(),2);if(Z.nextAddress!=3){if(!Z.yieldResult)return Z.return(!1);P=[];return _.S(Z,_.qg.keys(),3)}x=Z.yieldResult;I=_.n(x);for(O=I.next();!O.done;O=I.next())B=O.value,Y=_.o8C(B),K=Y.datasyncId,!K||W.includes(K)||P.push(_.qg.delete(B));return Z.return(Promise.all(P).then(function(d){return d.some(function(v){return v})}))})},EMQ=function(){var W,P,x,I,O,B,Y;
return _.y(function(K){if(K.nextAddress==1)return _.S(K,_.uCR(),2);if(K.nextAddress!=3){if(!K.yieldResult)return K.return(!1);W=_.sy("cache contains other");return _.S(K,_.qg.keys(),3)}P=K.yieldResult;x=_.n(P);for(I=x.next();!I.done;I=x.next())if(O=I.value,B=_.o8C(O),(Y=B.datasyncId)&&Y!==W)return K.return(!0);return K.return(!1)})},gM3=function(){var W=_.FY().resolve(_.Rl(_.cIZ));
return W?W.getCurrentTime():0},Dlm=function(){var W,P,x,I,O,B,Y,K,Z,d,v,m,t,C;
return _.y(function(z){switch(z.nextAddress){case 1:W={},P=_.BuG(),x=_.n(Object.entries(P)),I=x.next();case 4:if(I.done){z.jumpTo(3);break}O=I.value;B=_.n(O);Y=B.next().value;K=B.next().value;Z=Y;d=K;if(!d){z.jumpTo(5);break}return _.S(z,d(),8);case 8:W[Z]=z.yieldResult;case 5:I=x.next();z.jumpTo(4);break;case 2:v=_.n(void 0),m=v.next();case 9:if(m.done){z.jumpTo(3);break}t=m.value;C=P[t];if(!C){z.jumpTo(10);break}return _.S(z,C(),13);case 13:W[t]=z.yieldResult;case 10:m=v.next();z.jumpTo(9);break;
case 3:return z.return(W)}})},MoQ=function(){var W;
_.y(function(P){if(P.nextAddress==1)return _.S(P,Dlm(),2);W=P.yieldResult;return _.S(P,navigator.clipboard.writeText(JSON.stringify(W,null,2)),0)})},$lf=function(W,P){return _.Jb(W.entities,"superThanksSelectedTierEntity",P)},wB3=function(W){var P;
return(P=W.sharedUi)==null?void 0:P.currentPageType},hUL=function(W,P){return{popup:{searchSuggestionReportDialog:{searchQuery:W,
title:_.KK("SBOX_INAPPROPRIATE_TITLE"),suggestions:P,categoryLabel:_.KK("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.KK("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.KK("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.KK("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.KK("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.KK("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.KK("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.KK("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.KK("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.KK("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},Ha3=function(W){var P,x,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T;
return _.y(function(N){switch(N.nextAddress){case 1:return _.S(N,_.Yz(),2);case 2:return(P=N.yieldResult)?_.S(N,_.h8x(P),3):N.return();case 3:x=N.yieldResult;if(!x)return N.return();O=((I=x.offlineVideos)==null?void 0:I.length)||0;Y=((B=x.offlinePlaylists)==null?void 0:B.length)||0;if(O===0&&Y===0)return N.return();K=0;if(x.offlineVideos)for(Z=_.n(x.offlineVideos),d=Z.next();!d.done;d=Z.next())v=d.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===v.videoState&&(K+=1);W.offline_videos_count=O.toString();_.p("kevlar_log_offline_current_network_type_ks")||
(W.offline_current_network_type=(m=_.siS())!=null?m:"CONN_INVALID");_.p("kevlar_log_updated_time_for_smart_downloads")&&(t=_.Xe().getState().entities,C=_.jl(t),z=A0f(t),W.offline_smart_downloads_last_sync_time_ms=C.toString(),W.offline_smart_downloads_next_sync_time_ms=z.toString());W.offline_videos_playable=K.toString();W.offline_playlists_count=Y.toString();if(!_.p("woffle_used_state_report")){N.jumpTo(4);break}x.offlineVideos&&(D=x.offlineVideos.reduce(function(Io,F){F.downloadedBytes&&(Io+=Number(F.downloadedBytes));
return Io},0).toString())&&(W.offline_used_disk_space_bytes=D);
if(!((w=navigator)==null?0:(a=w.storage)==null?0:a.estimate)){N.jumpTo(4);break}return _.S(N,navigator.storage.estimate(),6);case 6:k=N.yieldResult,W.offline_free_disk_space_bytes=(((T=k)==null?void 0:T.quota)||0).toString();case 4:W.offline_client_state=JSON.stringify(x),_.Kl(N)}})},eUm=function(W){W=W.match(/(.*)::.*::.*/);
if(W!==null)return W[1]},cyy=function(W){if(_.evm()){var P=Object.keys(window.sessionStorage);
P=_.n(P);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=eUm(x);I===void 0||W.includes(I)||self.sessionStorage.removeItem(x)}}},awO=function(){if(!_.evm())return!1;
var W=_.sy(),P=Object.keys(window.sessionStorage);P=_.n(P);for(var x=P.next();!x.done;x=P.next())if(x=eUm(x.value),x!==void 0&&x!==W)return!0;return!1},Sr=function(W,P,x){(_.p("desktop_keyboard_shortcut_usage_log")||x&&_.p("web_shorts_keyboard_shortcut_usage_log"))&&(P?_.LY.get(W):_.qh.get(W))&&(W=P?_.PS.get(W):_.WS.get(W))&&_.bB(_.E_(),W)},baO=function(W){return W.visibility!=="hidden"&&W.display!=="none"},k$d=function(W){if(!W.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
W=W.getAttribute("tabindex")||"0";return Number(W)},UlG=function(W){return W.some(function(P){return k$d(P)>0})},XBv=function(W){if(W.textContent)return!0;
if(W instanceof HTMLInputElement){if(!W.labels)return!1;W=_.n(W.labels);for(var P=W.next();!P.done;P=W.next())if(P.value.textContent)return!0}return!1},fwf=function(W){return W.sort(function(P,x){return k$d(x)-k$d(P)})},Ne4=function(W){W=Array.from(W.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(P){return(baO(P.style)?
baO(window.getComputedStyle(P)):!1)&&XBv(P)});
return UlG(W)?fwf(W):W},lwy=function(W){W=Ne4(W);
W.length>0&&W[0].focus()},Ted=function(W,P){P.stack&&(W.stack+="\n"+P.stack);
return W},RU9=function(W){var P=uN(W,"Content-Type");
if(!P)return null;P=P.toLowerCase();if(P.startsWith("application/json"))return P.startsWith("application/json+protobuf")?new ryG:new _.Ok;if(P.startsWith("application/x-protobuf")){W=uN(W,"Content-Transfer-Encoding");if(!W)return new dr;if(W.toLowerCase()=="base64")return new iaM}return null},JC6=function(W,P,x,I){var O=new Fny(function(K,Z){return qA2.has(Z)?K.sentinel==="gal"&&K.event!==void 0:!1},function(K){K.event?(K=LnL(K.event),K=!K||Why(I,K)?!0:_.t8(W.lastEvent,sE,2,vS)?!_.t8(K,mj,1,vS)&&
!_.t8(K,sE,2,vS):!_.t8(K,mj,1,vS)&&!_.t8(K,sE,3,vS)):K=!0;
return K});
x=_.P9(W.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",PVv(x)]]));if(W.nestedOrigins!==void 0)for(var B=_.n(W.nestedOrigins),Y=B.next();!Y.done;Y=B.next())x=_.P9(x,new Map([["origin",Y.value]]));return x1m(O,x,P).then(function(K){K=INO(K.event);if(_.t8(K,mj,1,vS)){var Z,d=(Z=_.HI(K,mj,1,vS))==null?void 0:_.$5(Z,2);d&&I.JSC$17022_logErrorEvent(OJ4(d));Z=_.HI(K,mj,1,vS);_.$5(Z,2)===4?(K=_.HI(K,mj,1,vS),K={statusCode:11,statusMessage:_.MY(K,
3)}):(K=_.HI(K,mj,1,vS),K={statusCode:12,statusMessage:_.MY(K,3)});return K}_.t8(K,sE,3,vS)?(K=_.HI(K,sE,3,vS),K={statusCode:1,consentLanguageKeys:_.MY(K,2)}):K={statusCode:1};return K}).catch(function(K){return K.errorCode!==void 0?{statusCode:K.errorCode,
statusMessage:K.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},yC6=function(W){var P={};
if(W===void 0||W===null)return P;W.getToken()!==void 0&&B7d(W.getToken())&&B7d(W.getToken()).length>0&&(P.scopes=new Set(B7d(W.getToken())));W.getToken()!==void 0&&nQv(W.getToken())&&nQv(W.getToken()).length>0&&(P.capabilities=new Set(nQv(W.getToken())));_.MY(W,3)!==void 0&&(P.consistencyKey=_.MY(W,3));W.getName()!==void 0&&W.getName()!==""&&(P.linkName=W.getName());_.Vo(W,YSd,4)&&(W=_.qM(W,YSd,4),W=Object.assign({},_.MY(W,1)&&{userId:_.MY(W,1)},_.MY(W,2)&&{displayName:_.MY(W,2)},_.MY(W,3)&&{email:_.MY(W,
3)},_.MY(W,5)&&{username:_.MY(W,5)},_.MY(W,4)&&{profilePicture:_.MY(W,4)}),P.profile=W);return P},Kh4=function(W,P){var x=W.flowParams;
return{serviceId:x.serviceId,sessionId:x.sessionId,currentFlow:W.currentFlow,googleScopesString:P,linkingSessionSerialized:W.session.serialize(),consentLanguageKeys:x.consentLanguageKeys,callerState:W.callerState,dynamicUrlParameters:x.dynamicUrlParameters,partnerConfigMinReadTimestamp:x.partnerConfigMinReadTimestamp}},d14=function(W){var P=W.googleScopes!==void 0?Array.from(W.googleScopes).join(","):"";
ZJL(Kh4(W,P));P=oQ4(W);return P===null?Promise.resolve(SS6):P.start().then(function(x){var I,O=(I=x.link)==null?void 0:I.consistencyKey;return x.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&O!==void 0?(I=W.flowParams,um2(I.serviceId,I.sessionId,W.googleScopes,O,I.galService,W.config,x)):x})},shy=function(W){var P=oQ4(W);
return P===null?Promise.resolve(V8({statusCode:7,statusMessage:"Failed to create flow object"},W.callerState)):P.complete().then(function(x){var I,O=(I=x.link)==null?void 0:I.consistencyKey;return x.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&O!==void 0?(I=W.flowParams,um2(I.serviceId,I.sessionId,W.googleScopes,O,I.galService,W.config,x)):V8(x,W.callerState)},function(x){return V8({statusCode:12,
statusMessage:"Failed to complete the flow: "+x.message},W.callerState)})},um2=function(W,P,x,I,O,B,Y){return vQG(O,{serviceId:W,
sessionId:P,googleScopes:x,consistencyKey:I}).then(function(){return Y},function(K){return O.deleteLink({serviceId:W,
sessionId:P,accountLinkingEntryPoint:B.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+K.message}},function(Z){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+Z.message}})})},oQ4=function(W){switch(W.currentFlow){case 1:var P=W.flowParams;
W=_.qM(W.session,m1m,1);return tO.createOAuthFlow(P,W);case 2:case 3:return P=W.flowParams,W=_.qM(W.session,Vkv,6),p8.createStreamlinedFlow(P,W);default:return null}},tkB=function(W,P){W===2&&(W=3);
var x=0;jr.indexOf(W)!==-1&&(x=jr.indexOf(W)+1);for(W=x;W<jr.length;W++)if(P.has(jr[W]))return jr[W]},Qhv=function(W){var P=W.serviceId;
var x=W.sessionId;var I=W.config;var O=W.galService;var B=W.capabilities;var Y=W.scopes;var K=W.loginHint;var Z=W.callerState;var d=W.consentLanguageKeys;var v=W.linkName;var m=W.dynamicUrlParameters;var t=W.partnerConfigMinReadTimestamp;W=I.dataUsageNoticeConfig?I.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return O.startLinkingSession({serviceId:P,sessionId:x,capabilities:B,scopes:Y,loginHint:K,callerState:Z,supportedFlows:pfG(I.supportedFlows),completionUrl:I.completionUrl,accountLinkingEntryPoint:I.accountLinkingEntryPoint,
consentLanguageKeys:d,dataUsageNoticeConfig:W,linkName:v,dynamicUrlParameters:m,partnerConfigMinReadTimestamp:t}).then(function(C){return new jhQ(P,x,I,O,C,void 0,Z,d,m,t)})},EQQ=function(W,P,x){a:{var I=new CVy;
if(I.storage!==null)try{var O=I.storage.get("SAVED_SESSION");if(O===void 0){var B=null;break a}if(O.serviceId===W){B=O;break a}}catch(Y){}B=null}if(B===null)return Promise.resolve({statusCode:2});ACm(W);I=zyB(B.linkingSessionSerialized);return GYB(new jhQ(W,B.sessionId,P,x,I,B.googleScopesString!==""&&B.googleScopesString!==void 0?new Set(B.googleScopesString.split(",")):void 0,B.callerState,B.consentLanguageKeys,B.dynamicUrlParameters,B.partnerConfigMinReadTimestamp),B.currentFlow,B.consentLanguageKeys)},
ZJL=function(W){var P=new CVy;
P.storage!==null&&P.storage.set("SAVED_SESSION",W)},ACm=function(W){var P=new CVy;
if(P.storage!==null){var x=P.storage.get("SAVED_SESSION");x!==void 0&&x.serviceId===W&&P.storage.remove("SAVED_SESSION")}},pfG=function(W){var P=new Set;
W=_.n(W);for(var x=W.next();!x.done;x=W.next())x=x.value,x!==1&&gQv.has(x)&&P.add(gQv.get(x));return P},V8=function(W,P){P!==void 0&&(W.callerState=P);
return W},D12=function(W){switch(W){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},wf4=function(){var W={timeout:5E3};
W=W===void 0?{}:W;return MkQ!=null?MkQ:MkQ=$1G(W)},hy9=function(){return new Promise(function(W,P){window.gapi.load("client",{callback:W,
onerror:P})})},$1G=function(W){W=W===void 0?{}:W;
var P;return _.y(function(x){if(x.nextAddress==1){if((P=window.gapi)&&P.client&&P.client.load)x=x.return(P);else{var I=_.YH("https://apis.google.com/js/api.js");x=_.S(x,_.Dn(I,W),2)}return x}if(x.nextAddress!=3){P=window.gapi;if(!P)throw Error("Yj");return P.client&&P.client.load?x.jumpTo(3):_.S(x,hy9(),3)}return x.return(P)})},eyf=function(W,P){P=P===void 0?0:P;
var x=W.auth2.getAuthInstance().currentUser.get(),I=x.getAuthResponse(!0);if(I&&I.expires_at-Date.now()<P){if(HJy.has(W))return HJy.get(W);P=Promise.resolve(x.reloadAuthResponse()).finally(function(){HJy.delete(W)});
HJy.set(W,P);return P}return Promise.resolve()},cCO=function(W,P){var x;
return W.client.init({apiKey:P.apiKey,clientId:P.clientId,scope:P.scope,discoveryDocs:P.discoveryDocs,hostedDomain:P.hostedDomain,fetchBasicProfile:(x=P.fetchBasicProfile)!=null?x:!0})},aNy=function(W){if(W.queryParams!=null){var P={},x;
for(x in W.queryParams)W.queryParams[x]!==void 0&&(P[x]=W.queryParams[x]);W.queryParams=P}},U1L=function(W){return new bJf(W,new kYf(W))},N7O=function(W,P){P=P===void 0?!1:P;
var x=document.createElement("div");W&&(x.style.transform="scaleX(-1)");x.style.backgroundColor=P?"rgba(138,180,248,.24)":"#e8f0fe";x.style.height="4px";x.style.overflow="hidden";x.style.position="absolute";x.style.top="0";x.style.width="100%";x.style.zIndex="1500";x.setAttribute("aria-label","Loading");x.setAttribute("aria-live","polite");W=document.createElement("style");W.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
x.appendChild(W);W=XfO();W.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";W.style.left="-145.166611%";var I=fN4(P);I.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";W.appendChild(I);x.appendChild(W);W=XfO();W.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";W.style.left="-54.888891%";P=fN4(P);P.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
W.appendChild(P);x.appendChild(W);return x},XfO=function(){var W=document.createElement("div");
W.style.height="100%";W.style.position="absolute";W.style.transformOrigin="top left";W.style.width="100%";return W},fN4=function(W){var P=document.createElement("span");
P.style.borderTop=W?"4px solid #669df6":"4px solid #4285f4";P.style.display="inline-block";P.style.position="absolute";P.style.width="100%";return P},lN3=function(W){return W==null?void 0:_.NMz(W).valueOf()},Ry9=function(W){var P=document.body,x=!1,I=function(){x||(x=!0,T7d(O,B),setTimeout(function(){P.removeChild(B);
P.removeChild(O)},150))},O=rCO(W,getComputedStyle(P).direction==="rtl",I),B=iJG(I);
T7d(O,B);P.appendChild(B);P.appendChild(O);window.requestAnimationFrame(function(){B.style.opacity="1";O.style.opacity="1";O.style.transform="translate(-50%, -50%) scale(1)";O.children[0].focus()})},rCO=function(W,P,x){var I=document.createElement("div");
I.style.position="fixed";I.style.alignItems="center";I.style.backgroundColor=W?"rgb(32, 33, 36)":"white";I.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";I.style.display="flex";I.style.flexDirection="column";I.style.justifyContent="center";I.style.left="50%";I.style.top="50%";I.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";I.style.zIndex="2002";document.body.clientWidth>=660?(I.style.borderRadius="8px",I.style.minHeight="220px",
I.style.maxHeight="90%",I.style.maxWidth="90%",I.style.minWidth="540px"):(I.style.height="100%",I.style.width="100%");I.setAttribute("aria-label","Error");I.setAttribute("aria-modal","true");I.setAttribute("role","alertdialog");I.addEventListener("keydown",function(B){B.key==="Escape"&&x()});
P=FhL(W,P,x);I.appendChild(qSv(P));I.appendChild(P);var O=document.createElement("img");O.src=W?"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";O.style.height="72px";O.style.width="72px";O.style.color="#9aa0a6";O.setAttribute("alt","");I.appendChild(O);O=document.createElement("h1");O.textContent="Something went wrong.  Try again.";
O.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";O.style.lineHeight="24px";O.style.fontSize="16px";O.style.textAlign="center";O.style.letterSpacing="0.1px";O.style.color=W?"rgb(232,234,237)":"#3c4043";I.appendChild(O);I.appendChild(qSv(P));return I},FhL=function(W,P,x){var I=document.createElement("button");
I.style.backgroundColor="transparent";I.style.border="none";I.style.borderRadius="50%";I.style.cursor="pointer";I.style.outline="none";I.style.padding="12px";I.setAttribute("aria-label","Close dialog");I.style.position="absolute";I.style.top="0";P?I.style.right="0":I.style.left="0";I.addEventListener("focus",function(){I.style.backgroundColor=W?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
I.addEventListener("blur",function(){I.style.backgroundColor="transparent"});
I.addEventListener("mouseenter",function(){I.style.backgroundColor=W?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
I.addEventListener("mouseleave",function(){I.style.backgroundColor="transparent"});
I.addEventListener("click",x);I.addEventListener("keydown",function(O){O.key!=="Enter"&&O.key!=="Space"||x()});
P=document.createElement("img");P.src=W?"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";P.style.display="block";P.style.height="24px";P.style.width="24px";P.setAttribute("alt","");I.appendChild(P);return I},qSv=function(W){var P=document.createElement("div");
P.setAttribute("tabindex","0");P.setAttribute("aria-hidden","true");P.addEventListener("focus",function(){return void W.focus()});
return P},iJG=function(W){var P=document.createElement("div");
P.style.backgroundColor="rgba(32,33,36,0.6)";P.style.bottom="0";P.style.left="0";P.style.position="fixed";P.style.right="0";P.style.top="0";P.style.transition=" opacity 150 ms linear";P.style.zIndex="2001";P.addEventListener("click",W);return P},T7d=function(W,P){P.style.opacity="0";
W.style.opacity="0";W.style.transform="translate(-50%, -50%) scale(0.8)"},Lh2=function(W,P){W.sandbox&&W.sandbox.add&&(W.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),W.sandbox.add("allow-downloads"));
W.src=P},Q8=function(W){W19.call(this,W)},C8=function(W,P){P=P===void 0?!1:P;
this.parsedImageUrl_=null;W instanceof PO2||(xV9==void 0&&(xV9=new ItL),W=xV9.parse(W.toString(),P));W=this.parsedImageUrl_=W;W.JSC$17253_parsedOptions_==void 0&&((P=W.getOptions())||(P=""),W.JSC$17253_parsedOptions_=(new Of2).parse(P));W19.call(this,W.JSC$17253_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;W=this.parsedImageUrl_;P=W.uri_.JSC$7933_port_;this.JSC$17255_domain_=W.uri_.JSC$7933_domain_+(P?":"+P:"");this.JSC$17255_query_=this.parsedImageUrl_.uri_.JSC$7933_queryData_.toString()},
J1y=function(W){this.mode=4;
this.data=W;this.parsedData=[];W=0;for(var P=this.data.length;W<P;W++){var x=[],I=this.data.charCodeAt(W);I>65536?(x[0]=240|(I&1835008)>>>18,x[1]=128|(I&258048)>>>12,x[2]=128|(I&4032)>>>6,x[3]=128|I&63):I>2048?(x[0]=224|(I&61440)>>>12,x[1]=128|(I&4032)>>>6,x[2]=128|I&63):I>128?(x[0]=192|(I&1984)>>>6,x[1]=128|I&63):x[0]=I;this.parsedData.push(x)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),
this.parsedData.unshift(239))},BUM=function(W){this.typeNumber=0;
this.errorCorrectLevel=W===void 0?2:W;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},AO=function(W,P){if(W.length==void 0)throw Error("sk`"+W.length+"`"+P);
for(var x=0;x<W.length&&W[x]==0;)x++;this.num=Array(W.length-x+P);for(P=0;P<W.length-x;P++)this.num[P]=W[P+x]},naf=function(W,P){this.totalCount=W;
this.dataCount=P},Y_M=function(){this.buffer=[];
this.length=0},y16=function(){var W=!1;
if(_.oWW()){W=_.sU();var P="";_.d7C()?(P=/Windows (?:NT|Phone) ([0-9.]+)/,P=(W=P.exec(W))?W[1]:"0.0"):_.Hd()?(P=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,P=(W=P.exec(W))&&W[1].replace(/_/g,".")):_.utW()?(P=/Mac OS X ([0-9_.]+)/,P=(W=P.exec(W))?W[1].replace(/_/g,"."):"10"):_.S8(_.sU(),"KaiOS")?(P=/(?:KaiOS)\/(\S+)/i,P=(W=P.exec(W))&&W[1]):_.oWW()?(P=/Android\s+([^\);]+)(\)|;)/,P=(W=P.exec(W))&&W[1]):_.soR()&&(P=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,P=(W=P.exec(W))&&W[1]);W=P||""}return W},dVO=function(W,
P){this.JSC$17278__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(P)for(var x in P)this.JSC$17278__htOption[x]=P[x];this.JSC$17278__htOption.useSVG&&(K1m=Zfv);this.JSC$17278__android=y16();this.JSC$17278__el=W;this._oQRCode=null;this._oDrawing=new K1m(this.JSC$17278__el,this.JSC$17278__htOption);this.JSC$17278__htOption.text&&(W=this.JSC$17278__htOption.text,this._oQRCode=new BUM(this.JSC$17278__htOption.correctLevel),oa2(this._oQRCode,W),P=this._oQRCode,S_y(P,!1,uud(P)),this.JSC$17278__el.title=
W,this._oDrawing.draw(this._oQRCode),this.makeImage())},siM=function(W,P,x,I,O){W.save();
var B=new Path2D;B.roundRect(P,x,I*7,I*7,I*2);B.roundRect(P+I,x+I,I*5,I*5,I*1.3);B.roundRect(P+2*I,x+2*I,I*3,I*3,I);W.clip(B,"evenodd");W.fillStyle=O;W.fillRect(0,0,W.canvas.width,W.canvas.height);W.restore()},zl=function(W,P){if(typeof W!=="function")throw Error("vk");
return _.xW.setTimeout(function(){W()},P)},Gl=function(){},mVO=function(W,P,x,I,O){(new Gl).debug("TestLoadImageWithRetries: "+O);
if(I==0)x(!1);else{var B=O||0;I--;va4(W,P,function(Y){Y?x(!0):_.xW.setTimeout(function(){mVO(W,P,x,I,B)},B)})}},va4=function(W,P,x){var I=new Gl;
I.debug("TestLoadImage: loading "+W);var O=new Image;O.onload=function(){try{I.debug("TestLoadImage: loaded"),VnL(O),x(!0)}catch(B){}};
O.onerror=function(){try{I.debug("TestLoadImage: error"),VnL(O),x(!1)}catch(B){}};
O.onabort=function(){try{I.debug("TestLoadImage: abort"),VnL(O),x(!1)}catch(B){}};
O.ontimeout=function(){try{I.debug("TestLoadImage: timeout"),VnL(O),x(!1)}catch(B){}};
_.xW.setTimeout(function(){if(O.ontimeout)O.ontimeout()},P);
O.src=W},VnL=function(W){W.onload=null;
W.onerror=null;W.onabort=null;W.ontimeout=null},tnM=function(){this.front_=[];
this.back_=[]},pVQ=function(W,P){_.vn.call(this);
this.delay_=new _.Vk(this.JSC$17404_onTick_,0,this);_.nU(this,this.delay_);this.JSC$17402_interval_=5E3;this.nextTickTime_=0;if(typeof W==="function")P&&(W=(0,_.mx)(W,P));else if(W&&typeof W.handleEvent==="function")W=(0,_.mx)(W.handleEvent,W);else throw Error("Ca");this.JSC$17404_listener_=W},EE=function(W,P,x,I,O,B,Y,K,Z,d,v,m,t,C){x=x===void 0?!1:x;
I=I===void 0?function(){return""}:I;
O=O===void 0?!1:O;B=B===void 0?!1:B;Y=Y===void 0?!1:Y;K=K===void 0?function(){return _.Jn({})}:K;
Z=Z===void 0?!1:Z;v=v===void 0?!1:v;m=m===void 0?!1:m;t=t===void 0?!1:t;C=C===void 0?!1:C;this.JSC$17405_pathPrefix_=W;this.defaultQueryParams_=P;this.pubsub_=new _.Z8;this.reconnectTimer_=new pVQ(this.safeReconnect_,this);this.JSC$17405_channel_=null;this.JSC$17405_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17405_pendingMessages_=[];this.enableAsyncTest_=x;this.JSC$17405_getXsrfToken_=I;this.useAsyncBrowserChannelHandler_=B;this.getAuthorizationHeader_=
K;this.getAuthorizationHeaderSync_=d;this.enableCachedUpdateAuthorizationHeader_=Y;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Jn();this.enableLoungeTokenRefresh_=O;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=Z;this.disableMdxAuthForNonPlaybackMessages_=v;this.disableMdxAuthForAdMessages_=m;this.enableMdxAuthForConnectionOnly_=t;this.disableMdxAuthForShortsMessages_=C;this.JSC$17405_channelOpenedCounter=new jim;this.JSC$17405_channelClosedCounter=new Qi4;this.channelMessageSentCounter=
new COf;this.JSC$17405_channelMessageReceivedCounter=new A1B;this.JSC$17405_channelErrorCounter=new z32;this.pendingMapsOnClosedCounter=new G7m;this.undeliveredMapsOnClosedCounter=new Ea2},gr=function(W){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;W=W||document.location.href;var P=Number(_.NR(W)[4]||null)||"";P&&(this.port=":"+P);this.domain=_.lP(W)||"";W=_.sU();W.search("MSIE")>=0&&_.dS(W.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},DY=function(W){W=W||{};
this.name=W.name||"";this.id=W.id||W.screenId||"";this.token=W.token||W.loungeToken||"";this.uuid=W.uuid||W.dialId||"";this.idType=W.screenIdType||"normal"},ga4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(W){var P=Math.random()*16|0;
return(W=="x"?P:P&3|8).toString(16)})},DVL=function(W){return _.C5(W,function(P){return{key:P.id,
name:P.name}})},Mn6=function(W,P){return _.bC(W,function(x){return x||P?!x!=!P?!1:x.id==P.id:!0})},$p=function(W,P){return _.bC(W,function(x){return Mk(x,P)})},e3M=function(){var W=$VQ(),P=wVy();
if(h3f()){var x=W,I=_.pdU(x,P);I<0&&_.t8t(x,-(I+1),0,P)}W=Hf3(W);if(W.length==0)try{_.oam("remote_sid")}catch(O){}else try{_.uA("remote_sid",W.join(","),-1)}catch(O){}},$VQ=function(){var W=_.ye("yt-remote-connected-devices")||[];
W.sort(_.Z3);return W},Hf3=function(W){if(W.length==0)return[];
var P=W[0].indexOf("#"),x=P==-1?W[0]:W[0].substring(0,P);return _.C5(W,function(I,O){return O==0?I:I.substring(x.length)})},c1G=function(W){_.Y9("yt-remote-connected-devices",W,86400)},wVy=function(){if(at2)return at2;
var W=_.ye("yt-remote-device-id");W||(W=ga4(),_.Y9("yt-remote-device-id",W,31536E3));for(var P=$VQ(),x=1,I=W;_.N7(P,I);)x++,I=W+"#"+x;return at2=I},bf3=function(){return _.ye("yt-remote-session-browser-channel")},h3f=function(){return _.ye("yt-remote-session-screen-id")},XVB=function(W){W.length>5&&(W=W.slice(W.length-5));
var P=_.C5(k7M(),function(I){return I.loungeToken}),x=_.C5(W,function(I){return I.loungeToken});
_.WIx(x,function(I){return!_.N7(P,I)})&&UVG();
_.Y9("yt-remote-local-screens",W,31536E3)},k7M=function(){return _.ye("yt-remote-local-screens")||[]},UVG=function(){_.Y9("yt-remote-lounge-token-expiration",!0,86400)},wr=function(W){W||(_.K6("yt-remote-session-screen-id"),_.K6("yt-remote-session-video-id"));
e3M();W=$VQ();_.Ft(W,wVy());c1G(W)},NUm=function(){fty();
return hO?!!hO.get("yt-remote-use-staging-server"):!1},fty=function(){if(!hO){var W=_.pVx();
W&&(hO=new _.VO(W))}},ifG=function(W,P,x,I,O){x=x===void 0?function(){return""}:x;
var B=function(){return new EE(HS(W,"/bc"),P,!1,x,I)};
return _.p("enable_mdx_web_channel_desktop")?new ltd(function(){return new TUm(HS(W,"/wc"),P,x)}):new r1M(B,O)},L1d=function(){var W=R3d;
F1v();er.push(W);q_4()},cS=function(W,P){F1v();
var x=WZQ(W,String(P));er.length==0?PBO(x):(q_4(),_.bP(er,function(I){I(x)}))},aU=function(W){cS("CP",W)},F1v=function(){er||(er=_.eL("yt.mdx.remote.debug.handlers_")||[],_.lA("yt.mdx.remote.debug.handlers_",er))},PBO=function(W){var P=(bN+1)%50;
bN=P;xUf[P]=W;IEQ||(IEQ=P==49)},q_4=function(){var W=er;
if(xUf[0]){var P=IEQ?bN:-1,x={};do x={record$jscomp$13:void 0},P=(P+1)%50,x.record$jscomp$13=xUf[P],_.bP(W,function(I){return function(O){O(I.record$jscomp$13)}}(x));
while(P!=bN);xUf=Array(50);bN=-1;IEQ=!1}},WZQ=function(W,P){var x=(Date.now()-OK2)/1E3;
x.toFixed&&(x=x.toFixed(3));var I=[];I.push("[",x+"s","] ");I.push("[","yt.mdx.remote","] ");I.push(W+": "+P,"\n");return I.join("")},kp=function(W){_.F1.call(this);
this.JSC$17429_logName_=W;this.screens=[]},XE=function(W){kp.call(this,"LocalScreenService");
this.JSC$17436_http_=W;this.loungeTokenRefreshTimer_=NaN;UE(this);this.info("Initializing with "+JnO(this.screens))},f8=function(W,P){P=P===void 0?!1:P;
kp.call(this,"ScreenService");this.JSC$17442_http_=W;this.disableAutomaticScreenCache_=P;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};BwG(this)},Nk=function(W,P,x){_.F1.call(this);
this.JSC$17446_logName_=x;this.JSC$17446_screenService_=W;this.receiver_=P;this.screen_=null},p74=function(W,P,x){x.disableCastApi?lN("Cannot initialize because disabled by Mdx config."):n66()?YLf(W,x)&&(ynM(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?KZv(P):(window.__onGCastApiAvailable=function(I,O){I?KZv(P):(Tl("Failed to load cast API: "+O),ZKy(!1),ynM(!1),_.K6("yt-remote-cast-available"),_.K6("yt-remote-cast-receiver"),o6v(),P(!1))},x.loadCastApiSetupScript?_.h1("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?SLf()>=60&&uB9():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?dUM():SLf()>=89?suG():(v6O(),mUv(VIf.map(tI2))))):lN("Cannot initialize because not running Chrome")},o6v=function(){lN("dispose");
var W=rr();W&&W.dispose();_.lA("yt.mdx.remote.cloudview.instance_",null);juO(!1);_.Wrt(Quf);Quf.length=0},CBO=function(){return!!_.ye("yt-remote-cast-installed")},Anf=function(){var W=_.ye("yt-remote-cast-receiver");
return W?W.friendlyName:null},zS4=function(){lN("clearCurrentReceiver");
_.K6("yt-remote-cast-receiver")},GZ3=function(){return CBO()?rr()?rr().getCastSession():(Tl("getCastSelector: Cast is not initialized."),null):(Tl("getCastSelector: Cast API is not installed!"),null)},g6m=function(W,P){E69()?rr().setConnectedScreenStatus(W,P):Tl("setConnectedScreenStatus called before ready.")},n66=function(){var W=_.sU().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.u9||W},YLf=function(W,P){var x=!1;
rr()||(W=new iN(W,P),W.subscribe("yt-remote-cast2-availability-change",function(I){_.Y9("yt-remote-cast-available",I);IU("yt-remote-cast2-availability-change",I)}),W.subscribe("yt-remote-cast2-receiver-selected",function(I){lN("onReceiverSelected: "+I.friendlyName);
_.Y9("yt-remote-cast-receiver",I);IU("yt-remote-cast2-receiver-selected",I)}),W.subscribe("yt-remote-cast2-receiver-resumed",function(I){lN("onReceiverResumed: "+I.friendlyName);
_.Y9("yt-remote-cast-receiver",I);IU("yt-remote-cast2-receiver-resumed",I)}),W.subscribe("yt-remote-cast2-session-change",function(I){lN("onSessionChange: "+DU9(I));
I||_.K6("yt-remote-cast-receiver");IU("yt-remote-cast2-session-change",I)}),_.lA("yt.mdx.remote.cloudview.instance_",W),x=!0);
lN("cloudview.createSingleton_: "+x);return x},rr=function(){return _.eL("yt.mdx.remote.cloudview.instance_")},KZv=function(W){ZKy(!0);
ynM(!1);rr().init(!1,function(P){P?(juO(!0),_.PwC("yt-remote-cast2-api-ready")):(Tl("Failed to initialize cast API."),ZKy(!1),_.K6("yt-remote-cast-available"),_.K6("yt-remote-cast-receiver"),o6v());W(P)})},lN=function(W){cS("cloudview",W)},Tl=function(W){cS("cloudview",W)},ZKy=function(W){lN("setCastInstalled_ "+W);
_.Y9("yt-remote-cast-installed",W)},E69=function(){return!!_.eL("yt.mdx.remote.cloudview.apiReady_")},juO=function(W){lN("setApiReady_ "+W);
_.lA("yt.mdx.remote.cloudview.apiReady_",W)},ynM=function(W){_.lA("yt.mdx.remote.cloudview.initializing_",W)},RU=function(W){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(W)},MI3=function(){var W,P;
return _.y(function(x){if(x.nextAddress==1)return(_.cqC()||_.p("use_new_nwl"))&&_.w5R().isNetworkAvailable()?_.S(x,_.TM(),2):x.return();if(x.nextAddress!=3)return(W=x.yieldResult)?_.S(x,Kp9(W),3):x.return();P=x.yieldResult;if(!P.length)return x.return();P.forEach(function(I){var O={timestamp:I.timestamp};I=I.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:I.appShellAssetLoadReport,options:O}:I.clientError?{payloadName:"clientError",payload:I.clientError,options:O}:void 0;I&&
_.Ay(I.payloadName,I.payload,I.options)});
P.length===100&&_.Gr.addLowPriorityJob(MI3);_.Kl(x)})},$UQ=function(W){if(W.playerResponse){if(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(P){return!(!P||!P.mealbarPromoRenderer)}))&&W.mealbarPromoRenderer)return W.mealbarPromoRenderer}else if(W.response&&(W=W.response)&&W.overlay&&W.overlay.mealbarPromoRenderer)return W.overlay.mealbarPromoRenderer},w7M=function(W){if(W.response){var P=W.response;
if(P&&P.overlay&&P.overlay.tooltipRenderer)return P.overlay.tooltipRenderer}if(W.playerResponse&&(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(x){return!(!x||!x.tooltipRenderer)}))&&W.tooltipRenderer))return W.tooltipRenderer},HK9=function(W){if(!hSB&&(W=W||_.$$("ZWIEBACK_PING_URLS"))&&W.length){hSB=!0;
for(var P=0;P<W.length;P++)_.cP(W[P])}},cn4=function(W){if(_.jU.get(_.$$("PLAYER_VARS",{}),"privembed",!1)!="1"){W&&PE2();
try{eSf().then(function(){},function(){}),_.Oy(cn4,18E5)}catch(P){_.hQ(P)}}},aEv=function(){var W=_.SI(),P=W.getFlag(119),x=window.devicePixelRatio>1;
document.body&&_.kf(document.body,"exp-invert-logo")&&(x&&!_.kf(document.body,"inverted-hdpi")?_.kY(document.body,"inverted-hdpi"):!x&&_.kf(document.body,"inverted-hdpi")&&_.ax(document.body,"inverted-hdpi"));P!=x&&(_.uB(0,119,x),W.save())},bKy=function(W){return W.filter(function(P){return"ypcGetCartEndpoint"in P||"ypcFixInstrumentEndpoint"in P})},kZf=function(W){return W.filter(function(P){return!_.Q(P,_.Rlw)})},X7O=function(W){W=_.n(W);
for(var P=W.next(),x={};!P.done;x={setter$jscomp$6:void 0},P=W.next()){var I=P.value;P=I.params;I=I.service;P&&I&&(x.setter$jscomp$6=UUd[I],x.setter$jscomp$6&&P.forEach(function(O){return function(B){var Y=B.key;B=B.value;Y&&B&&(0,O.setter$jscomp$6)(Y,B)}}(x)))}},Nwf=function(W,P){var x,I,O,B,Y,K,Z;
_.y(function(d){switch(d.nextAddress){case 1:x=_.$3.getInstance();I=_.Ix.instance;O=_.HF.instance;if(!O)return fEO(W,I,P),d.return();_.OT(d,2);W.onLoadingCommand&&I.resolveCommand(W.onLoadingCommand);return _.S(d,x.getCurrentPositionFromGeolocation(),4);case 4:B=d.yieldResult;if(!W.resolveLocationCommand){d.jumpTo(5);break}Y=x.createLocationInfo(B);return _.S(d,_.cF(O,W.resolveLocationCommand,{locationInfo:Y}),6);case 6:K=d.yieldResult;if(!K||"error"in K&&K.error||K.errorMetadata)return fEO(W,I,P),
d.return();var v;if(K==null?0:(v=K.onResponseReceivedActions)==null?0:v.length){v=_.n(K.onResponseReceivedActions);for(var m=v.next();!m.done;m=v.next())I.resolveCommand(m.value)}(_.Q(W.onSuccessCommand,_.U_)||_.Q(W.onSuccessCommand,_.KL))&&_.Lf(P.hostElement,"yt-navigate",{endpoint:W.onSuccessCommand,reload:!0});case 5:_.ci(d,0);break;case 2:Z=_.yn(d);if(Z instanceof GeolocationPositionError&&Z.code===GeolocationPositionError.PERMISSION_DENIED)return W.onDeniedCommand&&I.resolveCommand(W.onDeniedCommand),
d.return();fEO(W,I,P);_.Kl(d)}})},fEO=function(W,P,x){W.onFailureCommand&&(P.resolveCommand(W.onFailureCommand),_.W7(x.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},TwL=function(W,P){var x=_.Q(W,_.ufd);
if(x&&P){W=x.videoIds||[x.videoId];var I;P=(I=_.Lf(P,"yt-lockup-requested",{videoIds:W}).detail)==null?void 0:I.returnValue;var O;x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?O=P?P:W.map(function(B){return{videoId:B,navigationEndpoint:x.videoCommand}}):P&&(O=P);
O&&(I=O.map(function(B){var Y=Object,K=Y.assign;var Z=B.navigationEndpoint;if(!_.Q(Z,_.uS)){var d=_.Q(Z,_.U_);if(d){if(delete d.index,delete d.playlistId,d=_.Q(Z==null?void 0:Z.commandMetadata,_.rU),d==null?0:d.url){var v=d.url;v=_.T7(v,"list");v=_.T7(v,"index");d.url=v}}else Z=void 0}return K.call(Y,{},B,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:Z})}),lEd(I,x))}},rnv=function(W){var P=_.am();
if(W=_.Q(W,_.dQm))W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&P.clearQueue(),W.closeMiniplayer&&_.FY().resolve(_.kc).close(!0)},RSG=function(W){iKm(_.am(),W)},FZB=function(W){var P;
(W=(P=_.Q(W,_.o_l))==null?void 0:P.setVideoIds)&&W.forEach(function(x){_.Y$W(_.am(),x)})},LZd=function(W){qLv(_.am(),W)},WBf=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(W){return!1}},PxO=function(W){var P=_.FY().resolve(_.Rl(_.v4));
if(P){var x={beforeTransition:function(){W.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){W.style.viewTransitionName=""}};
FE(P,"slide",x);FE(P,"zoom",x)}},xB6=function(W,P,x){return{horizontalAlignment:W.x+x.width/2<P.width/2?"west":"east",
verticalAlignment:W.y+x.height/2<P.height/2?"north":"south"}},Jb3=function(W,P,x,I,O){O=O===void 0?new _.Al(0,0):O;
return I54(ORm(W,P,x,I),O)},ORm=function(W,P,x,I){return new _.Al(W==="west"?16:x.width-I.width-16,P==="north"?16:x.height-I.height-16)},BEd=function(W,P){var x=0;
W&&(x+=76);P&&(x+=285);return x},nzd=function(W){var P=["h",
"m","s"],x=_.Lm(P);x.reverse();var I={};W=(W.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Y){var K=(Y.match(/[hms]/)||[""])[0];return K?(I[K]=parseInt(Y.match(/\d+/)[0],10),!1):!0});
for(W.reverse();W.length&&x.length;){var O=x.shift();O in I||(I[O]=parseInt(W.shift(),10))}if(W.length||I.s>59||I.m>59||I.h>9)return null;var B="";P.forEach(function(Y){I[Y]&&(B+=""+I[Y]+Y)});
return B||null},YnQ=function(W){W=W.data;
return _.u("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.u("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.u(_.bq,{data:{thumbnails:[{url:W.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.u("div",{class:"profile-badge-view-model-wiz__content"},_.u("div",{class:"profile-badge-view-model-wiz__badge-description"},W.badgeDesc),W.badgeSubtitle?_.u("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},W.badgeSubtitle):null))},ybv=function(W){W=
W.data;
var P=_.fa();_.M7m(P,W.rendererContext);return _.u("yt-comment-interaction-view-model",{el:P,class:"yt-comment-interaction-view-model-wiz"},_.u("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":W.onTapA11yLabel,"on:keydown":_.CfA(),tabindex:0},_.u("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.u("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},W.headerPrefix,' "',W.videoTitle),_.u("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.u("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.u("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},W.commentContent),_.u("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.u(_.bq,{data:{thumbnails:[{url:W.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},ZR3=function(W){W=W.data;
return _.u("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},KBQ(W.avatar),_.u("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},W.channelName))},Snf=function(W){W=W.data;
var P;return _.u("div",{class:"yt-profile-info-view-model-wiz__activity"},_.u("div",{class:"yt-profile-info-view-model-wiz__header"},_.u("div",{class:"yt-profile-info-view-model-wiz__section-title"},W.commentsInteractionTitle)),(P=W.comments)==null?void 0:P.map(function(x){return _.u("div",{class:"yt-profile-info-view-model-wiz__activity"},ozQ(x))}))},ueG=function(W){W=W.data;
var P=_.Gm({elementsCommand:W.subscriptionsAccessButtonCommand}),x=_.fa();_.yOd(x,_.AF(W.subscriptionsAccessButtonCommand));var I=_.yB(function(B){if(P==null?0:P.onclick)P.onclick(B);return!1}),O;
return _.u("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.u("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.u("a",{el:x,"on:click":I,class:"yt-profile-info-view-model-wiz__another-header"},_.u("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},W.sharedSubscriptionsTitle),_.u("div",null,ozQ(W.subscriptionsAccessButton)))),_.u("div",{class:"yt-profile-info-view-model-wiz__subs"},(O=W.sharedSubscriptions)==null?void 0:O.slice(0,5).map(function(B){return _.u("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",ozQ(B))})))},dB6=function(W){W=W.data;
var P;return _.u("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.u("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.u("h2",{class:"yt-profile-info-view-model-wiz__section-title"},W.sharedSubscriptionsTitle)),_.u("div",{class:"yt-profile-info-view-model-wiz__subs"},(P=W.sharedSubscriptions)==null?void 0:P.slice(0,5).map(function(x){return _.u("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",ozQ(x))})))},sYm=function(W){W=W.data;
return _.u("div",{class:"yt-profile-info-view-model-wiz__activity"},[W.profileBadgeInfoYtWide,W.profileBadgeInfoChannelWide].map(function(P){var x,I,O,B,Y;return P?_.u(_.qS,null,_.u("div",{class:"yt-profile-info-view-model-wiz__header"},_.u("div",{class:"yt-profile-info-view-model-wiz__section-title"},P==null?void 0:P.profileSectionTitle),_.u("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.u("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},P==null?void 0:(x=P.commentBadge)==
null?void 0:x.commentDesc),(P==null?0:(I=P.commentBadge)==null?0:I.blackHeartDesc)?_.u("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.u("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.u(_.bq,{data:{thumbnails:[{url:P==null?void 0:(O=P.commentBadge)==null?void 0:O.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.u("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},P==null?void 0:(B=
P.commentBadge)==null?void 0:B.blackHeartDesc))),_.u("div",{class:"yt-profile-info-view-model-wiz__badge"},P==null?void 0:(Y=P.badges)==null?void 0:Y.map(function(K){return _.u(YnQ,{data:K})}))):null}))},vz3=function(W){W=W.data;
return _.u("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.u(sYm,{data:W}),W.comments?_.u(Snf,{data:W}):null,W.sharedSubscriptionsTitle?W.subscriptionsAccessButtonCommand?_.u(ueG,{data:W}):_.u(dB6,{data:W}):null)},Vlm=function(W){var P=W.data;
W=P?mBd(P.profileIdentityInfo):void 0;P=P?mBd(P.profileInfo):void 0;return _.u("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},W,P)},tlB=function(W,P){var x=_.rM3(P,{},W,!0);
return new Promise(function(I,O){x.listenOnce("n",function(){O(Error("fl`"+x.JSC$25720_getErrorDescription()))});
x.listenOnce("l",function(){var B=x.getResponseCode();if(B!==200)O(Error("gl`"+P+"`"+W.type+"`"+W.size+"`"+B));else try{I(JSON.parse(x.getResponseText()).encryptedBlobId)}catch(Y){O(Y)}});
x.run()})},puf=function(W){return W.substring(W.indexOf(":")+1,W.indexOf(";"))},jYB=function(W){return new Promise(function(P,x){var I=new FileReader;
I.onloadend=function(){try{var O=new Uint8Array(I.result);O.length<8&&x(void 0);var B=O.subarray(0,8);O="";for(var Y=0;Y<B.length;Y++)O+=("0"+B[Y].toString(16)).substr(-2);O.startsWith("ffd8ff")?P("image/jpeg"):O.startsWith("47494638")?P("image/gif"):O.startsWith("89504e470d0a1a0a")?P("image/png"):O.startsWith("424d")?P("image/bmp"):P(void 0)}catch(K){x(K)}};
I.onerror=x;I.readAsArrayBuffer(W)})},QYQ=function(W){return new Promise(function(P,x){var I=new Image;
I.crossOrigin="anonymous";I.onload=function(){var O=document.createElement("canvas");O.width=I.naturalWidth;O.height=I.naturalHeight;var B=O.getContext("2d");if(!B)throw Error("hl");B.drawImage(I,0,0);B=puf(W);O.toBlob(function(Y){Y?P(Y):x()},B)};
I.src=W})},AbO=function(W,P){var x;
if(((x=_.Q(W,_.uS))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var I;_.Lf((I=P.hostElement)!=null?I:P,"yt-shorts-reset");_.x2c(_.FY().resolve(_.Pv),W).then(function(B){CxQ(B,P,W)})}else{var O;
_.Iu((O=P.hostElement)!=null?O:P,[W]).then(function(B){B&&CxQ(B.data,P,W)})}},CxQ=function(W,P,x){if(W){var I=_.Q(W.replacementEndpoint,_.uS);
if(I){W.sequenceContinuation&&(I.sequenceParams=W.sequenceContinuation);var O;_.Lf((O=P.hostElement)!=null?O:P,"yt-navigate",{endpoint:W.replacementEndpoint})}else if((W==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(W==null?0:W.watchStatus)&&_.Q(W.watchStatus,_.R$W)){var B;_.Lf((B=P.hostElement)!=null?B:P,"yt-navigate",{endpoint:x})}}},zp9=function(){var W=_.FY().resolve(_.Ae),P=wB3(W.getState())||"";
W=_.dkm(W.getState())||"";return{disableCache:P==="ytd-browse"&&W==="home"}},GK2=function(W){if(!W)return!1;
try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENT-INPUT")return!0}catch(P){return!1}return GK2(W.parentNode)},qk=function(W){return W?W.tagName==="A"&&W.href&&W.classList.contains("yt-simple-endpoint"):!1},Ez9=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1},gzQ=function(W,P,x){if(!W)return null;
var I=qk(W);if(I&&x)return P=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+P);if(I&&!x)return document.createTextNode("");if(Ez9(W))return x=W.alt,W=W.dataset.emojiId,!W&&P&&(P=_.t3(P,x))&&P.isCustomEmoji&&(W=P.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(x);I=W.cloneNode(!1);for(var O=0;O<W.childNodes.length;++O){var B=gzQ(W.childNodes[O],P,x);B&&I.appendChild(B)}return I},L8=function(W){return W?qk(W)?W:L8(W.lastChild):
null},DBL=function(W){return W?qk(W)?W:DBL(W.firstChild):null},Ml6=function(W){if(!W)return null;
for(var P=W.previousSibling;P;)if(P.nodeType===Node.ELEMENT_NODE&&P.nodeName==="BR")P=P.previousSibling;else if(P.nodeType===Node.TEXT_NODE&&/\s+/.test(P.textContent))P=P.previousSibling;else break;(P=L8(P))?W=P:W=(W=W.parentNode)?L8(W.previousElementSibling):null;return W},$B9=function(W){if(!W)return null;
for(var P=W.nextSibling;P;)if(P.nodeType===Node.ELEMENT_NODE&&P.nodeName==="BR")P=P.nextSibling;else if(P.nodeType===Node.TEXT_NODE&&/\s+/.test(P.textContent))P=P.nextSibling;else break;return(P=DBL(P))?P:$B9(W.parentNode)},wu3=function(W){var P=_.jQ(),x=P.JSC$9152_getStartNode();
if(!GK2(x.parentNode))return null;P=P.JSC$9152_getStartOffset();if(x.nodeType===Node.TEXT_NODE){var I=_.MT(x,qk);if(I){if(W&&P===0||!W&&P===x.length)return I}else{if(W&&P===x.length)return!x||x.nodeName==="BR"||x.nextElementSibling&&_.Qt(x.nextElementSibling,"display")==="block"?null:DBL(x.nextElementSibling);if(!W&&P===0)return x?L8(x.previousElementSibling):null}}if(x.nodeType===Node.ELEMENT_NODE)if(W){if(0<=P&&P<x.childNodes.length)return DBL(x.childNodes[P])}else if(0<P&&P<=x.childNodes.length)return L8(x.childNodes[P-
1]);return null},hpO=function(W,P,x){if(!W)return null;
if(W.nodeType===Node.TEXT_NODE)if(x){var I=Ml6(W);if(I&&!/^\s+\S/.test(W.wholeText.substr(0,P)))return I}else if((I=$B9(W))&&!/\S\s+/.test(W.wholeText.substr(P,W.wholeText.length)))return I;return W.nodeType===Node.ELEMENT_NODE?x?Ml6(W.childNodes[P]):$B9(W.childNodes[P]):hpO(W.parentNode,P,x)},HRM=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var P="";
for(W=W.firstChild;W;W=W.nextSibling)P+=HRM(W);return P;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}},epy=function(W){W=W.data;
return _.u("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.u("div",null,_.u(_.mQ,{text:W.title})),W.subtitle?_.u("div",{class:"ytd-menu-title-renderer__subtitle"},_.u(_.mQ,{text:W.subtitle})):null)},cby=function(W){switch(W){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"}},a5M=function(W){return W.map(function(P){return{settingsRadioOptionRenderer:{title:_.qU(P.name),
asideText:_.qU(P.approximateSize),id:cby(P.format)}}})},kK3=function(W){if(W&&W.length!==0)return W.filter(bRv()).map(function(P){return{settingsRadioOptionRenderer:{title:P.name,
asideText:P.approximateSize,id:cby(P.formatType)}}})},W$=function(W){if(W)return W.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},UBd=function(W,P){W=new Set(W!=null?W:[]);
if(W.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(W.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(W.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(W.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(W.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(P)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},Xuf=function(W){var P=W.indexOf("(");
return P!==-1?W.substring(P+1,W.length-1):W},f53=function(W){switch(W){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},l5m=function(W,P,x,I,O,B){var Y=_.jU.clone(NEM);
Y.locale=_.$$("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Y.report={description:O||"<empty>"};O=_.$$("SBOX_SETTINGS",{});P=P.join(",");var K=Date.now();W={choice_cc:I,choice_id_cc:x,choices_sc:P,gl:O.REQUEST_DOMAIN,hl:O.REQUEST_LANGUAGE,query:W,time:K};B&&(W.choice_additional_comment_cc=B);_.WSW(Y,W)},TE4=function(W){var P=new Map;
P.set("authuser",_.$$("SESSION_INDEX","0"));return _.P9(W,P)},iRy=function(W){var P;
return _.y(function(x){switch(x.nextAddress){case 1:if(!W||!rbL(W))return x.return(null);P=null;switch(_.$$("INNERTUBE_CLIENT_NAME")){case "WEB":return x.jumpTo(2);case "WEB_REMIX":P=W.getPlayer()}x.jumpTo(3);break;case 2:return _.S(x,W.getPlayerPromise(),4);case 4:P=x.yieldResult;x.jumpTo(3);break;case 3:return x.return(P)}})},rbL=function(W){return["ytd-player",
"ytmusic-player"].includes(String(W.tagName||"").toLowerCase())},Rpm=function(W){W=Math.round(W);
return W%2?W-1:W},FBm=function(W){W=Math.round(W);
return W%2===0?W-1:W},qn9=function(W){var P,x,I;
if(W=(P=W.createPlaylistDialogFormSchema)==null?void 0:(x=P.fieldSchemas)==null?void 0:(I=x.title)==null?void 0:I.validationSchema)for(P=[W.syncStep,W.asyncStep].filter(function(O){return O!==void 0}),P=_.n(P),x=P.next();!x.done;x=P.next()){x=x.value.rules;
if(!x)break;x=_.n(x);for(x=x.next();!x.done;x=x.next())return _.Q(x.value,_.xpv)}},W7m=function(W){var P,x,I;
if(W=(P=W.createPlaylistDialogFormSchema)==null?void 0:(x=P.fieldSchemas)==null?void 0:(I=x.visibility)==null?void 0:I.validationSchema)for(P=[W.syncStep,W.asyncStep].filter(function(O){return O!==void 0}),P=_.n(P),x=P.next();!x.done;x=P.next()){x=x.value.rules;
if(!x)break;x=_.n(x);for(I=x.next();!I.done;I=x.next())if(I=_.Q(I.value,LBm))return P=void 0,(P=I.translations)==null?void 0:P.visibilityNotValidErrorMessage}},PS4=function(){var W,P;
return(P=(W=_.FY().resolve(_.Rl(_.hF)))==null?void 0:W())!=null?P:!1},xa9=function(W,P){a:switch(P){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":P="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:P="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:W,style:P,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Izd=function(W){var P=21;
if(!W)return P;P+=W.headerTitle?27:0;P+=W.headerTitle&&W.hasHeaderActionHeader?4:0;return P+=W.headerTitle&&W.headerSubtitle?16:0},OL2=function(W){var P=0;
if(!W)return P;P+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton?48:0;P+=W.footerTrailingLabel||W.footerLeadingLabel?30:0;return P+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton||!W.footerTrailingLabel&&!W.footerLeadingLabel?0:12},Jqy=function(W){var P=new _.Z8,x=W;
return{subscribe:function(I){P.subscribe("changed",I)},
dispatch:function(I,O){var B=x;I==="Touch Start"?x=Object.assign({},B,{isAnimating:!1,initialY:O.event.touches[0].clientY}):I==="Touch Move"?(I=Math.min(O.fullContentWrapperHeight,O.contentHeightMap[O.contentWrapperId]+Izd(O.header)-OL2(O.footer)),x=Object.assign({},B,{currentY:Math.max(O.contentScrollable?-1*(B.initialY-24):0,O.event.touches[0].clientY-B.initialY),maxHeightForContentWrapper:Math.min(I,Math.max(0,(B.isFullScreen?I:O.contentWrapperHeight)-B.currentY))})):x=I==="Snap To Full Screen"?
Object.assign({},B,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:O.maxHeight}):I==="Snap To Neutral Position"?Object.assign({},B,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:O.maxHeight}):I==="Close Sheet"?Object.assign({},B,{isAnimating:!0,currentY:O.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:O.maxHeight}):B;P.publish("changed",x)}}},BT2=function(W){return _.yB(function(P){W(P);
return!1})},n34=function(){_.FY().resolve(_.Vz).closeSheet()},YoG=function(W){var P,x,I,O,B,Y,K,Z,d,v,m;
return{headerTitle:(P=W.headerTitle)==null?void 0:P.call(W),headerSubtitle:(x=W.headerSubtitle)==null?void 0:x.call(W),headerActionHeader:W.headerActionHeader,footerPrimaryButton:W.footerPrimaryButton,footerSecondaryButton:W.footerSecondaryButton,footerButtonType:(I=W.footerButtonType)==null?void 0:I.call(W),footerLeadingLabel:(O=W.footerLeadingLabel)==null?void 0:O.call(W),footerTrailingLabel:(B=W.footerTrailingLabel)==null?void 0:B.call(W),shouldShowIcons:(Y=W.shouldShowIcons)==null?void 0:Y.call(W),
skipContentClick:(K=W.skipContentClick)==null?void 0:K.call(W),additionalClassName:(Z=W.additionalClassName)==null?void 0:Z.call(W),onClosedCallback:W.onClosedCallback,focusOnClose:(d=W.focusOnClose)==null?void 0:d.call(W),isDisabled:(v=W.isDisabled)==null?void 0:v.call(W),disabledCommand:(m=W.disabledCommand)==null?void 0:m.call(W),headerFn:W.headerFn,contentFn:W.contentFn,footerFn:W.footerFn,hasHeaderFn:W.hasHeaderFn(),hasContentFn:W.hasContentFn(),hasFooterFn:W.hasFooterFn(),hasFooterPrimaryButton:W.hasFooterPrimaryButton(),
hasFooterSecondaryButton:W.hasFooterSecondaryButton(),hasHeaderActionHeader:W.hasHeaderActionHeader()}},yqB=function(W){switch(W){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""}},K7L=function(W){switch(W){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""}},ZLM=function(W){switch(W){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""}},o3d=function(W,P,x){P.forEach(function(I){_.Kg(_.FY().resolve(_.ZF),I)});
_.W7(W,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",x])},sf4=function(W,P,x,I){var O=_.Q(x,_.a9).commandLifeCycleConfig;
O&&O.onStartCommand&&_.OL(W,[O.onStartCommand],P);_.Fj(P);var B=_.HF.instance;B&&_.ey(B,x)?_.cF(B,x,I).then(function(Y){if(!Y||(Y==null?0:Y.error))return Y=_.Q(x,_.a9).serializedTransactionFlowLoggingParams,_.qz(P),_.s2(new P$("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y));_.qz(P);return{data:Y}}).then(function(Y){_.qz(P);
SoO(Y.data);var K=Y.data.command;K&&_.OL(W,[K],P);K=uyL(x,Y.data);if(!K){var Z=Y.data;Y=!1;if(Z&&Z.command&&_.Q(Z.command,_.B7)){var d;Z=((d=_.Q(Z.command,_.B7))==null?void 0:d.commands)||[];for(d=0;d<Z.length;d++)if(_.Q(Z[d],_.$G3)){Y=!0;break}}Y||_.s3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!K&&O&&O.onSuccessCommand?_.OL(W,[O.onSuccessCommand],P):K&&O&&O.onFailureCommand&&_.OL(W,[O.onFailureCommand],P)},function(){_.qz(P);
O&&O.onFailureCommand&&_.OL(W,[O.onFailureCommand],P);da2(x)}):_.G$(Error("yl"),"ERROR")},v39=function(W,P,x){var I=[P];
x&&I.push(x);return _.Iu(W,I).then(function(O){var B=_.Q(P,_.a9).serializedTransactionFlowLoggingParams,Y=O.data,K=uyL(P,Y);K?O=_.s2(new P$(K,B)):SoO(Y);return O},function(){var O=_.Q(P,_.a9).serializedTransactionFlowLoggingParams;
da2(P);return _.s2(new P$("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",O))})},uyL=function(W,P){W=_.Q(W,_.a9).serializedTransactionFlowLoggingParams;
var x=null;switch(P.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":x="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":x="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":x="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}x?_.H5(x,W):Ayy(W);return x},da2=function(W){_.H5("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.Q(W,_.a9).serializedTransactionFlowLoggingParams)},
SoO=function(W){if(W.trackingParams){var P=_.E_(),x=_.G7();
P&&x&&_.hn(P,x,_.ox(W.trackingParams))}},mam=function(W,P,x){var I=_.HF.instance,O=_.nh8(_.$$("YPC_MB_URL")),B=(new _.JPx).init(),Y=_.BR7(),K=_.Q(x,_.EPW).languageCode;
K===void 0?_.G$(Error("Ci"),"ERROR"):_.Qq([B,O]).then(function(){var Z={ctk:payments.business.integration.ClientTokenFactory.createClientToken(K,Y)};I&&_.ey(I,x)?_.cF(I,x,Z).then(function(d){return{data:d}}).then(function(d){_.Lf(P,"yt-service-request-completed",d);
d.code!=="ERROR"&&(d=d.data.command)&&_.OL(W,[d],P)}):_.G$(Error("yl"),"ERROR")})},p5v=function(W,P,x,I){var O=_.HF.instance;
O&&_.ey(O,x)?_.cF(O,x,I).then(function(B){return{data:B}}).then(function(B){V99(W,P,x,B)},function(){t96(x)}):(O=_.FY().resolve(_.Rl(_.v5)))&&O.requestDataForServiceEndpoint(x,I).then(function(B){V99(W,P,x,B)},function(){t96(x)})},V99=function(W,P,x,I){_.Lf(P,"yt-service-request-completed",I);
if(I.code&&I.code=="ERROR")t96(x);else{(I=I.data.commands)&&_.OL(W,I,P);var O;(W=(O=_.Q(x,_.hlw))==null?void 0:O.serializedYpcPauseFlowLoggingParams)&&W&&_.DD("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",W)}},t96=function(W){var P;
(W=(P=_.Q(W,_.hlw))==null?void 0:P.serializedYpcPauseFlowLoggingParams)&&W&&_.DD("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},CSf=function(W,P,x){var I=_.HF.instance;
I&&_.ey(I,x)?_.cF(I,x).then(function(O){return{data:O}}).then(function(O){jfv(W,P,x,O)},function(){QfB(x)}):(I=_.FY().resolve(_.Rl(_.v5)))&&I.requestDataForServiceEndpoint(x).then(function(O){jfv(W,P,x,O)},function(){QfB(x)})},jfv=function(W,P,x,I){_.Lf(P,"yt-service-request-completed",I);
I.code&&I.code=="ERROR"?QfB(x):((I=I.data.commands)&&_.OL(W,I,P),(W=_.Q(x,_.Hgm).serializedYpcResumeFlowLoggingParams)&&W&&_.DD("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",W))},QfB=function(W){(W=_.Q(W,_.Hgm).serializedYpcResumeFlowLoggingParams)&&W&&_.DD("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},AqB=function(W){W=W===void 0?{}:W;
_.FY().resolve(_.TA3).showFeedbackDialog(W.customProductData,W.feedbackContent,W.onFeedbackSubmitted,W.bucket)},zkm=function(W){W=W===void 0?{}:W;
_.FY().resolve(_.TA3).showHelpDialog(W.helpContext,W.articleId,W.productData)},G1O=function(){zkm()},E32=function(){AqB()},DaM=function(W,P,x){var I,O,B,Y,K,Z,d;
return _.y(function(v){switch(v.nextAddress){case 1:I=_.Q(W,g3m);if((O=I)==null?0:O.productId){Z={productId:I.productId,bucket:I.bucket,enableAnonymousFeedback:(K=I.enableAnonymousFeedback)!=null?K:!0,allowNonLoggedInFeedback:!0};d={feedbackChoice:x.feedbackChoice};if(!_.p("web_collect_offline_state")){v.jumpTo(8);break}_.OT(v,9);return _.S(v,Ha3(d),11)}Y={bucket:(B=I)==null?void 0:B.bucket};if(!_.p("web_collect_offline_state")){v.jumpTo(4);break}Y.customProductData={};_.OT(v,5);return _.S(v,Ha3(Y.customProductData),
7);case 7:_.ci(v,4);break;case 5:_.yn(v);case 4:AqB(Y);v.jumpTo(0);break;case 11:_.ci(v,8);break;case 9:_.yn(v);case 8:_.P$o(d),_.W6m("GFEEDBACK",d),I.productId==="5295751"&&(d.client_attestation=Number(_.$$("CATSTAT",0))),I.productId==="5295751"&&(d.client_time=Date.now()/1E3/3600),I.productId==="5295751"&&(d.original_playback_id=_.VpW||""),_.WSW(Z,d),_.Kl(v)}})},M9d=function(W){if(W=_.Q(W,_.lkW)){var P={bucket:W.bucketIdentifier};
W.additionalDatas&&(P.customProductData={},W.additionalDatas.forEach(function(x){if(x=x.userFeedbackEndpointProductSpecificValueData)P.customProductData[x.key]=x.value}));
AqB(P)}},$aM=function(W){var P=_.bs.getInstance();
var x=_.KK("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var I=_.KK("DELETE",void 0,"Delete"),O=_.KK("CANCEL",void 0,"Cancel");x=f8G(x,void 0,I,O,{signal:"DELETE_ALL_DOWNLOADS"});_.wl(P,[{openPopupAction:x}],W)},hk4=function(){return _.y(function(W){return W.nextAddress==1?_.S(W,_.FY().resolve(_.Fi),2):_.S(W,w5O(),0)})},HLv=function(W){var P,x;
return _.y(function(I){return I.nextAddress==1?(x=(P=_.Q(W,_.eo))==null?void 0:P.targetId)?_.S(I,_.FY().resolve(_.Fi),3):I.jumpTo(0):_.S(I,_.FY().resolve(_.RF).deleteVideo(x),0)})},cq3=function(W){var P,x;
return _.y(function(I){return I.nextAddress==1?(x=(P=_.Q(W,_.eo))==null?void 0:P.targetId)?_.S(I,_.FY().resolve(_.Fi),3):I.jumpTo(0):_.S(I,ek2(_.FY().resolve(_.RF),x),0)})},bLO=function(W){var P,x;
return _.y(function(I){return(x=(P=_.Q(W,_.eo))==null?void 0:P.targetId)?_.S(I,azG(x),0):I.jumpTo(0)})},Ua6=function(){_.p("kevlar_woffle_refresh_dl_load_killswitch")||k19()},fzG=function(){_.p("kevlar_woffle")&&_.Ma.instance&&X56()},lzd=function(W){var P;
if((P=_.Q(W,_.ZZ))==null||!P.videoId)return!1;NT2(_.FY().resolve(_.RF),_.Q(W,_.ZZ),W.clickTrackingParams);return!0},rqy=function(W){var P;
if((P=_.Q(W,_.SK))==null||!P.playlistId)return!1;TTM(_.FY().resolve(_.RF),_.Q(W,_.SK),W.clickTrackingParams);return!0},Rky=function(W){var P=_.Q(W,_.gZk);
(P==null?void 0:P.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(P==null?void 0:P.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||iL3(_.FY().resolve(_.RF),_.Q(W,_.gZk))},qo4=function(W){W=_.Q(W,_.IR3);
var P;(W==null?0:(P=W.actions)==null?0:P.length)&&F7L(W)},Pw3=function(W){var P,x;
return _.y(function(I){P=_.Q(W,L79);return(x=P)!=null&&x.localWatchHistoryCommandType?_.S(I,Wr6(P),0):I.return()})},xnf=function(W){setTimeout(function(){requestAnimationFrame(W)},80)},Iev=function(W){return Object.entries(W).map(function(P){return P.join(":")}).join(";")},JEd=function(W){var P,x,I;
_.y(function(O){if(O.nextAddress==1)return _.S(O,O_M(),2);P=O.yieldResult;x=_.Ix.instance;switch(P){case "granted":I=W.getLocationCommand;break;case "denied":I=W.openDeniedDialogAction;break;case "prompt":I=W.openCollectionDialogAction;break;default:I=W.openCollectionDialogAction}I&&x.resolveCommand(I);_.Kl(O)})},O_M=function(){var W,P;
return _.y(function(x){if(x.nextAddress==1)return W="prompt",navigator.permissions?_.S(x,navigator.permissions.query({name:"geolocation"}),3):x.jumpTo(2);x.nextAddress!=2&&(P=x.yieldResult,W=P.state);return x.return(W)})},nlB=function(){_.y(function(W){return _.S(W,_.BYL(),0)})},YZB=function(){var W,P,x;
return _.y(function(I){if(I.nextAddress==1)return W=_.FY().resolve(_.m7),W?_.S(I,_.cF(W,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.ge(Error("Bl")),I.return(void 0));if(P=I.yieldResult){if(P.errorMetadata)return _.ge(Error("Cl`"+P.errorMetadata.status+"`"+P.error)),I.return(void 0);x=P.datasyncIds;_.l_m=x.length;return I.return(x)}_.ge(Error("Dl"));return I.return(void 0)})},yE4=function(){YZB().then(function(W){W&&(YzL(W),G$f(W),qz6(W),cyy(W))})},Krd=function(W){_.Gr.addLowPriorityJob(function(){var P,
x,I,O,B;
return _.y(function(Y){switch(Y.nextAddress){case 1:if(_.p("ytidb_clear_optimizations_killswitch")){Y.jumpTo(2);break}P=_.sy("clear");if(P.startsWith("V")&&P.endsWith("||")){var K=[P];YzL(K);G$f(K);qz6(K);cyy(K);return Y.return()}x=Lpf();I=awO();return _.S(Y,EMQ(),3);case 3:return O=Y.yieldResult,_.S(Y,y06(),4);case 4:if(B=Y.yieldResult,!(x||I||O||B))return Y.return();case 2:W.isNetworkAvailable()?yE4():W.listenOnce("publicytnetworkstatus-online",yE4),_.Kl(Y)}})})},xE=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.bx(W)}}}};_.Ix.instance&&_.Ix.instance.resolveCommand(W)},Z_G=function(W){if(W){var P=_.YY();
_.JN(P,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var x=238708;break;case 2:x=238715;break;case 3:x=238710;break;case 6:x=238709}x&&(W=_.nt(P,{veType:x}))&&_.yI(P,W)}},olv=function(W){if(W){var P=_.YY();
_.JN(P,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var x=238714;break;case 2:x=238711;break;case 8:x=238709;break;case 7:x=238713;break;case 3:case 4:case 5:x=238712}x&&(W=_.nt(P,{veType:x}))&&_.yI(P,W)}},SZv=function(W){switch(W.latencyType){case 0:_.QY("consent_primitive_flow");
_.CK("cpit",W.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.CK("cpist",W.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.CK("cprtif",W.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.CK("cprtli",W.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.CK("cprt",W.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.CK("cpdt",W.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.CK("cpjct",W.timestampEpochMillis,"consent_primitive_flow")}},
Q74=function(W,P){var x,I,O,B,Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N,Io;
return _.y(function(F){switch(F.nextAddress){case 1:_.OT(F,2);(I=(x=_.Q(W,u4d))==null?void 0:x.serializedConsentRequest)||(I=(O=_.Q(W,dnO))==null?void 0:O.serializedConsentRequest);I&&(B=s7M(_.up(I)));if(B===void 0)return F.return();Y=vlM(B);Y.latencyCallback=SZv;P&&mn6(Y,function(){P.then(function(nm){nm.pauseVideo();(new Vd2).increment()})});
return((K=_.Q(W,u4d))==null?void 0:K.consentAction)==="CONSENT_ACTION_PREWARM"||((Z=_.Q(W,dnO))==null?void 0:Z.consentAction)==="CONSENT_ACTION_PREWARM"?_.S(F,tdf(Y),5):_.S(F,pM3(Y),6);case 6:d=F.yieldResult;v=_.CW(d,IB);if(v===1){if(((m=_.HI(d,Os,1,IB))==null?void 0:_.$5(m,1))===1||((t=_.HI(d,Os,1,IB))==null?void 0:_.$5(t,1))===2||((C=_.HI(d,Os,1,IB))==null?void 0:_.$5(C,1))===3)_.Q(W,dnO)?xE(_.KK("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
xE(_.KK("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Z_G((z=_.HI(d,Os,1,IB))==null?void 0:_.$5(z,1),_.RQ(d,j7f,3,_.qT()))}else v===2?(((D=JD(d))==null?void 0:_.$5(D,1))===5?_.Q(W,dnO)?xE(_.KK("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):xE(_.KK("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((w=JD(d))==null?void 0:_.$5(w,1))===1||((a=JD(d))==null?void 0:_.$5(a,1))===4?xE(_.KK("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((k=JD(d))==null?void 0:_.$5(k,1))===7&&((T=B)==null?void 0:(N=_.qM(T,B$,4))==null?void 0:_.$5(N,4))!==1&&xE(_.KK("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),olv((Io=JD(d))==null?void 0:_.$5(Io,1))):xE(_.KK("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));F.jumpTo(5);break;case 5:_.ci(F,0);break;case 2:_.yn(F),xE(_.KK("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Kl(F)}})},AEL=function(){if(!Cwm.has("Worker")){Cwm.set("Worker",
!0);
var W={api:"BROWSER_API_WEB_WORKER"};W.available="Worker"in window?!0:!1;_.Ay("apiTest",W)}},zom=function(W){return typeof W==="undefined"?"-1":String(Math.ceil(W/1048576))},DnQ=function(W,P){Gnv(new El9(_.Q(P,gl6).addToken,_.Q(P,gl6).commonToken)).then(function(){_.Lf(W,"yt-invoke-instrument-manager-action-completed")},function(x){_.Lf(W,"yt-invoke-instrument-manager-action-error",x)})},Mdf=function(W){return _.k5(W)},$nd=function(W){var P=1;
W=W.split(":");for(var x=[];P>0&&W.length;)x.push(W.shift()),P--;W.length&&x.push(W.join(":"));return x},wMO=function(W,P){P=W.aspectRatio()<=P.aspectRatio()?P.width/W.width:P.height/W.height;
W.scale(P)},hod=function(W,P){P=W.aspectRatio()>P.aspectRatio()?P.width/W.width:P.height/W.height;
return W.scale(P)},H_m=function(W){var P=new _.Yf;
return _.ee(P,11,W)},eoB=function(W){var P={};
W=W.getAllResponseHeaders().split("\r\n");for(var x=0;x<W.length;x++)if(!_.Km(W[x])){var I=$nd(W[x]),O=I[0];I=I[1];if(typeof I==="string"){I=I.trim();var B=P[O]||[];P[O]=B;B.push(I)}}return _.jU.map(P,function(Y){return Y.join(", ")})},uN=function(W,P){return W.JSC$7701_xhr_?W.JSC$7701_xhr_.getResponseHeader(P):null},ny=function(W,P,x){Array.isArray(x)||(x=[String(x)]);
_.czp(W.JSC$7933_queryData_,P,x);return W},X56=function(){var W=_.Ma.instance;
_.y(function(P){return W.deferredInstallPrompt?_.S(P,W.deferredInstallPrompt.prompt(),0):P.jumpTo(0)})},cEM=function(W,P,x){if(_.xi(W))_.bP(W,P,x);
else for(W=_.N3W(W);;){var I=W.next();if(I.done)break;P.call(x,I.value,void 0,W)}},ae6={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}"]},hVG,Htm,eVm,cFy,a1m,btO,kmf,Ug4,XWf,azG,ek2,w5O,f1O,NcQ,l14,Tc9,rF2,TTM,NT2,it3,RVO,FT2,k19,iL3,q2G,F7L,LTd,Wr6,WQB,Phf,xxf,IhO,OEM,Jdd,BLy,FE,nCv,Y4G,
iKm,lEd,ydd,Ss,uK,ds,ss,KQ4,ZEB,oC4,S4G,u_2,dxL,sP4,vCO,mxf,Vym;ae6={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 b_G=function(W,P){var x=[];cEM(P,function(I){try{var O=_.WV.prototype.getWrapper.call(this,I,!0)}catch(B){if(B=="Storage: Invalid value was encountered")return;throw B;}O===void 0?x.push(I):_.fqc(O)&&x.push(I)},W);
return x},knM=function(W,P){b_G(W,P).forEach(function(x){_.WV.prototype.remove.call(this,x)},W)},Un6=function(W){var P=_.Xs;
P._minimumZ=Math.max(P._minimumZ,W)},XM9=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],fed=function(W,P){_.TD(W.vx);W.vx=P},NY4=function(W,P,x,I){W.setState(5);
var O=!!W.hHa&&XM9.includes(_.lP(W.hHa)||"");try{var B=new _.$f({program:P,globalName:x,gU:{disable:!_.p("att_web_record_metrics")||!_.p("att_skip_metrics_for_cookieless_domains_ks")&&O,cD:"aGIf"}});B.fPT.then(function(){W.setState(6);I&&I(P)});
fed(W,B)}catch(Y){W.setState(7),Y instanceof Error&&_.ge(Y)}},leO=function(W,P,x,I,O,B){var Y=Y===void 0?"trayride":Y;
x?(W.setState(2),_.h1(x,function(){if(window[Y])NY4(W,I,Y,O);else{W.setState(3);var K=_.WmR(x),Z=document.getElementById(K);Z&&(_.IeU(K),Z.parentNode.removeChild(Z));_.ge(new _.mW("BL:ULB",x))}},B)):P?(B=_.ZV("SCRIPT"),P instanceof _.w9?_.e5(B,P):B.textContent=P,B.nonce=_.$H(document),document.head.appendChild(B),document.head.removeChild(B),window[Y]?NY4(W,I,Y,O):(W.setState(4),_.ge(new _.mW("BL:ULBJ")))):_.ge(new _.mW("BL:ULV"))},TY9=function(){this.state=1;
this.vx=null;this.hHa=void 0};
_.J=TY9.prototype;_.J.initialize=function(W,P,x,I){this.hHa=I;if(W.program){var O;I=(O=W.interpreterUrl)!=null?O:null;if(W.interpreterSafeScript)O=_.AbR(W.interpreterSafeScript);else{var B;O=(B=W.interpreterScript)!=null?B:null}W.interpreterSafeUrl&&(I=_.Ez(W.interpreterSafeUrl).toString());leO(this,O,I,W.program,P,x)}else _.ge(Error("lf"))};
_.J.isInitialized=function(){return!!this.vx};
_.J.getState=function(){return this.state};
_.J.isLoading=function(){return this.state===2};
_.J.invoke=function(W){W=W===void 0?{}:W;var P;this.vx?P=_.zYw(this.vx,{za:W}):P=null;return P};
_.J.dispose=function(){fed(this,null);this.setState(8)};
_.J.setState=function(W){this.state=W};
var rEO=function(W,P){return W.vx.snapshot(P)},i_d=function(W,P){var x=_.Wi("botguard_async_snapshot_timeout_ms",3E3);
P=P===void 0?{}:P;x=x===void 0?3E3:x;return W.vx?new Promise(function(I,O){var B=!1,Y=_.Gr.addJob(function(){B=!0;O(Error("mf"))},1,x);
W.vx?rEO(W,{za:P}).then(function(K){_.Gr.cancelJob(Y);B||I(K)}).catch(function(K){_.Gr.cancelJob(Y);
B||O(K)}):(_.Gr.cancelJob(Y),I(null))}):Promise.resolve(null)},RoO=["att/log"],FrQ;
FrQ={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var qZ2={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},LrB=function(W,P){return _.Z5(W,{mode:"readwrite",enableRetries:!0},function(x){return _.HhU(x,P,"settingEntity")})},WT6=function(W,P,x){return _.Z5(W,{mode:"readonly",
enableRetries:!0},function(I){return _.JfA(I,P,x)})},Pq6=function(W){if(!W.storage)return!1;
a:{if(W.storage){try{var P=W.storage.get("TLPQtimestamp")}catch(x){}W=Number(P);if(!isNaN(W))break a}W=void 0}return W?Date.now()-W<864E5:!1},xgy=function(W){if(W.storage){try{var P=W.storage.get("TLPQindex")}catch(x){}W=Number(P);
if(!isNaN(W))return W}},I19=function(W,P){W.queueProxy&&P.forEach(function(x){if(x.videoId&&x.trackingParams&&W.queueProxy instanceof _.Df){var I=_.E_();
W.queueProxy.attributionData.set(x.videoId,{enqueueingVe:_.ox(x.trackingParams).getAsJson(),enqueueingCsn:I?I:void 0,clientEnqueueingTimeMs:Math.floor((0,_.iA)()).toString()})}})},OtL=function(W){var P=_.cTi(W);
P!=W.currentSnapState_&&(W.currentSnapState_=P,W.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},YE=function(W){this.JSC$10875_networkManager_=W;
this.partCallbacks_=[]};
YE.prototype.getCacheKeyForEndpoint=function(W){return _.doR(W,!1)};
YE.prototype.onPartsCallback_=function(W){this.partCallbacks_.forEach(function(P){W&&P(W)})};
var yF=function(W,P,x){YE.call(this,W);this.player_=P;this.autoplayData_=x};
_.A(yF,YE);yF.prototype.getCacheKeyForEndpoint=function(W){return _.doR(W,!!this.autoplayData_)};
yF.prototype.getTempData=function(W,P){P=P.timeBeforeNextVideo;W={itct:W.clickTrackingParams,lact:_.LD(),pbis:P,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(W.autonav=1);return W};
yF.prototype.getXhrParams=function(W){return Object.assign({pbj:"prefetch"},W)};
yF.prototype.getParams=function(W){W={frags:W.fragmentsRequested.join(",")};_.p("kevlar_droppable_prefetchable_requests")&&(W.prefetch=1);return W};
var JFy=function(W){W.playerEvents_.forEach(function(P){W.player.removeEventListener(P.eventName,P.callback)});
W.playerEvents_.length=0},Ky=function(W,P,x){this.player=W;
this.JSC$10885_taskManager=P;this.prefetchDelay=x;this.completionResolver_=null;this.playerEvents_=[]};
Ky.prototype.start=function(){var W=this;this.completionResolver_=_.aP();_.CA(this.completionResolver_.promise,function(){JFy(W);W.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var BcB=function(W,P,x){W.player.addEventListener(P,x);W.playerEvents_.push({eventName:P,callback:x})},nYG={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Y2O={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},yFy=function(W,P,x){Ky.call(this,W,P,x);this.cueId_="playbackTrigger-"+Math.random()};
_.A(yFy,Ky);
yFy.prototype.prepareTrigger=function(W){var P=this,x=this.player.getDuration(),I=this.player.getVideoData(),O=I.isLive&&I.hasProgressBarBoundaries;if(O&&I.progressBarEndPositionUtcTimeMillis){var B=I.progressBarEndPositionUtcTimeMillis/1E3;isNaN(B)||(x=B)}var Y=0;this.prefetchDelay>=0?O?I.progressBarStartPositionUtcTimeMillis&&(I=I.progressBarStartPositionUtcTimeMillis/1E3,isNaN(I)||(Y=I+this.prefetchDelay)):Y=this.prefetchDelay:Y=x+this.prefetchDelay;O?this.player.addUtcCueRange(this.cueId_,Y,x):
this.player.addCueRange(this.cueId_,Y,x);_.CA(W.promise,function(){P.player.removeCueRange(P.cueId_)});
BcB(this,"onCueRangeEnter",function(K){K==P.cueId_&&W.resolve(x-Y)})};
var KTL=function(W,P){W.fragmentConfiguration_[P].requiredKeys.every(function(x){return!!W.prefetchedData_[x]})&&(W.validatedFragments_.push(P),P=W.missingFragments_.indexOf(P),P!==-1&&W.missingFragments_.splice(P,1))},Zty=function(W){W.prefetchedFragments_.forEach(function(P){KTL(W,P)})},oYQ=function(W,P,x){this.pageFragments_=W;
this.prefetchedFragments_=P;this.fragmentConfiguration_=Y2O;this.prefetchedData_=x;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Zty(this)},S2d=function(){},uoy=function(W){this.JSC$10899_playlistManager_=W};
_.A(uoy,S2d);uoy.prototype.getPrefetchEndpoint=function(){return this.JSC$10899_playlistManager_.getAutoplayEndpoint()};
var dgv=function(W){this.autonavEndpoints_=W};
_.A(dgv,S2d);dgv.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var sxM=function(W,P,x,I,O){this.autonavEndpoints=W;this.foregroundTrigger=P;this.backgroundTrigger=x;this.pageType=I;this.isInPlaylist=O},vYf=function(W,P){if(W.webPrefetchData&&W.webPrefetchData.navigationEndpoints&&W.webPrefetchData.navigationEndpoints.length){W=W.webPrefetchData.navigationEndpoints;
var x=_.Q(W[0],_.U_);if(x.watchEndpointSupportedPrefetchConfig&&x.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var I=x.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;x=I.playbackRelativeSecondsPrefetchCondition;x=typeof x==="number"&&Math.abs(x)<P.videoDuration?x:void 0;I=I.countdownUiRelativeSecondsPrefetchCondition;I=typeof I!=="number"||_.p("prefetch_job_config_cleanup_ks")&&P.inPlaylist?void 0:I;if(typeof I==="number")return new sxM(W,P.makeUpNextTrigger(I),P.makePlaybackTrigger(I),
"watch",P.inPlaylist);if(typeof x==="number")return new sxM(W,P.makePlaybackTrigger(x),null,"watch",P.inPlaylist)}}},mg6=function(W){return W.prefetchJobConfig_.backgroundTrigger?_.Ho(_.Lmx)()==0?W.prefetchJobConfig_.backgroundTrigger:W.prefetchJobConfig_.foregroundTrigger:W.prefetchJobConfig_.foregroundTrigger},VS6=function(W){_.Vq(document,"visibilitychange",W.onVisibilityChange_,!1,W)},ZT=function(W){YE.call(this,W)};
_.A(ZT,YE);ZT.prototype.getCacheKeyForEndpoint=function(W){return YE.prototype.getCacheKeyForEndpoint.call(this,W)};
ZT.prototype.getTempData=function(){return{}};
ZT.prototype.getXhrParams=function(W){return W};
ZT.prototype.getParams=function(){return{}};
var tS4=function(W,P,x){var I=W.prefetchDelay*1E3;if(Math.abs(I)>P)x.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var O=I,B=P-I;I<0&&(O=P+I,B=Math.abs(I));var Y=W.JSC$10885_taskManager.addJob(function(){x.resolve(B/1E3)},10,O);
x.promise.thenCatch(function(){W.JSC$10885_taskManager.cancelJob(Y)})}},pWQ=function(W,P,x){Ky.call(this,W,P,x)};
_.A(pWQ,Ky);pWQ.prototype.prepareTrigger=function(W){var P=this;BcB(this,"onAutonavCoundownStarted",function(x){tS4(P,x,W)})};
var jxO=function(W){W.pendingPrefetchJob_&&(W.pendingPrefetchJob_.cancel(),W.pendingPrefetchJob_=null)},QxQ=function(W,P,x){if(!W.triggeredTargets.has(P)){var I=_.pez(W,P);
I.action=x;_.VMp(W,P,I)}},Cq6=function(W){_.Zck();
_.Z0U("cpt")&&_.ge(Error("kh"));_.xW.requestAnimationFrame(function(){_.xW.setTimeout(function(){_.CK("cpt");var P=_.gw("vpl"),x=_.gw("cpt");P&&x&&_.CK("ol",Math.max(P,x))})});
try{_.CK("fr_s"),W()}catch(P){_.G$(P)}_.xW.requestAnimationFrame(function(){_.CK("bcp")})},AFy=function(W,P){W.serviceEndpointHandlers.push(P)},zVL=function(W,P){P=W.pendingPages_.indexOf(P);
P>-1&&W.pendingPages_.splice(P,1)},Gmf=function(W,P){var x=_.AId.indexOf(P);
x>-1&&_.AId.splice(x,1);W.targetPage_==P?(W.abort(),_.GLM(W)):zVL(W,P)},EYB=function(W,P,x,I){P={challenge:P};
x&&(P.webResponse=x);return _.$P(W.innertubeTransportService,P,_.fR(RoO),I)},gYy=function(W,P,x){if(!P.challenge)throw Error("mi");
if(P.botguardData&&P.botguardData.program){var I=new TY9;I.initialize(P.botguardData,function(){i_d(I,{atr_challenge:P.challenge}).then(function(O){if(!O)throw Error("ni");return EYB(W,P.challenge,O,x)}).catch(function(O){_.ge(O);
return EYB(W,P.challenge,void 0,x)})},void 0)}else EYB(W,P.challenge,void 0,x)},DgG=function(W,P,x){var I={};
P.ids&&(I.ids=[].concat(_.ju(P.ids)));P.engagementType&&(I.engagementType=P.engagementType);return _.$P(W.innertubeTransportService,I,_.fR(_.pvb),x).then(function(O){if(!O)throw new _.mW("GetAttestationChallenge returned falsy");gYy(W,O,x)}).thenCatch(function(O){_.G$(O)})},MSQ=function(W,P,x){return new _.yE(function(I,O){var B;
return _.y(function(Y){if(Y.nextAddress==1){var K=P.engagementType,Z=P.ids,d={};Z=_.n(Z!=null?Z:[]);for(var v=Z.next();!v.done;v=Z.next())v=v.value,v.encryptedVideoId?d.encryptedVideoId=v.encryptedVideoId:v.externalChannelId?d.externalChannelId=v.externalChannelId:v.commentId?d.commentId=v.commentId:v.externalOwnerId?d.externalOwnerId=v.externalOwnerId:v.artistId?d.artistId=v.artistId:v.playlistId?d.playlistId=v.playlistId:v.externalPostId?d.externalPostId=v.externalPostId:v.shareId&&(d.shareId=v.shareId);
return _.S(Y,Xi9(K,d),2)}B=Y.yieldResult;if(!B.challenge)return _.ge(Error("oi")),DgG(W,P,x).then(I,O),Y.return();K=B;d={challenge:K.challenge};d.webResponse=K.webResponse;d.engagementType=P.engagementType;d.ids=P.ids;_.$P(W.innertubeTransportService,d,_.fR(RoO),x).then(I,O);_.Kl(Y)})})},qLv=function(W,P){var x,I,O,B;
_.y(function(Y){if(Y.nextAddress==1){x=_.Q(P,_.v_3);if(!(x&&x.listId&&W.response&&W.response.playingVideoId)||W.listId!==x.listId)return Y.return();W.index===void 0&&(W.index=0);return _.S(Y,_.b7b(W.JSC$10705_playlistNetworkManager,x.listId,W.index,W.response.playingVideoId),2)}I=Y.yieldResult;if(!I)return Y.return();O=I.playlistId;B=I.playlistPanelRenderer;W.setPlaylistData(O,B,I.autoplayRenderer);_.Kl(Y)})},$gG=function(W,P,x){var I=W.getParams(x),O=_.Ht8(P,I),B=W.getTempData(P,x);
B.endpoint=JSON.stringify(P);_.p("enable_unknown_lact_fix_on_html5")&&(_.FY().resolve(_.jy),B.lact=_.LD());var Y={headers:{"X-YouTube-STS":_.$$("STS"),"x-youtube-csoc":1}};_.lO(O,B);return new _.yE(function(K,Z){var d=W.getXhrParams(I),v;_.p("kevlar_cache_on_ttl_player")&&(v=_.Is.instance);v&&_.q$i(v,P)?_.BC3(v,P,B,window.location.href).then(function(m){m?K(m):Z()},Z):_.QkA(W.JSC$10875_networkManager_,P,d,W.onPartsCallback_.bind(W),Y).then(function(m){m?K(m):Z()},Z)})},wWf=function(W,P){W.triggerPromise_=
P.start();
W.triggerPromise_.then(function(x){var I=W.prefetchEndpointProvider_.getPrefetchEndpoint();if(I){var O=nYG[W.prefetchJobConfig_.pageType].prefetchedFragments;W.prefetchRequestPromise_=$gG(W.JSC$10911_networkPrefetchRequest_,I,{fragmentsRequested:O,timeBeforeNextVideo:x});W.prefetchResponseCacheKey_=W.JSC$10911_networkPrefetchRequest_.getCacheKeyForEndpoint(I);VS6(W);W.prefetchRequestPromise_.then(function(B){W.storePrefetchedDataCallback_(W.prefetchResponseCacheKey_,B);if(_.p("web_prefetch_preload_video")&&
O.length===1&&O[0]==="pl"&&B&&!B.playerAds&&!B.adPlacements){var Y=_.Q(I,_.uS),K=Y!=null,Z={raw_player_response:B,watch_endpoint:Y};(B=_.FY().resolve(K?_.jV3:_.Pq))&&I&&B.then(function(d){K&&_.p("web_queue_preload_video")?(Z.prefer_gapless=!0,d.queueNextVideo(Z)):d.preloadVideoByPlayerVars(Z)})}})}})},oB=function(W,P,x,I){this.prefetchEndpointProvider_=W;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=P;this.prefetchJobConfig_=x;this.JSC$10911_networkPrefetchRequest_=I;this.prefetchResponseCacheKey_=null};
oB.prototype.enqueue=function(){this.triggerPromise_||(wWf(this,mg6(this)),_.uq(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
oB.prototype.resolve=function(){this.cancel()};
oB.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.");VS6(this)};
oB.prototype.onVisibilityChange_=function(){var W=this;_.Ho(_.Lmx)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){W.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||wWf(this,mg6(this))};
hVG=function(W,P,x,I,O){P&&(P==null?0:P.videoId)&&x&&x.entries&&_.p("kevlar_enable_shorts_prefetch_in_sequence")&&(jxO(W),P=x.entries.map(function(B){var Y;return(Y=_.Q(B.command,_.uS))==null?void 0:Y.videoId}).indexOf(P.videoId),x=x.entries[P+1],x!=null&&x.command&&!_.Q(x==null?void 0:x.command,_.M3)&&(I=new sxM([x.command],new yFy(I,_.Gr,1),null,"shorts",!1),W.pendingPrefetchJob_=new oB(new dgv(I.autonavEndpoints),function(){return!1},I,new ZT(O)),W.pendingPrefetchJob_.enqueue()))};
Htm=function(W,P,x,I,O,B){var Y=_.iG.getInstance();if(!_.p("block_all_player_prefetch_requests")){jxO(W);var K=!!x.getPlaylistId(),Z=x.getVideoData().isLive&&x.getVideoData().hasProgressBarBoundaries;if((Y.getState()==2||K||Z)&&(!x.getVideoData().isLive||Z)){Y={inPlaylist:K,videoDuration:x.getDuration(),makeUpNextTrigger:function(v){return new pWQ(x,_.Gr,v)},
makePlaybackTrigger:function(v){return new yFy(x,_.Gr,v)}};
var d=vYf(P,Y);d&&(W.pendingPrefetchJob_=new oB(d.isInPlaylist?new uoy(O):new dgv(d.autonavEndpoints),function(v,m){m=new oYQ(nYG[d.pageType].pageFragments,nYG[d.pageType].prefetchedFragments,m);return _.Kcl(m)?(W.prefetchCache_.set(v,m),!0):!1},d,new yF(I,x,B,O)),W.pendingPrefetchJob_.enqueue())}}};
eVm=function(){var W=_.am();W.signals.parkOrScheduleJob(function(){var P=W.storage;if(P.storage)if(Pq6(P)){var x=P.getPlaylistId();P=xgy(P);x=!!x&&P!==void 0}else P.clear(),x=!1;else x=!1;if(x){x=W.pageManager.isOnWatch();a:{var I=W.storage;if(I.storage&&Pq6(I)&&(P=I.getPlaylistId(),I=xgy(I),P&&I!==void 0)){x={recoverPlaylistCommand:{listId:P,index:I,openMiniplayer:!x,openListPanel:x,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}x=void 0}x&&_.wl(W.JSC$10705_actionRouter,[x],null)}},0,"ma")};
cFy=function(W,P,x,I,O,B){var Y=_.td(7111);_.BK(W.JSC$16024_screenManager,Y,B?_.ox(B):void 0);_.yI(W.JSC$16024_screenManager,Y,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:I,offlineId:P,offlineabilityFormatType:x,isDefaultFormatType:O==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:O}})};
a1m=function(W,P,x,I,O){var B,Y,K,Z,d;return _.y(function(v){if(v.nextAddress==1)return _.S(v,W.JSC$16024_playerApiPromise,2);B=v.yieldResult;cFy(W,P,x,"OFFLINE_OBJECT_TYPE_PLAYLIST",I,O);if(K=_.owZ[W.entityTypeMap.listEntityType])d={},Y=(d[K]={maximumDownloadQuality:(Z=x)!=null?Z:void 0},d);return _.S(v,B.queueOfflineAction(P,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)})};
btO=function(W,P){var x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return _.S(Y,W.JSC$16024_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3){x=Y.yieldResult;if(!x)return _.ge(new _.mW("PES is undefined")),Y.return();I=_.On(P,"downloadStatusEntity");return _.S(Y,WT6(x,I,"downloadStatusEntity"),3)}O=Y.yieldResult;return Y.return((B=O)==null?void 0:B.downloadState)})};
kmf=function(W,P,x,I,O){var B,Y,K,Z,d,v;return _.y(function(m){switch(m.nextAddress){case 1:return _.S(m,W.JSC$16024_playerApiPromise,2);case 2:B=m.yieldResult;cFy(W,P,x,"OFFLINE_OBJECT_TYPE_VIDEO",I,O);if(K=_.owZ[W.entityTypeMap.singleEntityType])d={},Y=(d[K]={maximumDownloadQuality:(Z=x)!=null?Z:void 0},d);return _.S(m,btO(W,P),3);case 3:v=m.yieldResult;if(v!=="DOWNLOAD_STATE_USER_DELETED"){m.jumpTo(4);break}return _.S(m,W.deleteVideo(P),4);case 4:return _.S(m,B.queueOfflineAction(P,W.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)}})};
Ug4=function(W,P,x,I,O){return _.y(function(B){return B.nextAddress==1?_.S(B,W.deleteVideo(P,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.S(B,kmf(W,P,x,I,O),0)})};
XWf=function(W,P,x){var I,O;return _.y(function(B){if(B.nextAddress==1)return _.S(B,W.JSC$16024_playerApiPromise,2);I=B.yieldResult;O=_.On(P,"mainVideoDownloadStateEntity");return _.S(B,I.updateDownloadState(O,x),0)})};
azG=function(W){var P=_.FY().resolve(_.RF);return _.y(function(x){if(x.nextAddress==1)return P.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&P.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?x.jumpTo(2):_.S(x,P.resumeVideoDownload(W),2);if(x.nextAddress!=4)return _.S(x,XWf(P,W,P.previousDownloadStateForVideo[W]),4);delete P.previousDownloadStateForVideo[W];_.Kl(x)})};
ek2=function(W,P){var x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$16024_playerApiPromise,2);x=I.yieldResult;return _.S(I,x.queueOfflineAction(P,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
w5O=function(){var W=_.FY().resolve(_.RF),P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$16024_playerApiPromise,2);if(I.nextAddress!=3)return P=I.yieldResult,x={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.S(I,P.queueOfflineAction("!*$_ALL_ENTITIES_!*$",W.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",x),3);var O=W.JSC$16024_commandHandler,B=O.resolveCommand,Y=_.KK("DELETING_ALL",void 0,"Downloads are being deleted");
B.call(O,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ru(Y)}},popupType:"TOAST"}});_.Kl(I)})};
f1O=function(W){var P,x;return _.y(function(I){if(I.nextAddress==1)return _.S(I,W.JSC$16024_prefStorage,2);P=I.yieldResult;return I.return((x=P)==null?void 0:x.get("sdois"))})};
NcQ=function(W){var P,x,I,O,B,Y;return _.y(function(K){if(K.nextAddress==1)return _.S(K,W.JSC$16024_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3){P=K.yieldResult;if(!P)return _.ge(new _.mW("PES is undefined")),K.return();x=_.On("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.S(K,WT6(P,x,"settingEntity"),3)}I=K.yieldResult;return K.return((Y=(O=I)==null?void 0:(B=O.settingOptionValue)==null?void 0:B.boolValue)!=null?Y:!1)})};
l14=function(W,P){var x,I,O,B;return _.y(function(Y){switch(Y.nextAddress){case 1:return((x=P)==null?void 0:x.formatType)===void 0?Y.return():_.S(Y,W.JSC$16024_prefStorage,2);case 2:I=Y.yieldResult;if(I===void 0)return Y.return();if(((O=P)==null?void 0:O.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.S(Y,I.set("lmqf",P.formatType),8);if(((B=P)==null?void 0:B.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Y.jumpTo(0);break}return _.S(Y,I.set("lmqf",P.formatType),
6);case 6:return _.S(Y,I.set("lmqflst",Math.floor((0,_.iA)())),0);case 8:return _.S(Y,I.remove("lmqflst"),0)}})};
Tc9=function(W){var P,x;return _.y(function(I){switch(I.nextAddress){case 1:return _.S(I,W.JSC$16024_prefStorage,2);case 2:P=I.yieldResult;if(!P){I.jumpTo(3);break}return _.S(I,P.get("lmqflst"),4);case 4:if(x=I.yieldResult,x!==void 0)return I.return(x);case 3:return I.return(0)}})};
rF2=function(W){var P,x;return _.y(function(I){switch(I.nextAddress){case 1:return _.S(I,W.JSC$16024_prefStorage,2);case 2:P=I.yieldResult;if(P===void 0){I.jumpTo(3);break}return _.S(I,P.get("lmqf"),4);case 4:if(x=I.yieldResult,x!==void 0)return I.return(x);case 3:return I.return("SD")}})};
TTM=function(W,P,x){var I,O,B,Y,K,Z,d,v;_.y(function(m){switch(m.nextAddress){case 1:return _.S(m,l14(W,(I=P)==null?void 0:I.actionParams),2);case 2:O=P.playlistId;if(!O)return m.return();if(P.action==="ACTION_ADD")return((Y=P.actionParams)==null?0:Y.formatType)?_.S(m,a1m(W,O,P.actionParams.formatType,(v=P.actionParams)==null?void 0:v.settingsAction,x),0):_.S(m,W.offlineWebClientEligibility,14);if(P.action==="ACTION_REMOVE_WITH_PROMPT"){var t=W.JSC$16024_commandHandler,C=t.resolveCommand,z=_.$$("INNERTUBE_CLIENT_NAME");
var D=z==="WEB_REMIX"?_.KK("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.KK("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var w=z==="WEB_REMIX"?[_.KK("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];z=z==="WEB_REMIX"?_.KK("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.KK("DELETE",void 0,"Delete");var a=_.KK("CANCEL",void 0,"Cancel");D=f8G(D,w,z,a,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:O});C.call(t,{openPopupAction:D});
return m.return()}if(P.action==="ACTION_REMOVE")return _.S(m,ek2(W,O),0);if(P.action!=="ACTION_SYNC"){m.jumpTo(0);break}return _.S(m,W.JSC$16024_playerApiPromise,9);case 9:return B=m.yieldResult,_.S(m,B.queueOfflineAction(O,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return K=m.yieldResult,_.S(m,rF2(W),15);case 15:return Z=m.yieldResult,_.S(m,Tc9(W),16);case 16:d=m.yieldResult,P.onAddCommand&&W.JSC$16024_commandHandler.resolveCommand(P.onAddCommand,{form:{preferredFormatType:Z,
offlineWebClientEligibility:K,lastOfflineQualitySettingsSavedMs:d.toString()}}),m.jumpTo(0)}})};
NT2=function(W,P,x){var I,O,B,Y,K,Z,d,v,m,t,C,z,D,w;_.y(function(a){switch(a.nextAddress){case 1:return _.S(a,l14(W,(I=P)==null?void 0:I.actionParams),2);case 2:O=P.videoId;if(!O)return a.return();if(P.action==="ACTION_REMOVE_WITH_PROMPT"){var k=W.JSC$16024_commandHandler,T=k.resolveCommand,N=_.$$("INNERTUBE_CLIENT_NAME");var Io=N==="WEB_REMIX"?_.KK("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.KK("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var F=N==="WEB_REMIX"?[_.KK("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];N=N==="WEB_REMIX"?_.KK("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.KK("DELETE",void 0,"Delete");var nm=_.KK("CANCEL",void 0,"Cancel");Io=f8G(Io,F,N,nm,{signal:"DELETE_DOWNLOAD",targetId:O});T.call(k,{openPopupAction:Io});return a.return()}if(P.action==="ACTION_ADD")return((t=P.actionParams)==null?0:t.formatType)?_.S(a,kmf(W,O,P.actionParams.formatType,(w=P.actionParams)==null?void 0:w.settingsAction,x),0):_.S(a,W.offlineWebClientEligibility,
23);if(P.action==="ACTION_RETRY")return _.S(a,rF2(W),19);if(P.action==="ACTION_PAUSE")return _.S(a,W.pauseVideoDownload(O),0);if(P.action==="ACTION_RESUME")return _.S(a,W.resumeVideoDownload(O),0);if(P.action!=="ACTION_REMOVE"){a.jumpTo(0);break}return _.S(a,btO(W,O),13);case 13:return B=a.yieldResult,W.previousDownloadStateForVideo[O]=(Y=B)!=null?Y:"DOWNLOAD_STATE_UNKNOWN",_.S(a,XWf(W,O,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(W.previousDownloadStateForVideo[O]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
W.previousDownloadStateForVideo[O]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){a.jumpTo(15);break}return _.S(a,W.pauseVideoDownload(O),15);case 15:k=_.KK("DELETED_VIDEO",void 0,"Video deleted from downloads.");T=_.KK("UNDO_ACTION",void 0,"Undo");Io=_.KK("CLOSE",void 0,"Close");K={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ru(k),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Ru(T),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:O}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:k+" "+T}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:O}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Io}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};W.JSC$16024_commandHandler.resolveCommand(K);
a.jumpTo(0);break;case 19:Z=a.yieldResult;Z==="UNKNOWN_FORMAT_TYPE"&&(Z="SD");d="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((v=P.actionParams)==null?0:v.formatType)Z=P.actionParams.formatType,d=(m=P.actionParams)==null?void 0:m.settingsAction;return _.S(a,Ug4(W,O,Z,d,x),20);case 20:return a.return();case 23:return C=a.yieldResult,_.S(a,rF2(W),24);case 24:return z=a.yieldResult,_.S(a,Tc9(W),25);case 25:D=a.yieldResult,P.onAddCommand&&W.JSC$16024_commandHandler.resolveCommand(P.onAddCommand,
{form:{preferredFormatType:z,offlineWebClientEligibility:C,lastOfflineQualitySettingsSavedMs:D.toString()}}),a.jumpTo(0)}})};
it3=function(W,P){var x,I,O,B,Y,K,Z;return _.y(function(d){if(d.nextAddress==1)return _.S(d,W.JSC$16024_persistentStorePromiseAccessor(),2);x=d.yieldResult;if(!x)return _.ge(new _.mW("PES is undefined")),d.return();if((I=P)==null||!I.settingItemId)return d.return();O=P;B=O.settingItemId;Y=O.boolValue;K=_.On(B,"settingEntity");Z={key:K,settingOptionValue:{boolValue:Y}};return _.S(d,LrB(x,Z),0)})};
RVO=function(W,P){var x,I,O,B,Y,K,Z;return _.y(function(d){switch(d.nextAddress){case 1:return _.S(d,W.JSC$16024_prefStorage,2);case 2:return x=d.yieldResult,I=_.SI(),_.S(d,W.JSC$16024_persistentStorePromiseAccessor(),3);case 3:return O=d.yieldResult,x?O?_.S(d,x.get("sdois"),4):(_.ge(new _.mW("PES is undefined")),d.return()):(_.ge(new _.mW("prefStorage is undefined")),d.return());case 4:B=d.yieldResult;K=(Y=P)==null?void 0:Y.boolValue;K===void 0||_.p("kevlar_set_sd_enabled_flag_killswitch")||_.uB(0,
197,!0);B===void 0&&K===void 0&&(K=!1);if(K===void 0){d.jumpTo(0);break}return _.S(d,x.set("sdois",K),6);case 6:return _.p("kevlar_set_sd_enabled_flag_killswitch")||(_.uB(0,196,K),I.save()),Z={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:K},_.S(d,it3(W,Z),0)}})};
FT2=function(W,P,x){var I,O,B,Y,K;return _.y(function(Z){switch(Z.nextAddress){case 1:return _.S(Z,f1O(W),2);case 2:return I=Z.yieldResult,_.S(Z,RVO(W,x),3);case 3:return _.S(Z,f1O(W),4);case 4:return O=Z.yieldResult,B=O!==I,_.S(Z,NcQ(W),5);case 5:Y=Z.yieldResult&&!_.p("kevlar_modern_downloads_page");if((K=!O&&!Y)||B)return _.S(Z,P.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);Z.jumpTo(0)}})};
k19=function(){var W=_.FY().resolve(_.RF),P;_.y(function(x){switch(x.nextAddress){case 1:return _.S(x,W.JSC$16024_playerApiPromise,2);case 2:P=x.yieldResult;if(!_.p("kevlar_force_refresh_smart_downloads")){x.jumpTo(3);break}return _.S(x,P.refreshAllStaleEntities(0),4);case 4:return x.return();case 3:return _.S(x,P.refreshAllStaleEntities(),5);case 5:return _.S(x,FT2(W,P),0)}})};
iL3=function(W,P){var x,I;_.y(function(O){switch(O.nextAddress){case 1:return _.S(O,W.JSC$16024_playerApiPromise,2);case 2:x=O.yieldResult;switch((I=P)==null?void 0:I.settingItemId){case "SMART_DOWNLOADS_ENABLED":return O.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return O.jumpTo(4)}O.jumpTo(0);break;case 3:return _.S(O,FT2(W,x,P),6);case 6:O.jumpTo(0);break;case 4:return _.S(O,it3(W,P),7);case 7:O.jumpTo(0)}})};
q2G=function(W,P){var x,I,O;return _.y(function(B){if(B.nextAddress==1)return _.S(B,W.JSC$16024_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3){x=B.yieldResult;if(!x)return _.ge(new _.mW("PES is undefined")),B.return(!1);if(!P)return B.return(!1);I=_.On(P,"mainVideoEntity");return _.S(B,WT6(x,I,"mainVideoEntity"),3)}O=B.yieldResult;return B.return(O!==void 0)})};
F7L=function(W){var P=_.FY().resolve(_.RF),x,I,O,B,Y,K,Z,d,v,m,t;_.y(function(C){switch(C.nextAddress){case 1:return _.S(C,P.JSC$16024_playerApiPromise,2);case 2:x=C.yieldResult;O=(I=W)==null?void 0:I.actions;if(!O)return C.return();B=_.n(O);Y=B.next();case 3:if(Y.done){C.jumpTo(0);break}K=Y.value;d=Z=void 0;if(!(((Z=K)==null?0:Z.entityKey)&&((d=K)==null?0:d.actionType))){C.jumpTo(4);break}v=_.Pu(K.entityKey);m=v.entityId;t=v.entityType;return _.S(C,x.queueOfflineAction(m,t,K.actionType),4);case 4:Y=
B.next(),C.jumpTo(3)}})};
LTd=function(W,P){var x,I,O,B,Y;return _.y(function(K){if(K.nextAddress==1)return _.S(K,W.JSC$16024_prefStorage,2);if(K.nextAddress!=3)return(x=K.yieldResult)?_.S(K,x.get("psi"),3):K.return();I=K.yieldResult;Y={isPaused:P,lastSyncTimestamp:(B=(O=I)==null?void 0:O.lastSyncTimestamp)!=null?B:"0"};return _.S(K,x.set("psi",Y),0)})};
Wr6=function(W){var P=_.FY().resolve(_.RF),x,I,O,B,Y,K,Z,d;return _.y(function(v){switch(v.nextAddress){case 1:return _.S(v,P.JSC$16024_playerApiPromise,2);case 2:x=v.yieldResult;O=((I=W)==null?void 0:I.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((K=W)==null?void 0:K.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":B="!*$_ALL_ENTITIES_!*$";Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return v.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return v.jumpTo(4)}v.jumpTo(5);break;case 3:return _.S(v,LTd(P,O),6);case 6:v.jumpTo(5);break;case 4:return _.S(v,q2G(P,(Z=W)==null?void 0:Z.videoId),7);case 7:v.yieldResult&&(B=(d=W)==null?void 0:d.videoId,Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");v.jumpTo(5);break;case 5:if(B&&Y)return _.S(v,x.queueOfflineAction(B,"videoPlaybackPositionEntity",Y),0);v.jumpTo(0)}})};
WQB=function(W,P){var x;P!==1||((x=W.currentPersistentToast)==null?0:x.isOpened())?W.openToast():W.currentPersistentToast=void 0};
Phf=function(){var W,P,x,I;return _.y(function(O){if(O.nextAddress==1)return W=navigator,(P=W.storage)!=null&&P.persisted?_.S(O,(x=W.storage)==null?void 0:x.persisted(),2):O.return("PERSISTED_STATE_NOT_SUPPORTED");I=O.yieldResult;return O.return(I?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
xxf=function(){var W,P,x,I;return _.y(function(O){if(O.nextAddress==1)return W=navigator,(P=W.storage)!=null&&P.persist?_.S(O,(x=W.storage)==null?void 0:x.persist(),2):O.return("PERSISTED_STATE_NOT_SUPPORTED");I=O.yieldResult;return O.return(I?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
IhO=function(){var W,P;return _.y(function(x){switch(x.nextAddress){case 1:return W="PERSISTED_STATE_NOT_SUPPORTED",_.OT(x,2),_.S(x,Phf(),4);case 4:W=x.yieldResult;if(W!=="PERSISTED_STATE_NOT_GRANTED"){x.jumpTo(5);break}return _.S(x,xxf(),6);case 6:W=x.yieldResult;case 5:_.ci(x,3);break;case 2:P=_.yn(x),P instanceof Error&&_.G$(P);case 3:return _.Ay("persistentStorageStateChecked",{persistedState:W}),x.return(W)}})};
OEM=function(W,P){var x=[],I=!1;P=_.n(P);for(var O=P.next();!O.done;O=P.next()){O=W.moduleRegistry[O.value];var B=void 0,Y=void 0;((B=O)==null?0:B.isFetching)&&((Y=O)==null?0:Y.resolver)?(x.push(O.resolver.promise),I=!0):(O=new _.If,O.resolve(void 0),x.push(O.promise))}return I?Promise.all(x):void 0};
Jdd=function(W,P,x){x=x===void 0?{}:x;var I=W.defaultViewTransitionOptions,O=P.map(function(Y){return Y.beforeTransition}),B=P.map(function(Y){return Y.afterTransition});
return Object.assign({},I,x,{beforeTransition:function(){var Y;(Y=I.beforeTransition)==null||Y.call(I);var K,Z;(Z=(K=x).beforeTransition)==null||Z.call(K);Y=_.n(O);for(K=Y.next();!K.done;K=Y.next())K=K.value,K()},
afterTransition:function(){var Y;(Y=I.afterTransition)==null||Y.call(I);var K,Z;(Z=(K=x).afterTransition)==null||Z.call(K);Y=_.n(B);for(K=Y.next();!K.done;K=Y.next())K=K.value,K()}})};
BLy=function(W,P,x){var I,O,B,Y,K,Z,d;_.y(function(v){if(W.config.disableAllTransitions)return v.return(P());if((I=x)==null||!I.transitionName)return v.return(_.KJ3(P,(O=x)==null?void 0:O.viewTransitionOptions));B=x;Y=B.transitionName;K=B.viewTransitionOptions;Z=W.config.transitionConfigs.get(Y);if(!Z)return v.return(P());var m;d=(m=W.transitionTasksMap.get(Y))!=null?m:[];return v.return(_.KJ3(P,Jdd(Z,d,K)))})};
FE=function(W,P,x){W.transitionTasksMap.has(P)?W.transitionTasksMap.get(P).push(x):(W=new _.mW("Transition task registered for unknown transition name",P),_.G$(W))};
nCv=function(W,P,x){if(W.isInitialized()){var I=xp(x),O=I==="watch";I=I==="shorts";var B=xp(P)==="watch";if(O)B||(W.backgroundPageData=P),W.watchPipMode&&B||W.deactivate(x.endpoint);else if(I){if(xp(P)!=="shorts"){var Y;(Y=W.getPlayerElement())==null||Y.pause()}}else B&&!W.watchPipMode&&(l82(P,x)?(W.watchWhileMode&&_.oHy(W,!1),_.B9d(W,P)):W.isMiniplayerActive()&&W.watchWhileMode&&W.deactivate());B&&_.uVM(W);W.shortsPipMode&&!I&&(window.focus(),W.deactivate());if(W.pictureInPictureEnabled())if(I&&
W.shortsPipEnabled||O&&W.watchPipEnabled)_.XjC(W.handleMediaSessionPipActivation);else if(!W.isMiniplayerActive()&&(W.shortsPipEnabled||W.watchPipEnabled)&&window.documentPictureInPicture&&_.DA()&&_.Zmt("Chromium")>=120){W=_.UPd().mediaSession;try{W.setActionHandler("enterpictureinpicture",null)}catch(K){}}}};
Y4G=function(W,P){var x,I;_.y(function(O){if(O.nextAddress==1){if(!W||!W.navigationEndpoint)return O.return();_.ug().lockupActivation=!0;var B;P?B=_.bx(_.KK("QUEUE",void 0,"Queue")):B=W.longBylineText;I=(x=B)&&W.title?{miniplayerTitle:W.title,miniplayerSubtitle:x,playlistData:null}:void 0;return _.S(O,_.syk(_.FY().resolve(_.kc),W.navigationEndpoint,!0,I),2)}_.ug().userActivation=!0;_.Kl(O)})};
iKm=function(W,P){var x,I,O,B,Y,K;_.y(function(Z){if(Z.nextAddress==1){x=_.Q(P,_.s_i);if(!x||!x.listId)return Z.return();W.index=x.index||W.index||0;I=W.response&&W.response.playingVideoId||void 0;return _.S(Z,_.b7b(W.JSC$10705_playlistNetworkManager,x.listId,W.index,I),2)}O=Z.yieldResult;if(!O)return Z.return();B=O.playlistId;Y=O.playlistPanelRenderer;!W.queueProxy&&B&&Y&&B.startsWith("TLPQ")&&(W.queueProxy=new _.Df(W.JSC$10705_playlistNetworkManager,B,W.setPlaylistData.bind(W),W.clearQueue.bind(W),
_.Y3o(Y),W.storage));if(x.openMiniplayer&&(K=_.yem(Y))&&!W.pageManager.isOnWatch()){var d=K,v=x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";W.isMiniplayerActive()?W.openToast(d):Y4G(d,v)}W.setPlaylistData(B,Y,O.autoplayRenderer);_.Kl(Z)})};
lEd=function(W,P){var x=_.am();x.index===void 0&&(x.index=0);x.temporaryItems.push.apply(x.temporaryItems,_.ju(W));if((P.videoId||P.videoIds)&&x.index!==void 0&&P.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!x.queueProxy){var I=[];if(x.response){var O=_.FY().resolve(_.kc).isMiniplayerActive();if(x.response.playlistPanelRenderer&&x.response.playlistId&&!x.response.playlistId.startsWith("TLPQ")){if(x.pageManager.isOnWatch()||O)I=_.Y3o(x.response.playlistPanelRenderer)}else x.response.playingVideoId&&
!P.openMiniplayer?I.push(x.response.playingVideoId):O&&x.response.playingVideoId&&P.openMiniplayer&&I.push(x.response.playingVideoId)}x.queueProxy=new _.Df(x.JSC$10705_playlistNetworkManager,"",x.setPlaylistData.bind(x),x.clearQueue.bind(x),I,x.storage);x.queueProxy.JSC$10651_setCurrentIndex(x.index)}x.queueProxy.addVideos(P.videoIds||[P.videoId],P)}I19(x,W);x.response&&_.bg(x,_.kP(x,x.response.autoplayRenderer));x.pageManager.isOnWatch()?x.isMiniplayerActive()&&x.openToast(W[0]):(W=W[0],P=P.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",x.isMiniplayerActive()?x.openToast(W):Y4G(W,P))};
ydd=function(W){var P=_.u3(W);if(P=="object"||P=="array"){if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);P=P=="array"?[]:{};for(var x in W)P[x]=ydd(W[x]);return P}return W};
Ss=function(W,P){return _.imS(_.mS(W,P,void 0,_.vI))};
uK=function(W,P){return _.C2(_.mS(W,P,void 0,_.vI))};
ds=function(W,P){return _.ulo(_.mS(W,P,void 0,_.vI))};
ss=function(W,P){return _.mS(W,P,void 0,_.vI,_.K2)};
KQ4=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;_.Tk(P,x,_.b9(W.decoder_,_.IG));return!0},_.q5,_.fW);
ZEB=_.lI(function(W,P,x,I){if(W.nextWireType_!==0)return!1;_.Qo(P,x,I,_.b9(W.decoder_,_.IG));return!0},_.q5,_.fW);
oC4=_.lI(function(W,P,x){if(W.nextWireType_!==1)return!1;var I=W.decoder_;W=_.X0(I);I=_.X0(I);W=_.Py(W,I);_.Tk(P,x,W);return!0},_.lBS,_.eBm);
S4G=_.lI(function(W,P,x){if(W.nextWireType_!==5)return!1;_.Tk(P,x,_.X0(W.decoder_));return!0},function(W,P,x){P=_.A9(P);
P!=null&&(_.iI(W,x,5),_.F5(W.encoder_,P))},_.HuR);
u_2=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;W=_.duC(W.decoder_);_.Tk(P,x,W===!1?void 0:W);return!0},_.TMo,_.M0A);
dxL=_.lI(function(W,P,x){if(W.nextWireType_!==2)return!1;W=_.pDG(W);_.Tk(P,x,W===""?void 0:W);return!0},_.i2t,_.$ut);
sP4=_.lI(function(W,P,x){if(W.nextWireType_!==2)return!1;W=_.jgt(W);_.Tk(P,x,W===_.ki()?void 0:W);return!0},_.qvo,_.buG);
vCO=_.c9x(function(W,P,x){if(W.nextWireType_!==0&&W.nextWireType_!==2)return!1;P=_.Gk(P,P[_.Ec]|0,x);W.nextWireType_==2?_.Qg7(W,Mdf,P):P.push(_.k5(W.decoder_));return!0},function(W,P,x){P=_.eQG(_.C2,P,!0);
if(P!=null&&P.length){x=_.Svd(W,x);for(var I=0;I<P.length;I++)_.Xy8(W.encoder_,P[I]);_.u6R(W,x)}},_.k87);
mxf=_.lI(function(W,P,x){if(W.nextWireType_!==0)return!1;W=_.k5(W.decoder_);_.Tk(P,x,W===0?void 0:W);return!0},_.LO8,_.k87);
Vym=_.lI(function(W,P,x,I){if(W.nextWireType_!==0)return!1;_.Qo(P,x,I,_.k5(W.decoder_));return!0},_.LO8,_.k87);
_.U0=function(W){this.privateDoNotAccessOrElseWrappedStyleSheet=W};
_.U0.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var I54=function(W,P){return new _.Al(W.x+P.x,W.y+P.y)},ty4=function(W){return W.previousElementSibling!==void 0?W.previousElementSibling:_.l3i(W.previousSibling,!1)},pF9=function(W,P){var x=[];
for(P=P||0;P<W.length;P+=2)_.hQp(W[P],W[P+1],x);return x.join("&")},jPG=function(W,P){var x=arguments.length==2?pF9(arguments[1],0):pF9(arguments,1);
return _.wyl(W,x)},QPO=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(QPO,_.aK);QPO.prototype.getValue=function(){var W=_.mS(this,2);if(Array.isArray(W)||W instanceof _.aK)throw Error("aa");return _.pW(this,2)};
var jim=function(){var W=_.LR();this.JSC$7819_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.xj("channel_type"))};
jim.prototype.increment=function(W){this.JSC$7819_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",W)};
var Qi4=function(){var W=_.LR();this.JSC$7822_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.xj("channel_type"))};
Qi4.prototype.increment=function(W){this.JSC$7822_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",W)};
var A1B=function(){var W=_.LR();this.JSC$7825_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.xj("channel_type"))};
A1B.prototype.increment=function(W){this.JSC$7825_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",W)};
var COf=function(){var W=_.LR();this.JSC$7828_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
COf.prototype.increment=function(){this.JSC$7828_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var z32=function(){var W=_.LR();this.JSC$7831_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.xj("channel_type"),_.xj("error_type"))};
z32.prototype.increment=function(W,P){this.JSC$7831_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",W,P)};
var G7m=function(){var W=_.LR();this.JSC$7834_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
G7m.prototype.increment=function(){this.JSC$7834_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Ea2=function(){var W=_.LR();this.JSC$7837_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Ea2.prototype.increment=function(){this.JSC$7837_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var Vd2=function(){var W=_.LR();this.JSC$7843_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
Vd2.prototype.increment=function(){this.JSC$7843_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ChB=function(W){return W.getCount&&typeof W.getCount=="function"?W.getCount():_.xi(W)||typeof W==="string"?W.length:_.jU.getCount(W)},Adm=function(W,P){if(typeof W.every=="function")return W.every(P,void 0);
if(_.xi(W)||typeof W==="string")return Array.prototype.every.call(W,P,void 0);for(var x=_.Ejm(W),I=_.R1(W),O=I.length,B=0;B<O;B++)if(!P.call(void 0,I[B],x&&x[B],W))return!1;return!0},zWB=function(W,P,x,I){var O=new _.Xu(null);
W&&_.FM(O,W);P&&_.qm(O,P);x&&_.LA(O,x);I&&_.WL(O,I);return O},G4O=function(){var W=_.MM&&_.dS(_.kOb,10)>=0,P;
if(P=_.gSU)P=_.dS(_.bXM,10)>=0;var x=_.u9&&_.dS(_.kOb,85)>=0;return _.KW||W||P||x},EC3=function(W){var P=_.u6P(W);
return P&&G4O()?-W.scrollLeft:P&&_.Mp(W,"overflowX")!="visible"?W.scrollWidth-W.clientWidth-W.scrollLeft:W.scrollLeft},gC9=function(W,P){P=Math.max(P,0);
_.u6P(W)?G4O()?W.scrollLeft=-P:W.scrollLeft=W.scrollWidth-P-W.clientWidth:W.scrollLeft=P},nN4=0,oNL=!1;
OE.prototype.set=function(W){this.relativeTimeStart_=W};
OE.prototype.reset=function(){this.set(_.O1())};
OE.prototype.get=function(){return this.relativeTimeStart_};
var DxO=null,My3=function(){DxO||(DxO=new OE)},$x6=function(){DxO||(DxO=new OE)};
_.J8($x6,My3);_.J=uGd.prototype;_.J.JSC$9161_buffer_="";_.J.set=function(W){this.JSC$9161_buffer_=""+W};
_.J.append=function(W,P,x){this.JSC$9161_buffer_+=String(W);if(P!=null)for(var I=1;I<arguments.length;I++)this.JSC$9161_buffer_+=arguments[I];return this};
_.J.clear=function(){this.JSC$9161_buffer_=""};
_.J.getLength=function(){return this.JSC$9161_buffer_.length};
_.J.toString=function(){return this.JSC$9161_buffer_};
var wFy=function(){var W={type:"unit",style:"narrow"};this.listType_=W&&W.type?W.type:"conjunction";this.listStyle_=W&&W.style?W.style:"long";this.listSymbols_=ae6;W=0;switch(this.listStyle_){case "short":W=1;break;case "narrow":W=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[W];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[W];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=
this.listSymbols_.AND_END[W];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[W];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[W];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=this.listSymbols_.OR_END[W];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[W],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[W],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[W],this.listEndPattern_=this.listSymbols_.UNIT_END[W]}};
wFy.prototype.format=function(W){return hWd(this,W)};
var hWd=function(W,P){var x=P.length;switch(x){case 0:return"";case 1:return String(P[0]);case 2:return W.listTwoPattern_.replace("{0}",String(P[0])).replace("{1}",String(P[1]))}for(var I=W.listStartPattern_.replace("{0}",String(P[0])).replace("{1}",String(P[1])),O=2;O<x-1;++O)I=W.listMiddlePattern_.replace("{0}",I).replace("{1}",String(P[O]));return W.listEndPattern_.replace("{0}",I).replace("{1}",String(P[x-1]))},DtG=function(){var W={style:1};
this.style_=(W==null?void 0:W.style)||0;this.durationSymbols_=_.uKw||_.p5c},HEf=function(W,P){switch(P){default:case "years":return W.durationSymbols_.YEAR;
case "months":return W.durationSymbols_.MONTH;case "weeks":return W.durationSymbols_.WEEK;case "days":return W.durationSymbols_.DAY;case "hours":return W.durationSymbols_.HOUR;case "minutes":return W.durationSymbols_.MINUTE;case "seconds":return W.durationSymbols_.SECOND}},v$=function(W,P,x){a:{x=HEf(W,x);
switch(W.style_){case 1:if(x.LONG!=void 0){W=x.LONG;break a}case 2:if(x.NARROW!=void 0){W=x.NARROW;break a}default:W=x.SHORT;break a}W=void 0}return W?(new _.fzW("{DURATION_VALUE,plural,"+W+"}")).format({DURATION_VALUE:P}):""};
DtG.prototype.format=function(W){var P=[],x=W.years,I=W.months,O=W.weeks,B=W.days,Y=W.hours,K=W.minutes;W=W.seconds;x!=null&&P.push(v$(this,x,"years"));I!=null&&P.push(v$(this,I,"months"));O!=null&&P.push(v$(this,O,"weeks"));B!=null&&P.push(v$(this,B,"days"));Y!=null&&P.push(v$(this,Y,"hours"));K!=null&&P.push(v$(this,K,"minutes"));W!=null&&P.push(v$(this,W,"seconds"));return(new wFy).format(P)};
var eWv=!1,pPf=function(W){_.Wd.call(this,W.message||W.description||W.name);this.isMissing=W instanceof JO;this.isTimeout=W instanceof _.lf&&W.errorCode=="net.timeout";this.isCanceled=W instanceof _.Rq};
_.A(pPf,_.Wd);pPf.prototype.name="BiscottiError";var JO=function(){_.Wd.call(this,"Biscotti ID is missing from server")};
_.A(JO,_.Wd);JO.prototype.name="BiscottiMissingError";var BS=null,eSf=function(){try{var W=_.eL("yt.ads.biscotti.getId_");return W?W():Wp3()}catch(P){return _.s2(P)}},gNM,cd3=function(W){return _.LK({type:"SET_GUIDE_IS_EXPANDED",
payload:W})},ah4=function(W){return _.LK({type:"SET_ONLINE_STATUS",
payload:W})},bEB=function(W,P){return _.LK({type:"SET_TRANSCRIPTION_STATE",
payload:{high:W,low:P}})},k44=function(W){return _.LK({type:"SET_OVERLAY_STATE",
payload:W})},Uxf=0,XF2=function(W,P,x){var I=this;
this.priority=P;this.delay=x;this.jobId=0;this.completionCallback=_.me;this.wrappedJob=function(){W();I.completionCallback()};
this.id=++Uxf};
XF2.prototype.enqueue=function(W){this.completionCallback=W;this.jobId=_.Gr.addJob(this.wrappedJob,this.priority,this.delay)};
var m$=function(){_.xU.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.A(m$,_.xU);m$.prototype.addJob=function(W,P,x){W=new XF2(W,P,x);this.taskIdToTask.set(W.id,W);this.isActive?fhy(this,W):this.suspendedTasks.add(W);return W.id};
var fhy=function(W,P){W.scheduledTasks.add(P);P.enqueue(function(){W.scheduledTasks.delete(P)})};
m$.prototype.cancelJob=function(W){(W=this.taskIdToTask.get(W))&&(this.scheduledTasks.delete(W)?_.Gr.cancelJob(W.jobId):this.suspendedTasks.delete(W))};
m$.prototype.pause=function(){var W=this;this.isActive=!1;this.scheduledTasks.forEach(function(P){_.Gr.cancelJob(P.jobId);W.suspendedTasks.add(P)});
this.scheduledTasks.clear()};
m$.prototype.start=function(){var W=this;this.isActive=!0;this.suspendedTasks.forEach(function(P){fhy(W,P)});
this.suspendedTasks.clear()};
m$.prototype.reset=function(){this.scheduledTasks.forEach(function(W){_.Gr.cancelJob(W.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var VF=function(W,P){this.JSC$10835_networkService_=W;this.pageRequestPromise=P};
VF.prototype.fetchData=function(W){NL2(this,this.JSC$10835_networkService_.fetchData(W))};
VF.prototype.postData=function(W,P){NL2(this,this.JSC$10835_networkService_.postData(W,P))};
VF.prototype.requestDataForServiceEndpoint=function(W,P){NL2(this,this.JSC$10835_networkService_.requestDataForServiceEndpoint(W,P))};
var NL2=function(W,P){P.then(W.pageRequestPromise.onSuccess,W.pageRequestPromise.onFailure,W.pageRequestPromise)};
VF.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var tD=function(W){this.buildNetworkRequest_=W;this.pendingRequests_=new Set};
tD.prototype.reset=function(){this.pendingRequests_.forEach(function(W){W.cancel()});
this.pendingRequests_.clear()};
tD.prototype.fetchData=function(W){var P=lhM(this);P.fetchData(W);return P.pageRequestPromise};
tD.prototype.postData=function(W,P){var x=lhM(this);x.postData(W,P);return x.pageRequestPromise};
tD.prototype.requestDataForServiceEndpoint=function(W,P){var x=lhM(this);x.requestDataForServiceEndpoint(W,P);return x.pageRequestPromise};
var lhM=function(W){var P=W.buildNetworkRequest_();W.pendingRequests_.add(P);var x=function(){W.pendingRequests_.delete(P)};
P.pageRequestPromise.then(x,x);return P},TLv=function(W){var P=new m$;
this.JSC$10842_networkService_=W;this.JSC$10842_taskManager_=P;this.JSC$10842_networkManager_=new tD(this.networkRequestFactory_.bind(this))};
_.J=TLv.prototype;_.J.networkRequestFactory_=function(){return new VF(this.JSC$10842_networkService_,new _.Wv(this.JSC$10842_taskManager_))};
_.J.reset=function(){this.JSC$10842_taskManager_.reset();this.JSC$10842_networkManager_.reset()};
_.J.start=function(){this.JSC$10842_taskManager_.start()};
_.J.pause=function(){this.JSC$10842_taskManager_.pause()};
_.J.getTaskManager=function(){return this.JSC$10842_taskManager_};
_.J.getNetworkManager=function(){return this.JSC$10842_networkManager_};
var HD6=null,aq4=[],n8=0,y8=0,Yp=null,rdM=function(){var W=(0,_.gJ3)();W&&knM(W,W.mechanism.__iterator__(!0))},ZY=function(W){this.token=W};
ZY.getInstance=function(){var W;return _.y(function(P){if(P.nextAddress==1)return _.S(P,_.TM(),2);W=P.yieldResult;if(!W)return P.return();ZY.instance||(ZY.instance=new ZY(W));return P.return(ZY.instance)})};
var N3G=function(W){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,UtQ(W.token),2);P=x.yieldResult;return x.return(P.clear("resource-manifest-assets"))})},K8=function(W){this.token=W};
K8.getInstance=function(){var W;return _.y(function(P){if(P.nextAddress==1)return _.S(P,_.TM(),2);W=P.yieldResult;if(!W)return P.return();K8.instance||(K8.instance=new K8(W));return P.return(K8.instance)})};
var XP9=function(W){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,UtQ(W.token),2);P=x.yieldResult;return _.S(x,P.clear("auth"),0)})},iEG=!1,oU=null,Oa2=void 0,SAB=!1,RWM=function(W){_.Wd.call(this,W)};
_.A(RWM,_.CKz);var SLf=function(){var W=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return W?parseInt(W[1],10):0},FQd=function(W){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+W)!=-1||document.currentScript.src.indexOf("&"+W)!=-1)},q4M=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},mUv=function(W){W.length?LQ4(W.shift(),function(){mUv(W)}):dUM()},tI2=function(W){return"chrome-extension://"+W+"/cast_sender.js"},LQ4=function(W,
P,x){var I=document.createElement("script");
I.onerror=P;x&&(I.onload=x);_.c6(I,_.tz(W));(document.head||document.documentElement).appendChild(I)},WG9=function(){var W=SLf(),P=[];
if(W>1){var x=W-1;P.push("//www.gstatic.com/eureka/clank/"+W+"/cast_sender.js");P.push("//www.gstatic.com/eureka/clank/"+x+"/cast_sender.js")}return P},dUM=function(){var W=q4M();
W&&W(!1,"No cast extension found")},v6O=function(){if(Pr9){var W=2,P=q4M(),x=function(){W--;
W==0&&P&&P(!0)};
window.__onGCastApiAvailable=x;LQ4("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",dUM,x)}},uB9=function(){v6O();
var W=WG9();W.push("//www.gstatic.com/eureka/clank/cast_sender.js");mUv(W)},suG=function(){v6O();
var W=WG9();W.push.apply(W,_.ju(VIf.map(tI2)));W.push("//www.gstatic.com/eureka/clank/cast_sender.js");mUv(W)},Pr9=FQd("loadCastFramework")||FQd("loadCastApplicationFramework"),VIf=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var xIy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(xIy,_.aK);var IZd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(IZd,_.aK);var OCQ=function(){var W=new IZd;return _.cI(W,1,3)};var py=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(py,_.aK);var YSd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(YSd,_.aK);var Jpm=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Jpm,_.aK);Jpm.prototype.getToken=function(){return _.MY(this,1)};
Jpm.prototype.setToken=function(W){return _.PX(this,1,W)};
var B7d=function(W){return _.t2(W,3,_.aG,_.qT())},nQv=function(W){return _.t2(W,6,_.aG,_.qT())};var js=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(js,_.aK);js.prototype.getToken=function(){return _.qM(this,Jpm,2)};
js.prototype.setToken=function(W){return _.I$(this,2,W)};
js.prototype.getName=function(){return _.MY(this,6)};
var Bp2=_.P6(js);var nsd=function(W,P,x){this.requestMessage=W;this.methodDescriptor=P;this.metadata=x};
nsd.prototype.getMetadata=function(){return this.metadata};var Yam=function(W,P){P=P===void 0?{}:P;this.responseMessage=W;this.metadata=P;this.status=null};
Yam.prototype.getMetadata=function(){return this.metadata};
Yam.prototype.getStatus=function(){return this.status};var QF=function(W,P,x,I,O){this.name=W;this.methodType="unary";this.requestType=P;this.responseType=x;this.requestSerializeFn=I;this.responseDeserializeFn=O},ypd=function(W,P,x){x=x===void 0?{}:x;
return new nsd(P,W,x)};
QF.prototype.getName=function(){return this.name};var Cy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Cy,_.aK);Cy.prototype.setHeader=function(W){return _.I$(this,1,W)};
Cy.prototype.hasHeader=function(){return _.Vo(this,py,1)};var KG2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(KG2,_.aK);var ZCv=new QF("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Cy,KG2,function(W){return W.serialize()},_.P6(KG2));var AD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(AD,_.aK);AD.prototype.setHeader=function(W){return _.I$(this,1,W)};
AD.prototype.hasHeader=function(){return _.Vo(this,py,1)};var os9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(os9,_.aK);var SaQ=new QF("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",AD,os9,function(W){return W.serialize()},_.P6(os9));var zx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(zx,_.aK);zx.prototype.setHeader=function(W){return _.I$(this,1,W)};
zx.prototype.hasHeader=function(){return _.Vo(this,py,1)};var udy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(udy,_.aK);udy.prototype.getLink=function(){return _.qM(this,js,1)};var dI3=new QF("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",zx,udy,function(W){return W.serialize()},_.P6(udy));var Gx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Gx,_.aK);Gx.prototype.setHeader=function(W){return _.I$(this,1,W)};
Gx.prototype.hasHeader=function(){return _.Vo(this,py,1)};var sSv=new QF("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Gx,js,function(W){return W.serialize()},Bp2);var vsf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(vsf,_.aK);var mId=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(mId,_.aK);mId.prototype.getUrl=function(){return _.MY(this,2)};
mId.prototype.setUrl=function(W){return _.PX(this,2,W)};var VKM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(VKM,_.aK);var tKQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(tKQ,_.aK);var pq2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(pq2,_.aK);var Vkv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Vkv,_.aK);var m1m=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(m1m,_.aK);var jSy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(jSy,_.aK);var zyB=_.P6(jSy);var QS3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(QS3,_.aK);var Es=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Es,_.aK);Es.prototype.setHeader=function(W){return _.I$(this,1,W)};
Es.prototype.hasHeader=function(){return _.Vo(this,py,1)};
Es.prototype.getCompletionUrl=function(){return _.MY(this,6)};
Es.prototype.getDeviceId=function(){return _.MY(this,11)};var Crd=new QF("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Es,jSy,function(W){return W.serialize()},zyB);var Apf=new Set(["SAPISIDHASH","APISIDHASH"]);var z0L=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(z0L,_.aK);z0L.prototype.getMessage=function(){return _.MY(this,2)};
var GSv=_.P6(z0L);var gs=function(W,P){this.xhrNodeReadableStream_=W.nodeReadableStream;this.grpcResponseDeserializeFn_=P;this.JSC$16947_xhr_=W.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16947_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&Esy(this)},h0y=function(W,P){var x=new gsO;
_.uq(W.JSC$16947_xhr_,"complete",function(){if(W.JSC$16947_xhr_.isSuccess()){var I=W.JSC$16947_xhr_.getResponseText();var O;if(O=P)O=W.JSC$16947_xhr_,O.JSC$7701_xhr_&&O.isComplete()?(O=O.JSC$7701_xhr_.getResponseHeader("Content-Type"),O=O===null?void 0:O):O=void 0,O=O==="text/plain";if(O){if(!atob)throw Error("Jj");I=atob(I)}try{var B=W.grpcResponseDeserializeFn_(I)}catch(K){DT(W,Ted(new _.zQ(13,"Error when deserializing response data; error: "+K+(", response: "+I)),x));return}I=_.Lx7(W.JSC$16947_xhr_.getStatus());
DIB(W,MKf(W));I==0?$IQ(W,B):DT(W,Ted(new _.zQ(I,"Xhr succeeded but the status code is not 200"),x))}else{I=W.JSC$16947_xhr_.getResponseText();B=MKf(W);if(I){var Y=wq3(W,I);I=Y.code;O=Y.details;Y=Y.metadata}else I=2,O="Rpc failed due to xhr error. uri: "+String(W.JSC$16947_xhr_.JSC$7701_lastUri_)+", error code: "+W.JSC$16947_xhr_.JSC$7701_lastErrorCode_+", error: "+W.JSC$16947_xhr_.getLastError(),Y=B;DIB(W,B);DT(W,Ted(new _.zQ(I,O,Y),x))}})},Esy=function(W){W.xhrNodeReadableStream_.on("data",function(P){if("1"in
P){var x=P["1"];
try{var I=W.grpcResponseDeserializeFn_(x)}catch(O){DT(W,new _.zQ(13,"Error when deserializing response data; error: "+O+(", response: "+x)))}I&&$IQ(W,I)}if("2"in P)for(P=wq3(W,P["2"]),x=0;x<W.onStatusCallbacks_.length;x++)W.onStatusCallbacks_[x](P)});
W.xhrNodeReadableStream_.on("end",function(){DIB(W,MKf(W));for(var P=0;P<W.onEndCallbacks_.length;P++)W.onEndCallbacks_[P]()});
W.xhrNodeReadableStream_.on("error",function(){if(W.JSC$16947_onErrorCallbacks_.length!=0){var P=W.JSC$16947_xhr_.JSC$7701_lastErrorCode_;P!==0||W.JSC$16947_xhr_.isSuccess()||(P=6);var x=-1;switch(P){case 0:var I=2;break;case 7:I=10;break;case 8:I=4;break;case 6:x=W.JSC$16947_xhr_.getStatus();I=_.Lx7(x);break;default:I=14}DIB(W,MKf(W));P=_.nDZ(P)+", error: "+W.JSC$16947_xhr_.getLastError();x!=-1&&(P+=", http status code: "+x);DT(W,new _.zQ(I,P))}})},MKf=function(W){var P={},x=eoB(W.JSC$16947_xhr_);
Object.keys(x).forEach(function(I){P[I]=x[I]});
return P},wq3=function(W,P){var x=2,I={};
try{var O=GSv(P);x=_.L5(O,1);var B=O.getMessage();_.RQ(O,QPO,3,_.qT()).length&&(I["grpc-web-status-details-bin"]=P)}catch(Y){W.JSC$16947_xhr_&&W.JSC$16947_xhr_.getStatus()===404?(x=5,B="Not Found: "+String(W.JSC$16947_xhr_.JSC$7701_lastUri_)):(x=14,B="Unable to parse RpcStatus: "+Y)}return{code:x,details:B,metadata:I}};
gs.prototype.on=function(W,P){W=="data"?this.onDataCallbacks_.push(P):W=="metadata"?this.onMetadataCallbacks_.push(P):W=="status"?this.onStatusCallbacks_.push(P):W=="end"?this.onEndCallbacks_.push(P):W=="error"&&this.JSC$16947_onErrorCallbacks_.push(P);return this};
var Me=function(W,P){P=W.indexOf(P);P>-1&&W.splice(P,1)};
gs.prototype.removeListener=function(W,P){W=="data"?Me(this.onDataCallbacks_,P):W=="metadata"?Me(this.onMetadataCallbacks_,P):W=="status"?Me(this.onStatusCallbacks_,P):W=="end"?Me(this.onEndCallbacks_,P):W=="error"&&Me(this.JSC$16947_onErrorCallbacks_,P);return this};
gs.prototype.cancel=function(){this.JSC$16947_xhr_.abort()};
var $IQ=function(W,P){for(var x=0;x<W.onDataCallbacks_.length;x++)W.onDataCallbacks_[x](P)},DIB=function(W,P){for(var x=0;x<W.onMetadataCallbacks_.length;x++)W.onMetadataCallbacks_[x](P)},DT=function(W,P){for(var x=0;x<W.JSC$16947_onErrorCallbacks_.length;x++)W.JSC$16947_onErrorCallbacks_[x](P)};
gs.prototype.cancel=gs.prototype.cancel;gs.prototype.removeListener=gs.prototype.removeListener;gs.prototype.on=gs.prototype.on;var gsO=function(){var W=Error.call(this);this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.A(gsO,Error);var $E=function(W){this.JSC$16956_worker_=W.worker||null;this.JSC$16956_streamBinaryChunks_=W.streamBinaryChunks||!1;this.JSC$16956_credentialsMode_=void 0};
_.J8($E,_.P_m);$E.prototype.createInstance=function(){var W=new ws(this.JSC$16956_worker_,this.JSC$16956_streamBinaryChunks_);this.JSC$16956_credentialsMode_&&W.setCredentialsMode(this.JSC$16956_credentialsMode_);return W};
$E.prototype.setCredentialsMode=function(W){this.JSC$16956_credentialsMode_=W};
var ws=function(W,P){_.tW.call(this);this.JSC$16960_worker_=W;this.JSC$16960_streamBinaryChunks_=P;this.JSC$16960_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$16960_responseHeaders_=null;this.JSC$16960_method_="GET";this.JSC$16960_url_="";this.inProgress_=!1;this.JSC$16960_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.J8(ws,_.tW);ws.prototype.open=function(W,P){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16960_method_=W;this.JSC$16960_url_=P;this.readyState=1;hD(this)};
ws.prototype.send=function(W){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var P={headers:this.requestHeaders_,method:this.JSC$16960_method_,credentials:this.JSC$16960_credentialsMode_,cache:void 0};W&&(P.body=W);(this.JSC$16960_worker_||_.xW).fetch(new Request(this.JSC$16960_url_,P)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
ws.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,H$(this));this.readyState=0};
ws.prototype.handleResponse_=function(W){if(this.inProgress_&&(this.fetchResponse_=W,this.JSC$16960_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16960_responseHeaders_=W.headers,this.readyState=2,hD(this)),this.inProgress_&&(this.readyState=3,hD(this),this.inProgress_)))if(this.responseType==="arraybuffer")W.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.xW.ReadableStream!==
"undefined"&&"body"in W){this.currentReader_=W.body.getReader();if(this.JSC$16960_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16960_textDecoder_=new TextDecoder;HC4(this)}else W.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var HC4=function(W){W.currentReader_.read().then(W.handleDataFromStream_.bind(W)).catch(W.handleSendFailure_.bind(W))};
ws.prototype.handleDataFromStream_=function(W){if(this.inProgress_){if(this.JSC$16960_streamBinaryChunks_&&W.value)this.response.push(W.value);else if(!this.JSC$16960_streamBinaryChunks_){var P=W.value?W.value:new Uint8Array(0);if(P=this.JSC$16960_textDecoder_.decode(P,{stream:!W.done}))this.response=this.responseText+=P}W.done?H$(this):hD(this);this.readyState==3&&HC4(this)}};
ws.prototype.handleResponseText_=function(W){this.inProgress_&&(this.response=this.responseText=W,H$(this))};
ws.prototype.handleResponseArrayBuffer_=function(W){this.inProgress_&&(this.response=W,H$(this))};
ws.prototype.handleSendFailure_=function(){this.inProgress_&&H$(this)};
var H$=function(W){W.readyState=4;W.fetchResponse_=null;W.currentReader_=null;W.JSC$16960_textDecoder_=null;hD(W)};
ws.prototype.setRequestHeader=function(W,P){this.requestHeaders_.append(W,P)};
ws.prototype.getResponseHeader=function(W){return this.JSC$16960_responseHeaders_?this.JSC$16960_responseHeaders_.get(W.toLowerCase())||"":""};
ws.prototype.getAllResponseHeaders=function(){if(!this.JSC$16960_responseHeaders_)return"";for(var W=[],P=this.JSC$16960_responseHeaders_.entries(),x=P.next();!x.done;)x=x.value,W.push(x[0]+": "+x[1]),x=P.next();return W.join("\r\n")};
ws.prototype.setCredentialsMode=function(W){this.JSC$16960_credentialsMode_=W};
var hD=function(W){W.onreadystatechange&&W.onreadystatechange.call(W)};
Object.defineProperty(ws.prototype,"withCredentials",{get:function(){return this.JSC$16960_credentialsMode_==="include"},
set:function(W){this.setCredentialsMode(W?"include":"same-origin")}});var e0G=function(W){var P="";_.jU.forEach(W,function(x,I){P+=I;P+=":";P+=x;P+="\r\n"});
return P},cp2=function(W,P,x){if(_.jU.isEmpty(x))return W;
x=e0G(x);if(typeof W==="string")return _.UF(W,_.al(P),x);_.aE(W,P,x);return W};var aZ3=function(){this.isInputValid_=!0;this.JSC$16966_streamPos_=0;this.leftoverInput_=""};
aZ3.prototype.isInputValid=function(){return this.isInputValid_};var dr=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16969_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
dr.prototype.isInputValid=function(){return this.state_!=3};
var es=function(W,P,x,I){W.state_=3;W.errorMessage_="The stream is broken @"+W.JSC$16969_streamPos_+"/"+x+". Error: "+I+". With input:\n"+P;throw Error(W.errorMessage_);};
dr.prototype.acceptsBinaryInput=function(){return!0};
dr.prototype.parse=function(W){function P(Z){Z&128&&es(B,Y,K,"invalid tag");(Z&7)!=2&&es(B,Y,K,"invalid wire type");B.tag_=Z>>>3;B.tag_!=1&&B.tag_!=2&&B.tag_!=15&&es(B,Y,K,"unexpected tag");B.state_=1;B.length_=0;B.countLengthBytes_=0}
function x(Z){B.countLengthBytes_++;B.countLengthBytes_==5&&Z&240&&es(B,Y,K,"message length too long");B.length_|=(Z&127)<<(B.countLengthBytes_-1)*7;Z&128||(B.state_=2,B.countMessageBytes_=0,typeof Uint8Array!=="undefined"?B.messageBuffer_=new Uint8Array(B.length_):B.messageBuffer_=Array(B.length_),B.length_==0&&O())}
function I(Z){B.messageBuffer_[B.countMessageBytes_++]=Z;B.countMessageBytes_==B.length_&&O()}
function O(){if(B.tag_<15){var Z={};Z[B.tag_]=B.messageBuffer_;B.result_.push(Z)}B.state_=0}
for(var B=this,Y=W instanceof Array?W:new Uint8Array(W),K=0;K<Y.length;){switch(B.state_){case 3:es(B,Y,K,"stream already broken");break;case 0:P(Y[K]);break;case 1:x(Y[K]);break;case 2:I(Y[K]);break;default:throw Error("Oj`"+B.state_);}B.JSC$16969_streamPos_++;K++}W=B.result_;B.result_=[];return W.length>0?W:null};var iaM=function(){this.errorMessage_=null;this.JSC$16972_streamPos_=0;this.base64Decoder_=new aZ3;this.pbParser_=new dr};
iaM.prototype.isInputValid=function(){return this.errorMessage_===null};
var bCL=function(W,P,x){W.errorMessage_="The stream is broken @"+W.JSC$16972_streamPos_+". Error: "+x+". With input:\n"+P;throw Error(W.errorMessage_);};
iaM.prototype.acceptsBinaryInput=function(){return!1};
iaM.prototype.parse=function(W){this.errorMessage_!==null&&bCL(this,W,"stream already broken");var P=null;try{var x=this.base64Decoder_;if(!x.isInputValid_)throw x.isInputValid_=!1,Error("Nj`"+x.JSC$16966_streamPos_+"`stream already broken`"+W);x.leftoverInput_+=W;var I=Math.floor(x.leftoverInput_.length/4);if(I==0)var O=null;else{try{var B=_.d9m(x.leftoverInput_.slice(0,I*4))}catch(Z){var Y=x.leftoverInput_,K=Z.message;x.isInputValid_=!1;throw Error("Nj`"+x.JSC$16966_streamPos_+"`"+K+"`"+Y);}x.JSC$16966_streamPos_+=
I*4;x.leftoverInput_=x.leftoverInput_.slice(I*4);O=B}P=O===null?null:this.pbParser_.parse(O)}catch(Z){bCL(this,W,Z.message)}this.JSC$16972_streamPos_+=W.length;return P};var ryG=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16975_streamPos_=0;this.result_=[];this.statusParsed_=!1};
ryG.prototype.isInputValid=function(){return this.errorMessage_===null};
ryG.prototype.acceptsBinaryInput=function(){return!1};
ryG.prototype.parse=function(W){function P(Z){B.state_=6;B.errorMessage_="The stream is broken @"+B.JSC$16975_streamPos_+"/"+Y+". Error: "+Z+". With input:\n";throw Error(B.errorMessage_);}
function x(){B.jsonStreamParser_=new _.Ok({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function I(Z){if(Z)for(var d=0;d<Z.length;d++){var v={};v[1]=Z[d];B.result_.push(v)}}
function O(Z){if(Z){(B.statusParsed_||Z.length>1)&&P("extra status: "+Z);B.statusParsed_=!0;var d={};d[2]=Z[0];B.result_.push(d)}}
for(var B=this,Y=0;Y<W.length;){var K;if(K=B.state_!==2){a:{for(;Y<W.length;){if(!_.In(W[Y])){K=!0;break a}Y++;B.JSC$16975_streamPos_++}K=!1}K=!K}if(K)return null;switch(B.state_){case 6:P("stream already broken");break;case 0:W[Y]==="["?(B.state_=1,Y++,B.JSC$16975_streamPos_++):P("unexpected input token");break;case 1:W[Y]==="["?(B.state_=2,x()):W[Y]===","||W.slice(Y,Y+5)=="null,"?B.state_=3:W[Y]==="]"?(B.state_=5,Y++,B.JSC$16975_streamPos_++):P("unexpected input token");break;case 2:K=B.jsonStreamParser_.parse(W.substring(Y));
I(K);B.jsonStreamParser_.done()?(B.state_=3,K=B.jsonStreamParser_.JSC$9288_buffer_,B.JSC$16975_streamPos_+=W.length-Y-K.length,W=K,Y=0):(B.JSC$16975_streamPos_+=W.length-Y,Y=W.length);break;case 3:W[Y]===","||W.slice(Y,Y+5)=="null,"?(B.state_=4,x(),B.jsonStreamParser_.parse("["),Y+=W[Y]===","?1:5,B.JSC$16975_streamPos_++):W[Y]==="]"&&(B.state_=5,Y++,B.JSC$16975_streamPos_++);break;case 4:K=B.jsonStreamParser_.parse(W.substring(Y));O(K);B.jsonStreamParser_.done()?(B.state_=5,K=B.jsonStreamParser_.JSC$9288_buffer_,
B.JSC$16975_streamPos_+=W.length-Y-K.length,W=K,Y=0):(B.JSC$16975_streamPos_+=W.length-Y,Y=W.length);break;case 5:P("extra input after stream end")}}return B.result_.length>0?(W=B.result_,B.result_=[],W):null};var kSf=function(W){this.JSC$16978_xhr_=W;this.JSC$16978_parser_=null;this.status_=this.JSC$16978_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16978_textDecoder_=null;this.JSC$16978_eventHandler_=new _.q1(this);this.JSC$16978_eventHandler_.listen(this.JSC$16978_xhr_,"readystatechange",this.JSC$16980_readyStateChangeHandler_)},c$=function(W,P){W.status_!=P&&(W.status_=P,W.statusHandler_&&W.statusHandler_())},aB=function(W){W.JSC$16978_eventHandler_.removeAll();
if(W.JSC$16978_xhr_){var P=W.JSC$16978_xhr_;W.JSC$16978_xhr_=null;P.abort();P.dispose()}};
kSf.prototype.getStatus=function(){return this.status_};
kSf.prototype.JSC$16980_readyStateChangeHandler_=function(W){W=W.target;try{if(W==this.JSC$16978_xhr_)a:{var P=_.g0(this.JSC$16978_xhr_),x=this.JSC$16978_xhr_.JSC$7701_lastErrorCode_,I=this.JSC$16978_xhr_.getStatus(),O=this.JSC$16978_xhr_.getResponseText();W=[];if(this.JSC$16978_xhr_.getResponse()instanceof Array){var B=this.JSC$16978_xhr_.getResponse();B.length>0&&B[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,W=B)}if(!(P<3||P==3&&!O&&W.length==0))if(I=I==200||I==206,P==4&&(x==8?c$(this,
7):x==7?c$(this,8):I||c$(this,3)),this.JSC$16978_parser_||(this.JSC$16978_parser_=RU9(this.JSC$16978_xhr_),this.JSC$16978_parser_==null&&c$(this,5)),this.status_>2)aB(this);else{if(W.length>this.JSC$16978_pos_){var Y=W.length;x=[];try{if(this.JSC$16978_parser_.acceptsBinaryInput())for(var K=0;K<Y;K++){var Z=this.JSC$16978_parser_.parse(Array.from(W[K]));Z&&(x=x.concat(Z))}else{Z="";if(!this.JSC$16978_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16978_textDecoder_=new TextDecoder}for(K=
0;K<Y;K++)Z+=this.JSC$16978_textDecoder_.decode(W[K],{stream:P==4&&K==Y-1});x=this.JSC$16978_parser_.parse(Z)}W.splice(0,Y);x&&this.dataHandler_(x)}catch(v){c$(this,5);aB(this);break a}}else if(O.length>this.JSC$16978_pos_){K=O.slice(this.JSC$16978_pos_);this.JSC$16978_pos_=O.length;try{var d=this.JSC$16978_parser_.parse(K);d!=null&&this.dataHandler_&&this.dataHandler_(d)}catch(v){c$(this,5);aB(this);break a}}P==4?(O.length!=0||this.hasStreamingResponseData_?c$(this,2):c$(this,4),aB(this)):c$(this,
1)}}}catch(v){c$(this,6),aB(this)}};var UIy=function(W){W=this.xhrReader_=W;var P=(0,_.mx)(this.onData_,this);W.dataHandler_=P;W=this.xhrReader_;P=(0,_.mx)(this.onStatusChange_,this);W.statusHandler_=P;this.JSC$16982_callbackMap_={};this.callbackOnceMap_={}};
_.J=UIy.prototype;_.J.on=function(W,P){var x=this.JSC$16982_callbackMap_[W];x||(x=[],this.JSC$16982_callbackMap_[W]=x);x.push(P);return this};
_.J.addListener=function(W,P){this.on(W,P);return this};
_.J.removeListener=function(W,P){var x=this.JSC$16982_callbackMap_[W];x&&_.Ft(x,P);(W=this.callbackOnceMap_[W])&&_.Ft(W,P);return this};
_.J.once=function(W,P){var x=this.callbackOnceMap_[W];x||(x=[],this.callbackOnceMap_[W]=x);x.push(P);return this};
_.J.onData_=function(W){var P=this.JSC$16982_callbackMap_.data;P&&Xq4(W,P);(P=this.callbackOnceMap_.data)&&Xq4(W,P);this.callbackOnceMap_.data=[]};
var Xq4=function(W,P){for(var x={},I=0;I<W.length;x={message$jscomp$969:void 0},I++)x.message$jscomp$969=W[I],P.forEach(function(O){return function(B){try{B(O.message$jscomp$969)}catch(Y){}}}(x))};
UIy.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:fZd(this,"readable");break;case 5:case 6:case 4:case 7:case 3:fZd(this,"error");break;case 8:fZd(this,"close");break;case 2:fZd(this,"end")}};
var fZd=function(W,P){var x=W.JSC$16982_callbackMap_[P];x&&x.forEach(function(I){try{I()}catch(O){}});
(x=W.callbackOnceMap_[P])&&x.forEach(function(I){I()});
W.callbackOnceMap_[P]=[]};var Npf=function(){var W={format:"jspb"};W=W===void 0?{}:W;this.suppressCorsPreflight=W.suppressCorsPreflight||_.eL("suppressCorsPreflight",W)||!1;this.withCredentials=W.withCredentials||_.eL("withCredentials",W)||!1;this.streamInterceptors=W.streamInterceptors||[];this.unaryInterceptors=W.unaryInterceptors||[];this.workerScope=W.workerScope;this.chunkedServerStreaming=W.useFetchDownloadStreams||!1},rp2=function(W,P,x,I,O,B){B=B===void 0?{}:B;
var Y=P.substring(0,P.length-O.name.length),K,Z=(K=B)==null?void 0:K.signal;return lZ9(function(d){return new Promise(function(v,m){if(Z==null?0:Z.aborted){var t=new _.zQ(1,"Aborted");t.cause=Z.reason;m(t)}else{var C={},z=Tpd(W,d,Y);z.on("error",function(D){return void m(D)});
z.on("metadata",function(D){C=D});
z.on("data",function(D){var w=C;w=w===void 0?{}:w;v(new Yam(D,w))});
Z&&Z.addEventListener("abort",function(){z.cancel();var D=new _.zQ(1,"Aborted");D.cause=Z.reason;m(D)})}})},W.unaryInterceptors).call(W,ypd(O,x,I)).then(function(d){return d.responseMessage})},bK=function(W,P,x,I,O){var B=B===void 0?{}:B;
return rp2(W,P,x,I,O,B)};
Npf.prototype.serverStreaming=function(W,P,x,I){var O=this,B=W.substring(0,W.length-I.name.length);return iCM(function(Y){var K=Y.methodDescriptor,Z=Y.getMetadata(),d=R0L(O,!1);Z=FG3(O,Z,d,B+K.getName());var v=qam(d,K.responseDeserializeFn,!0);Y=K.requestSerializeFn(Y.requestMessage);d.send(Z,"POST",Y);return v},this.streamInterceptors).call(this,ypd(I,P,x))};
var Tpd=function(W,P,x){var I=P.methodDescriptor,O=P.getMetadata(),B=R0L(W,!0);W=FG3(W,O,B,x+I.getName());x=qam(B,I.responseDeserializeFn,!1);h0y(x,O["X-Goog-Encode-Response-If-Executable"]==="base64");P=I.requestSerializeFn(P.requestMessage);B.send(W,"POST",P);return x},R0L=function(W,P){P=W.chunkedServerStreaming&&!P;
return W.workerScope||P?new _.E7(new $E({worker:W.workerScope,streamBinaryChunks:P})):new _.E7},FG3=function(W,P,x,I){P["Content-Type"]="application/json+protobuf";
P["X-User-Agent"]="grpc-web-javascript/0.1";var O=P.Authorization;if(O&&Apf.has(O.split(" ")[0])||W.withCredentials)x.JSC$7701_withCredentials_=!0;if(W.suppressCorsPreflight)I=cp2(I,"$httpHeaders",P);else for(W=_.n(Object.keys(P)),O=W.next();!O.done;O=W.next())O=O.value,x.headers.set(O,P[O]);return I},qam=function(W,P,x){if(x){x=new kSf(W);
var I=new UIy(x)}return new gs({xhr:W,nodeReadableStream:I},P)},iCM=function(W,P){return P.reduce(function(x,I){return function(O){return I.intercept(O,x)}},W)},lZ9=function(W,P){return P.reduce(function(x,I){return function(O){return I.intercept(O,x)}},W)};var LGB=function(W){this.client_=new Npf;this.hostname_=W==void 0?W:W.replace(/\/+$/,"")};
_.J=LGB.prototype;_.J.JSC$17001_depositGoogleCredential=function(W,P){return bK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",W,P||{},SaQ)};
_.J.deleteLink=function(W,P){return bK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",W,P||{},ZCv)};
_.J.JSC$17001_finishOAuth=function(W,P){return bK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",W,P||{},dI3)};
_.J.getLink=function(W,P){return bK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",W,P||{},sSv)};
_.J.startLinkingSession=function(W,P){return bK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",W,P||{},Crd)};var W0B=[0,u_2,1,vCO,[0,_.i9,[0,dxL,-1]],[0,sP4],[0,mxf,-1]];var P6O=function(){this.storage=new Map},IId=function(W,P,x,I,O){if(!W.storage.has(P))return null;
W=_.n(W.storage.get(P));for(P=W.next();!P.done;P=W.next())if(P=P.value,!O||P.linkName===O)if(x&&P.scopes&&xzM(P.scopes,x)||I&&P.capabilities&&xzM(P.capabilities,I))return P;return null},OoG=function(W,P,x){if(!x)W.storage.delete(P);
else if(W.storage.has(P)){var I=W.storage.get(P).filter(function(O){return O.linkName!==x});
I.length>0?W.storage.set(P,I):W.storage.delete(P)}},xzM=function(W,P){P=_.n(P);
for(var x=P.next();!x.done;x=P.next())if(!W.has(x.value))return!1;return!0};var J39=function(){var W=_.$$("LINK_GAL_DOMAIN");this.alsDomain1p=_.$$("LINK_GAL_DOMAIN");this.alsDomain3p=W;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},Bn4=function(W,P){W.apiKey=P;
return W};
J39.prototype.build=function(){var W={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");W.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");W.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(W.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)W.apiKey=
this.apiKey,W.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");W.oauthToken=this.oauthToken;W.alsDomain=this.alsDomain3p}W.clientXd3=this.clientXd3;W.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(W.authUser=this.authUser);this.bucket!==void 0&&(W.bucket=this.bucket);this.completionUrl!==void 0&&(W.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(W.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(W.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(W.locale=this.locale);W.loggerType=this.loggerType;W.clientEnvironment=this.clientEnvironment;W.colorScheme=this.colorScheme;W.showCloseOption=this.showCloseOption;return W};var sE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(sE,_.aK);var nA3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(nA3,_.aK);var YrM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(YrM,_.aK);var mj=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(mj,_.aK);var y3M=function(W){return _.$5(W,1)};var K0M=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(K0M,_.aK);var INO=_.P6(K0M),vS=[1,2,3,4,5];var LnL=function(W){try{return INO(W)}catch(P){return null}},Zo6=function(){},Why=function(W,P){switch(_.CW(P,vS)){case 4:return(P=_.HI(P,YrM,4,vS))&&W.logStateTransition(_.$5(P,1)),!0;
case 5:return(P=_.HI(P,nA3,5,vS))&&W.logInternalEvent(_.$5(P,1)),!0}return!1},OJ4=function(W){switch(W){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.n2(W)}};var Fny=function(W,P){var x=this;this.validator=W;this.messageListener=P;this.dismissCallback=function(){oA2(x,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17030_receiveMessage=function(I){I.type==="message"&&(I=I.event_,I!==null&&(new URL(x.iframe.src)).origin===I.origin&&x.validator(I.data,I.origin)&&!x.messageListener(I.data)&&(x.JSC$17030_resolveCb!==void 0&&x.JSC$17030_resolveCb(I.data),SrO(x)))}},x1m=function(W,P,x){W.uiHandler!==void 0&&oA2(W,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(I,O){W.JSC$17030_resolveCb=I;W.JSC$17030_rejectCb=O;W.iframe=document.createElement("iframe");_.g9(W.iframe,P);W.uiHandler=x.displayContent(W.iframe,W.dismissCallback);_.uq(window,"message",W.JSC$17030_receiveMessage,!1,W)})},oA2=function(W,P){W.JSC$17030_rejectCb!==void 0&&W.JSC$17030_rejectCb(P);
SrO(W)},SrO=function(W){W.uiHandler!==void 0&&W.uiHandler.hideContent();
_.Vq(window,"message",W.JSC$17030_receiveMessage,!1,W);W.JSC$17030_resolveCb=void 0;W.JSC$17030_rejectCb=void 0;W.uiHandler=void 0;W.iframe=void 0};var uj3=function(W){if(W===2){var P;W=((P=window)==null?0:P.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return W},PVv=function(W){W=uj3(W);
switch(W){case 0:return"light";case 1:return"dark";default:_.n2(W)}};var qA2=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),dz9=function(W,P){this.JSC$17042_linkingSession=W;this.noticeConfig=P;this.displayInfoMap=new Map;var x=new Map;if(_.Vo(this.JSC$17042_linkingSession,VKM,7))for(W=_.qM(this.JSC$17042_linkingSession,VKM,7),W=_.RQ(W,mId,1,_.qT()),W=_.n(W),P=W.next();!P.done;P=W.next())P=P.value,x.set(_.$5(P,1),_.QC7(_.qM(P,_.tRR,3)));if(x.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){P=this.noticeConfig.enabledDataUsageNoticeUis;W=P.has(0)?x.get(1):void 0;P=P.has(1)?x.get(2):void 0;x=W!==void 0&&P!==void 0?x.get(3):void 0;var I=this.noticeConfig.nestedOrigins;var O=new K0M;var B=new sE;O=_.O0(O,2,vS,B);B=new K0M;var Y=new sE;B=_.O0(B,3,vS,Y);Y=[];W!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:W,lastEvent:O,nestedOrigins:I}]),Y.push({trustedUrl:W,lastEvent:O,nestedOrigins:I}));P!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:P,lastEvent:B,nestedOrigins:I}]),Y.push({trustedUrl:P,lastEvent:B,nestedOrigins:I}));x!==void 0?this.displayInfoMap.set(3,[{trustedUrl:x,lastEvent:B,nestedOrigins:I}]):this.displayInfoMap.set(3,Y)}};var sqm=function(W){var P=new P6O;this.galService=W;this.galCache=P};
sqm.prototype.getLink=function(W){var P=W.serviceId;var x=W.scopes;var I=W.capabilities;var O=W.linkName;var B=this,Y;return _.y(function(K){if(I!==void 0&&x!==void 0)throw Error("Uj");Y=IId(B.galCache,P,x,I,O);return Y!==null?K.return(Y):K.return(B.galService.getLink({serviceId:P,sessionId:Math.floor(Math.random()*2147483648),scopes:x,capabilities:I,linkName:O}).then(function(Z){Z=yC6(Z);var d=B.galCache;d.storage.has(P)?d.storage.get(P).push(Z):d.storage.set(P,[Z]);return Z}))})};
sqm.prototype.deleteLink=function(W,P,x){var I=this;return _.y(function(O){OoG(I.galCache,W,x);return O.return(I.galService.deleteLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:P,linkName:x}).then(function(){return!0}))})};var mzd=function(W,P){var x=this;this.validator=W;this.msgHandler=P;this.closedPopupTimeout=this.JSC$17064_rejectCb=this.JSC$17064_resolveCb=this.popup=null;this.JSC$17064_receiveMessage=function(I){if(I!==null&&(I=I.event_,I.source===x.popup)){var O=I.data;if(x.validator(O,I.origin)){var B;(B=x.msgHandler)!=null&&B.call(x,O)||(x.JSC$17064_resolveCb!==null&&x.JSC$17064_resolveCb(O),vAf(x))}}}};
mzd.prototype.open=function(W,P){var x=this;this.popup!==null&&VQy(this);return new Promise(function(I,O){x.JSC$17064_resolveCb=I;x.JSC$17064_rejectCb=O;x.popup=_.ME(window,W,"",P);_.uq(window,"message",x.JSC$17064_receiveMessage,!1,x);tQ9(x)})};
var VQy=function(W,P){W.JSC$17064_rejectCb!==null&&W.JSC$17064_rejectCb(P);vAf(W)},vAf=function(W){W.closedPopupTimeout&&(W.closedPopupTimeout.cancel(),W.closedPopupTimeout=null);
W.popup&&W.popup.close();_.Vq(window,"message",W.JSC$17064_receiveMessage,!1,W);W.popup=null;W.JSC$17064_resolveCb=null;W.JSC$17064_rejectCb=null},tQ9=function(W){W.closedPopupTimeout=_.xid(100).then(function(){W.popup?W.popup.closed?pOL(W):tQ9(W):VQy(W,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},pOL=function(W){W.closedPopupTimeout=_.xid(100).then(function(){VQy(W,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var jqy=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),QqQ=function(W,P,x,I,O,B,Y,K,Z,d){var v=this;this.serviceId=W;this.sessionId=P;this.galService=x;this.oauthDetails=I;this.galLogger=O;this.interactionMode=B;this.redirectServiceUrl=Y;this.consentLanguageKeys=K;this.dynamicUrlParameters=Z;this.partnerConfigMinReadTimestamp=d;this.started=!1;this.JSC$17070_dataValidator=function(m,
t){var C=jqy.has(t);C||v.redirectServiceUrl===void 0||(C=v.redirectServiceUrl===t);return C?m.sentinel==="gdi":!1}};
QqQ.prototype.complete=function(){var W=this,P;return _.y(function(x){if(W.interactionMode!==1)return x.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));P=tO.getRedirectStateFromUri();return P===null?x.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):x.return(C6m(W,P))})};
QqQ.prototype.start=function(){var W=this,P;return _.y(function(x){if(W.started)return x.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.MY(W.oauthDetails,1))return x.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(W.interactionMode===1)return tO.setLocation(_.MY(W.oauthDetails,1)),x.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));W.started=!0;W.galLogger.logStateTransition(5);
P=tO.getPostMessagePopup(W.JSC$17070_dataValidator);return x.return(P.open(_.MY(W.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(I){W.started=!1;var O=W.galLogger;if((I==null?void 0:I.error)!==void 0)throw O.logInternalEvent(59),Error("Vj");if((I==null?void 0:I.redirect_state)===void 0)throw O.logInternalEvent(131),Error("Wj");return C6m(W,I.redirect_state)}).catch(function(I){W.started=
!1;
return I.errorCode!==void 0?{statusCode:I.errorCode,statusMessage:I.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var C6m=function(W,P){return _.y(function(x){return x.return(A3f(W.galService,{serviceId:W.serviceId,sessionId:W.sessionId,dynamicUrlParameters:W.dynamicUrlParameters,redirectState:P,consentLanguageKeys:W.consentLanguageKeys,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp}).then(function(I){var O={statusCode:1,link:yC6(I.getLink())};FWy(_.pW(I,3))!==void 0&&(O.callerState=FWy(_.pW(I,3)));W.galLogger.logInternalEvent(134);return O}))})},tO={getPostMessagePopup:function(W){return new mzd(W)},
getRedirectStateFromUri:function(){var W=_.ea(tO.getLocation()).fragment_;return(new _.OP(W)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(W){_.XV(window.location,_.my(W))},
createOAuthFlow:function(W,P){return new QqQ(W.serviceId,W.sessionId,W.galService,P,W.galLogger,W.interactionMode,W.redirectServiceUrl,W.consentLanguageKeys,W.dynamicUrlParameters,W.partnerConfigMinReadTimestamp)}};var zJd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(zJd,_.aK);var Gam=_.P6(zJd);var EAG=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),gAL=function(W,P,x,I,O,B,Y,K,Z){var d=this;this.serviceId=W;this.sessionId=P;this.galService=x;this.gsiWebFlowDetails=I;this.colorScheme=O;this.showCloseOption=B;this.galLogger=Y;this.interactionMode=K;this.redirectServiceUrl=Z;this.started=!1;this.JSC$17082_dataValidator=function(v,m){var t=EAG.has(m);t||d.redirectServiceUrl===
void 0||(t=d.redirectServiceUrl===m);return t?v.sentinel==="gal":!1};
this.logEventProcessor=function(v){return v.result?(v=LnL(v.result))?Why(d.galLogger,v):!1:!1}};
gAL.prototype.complete=function(){var W=this,P,x;return _.y(function(I){if(W.interactionMode!==1)return I.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));P=p8.getRedirectStateFromUri();if(P===void 0)return W.galLogger.JSC$17022_logErrorEvent(131),I.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return x=DzB(W,P),I.return(MQv(W,x))}catch(O){return I.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
gAL.prototype.start=function(){var W=this,P;return _.y(function(x){if(W.started)return x.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.MY(W.gsiWebFlowDetails,1))return x.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(W.interactionMode===1)return p8.setLocation($z4(W,_.MY(W.gsiWebFlowDetails,1))),x.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
W.started=!0;P=p8.getPostMessagePopup(W.JSC$17082_dataValidator,W.logEventProcessor);return x.return(P.open($z4(W,_.MY(W.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(I){W.started=!1;if((I==null?void 0:I.result)===void 0)throw W.galLogger.JSC$17022_logErrorEvent(131),Error("Wj");I=DzB(W,I.result);return MQv(W,I)}).catch(function(I){W.started=!1;
return I.errorCode!==void 0?{statusCode:I.errorCode,statusMessage:I.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var $z4=function(W,P){W=["result_channel",W.interactionMode===1?"2":"1","color_scheme",PVv(W.colorScheme),"show_close_option",W.showCloseOption];return jPG(P,W)},MQv=function(W,P){if(P!==null&&_.Vo(P,mj,2)){var x,I=P==null?void 0:(x=_.qM(P,mj,2))==null?void 0:_.$5(x,2);
I&&W.galLogger.JSC$17022_logErrorEvent(OJ4(I));return y3M(_.qM(P,mj,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 W.galService.getLink({serviceId:W.serviceId,sessionId:W.sessionId,consistencyKey:_.MY(P,1)}).then(function(O){O=yC6(O);W.galLogger.logInternalEvent(134);return{statusCode:1,link:O}})},DzB=function(W,P){P=Gam(P);
if(!_.Vo(P,mj,2)&&_.MY(P,1)==="")throw W.galLogger.JSC$17022_logErrorEvent(5),Error("Xj");return P},p8={getPostMessagePopup:function(W,P){return new mzd(W,P)},
getRedirectStateFromUri:function(){return _.cn(_.ea(p8.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(W){_.XV(window.location,_.my(W))},
createStreamlinedFlow:function(W,P){return new gAL(W.serviceId,W.sessionId,W.galService,P,W.colorScheme,W.showCloseOption,W.galLogger,W.interactionMode,W.redirectServiceUrl)}};var CVy=function(){var W=_.ji8("GAL");this.storage=W?new _.VO(W):null};var kE=function(){};
_.A(kE,Zo6);kE.prototype.logStateTransition=function(){};
kE.prototype.logInternalEvent=function(){};
kE.prototype.JSC$17022_logErrorEvent=function(){};var wOy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(wOy,_.aK);wOy.prototype.getCompletionUrl=function(){return _.MY(this,15)};var Us=function(W,P,x,I,O,B){this.serviceId=W;this.environment=P;this.sessionId=x;this.colorSchemeSelected=I;this.colorThemeDisplayed=O;this.JSC$17095_transport=B;this.currentState=1};
_.A(Us,Zo6);Us.prototype.logStateTransition=function(W){var P=hJ2(this);P=_.Lj(P,3,this.currentState);P=_.Lj(P,1,W);this.currentState=W;W=H_m(1);this.dispatch(P,W)};
Us.prototype.logInternalEvent=function(W){W=H_m(W);this.dispatch(hJ2(this),W)};
Us.prototype.JSC$17022_logErrorEvent=function(W){var P=hJ2(this);P=_.Lj(P,1,10);W=H_m(W);this.dispatch(P,W)};
var hJ2=function(W){var P=new wOy;P=_.Lj(P,1,W.currentState);P=_.SU(P,7,W.serviceId);var x,I;var O=((x=window)==null?0:(I=x.location)==null?0:I.href)?_.ea(window.location.href).JSC$7933_domain_:"NO_PACKAGE_NAME";x=_.SU(P,8,O);x=_.Lj(x,6,W.environment);x=_.SU(x,5,"100");x=_.Lj(x,11,W.colorSchemeSelected);return _.Lj(x,12,W.colorThemeDisplayed)};
Us.prototype.dispatch=function(W,P){P===void 0&&(P=new _.Yf);var x=P;W=W.serialize();x=_.SU(x,8,W);_.vB(x,12,this.sessionId);this.JSC$17095_transport.dispatch(P)};var HoO=function(W,P){this.loggerType=W;this.sessionIndex=P!=null?P:0},eJ6;
HoO.prototype.create=function(W,P,x,I,O){switch(this.loggerType){case 0:return new kE;case 1:return eJ6||(eJ6=(new _.Bn(555,this.sessionIndex.toString())).build()),new Us(W,P,x,I,O,eJ6);default:_.n2(this.loggerType,"unknown logger type")}};var jr=[6,2,3,1],gQv=new Map([[4,1],[1,6],[2,2],[3,3]]),SS6={statusCode:7,statusMessage:"Failed to create flow object"},jhQ=function(W,P,x,I,O,B,Y,K,Z,d){this.serviceId=W;this.sessionId=P;this.config=x;this.galService=I;this.JSC$17102_linkingSession=O;this.googleScopes=B;this.callerState=Y;this.consentLanguageKeys=K;this.dynamicUrlParameters=Z;this.partnerConfigMinReadTimestamp=d;this.currentFlow=0;I=this.JSC$17102_linkingSession;O=new Set;_.Vo(I,m1m,1)&&O.add(1);_.Vo(I,pq2,2)&&_.Vo(I,Vkv,6)&&O.add(2);
_.Vo(I,tKQ,3)&&_.Vo(I,Vkv,6)&&O.add(3);_.Vo(I,vsf,4)&&O.add(6);this.supportedFlows=O;I=x.loggerType;O=x.clientEnvironment;a:{B=x.colorScheme;switch(B){case 0:B=1;break a;case 1:B=2;break a;case 2:B=3;break a;default:_.n2(B)}B=void 0}a:{Y=x.colorScheme;Y=uj3(Y);switch(Y){case 0:Y=1;break a;case 1:Y=2;break a;default:_.n2(Y)}Y=void 0}this.galLogger=(new HoO(I,x.authUser)).create(W,O,P,B,Y)},aIy=function(W){return new Promise(function(P){var x,I,O,B,Y,K,Z,d,v,m;
return _.y(function(t){switch(t.nextAddress){case 1:x=tkB(W.currentFlow,W.supportedFlows),I=!1,O=new dz9(W.JSC$17102_linkingSession,W.config.dataUsageNoticeConfig);case 2:if(x===void 0){t.jumpTo(4);break}_.OT(t,5);var C=O,z=x,D=void 0;I?z===1&&(D=C.displayInfoMap.get(2)):z===2||z===3?D=C.displayInfoMap.get(1):z===1&&(D=C.displayInfoMap.get(3));B=D?D:[];Y=W.consentLanguageKeys;K=_.n(B);Z=K.next();case 7:if(Z.done)return W.currentFlow=x,_.S(t,d14(c36(W,Y)),11);d=Z.value;return _.S(t,JC6(d,W.config.dataUsageNoticeConfig.uiAdapter,
W.config.colorScheme,W.galLogger),10);case 10:v=t.yieldResult;if(v.statusCode!==1)return ACm(W.serviceId),W.currentFlow=0,P(V8({statusCode:v.statusCode,statusMessage:v.statusMessage},W.callerState)),t.return();v.consentLanguageKeys!==void 0&&(Y=v.consentLanguageKeys);Z=K.next();t.jumpTo(7);break;case 11:m=t.yieldResult;if(m.statusCode!==10)return m.statusCode!==6&&(ACm(W.serviceId),W.currentFlow=0),m.statusCode!==1&&W.callerState!==void 0&&(m.callerState=W.callerState),P(m),t.return();_.ci(t,6);break;
case 5:_.yn(t);case 6:x=tkB(W.currentFlow,W.supportedFlows);I=!0;t.jumpTo(2);break;case 4:ACm(W.serviceId),W.currentFlow=0,P(V8({statusCode:12,statusMessage:"Linking failed"},W.callerState)),_.Kl(t)}})})},GYB=function(W,P,x){W.currentFlow=P;
return shy(c36(W,x)).then(function(I){return I.statusCode===10&&W.config.interactionMode===1&&tkB(W.currentFlow,W.supportedFlows)!==void 0?aIy(W):I})},c36=function(W,P){return{flowParams:{serviceId:W.serviceId,
sessionId:W.sessionId,galService:W.galService,galLogger:W.galLogger,interactionMode:W.config.interactionMode,redirectServiceUrl:W.config.redirectServiceUrl,colorScheme:W.config.colorScheme,consentLanguageKeys:P,dynamicUrlParameters:W.dynamicUrlParameters,showCloseOption:W.config.showCloseOption,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp},currentFlow:W.currentFlow,config:W.config,session:W.JSC$17102_linkingSession,googleScopes:W.googleScopes,callerState:W.callerState}};var bJf=function(W,P){this.config=W;this.galService=P.getService();this.JSC$17115_galRepository=P.JSC$17152_galRepository};
bJf.prototype.getLink=function(W,P){return bo6(this,W,P)};
var bo6=function(W,P,x){return W.JSC$17115_galRepository.getLink({serviceId:P,scopes:void 0,capabilities:void 0,linkName:x}).then(function(I){return{statusCode:1,link:I}}).catch(function(I){return{statusCode:D12(I.code),
statusMessage:I.message}})};
bJf.prototype.deleteLink=function(W,P){return this.JSC$17115_galRepository.deleteLink(W,this.config.accountLinkingEntryPoint,P).then(function(){return{statusCode:1}}).catch(function(x){return{statusCode:D12(x.code),
statusMessage:x.message}})};
bJf.prototype.startLinkingSession=function(W){var P=W.serviceId;var x=W.sessionId;return Qhv({serviceId:P,sessionId:x!==void 0?x:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:W.loginHint,callerState:W.callerState,consentLanguageKeys:W.consentLanguageKeys,linkName:W.linkName,dynamicUrlParameters:W.dynamicUrlParameters,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp})};var MkQ=null,HJy=new WeakMap;var ka9=function(){};
ka9.prototype.send=function(W,P){aNy(W);return this.makeRequest(W).then(function(x){if(P){var I=new P;if(x!=null){if(P==null)throw Error("Zj");new P;throw Error("ak");}x=I}return x})};var Uz3=function(W,P,x,I,O){this.gapiUrl=W;this.gapiKey=P;this.gapiConfigUpdates=x||{};this.gapiAuthParams=I||{};this.defaultApiId=O};
_.A(Uz3,ka9);var fI2=function(W){return wf4().then(function(P){P=P||window.gapi;XOd(W,P);return cCO(P,{apiKey:W.gapiKey,clientId:W.gapiAuthParams.clientId,scope:W.gapiAuthParams.scope,hostedDomain:W.gapiAuthParams.hostedDomain,fetchBasicProfile:W.gapiAuthParams.fetchBasicProfile}).then(function(){return P})})};
Uz3.prototype.makeRequest=function(W){var P=this;return fI2(this).then(function(x){return _.y(function(I){if(I.nextAddress==1)return P.gapiAuthParams.minAuthTokenTimeRemaining===void 0?I.jumpTo(2):_.S(I,eyf(x,P.gapiAuthParams.minAuthTokenTimeRemaining),2);XOd(P,x);return I.return(Nn9(x.client.request({root:P.gapiUrl,path:W.path,method:W.httpMethod,body:W.body,params:W.queryParams,headers:W.headers,authType:W.authType,apiId:W.apiId||P.defaultApiId})))})})};
var Nn9=function(W){return new Promise(function(P,x){W.then(function(I){P(I.result===!1&&I.body!=null?{data:I.body}:I.result)},function(I){x(I.result===!1&&I.body!=null?{data:I.body}:I.result)})})},XOd=function(W,P){for(var x in W.gapiConfigUpdates)if(W.gapiConfigUpdates.hasOwnProperty(x)){var I=P,O=x,B=W.gapiConfigUpdates[x],Y=I.config.get(O);
B!==Y&&I.config.update(O,B)}};
Uz3.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var XQ=function(W,P,x,I,O,B,Y,K){this.apiKey=P;this.authUser=x;this.oauthToken=I;this.bucket=O;this.locale=Y;this.galSdkEventHandler=K;if(I===void 0){if(P===void 0)throw Error("bk");this.requestService=new Uz3(W,P,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":B===void 0||B===!1,"client/xd3":B===!0})}this.galServiceClient=new LGB(W)};
XQ.prototype.deleteLink=function(W){var P=W.serviceId;var x=W.sessionId;var I=W.accountLinkingEntryPoint;var O=W.linkName;var B=this,Y;return _.y(function(K){var Z=(new Cy).setHeader(fy(B,x));var d=lId({serviceId:P,linkName:O});Z=_.I$(Z,2,d);Y=_.cI(Z,3,I);return K.return(B.makeRequest(B.galServiceClient.deleteLink,Y,[1,3],[2,4]))})};
var A3f=function(W,P){var x=P.serviceId;var I=P.sessionId;var O=P.dynamicUrlParameters;var B=P.redirectState;var Y=P.consentLanguageKeys;var K=P.partnerConfigMinReadTimestamp;var Z;return _.y(function(d){var v=(new zx).setHeader(fy(W,I,O));v=_.PX(v,2,x);Z=_.PX(v,4,B);Y!==void 0&&_.PX(Z,5,Y);K!==void 0&&_.I$(Z,6,K);return d.return(W.makeRequest(W.galServiceClient.JSC$17001_finishOAuth,Z,[1,3],[2,4]))})};
XQ.prototype.getLink=function(W){var P=W.serviceId;var x=W.sessionId;var I=W.scopes;var O=W.capabilities;var B=W.consistencyKey;var Y=W.linkName;var K=this,Z;return _.y(function(d){var v=(new Gx).setHeader(fy(K,x)),m=lId({serviceId:P,scopes:I,capabilities:O,linkName:Y});Z=_.I$(v,2,m);B!==void 0&&(v=OCQ(),v=_.PX(v,2,B),_.I$(Z,3,v));return d.return(K.makeRequest(K.galServiceClient.getLink,Z,[1,3],[2,4]))})};
var vQG=function(W,P){var x=P.serviceId;var I=P.sessionId;var O=P.googleScopes;var B=P.consistencyKey;var Y;return _.y(function(K){var Z=(new AD).setHeader(fy(W,I));Z=_.PX(Z,2,x);var d=Array.from(O.values());Z=_.Cx(Z,3,d,_.em);d=OCQ();d=_.PX(d,2,B);Y=_.I$(Z,4,d);return K.return(W.makeRequest(W.galServiceClient.JSC$17001_depositGoogleCredential,Y,[1,3],[2,4]))})};
XQ.prototype.startLinkingSession=function(W){var P=W.serviceId;var x=W.sessionId;var I=W.scopes;var O=W.capabilities;var B=W.loginHint;var Y=W.supportedFlows;var K=W.completionUrl;var Z=W.usePingPong;var d=W.twoWayLinking;var v=W.accountLinkingEntryPoint;var m=W.callerState;var t=W.consentLanguageKeys;var C=W.googleScopes;var z=W.dataUsageNoticeConfig;var D=W.linkName;var w=W.dynamicUrlParameters;var a=W.partnerConfigMinReadTimestamp;var k=this,T,N;return _.y(function(Io){if(O!==void 0&&I!==void 0)throw Error("Uj");
var F=(new Es).setHeader(fy(k,x,w));T=_.PX(F,2,P);D!==void 0&&_.PX(T,14,D);if(O!==void 0){F=T;var nm=Array.from(O.values());_.Cx(F,5,nm,_.em)}else I!==void 0&&(F=T,nm=Array.from(I.values()),_.Cx(F,3,nm,_.em));K!==void 0&&_.PX(T,6,K);Z!==void 0&&_.Cf(T,15,Z);Y!==void 0&&(F=T,nm=Array.from(Y.values()),_.Cx(F,4,nm,_.p2));if(d!==void 0){if(d&&(!C||C.size===0))throw Error("ck");_.Cf(T,8,d)}v!==void 0&&_.cI(T,9,v);B!==void 0&&_.PX(T,13,B);m!==void 0&&(F=T,nm=(new TextEncoder).encode(m),_.A2(F,12,_.Uc(nm,
!1),_.ki()));t!==void 0&&_.PX(T,16,t);a!==void 0&&_.I$(T,18,a);if(z!==void 0&&z.size>0||C!==void 0&&C.size>0)N=new QS3,C!==void 0&&C.size>0&&(F=N,nm=Array.from(C.values()),_.Cx(F,1,nm,_.em)),z!==void 0&&(z.has(0)&&_.n4m(N,2,_.p2,1,_.jm),z.has(1)&&_.n4m(N,2,_.p2,2,_.jm)),_.I$(T,17,N);return Io.return(k.makeRequest(k.galServiceClient.startLinkingSession,T,[1],[2]))})};
XQ.prototype.getMetadata=function(){var W=this,P,x,I;return _.y(function(O){if(O.nextAddress==1)return P={},W.requestService?_.S(O,fI2(W.requestService),3):(P.Authorization="Bearer "+W.oauthToken,O.jumpTo(2));O.nextAddress!=2&&(x=O.yieldResult,P["X-Goog-Api-Key"]=W.apiKey,P["X-Goog-AuthUser"]=W.authUser!==void 0?W.authUser.toString():"0",(I=x.auth.getAuthHeaderValueForFirstParty([]))&&(P.Authorization=I));W.locale&&(P["accept-language"]=W.locale);return O.return(P)})};
XQ.prototype.makeRequest=function(W,P,x,I){var O=this,B;return _.y(function(Y){if(Y.nextAddress==1)return _.S(Y,O.getMetadata(),2);B=Y.yieldResult;TnL(O,x);return Y.return(W.bind(O.galServiceClient)(P,B).finally(function(){TnL(O,I)}))})};
var TnL=function(W,P){W.galSdkEventHandler!==void 0&&P.forEach(function(x){W.galSdkEventHandler.onEvent(x)})},fy=function(W,P,x){var I=new py;
P=_.A2(I,2,_.Qf(P),0);P=_.cI(P,5,3);x=_.Cx(P,8,x,_.em);W.bucket!==void 0&&_.PX(x,1,W.bucket);return x},lId=function(W){var P=W.serviceId;
var x=W.scopes;var I=W.capabilities;W=W.linkName;if(I!==void 0&&x!==void 0)throw Error("Uj");var O=new xIy;P=_.PX(O,1,P);I!==void 0?(x=Array.from(I.values()),_.Cx(P,5,x,_.em)):x!==void 0&&(x=Array.from(x.values()),_.Cx(P,3,x,_.em));W!==void 0&&_.PX(P,6,W);return P};var kYf=function(W){this.galService=new XQ(W.alsDomain,W.apiKey,W.authUser,W.oauthToken,W.bucket,W.clientXd3,W.locale,W.galSdkEventHandler);this.JSC$17152_galRepository=new sqm(this.galService)};
kYf.prototype.getService=function(){return this.galService};var r3y=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(r3y,_.aK);var ioQ=function(W){var P=new r3y;return _.Lj(P,1,W)};
r3y.prototype.setErrorMessage=function(W){return _.SU(this,2,W)};var RJG=[0,_.F0,_.rg,_.F0];var Ne=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Ne,_.aK);var F0Q=[0,[1,2,3],_.Rd,[0,KQ4,S4G,-1],_.Rd,[0,oC4,-1],_.qXR];var qrv=[0,_.l9,1,_.F0,_.rg,-1,1,_.PiA,_.NY,_.F0,-1,F0Q];var L09=[0,_.F0,[0,_.PiA,_.NY,[0,_.rg]],_.Te,[0,_.F0,-1]];var B$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(B$,_.aK);var WfO=[0,_.rg,_.F0,-2,_.l9,_.F0,_.l9,_.F0,-2,1,_.Te];var P4Q=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(P4Q,_.aK);var x$y=[0,_.l9];var IsM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(IsM,_.aK);var OP4=[0,_.F0,L09,x$y,WfO,qrv];var s7M=_.Lx(IsM,OP4);var JM4=[0,W0B];var j7f=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(j7f,_.aK);var Bh6=[0,[1,3],Vym,_.F0,Vym];var Os=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Os,_.aK);var ncf=[0,_.F0];var Ye9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Ye9,_.aK);var JD=function(W){return _.HI(W,r3y,2,IB)},yMO=function(W){var P=new Ye9;
return _.O0(P,2,IB,W)},IB=[1,
2];var KfQ=[0,IB,_.Rd,ncf,_.Rd,RJG,_.i9,Bh6,1,_.F0,JM4];var ZPf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(ZPf,_.aK);var SeB=function(W){var P=new ZPf;return _.O0(P,3,ocm,W)},ocm=[2,
3];var lK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(lK,_.aK);var u33=function(W,P){return _.I$(W,2,P)},d$O=function(W,P){return _.I$(W,8,P)},szO=function(W,P){return _.I$(W,3,P)};var vcO=[0,_.F0,KfQ,OP4,_.ISi,[0,[5,6],[0,_.F0,-2],[0,_.l9,_.F0,_.rg],[0,F0Q],[0,_.rg,_.F0,-1,_.x5k,_.F0],_.Rd,[0,[0,_.l9],_.F0,-1],_.Rd,[0,[3,4],_.F0,-1,_.Rd,[0,[0,_.F0,_.Te]],_.Rd,[0,[0,[0,[1,2],_.Rd,[0],_.Rd,[0]]]]]],_.ISi,-1,[0,ocm,_.F0,_.Rd,ncf,_.Rd,RJG,_.i9,Bh6,[0,W0B]]];var m$O=_.Lx(lK,vcO),V_4=_.W6(vcO);var t_6=function(){_.vn.call(this)};
_.A(t_6,_.vn);t_6.prototype.init=function(){};
new t_6;var pXM=_.i4(["data-"]),jzy=_.i4(["aria-"]),QzB=_.i4(["aria-"]),Tx=function(W,P){this.isLatencyMeasurementExperiment=W===void 0?!1:W;this.enableDialogA11yFix=P===void 0?!1:P;this.JSC$17181_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.g4Z(_.xW.location.href)},mn6=function(W,P){W.onConsentPrimitiveShownCallback=P},C4v=function(W,P){return W.overriddenIframeLoadTimeout?W.overriddenIframeLoadTimeout:P!==void 0?P:5E3},tdf=function(W){if(W.prewarmPromise!==void 0)return W.prewarmPromise;
W.prewarmPromise=new Promise(function(P,x){rs(W,1);AM3(W,zu3(W,!0),GcG(W));W.iframe?W.prewarmChannel||EcQ(W,W.iframe,P):x(Error("dk"))});
W.prewarmPromise.finally(function(){W.prewarmPromise=void 0});
return W.prewarmPromise};
Tx.prototype.showPrimitive=function(){var W=this;if(this.consentPromise!==void 0)return this.consentPromise;var P=Date.now();gc2(this,P);this.consentPromise=new Promise(function(x,I){rs(W,0,P);var O=W.isDarkTheme();W.isLatencyMeasurementExperiment||W.initialLoadingStrategy===1||W.initialLoadingStrategy===2||(W.loadingBar||(W.loadingBar=N7O(getComputedStyle(document.body).direction==="rtl",O),W.loadingBar.style.position="fixed",W.loadingBar.style.zIndex="15000"),document.body.appendChild(W.loadingBar));
AM3(W,zu3(W),GcG(W));W.iframe?W.channel||D$M(W,W.iframe,x,I):(M_v(W),I(Error("dk")))});
this.consentPromise.finally(function(){W.consentPromise=void 0});
return this.consentPromise};
var D$M=function(W,P,x,I){var O,B;_.y(function(Y){switch(Y.nextAddress){case 1:rs(W,3);O=!1;setTimeout(function(){if(!O){M_v(W);$$4(W);wXQ(W);var K=ioQ(7).setErrorMessage("Timeout connecting to iframe");x(d$O(u33(new lK,yMO(K)),SeB(K)))}},C4v(W,huv(W)));
if(!W.prewarmPromise){Y.jumpTo(2);break}_.OT(Y,3);return _.S(Y,W.prewarmPromise,5);case 5:_.ci(Y,2);break;case 3:_.yn(Y),B=ioQ(4).setErrorMessage("Error while prewarming."),x(d$O(u33(new lK,yMO(B)),SeB(B)));case 2:W.prewarmChannel&&W.prewarmChannel.send(V_4(szO(new lK,W.consentPrimitiveRequest))),W.channel=_.Wx({destination:W.JSC$17181_win,iframe:P,origin:HPd(W),channelName:"cpw",onEstablished:function(){O=!0;M_v(W);W.isLatencyMeasurementExperiment||(W.JSC$17181_previousBodyOverflow=document.body.style.overflow,
W.JSC$17181_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,W.JSC$17181_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",W.enableDialogA11yFix&&window.addEventListener("blur",W.focusChangeListener));var K=W.iframe;K.style.bottom="0";K.style.position="fixed";K.style.right="0";K.style.border="none";K.style.left="0";K.style.top=
"0";K.style.zIndex="5000";K.style.pointerEvents="";K.style.visibility="";W.initialLoadingStrategy===2||W.initialLoadingStrategy===3?rs(W,4):rs(W,6);var Z;(Z=W.onConsentPrimitiveShownCallback)==null||Z.call(W)},
onMessage:function(K){K=m$O(K.data);switch(_.$5(K,1)){case 1:$$4(W);var Z=lN3(_.qM(K,_.Ur,7));Z&&(W.initialLoadingStrategy!==2&&W.initialLoadingStrategy!==3||rs(W,6,Z),rs(W,5,Z));if(Z=lN3(_.qM(K,_.Ur,6)))rs(W,7,Z),rs(W,8);var d,v;((d=_.qM(K,Ye9,2))==null?void 0:_.CW(d,IB))!==0&&((v=_.qM(K,ZPf,8))==null?void 0:_.CW(v,ocm))!==0||I(Error("ek"));x(K);break;case 2:wXQ(W)}}}),_.Kl(Y)}})},EcQ=function(W,P,x){W.prewarmChannel=_.Wx({destination:W.JSC$17181_win,
iframe:P,origin:HPd(W),channelName:"pwcp",onEstablished:function(){rs(W,2);x()}})},HPd=function(W){var P=_.y4(W.src).toString();
return P&&P.indexOf("://")<0&&P.indexOf("//")!==0?W.origin:_.g4Z(P)},zu3=function(W,P){P=P===void 0?!1:P;
var x,I=new Map([["origin",W.origin],["hl",(x=eu4(W))!=null?x:null]]);P&&I.set("pw","1");P=_.n([["cpr",W.consentPrimitiveRequest.serialize()]]);for(x=P.next();!x.done;x=P.next()){var O=_.n(x.value);x=O.next().value;O=O.next().value;I.set(x,O)}W.isDarkTheme()&&I.set("color_scheme","dark");return _.P9(W.src,I)},M_v=function(W){W.isLatencyMeasurementExperiment||W.loadingBar&&document.body.removeChild(W.loadingBar)};
Tx.prototype.getSrc=function(){var W=_.lP(this.origin),P;var x=(P=_.qM(this.consentPrimitiveRequest,P4Q,3))==null?void 0:_.L5(P,1);P="consent.google.com";x=x?"/u/"+encodeURIComponent(x.toString()):"";(W==null?0:W.endsWith("youtube.com"))?P="consent.youtube.com":(W=W==null?void 0:W.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(P="consent.google."+((W[1]?"co.":"")+encodeURIComponent(W[2])));return _.YH("https://"+P+"/signedin"+x+"/landing")};
var AM3=function(W,P,x){W.iframe||(W.iframe=document.createElement("iframe"),W.iframe.style.width="100%",W.iframe.style.height="100%",x!==112496729&&(W.iframe.style.colorScheme="auto"),W.isLatencyMeasurementExperiment&&(W.iframe.style.display="none"),_.g9(W.iframe,P),W.iframe.setAttribute("jsname","C5o1O"),cMB(W.iframe),document.body.appendChild(W.iframe))},cMB=function(W){W.style.bottom="-200vh";
W.style.position="fixed";W.style.right="-200vw";W.style.border="";W.style.left="";W.style.top="";W.style.zIndex="";W.style.pointerEvents="none";W.style.visibility="hidden"},$$4=function(W){W.iframe&&(W.isLatencyMeasurementExperiment||(W.JSC$17181_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=W.JSC$17181_previousHtmlOverscroll),W.JSC$17181_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=W.JSC$17181_previousBodyOverscroll),W.JSC$17181_previousBodyOverflow!==
void 0&&(document.body.style.overflow=W.JSC$17181_previousBodyOverflow),W.enableDialogA11yFix&&asy(W,!1)),cMB(W.iframe))};
Tx.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(asy(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var asy=function(W,P){var x,I,O=(x=W.iframe)==null?void 0:(I=x.parentElement)==null?void 0:I.children;if(O)for(x=0;x<O.length;x++)I=O[x],I!==W.iframe&&(P?(I.hasAttribute("aria-hidden")&&_.b5([_.qi(pXM)],I,"data-old-aria-hidden",I.getAttribute("aria-hidden")),_.b5([_.qi(jzy)],I,"aria-hidden","true")):(I.removeAttribute("aria-hidden"),I.hasAttribute("data-old-aria-hidden")&&(_.b5([_.qi(QzB)],I,"aria-hidden",I.getAttribute("data-old-aria-hidden")),I.removeAttribute("data-old-aria-hidden"))))},rs=function(W,
P,x){var I;
(I=W.latencyCallback)==null||I.call(W,{latencyType:P,timestampEpochMillis:x!=null?x:Date.now()})};var bPO=function(W,P,x){Tx.call(this,P,x===void 0?!1:x);this.consentPrimitiveRequest=W;W=eu4(this);if(!(0,_.FNC)(W))throw Error("H``"+String(W));this.src=this.getSrc();var I;this.initialLoadingStrategy=(I=_.qM(this.consentPrimitiveRequest,B$,4))==null?void 0:_.$5(I,4)},kc6;
_.A(bPO,Tx);var vlM=function(W){var P=_.p("enable_primitive_dialog_aria_hide_siblings");W={request:W,enableDialogA11yFix:P===void 0?!1:P};kc6||(kc6=new bPO(W.request,W.isLatencyMeasurementExperiment||_.$5(W.request,1)===2,W.enableDialogA11yFix));return kc6},eu4=function(W){var P;
return(P=_.qM(W.consentPrimitiveRequest,B$,4))==null?void 0:_.MY(P,1)},gc2=function(W,P){if(!_.Vo(W.consentPrimitiveRequest,Ne,5)){var x=W.consentPrimitiveRequest,I=new Ne;
_.I$(x,5,I)}var O;if((O=_.qM(W.consentPrimitiveRequest,Ne,5))==null||_.oiC(_.mS(O,8))==null){var B;(B=_.qM(W.consentPrimitiveRequest,Ne,5))!=null&&_.vB(B,8,P)}},GcG=function(W){var P;
return(P=_.qM(W.consentPrimitiveRequest,Ne,5))==null?void 0:_.L5(P,1)};
bPO.prototype.isDarkTheme=function(){var W;return((W=_.qM(this.consentPrimitiveRequest,B$,4))==null?void 0:_.$5(W,2))===2};
var huv=function(W){var P;return((P=_.qM(W.consentPrimitiveRequest,B$,4))==null?void 0:_.L5(P,5))||void 0},wXQ=function(W){W.channel=void 0;
W.prewarmChannel=void 0;W.iframe&&(document.body.contains(W.iframe)&&document.body.removeChild(W.iframe),W.iframe=void 0);kc6=void 0},pM3=function(W){return Tx.prototype.showPrimitive.call(W).then(function(P){return _.qM(P,Ye9,2)})};for(var iK={},U$m=(iK[64]="ma",iK[73]="ogb",iK[89]="cr",iK[21]="test",iK[0]="unkn",iK[137]="con",iK[155]="hl",iK[78]="yt",iK[171]="lp",iK[172]="ap",iK[177]="amo",iK[178]="pqe",iK[74]="gg",iK[1]="gm",iK[140]="am",iK),XX6=_.n(Object.keys(U$m)),fsv=XX6.next();!fsv.done;fsv=XX6.next());var NhB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(NhB,_.aK);var ls2=[0,[2,3,4],_.F0,ZEB,Vym,_.qXR];var Th9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(Th9,_.aK);var rMB=_.Lx(Th9,[0,mxf,_.rg,_.F0,_.rg,_.F0,ls2]);var iPO=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(iPO,_.aK);iPO.prototype.getCommand=function(){return _.$5(this,1)};
var Ru2=function(){var W=new iPO;return _.cI(W,1,0)};var FfG=_.W6([0,mxf,_.rg,[0,_.F0,_.rg,-1]]);var qeL=new _.uk("s"),Lf3=new _.uk("t"),WSG=new _.uk("u"),P9m=new _.uk("v"),xYd=function(W,P,x){_.d0.call(this,qeL);this.mediaKey=W;this.photoUrl=P;this.photoSource=x};
_.A(xYd,_.d0);var I2y=function(){_.d0.call(this,Lf3)};
_.A(I2y,_.d0);var OW2=function(W){W=W===void 0?!1:W;_.d0.call(this,WSG);this.isError=W};
_.A(OW2,_.d0);var J8f=function(){_.d0.call(this,P9m)};
_.A(J8f,_.d0);var BgM=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,KSB=function(W){if(typeof W=="string"){if(W.charAt(0)==".")return n5f(W.substr(1));if(W.charAt(0)=="["){var P=BgM.exec(W);W=W.indexOf("=")==-1?void 0:P[3];return Y1m(P[1],W)}return y8v(W)}return W},n5f=function(W){return function(P){return P.getAttribute&&_.kf(P,W)}},Y1m=function(W,P){return function(x){return P!==void 0?x.getAttribute&&x.getAttribute(W)==P:x.hasAttribute&&x.hasAttribute(W)}},y8v=function(W){W=W.toUpperCase();
return function(P){return(P=P.tagName)&&P.toUpperCase()==W}},ZWO=function(){return!0};var RB=function(W,P){this.JSC$17209_key_=W;this.JSC$17209_value_=P},FQ=function(W){throw Error("fk`"+W.JSC$17209_key_);
},o5v=function(W,P){return new TypeError("gk`"+P+"`"+W.JSC$17209_key_+"`"+W.JSC$17209_value_+"`"+typeof W.JSC$17209_value_)};
RB.prototype.string=function(W){if(arguments.length==0)var P=S1Q(this);else{var x;P=(x=u02(this))!=null?x:W}return P};
var S1Q=function(W){var P=u02(W);P===null&&FQ(W);return P},u02=function(W){var P=W.JSC$17209_value_;
if(P==null)return null;if(typeof P==="string")return P;throw o5v(W,"string");};
RB.prototype.bool=function(W){if(arguments.length==0){var P=this.optionalBool();P===null&&FQ(this)}else{var x;P=(x=this.optionalBool())!=null?x:W}return P};
RB.prototype.optionalBool=function(){var W=this.JSC$17209_value_;if(W==null)return null;if(typeof W==="boolean")return W;if(typeof W==="string"){W=W.toLowerCase();if(W==="true"||W==="1")return!0;if(W==="false"||W==="0")return!1}throw o5v(this,"boolean");};
RB.prototype.number=function(W){if(arguments.length==0){var P=dYQ(this);P===null&&FQ(this)}else{var x;P=(x=dYQ(this))!=null?x:W}return P};
var dYQ=function(W){var P=W.JSC$17209_value_;if(P==null)return null;if(typeof P==="number")return P;if(typeof P==="string"){var x=Number(P);if(!isNaN(x)&&(x!==0||P.trim().length!==0))return x}throw o5v(W,"number");};
RB.prototype.toString=function(){return S1Q(this)};
RB.prototype.array=function(W){if(arguments.length==0){var P=sd9(this);P===null&&FQ(this);return P}P=sd9(this);return P==null?W:P};
var sd9=function(W){var P=W.JSC$17209_value_;if(P==null)return null;Array.isArray(P)||(typeof P!=="string"?P=[P]:(P=P.trim(),P=P==""?[]:P.split(",").map(function(x){return x.trim()})));
return v5L(W,P)},v5L=function(W,P){var x=W.JSC$17209_key_+"[";
return Array.from(P,function(I,O){return new RB(x+O+"]",I)})};
RB.prototype.object=function(W){var P=this.JSC$17209_value_;if(P==null)return W===void 0&&FQ(this),W;if(typeof P==="object"&&P.constructor===Object){W={};var x=this.JSC$17209_key_+".",I;for(I in P)W[I]=new RB(x+I,P[I]);return W}throw o5v(this,"object");};var qe=function(W){this.list_=mYv(W)},mYv=function(W){if(W instanceof qe)W=W.list_;
else if(W[0]instanceof qe){for(var P=new Set,x=0;x<W.length;x++)for(var I=_.n(W[x].list_),O=I.next();!O.done;O=I.next())P.add(O.value);W=P}return[].concat(_.ju(W))};
_.J=qe.prototype;_.J.each=function(W,P,x){((x===void 0?0:x)?TOv:_.bP)(this.list_,W,P);return this};
_.J.size=function(){return this.list_.length};
_.J.isEmpty=function(){return this.list_.length===0};
_.J.get=function(W){return this.list_[W]||null};
_.J.el=function(){return this.list_[0]||null};
_.J.map=function(W,P){return _.C5(this.list_,W,P)};
_.J.equals=function(W){return this===W||_.oW(this.list_,W.list_)};
_.J.first=function(){return this.list_.length==0?null:new Ly(this.list_[0])};
_.J.find=function(W){var P=[];this.each(function(x){x=x.querySelectorAll(String(W));for(var I=0;I<x.length;I++)P.push(x[I])});
return new qe(P)};
_.J.parent=function(){var W=[];this.each(function(P){(P=P.parentElement||null)&&!_.N7(W,P)&&W.push(P)});
return new qe(W)};
_.J.children=function(){var W=[];this.each(function(P){P=_.$_(P);for(var x=0;x<P.length;x++)W.push(P[x])});
return new qe(W)};
_.J.filter=function(W){W=_.nW(this.list_,KSB(W));return new qe(W)};
_.J.closest=function(W){var P=[],x=KSB(W),I=function(O){return _.Nt(O)&&x(O)};
this.each(function(O){(O=_.MT(O,I,!0))&&!_.N7(P,O)&&P.push(O)});
return new qe(P)};
_.J.next=function(W){return Vev(this,_.Tkc,W)};
_.J.prev=function(W){return Vev(this,ty4,W)};
var Vev=function(W,P,x){var I=[];var O=x?KSB(x):ZWO;W.each(function(B){(B=P(B))&&O(B)&&I.push(B)});
return new qe(I)};
qe.prototype.setClass=function(W){return this.each(function(P){_.bk(P,W)})};
var tey=function(W,P){return W.each(function(x){_.kY(x,P)})},pI4=function(W,P){return W.each(function(x){_.ax(x,P)})};
qe.prototype.toggleClass=function(W,P){return P===!0?tey(this,W):P===!1?pI4(this,W):this.each(function(x){_.kf(x,W)?_.ax(x,W):_.kY(x,W)})};
qe.prototype.setText=function(W){return this.each(function(P){_.wN(P,W)})};
var jd3=function(W){W.each(function(P){P.removeAttribute("aria-hidden")})};
qe.prototype.getStyle=function(W){if(this.list_.length>0){var P=this.list_[0],x=P.style[_.Zt(W)];return typeof x!=="undefined"?x:P.style[_.BMm(P,W)]||""}};
qe.prototype.getData=function(W){if(this.list_.length===0)return new RB(W,null);var P=LW4(this.list_[0],W);return new RB(W,P)};
qe.prototype.focus=function(W){try{W?this.el().focus(W):this.el().focus()}catch(P){}return this};
qe.prototype.click=function(){var W=_.GD(this.el());if(W.createEvent){var P=W.createEvent("MouseEvents");P.initMouseEvent("click",!0,!0,W.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(P)}else W=W.createEventObject(),W.clientX=0,W.clientY=0,W.screenX=0,W.screenY=0,W.altKey=!1,W.ctrlKey=!1,W.shiftKey=!1,W.button=0,this.el().fireEvent("onclick",W)};
var W2=function(W,P,x,I){function O(K,Z,d){var v=Z;Z&&Z.parentNode&&(v=Z.cloneNode(!0));K(v,d)}
I=I===void 0?!1:I;if(W.list_.length==1){var B=W.list_[0],Y=function(K){return P(K,B)};
x instanceof qe?x.each(Y,void 0,I):Array.isArray(x)?(I?TOv:_.bP)(x,Y):Y(x);return W}return W.each(function(K){x instanceof qe?x.each(function(Z){O(P,Z,K)}):Array.isArray(x)?_.bP(x,function(Z){O(P,Z,K)}):O(P,x,K)})};
_.J=qe.prototype;_.J.append=function(W){return W2(this,function(P,x){P&&x.appendChild(P)},W)};
_.J.appendTo=function(W){(new qe([W])).append(this);return this};
_.J.remove=function(){return W2(this,function(W,P){_.oE(P)},null)};
_.J.empty=function(){return W2(this,function(W,P){_.gN(P)},null)};
_.J.after=function(W,P){return W2(this,function(x,I){x&&_.MQ(x,I)},W,!(P===void 0||P))};
_.J.before=function(W){return W2(this,function(P,x){P&&_.D9(P,x)},W)};
_.J.replaceWith=function(W){return W2(this,function(P,x){P&&_.f3c(P,x)},W)};
_.J.toggle=function(W){return this.each(function(P){_.bZ(P,W)})};
_.J.show=function(){return this.toggle(!0)};
_.J.hide=function(){return this.toggle(!1)};
_.J.trigger=function(W,P,x,I){return QdO(this,W,P,x,I)};
var QdO=function(W,P,x,I,O){return W.each(function(B){_.MLR(_.GD(B)).triggerWizEventInternal(B,P,x,I,O)})},Ly=function(W,P){W instanceof qe&&(P=W.list_,W=null);
this.list_=mYv(W!=null?[W]:P)};
_.J8(Ly,qe);_.J=Ly.prototype;_.J.children=function(){return new qe(Array.prototype.slice.call(_.$_(this.list_[0])))};
_.J.each=function(W,P){W.call(P,this.list_[0],0);return this};
_.J.size=function(){return 1};
_.J.el=function(){return this.list_[0]};
_.J.first=function(){return this};var P2=function(W,P){P=P===void 0?window:P;this.hostId=W;this.JSC$17220_win=P;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$17220_previousHtmlOverscroll=this.JSC$17220_previousBodyOverscroll=this.JSC$17220_previousBodyOverflow="";this.eventTarget=new _.tW;this.JSC$17220_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
zwQ=function(W){var P=C93(C93(C93(new A8m(78),"po"),"hppp"),"hhc");
P.authUser=Number(_.$$("SESSION_INDEX","0"));P.colorScheme=W;return P};
P2.prototype.getOrigin=function(){return this.origin?this.origin:_.LA(_.qm(_.FM(new _.Xu,this.JSC$17220_win.location.protocol),this.JSC$17220_win.location.hostname),this.JSC$17220_win.location.port).toString()};
P2.prototype.getTargetOrigin=function(){return _.LA(_.qm(_.FM(new _.Xu,this.scheme),this.domain),this.port)};
P2.prototype.preloadIframe=function(W){var P=this;if(this.iframeLoadPromise===void 0){var x=document.createElement("iframe");this.iframe=x;Lh2(x,W);this.iframeLoadPromise=new Promise(function(I,O){var B=!1,Y=function(K){K.stopPropagation();x.removeEventListener("error",Y);x.removeEventListener("securitypolicyviolation",Y);O(Error("hk",{cause:K}))};
x.addEventListener("error",Y);x.addEventListener("securitypolicyviolation",Y);setTimeout(function(){B||O(Error("ik"))},3E4);
Ge4(P,x,function(){B=!0;x.removeEventListener("error",Y);x.removeEventListener("securitypolicyviolation",Y);I()})});
E5m(this);W=this.getTargetOrigin().toString();x.setAttribute("allow","camera "+W+"; display-capture "+W);this.parentElement.appendChild(x)}return this.iframeLoadPromise};
var Mem=function(W,P){var x,I;return _.y(function(O){if(O.nextAddress==1)return x=N7O(getComputedStyle(W.parentElement).direction==="rtl"),W.parentElement.appendChild(x),document.activeElement instanceof HTMLElement&&(W.elementToFocusAfterClose=document.activeElement),_.OT(O,2),_.S(O,W.preloadIframe(P),4);if(O.nextAddress!=2){W.parentElement.removeChild(x);W.JSC$17220_previousBodyOverflow=W.parentElement.style.overflow;W.JSC$17220_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
W.JSC$17220_previousBodyOverscroll=W.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";W.parentElement.style.overscrollBehavior="contain";W.parentElement.style.overflow="hidden";var B=W.iframe;B.style.bottom="0";B.style.border="none";B.style.height="100%";B.style.left="0";B.style.position=W.iframePosition;B.style.right="0";B.style.top="0";B.style.width="100%";B.style.zIndex="2202";B.setAttribute("aria-hidden","false");B.setAttribute("aria-modal","true");
W.opened=!0;g56(W);return _.ci(O,0)}I=_.yn(O);W.parentElement.removeChild(x);Ry9(W.isDarkTheme());DYM(W,!1);throw Error("jk",{cause:I});})},DYM=function(W,P){P=P===void 0?!0:P;
W.iframe!==void 0&&($Yf(W),document.documentElement.style.overscrollBehavior=W.JSC$17220_previousHtmlOverscroll,W.parentElement.style.overscrollBehavior=W.JSC$17220_previousBodyOverscroll,W.parentElement.style.overflow=W.JSC$17220_previousBodyOverflow,W.elementToFocusAfterClose!==void 0&&(W.elementToFocusAfterClose.focus(),W.elementToFocusAfterClose=void 0),P?E5m(W):(W.parentElement.removeChild(W.iframe),W.iframe=void 0,W.iframeLoadPromise=void 0,W.mainChannel=void 0),W.opened=!1)},$Yf=function(W){W.backgroundElementsAriaHiddenIsNull&&
(jd3(W.backgroundElementsAriaHiddenIsNull),W.backgroundElementsAriaHiddenIsNull=void 0);
W.backgroundElementsAriaHiddenIsFalse&&(W.backgroundElementsAriaHiddenIsFalse.each(function(P){P.setAttribute("aria-hidden","false")}),W.backgroundElementsAriaHiddenIsFalse=void 0);
W.backgroundElementsWithoutInert&&(W.backgroundElementsWithoutInert.each(function(P){P.removeAttribute("inert")}),W.backgroundElementsWithoutInert=void 0)},g56=function(W){W.backgroundElementsAriaHiddenIsNull=(new Ly(W.iframe.parentElement)).children().filter(function(P){return P.getAttribute("aria-hidden")===null&&P!==W.iframe});
W.backgroundElementsAriaHiddenIsNull.each(function(P){P.setAttribute("aria-hidden","true")});
W.backgroundElementsAriaHiddenIsFalse=(new Ly(W.iframe.parentElement)).children().filter(function(P){return P.getAttribute("aria-hidden")==="false"&&P!==W.iframe});
W.backgroundElementsAriaHiddenIsFalse.each(function(P){P.setAttribute("aria-hidden","true")});
W.backgroundElementsWithoutInert=(new Ly(W.iframe.parentElement)).children().filter(function(P){return!P.hasAttribute("inert")&&P!==W.iframe});
W.backgroundElementsWithoutInert.each(function(P){P.setAttribute("inert","true")})},E5m=function(W){W=W.iframe;
W.style.bottom="-1000px";W.style.position="fixed";W.style.right="-1000px";W.style.border="";W.style.height="";W.style.left="";W.style.top="";W.style.width="";W.style.zIndex="";W.setAttribute("aria-hidden","true");W.setAttribute("aria-modal","false")};
P2.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var A8m=function(W,P){P2.call(this,U$m[W],P);this.options=[];this.style=""};
_.A(A8m,P2);var wIB=function(W){W.style="youtube";return W},hwv=function(W,P){W.eventTarget.listen(WSG,P);
return W},HW2=function(W,P){W.eventTarget.listen(qeL,P);
return W},C93=function(W,P){W.options.push(P);
return W},ew2=function(W){var P=[W.getOrigin()];
W.ancestorOrigins&&P.push.apply(P,_.ju(W.ancestorOrigins));var x=new _.Xu(W.JSC$17220_win.location.href),I=W.startUrl?W.startUrl:W.options.includes("po")?"profile-picture/art":"profile-picture";P=ny(_.WL(W.getTargetOrigin(),I),"origin",P);W.startUrl&&_.aE(P,"startPath",W.startUrl);W.authUser>0&&_.aE(P,"authuser",W.authUser);W.pageId!==void 0&&_.aE(P,"pageId",W.pageId);_.aE(P,"hostId",W.hostId);W.jsMode!==void 0&&_.aE(P,"jsmode",W.jsMode);W.options.length>0&&_.aE(P,"opts",W.options.join(","));try{for(var O=
_.n(["utm_source","utm_medium","utm_campaign","utm_content"]),B=O.next();!B.done;B=O.next()){var Y=B.value;_.cn(x,Y)&&_.aE(P,Y,_.cn(x,Y))}var K,Z=(K=W.hl)!=null?K:_.cn(x,"hl");Z!==void 0&&_.aE(P,"hl",Z)}catch(d){if(!(d instanceof URIError))throw d;}W.colorScheme&&_.aE(P,"theme",W.colorScheme);W.style&&_.aE(P,"style",W.style);return P},c8O=function(W,P){W.mainChannel=_.Wx({destination:W.JSC$17220_win,
iframe:P,origin:W.getTargetOrigin().toString(),channelName:"ow",onMessage:function(x){x=rMB(x.data);if(P===W.iframe)switch(_.$5(x,1)){case 1:W.eventTarget.dispatchEvent(new OW2);DYM(W);break;case 2:W.eventTarget.dispatchEvent(new xYd(_.MY(x,4),_.MY(x,2),_.$5(x,5),_.qM(x,NhB,6)));break;case 0:var I;W.eventTarget.dispatchEvent(new I2y(_.MY(x,2),(I=_.$5(x,3))!=null?I:0));break;case 3:W.eventTarget.dispatchEvent(new OW2(!0));DYM(W,!1);break;case 4:W.eventTarget.dispatchEvent(new J8f)}}})},Ge4=function(W,
P,x){_.Wx({destination:W.JSC$17220_win,
iframe:P,origin:_.LA(_.qm(_.FM(new _.Xu,W.scheme),W.domain),W.port).toString(),channelName:"owi",onMessage:function(I){P===W.iframe&&(x!==void 0&&x(),c8O(W,P),W.opened&&W.mainChannel.send(FfG(Ru2())),I.reply(),Ge4(W,P))}})};
A8m.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?P2.prototype.preloadIframe.call(this,ew2(this).toString()):this.iframeLoadPromise};
A8m.prototype.openPicker=function(W){var P=this;return _.y(function(x){if(x.nextAddress==1)return P.startUrl=W?W:P.options.includes("po")?"profile-picture/art":"profile-picture",_.S(x,Mem(P,ew2(P).toString()),2);if(P.mainChannel){var I=P.mainChannel,O=I.send;var B=Ru2();B=_.SU(B,2,P.startUrl);O.call(I,FfG(B))}_.Kl(x)})};var a24=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(a24,_.aK);_.J=a24.prototype;_.J.getSize=function(){return uK(this,1)};
_.J.setSize=function(W){return _.ee(this,1,W)};
_.J.getWidth=function(){return uK(this,12)};
_.J.getHeight=function(){return uK(this,13)};
_.J.setCenterCrop=function(W){return _.IE(this,20,W)};
_.J.getHtml=function(){return _.E1(this,4)};
_.J.getToken=function(){return _.KU(this,24)};
_.J.setToken=function(W){return _.SU(this,24,W)};
_.J.getBackgroundColor=function(){return uK(this,87)};
_.J.hasBackgroundColor=function(){return _.C2(_.mS(this,87))!=null};
_.J.getStoryboardLevel=function(){return uK(this,109)};var xd=function(W){this.JSC$17228_value_=void 0;this.childNodes_={};if(W){var P=_.Ejm(W);W=_.R1(W);for(var x=0;x<P.length;x++)this.set(P[x],W[x])}};
xd.prototype.set=function(W,P){bWy(this,W,P,!1)};
xd.prototype.add=function(W,P){bWy(this,W,P,!0)};
var bWy=function(W,P,x,I){for(var O=0;O<P.length;O++){var B=P.charAt(O);W.childNodes_[B]||(W.childNodes_[B]=new xd);W=W.childNodes_[B]}if(I&&W.JSC$17228_value_!==void 0)throw Error("kk`"+P);W.JSC$17228_value_=x},ke3=function(W,P){for(var x=0;x<P.length;x++)if(W=W.childNodes_[P.charAt(x)],!W)return;
return W};
xd.prototype.get=function(W){return(W=ke3(this,W))?W.JSC$17228_value_:void 0};
xd.prototype.getValues=function(){var W=[];UY6(this,W);return W};
var UY6=function(W,P){W.JSC$17228_value_!==void 0&&P.push(W.JSC$17228_value_);for(var x in W.childNodes_)UY6(W.childNodes_[x],P)};
xd.prototype.getKeys=function(W){var P=[];if(W){for(var x=this,I=0;I<W.length;I++){var O=W.charAt(I);if(!x.childNodes_[O])return[];x=x.childNodes_[O]}XIy(x,W,P)}else XIy(this,"",P);return P};
var XIy=function(W,P,x){W.JSC$17228_value_!==void 0&&x.push(P);for(var I in W.childNodes_)XIy(W.childNodes_[I],P+I,x)};
_.J=xd.prototype;_.J.containsKey=function(W){return this.get(W)!==void 0};
_.J.containsValue=function(W){if(this.JSC$17228_value_===W)return!0;for(var P in this.childNodes_)if(this.childNodes_[P].containsValue(W))return!0;return!1};
_.J.clear=function(){this.childNodes_={};this.JSC$17228_value_=void 0};
_.J.remove=function(W){for(var P=this,x=[],I=0;I<W.length;I++){var O=W.charAt(I);if(!P.childNodes_[O])throw Error("lk`"+W);x.push([P,O]);P=P.childNodes_[O]}W=P.JSC$17228_value_;for(delete P.JSC$17228_value_;x.length>0;)if(I=x.pop(),P=I[0],I=I[1],P.childNodes_[I].isEmpty())delete P.childNodes_[I];else break;return W};
_.J.clone=function(){return new xd(this)};
_.J.getCount=function(){return ChB(this.getValues())};
_.J.isEmpty=function(){return this.JSC$17228_value_===void 0&&_.jU.isEmpty(this.childNodes_)};var Of2=function(){if(!f2f){var W=f2f=new xd,P;for(P in Ngv)W.add(P,Ngv[P])}},f2f,IH=function(W,P){this.types=W;
this.setters=P},Ngv={a:new IH([3,
0],[function(W,P){_.IE(W,21,P)},
function(W,P){_.ee(W,56,P)}]),
al:new IH([3],[function(W,P){_.IE(W,74,P)}]),
b:new IH([3,0],[function(W,P){_.IE(W,23,P)},
function(W,P){_.ee(W,38,P)}]),
ba:new IH([0],[function(W,P){_.ee(W,85,P)}]),
bc:new IH([0],[function(W,P){_.ee(W,87,P)}]),
br:new IH([0],[function(W,P){_.ee(W,86,P)}]),
c:new IH([3,0],[function(W,P){_.IE(W,2,P)},
function(W,P){_.ee(W,39,P)}]),
cc:new IH([3],[function(W,P){_.IE(W,51,P)}]),
ci:new IH([3],[function(W,P){_.IE(W,32,P)}]),
ckm:new IH([3],[function(W,P){_.IE(W,104,P)}]),
cp:new IH([0],[function(W,P){_.ee(W,92,P)}]),
cr:new IH([3],[function(W,P){_.IE(W,108,P)}]),
cv:new IH([0],[function(W,P){_.ee(W,94,P)}]),
d:new IH([3],[function(W,P){_.IE(W,3,P)}]),
dc:new IH([5],[function(W,P){_.SU(W,99,P)}]),
df:new IH([3],[function(W,P){_.IE(W,80,P)}]),
dv:new IH([3],[function(W,P){_.IE(W,90,P)}]),
e:new IH([0],[function(W,P){_.ee(W,15,P)}]),
em:new IH([0],[function(W,P){_.ee(W,107,P)}]),
f:new IH([4],[function(W,P){_.SU(W,16,P)}]),
fg:new IH([3],[function(W,P){_.IE(W,34,P)}]),
fh:new IH([3],[function(W,P){_.IE(W,30,P)}]),
fm:new IH([3],[function(W,P){_.IE(W,84,P)}]),
fo:new IH([2],[function(W,P){_.WP(W,79,_.Y4(P))}]),
ft:new IH([3],[function(W,P){_.IE(W,50,P)}]),
fv:new IH([3],[function(W,P){_.IE(W,31,P)}]),
g:new IH([3],[function(W,P){_.IE(W,14,P)}]),
gce:new IH([4],[function(W,P){_.SU(W,112,P)}]),
gd:new IH([3],[function(W,P){_.IE(W,83,P)}]),
gm:new IH([3],[function(W,P){_.IE(W,105,P)}]),
h:new IH([3,0],[function(W,P){_.IE(W,4,P)},
function(W,P){_.ee(W,13,P)}]),
i:new IH([3],[function(W,P){_.IE(W,22,P)}]),
ic:new IH([0],[function(W,P){_.ee(W,71,P)}]),
id:new IH([3],[function(W,P){_.IE(W,70,P)}]),
il:new IH([3],[function(W,P){_.IE(W,96,P)}]),
ip:new IH([3],[function(W,P){_.IE(W,54,P)}]),
iv:new IH([0],[function(W,P){_.vB(W,75,P)}]),
j:new IH([1],[function(W,P){P=P==null?P:RMd(P);_.WP(W,29,P)}]),
k:new IH([3,0],[function(W,P){_.IE(W,17,P)},
function(W,P){_.ee(W,42,P)}]),
l:new IH([0],[function(W,P){_.ee(W,44,P)}]),
lf:new IH([3],[function(W,P){_.IE(W,65,P)}]),
lo:new IH([3],[function(W,P){_.IE(W,97,P)}]),
m:new IH([0],[function(W,P){_.ee(W,63,P)}]),
md:new IH([3],[function(W,P){_.IE(W,91,P)}]),
mm:new IH([4],[function(W,P){_.SU(W,81,P)}]),
mo:new IH([3],[function(W,P){_.IE(W,73,P)}]),
mv:new IH([3],[function(W,P){_.IE(W,66,P)}]),
n:new IH([3],[function(W,P){W.setCenterCrop(P)}]),
nc:new IH([3],[function(W,P){_.IE(W,55,P)}]),
nd:new IH([3],[function(W,P){_.IE(W,53,P)}]),
ng:new IH([3],[function(W,P){_.IE(W,95,P)}]),
ngm:new IH([3],[function(W,P){_.IE(W,106,P)}]),
no:new IH([3],[function(W,P){_.IE(W,37,P)}]),
ns:new IH([3],[function(W,P){_.IE(W,40,P)}]),
nt0:new IH([4],[function(W,P){_.SU(W,36,P)}]),
ntm:new IH([3],[function(W,P){_.IE(W,114,P)}]),
nu:new IH([3],[function(W,P){_.IE(W,46,P)}]),
nw:new IH([3],[function(W,P){_.IE(W,48,P)}]),
o:new IH([1,3],[function(W,P){P=P==null?P:RMd(P);_.WP(W,7,P)},
function(W,P){_.IE(W,27,P)}]),
p:new IH([3,0],[function(W,P){_.IE(W,19,P)},
function(W,P){_.ee(W,43,P)}]),
pa:new IH([3],[function(W,P){_.IE(W,61,P)}]),
pc:new IH([0],[function(W,P){_.ee(W,88,P)}]),
pd:new IH([3],[function(W,P){_.IE(W,60,P)}]),
pf:new IH([3],[function(W,P){_.IE(W,67,P)}]),
pg:new IH([3],[function(W,P){_.IE(W,72,P)}]),
pi:new IH([2],[function(W,P){_.WP(W,76,_.Y4(P))}]),
pp:new IH([3],[function(W,P){_.IE(W,52,P)}]),
pt:new IH([4],[function(W,P){_.SU(W,111,P)}]),
q:new IH([4],[function(W,P){_.SU(W,28,P)}]),
r:new IH([3,0],[function(W,P){_.IE(W,6,P)},
function(W,P){_.ee(W,26,P)}]),
ra:new IH([3],[function(W,P){_.IE(W,103,P)}]),
rf:new IH([3],[function(W,P){_.IE(W,100,P)}]),
rg:new IH([3],[function(W,P){_.IE(W,59,P)}]),
rh:new IH([3],[function(W,P){_.IE(W,49,P)}]),
rj:new IH([3],[function(W,P){_.IE(W,57,P)}]),
ro:new IH([2],[function(W,P){_.WP(W,78,_.Y4(P))}]),
rp:new IH([3],[function(W,P){_.IE(W,58,P)}]),
rw:new IH([3],[function(W,P){_.IE(W,35,P)}]),
rwa:new IH([3],[function(W,P){_.IE(W,64,P)}]),
rwu:new IH([3],[function(W,P){_.IE(W,41,P)}]),
s:new IH([3,0],[function(W,P){_.IE(W,33,P)},
function(W,P){W.setSize(P)}]),
sb:new IH([0],[function(W,P){_.ee(W,110,P)}]),
sc:new IH([0],[function(W,P){_.ee(W,89,P)}]),
sg:new IH([3],[function(W,P){_.IE(W,82,P)}]),
sl:new IH([0],[function(W,P){_.ee(W,109,P)}]),
sm:new IH([3],[function(W,P){_.IE(W,93,P)}]),
t:new IH([4],[function(W,P){W.setToken(P)}]),
tm:new IH([3],[function(W,P){_.IE(W,113,P)}]),
u:new IH([3],[function(W,P){_.IE(W,18,P)}]),
ut:new IH([3],[function(W,P){_.IE(W,45,P)}]),
v:new IH([0],[function(W,P){_.ee(W,62,P)}]),
vb:new IH([0],[function(W,P){_.vB(W,68,P)}]),
vf:new IH([4],[function(W,P){_.SU(W,102,P)}]),
vl:new IH([0],[function(W,P){_.vB(W,69,P)}]),
vm:new IH([3],[function(W,P){_.IE(W,98,P)}]),
w:new IH([0],[function(W,P){_.ee(W,12,P)}]),
x:new IH([0],[function(W,P){_.ee(W,9,P)}]),
y:new IH([0],[function(W,P){_.ee(W,10,P)}]),
ya:new IH([2],[function(W,P){_.WP(W,77,_.Y4(P))}]),
z:new IH([0],[function(W,P){_.ee(W,11,P)}])};
Of2.prototype.parse=function(W){var P=new a24,x=new a24;if(W=="")W=!0;else{W=W.split("-");for(var I=!0,O=0;O<W.length;O++){var B=W[O];if(B.length==0)I=!1;else{var Y=B,K=!1;var Z=Y;var d=Y.charAt(0);d!=d.toLowerCase()&&(K=!0,Z=Y.charAt(0).toLowerCase()+Y.substring(1));var v=f2f;for(d=1;d<=Z.length;++d){var m=v,t=Z.substring(0,d);if(t.length==0?m.isEmpty():!ke3(m,t))break}Z=d==1?null:(Z=v.get(Z.substring(0,d-1)))?{option:Y.substring(0,d-1),value:Y.substring(d-1),signed:K,attributes:Z}:null;if(Z){Y=
[];K=[];d=!1;for(v=0;v<Z.attributes.types.length;v++){m=Z.attributes.types[v];var C=Z.value;t=O;if(Z.signed&&m==1)for(var z=C.length;z<12&&t<W.length-1;)C+="-"+W[t+1],z=C.length,++t;else if(m==2)for(;t<W.length-1&&W[t+1].match(/^[\d\.]/);)C+="-"+W[t+1],++t;z=Z.attributes.setters[v];C=l2f(this,m)(Z.option,C,P,x,z);if(C===null){d=!0;O=t;break}else Y.push(m),K.push(C)}if(!d)for(Z=0;Z<K.length;Z++)v=Y[Z],C=K[Z],Tg9(this,v)(B,C);I=I&&d}else I=!1}}W=I}return new cVM(P,x,W)};
var OQ=function(W,P,x,I,O,B){O(x,P);W=W.charAt(0);B=B(W==W.toUpperCase());O(I,B)};
_.J=Of2.prototype;_.J.parseAndSetIntOption_=function(W,P,x,I,O){if(P=="")return 0;isFinite(P)&&(P=String(P));P=typeof P==="string"?/^\s*-?0x/i.test(P)?parseInt(P,16):parseInt(P,10):NaN;if(isNaN(P))return 1;OQ(W,P,x,I,O,Number);return null};
_.J.logIntParseError_=function(){};
_.J.parseAndSetFloatOption_=function(W,P,x,I,O){if(P=="")return 0;var B=Number(P);P=B==0&&_.Km(P)?NaN:B;if(isNaN(P))return 1;OQ(W,P,x,I,O,Number);return null};
_.J.logFloatParseError_=function(){};
_.J.parseAndSetBoolOption_=function(W,P,x,I,O){if(P!="")return 2;OQ(W,!0,x,I,O,Boolean);return null};
_.J.logBoolParseError_=function(){};
_.J.parseAndSetStringOption_=function(W,P,x,I,O){if(P=="")return 0;OQ(W,P,x,I,O,function(B){return B?"1":""});
return null};
_.J.logStringParseError_=function(){};
_.J.parseAndSetUint64Base64Option_=function(W,P,x,I,O){if(P=="")return 0;OQ(W,P,x,I,O,function(B){return B?1:0});
return null};
var l2f=function(W,P){switch(P){case 0:return(0,_.mx)(W.parseAndSetIntOption_,W);case 2:return(0,_.mx)(W.parseAndSetFloatOption_,W);case 3:return(0,_.mx)(W.parseAndSetBoolOption_,W);case 4:return(0,_.mx)(W.parseAndSetStringOption_,W);case 1:return(0,_.mx)(W.parseAndSetUint64Base64Option_,W);default:return function(){}}},Tg9=function(W,P){switch(P){case 0:return(0,_.mx)(W.logIntParseError_,W);
case 2:return(0,_.mx)(W.logFloatParseError_,W);case 3:return(0,_.mx)(W.logBoolParseError_,W);case 4:case 1:return(0,_.mx)(W.logStringParseError_,W);default:return function(){}}},cVM=function(W,P,x){this.valueProto_=W;
this.signatureFlagProto_=P;this.JSC$17240_valid_=x};
cVM.prototype.isValid=function(){return this.JSC$17240_valid_};var W19=function(W){this.JSC$17241_parser_=null;this.JSC$17241_components_=[];this.JSC$17241_parsedOptions_=null;anL(this,W)},bby=function(W){W.JSC$17241_parser_==null&&(W.JSC$17241_parser_=new Of2);
return W.JSC$17241_parser_},anL=function(W,P){W.JSC$17241_parsedOptions_=P?typeof P==="string"?bby(W).parse(P):P:bby(W).parse("")},Jj=function(W,P){return W==P?!1:!0};
_.J=W19.prototype;_.J.JSC$17243_setCrop=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,_.E1(x,2),_.E1(P.signatureFlagProto_,2))&&_.IE(x,2,W);return this};
_.J.JSC$17243_setCircleCrop=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,Ss(x,51),Ss(P.signatureFlagProto_,51))&&_.IE(x,51,W);return this};
_.J.JSC$17243_setImageCrop=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,Ss(x,32),Ss(P.signatureFlagProto_,32))&&_.IE(x,32,W);return this};
_.J.JSC$17243_setHeight=function(W){var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,x.getHeight(),P.signatureFlagProto_.getHeight())&&_.ee(x,13,W);return this};
_.J.setCenterCrop=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,_.E1(x,20),_.E1(P.signatureFlagProto_,20))&&x.setCenterCrop(W);return this};
_.J.JSC$17243_setSmartCrop=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,_.E1(x,19),_.E1(P.signatureFlagProto_,19))&&_.IE(x,19,W);return this};
_.J.JSC$17243_setPad=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,Ss(x,60),Ss(P.signatureFlagProto_,60))&&_.IE(x,60,W);return this};
_.J.JSC$17243_setSmartCropUseFace=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,_.E1(x,67),_.E1(P.signatureFlagProto_,67))&&_.IE(x,67,W);return this};
_.J.JSC$17243_setSmartCropNoClip=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,_.E1(x,52),_.E1(P.signatureFlagProto_,52))&&_.IE(x,52,W);return this};
_.J.setSize=function(W){var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,x.getSize(),P.signatureFlagProto_.getSize())&&x.setSize(W);return this};
_.J.setToken=function(W){W=W||void 0;var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,x.getToken(),P.signatureFlagProto_.getToken())&&x.setToken(W);return this};
_.J.JSC$17243_setWidth=function(W){var P=this.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(W,x.getWidth(),P.signatureFlagProto_.getWidth())&&_.ee(x,12,W);return this};
_.J.clearOptions=function(){anL(this,"");return this};
_.J.build=function(){this.JSC$17241_components_.length=0;var W=this.JSC$17241_parsedOptions_,P=W.valueProto_;W=W.signatureFlagProto_;B2(this,"s",P.getSize(),W.getSize());B2(this,"w",P.getWidth(),W.getWidth());nH(this,"c",_.E1(P,2),_.E1(W,2));nH(this,"d",_.E1(P,3),_.E1(W,3));B2(this,"h",P.getHeight(),W.getHeight());nH(this,"s",Ss(P,33),Ss(W,33));nH(this,"h",P.getHtml(),W.getHtml());nH(this,"p",_.E1(P,19),_.E1(W,19));nH(this,"pp",_.E1(P,52),_.E1(W,52));nH(this,"pf",_.E1(P,67),_.E1(W,67));nH(this,"n",
_.E1(P,20),_.E1(W,20));B2(this,"r",uK(P,26),uK(W,26));nH(this,"r",_.E1(P,6),_.E1(W,6));nH(this,"o",Ss(P,27),Ss(W,27));var x=_.Ge(P,7,_.vI);Yd(this,"o",x,_.Ge(W,7,_.vI));x=_.Ge(P,29,_.vI);Yd(this,"j",x,_.Ge(W,29,_.vI));B2(this,"x",uK(P,9),uK(W,9));B2(this,"y",uK(P,10),uK(W,10));B2(this,"z",uK(P,11),uK(W,11));nH(this,"g",_.E1(P,14),_.E1(W,14));B2(this,"e",uK(P,15),uK(W,15));Yd(this,"f",_.KU(P,16),_.KU(W,16));nH(this,"k",Ss(P,17),Ss(W,17));nH(this,"u",Ss(P,18),!0);nH(this,"ut",Ss(P,45),!0);nH(this,"i",
Ss(P,22),!0);nH(this,"a",Ss(P,21),Ss(W,21));nH(this,"b",_.E1(P,23),_.E1(W,23));B2(this,"b",uK(P,38),uK(W,38));B2(this,"c",uK(P,39),uK(W,39),16,8);Yd(this,"q",_.KU(P,28),_.KU(W,28));nH(this,"fh",Ss(P,30),Ss(W,30));nH(this,"fv",Ss(P,31),Ss(W,31));nH(this,"fg",_.E1(P,34),_.E1(W,34));nH(this,"ci",Ss(P,32),Ss(W,32));Yd(this,"t",P.getToken(),W.getToken());Yd(this,"nt0",_.KU(P,36),_.KU(W,36));nH(this,"rw",_.E1(P,35),_.E1(W,35));nH(this,"rwu",_.E1(P,41),_.E1(W,41));nH(this,"rwa",_.E1(P,64),_.E1(W,64));nH(this,
"nw",_.E1(P,48),_.E1(W,48));nH(this,"rh",_.E1(P,49),_.E1(W,49));nH(this,"no",_.E1(P,37),_.E1(W,37));nH(this,"ns",Ss(P,40),Ss(W,40));B2(this,"k",uK(P,42),uK(W,42));B2(this,"p",uK(P,43),uK(W,43));B2(this,"l",uK(P,44),uK(W,44));B2(this,"v",uK(P,62),uK(W,62));nH(this,"nu",Ss(P,46),Ss(W,46));nH(this,"ft",Ss(P,50),Ss(W,50));nH(this,"cc",Ss(P,51),Ss(W,51));nH(this,"nd",Ss(P,53),Ss(W,53));nH(this,"ip",Ss(P,54),Ss(W,54));nH(this,"nc",Ss(P,55),Ss(W,55));B2(this,"a",uK(P,56),uK(W,56));nH(this,"rj",Ss(P,57),
Ss(W,57));nH(this,"rp",Ss(P,58),Ss(W,58));nH(this,"rg",Ss(P,59),Ss(W,59));nH(this,"pd",Ss(P,60),Ss(W,60));nH(this,"pa",Ss(P,61),Ss(W,61));B2(this,"m",uK(P,63),uK(W,63));B2(this,"vb",ds(P,68),ds(W,68));B2(this,"vl",ds(P,69),ds(W,69));nH(this,"lf",Ss(P,65),Ss(W,65));nH(this,"mv",Ss(P,66),Ss(W,66));nH(this,"id",Ss(P,70),Ss(W,70));B2(this,"ic",uK(P,71),!0);nH(this,"pg",_.E1(P,72),_.E1(W,72));nH(this,"mo",Ss(P,73),Ss(W,73));nH(this,"al",Ss(P,74),Ss(W,74));B2(this,"iv",ds(P,75),ds(W,75));B2(this,"pi",ss(P,
76),ss(W,76));B2(this,"ya",ss(P,77),ss(W,77));B2(this,"ro",ss(P,78),ss(W,78));B2(this,"fo",ss(P,79),ss(W,79));nH(this,"df",Ss(P,80),Ss(W,80));Yd(this,"mm",_.KU(P,81),_.KU(W,81));nH(this,"sg",Ss(P,82),Ss(W,82));nH(this,"gd",Ss(P,83),Ss(W,83));nH(this,"fm",Ss(P,84),Ss(W,84));B2(this,"ba",uK(P,85),uK(W,85));B2(this,"br",uK(P,86),uK(W,86));B2(this,"bc",P.getBackgroundColor(),W.getBackgroundColor(),16,8);B2(this,"pc",uK(P,88),uK(W,88),16,8);B2(this,"sc",uK(P,89),uK(W,89),16,8);nH(this,"dv",Ss(P,90),Ss(W,
90));nH(this,"md",Ss(P,91),Ss(W,91));B2(this,"cp",uK(P,92),uK(W,92));nH(this,"sm",Ss(P,93),Ss(W,93));B2(this,"cv",uK(P,94),uK(W,94));nH(this,"ng",Ss(P,95),Ss(W,95));nH(this,"il",Ss(P,96),Ss(W,96));nH(this,"lo",Ss(P,97),Ss(W,97));nH(this,"vm",Ss(P,98),Ss(W,98));Yd(this,"dc",_.KU(P,99),_.KU(W,99));nH(this,"rf",Ss(P,100),Ss(W,100));Yd(this,"vf",_.KU(P,102),_.KU(W,102));nH(this,"ra",_.E1(P,103),_.E1(W,103));nH(this,"ckm",Ss(P,104),Ss(W,104));nH(this,"gm",Ss(P,105),Ss(W,105));nH(this,"ngm",Ss(P,106),Ss(W,
106));B2(this,"em",uK(P,107),uK(W,107));nH(this,"cr",Ss(P,108),Ss(W,108));B2(this,"sl",P.getStoryboardLevel(),W.getStoryboardLevel());B2(this,"sb",uK(P,110),uK(W,110));Yd(this,"pt",_.KU(P,111),_.KU(W,111));Yd(this,"gce",_.KU(P,112),_.KU(W,112));nH(this,"tm",Ss(P,113),Ss(W,113));nH(this,"ntm",Ss(P,114),Ss(W,114));return this.JSC$17241_components_.join("-")};
var B2=function(W,P,x,I,O,B){if(x!=null){var Y=O==void 0||O!=10&&O!=16?10:O;x=Number(x).toString(Y);O=new uGd;O.append(Y==16?"0x":"");Y=O.append;B==void 0?B="":(B-=x.length,B=B<=0?"":(0,_.gWM)("0",B));Y.call(O,B);O.append(x);ku3(W,P,O.toString(),!!Number(I))}},nH=function(W,P,x,I){x&&ku3(W,P,"",!!I)},Yd=function(W,P,x,I){x&&ku3(W,P,String(x),!!Number(I))},ku3=function(W,P,x,I){I&&(P=P.charAt(0).toUpperCase()+P.substring(1));
W.JSC$17241_components_.push(P+x)};_.J8(Q8,W19);_.J=Q8.prototype;_.J.JSC$17243_setCrop=function(W){W&&yb(this);return Q8.superClass_.JSC$17243_setCrop.call(this,W)};
_.J.JSC$17243_setHeight=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return Q8.superClass_.JSC$17243_setHeight.call(this,W)};
_.J.JSC$17243_setImageCrop=function(W){W&&yb(this);return Q8.superClass_.JSC$17243_setImageCrop.call(this,W)};
_.J.JSC$17243_setCircleCrop=function(W){W&&yb(this);return Q8.superClass_.JSC$17243_setCircleCrop.call(this,W)};
_.J.setSize=function(W){_.Jw(W)&&(W=Math.max(W.width,W.height));W=W==null||W<0?void 0:W;W!=null&&(this.JSC$17243_setWidth(),this.JSC$17243_setHeight());return Q8.superClass_.setSize.call(this,W)};
_.J.JSC$17243_setSmartCrop=function(W){W&&yb(this);return Q8.superClass_.JSC$17243_setSmartCrop.call(this,W)};
_.J.JSC$17243_setSmartCropNoClip=function(W){W&&yb(this);return Q8.superClass_.JSC$17243_setSmartCropNoClip.call(this,W)};
_.J.JSC$17243_setSmartCropUseFace=function(W){W&&yb(this);return Q8.superClass_.JSC$17243_setSmartCropUseFace.call(this,W)};
_.J.setCenterCrop=function(W){W&&yb(this);return Q8.superClass_.setCenterCrop.call(this,W)};
_.J.JSC$17243_setPad=function(W){W&&yb(this);return Q8.superClass_.JSC$17243_setPad.call(this,W)};
_.J.JSC$17243_setWidth=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return Q8.superClass_.JSC$17243_setWidth.call(this,W)};
var UC2=function(W){W.clearOptions();var P=W.JSC$17241_parsedOptions_,x=P.valueProto_;Jj(!0,_.E1(x,3),_.E1(P.signatureFlagProto_,3))&&_.IE(x,3,!0);return W},yb=function(W){W.setCenterCrop();
W.JSC$17243_setCircleCrop();W.JSC$17243_setCrop();W.JSC$17243_setImageCrop();W.JSC$17243_setPad();W.JSC$17243_setSmartCrop();W.JSC$17243_setSmartCropNoClip();W.JSC$17243_setSmartCropUseFace()};
Q8.prototype.build=function(){var W=this.JSC$17241_parsedOptions_.valueProto_;Ss(W,18)||Ss(W,45)?W.getSize()||this.setSize(0):(W=this.JSC$17241_parsedOptions_.valueProto_,W.getSize()||W.getWidth()||W.getHeight()||(this.setSize(),this.JSC$17243_setHeight(),this.JSC$17243_setWidth(),yb(this)));return Q8.superClass_.build.call(this)};var XLO=/^[^\/]*\/\//,KH=function(W,P){P=P===void 0?!1:P;this.original_=W;this.originalPrefix_="";(W=this.original_.match(XLO))&&W[0]?(this.originalPrefix_=W[0],W=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):W="http://"+this.original_;this.uri_=_.ea(W,!0);this.isFreeformUrl_=P;this.JSC$17247_valid_=!0;this.obfuscated_=!1},fnf=function(W,P){W.JSC$17249_pathPrefix_=W.JSC$17249_pathPrefix_?W.JSC$17249_pathPrefix_+("/"+P):P},ZJ=function(W){if(W.JSC$17249_components_==
void 0){var P=W.uri_.getPath().substring(1);
W.JSC$17249_pathPrefix_=null;if(W.isFreeformUrl_){W.JSC$17249_components_=[];if((P.match(/=/g)||[]).length>1)return W.JSC$17247_valid_=!1,W.JSC$17249_components_;var x=P.indexOf("=");x!=-1?(W.JSC$17249_components_.push(P.substr(0,x)),W.JSC$17249_components_.push(P.substr(x+1))):W.JSC$17249_components_.push(P);return W.JSC$17249_components_}W.JSC$17249_components_=P.split("/");P=W.JSC$17249_components_.length;P>2&&W.JSC$17249_components_[0]=="u"&&(fnf(W,W.JSC$17249_components_[0]+"/"+W.JSC$17249_components_[1]),
W.JSC$17249_components_.shift(),W.JSC$17249_components_.shift(),P-=2);if(P==0||P==4||P>7)return W.JSC$17247_valid_=!1,W.JSC$17249_components_;if(P==2)fnf(W,W.JSC$17249_components_[0]);else if(W.JSC$17249_components_[0]=="image")fnf(W,W.JSC$17249_components_[0]);else if(P==7||P==3)return W.JSC$17247_valid_=!1,W.JSC$17249_components_;if(P<=3){W.obfuscated_=!0;P==3&&(fnf(W,W.JSC$17249_components_[1]),W.JSC$17249_components_.shift(),--P);--P;x=W.JSC$17249_components_[P];var I=x.indexOf("=");I!=-1&&(W.JSC$17249_components_[P]=
x.substr(0,I),W.JSC$17249_components_.push(x.substr(I+1)))}}return W.JSC$17249_components_};
KH.prototype.isValid=function(){ZJ(this);return this.JSC$17247_valid_};
KH.prototype.isObfuscated=function(){ZJ(this);return this.obfuscated_};
var NiO=function(W){ZJ(W);return W.isFreeformUrl_},oH=function(W){ZJ(W);
W.JSC$17249_pathPrefix_==void 0&&(W.JSC$17249_pathPrefix_=null);return W.JSC$17249_pathPrefix_},ln2=function(W){switch(ZJ(W).length){case 7:return!0;
case 6:return oH(W)==null;case 5:return!1;case 3:return!0;case 2:return oH(W)==null;case 1:return!1;default:return!1}},SF=function(W,P){if(NiO(W))a:{switch(P){case 7:P=0;
break;case 4:if(!ln2(W)){W=null;break a}P=1;break;default:W=null;break a}W=ZJ(W)[P]}else if(W.isObfuscated())a:{var x=oH(W)!=null?1:0;switch(P){case 6:P=x;break;case 4:if(!ln2(W)){W=null;break a}P=1+x;break;default:W=null;break a}W=ZJ(W)[P]}else a:{x=oH(W)!=null?1:0;switch(P){case 0:P=x;break;case 1:P=1+x;break;case 2:P=2+x;break;case 3:P=3+x;break;case 4:if(!ln2(W)){W=null;break a}P=4+x;break;case 5:P=ln2(W)?1:0;P=4+x+P;break;default:W=null;break a}W=ZJ(W)[P]}return W};
KH.prototype.getOptions=function(){this.options_==void 0&&(this.options_=SF(this,4));return this.options_};var ItL=function(){};
ItL.prototype.parse=function(W,P){return new PO2(W,P===void 0?!1:P)};
var PO2=function(W,P){KH.call(this,W,P===void 0?!1:P)};
_.A(PO2,KH);_.J8(C8,Q8);var xV9;C8.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
C8.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var W=C8.superClass_.build.call(this),P=[];oH(this.parsedImageUrl_)!=null&&P.push(oH(this.parsedImageUrl_));var x=NiO(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var I=this.parsedImageUrl_;I.obfuscatedData_==void 0&&(I.obfuscatedData_=SF(I,6));P.push(I.obfuscatedData_+(W?"="+W:""))}else if(x){I=P.push;var O=this.parsedImageUrl_;O.freeformUrlPath_===void 0&&(O.freeformUrlPath_=SF(O,
7));I.call(P,O.freeformUrlPath_);W&&P.push(W)}else I=P.push,O=this.parsedImageUrl_,O.obfuscatedGaiaId_==void 0&&(O.obfuscatedGaiaId_=SF(O,0)),I.call(P,O.obfuscatedGaiaId_),I=P.push,O=this.parsedImageUrl_,O.photoId_==void 0&&(O.photoId_=SF(O,1)),I.call(P,O.photoId_),I=P.push,O=this.parsedImageUrl_,O.imageVersion_==void 0&&(O.imageVersion_=SF(O,2)),I.call(P,O.imageVersion_),I=P.push,O=this.parsedImageUrl_,O.signature_==void 0&&(O.signature_=SF(O,3)),I.call(P,O.signature_),W&&P.push(W),W=P.push,I=this.parsedImageUrl_,
I.filename_==void 0&&(I.filename_=SF(I,5)),W.call(P,I.filename_);P=x?P.join("="):P.join("/");P=_.ea(this.protocolPrefix_+this.JSC$17255_domain_+"/"+P+(this.JSC$17255_query_?"?"+this.JSC$17255_query_:"")).toString();P.startsWith("%3a//")&&(P=P.replace("%3a//","://"));return P};var Ti4=_.i4(["viewBox"]),rVv=_.i4(["width"]),ibm=_.i4(["height"]),Rs3=_.i4(["fill"]),FmO=_.i4(["id"]),qPL=_.i4(["x"]),LmQ=_.i4(["y"]);J1y.prototype.getLength=function(){return this.parsedData.length};
J1y.prototype.write=function(W){for(var P=0,x=this.parsedData.length;P<x;P++)W.put(this.parsedData[P],8)};
var oa2=function(W,P){var x=new J1y(P);W.dataList.push(x);x=W.errorCorrectLevel;var I=1,O=encodeURI(P).toString().replace(/%[0-9a-fA-F]{2}/g,"a");P=O.length+(O.length!=P?3:0);O=0;for(var B=uv.length;O<=B;O++){var Y=0;switch(x){case 1:Y=uv[O][0];break;case 0:Y=uv[O][1];break;case 3:Y=uv[O][2];break;case 2:Y=uv[O][3]}if(P<=Y)break;else I++}if(I>uv.length)throw Error("uk");W.typeNumber=I;W.dataCache=null};
BUM.prototype.isDark=function(W,P){if(W<0||this.moduleCount<=W||P<0||this.moduleCount<=P)throw Error("mk`"+W+"`"+P);return this.modules[W][P]};
for(var S_y=function(W,P,x){W.moduleCount=W.typeNumber*4+17;W.modules=Array(W.moduleCount);for(var I=0;I<W.moduleCount;I++){W.modules[I]=Array(W.moduleCount);for(var O=0;O<W.moduleCount;O++)W.modules[I][O]=null}Wav(W,0,0);Wav(W,W.moduleCount-7,0);Wav(W,0,W.moduleCount-7);I=Pdy[W.typeNumber-1];for(O=0;O<I.length;O++)for(var B=0;B<I.length;B++){var Y=I[O],K=I[B];if(W.modules[Y][K]==null)for(var Z=-2;Z<=2;Z++)for(var d=-2;d<=2;d++)W.modules[Y+Z][K+d]=Z==-2||Z==2||d==-2||d==2||Z==0&&d==0?!0:!1}for(I=
8;I<W.moduleCount-8;I++)W.modules[I][6]==null&&(W.modules[I][6]=I%2==0);for(I=8;I<W.moduleCount-8;I++)W.modules[6][I]==null&&(W.modules[6][I]=I%2==0);I=W.errorCorrectLevel<<3|x;for(O=I<<10;dP(O)-dP(1335)>=0;)O^=1335<<dP(O)-dP(1335);I=(I<<10|O)^21522;for(O=0;O<15;O++)B=!P&&(I>>O&1)==1,O<6?W.modules[O][8]=B:O<8?W.modules[O+1][8]=B:W.modules[W.moduleCount-15+O][8]=B;for(O=0;O<15;O++)B=!P&&(I>>O&1)==1,O<8?W.modules[8][W.moduleCount-O-1]=B:O<9?W.modules[8][15-O-1+1]=B:W.modules[8][15-O-1]=B;W.modules[W.moduleCount-
8][8]=!P;if(W.typeNumber>=7){I=W.typeNumber;for(O=I<<12;dP(O)-dP(7973)>=0;)O^=7973<<dP(O)-dP(7973);I=I<<12|O;for(O=0;O<18;O++)B=!P&&(I>>O&1)==1,W.modules[Math.floor(O/3)][O%3+W.moduleCount-8-3]=B;for(O=0;O<18;O++)B=!P&&(I>>O&1)==1,W.modules[O%3+W.moduleCount-8-3][Math.floor(O/3)]=B}if(W.dataCache==null){O=W.typeNumber;B=W.dataList;P=W.errorCorrectLevel;I=x_G(O,P);if(I==void 0)throw Error("tk`"+O+"`"+P);Y=I.length/3;P=[];for(K=0;K<Y;K++){Z=I[K*3];d=I[K*3+1];for(var v=I[K*3+2],m=0;m<Z;m++)P.push(new naf(d,
v))}I=new Y_M;for(Y=0;Y<B.length;Y++)K=B[Y],I.put(K.mode,4),I.put(K.getLength(),IgB(K.mode,O)),K.write(I);for(Y=O=0;Y<P.length;Y++)O+=P[Y].dataCount;if(I.length>O*8)throw Error("nk`"+I.length+"`"+O*8);for(I.length+4<=O*8&&I.put(0,4);I.length%8!=0;)O09(I,!1);for(;!(I.length>=O*8);){I.put(236,8);if(I.length>=O*8)break;I.put(17,8)}B=O=d=0;Y=Array(P.length);K=Array(P.length);for(Z=0;Z<P.length;Z++){m=P[Z].dataCount;var t=P[Z].totalCount-m;O=Math.max(O,m);B=Math.max(B,t);Y[Z]=Array(m);for(v=0;v<Y[Z].length;v++)Y[Z][v]=
255&I.buffer[v+d];d+=m;v=t;m=new AO([1],0);for(t=0;t<v;t++)m=m.multiply(new AO([1,JZM(t)],0));v=m;m=(new AO(Y[Z],v.getLength()-1)).mod(v);K[Z]=Array(v.getLength()-1);for(v=0;v<K[Z].length;v++)t=v+m.getLength()-K[Z].length,K[Z][v]=t>=0?m.get(t):0}for(v=I=0;v<P.length;v++)I+=P[v].totalCount;I=Array(I);for(v=d=0;v<O;v++)for(Z=0;Z<P.length;Z++)v<Y[Z].length&&(I[d++]=Y[Z][v]);for(v=0;v<B;v++)for(Z=0;Z<P.length;Z++)v<K[Z].length&&(I[d++]=K[Z][v]);W.dataCache=I}P=W.dataCache;I=-1;O=W.moduleCount-1;B=7;Y=
0;for(K=W.moduleCount-1;K>0;K-=2)for(K==6&&K--;;){for(Z=0;Z<2;Z++)W.modules[O][K-Z]==null&&(d=!1,Y<P.length&&(d=(P[Y]>>>B&1)==1),BlB(x,O,K-Z)&&(d=!d),W.modules[O][K-Z]=d,B--,B==-1&&(Y++,B=7));O+=I;if(O<0||W.moduleCount<=O){O-=I;I=-I;break}}},Wav=function(W,P,x){for(var I=-1;I<=7;I++)if(!(P+I<=-1||W.moduleCount<=P+I))for(var O=-1;O<=7;O++)x+O<=-1||W.moduleCount<=x+O||(W.modules[P+I][x+O]=0<=I&&I<=6&&(O==0||O==6)||0<=O&&O<=6&&(I==0||I==6)||2<=I&&I<=4&&2<=O&&O<=4?!0:!1)},uud=function(W){for(var P=0,
x=0,I=0;I<8;I++){S_y(W,!0,I);
var O=W;for(var B=O.moduleCount,Y=0,K=0;K<B;K++)for(var Z=0;Z<B;Z++){for(var d=0,v=O.isDark(K,Z),m=-1;m<=1;m++)if(!(K+m<0||B<=K+m))for(var t=-1;t<=1;t++)Z+t<0||B<=Z+t||(m!=0||t!=0)&&v==O.isDark(K+m,Z+t)&&d++;d>5&&(Y+=3+d-5)}for(K=0;K<B-1;K++)for(Z=0;Z<B-1;Z++)if(d=0,O.isDark(K,Z)&&d++,O.isDark(K+1,Z)&&d++,O.isDark(K,Z+1)&&d++,O.isDark(K+1,Z+1)&&d++,d==0||d==4)Y+=3;for(K=0;K<B;K++)for(Z=0;Z<B-6;Z++)O.isDark(K,Z)&&!O.isDark(K,Z+1)&&O.isDark(K,Z+2)&&O.isDark(K,Z+3)&&O.isDark(K,Z+4)&&!O.isDark(K,Z+5)&&
O.isDark(K,Z+6)&&(Y+=40);for(Z=0;Z<B;Z++)for(K=0;K<B-6;K++)O.isDark(K,Z)&&!O.isDark(K+1,Z)&&O.isDark(K+2,Z)&&O.isDark(K+3,Z)&&O.isDark(K+4,Z)&&!O.isDark(K+5,Z)&&O.isDark(K+6,Z)&&(Y+=40);for(Z=d=0;Z<B;Z++)for(K=0;K<B;K++)O.isDark(K,Z)&&d++;O=Y+=Math.abs(100*d/B/B-50)/5*10;if(I==0||P>O)P=O,x=I}return x},Pdy=[[],
[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]],dP=function(W){for(var P=0;W!=0;)P++,W>>>=1;return P},BlB=function(W,P,x){switch(W){case 0:return(P+x)%2==0;
case 1:return P%2==0;case 2:return x%3==0;case 3:return(P+x)%3==0;case 4:return(Math.floor(P/2)+Math.floor(x/3))%2==0;case 5:return P*x%2+P*x%3==0;case 6:return(P*x%2+P*x%3)%2==0;case 7:return(P*x%3+(P+x)%2)%2==0;default:throw Error("ok`"+W);}},IgB=function(W,P){if(1<=P&&P<10)switch(W){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+W);}else if(P<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+W);}else if(P<41)switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+W);}else throw Error("qk`"+P);},sQ=function(W){if(W<1)throw Error("rk`"+W);
return nUv[W]},JZM=function(W){for(;W<0;)W+=255;
for(;W>=256;)W-=255;return v2[W]},v2=Array(256),nUv=Array(256),Yjy=0;Yjy<8;Yjy++)v2[Yjy]=1<<Yjy;
for(var m2=8;m2<256;m2++)v2[m2]=v2[m2-4]^v2[m2-5]^v2[m2-6]^v2[m2-8];for(var yZ6=0;yZ6<255;yZ6++)nUv[v2[yZ6]]=yZ6;AO.prototype.get=function(W){return this.num[W]};
AO.prototype.getLength=function(){return this.num.length};
AO.prototype.multiply=function(W){for(var P=Array(this.getLength()+W.getLength()-1),x=0;x<this.getLength();x++)for(var I=0;I<W.getLength();I++)P[x+I]^=JZM(sQ(this.get(x))+sQ(W.get(I)));return new AO(P,0)};
AO.prototype.mod=function(W){if(this.getLength()-W.getLength()<0)return this;for(var P=sQ(this.get(0))-sQ(W.get(0)),x=Array(this.getLength()),I=0;I<this.getLength();I++)x[I]=this.get(I);for(I=0;I<W.getLength();I++)x[I]^=JZM(sQ(W.get(I))+P);return(new AO(x,0)).mod(W)};
var Ka4=[[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]],x_G=function(W,P){switch(P){case 1:return Ka4[(W-1)*4];case 0:return Ka4[(W-1)*4+1];case 3:return Ka4[(W-1)*4+2];case 2:return Ka4[(W-1)*4+3]}};
Y_M.prototype.get=function(W){return(this.buffer[Math.floor(W/8)]>>>7-W%8&1)==1};
Y_M.prototype.put=function(W,P){for(var x=0;x<P;x++)O09(this,(W>>>P-x-1&1)==1)};
var O09=function(W,P){var x=Math.floor(W.length/8);W.buffer.length<=x&&W.buffer.push(0);P&&(W.buffer[x]|=128>>>W.length%8);W.length++},uv=[[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]],Zfv=function(){var W=function(P,x){this.JSC$17275__el=P;this.JSC$17275__htOption=x};
W.prototype.draw=function(P){function x(v,m){v=document.createElementNS("http://www.w3.org/2000/svg",v);for(var t in m)m.hasOwnProperty(t)&&(t==="href"?_.nKL(v,m[t]):_.b5([_.qi(Ti4),_.qi(rVv),_.qi(ibm),_.qi(Rs3),_.qi(FmO),_.qi(qPL),_.qi(LmQ)],v,t,m[t]));return v}
var I=this.JSC$17275__htOption,O=this.JSC$17275__el,B=P.moduleCount;this.clear();var Y=x("svg",{viewBox:"0 0 "+String(B)+" "+String(B),width:"100%",height:"100%",fill:I.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});O.appendChild(Y);Y.appendChild(x("rect",{fill:I.colorLight,width:"100%",height:"100%"}));Y.appendChild(x("rect",{fill:I.colorDark,width:"1",height:"1",id:"template"}));for(var K=0;K<B;K++)for(var Z=0;Z<B;Z++)if(P.isDark(K,Z)){var d=x("use",{x:String(K),y:String(Z),href:"#template"});
Y.appendChild(d)}};
W.prototype.clear=function(){for(;this.JSC$17275__el.hasChildNodes();)this.JSC$17275__el.removeChild(this.JSC$17275__el.lastChild)};
return W}(),K1m=document.documentElement.tagName.toLowerCase()==="svg"?Zfv:typeof CanvasRenderingContext2D!="undefined"?function(){var W=function(P,x){this._bIsPainted=!1;
y16();this.JSC$17275__htOption=x;this._elCanvas=document.createElement("canvas");this._elCanvas.width=x.width;this._elCanvas.height=x.height;P.appendChild(this._elCanvas);this.JSC$17275__el=P;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$17275__el.appendChild(this._elImage);this._bSupportDataURI=null};
W.prototype._onMakeImage=function(){var P=this._elCanvas.toDataURL("image/png");this._elImage.src=P;this._elImage.style.display="block";this._elCanvas.style.display="none"};
W.prototype._safeSetDataURI=function(P,x){var I=this;I._fFail=x;I._fSuccess=P;I._bSupportDataURI===null?(P=_.ZV("IMG"),x=function(){I._bSupportDataURI=!1;I._fFail&&I._fFail.call(I)},P.onabort=x,P.onerror=x,P.onload=function(){I._bSupportDataURI=!0;
I._fSuccess&&I._fSuccess.call(I)},P.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):I._bSupportDataURI===!0&&I._fSuccess?I._fSuccess.call(I):I._bSupportDataURI===!1&&I._fFail&&I._fFail.call(I)};
W.prototype.draw=function(P){var x=this._oContext,I=this.JSC$17275__htOption,O=P.moduleCount,B=I.width/O,Y=I.height/O,K=Math.round(B),Z=Math.round(Y);this._elImage.style.display="none";this.clear();for(var d=0;d<O;d++)for(var v=0;v<O;v++){var m=P.isDark(d,v),t=v*B,C=d*Y;x.strokeStyle=m?I.colorDark:I.colorLight;x.lineWidth=1;x.fillStyle=m?I.colorDark:I.colorLight;x.fillRect(t,C,B,Y);x.strokeRect(Math.floor(t)+.5,Math.floor(C)+.5,K,Z);x.strokeRect(Math.ceil(t)-.5,Math.ceil(C)-.5,K,Z)}this._bIsPainted=
!0};
W.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
W.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
W.prototype.round=function(P){return P?Math.floor(P*1E3)/1E3:P};
return W}():function(){var W=function(P,x){this.JSC$17275__el=P;
this.JSC$17275__htOption=x};
W.prototype.draw=function(P){for(var x=this.JSC$17275__htOption,I=this.JSC$17275__el,O=P.moduleCount,B=Math.floor(x.width/O),Y=Math.floor(x.height/O),K=['<table style="border:0;border-collapse:collapse;">'],Z=0;Z<O;Z++){K.push("<tr>");for(var d=0;d<O;d++)K.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+B+"px;height:"+Y+"px;background-color:"+(P.isDark(Z,d)?x.colorDark:x.colorLight)+';"></td>');K.push("</tr>")}K.push("</table>");P=K.join("");P=_.VzP(_.pml,P);_.a$(I,P);
P=I.childNodes[0];O=(x.width-P.offsetWidth)/2;B=(x.height-P.offsetHeight)/2;O>0&&B>0&&(P.style.margin=B+"px "+O+"px")};
W.prototype.clear=function(){this.JSC$17275__el.textContent=""};
return W}();
dVO.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17278__android||this.JSC$17278__android>=3)&&this._oDrawing.makeImage()};
dVO.prototype.clear=function(){this._oDrawing.clear()};
_.xW.QRCode=dVO;var Z0v={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Vb=function(){};
Vb.prototype.stringify=function(W){return _.xW.JSON.stringify(W,void 0)};
Vb.prototype.parse=function(W){return _.xW.JSON.parse(W,void 0)};var oUf=function(){_.d0.call(this,"z")};
_.J8(oUf,_.d0);var Sjm=function(){_.d0.call(this,"y")};
_.J8(Sjm,_.d0);var ucG=null,d_Q=function(){return ucG=ucG||new _.tW},seB=function(W){_.d0.call(this,"serverreachability",W)};
_.J8(seB,_.d0);var tj=function(W){var P=d_Q();P.dispatchEvent(new seB(P,W))},vUB=function(W){_.d0.call(this,"statevent",W)};
_.J8(vUB,_.d0);var pH=function(W){var P=d_Q();P.dispatchEvent(new vUB(P,W))},m_9=function(W,P,x,I){_.d0.call(this,"timingevent",W);
this.size=P;this.rtt=x;this.retries=I};
_.J8(m_9,_.d0);var V23=function(W,P,x){var I=d_Q();I.dispatchEvent(new m_9(I,W,P,x))},jF=function(W,P){if(typeof W!=="function")throw Error("vk");
return _.xW.setTimeout(function(){W()},P)};var Qb=function(){this.redactEnabled_=!0};
Qb.prototype.disableRedact=function(){this.redactEnabled_=!1};
var t26=function(W,P,x,I,O,B){W.info(function(){if(W.redactEnabled_)if(B){var Y="";for(var K=B.split("&"),Z=0;Z<K.length;Z++){var d=K[Z].split("=");if(d.length>1){var v=d[0];d=d[1];var m=v.split("_");Y=m.length>=2&&m[1]=="type"?Y+(v+"="+d+"&"):Y+(v+"=redacted&")}}}else Y=null;else Y=B;return"XMLHTTP REQ ("+I+") [attempt "+O+"]: "+P+"\n"+x+"\n"+Y})},ppO=function(W,P,x,I,O,B,Y){W.info(function(){return"XMLHTTP RESP ("+I+") [ attempt "+O+"]: "+P+"\n"+x+"\n"+B+" "+Y})},CH=function(W,P,x,I){W.info(function(){return"XMLHTTP TEXT ("+
P+"): "+je3(W,x)+(I?" "+I:"")})},QeL=function(W,P){W.info(function(){return"TIMEOUT: "+P})};
Qb.prototype.debug=function(){};
Qb.prototype.info=function(){};
Qb.prototype.warning=function(){};
var je3=function(W,P){if(!W.redactEnabled_)return P;if(!P)return null;try{var x=JSON.parse(P);if(x)for(var I=0;I<x.length;I++)if(Array.isArray(x[I])){var O=x[I];if(!(O.length<2)){var B=O[1];if(Array.isArray(B)&&!(B.length<1)){var Y=B[0];if(Y!="noop"&&Y!="stop"&&Y!="close")for(var K=1;K<B.length;K++)B[K]=""}}}return(0,_.GQ)(x)}catch(Z){return W.debug("Exception parsing expected JS array - probably was not JS"),P}};var Aj=function(W,P,x,I,O){this.JSC$17300_channel_=W;this.JSC$17300_channelDebug_=P;this.sid_=x;this.JSC$17300_rid_=I;this.JSC$17300_retryId_=O||1;this.JSC$17300_eventHandler_=new _.q1(this);this.timeout_=45E3;this.JSC$17300_extraHeaders_=null;this.JSC$17300_successful_=!1;this.JSC$17300_postData_=this.JSC$17300_requestUri_=this.JSC$17300_baseUri_=this.JSC$17300_type_=this.JSC$17300_requestStartTime_=this.JSC$17300_watchDogTimeoutTime_=this.JSC$17300_watchDogTimerId_=null;this.JSC$17300_pendingMessages_=
[];this.JSC$17300_xmlHttp_=null;this.JSC$17300_xmlHttpChunkStart_=0;this.JSC$17300_lastError_=this.JSC$17300_verb_=null;this.JSC$17300_lastStatusCode_=-1;this.JSC$17300_cancelled_=!1;this.JSC$17300_readyStateChangeThrottleMs_=0;this.JSC$17300_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Cdf},Cdf=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},AZy=function(W,P){switch(W){case 0:return"Non-200 return code ("+P+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},z2Q={},GXm={};
Aj.prototype.setTimeout=function(W){this.timeout_=W};
var gUM=function(W,P,x){W.JSC$17300_type_=1;W.JSC$17300_baseUri_=_.BL(P.clone());W.JSC$17300_postData_=x;W.decodeChunks_=!0;EUO(W,null)},EUO=function(W,P){W.JSC$17300_requestStartTime_=Date.now();
D_v(W);W.JSC$17300_requestUri_=W.JSC$17300_baseUri_.clone();ny(W.JSC$17300_requestUri_,"t",W.JSC$17300_retryId_);W.JSC$17300_xmlHttpChunkStart_=0;var x=W.JSC$17300_channel_.JSC$17319_supportsCrossDomainXhrs_;W.fetchResponseState_=new Cdf;W.JSC$17300_xmlHttp_=M2O(W.JSC$17300_channel_,x?P:null,!W.JSC$17300_postData_);W.JSC$17300_readyStateChangeThrottleMs_>0&&(W.JSC$17300_readyStateChangeThrottle_=new _.WO((0,_.mx)(W.JSC$17304_xmlHttpHandler_,W,W.JSC$17300_xmlHttp_),W.JSC$17300_readyStateChangeThrottleMs_));
W.JSC$17300_eventHandler_.listen(W.JSC$17300_xmlHttp_,"readystatechange",W.JSC$17304_readyStateChangeHandler_);P=W.JSC$17300_extraHeaders_?_.jU.clone(W.JSC$17300_extraHeaders_):{};W.JSC$17300_postData_?(W.JSC$17300_verb_||(W.JSC$17300_verb_="POST"),P["Content-Type"]="application/x-www-form-urlencoded",W.JSC$17300_xmlHttp_.send(W.JSC$17300_requestUri_,W.JSC$17300_verb_,W.JSC$17300_postData_,P)):(W.JSC$17300_verb_="GET",W.JSC$17300_xmlHttp_.send(W.JSC$17300_requestUri_,W.JSC$17300_verb_,null,P));tj(1);
t26(W.JSC$17300_channelDebug_,W.JSC$17300_verb_,W.JSC$17300_requestUri_,W.JSC$17300_rid_,W.JSC$17300_retryId_,W.JSC$17300_postData_)};
Aj.prototype.JSC$17304_readyStateChangeHandler_=function(W){W=W.target;var P=this.JSC$17300_readyStateChangeThrottle_;P&&_.g0(W)==3?(this.JSC$17300_channelDebug_.debug("Throttling readystatechange."),P.fire()):this.JSC$17304_xmlHttpHandler_(W)};
Aj.prototype.JSC$17304_xmlHttpHandler_=function(W){try{W==this.JSC$17300_xmlHttp_?$_Q(this):this.JSC$17300_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(P){this.JSC$17300_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),wpB(this)}finally{}};
var $_Q=function(W){var P=_.g0(W.JSC$17300_xmlHttp_),x=W.JSC$17300_xmlHttp_.JSC$7701_lastErrorCode_,I=W.JSC$17300_xmlHttp_.getStatus();if(!(P<3||P==3&&!wpB(W))){W.JSC$17300_cancelled_||P!=4||x==7||(x==8||I<=0?tj(3):tj(2));h2O(W);var O=W.JSC$17300_xmlHttp_.getStatus();W.JSC$17300_lastStatusCode_=O;x=H09(W);wpB(W)||W.JSC$17300_channelDebug_.debug(function(){return"No response text for uri "+W.JSC$17300_requestUri_+" status "+O});
W.JSC$17300_successful_=O==200;ppO(W.JSC$17300_channelDebug_,W.JSC$17300_verb_,W.JSC$17300_requestUri_,W.JSC$17300_rid_,W.JSC$17300_retryId_,P,O);if(W.JSC$17300_successful_){if(W.decodeInitialResponse_&&!W.initialResponseDecoded_)if(I=e23(W))CH(W.JSC$17300_channelDebug_,W.JSC$17300_rid_,I,"Initial handshake response via X-HTTP-Initial-Response"),W.initialResponseDecoded_=!0,cZO(W,I);else{W.JSC$17300_successful_=!1;W.JSC$17300_lastError_=3;pH(12);W.JSC$17300_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
W.JSC$17300_rid_+")");zz(W);Gz(W);return}W.decodeChunks_?ag4(W,P,x):(CH(W.JSC$17300_channelDebug_,W.JSC$17300_rid_,x,null),cZO(W,x));P==4&&zz(W);W.JSC$17300_successful_&&!W.JSC$17300_cancelled_&&(P==4?b03(W.JSC$17300_channel_,W):(W.JSC$17300_successful_=!1,D_v(W)))}else eoB(W.JSC$17300_xmlHttp_),O==400&&x.indexOf("Unknown SID")>0?(W.JSC$17300_lastError_=3,pH(12),W.JSC$17300_channelDebug_.warning("XMLHTTP Unknown SID ("+W.JSC$17300_rid_+")")):(W.JSC$17300_lastError_=0,pH(13),W.JSC$17300_channelDebug_.warning("XMLHTTP Bad status "+
O+" ("+W.JSC$17300_rid_+")")),zz(W),Gz(W)}},e23=function(W){return W.JSC$17300_xmlHttp_&&(W=uN(W.JSC$17300_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Km(W)?W:null},H09=function(W){if(!kXy(W))return W.JSC$17300_xmlHttp_.getResponseText();
var P=W.JSC$17300_xmlHttp_.getResponse();if(P==="")return"";var x="",I=P.length,O=_.g0(W.JSC$17300_xmlHttp_)==4;if(!W.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return zz(W),Gz(W),"";W.fetchResponseState_.textDecoder=new _.xW.TextDecoder}for(var B=0;B<I;B++)W.fetchResponseState_.responseArrivedForFetch=!0,x+=W.fetchResponseState_.textDecoder.decode(P[B],{stream:!(O&&B==I-1)});P.length=0;W.fetchResponseState_.responseBuffer+=x;W.JSC$17300_xmlHttpChunkStart_=0;return W.fetchResponseState_.responseBuffer},
wpB=function(W){return W.JSC$17300_xmlHttp_?W.fetchResponseState_.responseArrivedForFetch?!0:!(!W.JSC$17300_xmlHttp_.getResponseText()&&!W.JSC$17300_xmlHttp_.getResponse()):!1},kXy=function(W){return W.JSC$17300_xmlHttp_?W.JSC$17300_verb_=="GET"&&W.JSC$17300_type_!=2&&W.JSC$17300_channel_.usesFetchStreams_:!1},ag4=function(W,P,x){for(var I=!0,O;!W.JSC$17300_cancelled_&&W.JSC$17300_xmlHttpChunkStart_<x.length;)if(O=U_3(W,x),O==GXm){P==4&&(W.JSC$17300_lastError_=4,pH(14),I=!1);
CH(W.JSC$17300_channelDebug_,W.JSC$17300_rid_,null,"[Incomplete Response]");break}else if(O==z2Q){W.JSC$17300_lastError_=4;pH(15);CH(W.JSC$17300_channelDebug_,W.JSC$17300_rid_,x,"[Invalid Chunk]");I=!1;break}else CH(W.JSC$17300_channelDebug_,W.JSC$17300_rid_,O,null),cZO(W,O);kXy(W)&&W.JSC$17300_xmlHttpChunkStart_!=0&&(W.fetchResponseState_.responseBuffer=W.fetchResponseState_.responseBuffer.slice(W.JSC$17300_xmlHttpChunkStart_),W.JSC$17300_xmlHttpChunkStart_=0);P!=4||x.length!=0||W.fetchResponseState_.responseArrivedForFetch||
(W.JSC$17300_lastError_=1,pH(16),I=!1);W.JSC$17300_successful_=W.JSC$17300_successful_&&I;I?x.length>0&&!W.firstByteReceived_&&(W.firstByteReceived_=!0,P=W.JSC$17300_channel_,P.JSC$17319_backChannelRequest_==W&&P.detectBufferingProxy_&&!P.bpDetectionDone_&&(P.JSC$17319_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+x.length),Xp6(P),P.bpDetectionDone_=!0,pH(11))):(CH(W.JSC$17300_channelDebug_,W.JSC$17300_rid_,x,"[Invalid Chunked Response]"),zz(W),Gz(W))},U_3=function(W,P){var x=
W.JSC$17300_xmlHttpChunkStart_,I=P.indexOf("\n",x);
if(I==-1)return GXm;x=Number(P.substring(x,I));if(isNaN(x))return z2Q;I+=1;if(I+x>P.length)return GXm;P=P.slice(I,I+x);W.JSC$17300_xmlHttpChunkStart_=I+x;return P};
Aj.prototype.cancel=function(){this.JSC$17300_cancelled_=!0;zz(this)};
var D_v=function(W){W.JSC$17300_watchDogTimeoutTime_=Date.now()+W.timeout_;fgy(W,W.timeout_)},fgy=function(W,P){if(W.JSC$17300_watchDogTimerId_!=null)throw Error("wk");
W.JSC$17300_watchDogTimerId_=jF((0,_.mx)(W.JSC$17304_onWatchDogTimeout_,W),P)},h2O=function(W){W.JSC$17300_watchDogTimerId_&&(_.xW.clearTimeout(W.JSC$17300_watchDogTimerId_),W.JSC$17300_watchDogTimerId_=null)};
Aj.prototype.JSC$17304_onWatchDogTimeout_=function(){this.JSC$17300_watchDogTimerId_=null;var W=Date.now();W-this.JSC$17300_watchDogTimeoutTime_>=0?(QeL(this.JSC$17300_channelDebug_,this.JSC$17300_requestUri_),this.JSC$17300_type_!=2&&(tj(3),pH(17)),zz(this),this.JSC$17300_lastError_=2,Gz(this)):(this.JSC$17300_channelDebug_.warning("WatchDog timer called too early"),fgy(this,this.JSC$17300_watchDogTimeoutTime_-W))};
var Gz=function(W){W.JSC$17300_channel_.state_==0||W.JSC$17300_cancelled_||b03(W.JSC$17300_channel_,W)},zz=function(W){h2O(W);
_.TD(W.JSC$17300_readyStateChangeThrottle_);W.JSC$17300_readyStateChangeThrottle_=null;W.JSC$17300_eventHandler_.removeAll();if(W.JSC$17300_xmlHttp_){var P=W.JSC$17300_xmlHttp_;W.JSC$17300_xmlHttp_=null;P.abort();P.dispose()}};
Aj.prototype.getLastError=function(){return this.JSC$17300_lastError_};
var cZO=function(W,P){try{var x=W.JSC$17300_channel_;if(x.state_!=0&&(x.JSC$17319_backChannelRequest_==W||Nl6(x.forwardChannelRequestPool_,W)))if(!W.initialResponseDecoded_&&Nl6(x.forwardChannelRequestPool_,W)&&x.state_==3){try{var I=x.wireCodec_.JSC$17314_parser_.parse(P)}catch(K){I=null}if(Array.isArray(I)&&I.length==3){P=I;if(P[0]==0)a:if(x.JSC$17319_channelDebug_.debug("Server claims our backchannel is missing."),x.JSC$17319_backChannelTimerId_)x.JSC$17319_channelDebug_.debug("But we are currently starting the request.");
else{if(x.JSC$17319_backChannelRequest_)if(x.JSC$17319_backChannelRequest_.JSC$17300_requestStartTime_+3E3<W.JSC$17300_requestStartTime_)lgd(x),Tl9(x);else break a;else x.JSC$17319_channelDebug_.warning("We do not have a BackChannel established");rZ6(x);pH(18)}else{x.JSC$17319_lastPostResponseArrayId_=P[1];var O=x.JSC$17319_lastPostResponseArrayId_-x.JSC$17319_lastArrayId_;if(0<O){var B=P[2];x.JSC$17319_channelDebug_.debug(B+" bytes (in "+O+" arrays) are outstanding on the BackChannel");B<37500&&
x.enableStreaming_&&x.JSC$17319_backChannelRetryCount_==0&&!x.JSC$17319_deadBackChannelTimerId_&&(x.JSC$17319_deadBackChannelTimerId_=jF((0,_.mx)(x.JSC$17321_onBackChannelDead_,x),6E3))}}if(i0d(x.forwardChannelRequestPool_)<=1&&x.forwardChannelFlushedCallback_){try{x.forwardChannelFlushedCallback_()}catch(K){}x.forwardChannelFlushedCallback_=void 0}}else x.JSC$17319_channelDebug_.debug("Bad POST response data returned"),EQ(x,11)}else if((W.initialResponseDecoded_||x.JSC$17319_backChannelRequest_==
W)&&lgd(x),!_.Km(P)){var Y=x.wireCodec_.JSC$17314_parser_.parse(P);x.onInput_(Y,W)}tj(4)}catch(K){}};var R2v=function(W,P){this.JSC$17307_mapId=W;this.map=P;this.context=null};var FaQ=function(W){this.maxPoolSizeConfigured_=W||10;_.xW.PerformanceNavigationTiming?(W=_.xW.performance.getEntriesByType("navigation"),W=W.length>0&&(W[0].nextHopProtocol=="hq"||W[0].nextHopProtocol=="h2")):W=!!(_.xW.chrome&&_.xW.chrome.loadTimes&&_.xW.chrome.loadTimes()&&_.xW.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17310_maxSize_=W?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17310_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17310_request_=null;this.JSC$17310_pendingMessages_=
[]},qj6=function(W){return W.JSC$17310_request_?!0:W.requestPool_?W.requestPool_.size>=W.JSC$17310_maxSize_:!1},i0d=function(W){return W.JSC$17310_request_?1:W.requestPool_?W.requestPool_.size:0},Nl6=function(W,P){return W.JSC$17310_request_?W.JSC$17310_request_==P:W.requestPool_?W.requestPool_.has(P):!1},La3=function(W,P){W.requestPool_?W.requestPool_.add(P):W.JSC$17310_request_=P},WsO=function(W,P){W.JSC$17310_request_&&W.JSC$17310_request_==P?W.JSC$17310_request_=null:W.requestPool_&&W.requestPool_.has(P)&&
W.requestPool_.delete(P)};
FaQ.prototype.cancel=function(){this.JSC$17310_pendingMessages_=PeQ(this);if(this.JSC$17310_request_)this.JSC$17310_request_.cancel(),this.JSC$17310_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var W=_.n(this.requestPool_.values()),P=W.next();!P.done;P=W.next())P.value.cancel();this.requestPool_.clear()}};
var PeQ=function(W){if(W.JSC$17310_request_!=null)return W.JSC$17310_pendingMessages_.concat(W.JSC$17310_request_.JSC$17300_pendingMessages_);if(W.requestPool_!=null&&W.requestPool_.size!==0){var P=W.JSC$17310_pendingMessages_;W=_.n(W.requestPool_.values());for(var x=W.next();!x.done;x=W.next())P=P.concat(x.value.JSC$17300_pendingMessages_);return P}return _.Lm(W.JSC$17310_pendingMessages_)},xcd=function(W,P){W.JSC$17310_pendingMessages_=W.JSC$17310_pendingMessages_.concat(P)};var IRB=function(W,P){var x=new Qb;x.debug("TestLoadImage: loading "+W);if(_.xW.Image){var I=new Image;I.onload=_.ou(gP,x,"TestLoadImage: loaded",!0,P,I);I.onerror=_.ou(gP,x,"TestLoadImage: error",!1,P,I);I.onabort=_.ou(gP,x,"TestLoadImage: abort",!1,P,I);I.ontimeout=_.ou(gP,x,"TestLoadImage: timeout",!1,P,I);_.xW.setTimeout(function(){if(I.ontimeout)I.ontimeout()},1E4);
I.src=W}else P(!1)},OhM=function(W,P){var x=new Qb,I=new AbortController,O=setTimeout(function(){I.abort();
gP(x,"TestPingServer: timeout",!1,P)},1E4);
fetch(W,{signal:I.signal}).then(function(B){clearTimeout(O);B.ok?gP(x,"TestPingServer: ok",!0,P):gP(x,"TestPingServer: server error",!1,P)}).catch(function(){clearTimeout(O);
gP(x,"TestPingServer: error",!1,P)})},gP=function(W,P,x,I,O){try{W.debug(P),O&&(O.onload=null,O.onerror=null,O.onabort=null,O.ontimeout=null),I(x)}catch(B){}};var JhM=function(){this.JSC$17314_parser_=new Vb},BQv=function(W,P,x){var I=x||"";
try{_.gj3(W,function(O,B){var Y=O;_.Jw(O)&&(Y=(0,_.GQ)(O));P.push(I+B+"="+encodeURIComponent(Y))})}catch(O){throw P.push(I+"type="+encodeURIComponent("_badmap")),O;
}};var DJ=function(W,P,x){return x&&x.internalChannelParams?x.internalChannelParams[W]||P:P},Mq=function(W){this.serverVersion_=0;
this.JSC$17319_outgoingMaps_=[];this.JSC$17319_channelDebug_=new Qb;this.JSC$17319_hostPrefix_=this.JSC$17319_backChannelUri_=this.JSC$17319_forwardChannelUri_=this.JSC$17319_path_=this.JSC$17319_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17319_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17319_extraHeaders_=null;this.JSC$17319_nextMapId_=this.JSC$17319_nextRid_=0;this.JSC$17319_failFast_=DJ("failFast",!1,W);this.enableStreaming_=this.JSC$17319_deadBackChannelTimerId_=
this.JSC$17319_backChannelTimerId_=this.JSC$17319_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17319_lastPostResponseArrayId_=this.JSC$17319_lastArrayId_=-1;this.JSC$17319_backChannelAttemptId_=this.JSC$17319_backChannelRetryCount_=this.JSC$17319_forwardChannelRetryCount_=0;this.JSC$17319_baseRetryDelayMs_=DJ("baseRetryDelayMs",5E3,W);this.JSC$17319_retryDelaySeedMs_=DJ("retryDelaySeedMs",1E4,W);this.JSC$17319_forwardChannelMaxRetries_=
DJ("forwardChannelMaxRetries",2,W);this.JSC$17319_forwardChannelRequestTimeoutMs_=DJ("forwardChannelRequestTimeoutMs",2E4,W);this.JSC$17319_xmlHttpFactory_=W&&W.xmlHttpFactory||void 0;this.networkTestUrl_=W&&W.networkTestUrl||void 0;this.usesFetchStreams_=W&&W.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17319_supportsCrossDomainXhrs_=W&&W.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new FaQ(W&&W.concurrentRequestLimit);this.wireCodec_=new JhM;this.fastHandshake_=
W&&W.fastHandshake||!1;this.encodeInitMessageHeaders_=W&&W.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17319_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=W&&W.blockingHandshake||!1;W&&W.disableRedact&&this.JSC$17319_channelDebug_.disableRedact();W&&W.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
W&&W.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;W&&W.longPollingTimeout&&W.longPollingTimeout>0&&(this.longPollingTimeout_=W.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Mq.prototype.JSC$17321_channelVersion_=8;Mq.prototype.state_=1;
Mq.prototype.connect=function(W,P,x,I){this.JSC$17319_channelDebug_.debug("connect()");pH(0);this.JSC$17319_path_=W;this.JSC$17319_extraParams_=P||{};x&&I!==void 0&&(this.JSC$17319_extraParams_.OSID=x,this.JSC$17319_extraParams_.OAID=I);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17319_channelDebug_.debug("connectChannel_()");W=nBG(this,null,this.JSC$17319_path_);this.JSC$17319_channelDebug_.debug("GetForwardChannelUri: "+W);this.JSC$17319_forwardChannelUri_=W;Y84(this)};
Mq.prototype.disconnect=function(){this.JSC$17319_channelDebug_.debug("disconnect()");yh9(this);if(this.state_==3){var W=this.JSC$17319_nextRid_++,P=this.JSC$17319_forwardChannelUri_.clone();_.aE(P,"SID",this.sid_);_.aE(P,"RID",W);_.aE(P,"TYPE","terminate");$d(this,P);W=new Aj(this,this.JSC$17319_channelDebug_,this.sid_,W);W.JSC$17300_type_=2;W.JSC$17300_baseUri_=_.BL(P.clone());P=!1;if(_.xW.navigator&&_.xW.navigator.sendBeacon)try{P=_.xW.navigator.sendBeacon(W.JSC$17300_baseUri_.toString(),"")}catch(x){}!P&&
_.xW.Image&&((new Image).src=W.JSC$17300_baseUri_,P=!0);P||(W.JSC$17300_xmlHttp_=M2O(W.JSC$17300_channel_,null),W.JSC$17300_xmlHttp_.send(W.JSC$17300_baseUri_));W.JSC$17300_requestStartTime_=Date.now();D_v(W)}Ksd(this)};
var Tl9=function(W){W.JSC$17319_backChannelRequest_&&(Xp6(W),W.JSC$17319_backChannelRequest_.cancel(),W.JSC$17319_backChannelRequest_=null)},yh9=function(W){Tl9(W);
W.JSC$17319_backChannelTimerId_&&(_.xW.clearTimeout(W.JSC$17319_backChannelTimerId_),W.JSC$17319_backChannelTimerId_=null);lgd(W);W.forwardChannelRequestPool_.cancel();W.JSC$17319_forwardChannelTimerId_&&(typeof W.JSC$17319_forwardChannelTimerId_==="number"&&_.xW.clearTimeout(W.JSC$17319_forwardChannelTimerId_),W.JSC$17319_forwardChannelTimerId_=null)};
Mq.prototype.getState=function(){return this.state_};
var Y84=function(W){qj6(W.forwardChannelRequestPool_)||W.JSC$17319_forwardChannelTimerId_||(W.JSC$17319_forwardChannelTimerId_=!0,_.j3(W.JSC$17321_onStartForwardChannelTimer_,W),W.JSC$17319_forwardChannelRetryCount_=0)},oBM=function(W,P){if(i0d(W.forwardChannelRequestPool_)>=W.forwardChannelRequestPool_.JSC$17310_maxSize_-(W.JSC$17319_forwardChannelTimerId_?1:0))return!1;
if(W.JSC$17319_forwardChannelTimerId_)return W.JSC$17319_channelDebug_.debug("Use the retry request that is already scheduled."),W.JSC$17319_outgoingMaps_=P.JSC$17300_pendingMessages_.concat(W.JSC$17319_outgoingMaps_),!0;if(W.state_==1||W.state_==2||W.JSC$17319_forwardChannelRetryCount_>=(W.JSC$17319_failFast_?0:W.JSC$17319_forwardChannelMaxRetries_))return!1;W.JSC$17319_channelDebug_.debug("Going to retry POST");W.JSC$17319_forwardChannelTimerId_=jF((0,_.mx)(W.JSC$17321_onStartForwardChannelTimer_,
W,P),Zh2(W,W.JSC$17319_forwardChannelRetryCount_));W.JSC$17319_forwardChannelRetryCount_++;return!0};
Mq.prototype.JSC$17321_onStartForwardChannelTimer_=function(W){if(this.JSC$17319_forwardChannelTimerId_)if(this.JSC$17319_forwardChannelTimerId_=null,this.JSC$17319_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!W){this.JSC$17319_channelDebug_.debug("open_()");this.JSC$17319_nextRid_=Math.floor(Math.random()*1E5);W=this.JSC$17319_nextRid_++;var P=new Aj(this,this.JSC$17319_channelDebug_,"",W),x=this.JSC$17319_extraHeaders_;this.initHeaders_&&(x?(x=_.jU.clone(x),_.jU.extend(x,this.initHeaders_)):
x=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(P.JSC$17300_extraHeaders_=x,x=null);var I;if(this.fastHandshake_)a:{for(var O=I=0;O<this.JSC$17319_outgoingMaps_.length;O++){b:{var B=this.JSC$17319_outgoingMaps_[O];if("__data__"in B.map&&(B=B.map.__data__,typeof B==="string")){B=B.length;break b}B=void 0}if(B===void 0)break;I+=B;if(I>4096){I=O;break a}if(I===4096||O===this.JSC$17319_outgoingMaps_.length-1){I=O+1;break a}}I=1E3}else I=1E3;I=S8L(this,P,I);
O=this.JSC$17319_forwardChannelUri_.clone();_.aE(O,"RID",W);_.aE(O,"CVER",22);this.httpSessionIdParam_&&_.aE(O,"X-HTTP-Session-Id",this.httpSessionIdParam_);$d(this,O);x&&(this.encodeInitMessageHeaders_?I="headers="+_.al(e0G(x))+"&"+I:this.httpHeadersOverwriteParam_&&cp2(O,this.httpHeadersOverwriteParam_,x));La3(this.forwardChannelRequestPool_,P);this.blockingHandshake_&&_.aE(O,"TYPE","init");this.fastHandshake_?(_.aE(O,"$req",I),_.aE(O,"SID","null"),P.decodeInitialResponse_=!0,gUM(P,O,null)):gUM(P,
O,I);this.state_=2}}else this.state_==3&&(W?uh6(this,W):this.JSC$17319_outgoingMaps_.length==0?this.JSC$17319_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):qj6(this.forwardChannelRequestPool_)||(uh6(this),this.JSC$17319_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var uh6=function(W,P){var x;P?x=P.JSC$17300_rid_:x=W.JSC$17319_nextRid_++;var I=W.JSC$17319_forwardChannelUri_.clone();_.aE(I,"SID",W.sid_);_.aE(I,"RID",x);_.aE(I,"AID",W.JSC$17319_lastArrayId_);$d(W,I);W.httpHeadersOverwriteParam_&&W.JSC$17319_extraHeaders_&&cp2(I,W.httpHeadersOverwriteParam_,W.JSC$17319_extraHeaders_);x=new Aj(W,W.JSC$17319_channelDebug_,W.sid_,x,W.JSC$17319_forwardChannelRetryCount_+1);W.httpHeadersOverwriteParam_===null&&(x.JSC$17300_extraHeaders_=W.JSC$17319_extraHeaders_);P&&
(W.JSC$17319_outgoingMaps_=P.JSC$17300_pendingMessages_.concat(W.JSC$17319_outgoingMaps_));P=S8L(W,x,1E3);x.setTimeout(Math.round(W.JSC$17319_forwardChannelRequestTimeoutMs_*.5)+Math.round(W.JSC$17319_forwardChannelRequestTimeoutMs_*.5*Math.random()));La3(W.forwardChannelRequestPool_,x);gUM(x,I,P)},$d=function(W,P){W.JSC$17319_extraParams_&&_.jU.forEach(W.JSC$17319_extraParams_,function(x,I){_.aE(P,I,x)});
W.handler_&&_.gj3({},function(x,I){_.aE(P,I,x)})},S8L=function(W,P,x){x=Math.min(W.JSC$17319_outgoingMaps_.length,x);
var I=W.handler_?(0,_.mx)(W.handler_.JSC$17325_badMapError,W.handler_,W):null;a:{for(var O=W.JSC$17319_outgoingMaps_,B=-1;;){var Y=["count="+x];B==-1?x>0?(B=O[0].JSC$17307_mapId,Y.push("ofs="+B)):B=0:Y.push("ofs="+B);for(var K=!0,Z=0;Z<x;Z++){var d=O[Z].JSC$17307_mapId,v=O[Z].map;d-=B;if(d<0)B=Math.max(0,O[Z].JSC$17307_mapId-100),K=!1;else try{BQv(v,Y,"req"+d+"_")}catch(m){I&&I(v)}}if(K){I=Y.join("&");break a}}I=void 0}W=W.JSC$17319_outgoingMaps_.splice(0,x);P.JSC$17300_pendingMessages_=W;return I},
dc2=function(W){W.JSC$17319_backChannelRequest_||W.JSC$17319_backChannelTimerId_||(W.JSC$17319_backChannelAttemptId_=1,_.j3(W.JSC$17321_onStartBackChannelTimer_,W),W.JSC$17319_backChannelRetryCount_=0)},rZ6=function(W){if(W.JSC$17319_backChannelRequest_||W.JSC$17319_backChannelTimerId_||W.JSC$17319_backChannelRetryCount_>=3)return!1;
W.JSC$17319_channelDebug_.debug("Going to retry GET");W.JSC$17319_backChannelAttemptId_++;W.JSC$17319_backChannelTimerId_=jF((0,_.mx)(W.JSC$17321_onStartBackChannelTimer_,W),Zh2(W,W.JSC$17319_backChannelRetryCount_));W.JSC$17319_backChannelRetryCount_++;return!0};
Mq.prototype.JSC$17321_onStartBackChannelTimer_=function(){this.JSC$17319_backChannelTimerId_=null;sIQ(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17319_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17319_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17319_backChannelRequest_+" "+this.handshakeRttMs_);else{var W=2*this.handshakeRttMs_;this.JSC$17319_channelDebug_.info("BP detection timer enabled: "+W);this.bpDetectionTimerId_=jF((0,_.mx)(this.onBpDetectionTimer_,
this),W)}};
Mq.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17319_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17319_backChannelRequest_.JSC$17300_xmlHttp_!=null){var W=this.JSC$17319_backChannelRequest_.JSC$17300_xmlHttp_.getResponseText();W&&this.JSC$17319_channelDebug_.warning("Timer should have been cancelled : "+W)}this.JSC$17319_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;pH(10);Tl9(this);sIQ(this)}else this.JSC$17319_channelDebug_.warning("Invalid operation.")};
var Xp6=function(W){W.bpDetectionTimerId_!=null&&(W.JSC$17319_channelDebug_.debug("Cancel the BP detection timer."),_.xW.clearTimeout(W.bpDetectionTimerId_),W.bpDetectionTimerId_=null)},sIQ=function(W){W.JSC$17319_channelDebug_.debug("Creating new HttpRequest");
W.JSC$17319_backChannelRequest_=new Aj(W,W.JSC$17319_channelDebug_,W.sid_,"rpc",W.JSC$17319_backChannelAttemptId_);W.httpHeadersOverwriteParam_===null&&(W.JSC$17319_backChannelRequest_.JSC$17300_extraHeaders_=W.JSC$17319_extraHeaders_);W.JSC$17319_backChannelRequest_.JSC$17300_readyStateChangeThrottleMs_=0;var P=W.JSC$17319_backChannelUri_.clone();_.aE(P,"RID","rpc");_.aE(P,"SID",W.sid_);_.aE(P,"AID",W.JSC$17319_lastArrayId_);_.aE(P,"CI",W.enableStreaming_?"0":"1");!W.enableStreaming_&&W.longPollingTimeout_&&
_.aE(P,"TO",W.longPollingTimeout_);_.aE(P,"TYPE","xmlhttp");$d(W,P);W.httpHeadersOverwriteParam_&&W.JSC$17319_extraHeaders_&&cp2(P,W.httpHeadersOverwriteParam_,W.JSC$17319_extraHeaders_);W.backChannelRequestTimeoutMs_&&W.JSC$17319_backChannelRequest_.setTimeout(W.backChannelRequestTimeoutMs_);var x=W.JSC$17319_backChannelRequest_,I=W.JSC$17319_hostPrefix_;x.JSC$17300_type_=1;x.JSC$17300_baseUri_=_.BL(P.clone());x.JSC$17300_postData_=null;x.decodeChunks_=!0;EUO(x,I);W.JSC$17319_channelDebug_.debug("New Request created")};
Mq.prototype.JSC$17321_onBackChannelDead_=function(){this.JSC$17319_deadBackChannelTimerId_!=null&&(this.JSC$17319_deadBackChannelTimerId_=null,Tl9(this),rZ6(this),pH(19))};
var lgd=function(W){W.JSC$17319_deadBackChannelTimerId_!=null&&(_.xW.clearTimeout(W.JSC$17319_deadBackChannelTimerId_),W.JSC$17319_deadBackChannelTimerId_=null)},b03=function(W,P){W.JSC$17319_channelDebug_.debug("Request complete");
var x=null;if(W.JSC$17319_backChannelRequest_==P){lgd(W);Xp6(W);W.JSC$17319_backChannelRequest_=null;var I=2}else if(Nl6(W.forwardChannelRequestPool_,P))x=P.JSC$17300_pendingMessages_,WsO(W.forwardChannelRequestPool_,P),I=1;else return;if(W.state_!=0)if(P.JSC$17300_successful_)I==1?(V23(P.JSC$17300_postData_?P.JSC$17300_postData_.length:0,Date.now()-P.JSC$17300_requestStartTime_,W.JSC$17319_forwardChannelRetryCount_),Y84(W)):dc2(W);else{var O=P.JSC$17300_lastStatusCode_,B=P.getLastError();if(B==3||
B==0&&O>0)W.JSC$17319_channelDebug_.debug("Not retrying due to error type"),O>200&&(W.errorResponseStatusCode_=P.JSC$17300_lastStatusCode_);else{W.JSC$17319_channelDebug_.debug(function(){return"Maybe retrying, last error: "+AZy(B,W.errorResponseStatusCode_)});
if(I==1&&oBM(W,P)||I==2&&rZ6(W))return;W.JSC$17319_channelDebug_.debug("Exceeded max number of retries")}x&&x.length>0&&xcd(W.forwardChannelRequestPool_,x);W.JSC$17319_channelDebug_.debug("Error: HTTP request failed");switch(B){case 1:EQ(W,5);break;case 4:EQ(W,10);break;case 3:EQ(W,6);break;default:EQ(W,2)}}},Zh2=function(W,P){var x=W.JSC$17319_baseRetryDelayMs_+Math.floor(Math.random()*W.JSC$17319_retryDelaySeedMs_);
W.isActive()||(W.JSC$17319_channelDebug_.debug("Inactive channel"),x*=2);return x*P};
Mq.prototype.onInput_=function(W,P){for(var x=0;x<W.length;x++){var I=W[x];this.JSC$17319_lastArrayId_=I[0];I=I[1];if(this.state_==2)if(I[0]=="c"){this.sid_=I[1];this.JSC$17319_hostPrefix_=I[2];var O=I[3];O!=null&&(this.JSC$17321_channelVersion_=O,this.JSC$17319_channelDebug_.info("VER="+this.JSC$17321_channelVersion_));O=I[4];O!=null&&(this.serverVersion_=O,this.JSC$17319_channelDebug_.info("SVER="+this.serverVersion_));I=I[5];I!=null&&typeof I==="number"&&I>0&&(this.backChannelRequestTimeoutMs_=
I*=1.5,this.JSC$17319_channelDebug_.info("backChannelRequestTimeoutMs_="+I));if(I=P.JSC$17300_xmlHttp_){var B=uN(I,"X-Client-Wire-Protocol");B&&(O=this.forwardChannelRequestPool_,!O.requestPool_&&(_.ZA(B,"spdy")||_.ZA(B,"quic")||_.ZA(B,"h2"))&&(O.JSC$17310_maxSize_=O.maxPoolSizeConfigured_,O.requestPool_=new Set,O.JSC$17310_request_&&(La3(O,O.JSC$17310_request_),O.JSC$17310_request_=null)));this.httpSessionIdParam_&&((I=uN(I,"X-HTTP-Session-Id"))?(this.httpSessionId_=I,_.aE(this.JSC$17319_forwardChannelUri_,
this.httpSessionIdParam_,I)):this.JSC$17319_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17325_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-P.JSC$17300_requestStartTime_,this.JSC$17319_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));I=P;O=nBG(this,this.JSC$17319_supportsCrossDomainXhrs_?this.JSC$17319_hostPrefix_:null,this.JSC$17319_path_);this.JSC$17319_channelDebug_.debug("GetBackChannelUri: "+
O);this.JSC$17319_backChannelUri_=O;I.initialResponseDecoded_?(this.JSC$17319_channelDebug_.debug("Upgrade the handshake request to a backchannel."),WsO(this.forwardChannelRequestPool_,I),O=I,(B=this.backChannelRequestTimeoutMs_)&&O.setTimeout(B),O.JSC$17300_watchDogTimerId_&&(h2O(O),D_v(O)),this.JSC$17319_backChannelRequest_=I):dc2(this);this.JSC$17319_outgoingMaps_.length>0&&Y84(this)}else I[0]!="stop"&&I[0]!="close"||EQ(this,7);else this.state_==3&&(I[0]=="stop"||I[0]=="close"?I[0]=="stop"?EQ(this,
7):this.disconnect():I[0]!="noop"&&this.handler_&&this.handler_.JSC$17325_channelHandleArray(I),this.JSC$17319_backChannelRetryCount_=0)}};
var EQ=function(W,P){W.JSC$17319_channelDebug_.info("Error code "+P);if(P==2){var x=(0,_.mx)(W.testNetworkCallback_,W),I=W.networkTestUrl_,O=!I;I=new _.Xu(I||"//www.google.com/images/cleardot.gif");_.xW.location&&_.xW.location.protocol=="http"||_.FM(I,"https");_.BL(I);O?IRB(I.toString(),x):OhM(I.toString(),x)}else pH(2);W.onError_(P)};
Mq.prototype.testNetworkCallback_=function(W){W?(this.JSC$17319_channelDebug_.info("Successfully pinged google.com"),pH(2)):(this.JSC$17319_channelDebug_.info("Failed to ping google.com"),pH(1))};
Mq.prototype.onError_=function(W){this.JSC$17319_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$17325_channelError(W);Ksd(this);yh9(this)};
var Ksd=function(W){W.state_=0;W.nonAckedMapsAtChannelClose_=[];if(W.handler_){var P=PeQ(W.forwardChannelRequestPool_);if(P.length!=0||W.JSC$17319_outgoingMaps_.length!=0)W.JSC$17319_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+P.length+", outgoing: "+W.JSC$17319_outgoingMaps_.length}),_.IW(W.nonAckedMapsAtChannelClose_,P),_.IW(W.nonAckedMapsAtChannelClose_,W.JSC$17319_outgoingMaps_),W.forwardChannelRequestPool_.JSC$17310_pendingMessages_.length=0,_.Lm(W.JSC$17319_outgoingMaps_),
W.JSC$17319_outgoingMaps_.length=0;
W.handler_.JSC$17325_channelClosed()}},vB4=function(W){if(W.state_==0)return W.nonAckedMapsAtChannelClose_;
var P=[];_.IW(P,PeQ(W.forwardChannelRequestPool_));_.IW(P,W.JSC$17319_outgoingMaps_);return P},nBG=function(W,P,x){var I=_.ea(x);
I.JSC$7933_domain_!=""?(P&&_.qm(I,P+"."+I.JSC$7933_domain_),_.LA(I,I.JSC$7933_port_)):(I=_.xW.location,I=zWB(I.protocol,P?P+"."+I.hostname:I.hostname,+I.port,x));P=W.httpSessionIdParam_;x=W.httpSessionId_;P&&x&&_.aE(I,P,x);_.aE(I,"VER",W.JSC$17321_channelVersion_);$d(W,I);return I},M2O=function(W,P,x){if(P&&!W.JSC$17319_supportsCrossDomainXhrs_)throw Error("xk");
P=W.usesFetchStreams_&&!W.JSC$17319_xmlHttpFactory_?new _.E7(new $E({streamBinaryChunks:x})):new _.E7(W.JSC$17319_xmlHttpFactory_);P.JSC$7701_withCredentials_=W.JSC$17319_supportsCrossDomainXhrs_;return P};
Mq.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var mcM=function(){};
_.J=mcM.prototype;_.J.JSC$17325_channelOpened=function(){};
_.J.JSC$17325_channelHandleArray=function(){};
_.J.JSC$17325_channelError=function(){};
_.J.JSC$17325_channelClosed=function(){};
_.J.isActive=function(){return!0};
_.J.JSC$17325_badMapError=function(){};var VY3=function(){},hj=function(W,P){_.tW.call(this);
this.JSC$17328_channel_=new Mq(P);this.JSC$17328_url_=W;this.messageUrlParams_=P&&P.messageUrlParams||null;W=P&&P.messageHeaders||null;P&&P.clientProtocolHeaderRequired&&(W?_.jU.set(W,"X-Client-Protocol","webchannel"):W=_.jU.create("X-Client-Protocol","webchannel"));this.JSC$17328_channel_.JSC$17319_extraHeaders_=W;W=P&&P.initMessageHeaders||null;P&&P.messageContentType&&(W?_.jU.set(W,"X-WebChannel-Content-Type",P.messageContentType):W=_.jU.create("X-WebChannel-Content-Type",P.messageContentType));
P&&P.clientProfile&&(W?_.jU.set(W,"X-WebChannel-Client-Profile",P.clientProfile):W=_.jU.create("X-WebChannel-Client-Profile",P.clientProfile));this.JSC$17328_channel_.initHeaders_=W;(W=P&&P.httpHeadersOverwriteParam)&&!_.Km(W)&&(this.JSC$17328_channel_.httpHeadersOverwriteParam_=W);this.supportsCrossDomainXhr_=P&&P.supportsCrossDomainXhr||!1;this.sendRawJson_=P&&P.sendRawJson||!1;(P=P&&P.httpSessionIdParam)&&!_.Km(P)&&(this.JSC$17328_channel_.httpSessionIdParam_=P,_.jU.containsKey(this.messageUrlParams_,
P)&&_.jU.remove(this.messageUrlParams_,P));this.channelHandler_=new wP(this)};
_.J8(hj,_.tW);hj.prototype.open=function(){this.JSC$17328_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17328_channel_.JSC$17319_supportsCrossDomainXhrs_=!0);this.JSC$17328_channel_.connect(this.JSC$17328_url_,this.messageUrlParams_||void 0)};
hj.prototype.close=function(){this.JSC$17328_channel_.disconnect()};
hj.prototype.send=function(W){var P=this.JSC$17328_channel_;if(typeof W==="string"){var x={};x.__data__=W;W=x}else this.sendRawJson_&&(x={},x.__data__=(0,_.GQ)(W),W=x);P.JSC$17319_outgoingMaps_.push(new R2v(P.JSC$17319_nextMapId_++,W));P.state_==3&&Y84(P)};
hj.prototype.disposeInternal=function(){this.JSC$17328_channel_.handler_=null;delete this.channelHandler_;this.JSC$17328_channel_.disconnect();delete this.JSC$17328_channel_;hj.superClass_.disposeInternal.call(this)};
var tY9=function(W){oUf.call(this);W.__headers__&&(this.headers=W.__headers__,this.statusCode=W.__status__,delete W.__headers__,delete W.__status__);var P=W.__sm__;P?this.data=(this.metadataKey=_.jU.getAnyKey(P))?_.jU.get(P,this.metadataKey):P:this.data=W};
_.J8(tY9,oUf);var pz6=function(W){Sjm.call(this);this.status=1;this.errorCode=W};
_.J8(pz6,Sjm);var wP=function(W){this.JSC$17335_channel_=W};
_.J8(wP,mcM);wP.prototype.JSC$17325_channelOpened=function(){this.JSC$17335_channel_.dispatchEvent("w")};
wP.prototype.JSC$17325_channelHandleArray=function(W){this.JSC$17335_channel_.dispatchEvent(new tY9(W))};
wP.prototype.JSC$17325_channelError=function(W){this.JSC$17335_channel_.dispatchEvent(new pz6(W))};
wP.prototype.JSC$17325_channelClosed=function(){this.JSC$17335_channel_.dispatchEvent("x")};
var jIf=function(W,P){this.transportChannel_=W;this.JSC$17338_channel_=P},QIO=function(W){return vB4(W.JSC$17338_channel_).map(function(P){var x=W.transportChannel_;
P=P.map;"__data__"in P?(P=P.__data__,x=x.sendRawJson_?(0,_.B_W)(P):P):x=P;return x})};var H2=function(W){Cem.dispatchEvent(new Ahf(Cem,W))},Cem=new _.tW,Ahf=function(W){_.d0.call(this,"statevent",W)};
_.A(Ahf,_.d0);var eF=function(W,P,x,I,O){this.JSC$17343_channel_=W;this.JSC$17343_channelDebug_=P;this.sid_=x;this.JSC$17343_rid_=I;this.JSC$17343_retryId_=O||1;this.timeout_=45E3;this.JSC$17343_eventHandler_=new _.q1(this);this.pollingTimer_=new _.Fm;this.pollingTimer_.setInterval(250)};
_.J=eF.prototype;_.J.JSC$17345_extraHeaders_=null;_.J.JSC$17345_successful_=!1;_.J.JSC$17345_watchDogTimerId_=null;_.J.JSC$17345_watchDogTimeoutTime_=null;_.J.JSC$17345_requestStartTime_=null;_.J.JSC$17345_type_=null;_.J.JSC$17345_baseUri_=null;_.J.JSC$17345_requestUri_=null;_.J.JSC$17345_postData_=null;_.J.JSC$17345_xmlHttp_=null;_.J.JSC$17345_xmlHttpChunkStart_=0;_.J.trident_=null;_.J.JSC$17345_verb_=null;_.J.JSC$17345_lastError_=null;_.J.JSC$17345_lastStatusCode_=-1;_.J.sendClose_=!0;
_.J.JSC$17345_cancelled_=!1;_.J.JSC$17345_readyStateChangeThrottleMs_=0;_.J.JSC$17345_readyStateChangeThrottle_=null;var zKd=function(W,P){switch(W){case 0:return"Non-200 return code ("+P+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},GPQ={},EBG={};
eF.prototype.setTimeout=function(W){this.timeout_=W};
var DcB=function(W,P,x){W.JSC$17345_type_=1;W.JSC$17345_baseUri_=_.BL(P.clone());W.JSC$17345_postData_=x;W.decodeChunks_=!0;gBM(W,null)},MYQ=function(W,P,x,I,O){W.JSC$17345_type_=1;
W.JSC$17345_baseUri_=_.BL(P.clone());W.JSC$17345_postData_=null;W.decodeChunks_=x;O&&(W.sendClose_=!1);gBM(W,I)},gBM=function(W,P){W.JSC$17345_requestStartTime_=Date.now();
$c3(W);W.JSC$17345_requestUri_=W.JSC$17345_baseUri_.clone();ny(W.JSC$17345_requestUri_,"t",W.JSC$17343_retryId_);W.JSC$17345_xmlHttpChunkStart_=0;W.JSC$17345_xmlHttp_=W.JSC$17343_channel_.JSC$17352_createXhrIo(W.JSC$17343_channel_.JSC$17352_shouldUseSecondaryDomains()?P:null);W.JSC$17345_readyStateChangeThrottleMs_>0&&(W.JSC$17345_readyStateChangeThrottle_=new _.WO((0,_.mx)(W.JSC$17345_xmlHttpHandler_,W,W.JSC$17345_xmlHttp_),W.JSC$17345_readyStateChangeThrottleMs_));W.JSC$17343_eventHandler_.listen(W.JSC$17345_xmlHttp_,
"readystatechange",W.JSC$17345_readyStateChangeHandler_);P=W.JSC$17345_extraHeaders_?_.jU.clone(W.JSC$17345_extraHeaders_):{};W.JSC$17345_postData_?(W.JSC$17345_verb_="POST",P["Content-Type"]="application/x-www-form-urlencoded",W.JSC$17345_xmlHttp_.send(W.JSC$17345_requestUri_,W.JSC$17345_verb_,W.JSC$17345_postData_,P)):(W.JSC$17345_verb_="GET",W.sendClose_&&!_.Z2&&(P.Connection="close"),W.JSC$17345_xmlHttp_.send(W.JSC$17345_requestUri_,W.JSC$17345_verb_,null,P));W.JSC$17343_channel_.notifyServerReachabilityEvent(1);
P=W.JSC$17343_channelDebug_;var x=W.JSC$17345_postData_;if(x){var I="";x=x.split("&");for(var O=0;O<x.length;O++){var B=x[O].split("=");if(B.length>1){var Y=B[0];B=B[1];var K=Y.split("_");I=K.length>=2&&K[1]=="type"?I+(Y+"="+B+"&"):I+(Y+"=redacted&")}}}else I=null;P.info("XMLHTTP REQ ("+W.JSC$17343_rid_+") [attempt "+W.JSC$17343_retryId_+"]: "+W.JSC$17345_verb_+"\n"+W.JSC$17345_requestUri_+"\n"+I)};
eF.prototype.JSC$17345_readyStateChangeHandler_=function(W){W=W.target;var P=this.JSC$17345_readyStateChangeThrottle_;P&&_.g0(W)==3?(this.JSC$17343_channelDebug_.debug("Throttling readystatechange."),P.fire()):this.JSC$17345_xmlHttpHandler_(W)};
eF.prototype.JSC$17345_xmlHttpHandler_=function(W){try{if(W==this.JSC$17345_xmlHttp_)a:{var P=_.g0(this.JSC$17345_xmlHttp_),x=this.JSC$17345_xmlHttp_.JSC$7701_lastErrorCode_,I=this.JSC$17345_xmlHttp_.getStatus();if(_.Z2&&!_.od("420+")){if(P<4)break a}else if(P<3||P==3&&!this.JSC$17345_xmlHttp_.getResponseText())break a;this.JSC$17345_cancelled_||P!=4||x==7||(x==8||I<=0?this.JSC$17343_channel_.notifyServerReachabilityEvent(3):this.JSC$17343_channel_.notifyServerReachabilityEvent(2));wzM(this);var O=
this.JSC$17345_xmlHttp_.getStatus();this.JSC$17345_lastStatusCode_=O;var B=this.JSC$17345_xmlHttp_.getResponseText();B||this.JSC$17343_channelDebug_.debug("No response text for uri "+this.JSC$17345_requestUri_+" status "+O);this.JSC$17345_successful_=O==200;this.JSC$17343_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17343_rid_+") [ attempt "+this.JSC$17343_retryId_+"]: "+this.JSC$17345_verb_+"\n"+this.JSC$17345_requestUri_+"\n"+P+" "+O);if(this.JSC$17345_successful_){P==4&&c2(this);if(this.decodeChunks_){for(W=
!0;!this.JSC$17345_cancelled_&&this.JSC$17345_xmlHttpChunkStart_<B.length;){var Y=hKM(this,B);if(Y==EBG){P==4&&(this.JSC$17345_lastError_=4,H2(15),W=!1);aH(this.JSC$17343_channelDebug_,this.JSC$17343_rid_,null,"[Incomplete Response]");break}else if(Y==GPQ){this.JSC$17345_lastError_=4;H2(16);aH(this.JSC$17343_channelDebug_,this.JSC$17343_rid_,B,"[Invalid Chunk]");W=!1;break}else aH(this.JSC$17343_channelDebug_,this.JSC$17343_rid_,Y,null),Hhv(this,Y)}P==4&&B.length==0&&(this.JSC$17345_lastError_=1,
H2(17),W=!1);this.JSC$17345_successful_=this.JSC$17345_successful_&&W;W||(aH(this.JSC$17343_channelDebug_,this.JSC$17343_rid_,B,"[Invalid Chunked Response]"),c2(this),eKQ(this))}else aH(this.JSC$17343_channelDebug_,this.JSC$17343_rid_,B,null),Hhv(this,B);this.JSC$17345_successful_&&!this.JSC$17345_cancelled_&&(P==4?this.JSC$17343_channel_.JSC$17352_onRequestComplete(this):(this.JSC$17345_successful_=!1,$c3(this)))}else O==400&&B.indexOf("Unknown SID")>0?(this.JSC$17345_lastError_=3,H2(13),this.JSC$17343_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17343_rid_+")")):(this.JSC$17345_lastError_=0,H2(14),this.JSC$17343_channelDebug_.warning("XMLHTTP Bad status "+O+" ("+this.JSC$17343_rid_+")")),c2(this),eKQ(this)}else this.JSC$17343_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(K){this.JSC$17343_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var hKM=function(W,P){var x=W.JSC$17345_xmlHttpChunkStart_,I=P.indexOf("\n",x);if(I==-1)return EBG;x=Number(P.substring(x,I));if(isNaN(x))return GPQ;I+=1;if(I+x>P.length)return EBG;P=P.slice(I,I+x);W.JSC$17345_xmlHttpChunkStart_=I+x;return P};
eF.prototype.cancel=function(){this.JSC$17345_cancelled_=!0;c2(this)};
var $c3=function(W){W.JSC$17345_watchDogTimeoutTime_=Date.now()+W.timeout_;ch9(W,W.timeout_)},ch9=function(W,P){if(W.JSC$17345_watchDogTimerId_!=null)throw Error("wk");
W.JSC$17345_watchDogTimerId_=zl((0,_.mx)(W.JSC$17345_onWatchDogTimeout_,W),P)},wzM=function(W){W.JSC$17345_watchDogTimerId_&&(_.xW.clearTimeout(W.JSC$17345_watchDogTimerId_),W.JSC$17345_watchDogTimerId_=null)};
eF.prototype.JSC$17345_onWatchDogTimeout_=function(){this.JSC$17345_watchDogTimerId_=null;var W=Date.now();W-this.JSC$17345_watchDogTimeoutTime_>=0?(this.JSC$17343_channelDebug_.info("TIMEOUT: "+this.JSC$17345_requestUri_),this.JSC$17345_type_!=2&&this.JSC$17343_channel_.notifyServerReachabilityEvent(3),c2(this),this.JSC$17345_lastError_=2,H2(18),eKQ(this)):(this.JSC$17343_channelDebug_.warning("WatchDog timer called too early"),ch9(this,this.JSC$17345_watchDogTimeoutTime_-W))};
var eKQ=function(W){W.JSC$17343_channel_.JSC$17352_isClosed()||W.JSC$17345_cancelled_||W.JSC$17343_channel_.JSC$17352_onRequestComplete(W)},c2=function(W){wzM(W);
_.TD(W.JSC$17345_readyStateChangeThrottle_);W.JSC$17345_readyStateChangeThrottle_=null;W.pollingTimer_.stop();W.JSC$17343_eventHandler_.removeAll();if(W.JSC$17345_xmlHttp_){var P=W.JSC$17345_xmlHttp_;W.JSC$17345_xmlHttp_=null;P.abort();P.dispose()}W.trident_&&(W.trident_=null)};
eF.prototype.getLastError=function(){return this.JSC$17345_lastError_};
var Hhv=function(W,P){try{W.JSC$17343_channel_.JSC$17352_onRequestData(W,P),W.JSC$17343_channel_.notifyServerReachabilityEvent(4)}catch(x){}};var aH=function(W,P,x,I){var O=W.info;a:if(x&&x!="y2f%"){try{var B=JSON.parse(x);if(B)for(var Y=0;Y<B.length;Y++)if(Array.isArray(B[Y])){var K=B[Y];if(!(K.length<2)){var Z=K[1];if(Array.isArray(Z)&&!(Z.length<1)){var d=Z[0];if(d!="noop"&&d!="stop")for(var v=1;v<Z.length;v++)Z[v]=""}}}var m=(0,_.GQ)(B);break a}catch(t){W.debug("Exception parsing expected JS array - probably was not JS");m=x;break a}m=void 0}else m=x;O.call(W,"XMLHTTP TEXT ("+P+"): "+m+(I?" "+I:""))};
Gl.prototype.debug=function(W){this.info(W)};
Gl.prototype.info=function(){};
Gl.prototype.warning=function(){};var aRO=function(W,P){this.JSC$17350_channel_=W;this.JSC$17350_channelDebug_=P;this.JSC$17350_parser_=new Vb};
_.J=aRO.prototype;_.J.JSC$17352_extraHeaders_=null;_.J.JSC$17352_request_=null;_.J.receivedIntermediateResult_=!1;_.J.JSC$17352_path_=null;_.J.state_=null;_.J.JSC$17352_lastStatusCode_=-1;_.J.JSC$17352_hostPrefix_=null;_.J.blockedPrefix_=null;
_.J.connect=function(W){this.JSC$17352_path_=W;W=bhB(this.JSC$17350_channel_,this.JSC$17352_path_);H2(3);Date.now();var P=this.JSC$17350_channel_.firstTestResults_;P!=null?(this.JSC$17352_hostPrefix_=P[0],(this.blockedPrefix_=P[1])?(this.state_=1,kPM(this)):(this.state_=2,Uc9(this))):(ny(W,"MODE","init"),this.JSC$17352_request_=new eF(this,this.JSC$17350_channelDebug_),this.JSC$17352_request_.JSC$17345_extraHeaders_=this.JSC$17352_extraHeaders_,MYQ(this.JSC$17352_request_,W,!1,null,!0),this.state_=
0)};
var kPM=function(W){var P=Xz6(W.JSC$17350_channel_,W.blockedPrefix_,"/mail/images/cleardot.gif");_.BL(P);mVO(P.toString(),5E3,(0,_.mx)(W.checkBlockedCallback_,W),3,2E3);W.notifyServerReachabilityEvent(1)};
aRO.prototype.checkBlockedCallback_=function(W){if(W)this.state_=2,Uc9(this);else{H2(4);var P=this.JSC$17350_channel_;P.JSC$17353_channelDebug_.debug("Test Connection Blocked");P.JSC$17357_lastStatusCode_=P.connectionTest_.JSC$17352_lastStatusCode_;bv(P,9)}W&&this.notifyServerReachabilityEvent(2)};
var Uc9=function(W){W.JSC$17350_channelDebug_.debug("TestConnection: starting stage 2");var P=W.JSC$17350_channel_.secondTestResults_;P!=null?(W.JSC$17350_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+P?"Buffered":"Unbuffered"),H2(5),P?(H2(11),kd(W.JSC$17350_channel_,W,!1)):(H2(12),kd(W.JSC$17350_channel_,W,!0))):(W.JSC$17352_request_=new eF(W,W.JSC$17350_channelDebug_),W.JSC$17352_request_.JSC$17345_extraHeaders_=W.JSC$17352_extraHeaders_,P=fR4(W.JSC$17350_channel_,
W.JSC$17352_hostPrefix_,W.JSC$17352_path_),H2(5),ny(P,"TYPE","xmlhttp"),MYQ(W.JSC$17352_request_,P,!1,W.JSC$17352_hostPrefix_,!1))};
_.J=aRO.prototype;_.J.JSC$17352_createXhrIo=function(W){return this.JSC$17350_channel_.JSC$17352_createXhrIo(W)};
_.J.abort=function(){this.JSC$17352_request_&&(this.JSC$17352_request_.cancel(),this.JSC$17352_request_=null);this.JSC$17352_lastStatusCode_=-1};
_.J.JSC$17352_isClosed=function(){return!1};
_.J.JSC$17352_onRequestData=function(W,P){this.JSC$17352_lastStatusCode_=W.JSC$17345_lastStatusCode_;if(this.state_==0)if(this.JSC$17350_channelDebug_.debug("TestConnection: Got data for stage 1"),P){try{var x=this.JSC$17350_parser_.parse(P)}catch(I){NQ9(this.JSC$17350_channel_,this);return}this.JSC$17352_hostPrefix_=x[0];this.blockedPrefix_=x[1]}else this.JSC$17350_channelDebug_.debug("TestConnection: Null responseText"),NQ9(this.JSC$17350_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(H2(7),Date.now()):P=="11111"?(H2(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17352_lastStatusCode_=200,this.JSC$17352_request_.cancel(),this.JSC$17350_channelDebug_.debug("Test connection succeeded; using streaming connection"),H2(12),kd(this.JSC$17350_channel_,this,!0)):(H2(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.J.JSC$17352_onRequestComplete=function(){this.JSC$17352_lastStatusCode_=this.JSC$17352_request_.JSC$17345_lastStatusCode_;this.JSC$17352_request_.JSC$17345_successful_?this.state_==0?(this.JSC$17350_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,kPM(this)):(this.state_=2,Uc9(this))):this.state_==2&&(this.JSC$17350_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17350_channelDebug_.debug("Test connection succeeded; using streaming connection"),
H2(12),kd(this.JSC$17350_channel_,this,!0)):(this.JSC$17350_channelDebug_.debug("Test connection failed; not using streaming"),H2(11),kd(this.JSC$17350_channel_,this,!1))):(this.JSC$17350_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?H2(9):this.state_==2&&H2(10),NQ9(this.JSC$17350_channel_,this,this.JSC$17352_request_.getLastError()))};
_.J.JSC$17352_shouldUseSecondaryDomains=function(){return this.JSC$17350_channel_.JSC$17352_shouldUseSecondaryDomains()};
_.J.isActive=function(){return this.JSC$17350_channel_.isActive()};
_.J.notifyServerReachabilityEvent=function(W){this.JSC$17350_channel_.notifyServerReachabilityEvent(W)};var UQ=function(W,P,x){this.state_=1;this.JSC$17353_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17353_channelDebug_=new Gl;this.JSC$17353_parser_=new Vb;this.firstTestResults_=W||null;this.secondTestResults_=P!=null?P:null;this.asyncTest_=x||!1},lRG=function(W,P){this.JSC$17355_mapId=W;
this.map=P;this.context=null};
_.J=UQ.prototype;_.J.JSC$17357_extraHeaders_=null;_.J.JSC$17357_extraParams_=null;_.J.forwardChannelRequest_=null;_.J.JSC$17357_backChannelRequest_=null;_.J.JSC$17357_path_=null;_.J.JSC$17357_forwardChannelUri_=null;_.J.JSC$17357_backChannelUri_=null;_.J.JSC$17357_hostPrefix_=null;_.J.JSC$17357_nextRid_=0;_.J.JSC$17357_nextMapId_=0;_.J.handler_=null;_.J.JSC$17357_forwardChannelTimerId_=null;_.J.JSC$17357_backChannelTimerId_=null;_.J.JSC$17357_deadBackChannelTimerId_=null;_.J.connectionTest_=null;
_.J.useChunked_=null;_.J.JSC$17357_lastArrayId_=-1;_.J.JSC$17357_lastPostResponseArrayId_=-1;_.J.JSC$17357_lastStatusCode_=-1;_.J.JSC$17357_forwardChannelRetryCount_=0;_.J.JSC$17357_backChannelRetryCount_=0;_.J.JSC$17357_channelVersion_=8;var TQQ={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},rhQ=function(W,P,x,I){_.d0.call(this,"timingevent",W);this.size=P;this.rtt=x;this.retries=I};
_.J8(rhQ,_.d0);var ihG=function(W){_.d0.call(this,"serverreachability",W)};
_.J8(ihG,_.d0);UQ.prototype.connect=function(W,P,x,I,O){this.JSC$17353_channelDebug_.debug("connect()");H2(0);this.JSC$17357_path_=P;this.JSC$17357_extraParams_=x||{};I&&O!==void 0&&(this.JSC$17357_extraParams_.OSID=I,this.JSC$17357_extraParams_.OAID=O);this.asyncTest_?(zl((0,_.mx)(this.connectTest_,this,W),100),RKv(this)):this.connectTest_(W)};
UQ.prototype.disconnect=function(){this.JSC$17353_channelDebug_.debug("disconnect()");Fs6(this);if(this.state_==3){var W=this.JSC$17357_nextRid_++,P=this.JSC$17357_forwardChannelUri_.clone();_.aE(P,"SID",this.sid_);_.aE(P,"RID",W);_.aE(P,"TYPE","terminate");XF(this,P);W=new eF(this,this.JSC$17353_channelDebug_,this.sid_,W);W.JSC$17345_type_=2;W.JSC$17345_baseUri_=_.BL(P.clone());(new Image).src=W.JSC$17345_baseUri_.toString();W.JSC$17345_requestStartTime_=Date.now();$c3(W)}q8G(this)};
UQ.prototype.connectTest_=function(W){this.JSC$17353_channelDebug_.debug("connectTest_()");this.connectionTest_=new aRO(this,this.JSC$17353_channelDebug_);this.connectionTest_.JSC$17352_extraHeaders_=this.JSC$17357_extraHeaders_;this.connectionTest_.JSC$17350_parser_=this.JSC$17353_parser_;this.connectionTest_.connect(W)};
var RKv=function(W){W.JSC$17353_channelDebug_.debug("connectChannel_()");W.JSC$17357_ensureInState_(1,0);W.JSC$17357_forwardChannelUri_=bhB(W,W.JSC$17357_path_);Ls6(W)},Fs6=function(W){W.connectionTest_&&(W.connectionTest_.abort(),W.connectionTest_=null);
W.JSC$17357_backChannelRequest_&&(W.JSC$17357_backChannelRequest_.cancel(),W.JSC$17357_backChannelRequest_=null);W.JSC$17357_backChannelTimerId_&&(_.xW.clearTimeout(W.JSC$17357_backChannelTimerId_),W.JSC$17357_backChannelTimerId_=null);WwB(W);W.forwardChannelRequest_&&(W.forwardChannelRequest_.cancel(),W.forwardChannelRequest_=null);W.JSC$17357_forwardChannelTimerId_&&(_.xW.clearTimeout(W.JSC$17357_forwardChannelTimerId_),W.JSC$17357_forwardChannelTimerId_=null)},P7v=function(W,P){if(W.state_==0)throw Error("zk");
W.JSC$17353_outgoingMaps_.length==1E3&&W.JSC$17353_parser_.stringify(P);W.JSC$17353_outgoingMaps_.push(new lRG(W.JSC$17357_nextMapId_++,P));W.state_!=2&&W.state_!=3||Ls6(W)};
UQ.prototype.JSC$17352_isClosed=function(){return this.state_==0};
UQ.prototype.getState=function(){return this.state_};
var Ls6=function(W){W.forwardChannelRequest_||W.JSC$17357_forwardChannelTimerId_||(W.JSC$17357_forwardChannelTimerId_=zl((0,_.mx)(W.JSC$17357_onStartForwardChannelTimer_,W),0),W.JSC$17357_forwardChannelRetryCount_=0)};
UQ.prototype.JSC$17357_onStartForwardChannelTimer_=function(W){this.JSC$17357_forwardChannelTimerId_=null;xKB(this,W)};
var xKB=function(W,P){W.JSC$17353_channelDebug_.debug("startForwardChannel_");if(W.state_==1){if(!P){W.JSC$17353_channelDebug_.debug("open_()");W.JSC$17357_nextRid_=Math.floor(Math.random()*1E5);P=W.JSC$17357_nextRid_++;var x=new eF(W,W.JSC$17353_channelDebug_,"",P);x.JSC$17345_extraHeaders_=W.JSC$17357_extraHeaders_;var I=Ib2(W),O=W.JSC$17357_forwardChannelUri_.clone();_.aE(O,"RID",P);_.aE(O,"CVER","1");XF(W,O);DcB(x,O,I);W.forwardChannelRequest_=x;W.state_=2}}else W.state_==3&&(P?OTd(W,P):W.JSC$17353_outgoingMaps_.length==
0?W.JSC$17353_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):W.forwardChannelRequest_||(OTd(W),W.JSC$17353_channelDebug_.debug("startForwardChannel_ finished, sent request")))},OTd=function(W,P){if(P)if(W.JSC$17357_channelVersion_>6){W.JSC$17353_outgoingMaps_=W.pendingMaps_.concat(W.JSC$17353_outgoingMaps_);
W.pendingMaps_.length=0;var x=W.JSC$17357_nextRid_-1;P=Ib2(W)}else x=P.JSC$17343_rid_,P=P.JSC$17345_postData_;else x=W.JSC$17357_nextRid_++,P=Ib2(W);var I=W.JSC$17357_forwardChannelUri_.clone();_.aE(I,"SID",W.sid_);_.aE(I,"RID",x);_.aE(I,"AID",W.JSC$17357_lastArrayId_);XF(W,I);x=new eF(W,W.JSC$17353_channelDebug_,W.sid_,x,W.JSC$17357_forwardChannelRetryCount_+1);x.JSC$17345_extraHeaders_=W.JSC$17357_extraHeaders_;x.setTimeout(1E4+Math.round(1E4*Math.random()));W.forwardChannelRequest_=x;DcB(x,I,P)},
XF=function(W,P){W.handler_&&(W=W.handler_.JSC$17364_getAdditionalParams())&&_.jU.forEach(W,function(x,I){_.aE(P,I,x)})},Ib2=function(W){var P=Math.min(W.JSC$17353_outgoingMaps_.length,1E3),x=["count="+P];
if(W.JSC$17357_channelVersion_>6&&P>0){var I=W.JSC$17353_outgoingMaps_[0].JSC$17355_mapId;x.push("ofs="+I)}else I=0;for(var O={},B=0;B<P;O={mapId$jscomp$3:void 0},B++){O.mapId$jscomp$3=W.JSC$17353_outgoingMaps_[B].JSC$17355_mapId;var Y=W.JSC$17353_outgoingMaps_[B].map;O.mapId$jscomp$3=W.JSC$17357_channelVersion_<=6?B:O.mapId$jscomp$3-I;try{_.jU.forEach(Y,function(K){return function(Z,d){x.push("req"+K.mapId$jscomp$3+"_"+d+"="+encodeURIComponent(Z))}}(O))}catch(K){x.push("req"+O.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}W.pendingMaps_=W.pendingMaps_.concat(W.JSC$17353_outgoingMaps_.splice(0,P));
return x.join("&")},Ju3=function(W){W.JSC$17357_backChannelRequest_||W.JSC$17357_backChannelTimerId_||(W.JSC$17357_backChannelAttemptId_=1,W.JSC$17357_backChannelTimerId_=zl((0,_.mx)(W.JSC$17357_onStartBackChannelTimer_,W),0),W.JSC$17357_backChannelRetryCount_=0)},nuB=function(W){if(W.JSC$17357_backChannelRequest_||W.JSC$17357_backChannelTimerId_||W.JSC$17357_backChannelRetryCount_>=3)return!1;
W.JSC$17353_channelDebug_.debug("Going to retry GET");W.JSC$17357_backChannelAttemptId_++;W.JSC$17357_backChannelTimerId_=zl((0,_.mx)(W.JSC$17357_onStartBackChannelTimer_,W),BKG(W,W.JSC$17357_backChannelRetryCount_));W.JSC$17357_backChannelRetryCount_++;return!0};
UQ.prototype.JSC$17357_onStartBackChannelTimer_=function(){this.JSC$17357_backChannelTimerId_=null;this.JSC$17353_channelDebug_.debug("Creating new HttpRequest");this.JSC$17357_backChannelRequest_=new eF(this,this.JSC$17353_channelDebug_,this.sid_,"rpc",this.JSC$17357_backChannelAttemptId_);this.JSC$17357_backChannelRequest_.JSC$17345_extraHeaders_=this.JSC$17357_extraHeaders_;this.JSC$17357_backChannelRequest_.JSC$17345_readyStateChangeThrottleMs_=0;var W=this.JSC$17357_backChannelUri_.clone();_.aE(W,
"RID","rpc");_.aE(W,"SID",this.sid_);_.aE(W,"CI",this.useChunked_?"0":"1");_.aE(W,"AID",this.JSC$17357_lastArrayId_);XF(this,W);_.aE(W,"TYPE","xmlhttp");MYQ(this.JSC$17357_backChannelRequest_,W,!0,this.JSC$17357_hostPrefix_,!1);this.JSC$17353_channelDebug_.debug("New Request created")};
var kd=function(W,P,x){W.JSC$17353_channelDebug_.debug("Test Connection Finished");W.useChunked_=W.secondTestResults_==null?x:!W.secondTestResults_;W.JSC$17357_lastStatusCode_=P.JSC$17352_lastStatusCode_;W.asyncTest_||RKv(W)},NQ9=function(W,P){W.JSC$17353_channelDebug_.debug("Test Connection Failed");
W.JSC$17357_lastStatusCode_=P.JSC$17352_lastStatusCode_;bv(W,2)};
UQ.prototype.JSC$17352_onRequestData=function(W,P){if(this.state_!=0&&(this.JSC$17357_backChannelRequest_==W||this.forwardChannelRequest_==W))if(this.JSC$17357_lastStatusCode_=W.JSC$17345_lastStatusCode_,this.forwardChannelRequest_==W&&this.state_==3)if(this.JSC$17357_channelVersion_>7){try{var x=this.JSC$17353_parser_.parse(P)}catch(I){x=null}if(Array.isArray(x)&&x.length==3)if(P=x,P[0]==0)a:if(this.JSC$17353_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17357_backChannelTimerId_)this.JSC$17353_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17357_backChannelRequest_)if(this.JSC$17357_backChannelRequest_.JSC$17345_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17345_requestStartTime_)WwB(this),this.JSC$17357_backChannelRequest_.cancel(),this.JSC$17357_backChannelRequest_=null;else break a;else this.JSC$17353_channelDebug_.warning("We do not have a BackChannel established");nuB(this);H2(19)}else this.JSC$17357_lastPostResponseArrayId_=P[1],W=this.JSC$17357_lastPostResponseArrayId_-this.JSC$17357_lastArrayId_,0<
W&&(P=P[2],this.JSC$17353_channelDebug_.debug(P+" bytes (in "+W+" arrays) are outstanding on the BackChannel"),P<37500&&this.useChunked_&&this.JSC$17357_backChannelRetryCount_==0&&!this.JSC$17357_deadBackChannelTimerId_&&(this.JSC$17357_deadBackChannelTimerId_=zl((0,_.mx)(this.JSC$17357_onBackChannelDead_,this),6E3)));else this.JSC$17353_channelDebug_.debug("Bad POST response data returned"),bv(this,11)}else P!="y2f%"&&(this.JSC$17353_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
bv(this,11));else this.JSC$17357_backChannelRequest_==W&&WwB(this),_.Km(P)||(W=this.JSC$17353_parser_.parse(P),this.onInput_(W))};
UQ.prototype.JSC$17357_onBackChannelDead_=function(){this.JSC$17357_deadBackChannelTimerId_!=null&&(this.JSC$17357_deadBackChannelTimerId_=null,this.JSC$17357_backChannelRequest_.cancel(),this.JSC$17357_backChannelRequest_=null,nuB(this),H2(20))};
var WwB=function(W){W.JSC$17357_deadBackChannelTimerId_!=null&&(_.xW.clearTimeout(W.JSC$17357_deadBackChannelTimerId_),W.JSC$17357_deadBackChannelTimerId_=null)};
UQ.prototype.JSC$17352_onRequestComplete=function(W){this.JSC$17353_channelDebug_.debug("Request complete");if(this.JSC$17357_backChannelRequest_==W){WwB(this);this.JSC$17357_backChannelRequest_=null;var P=2}else if(this.forwardChannelRequest_==W)this.forwardChannelRequest_=null,P=1;else return;this.JSC$17357_lastStatusCode_=W.JSC$17345_lastStatusCode_;if(this.state_!=0)if(W.JSC$17345_successful_)if(P==1){P=W.JSC$17345_postData_?W.JSC$17345_postData_.length:0;W=Date.now()-W.JSC$17345_requestStartTime_;
var x=Cem;x.dispatchEvent(new rhQ(x,P,W,this.JSC$17357_forwardChannelRetryCount_));Ls6(this);this.handler_&&this.handler_.JSC$17364_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Ju3(this);else{x=W.getLastError();if(x==3||x==7||x==0&&this.JSC$17357_lastStatusCode_>0)this.JSC$17353_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17353_channelDebug_.debug("Maybe retrying, last error: "+zKd(x,this.JSC$17357_lastStatusCode_));var I;if(I=P==1)this.forwardChannelRequest_||
this.JSC$17357_forwardChannelTimerId_||this.state_==1||this.JSC$17357_forwardChannelRetryCount_>=2?I=!1:(this.JSC$17353_channelDebug_.debug("Going to retry POST"),this.JSC$17357_forwardChannelTimerId_=zl((0,_.mx)(this.JSC$17357_onStartForwardChannelTimer_,this,W),BKG(this,this.JSC$17357_forwardChannelRetryCount_)),this.JSC$17357_forwardChannelRetryCount_++,I=!0);if(I||P==2&&nuB(this))return;this.JSC$17353_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17353_channelDebug_.debug("Error: HTTP request failed");
switch(x){case 1:bv(this,5);break;case 4:bv(this,10);break;case 3:bv(this,6);break;case 7:bv(this,12);break;default:bv(this,2)}}};
var BKG=function(W,P){var x=5E3+Math.floor(Math.random()*1E4);W.isActive()||(W.JSC$17353_channelDebug_.debug("Inactive channel"),x*=2);return x*P};
UQ.prototype.onInput_=function(W){for(var P=0;P<W.length;P++){var x=W[P];this.JSC$17357_lastArrayId_=x[0];x=x[1];this.state_==2?x[0]=="c"?(this.sid_=x[1],this.JSC$17357_hostPrefix_=x[2],x=x[3],x!=null?this.JSC$17357_channelVersion_=x:this.JSC$17357_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17364_channelOpened(),this.JSC$17357_backChannelUri_=fR4(this,this.JSC$17357_hostPrefix_,this.JSC$17357_path_),Ju3(this)):x[0]=="stop"&&bv(this,7):this.state_==3&&(x[0]=="stop"?bv(this,7):
x[0]!="noop"&&this.handler_&&this.handler_.JSC$17364_channelHandleArray(x),this.JSC$17357_backChannelRetryCount_=0)}};
UQ.prototype.JSC$17357_ensureInState_=function(W){if(!_.N7(arguments,this.state_))throw Error("Ak`"+this.state_);};
var bv=function(W,P){W.JSC$17353_channelDebug_.info("Error code "+P);if(P==2||P==9){var x=null;W.handler_&&(x=null);var I=(0,_.mx)(W.testGoogleComCallback_,W);x||(x=new _.Xu("//www.google.com/images/cleardot.gif"),_.BL(x));va4(x.toString(),1E4,I)}else H2(2);W.onError_(P)};
UQ.prototype.testGoogleComCallback_=function(W){W?(this.JSC$17353_channelDebug_.info("Successfully pinged google.com"),H2(2)):(this.JSC$17353_channelDebug_.info("Failed to ping google.com"),H2(1),this.onError_(8))};
UQ.prototype.onError_=function(W){this.JSC$17353_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$17364_channelError(W);q8G(this);Fs6(this)};
var q8G=function(W){W.state_=0;W.JSC$17357_lastStatusCode_=-1;if(W.handler_)if(W.pendingMaps_.length==0&&W.JSC$17353_outgoingMaps_.length==0)W.handler_.JSC$17364_channelClosed();else{W.JSC$17353_channelDebug_.debug("Number of undelivered maps, pending: "+W.pendingMaps_.length+", outgoing: "+W.JSC$17353_outgoingMaps_.length);var P=_.Lm(W.pendingMaps_),x=_.Lm(W.JSC$17353_outgoingMaps_);W.pendingMaps_.length=0;W.JSC$17353_outgoingMaps_.length=0;W.handler_.JSC$17364_channelClosed(P,x)}},bhB=function(W,
P){P=Xz6(W,null,P);
W.JSC$17353_channelDebug_.debug("GetForwardChannelUri: "+P);return P},fR4=function(W,P,x){P=Xz6(W,W.JSC$17352_shouldUseSecondaryDomains()?P:null,x);
W.JSC$17353_channelDebug_.debug("GetBackChannelUri: "+P);return P},Xz6=function(W,P,x){var I=_.ea(x);
if(I.JSC$7933_domain_!="")P&&_.qm(I,P+"."+I.JSC$7933_domain_),_.LA(I,I.JSC$7933_port_);else{var O=window.location;I=zWB(O.protocol,P?P+"."+O.hostname:O.hostname,+O.port,x)}W.JSC$17357_extraParams_&&_.jU.forEach(W.JSC$17357_extraParams_,function(B,Y){_.aE(I,Y,B)});
_.aE(I,"VER",W.JSC$17357_channelVersion_);XF(W,I);return I};
UQ.prototype.JSC$17352_createXhrIo=function(W){if(W)throw Error("xk");W=new _.E7;W.JSC$7701_withCredentials_=!1;return W};
UQ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
UQ.prototype.notifyServerReachabilityEvent=function(W){var P=Cem;P.dispatchEvent(new ihG(P,W))};
UQ.prototype.JSC$17352_shouldUseSecondaryDomains=function(){return!1};
new $x6;var YkO=function(){};
_.J=YkO.prototype;_.J.JSC$17364_channelOpened=function(){};
_.J.JSC$17364_channelHandleArray=function(){};
_.J.JSC$17364_channelSuccess=function(){};
_.J.JSC$17364_channelError=function(){};
_.J.JSC$17364_channelClosed=function(){};
_.J.JSC$17364_getAdditionalParams=function(){return{}};
_.J.isActive=function(){return!0};var yu9=function(W){W.front_.length===0&&(W.front_=W.back_,W.front_.reverse(),W.back_=[])};
_.J=tnM.prototype;_.J.enqueue=function(W){this.back_.push(W)};
_.J.peek=function(){yu9(this);return _.cd(this.front_)};
_.J.getCount=function(){return this.front_.length+this.back_.length};
_.J.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.J.clear=function(){this.front_=[];this.back_=[]};
_.J.contains=function(W){return _.N7(this.front_,W)||_.N7(this.back_,W)};
_.J.remove=function(W){var P=this.front_;var x=Array.prototype.lastIndexOf.call(P,W,P.length-1);x>=0?(_.TR(P,x),P=!0):P=!1;return P||_.Ft(this.back_,W)};
_.J.getValues=function(){for(var W=[],P=this.front_.length-1;P>=0;--P)W.push(this.front_[P]);P=this.back_.length;for(var x=0;x<P;++x)W.push(this.back_[x]);return W};var fH=function(W){this.JSC$17368_map_=new _.nT;this.size=0;W&&this.addAll(W)},Kwv=function(W){var P=typeof W;
return P=="object"&&W||P=="function"?"o"+_.nM(W):P.charAt(0)+W};
_.J=fH.prototype;_.J.getCount=function(){return this.JSC$17368_map_.size};
_.J.add=function(W){this.JSC$17368_map_.set(Kwv(W),W);this.size=this.JSC$17368_map_.size};
_.J.addAll=function(W){W=_.R1(W);for(var P=W.length,x=0;x<P;x++)this.add(W[x]);this.size=this.JSC$17368_map_.size};
_.J.removeAll=function(W){W=_.R1(W);for(var P=W.length,x=0;x<P;x++)this.remove(W[x]);this.size=this.JSC$17368_map_.size};
_.J.delete=function(W){W=this.JSC$17368_map_.remove(Kwv(W));this.size=this.JSC$17368_map_.size;return W};
_.J.remove=function(W){return this.delete(W)};
_.J.clear=function(){this.JSC$17368_map_.clear();this.size=0};
_.J.isEmpty=function(){return this.JSC$17368_map_.size===0};
_.J.has=function(W){return this.JSC$17368_map_.containsKey(Kwv(W))};
_.J.contains=function(W){return this.JSC$17368_map_.containsKey(Kwv(W))};
_.J.getValues=function(){return this.JSC$17368_map_.getValues()};
_.J.values=function(){return this.JSC$17368_map_.values()};
_.J.clone=function(){return new fH(this)};
_.J.equals=function(W){return this.getCount()==ChB(W)&&ZTm(this,W)};
var ZTm=function(W,P){var x=ChB(P);if(W.getCount()>x)return!1;!(P instanceof fH)&&x>5&&(P=new fH(P));return Adm(W,function(I){var O=P;return O.contains&&typeof O.contains=="function"?O.contains(I):O.containsValue&&typeof O.containsValue=="function"?O.containsValue(I):_.xi(O)||typeof O==="string"?_.N7(O,I):_.jU.containsValue(O,I)})};
fH.prototype.__iterator__=function(){return this.JSC$17368_map_.__iterator__(!1)};
fH.prototype[Symbol.iterator]=function(){return this.values()};var ou4={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(W){return(this._clampValue(W)-this.min)/(this.max-this.min)},
_clampValue:function(W){return Math.min(this.max,Math.max(this.min,this._calcStep(W)))},
_calcStep:function(W){W=parseFloat(W);if(!this.step)return W;W=Math.round((W-this.min)/this.step);return this.step<1?W/(1/this.step)+this.min:W*this.step+this.min},
_validateValue:function(){var W=this._clampValue(this.value);this.value=this.oldValue=isNaN(W)?this.oldValue:W;return this.value!==W},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Sk2;var usO;_.vM({_template:function(){if(usO!==void 0)return usO;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Sk2===void 0&&(Sk2=document.createElement("template"));var I=Sk2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return usO=W},
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(){_.Xm(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(W){W.keyCode===27&&(W.preventDefault(),this.close())},
_track:function(W){if(!this.persistent&&!this.disableSwipe)switch(W.preventDefault(),W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackMove(W);break;case "end":this._trackEnd(W)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var W=this.$.contentContainer.getBoundingClientRect();this._savedWidth=W.width;this._translateOffset=this.position==="left"?W.left:W.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(W){this._trackDetails&&(this._translateDrawer(W.detail.dx+this._translateOffset),this._trackDetails.push({dx:W.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(W){if(this._trackDetails){var P=W.detail.dx+this._translateOffset,x=this.getWidth();P=this.position==="left"?P>=0||P<=-x:P<=0||P>=x;if(!P){var I=this._trackDetails;this._trackDetails=null;this._flingDrawer(W,I);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}x/=2;W.detail.dx<-x?this.opened=this.position==="right":W.detail.dx>x&&(this.opened=this.position==="left");P?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(W,P){for(var x=Date.now(),I=x-100,O,B=0,Y=P.length-1;B<=Y;){var K=B+Y>>1,Z=P[K];Z.timeStamp>=I?(O=Z,Y=K-1):B=K+1}return O?(W.detail.dx-O.dx)/(x-O.timeStamp||1):0},
_flingDrawer:function(W,P){P=this._calculateVelocity(W,P);if(!(Math.abs(P)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;W=W.detail.dx+this._translateOffset;var x=this.getWidth(),I=this.position==="left",O=P>0;O?(P=Math.max(P,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(P=Math.min(P,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");P=this._FLING_INITIAL_SLOPE*(!O&&I?-(W+x):O&&!I?x-W:-W)/P;this._styleTransitionDuration(P);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,P)}},
_styleTransitionDuration:function(W){this.style.transitionDuration=W+"ms";this.$.contentContainer.style.transitionDuration=W+"ms";this.$.scrim.style.transitionDuration=W+"ms"},
_styleTransitionTimingFunction:function(W){this.$.contentContainer.style.transitionTimingFunction=W;this.$.scrim.style.transitionTimingFunction=W},
_translateDrawer:function(W){var P=this.getWidth();this.position==="left"?(W=Math.max(-P,Math.min(W,0)),this.$.scrim.style.opacity=1+W/P):(W=Math.max(0,Math.min(W,P)),this.$.scrim.style.opacity=1-W/P);this.translate3d(W+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var W=this._drawerState;W===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;W!==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=""),W!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var W=_.VS(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"])');W.length>0?(this._firstTabStop=W[0],this._lastTabStop=W[W.length-1]):
this._lastTabStop=this._firstTabStop=null;(W=this.getAttribute("tabindex"))&&parseInt(W,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(W){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||W.keyCode!==9||(W.shiftKey?this._firstTabStop&&_.VS(W).localTarget===this._firstTabStop&&(W.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.VS(W).localTarget===this._lastTabStop&&(W.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(W,P){this.toggleClass("visible",W&&!P,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 dKd;var snG;_.vM({_template:function(){if(snG!==void 0)return snG;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;dKd===void 0&&(dKd=document.createElement("template"));var I=dKd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return snG=W},
is:"tp-yt-paper-progress",behaviors:[ou4],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(W){this.toggleClass("indeterminate",W,this.$.primaryProgress)},
_transformProgress:function(W,P){W.style.transform=W.style.webkitTransform="scaleX("+P/100+")"},
_mainRatioChanged:function(W){this._transformProgress(this.$.primaryProgress,W)},
_progressChanged:function(W,P,x,I,O){W=this._clampValue(W);P=this._clampValue(P);var B=this._calcRatio(W)*100,Y=this._calcRatio(P)*100;this._setSecondaryRatio(B);this._transformProgress(this.$.secondaryProgress,B);this._transformProgress(this.$.primaryProgress,Y);this.secondaryProgress=W;O?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",P);this.setAttribute("aria-valuemin",x);this.setAttribute("aria-valuemax",I)},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false")},
_hideSecondaryProgress:function(W){return W===0}});var vuQ;var mKQ;var VJL=function(){};
_.J=VJL.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._calcRatio=function(){};
_.J._clampValue=function(){};
_.J._calcStep=function(){};
_.J._validateValue=function(){};
_.J._update=function(){};
_.J._setImmediateValue=function(){};
_.J._setExpand=function(){};
_.J._setDragging=function(){};
_.J._setTransiting=function(){};
_.J._setMarkers=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setRatio=function(){};
VJL=_.vM({_template:function(){if(mKQ!==void 0)return mKQ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;vuQ===void 0&&(vuQ=document.createElement("template"));var I=vuQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return mKQ=W},
is:"tp-yt-paper-slider",behaviors:[_.tu,_.CT,_.kSZ,ou4],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&&_.GY(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(W,P,x){this.setAttribute("aria-valuemin",P);this.setAttribute("aria-valuemax",x);this.setAttribute("aria-valuenow",W);this._positionKnob(this._calcRatio(W)*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(W){this._setImmediateValue(this._calcStep(this._calcKnobPosition(W)));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(W){return(this.max-this.min)*W/100+this.min},
_onTrack:function(W){W.stopPropagation();switch(W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackX(W);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(W){this.dragging||this._trackStart(W);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,W.detail.dx*(this._isRTL?-1:1)));W=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(W);W=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(W+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var W=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;W.transform=W.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(W){this._expandKnob();W.preventDefault();this.focus()},
_bartrack:function(W){this._allowBarEvent(W)&&this._onTrack(W)},
_barclick:function(W){this._w=this.$.sliderBar.offsetWidth;var P=this.$.sliderBar.getBoundingClientRect();P=(W.detail.x-P.left)/this._w*100;this._isRTL&&(P=100-P);var x=this.ratio;this._setTransiting(!0);this._positionKnob(P);x===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
W.preventDefault();this.focus()},
_bardown:function(W){this._allowBarEvent(W)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(W))},
_knobTransitionEnd:function(W){W.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(W,P,x,I){I||this._setMarkers([]);P=Math.round((x-P)/this.step);P>W&&(P=W);if(P<0||!isFinite(P))P=0;this._setMarkers(Array(P))},
_mergeClasses:function(W){return Object.keys(W).filter(function(P){return W[P]}).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(W){return!this.ignoreBarTouch||W.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(W){this._isRTL?this._incrementKey(W):this._decrementKey(W)},
_rightKey:function(W){this._isRTL?this._decrementKey(W):this._incrementKey(W)},
_incrementKey:function(W){this.disabled||(W.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),W.preventDefault())},
_decrementKey:function(W){this.disabled||(W.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),W.preventDefault())},
_changeValue:function(W){this.value=W.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(W){W.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.bCb._createRipple.call(this)},
_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=W?"":"none",this._ripple.holdDown=W)}});var tJO;var pT6;var Nq=null,jnM=function(){};
_.J=jnM.prototype;_.J.fit=function(){};
_.J._discoverInfo=function(){};
_.J.resetFit=function(){};
_.J.refit=function(){};
_.J.position=function(){};
_.J.constrain=function(){};
_.J._sizeDimension=function(){};
_.J.__sizeDimension=function(){};
_.J.center=function(){};
_.J.__getNormalizedRect=function(){};
_.J.__getOffscreenArea=function(){};
_.J.__getPosition=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J.toggle=function(){};
_.J.open=function(){};
_.J.close=function(){};
_.J.cancel=function(){};
_.J.invalidateTabbables=function(){};
_.J._ensureSetup=function(){};
_.J._canceledChanged=function(){};
_.J._withBackdropChanged=function(){};
_.J._prepareRenderOpened=function(){};
_.J._finishRenderOpened=function(){};
_.J._finishRenderClosed=function(){};
_.J._preparePositioning=function(){};
_.J._finishPositioning=function(){};
_.J._applyFocus=function(){};
_.J._onCaptureClick=function(){};
_.J._onCaptureFocus=function(){};
_.J._onCaptureEsc=function(){};
_.J._onCaptureTab=function(){};
_.J._onIronResize=function(){};
_.J._onNodesChange=function(){};
_.J.__ensureFirstLastFocusables=function(){};
_.J.__openedChanged=function(){};
_.J.__deraf=function(){};
_.J.__updateScrollObservers=function(){};
_.J.__addScrollListeners=function(){};
_.J.__removeScrollListeners=function(){};
_.J.__isValidScrollAction=function(){};
_.J.__onCaptureScroll=function(){};
_.J.__saveScrollPosition=function(){};
_.J.__restoreScrollPosition=function(){};
_.J._setCanceled=function(){};
jnM=_.vM({_template:function(){if(pT6!==void 0)return pT6;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;tJO===void 0&&(tJO=document.createElement("template"));var I=tJO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);return pT6=W},
is:"tp-yt-paper-toast",behaviors:[_.NK],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(){_.ph._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.b7.requestAvailability()},
show:function(W){typeof W=="string"&&(W={text:W});for(var P in W)P.indexOf("_")===0?_.ph._warn('The property "'+P+'" is private and was not set.'):P in this?this[P]=W[P]:_.ph._warn('The property "'+P+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(W){W&&W.target===this&&W.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Nq&&Nq!==this&&Nq.close(),Nq=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Nq===this&&(Nq=null);_.fT._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(W){this.positionTarget=W},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Qn6=new _.R("disablePersonalizationAction");var u4d=new _.R("showDmaConsentFlowCommand");var dnO=new _.R("showMmgNoticeCommand");var C7Q=new _.R("saveConsentAction");var AuO=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Oi(W)};
_.A(AuO,_.aK);var zNd=_.x5S(AuO);var Gb9=new _.R("updateTopbarAvatarAction");var Eu2=new _.R("channelHandleValidationResultRenderer");var guG=new _.R("generateHandleFromNameResultRenderer");var DKf=new _.R("channelHandleInputRenderer");var MJL=new _.R("copyLinkRenderer");var $K4=new _.R("timedCommand");var wT3=new _.R("clearCookieAction");var hN2=new _.R("getMultiPageMenuAction");var HTy=new _.R("addToGuideSectionAction"),eN2=new _.R("removeFromGuideSectionAction");var cu3=new _.R("updateNotificationsUnseenCountAction");var abO=new _.R("resetChannelUnreadCountCommand");var bTv=new _.R("resetSubscriptionsUnreadDotCommand");var kb2=new _.R("selectLanguageCommand");var g3m=new _.R("sendFeedbackAction");var UK3=new _.R("uploadImageToScottyCommand");var XT4=new _.R("registerPromoCommand");var fbv=new _.R("setPushNotificationsEnabledCommand");var NK3=new _.R("desktopTopbarRenderer");var lbO=new _.R("surveyFollowUpRenderer");var TKv=new _.R("handlesClaimingRadioOptionRenderer");var ruL=new _.R("hotkeyDialogRenderer");var iT3=new _.R("modifyReportFormCommand");var RNd=new _.R("accountLinkCommand");var Fwm=new _.R("accountUnlinkCommand");var qkM=new _.R("logAccountLinkingEventCommand");var Lwy=new _.R("guideCollapsibleEntryRenderer");var W4m=new _.R("guideDownloadsEntryRenderer");var lv=new _.R("guideEntryRenderer");var PG3=new _.R("getLocationCommand");var x3d=new _.R("locationCollectionCommand");var Iyv=new _.R("storiesItemViewModel");var OwM=new _.R("addToRemoteQueueAction");var Jcd=new _.R("insertInRemoteQueueAction");var B66=new _.R("removeFromRemoteQueueAction");var nZ6=new _.R("notificationRenderer");var L79=new _.R("localWatchHistoryCommand");var YtM=new _.R("pdgBuyFlowHeaderRenderer");var yc4=new _.R("pdgColorSliderRenderer");var K49=new _.R("pdgCommentOptionRenderer");var Zwd=new _.R("pdgCommentPreviewRenderer");var oZ6=new _.R("superVodSelectableItemButtonRenderer");var StQ=new _.R("switchButtonRenderer");var up4=new _.R("upsellDialogRenderer");var d3f=new _.R("feedbackQuestionRenderer"),s9G=new _.R("feedbackOptionRenderer");var vZQ=new _.R("sponsorshipsTierRenderer"),m3v=new _.R("sponsorshipsPromotionChannelRenderer");var VOM=new _.R("simpleSurveyMessageRenderer");var gl6=new _.R("invokeInstrumentManagerAction");var tOy=new _.R("logYpcFlowDismissCommand");var pA2=new _.R("logYpcFlowStartCommand");var j9G=new _.R("unlimitedCreateFamilyEndpoint");var Q9d=new _.R("iconBadgeRenderer");var LBm=new _.R("collaborativePlaylistVisibilityValidationRule");var CGd=function(W){_.d0.call(this,"channelMessage");this.message=W};
_.A(CGd,_.d0);var Acy=function(W){_.d0.call(this,"channelError");this.error=W};
_.A(Acy,_.d0);var zEd={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"},GN6={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},EZf={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
gZM={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},D3B={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Tz=function(W){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 _.nT;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";W&&(this.id=W.id||W.name,this.name=W.name,this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=W.app,this.type=W.type||"REMOTE_CONTROL",this.username=W.user||"",this.avatar=W.userAvatarUri||"",this.obfuscatedGaiaId=W.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=W.ownerObfuscatedGaiaId||"",this.theme=W.theme||"u",MOL(this,W.capabilities||""),$33(this,W.compatibleSenderThemes||""),wAL(this,W.experiments||""),
this.remoteControllerUrl=W.remoteControllerUrl||"",this.localChannelEncryptionKey=W.localChannelEncryptionKey||"",this.deviceContext=W.deviceContext,this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=W.pairingType||"unknown",W=W.deviceInfo)&&(W=JSON.parse(W),this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||
0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Tz.prototype.copy=function(){var W={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&&(W.brand=this.brand);
this.model&&(W.model=this.model);this.year&&(W.year=this.year);this.os&&(W.os=this.os);this.osVersion&&(W.osVersion=this.osVersion);this.chipset&&(W.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(W.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(W.mdxDialServerType=this.mdxDialServerType);W=new Tz(W);W.connected=this.connected;W.remoteControllerUrl=this.remoteControllerUrl;W.localChannelEncryptionKey=this.localChannelEncryptionKey;W.deviceContext=
this.deviceContext;return W};
Tz.prototype.equals=function(W){return W?this.id==W.id:!1};
var MOL=function(W,P){W.capabilities.clear();_.nW(P.split(","),_.ou(_.jU.contains,zEd)).forEach(function(x){W.capabilities.add(x)})},$33=function(W,P){W.compatibleSenderThemes.clear();
_.nW(P.split(","),_.ou(_.jU.contains,GN6)).forEach(function(x){W.compatibleSenderThemes.add(x)})},wAL=function(W,P){W.experiments.clear();
P.split(",").forEach(function(x){W.experiments.add(x)})};var hEO=function(W,P){this.action=W;this.params=P||{}};_.J8(pVQ,_.vn);_.J=pVQ.prototype;_.J.JSC$17404_onTick_=function(){this.JSC$17402_interval_=Math.min(3E5,this.JSC$17402_interval_*2);this.JSC$17404_listener_();this.nextTickTime_&&this.start()};
_.J.start=function(){var W=this.JSC$17402_interval_+15E3*Math.random(),P=this.delay_;P.isActive()||P.start(W);this.nextTickTime_=Date.now()+W};
_.J.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.J.isActive=function(){return this.delay_.isActive()};
_.J.reset=function(){this.delay_.stop();this.JSC$17402_interval_=5E3};_.J8(EE,YkO);_.J=EE.prototype;_.J.subscribe=function(W,P,x){return this.pubsub_.subscribe(W,P,x)};
_.J.unsubscribe=function(W,P,x){return this.pubsub_.unsubscribe(W,P,x)};
_.J.unsubscribeByKey=function(W){return this.pubsub_.unsubscribeByKey(W)};
_.J.publish=function(W,P){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.J.dispose=function(){this.JSC$17405_disposed_||(this.JSC$17405_disposed_=!0,_.TD(this.pubsub_),this.disconnect(),_.TD(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17405_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Jn({})})};
_.J.isDisposed=function(){return this.JSC$17405_disposed_};
_.J.connect=function(W,P,x){var I=this,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1)return _.Br(Z,2),I.useAsyncBrowserChannelHandler_?_.S(Z,I.connectPromise_,2):Z.jumpTo(2);_.Jo(Z);if(I.JSC$17405_disposed_||I.JSC$17405_channel_&&I.JSC$17405_channel_.getState()==2)return Z.return();I.sCookie_="";I.reconnectTimer_.stop();I.connectionParams_=W||null;I.connectUi_=P||0;O=I.JSC$17405_pathPrefix_+"/test";B=I.JSC$17405_pathPrefix_+"/bind";Y=new UQ(x?x.firstTestResults:null,x?x.secondTestResults:null,
I.enableAsyncTest_);if(K=I.JSC$17405_channel_)K.handler_=null;Y.handler_=I;I.JSC$17405_channel_=Y;if(I.useAsyncBrowserChannelHandler_)return I.connectPromise_=Hwd(I).then(function(){return eEL(I,O,B,K,x)}),Z.return(I.connectPromise_.then(function(){I.connectPromise_=_.Jn()}));
eEL(I,O,B,K,x);return _.YD(Z,0)})};
var eEL=function(W,P,x,I,O){ccy(W);if(W.JSC$17405_channel_){var B=_.$$("ID_TOKEN"),Y=W.JSC$17405_channel_.JSC$17357_extraHeaders_||{};B?Y["x-youtube-identity-token"]=B:delete Y["x-youtube-identity-token"];W.JSC$17405_channel_.JSC$17357_extraHeaders_=Y}ayy(W);I?(I.getState(),W.JSC$17405_channel_.connect(P,x,W.defaultQueryParams_,I.sid_,I.JSC$17357_lastArrayId_)):O?W.JSC$17405_channel_.connect(P,x,W.defaultQueryParams_,O.sessionId,O.arrayId):W.JSC$17405_channel_.connect(P,x,W.defaultQueryParams_)};
EE.prototype.disconnect=function(W){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Jn())}finally{this.disconnectUi_=W||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),ccy(this),this.JSC$17405_channel_&&(this.JSC$17405_channel_.getState()==3&&xKB(this.JSC$17405_channel_),this.JSC$17405_channel_.disconnect()),this.disconnectUi_=0}};
EE.prototype.sendMessage=function(W,P){var x=this,I;return _.y(function(O){switch(O.nextAddress){case 1:_.Br(O,2);if(!x.useAsyncBrowserChannelHandler_){O.jumpTo(2);break}return _.S(O,x.connectPromise_,2);case 2:_.Jo(O);if(x.JSC$17405_disposed_)return O.return();I={_sc:W};P&&_.jU.extend(I,P);if(x.reconnectTimer_.isActive()||(x.JSC$17405_channel_?x.JSC$17405_channel_.getState():0)==2){x.JSC$17405_pendingMessages_.push(I);O.jumpTo(6);break}if(!x.isChannelOpened()){O.jumpTo(6);break}_.Br(O,8);if(!x.useAsyncBrowserChannelHandler_||
bwG(x,W)){O.jumpTo(8);break}return _.S(O,Hwd(x),8);case 8:_.Jo(O,0,0,1);x.isChannelOpened()&&(bwG(x,W)||ayy(x),ccy(x),P7v(x.JSC$17405_channel_,I));_.YD(O,6,1);break;case 6:_.YD(O,0)}})};
var bwG=function(W,P){return W.enableMdxAuthForConnectionOnly_?!0:W.disableMdxAuthForAdMessages_?Object.values(EZf).includes(P):W.disableMdxAuthForNonPlaybackMessages_?!Object.values(gZM).includes(P):W.disableMdxAuthForShortsMessages_?Object.values(D3B).includes(P):!1};
EE.prototype.JSC$17364_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17405_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)kNf(this);else{var W=this.JSC$17405_pendingMessages_;this.JSC$17405_pendingMessages_=[];var P=W.length;ayy(this);U32(this,W,P);XAQ(this)}else XAQ(this)};
var kNf=function(W){var P,x;_.y(function(I){if(I.nextAddress==1)return _.Br(I,2),_.S(I,Hwd(W),2);_.Jo(I);P=W.JSC$17405_pendingMessages_;W.JSC$17405_pendingMessages_=[];x=P.length;U32(W,P,x);XAQ(W);return _.YD(I,0)})},U32=function(W,P,x){for(var I=0;I<x;++I)P7v(W.JSC$17405_channel_,P[I]);
XAQ(W)},XAQ=function(W){W.publish("handlerOpened");
W.JSC$17405_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.J=EE.prototype;_.J.JSC$17364_channelError=function(W){var P=W==2&&this.JSC$17405_channel_.JSC$17357_lastStatusCode_==401;W==4||P||this.reconnectTimer_.start();this.publish("handlerError",W,P);P=Object.keys(TQQ).find(function(x){return TQQ[x]===W});
this.JSC$17405_channelErrorCounter.increment("BROWSER_CHANNEL",P!=null?P:"UNKNOWN")};
_.J.JSC$17364_channelClosed=function(W,P){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(P)for(var x=P.length,I=0;I<x;++I){var O=P[I].map;O&&this.JSC$17405_pendingMessages_.push(O)}this.JSC$17405_channelClosedCounter.increment("BROWSER_CHANNEL");W&&this.pendingMapsOnClosedCounter.JSC$7834_streamzService.JSC$7692_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",W.length);P&&this.undeliveredMapsOnClosedCounter.JSC$7837_streamzService.JSC$7692_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
P.length)};
_.J.JSC$17364_channelSuccess=function(W,P){P!=null&&W!=null&&this.channelMessageSentCounter.increment()};
_.J.JSC$17364_getAdditionalParams=function(){var W={v:2};this.sCookie_&&(W.gsessionid=this.sCookie_);this.connectUi_!=0&&(W.ui=""+this.connectUi_);this.disconnectUi_!=0&&(W.ui=""+this.disconnectUi_);this.connectionParams_&&_.jU.extend(W,this.connectionParams_);return W};
_.J.JSC$17364_channelHandleArray=function(W){W[0]=="S"?this.sCookie_=W[1]:W[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17405_channel_.disconnect()):this.publish("handlerMessage",new hEO(W[0],W[1]));this.JSC$17405_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.J.isChannelOpened=function(){return!!this.JSC$17405_channel_&&this.JSC$17405_channel_.getState()==3};
var ccy=function(W){if(W.JSC$17405_channel_){var P=W.JSC$17405_getXsrfToken_(),x=W.JSC$17405_channel_.JSC$17357_extraHeaders_||{};P?x["x-youtube-lounge-xsrf-token"]=P:delete x["x-youtube-lounge-xsrf-token"];W.JSC$17405_channel_.JSC$17357_extraHeaders_=x}},Hwd=function(W){if(W.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Jn();
if(!W.enableCachedUpdateAuthorizationHeader_)return fym(W);W.updateAuthorizationHeaderPromise_===null&&(W.updateAuthorizationHeaderPromise_=fym(W));return W.updateAuthorizationHeaderPromise_},fym=function(W){return _.CA(W.getAuthorizationHeader_().then(function(P){N6v(W,P)}).thenCatch(function(){}),function(){W.updateAuthorizationHeaderPromise_=null})},N6v=function(W,P){if(W.JSC$17405_channel_){var x=W.JSC$17405_channel_.JSC$17357_extraHeaders_||{};
P&&Object.keys(P).length>0?x=Object.assign({},x,P):delete x.Authorization;W.JSC$17405_channel_.JSC$17357_extraHeaders_=x}},ayy=function(W){W.getAuthorizationHeaderSync_&&!W.useAsyncBrowserChannelHandler_&&N6v(W,W.getAuthorizationHeaderSync_())};
_.J=EE.prototype;_.J.setLoungeToken=function(W){(this.defaultQueryParams_.loungeIdToken=W)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17405_channel_){var P=this.JSC$17405_channel_.JSC$17357_extraHeaders_||{};W?P["X-YouTube-LoungeId-Token"]=W:delete P["X-YouTube-LoungeId-Token"];this.JSC$17405_channel_.JSC$17357_extraHeaders_=P}};
_.J.getDeviceId=function(){return this.defaultQueryParams_.id};
_.J.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var W=this.reconnectTimer_;W.delay_.fire();W.start()};
_.J.safeReconnect_=function(){var W=this.JSC$17405_channel_,P=0;W.JSC$17357_backChannelRequest_&&P++;W.forwardChannelRequest_&&P++;P==0&&this.connect(this.connectionParams_,this.connectUi_)};var HS=function(W,P){var x=W.basePath;W.supportCors&&(x=W.scheme+"://"+W.domain+W.port+W.basePath);return _.fX(x+P,{})};
gr.prototype.sendRequest=function(W,P,x,I,O,B,Y){W={format:B?"RAW":"JSON",method:W,context:this,timeout:5E3,withCredentials:!!Y,onSuccess:_.ou(this.JSC$17410_onSuccess_,I,!B),onError:_.ou(this.onError_,O),onTimeout:_.ou(this.JSC$17410_onTimeout_,O)};x&&(W.postParams=x,W.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.yO(P,W)};
gr.prototype.JSC$17410_onSuccess_=function(W,P,x,I){P?W(I):W({text:x.responseText})};
gr.prototype.onError_=function(W,P){W(Error("Bk`"+P.status))};
gr.prototype.JSC$17410_onTimeout_=function(W){W(Error("Ck"))};var Mk=function(W,P){return!!P&&(W.id==P||W.uuid==P)},ly4=function(W){return{name:W.name,
screenId:W.id,loungeToken:W.token,dialId:W.uuid,screenIdType:W.idType}},T6B=function(W){return new DY(W)},rc4=function(W){return Array.isArray(W)?_.C5(W,T6B):[]},DU9=function(W){if(!W)return"null";
var P=W.token?".."+W.token.slice(-6):"-",x=W.uuid?".."+W.uuid.slice(-6):"-";return'{name:"'+W.name+'",id:'+W.id.substr(0,6)+"..,token:"+(P+",uuid:"+x+",idType:"+W.idType+"}")},JnO=function(W){return Array.isArray(W)?"["+_.C5(W,DU9).join(",")+"]":"null"};var at2="",hO=null;var r1M=function(W,P){_.tW.call(this);var x=this;this.handler=W();this.handler.subscribe("handlerOpened",this.JSC$17417_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(I,O){x.onError(O)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=P};
_.A(r1M,_.tW);_.J=r1M.prototype;_.J.connect=function(W,P,x){this.handler.connect(W,P,x)};
_.J.disconnect=function(W){this.handler.disconnect(W)};
_.J.reconnect=function(){this.handler.reconnect()};
_.J.getDeviceId=function(){return this.handler.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.J.JSC$17417_onOpened=function(){this.dispatchEvent("channelOpened");var W=this.handler,P=this.currentScreenId;_.Y9("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!W.JSC$17405_channel_.useChunked_,sessionId:W.JSC$17405_channel_.sid_,arrayId:W.JSC$17405_channel_.JSC$17357_lastArrayId_});_.Y9("yt-remote-session-screen-id",P);W=$VQ();P=wVy();_.N7(W,P)||W.push(P);c1G(W);e3M()};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(W){this.dispatchEvent(new CGd(W))};
_.J.onError=function(W){this.dispatchEvent(new Acy(W?1:0))};
_.J.sendMessage=function(W,P){this.handler.sendMessage(W,P)};
_.J.setLoungeToken=function(W){this.handler.setLoungeToken(W)};
_.J.dispose=function(){this.handler.dispose()};var TUm=function(W,P,x){var I=this;x=x===void 0?function(){return""}:x;
var O=O===void 0?new VY3:O;var B=B===void 0?new _.Z8:B;this.pathPrefix=W;this.defaultQueryParams=P;this.getXsrfToken=x;this.JSC$17420_pubsub=B;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new pVQ(function(){var Y;((Y=I.channel)==null?void 0:i0d((new jIf(Y,Y.JSC$17328_channel_)).JSC$17338_channel_.forwardChannelRequestPool_))===0&&I.connect(I.connectionParams,I.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17420_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17420_channelOpenedCounter=new jim;this.JSC$17420_channelClosedCounter=new Qi4;this.JSC$17420_channelMessageReceivedCounter=new A1B;this.JSC$17420_channelErrorCounter=new z32};
TUm.prototype.connect=function(W,P){W=W===void 0?{}:W;P=P===void 0?0:P;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=W,this.connectUi=P,iwO(this),(W=_.$$("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=W: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 hj(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,RE9(this))};
var RE9=function(W){_.uq(W.channel,"w",function(){W.channelState=3;W.reconnectTimer.reset();W.connectionParams=null;W.connectUi=0;for(var P=_.n(W.nonAckedMessagesOnChannelClosed),x=P.next();!x.done;x=P.next())x=x.value,W.channel&&W.channel.send(x);W.nonAckedMessagesOnChannelClosed=[];W.publish("webChannelOpened");W.JSC$17420_channelOpenedCounter.increment("WEB_CHANNEL")});
_.uq(W.channel,"x",function(){W.channelState=0;W.reconnectTimer.isActive()||W.publish("webChannelClosed");var P,x=(P=W.channel)==null?void 0:QIO(new jIf(P,P.JSC$17328_channel_));x&&(W.nonAckedMessagesOnChannelClosed=[].concat(_.ju(x)));W.JSC$17420_channelClosedCounter.increment("WEB_CHANNEL")});
_.uq(W.channel,"z",function(P){var x=P.data;x[0]==="gracefulReconnect"?(W.reconnectTimer.start(),W.channel&&W.channel.close()):W.publish("webChannelMessage",new hEO(x[0],x[1]));W.lastStatusCode=P.statusCode;W.JSC$17420_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.uq(W.channel,"y",function(){W.lastStatusCode===401||W.reconnectTimer.start();W.publish("webChannelError");W.JSC$17420_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.J=TUm.prototype;_.J.disconnect=function(W){this.disconnectUi=W===void 0?0:W;this.reconnectTimer.stop();iwO(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.J.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var W=this.reconnectTimer;W.delay_.fire();W.start()};
_.J.sendMessage=function(W,P){this.channel&&(iwO(this),W=Object.assign({},{_sc:W},P),this.channel.send(W))};
_.J.setLoungeToken=function(W){W||this.reconnectTimer.stop();W?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=W:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var iwO=function(W){var P=W.getXsrfToken();P?W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=P:delete W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.J=TUm.prototype;_.J.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.J.publish=function(W){return this.JSC$17420_pubsub.publish.apply(this.JSC$17420_pubsub,[W].concat(_.ju(_.tH.apply(1,arguments))))};
_.J.subscribe=function(W,P,x){return this.JSC$17420_pubsub.subscribe(W,P,x)};
_.J.unsubscribe=function(W,P,x){return this.JSC$17420_pubsub.unsubscribe(W,P,x)};
_.J.unsubscribeByKey=function(W){return this.JSC$17420_pubsub.unsubscribeByKey(W)};
_.J.dispose=function(){this.JSC$17420_disposed||(this.JSC$17420_disposed=!0,_.TD(this.JSC$17420_pubsub),this.disconnect(),_.TD(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.J.isDisposed=function(){return this.JSC$17420_disposed};var ltd=function(W){_.tW.call(this);this.webChannelService=W();this.webChannelService.subscribe("webChannelOpened",this.JSC$17428_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.A(ltd,_.tW);_.J=ltd.prototype;_.J.connect=function(W,P){this.webChannelService.connect(W,P)};
_.J.disconnect=function(W){this.webChannelService.disconnect(W)};
_.J.reconnect=function(){this.webChannelService.reconnect()};
_.J.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.J.JSC$17428_onOpened=function(){this.dispatchEvent("channelOpened")};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(W){this.dispatchEvent(new CGd(W))};
_.J.onError=function(){this.dispatchEvent(new Acy(this.webChannelService.lastStatusCode===401?1:0))};
_.J.sendMessage=function(W,P){this.webChannelService.sendMessage(W,P)};
_.J.setLoungeToken=function(W){this.webChannelService.setLoungeToken(W)};
_.J.dispose=function(){this.webChannelService.dispose()};var OK2=Date.now(),er=null,xUf=Array(50),bN=-1,IEQ=!1;_.J8(kp,_.F1);kp.prototype.getScreens=function(){return this.screens};
kp.prototype.contains=function(W){return!!Mn6(this.screens,W)};
kp.prototype.get=function(W){return W?$p(this.screens,W):null};
var F4d=function(W,P){var x=W.get(P.uuid)||W.get(P.id);if(x)return W=x.name,x.id=P.id||x.id,x.name=P.name,x.token=P.token,x.uuid=P.uuid||x.uuid,x.name!=W;W.screens.push(P);return!0},qtd=function(W,P){var x=W.screens.length!=P.length;
W.screens=_.nW(W.screens,function(B){return!!Mn6(P,B)});
for(var I=P.length,O=0;O<I;O++)x=F4d(W,P[O])||x;return x},L4y=function(W,P){var x=W.screens.length;
W.screens=_.nW(W.screens,function(I){return!(I||P?!I!=!P?0:I.id==P.id:1)});
return W.screens.length<x};
kp.prototype.info=function(W){cS(this.JSC$17429_logName_,W)};var W8M=function(W,P,x,I,O){_.F1.call(this);this.JSC$17432_http_=W;this.pairingCode_=P;this.deviceId_=x;this.friendlyName_=I;this.enableShortLivedLoungeToken_=O;this.pollIndex_=0;this.JSC$17432_xhr_=null;this.JSC$17432_timer_=NaN};
_.A(W8M,_.F1);_.J=W8M.prototype;_.J.start=function(){!this.JSC$17432_xhr_&&isNaN(this.JSC$17432_timer_)&&this.poll_()};
_.J.stop=function(){this.JSC$17432_xhr_&&(this.JSC$17432_xhr_.abort(),this.JSC$17432_xhr_=null);isNaN(this.JSC$17432_timer_)||(_.nj(this.JSC$17432_timer_),this.JSC$17432_timer_=NaN)};
_.J.disposeInternal=function(){this.stop();_.F1.prototype.disposeInternal.call(this)};
_.J.poll_=function(){this.JSC$17432_timer_=NaN;this.JSC$17432_xhr_=_.yO(HS(this.JSC$17432_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.mx)(this.JSC$17434_onSuccess_,this),onError:(0,_.mx)(this.onError_,this),onTimeout:(0,_.mx)(this.JSC$17434_onTimeout_,this)})};
_.J.JSC$17434_onSuccess_=function(W,P){this.JSC$17432_xhr_=null;W=P.screen||{};W.dialId=this.deviceId_;W.name=this.friendlyName_;P=-1;this.enableShortLivedLoungeToken_&&W.shortLivedLoungeToken&&W.shortLivedLoungeToken.value&&W.shortLivedLoungeToken.refreshIntervalMs&&(W.screenIdType="shortLived",W.loungeToken=W.shortLivedLoungeToken.value,P=W.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new DY(W),P)};
_.J.onError_=function(W){this.JSC$17432_xhr_=null;W.status&&W.status==404?this.pollIndex_>=Pg3.length?this.publish("pairingFailed",Error("Dk")):(W=Pg3[this.pollIndex_],this.JSC$17432_timer_=_.Oy((0,_.mx)(this.poll_,this),W),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+W.status))};
_.J.JSC$17434_onTimeout_=function(){this.JSC$17432_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var Pg3=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.J8(XE,kp);_.J=XE.prototype;_.J.start=function(){UE(this)&&this.publish("screenChange");!_.ye("yt-remote-lounge-token-expiration")&&xGf(this);_.nj(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Oy((0,_.mx)(this.start,this),1E4)};
_.J.add=function(W,P){UE(this);F4d(this,W);Ifm(this,!1);this.publish("screenChange");P(W);W.token||xGf(this)};
_.J.remove=function(W,P){var x=UE(this);L4y(this,W)&&(Ifm(this,!1),x=!0);P(W);x&&this.publish("screenChange")};
_.J.updateName=function(W,P,x,I){var O=UE(this),B=this.get(W.id);B?(B.name!=P&&(B.name=P,Ifm(this,!1),O=!0),x(W)):I(Error("Gk"));O&&this.publish("screenChange")};
_.J.disposeInternal=function(){_.nj(this.loungeTokenRefreshTimer_);XE.superClass_.disposeInternal.call(this)};
var xGf=function(W){if(W.screens.length){var P=_.C5(W.screens,function(I){return I.id}),x=HS(W.JSC$17436_http_,"/pairing/get_lounge_token_batch");
W.JSC$17436_http_.sendRequest("POST",x,{screen_ids:P.join(",")},(0,_.mx)(W.handleLoungeTokens_,W),(0,_.mx)(W.handleLoungeTokenError_,W))}};
XE.prototype.handleLoungeTokens_=function(W){UE(this);var P=this.screens.length;W=W&&W.screens||[];for(var x=W.length,I=0;I<x;++I){var O=W[I],B=this.get(O.screenId);B&&(B.token=O.loungeToken,--P)}Ifm(this,!P);P&&cS(this.JSC$17429_logName_,"Missed "+P+" lounge tokens.")};
XE.prototype.handleLoungeTokenError_=function(W){cS(this.JSC$17429_logName_,"Requesting lounge tokens failed: "+W)};
var UE=function(W){if(_.p("deprecate_pair_servlet_enabled"))return qtd(W,[]);var P=rc4(k7M());P=_.nW(P,function(x){return!x.uuid});
return qtd(W,P)},Ifm=function(W,P){XVB(_.C5(W.screens,ly4));
P&&UVG()};var rP=function(W,P){_.F1.call(this);this.getScreensToCheck_=P;P=(P=_.ye("yt-remote-online-screen-ids")||"")?P.split(","):[];for(var x={},I=this.getScreensToCheck_(),O=I.length,B=0;B<O;++B){var Y=I[B].id;x[Y]=_.N7(P,Y)}this.screenIdSet_=x;this.JSC$17439_http_=W;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Og4("Initialized with "+(0,_.GQ)(this.screenIdSet_))};
_.A(rP,_.F1);rP.prototype.isOnline=function(W){return!!this.screenIdSet_[W]};
rP.prototype.start=function(){var W=parseInt(_.ye("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.O1()-144E5<W?0:W)?JN3(this):(this.fastCheckEndTime_=_.O1()+3E5,_.Y9("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
rP.prototype.isEmpty=function(){return _.jU.isEmpty(this.screenIdSet_)};
rP.prototype.update=function(){Og4("Updating availability on schedule.");var W=this.getScreensToCheck_(),P=_.jU.filter(this.screenIdSet_,function(x,I){return x&&!!$p(W,I)},this);
Bxm(this,P)};
var nPm=function(W,P,x){var I=HS(W.JSC$17439_http_,"/pairing/get_screen_availability");W.JSC$17439_http_.sendRequest("POST",I,{lounge_token:P.token},(0,_.mx)(function(O){O=O.screens||[];for(var B=O.length,Y=0;Y<B;++Y)if(O[Y].loungeToken==P.token){x(O[Y].status=="online");return}x(!1)},W),(0,_.mx)(function(){x(!1)},W))};
rP.prototype.disposeInternal=function(){_.nj(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.F1.prototype.disposeInternal.call(this)};
var Bxm=function(W,P){a:if(_.jU.getCount(P)!=_.jU.getCount(W.screenIdSet_))var x=!1;else{x=_.jU.getKeys(P);for(var I=x.length,O=0;O<I;++O)if(!W.screenIdSet_[x[O]]){x=!1;break a}x=!0}x||(Og4("Updated online screens: "+(0,_.GQ)(W.screenIdSet_)),W.screenIdSet_=P,W.publish("screenChange"));YxM(W)},JN3=function(W){isNaN(W.refreshTimer_)||_.nj(W.refreshTimer_);
W.refreshTimer_=_.Oy((0,_.mx)(W.requestScreenAvailability_,W),W.fastCheckEndTime_>0&&W.fastCheckEndTime_<_.O1()?2E4:1E4)};
rP.prototype.requestScreenAvailability_=function(){_.nj(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var W=yNm(this);if(_.jU.getCount(W)){var P=HS(this.JSC$17439_http_,"/pairing/get_screen_availability"),x={lounge_token:_.jU.getKeys(W).join(",")};this.currentRequest_=this.JSC$17439_http_.sendRequest("POST",P,x,(0,_.mx)(this.onScreenAvailability_,this,W),(0,_.mx)(this.onScreenAvailabilityError_,this))}else Bxm(this,{}),JN3(this)};
rP.prototype.onScreenAvailability_=function(W,P){this.currentRequest_=null;var x=_.jU.getKeys(yNm(this));if(_.oW(x,_.jU.getKeys(W))){P=P.screens||[];x={};for(var I=P.length,O=0;O<I;++O)x[W[P[O].loungeToken]]=P[O].status=="online";Bxm(this,x);JN3(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
rP.prototype.onScreenAvailabilityError_=function(W){this.warn_("Screen availability failed: "+W);this.currentRequest_=null;JN3(this)};
var Og4=function(W){cS("OnlineScreenService",W)};
rP.prototype.warn_=function(W){cS("OnlineScreenService",W)};
var yNm=function(W){var P={};_.bP(W.getScreensToCheck_(),function(x){x.token?P[x.token]=x.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return P},YxM=function(W){W=_.jU.getKeys(_.jU.filter(W.screenIdSet_,function(P){return P}));
W.sort(_.Z3);W.length?_.Y9("yt-remote-online-screen-ids",W.join(","),60):_.K6("yt-remote-online-screen-ids")};_.J8(f8,kp);_.J=f8.prototype;_.J.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.J.add=function(W,P,x){this.localScreenService_.add(W,P,x)};
_.J.remove=function(W,P,x){this.localScreenService_.remove(W,P,x);this.onlineScreenService_.update()};
_.J.updateName=function(W,P,x,I){this.localScreenService_.contains(W)?this.localScreenService_.updateName(W,P,x,I):(W="Updating name of unknown screen: "+W.name,cS(this.JSC$17429_logName_,W),I(Error(W)))};
_.J.getScreens=function(W){return W?this.screens:ijG(this.screens,_.nW(this.automaticScreens_,function(P){return!this.contains(P)},this))};
_.J.JSC$17444_getOnlineScreens=function(){return _.nW(this.getScreens(!0),function(W){return this.onlineScreenService_.isOnline(W.id)},this)};
var ZgQ=function(W,P,x,I,O,B){W.info("getAutomaticScreenByIds "+x+" / "+P);x||(x=W.deviceToScreenId_[P]);var Y=W.getScreens(),K=x?$p(Y,x):null;x&&(W.disableAutomaticScreenCache_||K)||(K=$p(Y,P));if(K){K.uuid=P;var Z=iv(W,K);nPm(W.onlineScreenService_,Z,function(d){O(d?Z:null)})}else x?K8v(W,x,(0,_.mx)(function(d){var v=iv(this,new DY({name:I,
screenId:x,loungeToken:d,dialId:P||""}));nPm(this.onlineScreenService_,v,function(m){O(m?v:null)})},W),B):O(null)};
f8.prototype.JSC$17444_getScreenByPollingPairingCode=function(W,P,x,I,O,B){var Y=this;this.info("getDialScreenByPairingCode "+W+" / "+P);var K=new W8M(this.JSC$17442_http_,W,P,x,I);K.subscribe("pairingComplete",function(Z,d){_.TD(K);O(iv(Y,Z),d)});
K.subscribe("pairingFailed",function(Z){_.TD(K);B(Z)});
K.start();return(0,_.mx)(K.stop,K)};
var oPf=function(W,P){for(var x=W.screens.length,I=0;I<x;++I)if(W.screens[I].name==P)return W.screens[I];return null};
f8.prototype.JSC$17444_getScreenByPairingCode=function(W,P,x,I){_.yO(HS(this.JSC$17442_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:W},timeout:5E3,onSuccess:(0,_.mx)(function(O,B){O=new DY(B.screen||{});if(!O.name||oPf(this,O.name)){a:{B=O.name;for(var Y=2,K=P(B,Y);oPf(this,K);){Y++;if(Y>20)break a;K=P(B,Y)}B=K}O.name=B}x(iv(this,O))},this),
onError:(0,_.mx)(function(O){I(Error("Hk`"+O.status))},this),
onTimeout:(0,_.mx)(function(){I(Error("Ik"))},this)})};
var SxL=function(W,P,x){nPm(W.onlineScreenService_,P,x)};
f8.prototype.disposeInternal=function(){_.TD(this.localScreenService_);_.TD(this.onlineScreenService_);f8.superClass_.disposeInternal.call(this)};
var K8v=function(W,P,x,I){W.info("requestLoungeToken_ for "+P);var O={postParams:{screen_ids:P},method:"POST",context:W,onSuccess:function(B,Y){B=Y&&Y.screens||[];B[0]&&B[0].screenId==P?x(B[0].loungeToken):I(Error("Jk"))},
onError:function(){I(Error("Kk"))}};
_.yO(HS(W.JSC$17442_http_,"/pairing/get_lounge_token_batch"),O)},uz3=function(W){W.screens=W.localScreenService_.getScreens();
for(var P=_.jU.transpose(W.deviceToScreenId_),x=W.screens.length,I=0;I<x;++I){var O=W.screens[I];O.uuid=P[O.id]||""}W.info("Updated manual screens: "+JnO(W.screens))};
f8.prototype.handleScreenChange_=function(){uz3(this);this.publish("screenChange");this.onlineScreenService_.update()};
var BwG=function(W){dG2(W);W.localScreenService_=new XE(W.JSC$17442_http_);W.localScreenService_.subscribe("screenChange",(0,_.mx)(W.handleScreenChange_,W));uz3(W);W.disableAutomaticScreenCache_||(W.automaticScreens_=rc4(_.ye("yt-remote-automatic-screen-cache")||[]));dG2(W);W.info("Initializing automatic screens: "+JnO(W.automaticScreens_));W.onlineScreenService_=new rP(W.JSC$17442_http_,(0,_.mx)(W.getScreens,W,!0));W.onlineScreenService_.subscribe("screenChange",(0,_.mx)(function(){this.publish("onlineScreenChange")},
W))},iv=function(W,P){var x=W.get(P.id);
x?(x.uuid=P.uuid,P=x):((x=$p(W.automaticScreens_,P.uuid))?(x.id=P.id,x.token=P.token,P=x):W.automaticScreens_.push(P),W.disableAutomaticScreenCache_||sm3(W));dG2(W);W.deviceToScreenId_[P.uuid]=P.id;_.Y9("yt-remote-device-id-map",W.deviceToScreenId_,31536E3);return P},sm3=function(W){W=_.nW(W.automaticScreens_,function(P){return P.idType!="shortLived"});
_.Y9("yt-remote-automatic-screen-cache",_.C5(W,ly4))},dG2=function(W){W.deviceToScreenId_=_.ye("yt-remote-device-id-map")||{}};
f8.prototype.dispose=f8.prototype.dispose;_.J8(Nk,_.F1);var RH=function(W,P){W.screen_=P;W.publish("sessionScreen",W.screen_)},vPf=function(W,P){W.screen_&&(W.screen_.token=P,iv(W.JSC$17446_screenService_,W.screen_));
W.publish("sessionScreen",W.screen_)};
Nk.prototype.onSessionStopped=function(W){this.isDisposed()||(W&&(FF(this,""+W),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Nk.prototype.info=function(W){cS(this.JSC$17446_logName_,W)};
var FF=function(W,P){cS(W.JSC$17446_logName_,P)};
Nk.prototype.JSC$17448_getCastSession=function(){return null};
Nk.prototype.setDisplayStatus=function(W){var P=this.receiver_;W?(P.displayStatus=new chrome.cast.ReceiverDisplayStatus(W,[]),P.displayStatus.showStop=!0):P.displayStatus=null;chrome.cast.setReceiverDisplayStatus(P,(0,_.mx)(function(){this.info("Updated receiver status for "+P.friendlyName+": "+W)},this),(0,_.mx)(function(){FF(this,"Failed to update receiver status for: "+P.friendlyName)},this))};
Nk.prototype.disposeInternal=function(){this.setDisplayStatus("");Nk.superClass_.disposeInternal.call(this)};var qq=function(W,P,x){Nk.call(this,W,P,"CastSession");var I=this;this.config_=x;this.JSC$17451_session_=null;this.JSC$17451_boundSessionUpdate_=(0,_.mx)(this.JSC$17453_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.mx)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Oy(function(){mGy(I,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17451_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17451_isInitLoungeToken_=!1;this.JSC$17451_lastLoungeTokenRefreshError_="unknown"};
_.A(qq,Nk);_.J=qq.prototype;
_.J.setCastSession=function(W){if(this.JSC$17451_session_){if(this.JSC$17451_session_==W)return;FF(this,"Overriding cast session with new session object");Vv2(this);this.JSC$17451_isInitLoungeToken_=!1;this.JSC$17451_lastLoungeTokenRefreshError_="unknown";this.JSC$17451_session_.removeUpdateListener(this.JSC$17451_boundSessionUpdate_);this.JSC$17451_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17451_session_=W;this.JSC$17451_session_.addUpdateListener(this.JSC$17451_boundSessionUpdate_);this.JSC$17451_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);tv9(this,"getMdxSessionStatus")};
_.J.launchWithParams=function(W){this.info("launchWithParams no-op for Cast: "+(0,_.GQ)(W))};
_.J.stop=function(){if(this.JSC$17451_session_)this.JSC$17451_session_.stop((0,_.mx)(function(){this.onSessionStopped()},this),(0,_.mx)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.J.setDisplayStatus=function(){};
_.J.disposeInternal=function(){this.info("disposeInternal");Vv2(this);this.JSC$17451_session_&&(this.JSC$17451_session_.removeUpdateListener(this.JSC$17451_boundSessionUpdate_),this.JSC$17451_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17451_session_=null;Nk.prototype.disposeInternal.call(this)};
var jm6=function(W,P){_.nj(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0;P==0?pKM(W):W.getLoungeTokenTimeoutKey_=_.Oy(function(){pKM(W)},P)},pKM=function(W){tv9(W,"getLoungeToken");
_.nj(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=_.Oy(function(){QmQ(W,null)},3E4)},tv9=function(W,P){W.info("sendYoutubeMessage_: "+P+" "+(0,_.GQ)(void 0));
var x={};x.type=P;W.JSC$17451_session_?W.JSC$17451_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",x,function(){},(0,_.mx)(function(){FF(this,"Failed to send message: "+P+".")},W)):FF(W,"Sending yt message without session: "+(0,_.GQ)(x))};
qq.prototype.onYoutubeMessage_=function(W,P){if(!this.isDisposed())if(P)if(P=(0,_.jn)(P),_.Jw(P))switch(W=""+P.type,P=P.data||{},this.info("onYoutubeMessage_: "+W+" "+(0,_.GQ)(P)),W){case "mdxSessionStatus":mGy(this,P);break;case "loungeToken":QmQ(this,P);break;default:FF(this,"Unknown youtube message: "+W)}else FF(this,"Unable to parse message.");else FF(this,"No data in message.")};
var Cg2=function(W,P){if(P)W.info("onConnectedScreenId_: Received screenId: "+P),W.screen_&&W.screen_.id==P||W.getScreen_(P,function(x){RH(W,x)},function(){return W.onSessionStopped()},5);
else W.onSessionStopped(Error("Nk"))},zlM=function(W,P,x){W.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(P));
var I=new DY(P);ANG(W,I,function(O){O?(W.JSC$17451_isInitLoungeToken_=!0,iv(W.JSC$17446_screenService_,I),RH(W,I),W.JSC$17451_lastLoungeTokenRefreshError_="unknown",jm6(W,x)):(_.hQ(Error("Ok`"+JSON.stringify(P))),W.onSessionStopped())},5)},mGy=function(W,P){_.nj(W.sessionStatusTimeoutKey_);
W.sessionStatusTimeoutKey_=0;if(P)W.config_.enableCastLoungeToken&&P.loungeToken?P.deviceId?W.screen_&&W.screen_.uuid==P.deviceId||(P.loungeTokenRefreshIntervalMs?zlM(W,{name:W.receiver_.friendlyName,screenId:P.screenId,loungeToken:P.loungeToken,dialId:P.deviceId,screenIdType:"shortLived"},P.loungeTokenRefreshIntervalMs):(_.hQ(Error("Qk`"+JSON.stringify(P))),Cg2(W,P.screenId))):(_.hQ(Error("Pk`"+JSON.stringify(P))),Cg2(W,P.screenId)):Cg2(W,P.screenId);else W.onSessionStopped(Error("Nk"))},QmQ=function(W,
P){_.nj(W.onLoungeTokenTimeoutKey_);
W.onLoungeTokenTimeoutKey_=0;var x=null;if(P)if(P.loungeToken){var I;((I=W.screen_)==null?void 0:I.token)==P.loungeToken&&(x="staleLoungeToken")}else x="missingLoungeToken";else x="noLoungeTokenResponse";x?(W.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(P)+", error: "+x)),W.JSC$17451_lastLoungeTokenRefreshError_=x,jm6(W,3E4)):(vPf(W,P.loungeToken),W.JSC$17451_isInitLoungeToken_=!1,W.JSC$17451_lastLoungeTokenRefreshError_="unknown",jm6(W,P.loungeTokenRefreshIntervalMs))};
qq.prototype.getScreen_=function(W,P,x,I){_.nj(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;ZgQ(this.JSC$17446_screenService_,this.receiver_.label,W,this.receiver_.friendlyName,(0,_.mx)(function(O){O?P(O):I>=0?(FF(this,"Screen "+W+" appears to be offline. "+I+" retries left."),this.getScreenTimeoutKey_=_.Oy((0,_.mx)(this.getScreen_,this,W,P,x,I-1),300)):x(Error("Rk"))},this),x)};
var ANG=function(W,P,x,I){_.nj(W.JSC$17451_checkScreenAvailabilityTimeoutKey_);W.JSC$17451_checkScreenAvailabilityTimeoutKey_=0;SxL(W.JSC$17446_screenService_,P,function(O){O||I<0?x(O):W.JSC$17451_checkScreenAvailabilityTimeoutKey_=_.Oy(function(){ANG(W,P,x,I-1)},300)})};
qq.prototype.JSC$17448_getCastSession=function(){return this.JSC$17451_session_};
qq.prototype.JSC$17453_onSessionUpdate_=function(W){this.isDisposed()||W||(FF(this,"Cast session died."),this.onSessionStopped())};
var Vv2=function(W){_.nj(W.getScreenTimeoutKey_);W.getScreenTimeoutKey_=0;_.nj(W.JSC$17451_checkScreenAvailabilityTimeoutKey_);W.JSC$17451_checkScreenAvailabilityTimeoutKey_=0;_.nj(W.sessionStatusTimeoutKey_);W.sessionStatusTimeoutKey_=0;_.nj(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=0;_.nj(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0};var LH=function(W,P,x,I){Nk.call(this,W,P,"DialSession");this.config_=I;this.JSC$17455_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17455_theme_=x;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17455_deferredLaunchDeadlineTimer_=NaN;this.JSC$17455_boundSessionUpdate_=(0,_.mx)(this.JSC$17457_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17455_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17455_isInitLoungeToken_=!1;this.JSC$17455_lastLoungeTokenRefreshError_="unknown"};
_.A(LH,Nk);LH.prototype.setCastSession=function(W){this.JSC$17455_session_=W;this.JSC$17455_session_.addUpdateListener(this.JSC$17455_boundSessionUpdate_)};
LH.prototype.launchWithParams=function(W){this.connectData_=W;this.deferredLaunch_()};
LH.prototype.stop=function(){Gsm(this);if(this.JSC$17455_session_)this.JSC$17455_session_.stop((0,_.mx)(this.onSessionStopped,this,null),(0,_.mx)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
LH.prototype.disposeInternal=function(){Gsm(this);this.JSC$17455_session_&&this.JSC$17455_session_.removeUpdateListener(this.JSC$17455_boundSessionUpdate_);this.JSC$17455_session_=null;Nk.prototype.disposeInternal.call(this)};
var EPG=function(W){var P;return!!(W.config_.enableDialLoungeToken&&((P=W.JSC$17455_session_)==null?0:P.getDialAppInfo))},gP3=function(W){W.cancelPolling_=W.JSC$17446_screenService_.JSC$17444_getScreenByPollingPairingCode(W.reversePairingCode_,W.receiver_.label,W.receiver_.friendlyName,EPG(W),function(P,x){W.cancelPolling_=function(){};
W.JSC$17455_isInitLoungeToken_=!0;RH(W,P);P.idType=="shortLived"&&x>0&&WC(W,x)},function(P){W.cancelPolling_=function(){};
W.onSessionStopped(P)})};
LH.prototype.JSC$17457_onSessionUpdate_=function(W){this.isDisposed()||W||(FF(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var DGO=function(W){var P={};P.pairingCode=W.reversePairingCode_;P.theme=W.JSC$17455_theme_;NUm()&&(P.env_useStageMdx=1);return _.Kj(P)},MvO=function(W){return new Promise(function(P){W.reversePairingCode_=ga4();
if(W.connectData_){var x=new chrome.cast.DialLaunchResponse(!0,DGO(W));P(x);gP3(W)}else W.deferredLaunch_=function(){_.nj(W.JSC$17455_deferredLaunchDeadlineTimer_);W.deferredLaunch_=function(){};
W.JSC$17455_deferredLaunchDeadlineTimer_=NaN;var I=new chrome.cast.DialLaunchResponse(!0,DGO(W));P(I);gP3(W)},W.JSC$17455_deferredLaunchDeadlineTimer_=_.Oy(function(){W.deferredLaunch_()},100)})},wKf=function(W,P,x){W.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(P));
var I=new DY(P);return(new Promise(function(O){$GB(W,I,function(B){B?(W.JSC$17455_isInitLoungeToken_=!0,iv(W.JSC$17446_screenService_,I),RH(W,I),WC(W,x)):_.hQ(Error("Tk`"+JSON.stringify(P)));O(B)},5)})).then(function(O){return O?new chrome.cast.DialLaunchResponse(!1):MvO(W)})},hl9=function(W,P){var x=W.launchData_.receiver.label,I=W.receiver_.friendlyName;
return(new Promise(function(O){ZgQ(W.JSC$17446_screenService_,x,P,I,function(B){B&&B.token&&RH(W,B);O(B)},function(B){FF(W,"Failed to get DIAL screen: "+B);
O(null)})})).then(function(O){return O&&O.token?new chrome.cast.DialLaunchResponse(!1):MvO(W)})},$GB=function(W,P,x,I){_.nj(W.JSC$17455_checkScreenAvailabilityTimeoutKey_);
W.JSC$17455_checkScreenAvailabilityTimeoutKey_=0;SxL(W.JSC$17446_screenService_,P,function(O){O||I<0?x(O):W.JSC$17455_checkScreenAvailabilityTimeoutKey_=_.Oy(function(){$GB(W,P,x,I-1)},300)})},WC=function(W,P){W.info("getDialAppInfoWithTimeout_ "+P);
EPG(W)&&(_.nj(W.getDialAppInfoTimeoutKey_),W.getDialAppInfoTimeoutKey_=0,P==0?Hgy(W):W.getDialAppInfoTimeoutKey_=_.Oy(function(){Hgy(W)},P))},Hgy=function(W){EPG(W)&&W.JSC$17455_session_.getDialAppInfo(function(P){W.info("getDialAppInfo dialLaunchData: "+JSON.stringify(P));
P=P.extraData||{};var x=null;if(P.loungeToken){var I;((I=W.screen_)==null?void 0:I.token)==P.loungeToken&&(x="staleLoungeToken")}else x="missingLoungeToken";x?(W.JSC$17455_lastLoungeTokenRefreshError_=x,WC(W,3E4)):(W.JSC$17455_isInitLoungeToken_=!1,W.JSC$17455_lastLoungeTokenRefreshError_="unknown",vPf(W,P.loungeToken),WC(W,P.loungeTokenRefreshIntervalMs))},function(P){W.info("getDialAppInfo error: "+P);
W.JSC$17455_lastLoungeTokenRefreshError_="noLoungeTokenResponse";WC(W,3E4)})},Gsm=function(W){_.nj(W.JSC$17455_checkScreenAvailabilityTimeoutKey_);
W.JSC$17455_checkScreenAvailabilityTimeoutKey_=0;_.nj(W.getDialAppInfoTimeoutKey_);W.getDialAppInfoTimeoutKey_=0;W.cancelPolling_();W.cancelPolling_=function(){};
_.nj(W.JSC$17455_deferredLaunchDeadlineTimer_)};var PC=function(W,P){Nk.call(this,W,P,"ManualSession");this.JSC$17459_deferredLaunchDeadlineTimer_=_.Oy((0,_.mx)(this.launchWithParams,this,null),150)};
_.A(PC,Nk);PC.prototype.stop=function(){this.onSessionStopped()};
PC.prototype.setCastSession=function(){};
PC.prototype.launchWithParams=function(){_.nj(this.JSC$17459_deferredLaunchDeadlineTimer_);this.JSC$17459_deferredLaunchDeadlineTimer_=NaN;var W=$p(this.JSC$17446_screenService_.getScreens(),this.receiver_.label);if(W)RH(this,W);else this.onSessionStopped(Error("Uk"))};
PC.prototype.disposeInternal=function(){_.nj(this.JSC$17459_deferredLaunchDeadlineTimer_);this.JSC$17459_deferredLaunchDeadlineTimer_=NaN;Nk.prototype.disposeInternal.call(this)};var iN=function(W,P){_.F1.call(this);this.config_=P;this.JSC$17462_screenService_=W;this.JSC$17462_appId_=P.appId||"233637DE";this.JSC$17462_theme_=P.theme||"cl";this.disableDial_=P.disableCastApi||!1;this.forceMirroring_=P.forceMirroring||!1;this.JSC$17462_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.mx)(this.onReceiverAction_,this)};
_.A(iN,_.F1);
iN.prototype.init=function(W,P){chrome.cast.timeout.requestSession=3E4;var x=new chrome.cast.SessionRequest(this.JSC$17462_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.p("desktop_enable_cast_connect")&&(x.androidReceiverCompatible=!0);this.disableDial_||(x.dialRequest=new chrome.cast.DialRequest("YouTube"));var I=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;W=W||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var O=(0,_.mx)(this.onReceiverUpdated_,
this);x=new chrome.cast.ApiConfig(x,(0,_.mx)(this.onSessionEstablished_,this),O,I,W);x.customDialLaunchCallback=(0,_.mx)(this.onDialLaunchRequested_,this);chrome.cast.initialize(x,(0,_.mx)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),L1d(),this.JSC$17462_screenService_.subscribe("onlineScreenChange",(0,_.mx)(this.JSC$17464_onScreenChange_,this)),this.customReceivers_=elf(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.mx)(function(B){this.warn_("Failed to set initial custom receivers: "+(0,_.GQ)(B))},this)),this.publish("yt-remote-cast2-availability-change",xg(this)),P(!0))},this),(0,_.mx)(function(B){this.warn_("Failed to initialize API: "+(0,_.GQ)(B));
P(!1)},this))};
iN.prototype.setConnectedScreenStatus=function(W,P){IL("Setting connected screen ID: "+W+" -> "+P);if(this.JSC$17462_session_){var x=this.JSC$17462_session_.screen_;if(!W||x&&x.id!=W)IL("Unsetting old screen status: "+this.JSC$17462_session_.receiver_.friendlyName),OG(this,null)}if(W&&P){if(!this.JSC$17462_session_){W=$p(this.JSC$17462_screenService_.getScreens(),W);if(!W){IL("setConnectedScreenStatus: Unknown screen.");return}if(W.idType=="shortLived"){IL("setConnectedScreenStatus: Screen with id type to be short lived.");
return}x=cNd(this,W);x||(IL("setConnectedScreenStatus: Connected receiver not custom..."),x=new chrome.cast.Receiver(W.uuid?W.uuid:W.id,W.name),x.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(x),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.mx)(function(I){this.warn_("Failed to set initial custom receivers: "+(0,_.GQ)(I))},this)));
IL("setConnectedScreenStatus: new active receiver: "+x.friendlyName);OG(this,new PC(this.JSC$17462_screenService_,x),!0)}this.JSC$17462_session_.setDisplayStatus(P)}else IL("setConnectedScreenStatus: no screen.")};
var cNd=function(W,P){return P?_.bC(W.customReceivers_,function(x){return Mk(P,x.label)},W):null};
iN.prototype.setLaunchParams=function(W){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17462_session_?this.JSC$17462_session_.launchWithParams(W):this.warn_("Setting connection data without a session")};
iN.prototype.JSC$17464_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17462_session_?(this.JSC$17462_session_.stop(),OG(this,null)):IL("Stopping non-existing session")};
iN.prototype.requestSession=function(){chrome.cast.requestSession((0,_.mx)(this.onSessionEstablished_,this),(0,_.mx)(this.onSessionRequestFailed_,this))};
iN.prototype.disposeInternal=function(){this.JSC$17462_screenService_.unsubscribe("onlineScreenChange",(0,_.mx)(this.JSC$17464_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Ft(_.eL("yt.mdx.remote.debug.handlers_")||[],R3d);_.TD(this.JSC$17462_session_);_.F1.prototype.disposeInternal.call(this)};
var IL=function(W){cS("Controller",W)};
iN.prototype.warn_=function(W){cS("Controller",W)};
var R3d=function(W){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(W)},xg=function(W){return W.hasCastReceiver_||!!W.customReceivers_.length||!!W.JSC$17462_session_},OG=function(W,P,x){P!=W.JSC$17462_session_&&(_.TD(W.JSC$17462_session_),(W.JSC$17462_session_=P)?(x?W.publish("yt-remote-cast2-receiver-resumed",P.receiver_):W.publish("yt-remote-cast2-receiver-selected",P.receiver_),P.subscribe("sessionScreen",(0,_.mx)(W.onSessionScreen_,W,P)),P.subscribe("sessionFailed",
function(){return af2(W,P)}),P.screen_?W.publish("yt-remote-cast2-session-change",P.screen_):x&&W.JSC$17462_session_.launchWithParams(null)):W.publish("yt-remote-cast2-session-change",null))},af2=function(W,P){W.JSC$17462_session_==P&&W.publish("yt-remote-cast2-session-failed")};
_.J=iN.prototype;_.J.onSessionScreen_=function(W,P){this.JSC$17462_session_==W&&(P||OG(this,null),this.publish("yt-remote-cast2-session-change",P))};
_.J.onReceiverAction_=function(W,P){if(!this.isDisposed())if(W)switch(W.friendlyName=chrome.cast.unescape(W.friendlyName),IL("onReceiverAction_ "+W.label+" / "+W.friendlyName+"-- "+P),P){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17462_session_)if(this.JSC$17462_session_.receiver_.label!=W.label)IL("onReceiverAction_: Stopping active receiver: "+this.JSC$17462_session_.receiver_.friendlyName),this.JSC$17462_session_.stop();else{IL("onReceiverAction_: Casting to active receiver.");this.JSC$17462_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17462_session_.screen_);break}switch(W.receiverType){case chrome.cast.ReceiverType.CUSTOM:OG(this,new PC(this.JSC$17462_screenService_,W));break;case chrome.cast.ReceiverType.DIAL:OG(this,new LH(this.JSC$17462_screenService_,W,this.JSC$17462_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:OG(this,new qq(this.JSC$17462_screenService_,W,this.config_));break;default:this.warn_("Unknown receiver type: "+W.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17462_session_&&
this.JSC$17462_session_.receiver_.label==W.label?this.JSC$17462_session_.stop():this.warn_("Stopping receiver w/o session: "+W.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.J.onDialLaunchRequested_=function(W){if(this.isDisposed())return Promise.reject(Error("Vk"));var P=W.receiver;P.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+P.friendlyName),P.receiverType=chrome.cast.ReceiverType.DIAL);var x=this.JSC$17462_session_?this.JSC$17462_session_.receiver_:null;if(!x||x.label!=P.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+P.friendlyName),Promise.reject(Error("Wk"));if(x&&x.label==P.label&&x.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17462_session_.screen_)return IL("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17462_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+x.receiverType+'" to "dial" for '+P.friendlyName);OG(this,new LH(this.JSC$17462_screenService_,P,this.JSC$17462_theme_,this.config_))}P=this.JSC$17462_session_;P.launchData_=W;P.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(W=P.launchData_.extraData||{},x=W.screenId||null,EPG(P)&&W.loungeToken?W.loungeTokenRefreshIntervalMs?W=wKf(P,{name:P.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:P.launchData_.receiver.label,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.hQ(Error("Sk`"+JSON.stringify(W))),W=hl9(P,x)):W=hl9(P,x)):W=MvO(P);return W};
_.J.onSessionEstablished_=function(W){var P=this;if(!this.isDisposed()&&!this.forceMirroring_){IL("New cast session ID: "+W.sessionId);var x=W.receiver;if(x.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17462_session_)if(x.receiverType==chrome.cast.ReceiverType.CAST)IL("Got resumed cast session before resumed mdx connection."),x.friendlyName=chrome.cast.unescape(x.friendlyName),OG(this,new qq(this.JSC$17462_screenService_,x,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var I=this.JSC$17462_session_.receiver_,O=$p(this.JSC$17462_screenService_.getScreens(),I.label);O&&Mk(O,x.label)&&I.receiverType!=chrome.cast.ReceiverType.CAST&&x.receiverType==chrome.cast.ReceiverType.CAST&&(IL("onSessionEstablished_: manual to cast session change "+x.friendlyName),_.TD(this.JSC$17462_session_),this.JSC$17462_session_=new qq(this.JSC$17462_screenService_,x,this.config_),this.JSC$17462_session_.subscribe("sessionScreen",(0,_.mx)(this.onSessionScreen_,this,this.JSC$17462_session_)),
this.JSC$17462_session_.subscribe("sessionFailed",function(){return af2(P,P.JSC$17462_session_)}),this.JSC$17462_session_.launchWithParams(null));
this.JSC$17462_session_.setCastSession(W)}}};
_.J.JSC$17464_getCastSession=function(){return this.JSC$17462_session_?this.JSC$17462_session_.JSC$17448_getCastSession():null};
_.J.onSessionRequestFailed_=function(W){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.GQ)(W)),W.code!=chrome.cast.ErrorCode.CANCEL&&OG(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.J.onReceiverUpdated_=function(W){IL("Receiver availability updated: "+W);if(!this.isDisposed()){var P=xg(this);this.hasCastReceiver_=W==chrome.cast.ReceiverAvailability.AVAILABLE;xg(this)!=P&&this.publish("yt-remote-cast2-availability-change",xg(this))}};
var elf=function(W){var P=W.JSC$17462_screenService_.JSC$17444_getOnlineScreens(),x=W.JSC$17462_session_&&W.JSC$17462_session_.receiver_;W=_.C5(P,function(I){x&&Mk(I,x.label)&&(x=null);var O=I.uuid?I.uuid:I.id,B=cNd(this,I);B?(B.label=O,B.friendlyName=I.name):(B=new chrome.cast.Receiver(O,I.name),B.receiverType=chrome.cast.ReceiverType.CUSTOM);return B},W);
x&&(x.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(x=new chrome.cast.Receiver(x.label,x.friendlyName),x.receiverType=chrome.cast.ReceiverType.CUSTOM),W.push(x));return W};
iN.prototype.JSC$17464_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=elf(this),IL("Updating custom receivers: "+(0,_.GQ)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.mx)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",xg(this)))};
iN.prototype.setLaunchParams=iN.prototype.setLaunchParams;iN.prototype.setConnectedScreenStatus=iN.prototype.setConnectedScreenStatus;iN.prototype.stopSession=iN.prototype.JSC$17464_stopSession;iN.prototype.getCastSession=iN.prototype.JSC$17464_getCastSession;iN.prototype.requestSession=iN.prototype.requestSession;iN.prototype.init=iN.prototype.init;iN.prototype.dispose=iN.prototype.dispose;var Quf=[];var bgL=function(W){W.audioTrackId=null;W.trackData=null;W.playerState=-1;W.hasPrevious=!1;W.hasNext=!1;W.playerTime_=0;W.playerTimeAt_=_.O1();W.seekableStart_=0;W.seekableEnd_=0;W.duration_=0;W.loadedTime=0;W.liveIngestionTime_=NaN;W.isLive_=!1};
_.J=RU.prototype;
_.J.reset=function(W){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;W&&(this.index=W.index,this.listId=W.listId,this.videoId=W.videoId,this.playerState=W.playerState,this.volume=W.volume,this.muted=W.muted,this.audioTrackId=W.audioTrackId,this.trackData=W.trackData,this.hasPrevious=W.hasPrevious,this.hasNext=W.hasNext,this.playerTime_=W.playerTime,this.playerTimeAt_=W.playerTimeAt,this.seekableStart_=W.seekableStart,this.seekableEnd_=W.seekableEnd,this.duration_=W.duration,this.loadedTime=
W.loadedTime,this.liveIngestionTime_=W.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.J.stopPlayer=function(){this.index=-1;this.videoId="";bgL(this)};
_.J.isPlaying=function(){return this.playerState==1};
_.J.isBuffering=function(){return this.playerState==3};
_.J.isAdPlaying=function(){return this.playerState==1081};
var J4=function(W,P){W.playerTime_=P;W.playerTimeAt_=_.O1()},ksL=function(W){switch(W.playerState){case 1:case 1081:return(_.O1()-W.playerTimeAt_)/1E3+W.playerTime_;
case -1E3:return 0}return W.playerTime_};
RU.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.O1()-this.playerTimeAt_)/1E3:0):this.duration_};
var UGG=function(W,P,x){var I=W.videoId;W.videoId=P;W.index=x;P!=I&&bgL(W)},XK4=function(W){var P={};
P.index=W.index;P.listId=W.listId;P.videoId=W.videoId;P.playerState=W.playerState;P.volume=W.volume;P.muted=W.muted;P.audioTrackId=W.audioTrackId;P.trackData=_.jU.unsafeClone(W.trackData);P.hasPrevious=W.hasPrevious;P.hasNext=W.hasNext;P.playerTime=W.playerTime_;P.playerTimeAt=W.playerTimeAt_;P.seekableStart=W.seekableStart_;P.seekableEnd=W.seekableEnd_;P.duration=W.duration_;P.loadedTime=W.loadedTime;P.liveIngestionTime=W.liveIngestionTime_;return P};
RU.prototype.clone=function(){return new RU(XK4(this))};var BC=function(W,P){_.F1.call(this);var x=this;this.state_=0;this.connection_=W;this.contextSubscriptions_=[];this.actionQueue_=new tnM;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.mx)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.mx)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.mx)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.mx)(this.onCloudviewAvailabilityChange_,this);var I=0;W?(I=W.getProxyState(),
I!=3&&(W.subscribe("proxyStateChange",this.setState_,this),ffm(this))):I=3;I!=0&&(P?this.setState_(I):_.Oy(function(){x.setState_(I)},0));
(W=GZ3())&&Nx3(this,W);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.A(BC,_.F1);BC.prototype.getState=function(){return this.state_};
BC.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
BC.prototype.reconnect=function(){this.connection_.reconnect()};
var ni=function(W){return new RU(W.connection_.getPlayerContextData())};
_.J=BC.prototype;_.J.play=function(){Yg(this)?(this.castMedia_?this.castMedia_.play(null,_.me,lf4(this,"play")):ys(this,"play"),Tx2(this,1,ksL(ni(this))),this.publish("remotePlayerChange")):Ki(this,this.play)};
_.J.pause=function(){Yg(this)?(this.castMedia_?this.castMedia_.pause(null,_.me,lf4(this,"pause")):ys(this,"pause"),Tx2(this,2,ksL(ni(this))),this.publish("remotePlayerChange")):Ki(this,this.pause)};
_.J.seekTo=function(W){if(Yg(this)){if(this.castMedia_){var P=ni(this),x=new chrome.cast.media.SeekRequest;x.currentTime=W;P.isPlaying()||P.isBuffering()?x.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:x.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(x,_.me,lf4(this,"seekTo",{newTime:W}))}else ys(this,"seekTo",{newTime:W});Tx2(this,3,W);this.publish("remotePlayerChange")}else Ki(this,_.ou(this.seekTo,W))};
_.J.stop=function(){if(Yg(this)){this.castMedia_?this.castMedia_.stop(null,_.me,lf4(this,"stopVideo")):ys(this,"stopVideo");var W=ni(this);W.stopPlayer();Z6(this,W);this.publish("remotePlayerChange")}else Ki(this,this.stop)};
_.J.setVolume=function(W,P){if(Yg(this)){var x=ni(this);if(this.castSession_){if(x.volume!=W){var I=Math.round(W)/100;this.castSession_.setReceiverVolumeLevel(I,(0,_.mx)(function(){aU("set receiver volume: "+I)},this),(0,_.mx)(function(){this.warn_("failed to set receiver volume.")},this))}x.muted!=P&&this.castSession_.setReceiverMuted(P,(0,_.mx)(function(){aU("set receiver muted: "+P)},this),(0,_.mx)(function(){this.warn_("failed to set receiver muted.")},this))}else{var O={volume:W,
muted:P};x.volume!=-1&&(O.delta=W-x.volume);ys(this,"setVolume",O)}x.muted=P;x.volume=W;Z6(this,x)}else Ki(this,_.ou(this.setVolume,W,P))};
_.J.setAudioTrack=function(W,P){Yg(this)?(P=P.getLanguageInfo().getId(),ys(this,"setAudioTrack",{videoId:W,audioTrackId:P}),W=ni(this),W.audioTrackId=P,Z6(this,W)):Ki(this,_.ou(this.setAudioTrack,W,P))};
_.J.addVideo=function(W){Yg(this)?ys(this,"addVideo",{videoId:W}):Ki(this,_.ou(this.addVideo,W))};
_.J.addPlaylist=function(W){Yg(this)?ys(this,"addVideos",{listId:W}):Ki(this,_.ou(this.addPlaylist,W))};
_.J.addVideos=function(W){W.length==0?this.warn_("Ignore add videos request due to empty list"):Yg(this)?ys(this,"addVideos",{videoIds:W.join(",")}):Ki(this,_.ou(this.addVideos,W))};
_.J.JSC$17474_removeVideo=function(W){Yg(this)?ys(this,"removeVideo",{videoId:W}):Ki(this,_.ou(this.JSC$17474_removeVideo,W))};
_.J.JSC$17474_insertVideo=function(W){Yg(this)?ys(this,"insertVideo",{videoId:W}):Ki(this,_.ou(this.JSC$17474_insertVideo,W))};
_.J.playVideo=function(W,P,x,I,O,B,Y){I=I===void 0?null:I;O=O===void 0?null:O;B=B===void 0?null:B;Y=Y===void 0?null:Y;var K=ni(this),Z={videoId:W};x!==void 0&&(Z.currentIndex=x);UGG(K,W,x||0);P!==void 0&&(J4(K,P),Z.currentTime=P);I&&(Z.listId=I);O&&(Z.playerParams=O);B&&(Z.clickTrackingParams=B);Y&&(Z.locationInfo=(0,_.GQ)(Y));ys(this,"setPlaylist",Z);I||Z6(this,K)};
_.J.nextVideo=function(W,P){if(Yg(this)){if(W&&P){var x=ni(this);UGG(x,W,P);Z6(this,x)}ys(this,"next")}else Ki(this,_.ou(this.nextVideo,W,P))};
_.J.clearPlaylist=function(){if(Yg(this)){ys(this,"clearPlaylist");var W=ni(this);W.reset();Z6(this,W);this.publish("remotePlayerChange")}else Ki(this,this.clearPlaylist)};
_.J.dispose=function(){if(this.state_!=3){var W=this.state_;this.state_=3;this.publish("proxyStateChange",W,this.state_)}_.F1.prototype.dispose.call(this)};
_.J.disposeInternal=function(){rN3(this);this.connection_=null;this.actionQueue_.clear();Nx3(this,null);_.F1.prototype.disposeInternal.call(this)};
var ffm=function(W){_.bP("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(P){this.contextSubscriptions_.push(this.connection_.subscribe(P,_.ou(this.onProxyEvent_,P),this))},W)},rN3=function(W){_.bP(W.contextSubscriptions_,function(P){this.connection_.unsubscribeByKey(P)},W);
W.contextSubscriptions_.length=0},Yg=function(W){return W.getState()==1},Ki=function(W,P){W.actionQueue_.getCount()<50&&W.actionQueue_.enqueue(P)},Tx2=function(W,P,x){var I=ni(W);
J4(I,x);I.playerState!=-1E3&&(I.playerState=P);Z6(W,I)},ys=function(W,P,x){W.connection_.sendMessage(P,x)},Z6=function(W,P){rN3(W);
W.connection_.setPlayerContextData(XK4(P));ffm(W)};
BC.prototype.setState_=function(W){if((W!=this.state_||W==2)&&this.state_!=3&&W!=0){var P=this.state_;this.state_=W;this.publish("proxyStateChange",P,W);if(W==1)for(;!this.actionQueue_.isEmpty();)W=this.actionQueue_,yu9(W),W.front_.pop().apply(this);else W==3&&this.dispose()}};
BC.prototype.onProxyEvent_=function(W,P){this.publish(W,P)};
var Nx3=function(W,P){W.castSession_&&(W.castSession_.removeUpdateListener(W.boundCastStatusListener_),W.castSession_.removeMediaListener(W.boundCastMediaListener_),W.onCastMediaChange_(null));W.castSession_=P;if(W.castSession_&&(aU("Setting cast session: "+W.castSession_.sessionId),W.castSession_.addUpdateListener(W.boundCastStatusListener_),W.castSession_.addMediaListener(W.boundCastMediaListener_),W.castSession_.media.length))W.onCastMediaChange_(W.castSession_.media[0])};
BC.prototype.onCastStatusUpdate_=function(W){if(!W)this.onCastMediaChange_(null),Nx3(this,null);else if(this.castSession_.receiver.volume){W=this.castSession_.receiver.volume;var P=ni(this),x=Math.round(100*W.level||0);if(P.volume!=x||P.muted!=W.muted)aU("Cast volume update: "+W.level+(W.muted?" muted":"")),P.volume=x,P.muted=!!W.muted,Z6(this,P)}};
BC.prototype.onCastMediaChange_=function(W){aU("Cast media: "+!!W);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=W)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),ig2(this),this.publish("remotePlayerChange")};
var ig2=function(W){var P=W.castMedia_.media,x=W.castMedia_.customData;if(P&&x){var I=ni(W);P.contentId!=I.videoId&&aU("Cast changing video to: "+P.contentId);I.videoId=P.contentId;I.playerState=x.playerState;J4(I,W.castMedia_.getEstimatedTime());Z6(W,I)}else aU("No cast media video. Ignoring state update.")};
BC.prototype.onCastMediaUpdate_=function(W){if(W)ig2(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
BC.prototype.onCloudviewAvailabilityChange_=function(){var W=GZ3();W&&Nx3(this,W)};
BC.prototype.warn_=function(W){cS("CP",W)};
var lf4=function(W,P,x){return(0,_.mx)(function(I){this.warn_("Failed to "+P+" with cast v2 channel. Error code: "+I.code);I.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+P+" using MDx browser channel."),ys(this,P,x))},W)};var Si=function(W,P,x,I){I=I===void 0?!1:I;_.F1.call(this);var O=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$17481_http_=W;this.enableConnectWithInitialState_=I;this.listeners_.push(_.r3(window,"beforeunload",function(){O.JSC$17484_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new RU;this.currentScreenId_=P.id;this.currentScreenIdType_=P.idType;this.channelService=ifG(this.JSC$17481_http_,x,this.JSC$17484_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Rl9(O)});
this.channelService.listen("channelClosed",function(){oL("Channel closed");isNaN(O.connectTimerId_)?wr(!0):wr();O.dispose()});
this.channelService.listen("channelError",function(B){wr();isNaN(O.getReconnectTimeout_())?(B==1&&O.currentScreenIdType_=="shortLived"&&O.publish("browserChannelAuthError",B),oL("Channel error: "+B+" without reconnection"),O.dispose()):(O.reconnecting_=!0,oL("Channel error: "+B+" with reconnection in "+O.getReconnectTimeout_()+" ms"),F8m(O,2))});
this.channelService.listen("channelMessage",function(B){qx6(O,B)});
this.channelService.setLoungeToken(P.token);this.subscribe("remoteQueueChange",function(){var B=O.playerContext_.videoId;h3f()&&_.Y9("yt-remote-session-video-id",B)})};
_.A(Si,_.F1);
Si.prototype.connect=function(W,P){if(P){var x=P.listId,I=P.videoId,O=P.videoIds,B=P.playerParams,Y=P.clickTrackingParams,K=P.index,Z={videoId:I},d=P.currentTime,v=P.locationInfo;P=P.loopMode;d!==void 0&&(Z.currentTime=d<=5?0:d);B&&(Z.playerParams=B);v&&(Z.locationInfo=v);Y&&(Z.clickTrackingParams=Y);x&&(Z.listId=x);O&&O.length>0&&(Z.videoIds=O.join(","));K!==void 0&&(Z.currentIndex=K);this.enableConnectWithInitialState_&&(Z.loopMode=P||"LOOP_MODE_OFF");x&&(this.playerContext_.listId=x);this.playerContext_.videoId=
I;this.playerContext_.index=K||0;this.playerContext_.state=3;J4(this.playerContext_,d);this.autoplayMode_="UNSUPPORTED";x=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";oL("Connecting with "+x+" and params: "+(0,_.GQ)(Z));this.channelService.connect({method:x,params:(0,_.GQ)(Z)},W,bf3())}else oL("Connecting without params"),this.channelService.connect({},W,bf3());L84(this)};
Si.prototype.setLoungeToken=function(W){this.channelService.setLoungeToken(W)};
Si.prototype.dispose=function(){this.isDisposed()||(_.lA("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),F8m(this,3));_.F1.prototype.dispose.call(this)};
Si.prototype.disposeInternal=function(){WX6(this);PcM(this);xHQ(this);_.nj(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.nj(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.rqd(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.F1.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Iid=function(W){return _.bC(W.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"})},oL=function(W){cS("conn",W)},F8m=function(W,P){W.publish("proxyStateChange",P)},L84=function(W){W.connectTimerId_=_.Oy(function(){oL("Connecting timeout");
W.JSC$17484_disconnect_(1)},2E4)},WX6=function(W){_.nj(W.connectTimerId_);
W.connectTimerId_=NaN},xHQ=function(W){_.nj(W.reconnectedCheckScreenTimeout_);
W.reconnectedCheckScreenTimeout_=NaN},O63=function(W){PcM(W);
W.playingSyncTimerId_=_.Oy(function(){ul(W,"getNowPlaying")},2E4)},PcM=function(W){_.nj(W.playingSyncTimerId_);
W.playingSyncTimerId_=NaN},Rl9=function(W){oL("Channel opened");
W.reconnecting_&&(W.reconnecting_=!1,xHQ(W),W.reconnectedCheckScreenTimeout_=_.Oy(function(){oL("Timing out waiting for a screen.");W.JSC$17484_disconnect_(1)},15E3))},Bb6=function(W,P){var x=null;
if(P){var I=Iid(W);I&&(x={clientName:I.clientName,deviceMake:I.brand,deviceModel:I.model,osVersion:I.osVersion})}_.lA("yt.mdx.remote.remoteClient_",x);P&&(WX6(W),xHQ(W));x=W.channelService.isChannelOpened()&&isNaN(W.connectTimerId_);P==x?P&&(F8m(W,1),ul(W,"getSubtitlesTrack")):P?(W.getOtherConnectedRemoteId_()&&W.playerContext_.reset(),F8m(W,1),ul(W,"getNowPlaying"),JeB(W)):W.JSC$17484_disconnect_(1)},n9v=function(W,P){var x=P.params.videoId;
delete P.params.videoId;x==W.playerContext_.videoId&&(_.jU.isEmpty(P.params)?W.playerContext_.trackData=null:W.playerContext_.trackData=P.params,W.publish("remotePlayerChange"))},Y3G=function(W,P,x){var I=P.params.videoId||P.params.video_id,O=parseInt(P.params.currentIndex,10);
W.playerContext_.listId=P.params.listId||W.playerContext_.listId;UGG(W.playerContext_,I,O);W.publish("remoteQueueChange",x)},ye9=function(W,P){P.params=P.params||{};
Y3G(W,P,"NOW_PLAYING_MAY_CHANGE");W.onStateChange_(P);W.publish("autoplayDismissed")};
Si.prototype.onStateChange_=function(W){var P=parseInt(W.params.currentTime||W.params.current_time,10);J4(this.playerContext_,isNaN(P)?0:P);P=parseInt(W.params.state,10);P=isNaN(P)?-1:P;P==-1&&this.playerContext_.playerState==-1E3&&(P=-1E3);this.playerContext_.playerState=P;P=Number(W.params.loadedTime);this.playerContext_.loadedTime=isNaN(P)?0:P;P=Number(W.params.duration);this.playerContext_.duration_=isNaN(P)?0:P;P=this.playerContext_;var x=Number(W.params.liveIngestionTime);P.liveIngestionTime_=
x;P.isLive_=isNaN(x)?!1:!0;P=this.playerContext_;x=Number(W.params.seekableStartTime);W=Number(W.params.seekableEndTime);P.seekableStart_=isNaN(x)?0:x;P.seekableEnd_=isNaN(W)?0:W;this.playerContext_.playerState==1?O63(this):PcM(this);this.publish("remotePlayerChange")};
Si.prototype.onAdStateChange_=function(W){if(this.playerContext_.playerState!=-1E3){var P=1085;switch(parseInt(W.params.adState,10)){case 1:P=1081;break;case 2:P=1084;break;case 0:P=1083}this.playerContext_.playerState=P;W=parseInt(W.params.currentTime,10);J4(this.playerContext_,isNaN(W)?0:W);this.publish("remotePlayerChange")}};
var KXy=function(W,P){var x=P.params.muted=="true";W.playerContext_.volume=parseInt(P.params.volume,10);W.playerContext_.muted=x;W.publish("remotePlayerChange")},Z6f=function(W,P){W.autoplayVideoId_=P.params.videoId;
W.publish("nowAutoplaying",parseInt(P.params.timeout,10))},o9f=function(W,P){W.autoplayVideoId_=P.params.videoId||null;
W.publish("autoplayUpNext",W.autoplayVideoId_)},S3B=function(W,P){W.autoplayMode_=P.params.autoplayMode;
W.publish("autoplayModeChange",W.autoplayMode_);W.autoplayMode_=="DISABLED"&&W.publish("autoplayDismissed")},uUL=function(W,P){var x=P.params.hasNext=="true";
W.playerContext_.hasPrevious=P.params.hasPrevious=="true";W.playerContext_.hasNext=x;W.publish("previousNextChange")};
Si.prototype.isCapabilitySupportedOnConnectedDevices_=function(W){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var P=_.n(this.connectedDevices_),x=P.next();!x.done;x=P.next())if(!x.value.capabilities.has(W))return!1;return!0};
var qx6=function(W,P){P=P.message;P.params?oL("Received: action="+P.action+", params="+(0,_.GQ)(P.params)):oL("Received: action="+P.action+" {}");switch(P.action){case "loungeStatus":P=(0,_.jn)(P.params.devices);W.connectedDevices_=_.C5(P,function(I){return new Tz(I)});
P=!!_.bC(W.connectedDevices_,function(I){return I.type=="LOUNGE_SCREEN"});
Bb6(W,P);P=W.isCapabilitySupportedOnConnectedDevices_("mlm");W.publish("multiStateLoopEnabled",P);break;case "loungeScreenDisconnected":rYM(W.connectedDevices_,function(I){return I.type=="LOUNGE_SCREEN"});
Bb6(W,!1);break;case "remoteConnected":var x=new Tz((0,_.jn)(P.params.device));_.bC(W.connectedDevices_,function(I){return I.equals(x)})||_.lC(W.connectedDevices_,x);
break;case "remoteDisconnected":x=new Tz((0,_.jn)(P.params.device));rYM(W.connectedDevices_,function(I){return I.equals(x)});
break;case "gracefulDisconnect":break;case "playlistModified":Y3G(W,P,"QUEUE_MODIFIED");break;case "nowPlaying":ye9(W,P);break;case "onStateChange":W.onStateChange_(P);break;case "onAdStateChange":W.onAdStateChange_(P);break;case "onVolumeChanged":KXy(W,P);break;case "onSubtitlesTrackChanged":n9v(W,P);break;case "nowAutoplaying":Z6f(W,P);break;case "autoplayDismissed":W.publish("autoplayDismissed");break;case "autoplayUpNext":o9f(W,P);break;case "onAutoplayModeChanged":S3B(W,P);break;case "onHasPreviousNextChanged":uUL(W,
P);break;case "requestAssistedSignIn":W.publish("assistedSignInRequested",P.params.authCode);break;case "onLoopModeChanged":W.publish("loopModeChange",P.params.loopMode);break;default:oL("Unrecognized action: "+P.action)}};
_.J=Si.prototype;_.J.getProxyState_=function(){var W=3;this.isDisposed()||(W=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(W=1):W=2);return W};
_.J.JSC$17484_disconnect_=function(W){oL("Disconnecting with "+W);_.lA("yt.mdx.remote.remoteClient_",null);WX6(this);this.publish("beforeDisconnect",W);W==1&&wr();this.channelService.disconnect(W);this.dispose()};
_.J.getPlayerContextData_=function(){var W=this.playerContext_;this.clientVideoId_&&(W=this.playerContext_.clone(),UGG(W,this.clientVideoId_,W.index));return XK4(W)};
_.J.setPlayerContextData_=function(W){var P=this,x=new RU(W);x.videoId&&x.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=x.videoId,_.nj(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Oy(function(){if(P.clientVideoId_){var O=P.clientVideoId_;P.clientVideoId_=null;P.playerContext_.videoId!=O&&ul(P,"getNowPlaying")}},5E3));
var I=[];this.playerContext_.listId==x.listId&&this.playerContext_.videoId==x.videoId&&this.playerContext_.index==x.index||I.push("remoteQueueChange");this.playerContext_.playerState==x.playerState&&this.playerContext_.volume==x.volume&&this.playerContext_.muted==x.muted&&ksL(this.playerContext_)==ksL(x)&&(0,_.GQ)(this.playerContext_.trackData)==(0,_.GQ)(x.trackData)||I.push("remotePlayerChange");this.playerContext_.reset(W);_.bP(I,function(O){this.publish(O)},this)};
_.J.getOtherConnectedRemoteId_=function(){var W=this.channelService.getDeviceId(),P=_.bC(this.connectedDevices_,function(x){return x.type=="REMOTE_CONTROL"&&x.id!=W});
return P?P.id:""};
_.J.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.J.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.J.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.J.JSC$17484_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var JeB=function(W){_.nj(W.idleDisconnectTimerId_);W.idleDisconnectTimerId_=_.Oy(function(){W.JSC$17484_disconnect_(1)},864E5)},ul=function(W,P,x){x?oL("Sending: action="+P+", params="+(0,_.GQ)(x)):oL("Sending: action="+P);
W.channelService.sendMessage(P,x)};
Si.prototype.sendMessageWithUserAction_=function(W,P){ul(this,W,P);JeB(this)};
Si.prototype.JSC$17484_getXsrfToken_=function(){var W=_.SB.get("SAPISID","")||_.SB.get("__Secure-1PAPISID",void 0)||"",P=_.SB.get("__Secure-3PAPISID","")||"";if(!W&&!P)return"";W=_.L2(_.sW(W),2);P=_.L2(_.sW(P),2);return _.L2(_.sW(","+W+","+P),2)};
Si.prototype.subscribe=Si.prototype.subscribe;Si.prototype.unsubscribeByKey=Si.prototype.unsubscribeByKey;Si.prototype.getProxyState=Si.prototype.getProxyState_;Si.prototype.disconnect=Si.prototype.JSC$17484_disconnect_;Si.prototype.getPlayerContextData=Si.prototype.getPlayerContextData_;Si.prototype.setPlayerContextData=Si.prototype.setPlayerContextData_;Si.prototype.getOtherConnectedRemoteId=Si.prototype.getOtherConnectedRemoteId_;Si.prototype.getReconnectTimeout=Si.prototype.getReconnectTimeout_;
Si.prototype.getAutoplayMode=Si.prototype.getAutoplayMode_;Si.prototype.getAutoplayVideoId=Si.prototype.getAutoplayVideoId_;Si.prototype.reconnect=Si.prototype.JSC$17484_reconnect_;Si.prototype.sendMessage=Si.prototype.sendMessageWithUserAction_;Si.prototype.getXsrfToken=Si.prototype.JSC$17484_getXsrfToken_;Si.prototype.isCapabilitySupportedOnConnectedDevices=Si.prototype.isCapabilitySupportedOnConnectedDevices_;var dHf=function(W){kp.call(this,"ScreenServiceProxy");this.instance_=W;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.mx)(this.JSC$17487_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.mx)(this.onOnlineScreenChange_,this)))};
_.A(dHf,kp);_.J=dHf.prototype;_.J.getScreens=function(W){return this.instance_.$_gs(W)};
_.J.contains=function(W){return!!this.instance_.$_c(W)};
_.J.get=function(W){return this.instance_.$_g(W)};
_.J.start=function(){this.instance_.$_st()};
_.J.add=function(W,P,x){this.instance_.$_a(W,P,x)};
_.J.remove=function(W,P,x){this.instance_.$_r(W,P,x)};
_.J.updateName=function(W,P,x,I){this.instance_.$_un(W,P,x,I)};
_.J.disposeInternal=function(){for(var W=this.subscriptionKeys_.length,P=0;P<W;++P)this.instance_.$_ubk(this.subscriptionKeys_[P]);this.subscriptionKeys_.length=0;this.instance_=null;kp.prototype.disposeInternal.call(this)};
_.J.JSC$17487_onScreenChange_=function(){this.publish("screenChange")};
_.J.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
f8.prototype.$_st=f8.prototype.start;f8.prototype.$_gspc=f8.prototype.JSC$17444_getScreenByPairingCode;f8.prototype.$_gsppc=f8.prototype.JSC$17444_getScreenByPollingPairingCode;f8.prototype.$_c=f8.prototype.contains;f8.prototype.$_g=f8.prototype.get;f8.prototype.$_a=f8.prototype.add;f8.prototype.$_un=f8.prototype.updateName;f8.prototype.$_r=f8.prototype.remove;f8.prototype.$_gs=f8.prototype.getScreens;f8.prototype.$_gos=f8.prototype.JSC$17444_getOnlineScreens;f8.prototype.$_s=f8.prototype.subscribe;
f8.prototype.$_ubk=f8.prototype.unsubscribeByKey;var jsy=function(W){fty();if(!hO||!hO.get("yt-remote-disable-remote-module-for-dev")){W=_.$$("MDX_CONFIG")||W;rdM();e3M();d2||(d2=new gr(W?W.loungeApiHost:void 0),NUm()&&(d2.basePath="/api/loungedev"));sG||(sG=_.eL("yt.mdx.remote.deferredProxies_")||[],_.lA("yt.mdx.remote.deferredProxies_",sG));ssG();var P=vC();if(!P){var x=new f8(d2,W?W.disableAutomaticScreenCache||!1:!1);_.lA("yt.mdx.remote.screenService_",x);P=vC();var I={};W&&(I={appId:W.appId,disableDial:W.disableDial,theme:W.theme,loadCastApiSetupScript:W.loadCastApiSetupScript,
disableCastApi:W.disableCastApi,enableDialLoungeToken:W.enableDialLoungeToken,enableCastLoungeToken:W.enableCastLoungeToken,forceMirroring:W.forceMirroring});_.lA("yt.mdx.remote.enableConnectWithInitialState_",W?W.enableConnectWithInitialState||!1:!1);p74(x,function(B){B?mD()&&g6m(mD(),"YouTube TV"):x.subscribe("onlineScreenChange",function(){IU("yt-remote-receiver-availability-change")})},I)}if(W&&!_.eL("yt.mdx.remote.initialized_")){_.lA("yt.mdx.remote.initialized_",!0);
Vs("Initializing: "+(0,_.GQ)(W));t4.push(_.IR("yt-remote-cast2-api-ready",function(){IU("yt-remote-api-ready")}));
t4.push(_.IR("yt-remote-cast2-availability-change",function(){IU("yt-remote-receiver-availability-change")}));
t4.push(_.IR("yt-remote-cast2-receiver-selected",function(){v94();IU("yt-remote-auto-connect","cast-selector-receiver")}));
t4.push(_.IR("yt-remote-cast2-receiver-resumed",function(){IU("yt-remote-receiver-resumed","cast-selector-receiver")}));
t4.push(_.IR("yt-remote-cast2-session-change",mHB));t4.push(_.IR("yt-remote-connection-change",function(B){B?g6m(mD(),"YouTube TV"):Vxd()||(g6m(null,null),zS4())}));
t4.push(_.IR("yt-remote-cast2-session-failed",function(){IU("yt-remote-connection-failed")}));
I=txf();W.isAuto&&(I.id+="#dial");var O=W.capabilities||[];O.length>0&&(I.capabilities=O);I.name=W.device;I.app=W.app;(W=W.theme)&&(I.theme=W);Vs(" -- with channel params: "+(0,_.GQ)(I));I?(_.Y9("yt-remote-session-app",I.app),_.Y9("yt-remote-session-name",I.name)):(_.K6("yt-remote-session-app"),_.K6("yt-remote-session-name"));_.lA("yt.mdx.remote.channelParams_",I);P.start();mD()||pvL()}}},Cc6=function(){var W=vC().instance_.$_gos();
var P=QsO();P&&pi()&&(Mn6(W,P)||W.push(P));return DVL(W)},Ae2=function(){var W=Cc6(),P=QsO();
P||(P=Vxd());return _.bC(W,function(x){return P&&Mk(P,x.key)?!0:!1})},QsO=function(){var W=mD();
if(!W)return null;var P=vC().getScreens();return $p(P,W)},mHB=function(W){Vs("remote.onCastSessionChange_: "+DU9(W));
if(W){var P=QsO();P&&P.id==W.id?(g6m(P.id,"YouTube TV"),W.idType=="shortLived"&&(W=W.token)&&(P=pi())&&P.setLoungeToken(W)):(P&&zTf(),GC4(W,1))}else pi()&&zTf()},zTf=function(){E69()?rr().stopSession():Tl("stopSession called before API ready.");
var W=pi();W&&(W.disconnect(1),E9d(null))},g99=function(){var W=pi();
return W&&W.getProxyState()!=3?new BC(pi(),void 0):null},Vs=function(W){cS("remote",W)},vC=function(){if(!DH2){var W=_.eL("yt.mdx.remote.screenService_");
DH2=W?new dHf(W):null}return DH2},mD=function(){return _.eL("yt.mdx.remote.currentScreenId_")},MxO=function(W){_.lA("yt.mdx.remote.currentScreenId_",W)},v94=function(){_.lA("yt.mdx.remote.connectData_",null)},pi=function(){return _.eL("yt.mdx.remote.connection_")},E9d=function(W){var P=pi();
v94();W||MxO("");_.lA("yt.mdx.remote.connection_",W);sG&&(_.bP(sG,function(x){x(W)}),sG.length=0);
P&&!W?IU("yt-remote-connection-change",!1):!P&&W&&IU("yt-remote-connection-change",!0)},Vxd=function(){var W=h3f();
if(!W)return null;var P=vC();if(!P)return null;P=P.getScreens();return $p(P,W)},GC4=function(W,P){MxO(W.id);
W=new Si(d2,W,txf(),_.eL("yt.mdx.remote.enableConnectWithInitialState_")||!1);W.connect(P,_.eL("yt.mdx.remote.connectData_"));W.subscribe("beforeDisconnect",function(x){IU("yt-remote-before-disconnect",x)});
W.subscribe("beforeDispose",function(){pi()&&E9d(null)});
W.subscribe("browserChannelAuthError",function(){var x=QsO();x&&x.idType=="shortLived"&&(E69()?rr().handleBrowserChannelAuthError():Tl("refreshLoungeToken called before API ready."))});
E9d(W)},pvL=function(){var W=Vxd();
W?(Vs("Resume connection to: "+DU9(W)),GC4(W,0)):(wr(),zS4(),Vs("Skipping connecting because no session screen found."))},d2=null,sG=null,DH2=null,ssG=function(){var W=txf();
if(_.jU.isEmpty(W)){W=wVy();var P=_.ye("yt-remote-session-name")||"",x=_.ye("yt-remote-session-app")||"";W={device:"REMOTE_CONTROL",id:W,name:P,app:x,mdxVersion:3};W.authuser=String(_.$$("SESSION_INDEX","0"));(P=_.$$("DELEGATED_SESSION_ID"))&&(W.pageId=String(P));_.lA("yt.mdx.remote.channelParams_",W)}},txf=function(){return _.eL("yt.mdx.remote.channelParams_")||{}},t4=[];var $H2=new _.$N("yt-menu"),wv6=function(){},H62=function(W,P,x){W=P=="right-click"?x.rightClickMenuPopupHint:x.menuPopupHint;
if(!(hTO(P)>10))return P=P||"default",$H2.set(P+"-impression",hTO(P)+1),W},hTO=function(W){return parseInt($H2.get((W||"default")+"-impression")||0,10)};
_.Id(wv6);var eT6=function(){this.contexts_=new WeakMap;this.JSC$17493_networkService_=this.activeContext_=null},ced=function(W,P,x){var I=W.contexts_.get(P);
I||(I=new TLv(W.JSC$17493_networkService_),W.contexts_.set(P,I));W.activeContext_=I;x&&W.activeContext_.reset();W.activeContext_.start();return W.activeContext_};var ji=function(){};
ji.prototype.enqueue=function(){var W=this,P;return _.y(function(x){if(W.isCounterfactual())return(P=W.getCounterfactualData())&&W.shouldLogCounterfactualImpression()&&W.sendImpressionEndpoints(P),x.return();W.doEnqueue();_.Kl(x)})};
ji.prototype.sendImpressionEndpoints=function(W){_.bs.getInstance().triggerOptionalAction("yt-service-request",{},W[0])};var Qs=function(W,P){this.renderer=W;this.page=P};
_.A(Qs,ji);Qs.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Qs.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Qs.prototype.shouldLogCounterfactualImpression=function(){return!0};
Qs.prototype.doEnqueue=function(){var W=_.ih(this.page);W&&W.pause();this.renderer.impressionCommand&&_.bs.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.wl(_.bs.getInstance(),[this.renderer.promoCommand],this.page)};var aiQ=function(W,P){this.renderer=W;this.resolver=_.aP();this.JSC$17505_enforcementCounter=new _.EKW;P?this.JSC$17505_playerManager=_.ih(P):this.JSC$17505_playerManager=null;_.nL(1,!0)};
_.A(aiQ,ji);_.J=aiQ.prototype;_.J.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var W=[];this.renderer.impressionEndpoints.forEach(function(P){(P=_.AF(P))&&W.push(P)});
return W}};
_.J.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.J.shouldLogCounterfactualImpression=function(){var W=_.yUR();W?(this.JSC$17505_enforcementCounter.increment("POPUP"),_.nL(3)):_.nL(2);return W};
_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.doEnqueue=function(){var W=this;_.yUR()?(this.JSC$17505_enforcementCounter.increment("POPUP"),_.nL(3),b6y(this)):this.JSC$17505_playerManager?(this.resolver.promise.then(function(){b6y(W)}),kC3(this.resolver,this.JSC$17505_playerManager)):_.nL(2)};
var kC3=function(W,P){var x=_.aP();P.getPlayerPromise().then(function(I){x.resolve(I)});
x.promise.then(function(I){I.addEventListener("onAbnormalityDetected",W.resolve);_.CA(W.promise,function(){I.removeEventListener("onAbnormalityDetected",W.resolve)})});
W.promise.thenCatch(function(){x.promise.cancel()})},b6y=function(W){_.nL(3);
var P={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:W.renderer}};P=_.bs.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:P},{});Promise.all(P).then(function(){UHQ();W.JSC$17505_playerManager&&W.JSC$17505_playerManager.pause()})},UHQ=function(){$tQ(function(W,P){_.MBv(W,P);
W===0?_.nL(7):_.nL(4)})};var XvQ=function(W,P){this.renderer=W;this.page=P;this.resolver=_.aP()};
_.A(XvQ,ji);_.J=XvQ.prototype;_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var W=this;this.resolver.promise.then(function(){var x={popup:{mealbarPromoRenderer:W.renderer},popupType:"MEALBAR"};_.bs.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:x},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var P=_.ih(this.page);P&&fi3(this.resolver,P)}break;default:this.resolver.resolve()}};
var fi3=function(W,P){var x=_.aP();P.getPlayerPromise().then(function(I){x.resolve(I)});
x.promise.then(function(I){I.addEventListener("onAdEnd",W.resolve);_.CA(W.promise,function(){I.removeEventListener("onAdEnd",W.resolve)})});
W.promise.thenCatch(function(){x.promise.cancel()})};var Nbd=function(W,P){this.renderer=W;this.page=P};
_.A(Nbd,ji);_.J=Nbd.prototype;_.J.cancel=function(){this.JSC$17513_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17513_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17513_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var W=this,P,x;((P=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(x=P.playbackUpsellDialogTriggerConditionData)==null?void 0:x.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17513_downloadedVideosCountSelectorUnsubscriber=_.sx(_.Xe(),GrB,function(I,O){I>O&&(liy(W),W.cancel())}):liy(this)};
var liy=function(W){var P={popup:{upsellDialogRenderer:W.renderer},popupType:"MODAL"};_.bs.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:P},{});(W=_.ih(W.page))&&W.pause()};var Ci={},TbL=(Ci.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Ci.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Ci.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Ci.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Ci.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Ci.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Ci.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Ci),reO=function(W,P){this.renderer=W;this.targetManager=
P};
_.A(reO,ji);_.J=reO.prototype;_.J.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17520_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17520_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17520_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){if(this.isCounterfactual()){var W;return(W=this.renderer.promoConfig)==null?void 0:W.impressionEndpoints}};
_.J.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var W=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17520_downloadedVideosCountSelectorUnsubscriber=_.sx(_.Xe(),GrB,function(P,x){W.renderer.targetId&&P>x&&(QxQ(W.targetManager,W.renderer.targetId,i66(W)),W.cancel())});
break;default:QxQ(this.targetManager,this.renderer.targetId,i66(this))}};
var i66=function(W){var P;if((P=W.renderer.suggestedPosition)==null?0:P.type)var x=TbL[W.renderer.suggestedPosition.type];x||(x="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:W.renderer},popupType:"HINT",position:x}}};var RT6=function(){this.previousPage=null},FX4;
RT6.prototype.registerPromoCommand=function(W,P){q3y(this,void 0,void 0,_.Q(W.roadblock,up4),void 0,void 0,P)};
var q3y=function(W,P,x,I,O,B,Y){W.previousPage!==Y&&W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel();W.previousPage=Y;O?(W.pendingEnforcementPromo&&W.pendingEnforcementPromo.cancel(),W.pendingEnforcementPromo=new aiQ(O,Y),W.pendingEnforcementPromo.enqueue()):B?(W.pendingCommandWrapperPromo=new Qs(B,Y),W.pendingCommandWrapperPromo.enqueue()):I?(W.pendingRoadblockPromo&&W.pendingRoadblockPromo.cancel(),W.pendingRoadblockPromo=new Nbd(I,Y),W.pendingRoadblockPromo.enqueue()):P?(W.pendingMealbarPromo&&
W.pendingMealbarPromo.cancel(),W.pendingMealbarPromo=new XvQ(P,Y),W.pendingMealbarPromo.enqueue()):x&&(W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel(),W.pendingTooltipPromo=new reO(x,_.Bv()),W.pendingTooltipPromo.enqueue())},LXM=function(){FX4||(FX4=new RT6);
return FX4};var hSB=!1;var El9=function(W,P){var x=_.$$("SESSION_INDEX");this.actionToken_=W;this.commonToken_=P;this.sessionIndex_=x},Gnv=function(W){var P=_.aP(),x=_.eL("payments.business.integration.bootstrap"),I=_.eL("payments.business.integration"),O=I.Style.create().withMaterialDesignStyle(),B=I.mashupMode.popup("instrument-manager");
x.asMashupMode(B).usingUserIndex(W.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(O).inStandaloneContext(I.standaloneContextAuthId.forUserId()).instrumentManager(W.actionToken_,W.commonToken_.length>0?W.commonToken_:void 0,function(Y){var K=Y.instrumentId;K?P.resolve(K):(K=_.eL("payments.business.integration.scenario.InstrumentManager"),P.reject(Y.errorCode&&Y.errorCode===K.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Y){_.hQ(Y);
P.reject("instrumentManagerLoadError")});
return P.promise};var P$=function(W,P,x){this.payloadName="transactionFlowFailed";this.payload={errorType:W,serializedTransactionFlowLoggingParams:P,isUserDismiss:x===void 0?!1:x}};
_.lA("yt.ypc.shared.YpcTransactionFlowError",P$);var A4=function(){return _.Yl.apply(this,arguments)||this};
_.A(A4,_.Yl);A4.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
A4.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
A4.prototype.onErrorMessageDismiss=A4.prototype.onErrorMessageDismiss;_.f([_.c({readOnly:!0,observer:"errorRendererChanged"}),_.l("design:type",Object)],A4.prototype,"errorRenderer",void 0);_.f([_.I7("yt-live-chat-error-message-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A4.prototype,"onErrorMessageDismiss",null);A4=_.f([_.yL()],A4);var WAd=[A4.prototype];var Pbm;var xoO;var IFv=new _.$N("yt-live-chat"),Okm=new Map;Okm.set("timestamp_toggle","show-timestamps");Okm.set("reactions_toggle","allow-reactions");var zG=function(){return _.b.apply(this,arguments)||this};
_.A(zG,_.b);_.J=zG.prototype;_.J.menuItemIdentifierChanged=function(){var W;(W=this.data)!=null&&W.menuItemIdentifier&&(W=Okm.get(this.data.menuItemIdentifier))&&(_.p("enable_lwe_web_mute")?(W=IFv.get(W),this.isToggled=!(W===void 0?!this.data.isToggled:!W)):this.isToggled=IFv.get(W))};
_.J.onFocus=function(){this.toggleButton.focus()};
_.J.onTap=function(){var W=this.data.command;W&&this.componentBehavior.resolveCommand(W)};
_.J.computeText=function(W,P,x){return this.componentBehavior.getSimpleString(W?x:P)};
_.J.computeIcon=function(W,P,x){return(W=W?x:P)&&W.iconType?_.PW(W.iconType):""};
zG.prototype.onTap=zG.prototype.onTap;zG.prototype.onFocus=zG.prototype.onFocus;zG.prototype.menuItemIdentifierChanged=zG.prototype.menuItemIdentifierChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],zG.prototype,"componentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],zG.prototype,"data",void 0);
_.f([_.c({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.l("design:type",String)],zG.prototype,"icon",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],zG.prototype,"isToggled",void 0);_.f([_.BM("tp-yt-paper-toggle-button"),_.l("design:type",Object)],zG.prototype,"toggleButton",void 0);_.f([_.OZ("data.menuItemIdentifier"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zG.prototype,"menuItemIdentifierChanged",null);
_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zG.prototype,"onFocus",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zG.prototype,"onTap",null);zG=_.f([_.jd({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],zG);
_.X(zG,"yt-live-chat-toggle-renderer",function(){if(xoO===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Pbm===void 0&&(Pbm=document.createElement("template"));var I=Pbm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);xoO=W}W=xoO;return W},{mode:_.p("live_chat_enable_sink_wrapper")?2:0});var JJB=new _.Lb("NAVIGATION_PROGRESS_TOKEN");_.MR("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var By9={},UUd=(By9.CSI=function(W,P){var x={};x[W]=P;W=_.Ho(_.WaU)(x);Object.keys(W).length>0&&_.jI(W)},By9.ECATCHER=function(W){return function(P,x){_.$$(W)[P]=x}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),By9);var nXG={},YNy={},yJO=(YNy[x3d.name]=!0,YNy),GG=function(){var W=_.Yl.apply(this,arguments)||this;W._noAccessors=!0;W.tabGesturesIsActive=!1;W.actionRouterIsRoot=!0;W.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"};W.pageTitle="";W.titleSuffix="YouTube";W.unseenNotificationCount=
0;W.hasNavigated=!1;W.hasSetScrollTopForNavigation=!1;W.pagePreparer=null;W.zwiebackInitJobId=0;W.dataUpdatePromise=null;W.loadDepsPromise=_.Jn();W.hasPendingNavigation=!1;W.pendingPlayerOnResponseReceivedActions=[];return W};
_.A(GG,_.Yl);GG.prototype.attached=function(){KAL(this);document.addEventListener("yt-navigate-cache",_.WM(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var W=EG();W.init();W.dispatchElement=this.hostElement};
var KAL=function(W,P){P=P===void 0?0:P;var x=_.FY().resolve(_.Rl(_.Je));if(x)Zkd(W,x);else{if(P>=5)throw Error("Xk");setTimeout(function(){KAL(W,P+1)},0)}},Zkd=function(W,P){P.addEventListener("yt-navigate-start",_.WM(W,W.onYtNavigateStart));
P.addEventListener("yt-navigate-finish",_.WM(W,W.onYtNavigateFinish));P.addEventListener("yt-navigate-error",_.WM(W,W.onYtNavigateError));P.addEventListener("yt-page-data-fetched",_.WM(W,W.onYtPageDataFetched))};
_.J=GG.prototype;_.J.detached=function(){var W=_.FY().resolve(_.Je);W.removeEventListener("yt-navigate-start",_.WM(this,this.onYtNavigateStart));W.removeEventListener("yt-navigate-finish",_.WM(this,this.onYtNavigateFinish));W.removeEventListener("yt-navigate-error",_.WM(this,this.onYtNavigateError));W.removeEventListener("yt-page-data-fetched",_.WM(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.WM(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.J.setPageOffset=function(W,P){W?_.W7(this.hostElement,"yt-set-page-offset",[W,P]):_.G$(Error("Yk"))};
_.J.setPageOffsetForNavigation=function(W,P){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(W,P))};
_.J.onYtNavigateSetPageOffset=function(W,P){this.setPageOffsetForNavigation(P.page,P.offset)};
_.J.getPageOffset=function(){var W=_.g(this.hostElement).querySelector("#page-manager").getCurrentPage(),P=0;W&&(P=_.W7(this.hostElement,"yt-get-page-offset",[W])[0]);return P};
_.J.onYtHistoryPop=function(W,P){if(_.wo("DISABLE_WARM_LOADS"))W.preventDefault(),window.location.reload();else{var x=_.FY().resolve(_.Je);x.hasPendingNavigation()&&W.preventDefault();x.cancelPendingNavigation();_.P7(this.hostElement,"yt-pending-navigation-cancelled");P.errorMsg&&(W=P.errorMsg.split(" - "),P=Error(W[0]),W.length==2&&W[1]&&(_.Dw(P,W[1]),_.ge(P)),window.location.reload())}};
_.J.onYtHistoryLoad=function(W,P){var x=this;if(_.wo("DISABLE_WARM_LOADS"))window.location.reload();else{(W=P.endpoint)&&Object.keys(W).length||(W=null);var I=P.historyEntry,O=_.FY().resolve(_.Je),B=_.FY().resolve(_.rL),Y=null;I&&I.rootData&&(Y=I.rootData);var K=Y&&oX6(Y);!Y||K||Y.filler?W?(O.navigate(W,!0),SN3(this,W)):(P.legacyBorder||K||(P.JSC$26406_savedComponentState==null&&Y==null?_.ge(new _.mW("Incomplete history entry",P.forward)):_.EA(new _.mW("Malformed history entry",P.JSC$26406_savedComponentState,
P.forward,Y))),window.location.reload()):(_.Yjd({isHot:!0}),_.jI({webInfo:{navigationReason:"h"}}),_.d8m(),_.CK("srt"),_.CK("pdc"),this.cancelPendingTasks(),uO4(this,P.forward,Y),Y.player&&(Y.player.loaded=!1),SN3(this,W),_.Ybi(O,W||{},Y,2,{},!1,P).then(function(){x.setPageOffset(B.getCurrentPage(),I.scrollTop||0)}))}};
_.J.initHistoryManager=function(W){if(!this.hasNavigated){this.hasNavigated=!0;var P=_.g(this.hostElement).querySelector("#page-manager").getCurrentData();W=isNaN(W)?this.getPageOffset():W;var x=_.FY().resolve(_.Je).currentEndpoint;this.replaceState(x,P,W)}};
_.J.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.J.onYtNavigateStart=function(W,P){this.cancelPendingTasks();P.noProgressBar||(W=_.FY().resolve(_.Rl(JJB)))&&W.start();W=this.hasPendingNavigation?null:this.data;var x=_.FY().resolve(_.rL),I,O,B;_.p("kevlar_use_vimio_behavior")&&!((I=P.endpoint)==null?0:(O=I.commandMetadata)==null?0:(B=O.webCommandMetadata)==null?0:B.ignoreNavigation)&&(I=x.getCurrentPage())&&I.disconnectVisibilityRoot();x.prepareForNavigation(P.pageType,P.endpoint);_.p("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.NH(1,
"pcl"),_.lc(this.pagePreparer,x.preparePage.bind(x,P.pageType,P.endpoint)));I=this.getPageOffset();this.initHistoryManager(I);P.reload||this.hasPendingNavigation?this.replaceState(P.endpoint,W,I):(W==null?void 0:W.page)==="watch"&&P.pageType==="watch"&&_.p("kevlar_replace_watch_to_watch_history_state")?this.replaceState(P.endpoint,W,I):(W==null?void 0:W.page)!=="shorts"||P.pageType!=="shorts"||P.endpoint.reelWatchEndpoint.sequenceParams||_.p("short_to_short_back_nav_killswitch")?P.type!="navigate-back"&&
P.type!="navigate-forward"&&(P.pageType==="shorts"&&_.Lf(this.hostElement,"yt-shorts-reset"),this.saveAndPush(P.url,P.endpoint,W,I)):this.replaceState(P.endpoint,W,0);this.hasPendingNavigation=!0};
var dod=function(W){W.hasPendingNavigation=!1;(W=_.FY().resolve(_.Rl(JJB)))&&W.finish()};
GG.prototype.onYtNavigateError=function(W,P){dod(this);W=this.get("endpoint.commandMetadata.webCommandMetadata.url",P);var x=_.UV(window.location.href);W&&!x.pbjreload&&(P=P.navigationErrorReason||"10",_.p("kevlar_parent_on_pbjreload")&&(x={csn:_.E_()},this.get("data.endpoint.clickTrackingParams")&&(x.itct=this.data.endpoint.clickTrackingParams),_.lO(W,x)),_.G1(_.XY(W,{pbjreload:P})))};
GG.prototype.onYtNavigateCache=function(W,P){var x=this,I=P.url,O=P.endpoint,B=P.data;W=!!P.miniplayer;P=!!P.skipHistory;if(I&&O&&B){var Y=this.getPageOffset(),K=this.data||null;P||this.saveAndPush(I,O,K,Y);I=_.Ybi(_.FY().resolve(_.Je),O,B,W?4:3,{},W);W&&I.then(function(){x.dataUpdatePromise&&x.dataUpdatePromise.then(function(){var Z=_.FY().resolve(_.rL);x.setPageOffset(Z.getCurrentPage(),0)})})}};
GG.prototype.onYtNavigateFinish=function(W,P){var x=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){sM4(x,P.fromHistory)})};
var sM4=function(W,P){dod(W);if(W.pendingPlayerOnResponseReceivedActions){for(var x=_.n(W.pendingPlayerOnResponseReceivedActions),I=x.next();!I.done;I=x.next())_.O2(I.value,W.hostElement);W.pendingPlayerOnResponseReceivedActions=[]}x=_.FY().resolve(_.rL);!P&&W.hasNavigated&&((P=x.getCurrentPage())?P.is==="ytd-shorts"||W.tabGesturesIsActive||W.setPageOffsetForNavigation(P,0):_.ge(Error("Zk")));_.gY(function(){_.gY(function(){_.CK("pda")})})};
GG.prototype.onYtNavigate=function(W){if(!W.detail.endpoint){var P=new _.mW("Error: Missing yt-navigate endpoint from target:",W.target,W.target.nodeName);_.G$(P)}if(P=_.p("cold_missing_history"))P=EG(),P.init(!1),P=!(P.browserHistory.boundHistoryReplaceState&&P.browserHistory.boundHistoryPushState);if(P){_.MR("DISABLE_WARM_LOADS",!0);P=new _.mW("Failed to initialize history manager",this.getDebugString());var x=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
x?_.ge(P):_.G$(P)}P=W.detail.endpoint;var I,O;_.p("debug_forward_web_query_parameters")&&((I=P.commandMetadata)==null?0:(O=I.webCommandMetadata)==null?0:O.url)&&(P=JSON.parse(JSON.stringify(P)),P.commandMetadata.webCommandMetadata.url=_.T7R(P.commandMetadata.webCommandMetadata.url,window.location.search));W={type:0,command:P,form:{params:W.detail.params,tempData:W.detail.tempData||{},requestType:W.detail.type,createScreenConfig:W.detail.createScreenConfig,reload:W.detail.reload?W.detail.reload:!1,
requestForm:W.detail}};_.p("kevlar_yt_navigate_command_handler")?(I=_.FY().resolve(_.qR),W.form.skipDefaultElement=!0,I.resolveCommand(P,{form:W.form})):this.handleNavigate(W)};
GG.prototype.handleNavigate=function(W){this.hasSetScrollTopForNavigation=!1;var P=_.FY().resolve(_.Je),x=W.form||{};P.navigate(W.command,x.reload,x.params,x.tempData,x.requestType,x.createScreenConfig,x.ignoreConfirmation,x.requestForm)&&SN3(this,W.command,x.tempData)};
GG.prototype.onYtPageDataFetched=function(W,P){try{_.Zck().reset();this.data=P.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.FY().resolve(_.rL).updatePageData(this.data);var x=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);x&&X7O(x);var I=this.get("response.responseContext.serviceTrackingParams",this.data);I&&X7O(I);var O=
this.get("playerResponse.onResponseReceivedActions",this.data);O&&(O=vXf(this,O));O&&_.OL(this.hostElement,O,this.hostElement);var B=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Y=this.get("response.responseContext.consistencyTokenJar",this.data);if(B||Y){var K=_.Ax8(),Z=(0,_.jU.getValues)(K.tokenJars);B&&K.replace(Z,B);Y&&K.replace(Z,Y)}}catch(d){_.G$(d)}};
var SN3=function(W,P,x){try{W.onYtEndpointChangeHandler(P,x)}catch(I){_.G$(I)}};
_.J=GG.prototype;_.J.onYtEndpointChangeHandler=function(){};
_.J.setPageTitle=function(W){W=(this.pageTitle=W)?W+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+W};
_.J.onYtUpdateTitle=function(W,P){this.setPageTitle(P)};
_.J.setUnseenNotificationCount=function(W){this.unseenNotificationCount=W;this.setPageTitle(this.pageTitle)};
_.J.handleUpdateNotificationsUnseenCountAction=function(W){_.Q(W,cu3)&&((W=_.Q(W,cu3).unseenCount)?this.setUnseenNotificationCount(W):this.setUnseenNotificationCount(0))};
_.J.handleClearCookieAction=function(W){var P;(W=(P=_.Q(W,wT3))==null?void 0:P.cookieName)&&_.oam(W)};
_.J.onYtUpdateUnseenNotificationCount=function(W,P){this.setUnseenNotificationCount(P)};
_.J.loadData=function(W){var P=this;this.loadDepsPromise.then(function(){var x=_.FY().resolve(_.Rl(_.Je));x||_.G$(Error("$k"));if(W&&W.response){if(!W.endpoint){var I=_.en(window.document.location.href)||"/",O="";if(I==="/"||I.startsWith("/?"))O="WEB_PAGE_TYPE_BROWSE";W.endpoint={commandMetadata:{webCommandMetadata:{url:I,webPageType:O,rootVe:3854}}}}_.Ybi(x,W.endpoint,W,5,{})}else W.endpoint?x.navigate(W.endpoint):x.navigate(_.dx);_.Gr.cancelJob(P.zwiebackInitJobId);P.zwiebackInitJobId=_.Gr.addLowPriorityJob(HK9)})};
var EG=function(){return _.FY().resolve(_.Bw)};
GG.prototype.getDebugString=function(){return EG().getDebugString()};
GG.prototype.getThirdPartyManipulationSuspected=function(){return EG().getThirdPartyManipulationSuspected()};
GG.prototype.replaceState=function(W,P,x){EG().saveAndReplace(W,P,x)};
GG.prototype.saveAndPush=function(W,P,x,I){EG().saveAndPush(W,P,x,I)};
var oX6=function(W){return _.p("web_honor_cache_for_back")&&(_.Q(W.endpoint,_.U_)||_.Q(W.endpoint,_.uS))?!0:!W||isNaN(W.expirationTime)?!1:(0,_.iA)()>W.expirationTime},uO4=function(W,P,x){var I=W.get("response.trackingParams",x),O=_.G7(),B=_.E_();
if(I&&O&&B&&(I=W.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",x),!I&&x.rootVe&&(I=x.rootVe),O=P?"forwardButton":"backButton",P=W.get("playerResponse.topbar.desktopTopbarRenderer."+O+".buttonRenderer.command.clickTrackingParams",W.data),W=W.get("response.topbar.desktopTopbarRenderer."+O+".buttonRenderer.command.clickTrackingParams",W.data),P=(W=P||W)?_.ox(W):void 0,W=_.YY(),O=[_.Jn(x)],_.JN(W,I,P,{dataPromises:O,csnToClone:x.csn}),x.graftedVes))for(x=
_.n(x.graftedVes),I=x.next();!I.done;I=x.next())_.BK(W,I.value)};
GG.prototype.onStoreGraftedVeAction=function(W){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(W)):_.ge(Error("al"))};
var vXf=function(W,P){return P.filter(function(x){for(var I in x)if(yJO[I])return W.pendingPlayerOnResponseReceivedActions.push(x),!0;return!1})};
_.N1.Object.defineProperties(GG.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
GG.prototype.onStoreGraftedVeAction=GG.prototype.onStoreGraftedVeAction;GG.prototype.loadData=GG.prototype.loadData;GG.prototype.onYtUpdateUnseenNotificationCount=GG.prototype.onYtUpdateUnseenNotificationCount;GG.prototype.handleClearCookieAction=GG.prototype.handleClearCookieAction;GG.prototype.handleUpdateNotificationsUnseenCountAction=GG.prototype.handleUpdateNotificationsUnseenCountAction;GG.prototype.setUnseenNotificationCount=GG.prototype.setUnseenNotificationCount;
GG.prototype.onYtUpdateTitle=GG.prototype.onYtUpdateTitle;GG.prototype.setPageTitle=GG.prototype.setPageTitle;GG.prototype.onYtEndpointChangeHandler=GG.prototype.onYtEndpointChangeHandler;GG.prototype.onYtPageDataFetched=GG.prototype.onYtPageDataFetched;GG.prototype.handleNavigate=GG.prototype.handleNavigate;GG.prototype.onYtNavigate=GG.prototype.onYtNavigate;GG.prototype.onYtNavigateFinish=GG.prototype.onYtNavigateFinish;GG.prototype.onYtNavigateCache=GG.prototype.onYtNavigateCache;
GG.prototype.onYtNavigateError=GG.prototype.onYtNavigateError;GG.prototype.onYtNavigateStart=GG.prototype.onYtNavigateStart;GG.prototype.cancelPendingTasks=GG.prototype.cancelPendingTasks;GG.prototype.initHistoryManager=GG.prototype.initHistoryManager;GG.prototype.onYtHistoryLoad=GG.prototype.onYtHistoryLoad;GG.prototype.onYtHistoryPop=GG.prototype.onYtHistoryPop;GG.prototype.onYtNavigateSetPageOffset=GG.prototype.onYtNavigateSetPageOffset;GG.prototype.setPageOffset=GG.prototype.setPageOffset;
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],GG.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],GG.prototype,"data",void 0);_.f([_.I7("yt-navigate-set-page-offset"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],GG.prototype,"onYtNavigateSetPageOffset",null);
_.f([_.I7("yt-history-pop"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],GG.prototype,"onYtHistoryPop",null);_.f([_.I7("yt-history-load"),_.l("design:type",Function),_.l("design:paramtypes",[Event,_.EGW]),_.l("design:returntype")],GG.prototype,"onYtHistoryLoad",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],GG.prototype,"onYtNavigate",null);
_.f([_.I7("yt-update-title"),_.l("design:type",Function),_.l("design:paramtypes",[Event,String]),_.l("design:returntype")],GG.prototype,"onYtUpdateTitle",null);_.f([_.I7("yt-update-unseen-notification-count"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Number]),_.l("design:returntype")],GG.prototype,"onYtUpdateUnseenNotificationCount",null);GG=_.f([_.yL()],GG);nXG.YtdAppBehavior=[_.rb.YtActionHandlerBehavior,GG.prototype];var g2=function(){var W=_.Yl.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.A(g2,_.Yl);g2.prototype.ready=function(){var W=this;_.g(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){W.onChange_()})};
g2.prototype.dataChanged_=function(){_.g(this.hostElement).querySelector("#checkbox").checked=!1};
g2.prototype.onChange_=function(){var W=_.g(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Lf(this.hostElement,"yt-dismissal-reason-"+W,this.data.feedbackToken)};
g2.prototype.dataChanged_=g2.prototype.dataChanged_;_.f([_.c(),_.l("design:type",Object)],g2.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g2.prototype,"dataChanged_",null);g2=_.f([_.yL()],g2);var moG=[g2.prototype];var D6=function(){var W=_.Yl.apply(this,arguments)||this;W.timeoutJobId=0;W.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return W};
_.A(D6,_.Yl);D6.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
D6.prototype.startTimeout=function(){var W=this,P=this.data&&this.data.displayDurationSeconds;P&&!this.timeoutJobId&&(this.timeoutJobId=_.VE(_.Gr,function(){_.W7(W.hostElement,"yt-close-popup-action",[W.is]);W.timeoutJobId=0},P*1E3))};
D6.prototype.cancelTimeout=function(){_.Gr.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
D6.prototype.ytdHatsSurveyBehaviorDataChanged=D6.prototype.ytdHatsSurveyBehaviorDataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],D6.prototype,"ytActionHandlerBehavior",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D6.prototype,"ytdHatsSurveyBehaviorDataChanged",null);D6=_.f([_.yL()],D6);var Vf9=[_.rb.YtActionHandlerBehavior,D6.prototype];var tfL=function(W,P){return W.SHARED_RENDERERS_.hasOwnProperty(P)?"yt":W.prefix},MD={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}};MD.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.p("kevlar_mealbar_above_player"),modern:_.p("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
MD.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};MD.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};MD.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
MD.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)"}};
MD.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};
MD.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};
MD.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};
MD.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};MD.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"}};
MD.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};MD.TOAST={component:null,properties:{}};var pUf=new function(W,P,x){this.supportedPopups=W;this.navigationEndpointPopupMap=P;this.popupTypeMap=x;this.supportedPopups=W;this.navigationEndpointPopupMap=P;this.popupTypeMap=x}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.p("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"}),jM6=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17572_popupConfig=MD;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 QMm=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.jZ.getInstance()},$g=function(W,P){var x=W.pageNameToElement.get(P);
if(!x){switch(P){case "watch":var I=_.p("web_watch_force_learning_journey_for_testing")?_.f6("ytd-watch-learning-journey"):_.p("kevlar_watch_fixie")?_.f6("ytd-watch-fixie"):_.p("kevlar_watch_grid")?_.f6("ytd-watch-grid"):_.f6("ytd-watch-flexy");break;case "learning_journey_watch":I=_.f6("ytd-watch-learning-journey");break;case "shorts":I=_.f6("ytd-shorts");break;case "search":I=_.f6("ytd-search");break;case "channel":I=_.f6("ytd-browse");I.pageSubtype="channels";break;case "trending":I=_.f6("ytd-browse");
I.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":I=
_.f6("ytd-browse");I.pageSubtype=P;break;case "browse":I=_.f6("ytd-browse");break;default:_.ge(new _.mW("Error getting page element for type",P))}x=I;W.pageNameToElement.set(P,x)}return x};
QMm.prototype.preparePage=function(W,P,x){x&&(W=_.yy(x)||W);if(W!=="watch"){var I=this.elementPoolPopulator,O=W;O!=I.targetPage_&&I.pendingPages_.indexOf(O)>-1&&(I.targetPage_&&(I.pendingPages_.unshift(I.targetPage_),I.abort()),zVL(I,O),_.zmk(I,O))}if((I=$g(this,W))||!_.Q(x,_.aR)){I.isAttached||I===P||(I.hidden=!0);if(!(I.data||W==="watch"&&_.p("swatcheroo_page_pool_dont_provide_filler_data"))){var B;if(W=(B=_.$$("FILLER_DATA",{})[W])==null?void 0:B.response)I.data=W}return I}};var Cb2=function(W){this.JSC$28331_clientRoot=W;this.playlistHandlerActionMap={"yt-add-to-playlist-command":TwL,"yt-end-playlist-command":rnv,"yt-recover-playlist-command":RSG,"yt-refresh-playlist-command":LZd,"yt-playlist-remove-videos-action":FZB};_.kM(_.bs.getInstance(),this.playlistHandlerActionMap,this.JSC$28331_clientRoot);eVm()},AJ9;var w2=function(W,P,x){this.apiKey=W;this.endpoint=P;this.confidenceThreshold=x===void 0?.5:x;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=P==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||P==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
P==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||P==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new VY3};
_.J=w2.prototype;
_.J.start=function(W){if(this.state===0)if(this.isOnline()){W.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=W.supportsHttpHeadersOverwriteParam);W.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=W.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.QY("voice_assistant");_.An("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=W.languageCode||"en-US";this.supportsCrossDomainXhr=W.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=W.youtubeAssistantRequest||null;this.listeningHandler=W.listeningHandler||this.listeningHandler;this.audioDetectedHandler=W.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=W.stopHandler||this.stopHandler;this.completeHandler=W.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=W.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=W.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
W.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=W.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=W.accessToken;this.additionalHeaders=W.additionalHeaders||{};var P;this.prefetchResponseTimeoutMs=(P=W.prefetchResponseTimeoutMs)!=null?P:this.prefetchResponseTimeoutMs;zf9(this);this.startAudio();GhL(this)}else this.errorHandler("OFFLINE")};
_.J.stop=function(W){var P=W===void 0?{}:W;W=P.logCancel===void 0?!0:P.logCancel;var x=P.logMicClosed===void 0?!0:P.logMicClosed;var I=P.handleError===void 0?!0:P.handleError;P=P.handleStop===void 0?!0:P.handleStop;this.state!==0&&(W&&h4("voz_cx"),HC(this,{logMicClosed:x,handleStop:P}),I&&this.errorHandler("ABORTED"))};
_.J.getState=function(){return this.state};
_.J.isSupported=function(){return!0};
_.J.stopAudio=function(W){(W===void 0||W)&&h4("voz_mf")};
_.J.startAudio=function(){h4("voz_vp");return _.Jn(null)};
var EX6=function(W,P){W.channelOpen&&(W.state!==2&&(W.state=2,h4("voz_ss"),W.listeningHandler()),P=new Uint8Array(P),P='{ "audioIn": "'+_.L2(P)+'" }',W.channel.send(P))},HC=function(W,P){var x=P===void 0?{}:P;
P=x.logMicClosed===void 0?!0:x.logMicClosed;x=x.handleStop===void 0?!0:x.handleStop;W.vozEndOfDataTimeout>-1&&(clearTimeout(W.vozEndOfDataTimeout),W.vozEndOfDataTimeout=-1);gXm(W);W.stopAudio(P);W.channel&&(W.channelOpen=!1,W.manuallyClosedChannel=!0,W.channel.close(),W.channel=void 0);W.transcribedSpeechResults=[];W.state=0;x&&W.stopHandler()},zf9=function(W){var P={httpHeadersOverwriteParam:W.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},W.additionalHeaders,W.accessToken&&W.isUsingVoz?{Authorization:"Bearer "+W.accessToken}:{"x-goog-api-key":W.apiKey}),supportsCrossDomainXhr:W.supportsCrossDomainXhr};W.channel=new hj(W.endpoint,P);W.channel.open();_.uq(W.channel,"w",function(){var x=W.channel,I=x.send,O=W.isUsingVoz?"PLACEHOLDER":"example";O={config:{dialogStateIn:{languageCode:W.languageCode},deviceConfig:{deviceId:O,deviceModelId:O},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!W.isUsingVoz)O.config.requestType=4;else if(W.isUsingVoz&&W.youtubeAssistantRequest){var B=JSON.stringify(W.youtubeAssistantRequest);O.config.internalIn={youtubeAssistantS3InputJson:B}}I.call(x,O);W.channelOpen=!0;W.manuallyClosedChannel=!1});
_.uq(W.channel,"x",function(){W.manuallyClosedChannel||(W.channelOpen=!1,W.channel=void 0,HC(W))});
_.uq(W.channel,"z",function(x){if(x.data){gXm(W);for(var I=0;I<x.data.length;I++){var O=W,B=x.data[I],Y=B.speechResults;if(Y)a:{var K=[];B=[];var Z=!1;Y=_.n(Y);for(var d=Y.next();!d.done;d=Y.next()){d=d.value;if(d.noSpeech){HC(O);O.errorHandler("NO_SPEECH");break a}d.transcript!==void 0&&d.stability!==void 0&&(d.stability<O.confidenceThreshold&&(Z=!0),Z?B.push(d.transcript):K.push(d.transcript))}if(K.length!==0||B.length!==0)K=K.join(" "),B=B.join(" "),O.receivedEndOfUtterance&&!O.isUsingVoz?O.isUsingVoz||
O.completeHandler([K,B]):(Z=O,Y=K,d=B,h4("voz_sf"),Z.transcriptionUpdateHandler(Y,d),Z.transcribedSpeechResults=[Y,d]),O.receivedEndOfUtterance&&(h4("voz_eou"),O.transcriptionCompleteHandler([K,B]),O.isUsingVoz&&(O.prefetchResponseTimeoutMs===0?HC(O,{logMicClosed:!1,handleStop:!0}):O.prefetchResponseTimeoutMs>0&&Do4(O)))}else O.isUsingVoz&&(B==null?0:B.internalOut)?(B=JSON.parse(B.internalOut.youtubeAssistantS3OutputJson),B.userHasOptedInToVaa||B.vaaConsent?O.vaaConsentUpdateHandler(!!B.userHasOptedInToVaa,
!!B.vaaConsent):(MfL(O),B&&(K=O.transcribedSpeechResults,h4("voz_rqf"),O.completeHandler(K,B)))):B.eventType==="END_OF_UTTERANCE"?O.receivedEndOfUtterance=!0:(h4("voz_err"),O.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.ge(Error("bl")))}}});
_.uq(W.channel,"y",function(x){HC(W);switch(x.status){case 1:x="WEBCHANNEL_NETWORK_ERROR";break;case 2:x="WEBCHANNEL_SERVER_ERROR";break;default:x="WEBCHANNEL_UNKNOWN_ERROR"}W.errorHandler(x);W.logError(Error(x))})};
w2.prototype.logError=function(W){_.G$(W)};
w2.prototype.isOnline=function(){return!0};
var Do4=function(W){MfL(W);W.prefetchResponseSetTimeoutId=setTimeout(function(){HC(W,{logMicClosed:!1,handleStop:!0})},W.prefetchResponseTimeoutMs)},MfL=function(W){W.prefetchResponseSetTimeoutId>-1&&(clearTimeout(W.prefetchResponseSetTimeoutId),W.prefetchResponseSetTimeoutId=-1)},GhL=function(W){gXm(W);
W.noResponseReceivedTimeout=window.setTimeout(function(){HC(W);W.errorHandler("NO_SPEECH")},11E3)},gXm=function(W){W.noResponseReceivedTimeout>-1&&(window.clearTimeout(W.noResponseReceivedTimeout),W.noResponseReceivedTimeout=-1)},h4=function(W){_.CK(W,void 0,"voice_assistant")};var ei=function(){w2.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.A(ei,w2);ei.prototype.isSupported=function(){return WBf()};
ei.prototype.startAudio=function(){var W=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.s2(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(I){$o2(W,I)};
this.processor.connect(this.audioContext.destination);var P=function(I){W.stream=I;if(!W.audioContext)return _.Jn(null);I=W.audioContext.createMediaStreamSource(I);W.processor&&I.connect(W.processor);return _.Jn(null)},x={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?P(this.stream):navigator.mediaDevices.getUserMedia(x).then(P).catch(function(I){HC(W);I.name&&I.name==="NotAllowedError"?W.errorHandler("NO_MICROPHONE_PERMISSION"):(W.errorHandler("AUDIO_ERROR"),W.logError(I));return _.s2(null)});
return w2.prototype.startAudio.call(this)};
ei.prototype.stopAudio=function(W){W=W===void 0?!0:W;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(P){P.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;w2.prototype.stopAudio.call(this,W)};
ei.prototype.isOnline=function(){return navigator.onLine};
var $o2=function(W,P){if(W.audioContext)if(window.OfflineAudioContext){var x=W.audioContext.sampleRate,I=P.inputBuffer.getChannelData(0);P=new window.OfflineAudioContext(1,I.length,16E3);for(var O=P.createBuffer(1,I.length,x),B=O.getChannelData(0),Y=0,K=0;K<I.length;K++)B[K]=I[K],Y+=B[K]*B[K];!W.audioDetected&&Math.sqrt(Y/I.length)>.01&&(W.audioDetected=!0,W.audioDetectedHandler());I=P.createBufferSource();I.buffer=O;I.connect(P.destination);I.start(0);P.oncomplete=function(Z){Z=Z.renderedBuffer.getChannelData(0);
for(var d=Math.floor(16384E3/x),v=new Int16Array(d),m=0;m<d;++m)v[m]=Math.max(-1,Math.min(1,Z[m]))*32767;EX6(W,v.buffer)};
P.startRendering()}else wUQ(W,P)},wUQ=function(W,P){var x=W.audioContext.sampleRate,I=P.inputBuffer.getChannelData(0),O=Math.floor((x+8E3)/16E3);
x=I.length/O;P=new Float32Array(x);for(var B=0;B<x;++B)P[B]=I[B*O];I=new Int16Array(x);for(O=0;O<x;++O)I[O]=Math.max(-1,Math.min(1,P[O]))*32767;EX6(W,I.buffer)};var hfG={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var HkG=function(){this.JSC$17637_audioEnabled=!0;this.audioFeedbackHolder={}};
HkG.prototype.isPlaying=function(W){return W.currentTime>0&&!W.paused&&!W.ended&&W.readyState>2};
var ef9=function(W){for(var P=_.n(Object.values(hfG)),x=P.next();!x.done;x=P.next())x=x.value,W.audioFeedbackHolder[x]=new Audio,W.audioFeedbackHolder[x].src="/s/search/audio/"+x+".mp3",W.audioFeedbackHolder[x].load()},cC=function(W,P){if(W.JSC$17637_audioEnabled!==!1&&P in W.audioFeedbackHolder){for(var x=_.n(Object.values(W.audioFeedbackHolder)),I=x.next();!I.done;I=x.next())I=I.value,W.isPlaying(I)&&I.pause();
W.audioFeedbackHolder[P].currentTime=0;W.audioFeedbackHolder[P].play().catch(function(){})}};var cJy=function(W,P){var x=this;this.store=W;this.service=P;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){x.setState("offline");x.stop()};
this.audioPlayer=new HkG;var I;(I=this.audioPlayer)==null||ef9(I)};
_.J=cJy.prototype;_.J.getService=function(){return this.service};
_.J.isEnabled=function(){return!!this.service};
_.J.isSupported=function(){var W;return(W=this.service)==null?void 0:W.isSupported()};
_.J.start=function(){var W=this,P,x,I,O,B,Y,K,Z,d,v,m,t,C;return _.y(function(z){switch(z.nextAddress){case 1:W.store.dispatch(bEB("",""));if(!navigator.onLine)return W.setState("offline"),z.return();window.addEventListener("offline",W.handleOfflineEvent);W.stream=null;if(!W.permissionsSupported){z.jumpTo(2);break}_.OT(z,3);return _.S(z,aFd(W),5);case 5:P=z.yieldResult;if(!P)return(x=W.audioPlayer)==null||cC(x,"failure"),z.return();W.service.stream=W.stream;W.setState("listening");_.ci(z,2);break;
case 3:_.yn(z),W.permissionsSupported=!1;case 2:I={context:_.VIG(_.F9())},I.youtubeAssistantParams={searchParams:{inlineSearchResponse:W.enableInlineSearchResponse}},O=function(D,w){W.store.dispatch(k44("transcribing"));W.store.dispatch(bEB(D,w))},B=function(){var D;
(D=W.audioPlayer)==null||cC(D,"open");W.setState("listening")},Y=function(){W.setState("transcribing")},K=function(D){W.setErrorState(D)},Z=function(D,w){var a;
(a=W.audioPlayer)==null||cC(a,"success");w&&(_.p("kevlar_voice_search_inline_search")&&(W.responseProcessor=_.FY().resolve(_.ukt),W.responseProcessor&&(a=w.navigationAction,D=w.prefetchedSearchResponse,a&&D&&(a=(new _.bVb).JSC$11815_getStoreKey(a),_.N$(W.responseProcessor,D,a)))),W.JSC$17655_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",w))},d=function(){window.removeEventListener("offline",W.handleOfflineEvent)},v=_.E6m(!1),m=v.Authorization!=null,t=W.enableFirstPartyAuth||
W.enableFPAForSignedInUsers&&m?v:{"X-Goog-Visitor-Id":v["X-Goog-Visitor-Id"]},C={completeHandler:Z,
errorHandler:K,listeningHandler:B,audioDetectedHandler:Y,stopHandler:d,transcriptionUpdateHandler:O,youtubeAssistantRequest:I,languageCode:bk9(),additionalHeaders:t,supportsCrossDomainXhr:W.enableFirstPartyAuth||W.enableFPAForSignedInUsers&&m,supportsHttpHeadersOverwriteParam:!W.disableHttpHeadersOverwrite},W.service.start(C),_.Kl(z)}})};
_.J.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.J.reset=function(){this.store.dispatch(_.LK({type:"RESET_VOICE_SEARCH_STATE"}))};
_.J.setState=function(W){this.store.dispatch(k44(W))};
_.J.setErrorState=function(W){switch(W){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var P;(P=this.audioPlayer)==null||cC(P,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)aFd(this);else{var x;(x=this.audioPlayer)==null||cC(x,"failure");this.setState("permission-denied")}break;case "ABORTED":var I;(I=this.audioPlayer)==null||cC(I,"no_input");break;default:var O;(O=this.audioPlayer)==
null||cC(O,"no_input");this.setState("timeout")}};
var aFd=function(W){var P,x;return _.y(function(I){switch(I.nextAddress){case 1:return _.S(I,navigator.permissions.query({name:"microphone"}),2);case 2:P=I.yieldResult;if(P.state==="granted")return I.return(!0);if(P.state==="denied")return W.setState("permission-denied"),I.return(!1);W.setState("permission");x={audio:{sampleSize:16,channelCount:1},video:!1};_.OT(I,3);return _.S(I,navigator.mediaDevices.getUserMedia(x),5);case 5:return W.stream=I.yieldResult,I.return(!0);case 3:return _.yn(I),W.setState("permission-denied"),
I.return(!1)}})},bk9=function(){var W=_.$$("INNERTUBE_CONTEXT_HL"),P=_.$$("INNERTUBE_CONTEXT_GL");
return W.indexOf("-")>-1?W:W+"-"+P};var khO=function(W,P,x){cJy.call(this,P,x);this.JSC$17655_actionRouter=W;this.enableInlineSearchResponse=_.p("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.p("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.p("kevlar_voice_search_enable_fpa_signedin_users")},UoL;
_.A(khO,cJy);
var XUO=function(){if(!UoL){var W="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.p("kevlar_voice_search_auth_enabled")||_.p("kevlar_voice_search_use_yt_endpoint")?W="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.p("kevlar_voice_search_use_fp_endpoint")&&(W="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");UoL=
new khO(_.bs.getInstance(),_.Xe(),new ei(_.$$("VOZ_API_KEY"),W,.5))}return UoL};var fFL=function(W){this.JSC$17659_clientRoot=W;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17659_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)]]));W=_.n(this.eventListeners);for(var P=W.next();!P.done;P=W.next()){var x=_.n(P.value);P=x.next().value;x=x.next().value;x=_.n(x);for(var I=x.next();!I.done;I=x.next()){var O=
_.n(I.value);I=O.next().value;O=O.next().value;P.addEventListener(I,O)}}_.kM(_.bs.getInstance(),this.autonavPauseActionMap,this.JSC$17659_clientRoot)},NyB,lFf=function(W){return _.p("kevlar_autonav_popup_filtering")?(W=_.af(W))?W.hasAttribute("prevent-autonav"):!0:!0};
_.J=fFL.prototype;_.J.onIronOverlayOpened=function(W){lFf(W)&&(this.autonavPauseReasons.overlayOpen=!0,aL(this))};
_.J.onIronOverlayClosed=function(W){lFf(W)&&(this.autonavPauseReasons.overlayOpen=!1,aL(this))};
_.J.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;aL(this)};
_.J.onYtAutonavPauseBlur=function(){var W=this;_.Gr.addJob(function(){W.isInBackground()||(W.autonavPauseReasons.inputBoxFocus=!1,aL(W))},8,0)};
_.J.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;aL(this)};
_.J.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;aL(this)};
_.J.onYtAutonavPauseScroll=function(){var W=_.FY().resolve(_.rL);W.isOnWatch()&&(W=W.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=W.getBoundingClientRect().top<-200,aL(this))};
_.J.onYtAutonavPauseUserEngagement=function(W){var P=this;if(_.p("user_engagement_enable_autoplay_pause_feature")){var x=Number(W.lowEngagementThresholdMs);isNaN(x)||x<=0||W.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.r4("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.FY().resolve(_.jy),_.LD()<x?_.VE(_.Gr,function(){_.r4("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.wi4()?(this.userEngagementCsn=_.E_(),_.VE(_.Gr,function(){_.r4("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
P.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,aL(this)):_.r4("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.$go(Error("cl`"+JSON.stringify(W)))};
_.J.onYtAutonavPausePlayer=function(W){this.autonavPauseReasons.requestedByPlayer=!!W.detail;aL(this)};
_.J.onYtAutonavVisibilityChanged=function(){var W=this,P,x,I;return _.y(function(O){if(O.nextAddress==1)return(P=_.RP())?_.S(O,P.getPlayerPromise(),2):O.return();x=O.yieldResult;I=x.isMuted()||x.getVolume()===0;W.autonavPauseReasons.backgroundAndMute=W.isInBackground()&&I;aL(W);_.Kl(O)})};
_.J.onYtAutonavPausePlayerEnded=function(){_.FY().resolve(_.jy);var W=144E5;_.p("user_engagement_enable_autoplay_pause_feature")||_.p("is_part_of_any_user_engagement_experiment")||(W=45E5);this.autonavPauseReasons.longIdle=_.LD()>W;Tyv(this);aL(this)};
_.J.onYtUserActivity=function(){var W=this;this.autonavPauseReasons.userEngagement&&(_.VE(_.Gr,function(){_.r4("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,aL(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.VE(_.Gr,function(){_.r4("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",W.userEngagementCsn);_.z$()}),this.autonavPauseReasons.youthereLactExperiment=!1,aL(this));
this.autonavPauseReasons.longIdle&&!_.p("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,aL(this))};
_.J.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
var aL=function(W){for(var P=!1,x=_.n(Object.values(W.autonavPauseReasons)),I=x.next();!I.done;I=x.next())I=I.value,P=P||I;P?_.iG.getInstance().pause(W.autonavPauseReasons):(W=_.iG.getInstance(),W.autonavState_==3?(W.setState(2,!1,!1),W.autonavPauseReason_=void 0):W.autonavState_==1&&(W.disabledAutonavPauseReason_=void 0))},Tyv=function(W){var P=!1;
if(_.p("enable_autoplay_pause_by_lact")){_.FY().resolve(_.jy);P=_.Wi("autoplay_pause_by_lact_sec")*1E3;var x=_.Wi("autoplay_pause_by_lact_sampling_fraction");(P=_.LD()>=P&&Math.random()<x)&&!_.wi4()&&(_.VE(_.Gr,function(){_.r4("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),P=!1)}P!==W.autonavPauseReasons.youthereLactExperiment&&(W.autonavPauseReasons.youthereLactExperiment=P)&&(W.userEngagementCsn=_.E_(),_.VE(_.Gr,function(){_.r4("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",W.userEngagementCsn)}));
W.autonavPauseReasons.userEngagement&&_.VE(_.Gr,function(){_.r4("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",W.userEngagementCsn)})};
fFL.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.r4("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.z$(),this.autonavPauseReasons.youthereLactExperiment=!1,aL(this));this.autonavPauseReasons.userEngagement&&(_.r4("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,aL(this))};
fFL.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var bl=function(){var W=_.b.apply(this,arguments)||this;W.miniGuideVisible=!1;W.guideOpened=_.p("disable_initial_guide_state_fix")?!1:W.canFitPersistentGuide(W.initialBodyClientWidth);W.guideUserStateOpened=W.getInitialGuideUserStateOpened();W.isFullscreenShorts=!1;W.miniGuideWidthThreshold=_.Wi("kevlar_mini_guide_width_threshold",791);W.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");W.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
W.persistentGuideBlockedPagePathRegex=new RegExp(W.persistentGuideBlockedPagesPatterns.join("|"));W.animationTransitionDuration=0;W.lateDataResolver=_.aP();W.initialGuideDataFetchFailed=!1;W.initialLoad=!0;W.guideRenderers=new Set;W.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return W};
_.A(bl,_.b);_.J=bl.prototype;_.J.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.J.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.J.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.J.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.J.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.J.ready=function(){_.FY().addProvider({provide:_.$y,useValue:this.hostElement})};
_.J.attached=function(){var W=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.WM(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.WM(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.WM(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.WM(this,this.onYtGuideShow));_.Xm(this,function(){W.animationTransitionDuration=200})};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.WM(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.WM(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.WM(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.WM(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.WM(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.WM(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.WM(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.J.getData=function(){return this.data};
_.J.load=function(){var W=this,P,x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=W.lateDataResolver.resolve.bind(W),B.return(W.lateDataResolver.promise);if(window.ytInitialGuideData)return P=_.aP(),P.resolve(window.ytInitialGuideData),B.return(P.promise);I=!1;_.OT(B,2);return _.S(B,W.fetchGuideData(),4);case 4:x=B.yieldResult;_.ci(B,3);break;case 2:O=_.yn(B),O.message==="Returned error"&&(I=!0);
case 3:if(x)return B.return(x);W.onYtGuideClose();I||(W.initialGuideDataFetchFailed=!0);return B.return(W.lateDataResolver.promise)}})};
_.J.fetchGuideData=function(){var W=this,P,x,I,O,B,Y,K;return _.y(function(Z){if(Z.nextAddress==1)return P=_.FY(),W.guidePromise||(x=P.resolve(_.m7),W.guidePromise=_.cF(x,qZ2)),_.S(Z,W.guidePromise,2);if(Z.nextAddress!=3)return I=Z.yieldResult,O=P.resolve(_.Ub),_.S(Z,O(),3);(B=Z.yieldResult)&&((Y=I)==null?void 0:(K=Y.responseContext)==null?void 0:K.maxAgeSeconds)!==0&&B.put("service:guide:fallback",new _.xw({innertubeResponse:I}));return Z.return(I)})};
_.J.initializeGuideDataIfEmpty=function(){var W=this,P,x;return _.y(function(I){if(I.nextAddress==1){if(!W.initialGuideDataFetchFailed||W.data)return I.return();_.OT(I,2);return _.S(I,W.fetchGuideData(),4)}if(I.nextAddress!=2)return(P=I.yieldResult)&&W.lateDataResolver.resolve(P),_.ci(I,0);x=_.yn(I);_.ge(x);_.Kl(I)})};
_.J.initializeGuideData=function(){var W=this,P;return _.y(function(x){switch(x.nextAddress){case 1:return _.se(dtB(),{mainAppWeb:_.wT()}),_.OT(x,2),_.S(x,W.load(),4);case 4:W.data=x.yieldResult;_.ci(x,3);break;case 2:_.yn(x),_.vX(dtB(),"FAILURE");case 3:P=W.data&&W.data.items&&W.data.items.length>0?"SUCCESS":"FAILURE",_.vX(dtB(),P),_.Kl(x)}})};
_.J.setGuideData=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1)return P.disabled?O.return():P.data?(W.data=P.data,P.guideRenderers.add(W),O.return()):_.S(O,P.initializeGuideData(),2);P.graftGuideToPage();x=_.wo("IS_HOMEPAGE_COLD")?"eop":void 0;_.p("disable_element_pool_populator")?P.setGuideDataAfterInit(W):(I=new _.NH(1,x),_.lc(I,P.setGuideDataAfterInit.bind(P,W)));_.Kl(O)})};
_.J.setGuideDataAfterInit=function(W){W.data=this.data;W.markDirty();this.guideRenderers.add(W);_.gY(function(){_.CK("gle")});
_.Xm(this,function(){_.CK("gpe")})};
_.J.graftGuideToPage=function(){if(this.data){var W=this.data&&this.data.trackingParams;W&&(W=_.ox(W),_.YP(_.YY(),W))}};
_.J.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.WM(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.J.onDrawerOpenedChanged=function(W,P){!P.value&&this.guideOpened&&(this.guideOpened=!1)};
_.J.onYtGuideToggle=function(W){var P=this.guideOpened;this.guideOpened=!P;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var x=_.SI();_.uB(0,109,!this.guideUserStateOpened);x.save()}this.updateGuideDrawerElementState();if(this.guideElement){var I;this.guideOpened&&((I=W.detail)==null?0:I.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.WM(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.WM(this,
this.onAppDrawerTransitioned))}P||this.initializeGuideDataIfEmpty()};
_.J.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.WM(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.fD(this.guideElement)};
_.J.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.WM(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(cd3(this.guideOpened))};
_.J.guidePersistentAndVisibleChanged=function(){_.P7(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.J.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.LK({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.J.miniGuideVisibleChanged=function(){_.P7(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.J.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(cd3(this.guideOpened)),this.initialLoad=!1);_.P7(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.J.activeEndpointChanged=function(){_.P7(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.J.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.J.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()};
_.J.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var W=this.canFitPersistentGuide(this.cachedClientWidth);W?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=W}this.updateGuideDrawerElementState()};
_.J.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.J.getGuideOpened=function(){return this.guideOpened};
_.J.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.J.getActiveEndpoint=function(){return this.activeEndpoint};
_.J.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.J.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&&_.Lf(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.J.computeGuidePersistentAndVisible=function(){var W=this;_.De(this,"computeGuidePersistentAndVisible",function(){W.guidePersistentAndVisible=W.guideOpened&&W.guidePersistent;W.guideIsVisibleButNotPersistent=!(!W.guideOpened||W.guidePersistent)})};
_.J.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.J.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.J.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.J.startLoadingWatch=function(){this.closeGuide()};
_.J.startLoadingShorts=function(){_.p("web_hide_guide_on_shorts")&&this.closeGuide()};
_.J.onYtNavigateFinish=function(W,P){if(!_.yo||P){this.activeEndpoint=P.endpoint;this.pageType=P.pageType;this.pageUrl=P.response.url;var x,I;W=(I=_.Q((x=P.endpoint)==null?void 0:x.commandMetadata,_.rU))==null?void 0:I.url;!this.pageUrl&&W&&(this.pageUrl=W);_.p("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.J.getVisibleGuideRenderer=function(){for(var W=_.n(this.guideRenderers),P=W.next();!P.done;P=W.next())if(P=P.value,this.miniGuideVisible&&P.is==="ytd-mini-guide-renderer"||this.guideOpened&&P.is==="ytd-guide-renderer")return P;return null};
_.J.markGuideRendererDirty=function(W){if(W){typeof W.markDirty==="function"&&W.markDirty();W=_.n([].concat(_.ju(_.g(W).children)));for(var P=W.next();!P.done;P=W.next())this.markGuideRendererDirty(P.value)}};
_.J.persistentGuideEnabled=function(W,P){if(!P||W==="watch"||W==="settings"||W==="shorts"&&this.isFullscreenShorts||_.p("reels_web_disable_persistent_guide_shorts")&&W==="shorts")return!1;var x=_.YO(P)||"";return _.p("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(I){return x===I}):!this.persistentGuideBlockedPagePathRegex.test(x)};
_.J.canFitPersistentGuide=function(W){var P=_.Wi("kevlar_persistent_guide_width_threshold",1312);return P===-1||_.p("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:W>P};
_.J.canFitMiniGuide=function(W){return this.miniGuideWidthThreshold===-1?!1:W>this.miniGuideWidthThreshold};
_.J.onResize=function(){var W=this;_.De(this,"calculateGuideState",function(){W.onResizeDebounced()})};
_.J.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.J.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.J.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.J.getInitialGuideUserStateOpened=function(){return!_.SI().getFlag(109)};
_.N1.Object.defineProperties(bl.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.$$("initialBodyClientWidth")||window.innerWidth}}});
bl.prototype.onResize=bl.prototype.onResize;bl.prototype.observeForMiniGuideVisible=bl.prototype.observeForMiniGuideVisible;bl.prototype.computeGuidePersistentAndVisible=bl.prototype.computeGuidePersistentAndVisible;bl.prototype.cachedClientWidthChanged=bl.prototype.cachedClientWidthChanged;bl.prototype.resetGuide=bl.prototype.resetGuide;bl.prototype.activeEndpointChanged=bl.prototype.activeEndpointChanged;bl.prototype.guideOpenedChanged=bl.prototype.guideOpenedChanged;
bl.prototype.miniGuideVisibleChanged=bl.prototype.miniGuideVisibleChanged;bl.prototype.guideIsVisibleButNotPersistentChanged=bl.prototype.guideIsVisibleButNotPersistentChanged;bl.prototype.guidePersistentAndVisibleChanged=bl.prototype.guidePersistentAndVisibleChanged;bl.prototype.onGuideElementChanged=bl.prototype.onGuideElementChanged;bl.prototype.onGuidePersistentChanged=bl.prototype.onGuidePersistentChanged;bl.prototype.onRenderGuideChanged=bl.prototype.onRenderGuideChanged;
bl.prototype.onActiveEndpointChanged=bl.prototype.onActiveEndpointChanged;bl.prototype.onMiniGuideVisibleChanged=bl.prototype.onMiniGuideVisibleChanged;bl.prototype.onGuideIsVisibleButNotPersistentChanged=bl.prototype.onGuideIsVisibleButNotPersistentChanged;bl.prototype.onGuidePersistendAndVisibleChanged=bl.prototype.onGuidePersistendAndVisibleChanged;_.f([_.h(_.Db),_.l("design:type",Object)],bl.prototype,"ironResizableBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],bl.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],bl.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],bl.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bl.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],bl.prototype,"disabled",void 0);
_.f([_.c(),_.l("design:type",Boolean)],bl.prototype,"guidePersistentAndVisible",void 0);_.f([_.OZ("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"onGuidePersistendAndVisibleChanged",null);_.f([_.c(),_.l("design:type",Boolean)],bl.prototype,"guideIsVisibleButNotPersistent",void 0);
_.f([_.OZ("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.f([_.c(),_.l("design:type",Object)],bl.prototype,"miniGuideVisible",void 0);_.f([_.OZ("miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"onMiniGuideVisibleChanged",null);_.f([_.c(),_.l("design:type",Boolean)],bl.prototype,"forceMiniGuideClose",void 0);
_.f([_.c(),_.l("design:type",Object)],bl.prototype,"activeEndpoint",void 0);_.f([_.OZ("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"onActiveEndpointChanged",null);_.f([_.c(),_.l("design:type",Boolean)],bl.prototype,"renderGuide",void 0);_.f([_.OZ("renderGuide"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"onRenderGuideChanged",null);
_.f([_.c(),_.l("design:type",Object)],bl.prototype,"guideOpened",void 0);_.f([_.c(),_.l("design:type",Boolean)],bl.prototype,"guidePersistent",void 0);_.f([_.OZ("guidePersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"onGuidePersistentChanged",null);_.f([_.c(),_.l("design:type",Object)],bl.prototype,"guideUserStateOpened",void 0);_.f([_.c(),_.l("design:type",String)],bl.prototype,"pageUrl",void 0);
_.f([_.c(),_.l("design:type",String)],bl.prototype,"pageType",void 0);_.f([_.c(),_.l("design:type",Number)],bl.prototype,"cachedClientWidth",void 0);_.f([_.c(),_.l("design:type",Object)],bl.prototype,"guideElement",void 0);_.f([_.c({selector:_.vO}),_.l("design:type",Object)],bl.prototype,"isFullscreenShorts",void 0);_.f([_.OZ("guideElement"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"onGuideElementChanged",null);
_.f([_.OZ("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"guidePersistentAndVisibleChanged",null);_.f([_.K_("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.f([_.OZ("miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"miniGuideVisibleChanged",null);_.f([_.K_("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"guideOpenedChanged",null);_.f([_.OZ("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"activeEndpointChanged",null);
_.f([_.K_("pageUrl"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"resetGuide",null);_.f([_.K_("cachedClientWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"cachedClientWidthChanged",null);_.f([_.OZ("guideOpened","guidePersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"computeGuidePersistentAndVisible",null);
_.f([_.K_("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"observeForMiniGuideVisible",null);_.f([_.I7("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bl.prototype,"onResize",null);bl=_.f([_.U({disableElementRegistration:!0,is:"yt-guide-manager"})],bl);var rJd=_.X(bl,"yt-guide-manager",void 0,{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var kg=function(){var W=_.b.apply(this,arguments)||this;W.JSC$17669_keyboardInUse=!1;W.boundHandleCapturedKeydownEvent=function(P){W.handleCapturedKeydownEvent(P)};
return W};
_.A(kg,_.b);_.J=kg.prototype;_.J.attached=function(){this.listenToDocument(document)};
_.J.listenToDocument=function(W){W.addEventListener("keydown",_.WM(this,this.onKeyDownEvent));W.addEventListener("keyup",_.WM(this,this.onKeyUpEvent));W.addEventListener("mousedown",_.WM(this,this.onMouseDownEvent));_.p("desktop_keyboard_capture_keydown_killswitch")||W.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.addEventListener("yt-page-data-updated",_.WM(this,this.onPageUpdate))};
_.J.detached=function(){this.unlistenFromDocument(document)};
_.J.unlistenFromDocument=function(W){W.removeEventListener("keydown",_.WM(this,this.onKeyDownEvent));W.removeEventListener("keyup",_.WM(this,this.onKeyUpEvent));W.removeEventListener("mousedown",_.WM(this,this.onMouseDownEvent));_.p("desktop_keyboard_capture_keydown_killswitch")||W.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.removeEventListener("yt-page-data-updated",_.WM(this,this.onPageUpdate))};
_.J.ready=function(){_.FY().addProvider({provide:_.jK,useValue:this})};
_.J.isKeyBoardInUse=function(){return this.JSC$17669_keyboardInUse};
_.J.handleCapturedKeydownEvent=function(W){if(W.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(W)};
_.J.onMouseDownEvent=function(){this.JSC$17669_keyboardInUse=!1};
_.J.onPageUpdate=function(){if(_.p("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.p("web_shorts_keyboard_shortcut_usage_log")){_.WS.clear();for(var W=_.n(_.qh),P=W.next();!P.done;P=W.next()){var x=_.n(P.value);P=x.next().value;x=x.next().value;x=_.td(x);_.WS.set(P,x);_.hn(_.E_(),_.G7(),x)}_.PS.clear();W=_.n(_.LY);for(P=W.next();!P.done;P=W.next())x=_.n(P.value),P=x.next().value,x=x.next().value,x=_.td(x),_.PS.set(P,x),_.hn(_.E_(),_.G7(),x);_.H7(_.E_(),_.G7(),[].concat(_.ju(_.PS.values()),
_.ju(_.WS.values())));_.c7(_.E_(),[].concat(_.ju(_.PS.values()),_.ju(_.WS.values())))}};
_.J.onMiniplayerActiveChange=function(){var W;(W=_.FY().resolve(_.kc).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(W.document):this.unlistenFromDocument(W.document))};
_.J.ignoreKeyEvent=function(W){if(W.ctrlKey||W.altKey)if(_.p("kevlar_macro_markers_keyboard_shortcut")){if(W.keyCode!==37&&W.keyCode!==39)return!0}else return!0;var P=_.c5(W)||[];return _.eMM(P)?!0:W.defaultPrevented?(Sr(W.keyCode,W.shiftKey,this.isShortsPage),!0):W.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(W):!1};
_.J.isSpacebarClick=function(W){var P=W||window.event;var x;P.composedPath&&typeof P.composedPath==="function"?x=P.composedPath():x=P.path;x&&x.length?P=x[0]:(P=P||window.event,P=P.target||P.srcElement,P.nodeType==3&&(P=P.parentNode));return P&&W.keyCode===32&&(W=P.tagName==="BUTTON"||P.tagName==="A"||P.tagName==="INPUT",P=(P=P.getAttribute("role"))&&(P==="option"||P==="button"||P.indexOf("menuitem")===0),W||P)?!0:!1};
_.J.onKeyDownEvent=function(W){if(!this.ignoreKeyEvent(W)&&(W.keyCode===191&&(W.shiftKey||W.metaKey?W.repeat!=null&&W.repeat||(this.openHotkeyDialog(),Sr(W.keyCode,W.shiftKey,this.isShortsPage)):(this.focusSearchBox(),W.preventDefault())),!W.metaKey)){var P=_.FY().resolve(_.kc);switch(W.keyCode){case 9:this.JSC$17669_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(W);break;case 84:P.pipController.getWindow()&&window.focus();this.toggleTheaterMode(W.keyCode,W.shiftKey);break;case 73:P.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(W.keyCode,W.shiftKey);break;case 70:if(this.isShortsPage&&_.p("web_fullscreen_shorts")){_.a84();break}this.isMiniplayerActive()?P.pipController.getWindow()&&(P.close(!0),window.focus()):this.passEventToPlayer(W);break;case 27:this.closeMiniplayer(W.keyCode,W.shiftKey)||this.passEventToPlayer(W);break;case 13:W.shiftKey&&_.p("web_ephemeral_actions")&&_.FY().resolve(_.y9).activate(W);break;default:this.passEventToPlayer(W)}}};
_.J.onKeyUpEvent=function(W){if(!this.ignoreKeyEvent(W))if(_.p("web_speedmaster_spacebar_control")&&W.keyCode===32)this.handlePlayerSpaceKey(W,!0);else{var P=this.getPlayerManager();P&&(P=P.getPlayer())&&P.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code)}};
_.J.getPlayerManager=function(){var W=_.RP(),P=_.FY().resolve(_.Rl(_.rL));return W&&P&&P.isOnWatch()?W:null};
_.J.passEventToPlayer=function(W,P){var x=this,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return!_.p("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&x.isMiniplayerActive()?I=_.FY().resolve(_.kc).getPlayerElement():x.inlinePreviewIsActive?(O=_.P7(x.hostElement,"yt-get-inline-preview-player-action"))&&O[0]&&(I=O[0]):I=_.RP(),I?_.S(Y,I.getPlayerPromise(),3):Y.jumpTo(0);B=Y.yieldResult;P?B.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat):B.handleGlobalKeyDown(W.keyCode,
W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat);W.keyCode!==38&&W.keyCode!==40&&Sr(W.keyCode,W.shiftKey,x.isShortsPage);_.Kl(Y)})};
_.J.focusSearchBox=function(){_.Lf(this.hostElement,"yt-focus-searchbox")};
_.J.openHotkeyDialog=function(){_.Lf(this.hostElement,"yt-open-hotkey-dialog")};
_.J.isMiniplayerActive=function(){return _.FY().resolve(_.kc).isMiniplayerActive()};
_.J.closeMiniplayer=function(W,P){return this.isMiniplayerActive()?(_.FY().resolve(_.kc).close(),Sr(W,P,this.isShortsPage),!0):!1};
_.J.toggleTheaterMode=function(W,P){var x=_.z6(_.Xe().getState()),I=this.getPlayerManager(),O=_.p("disable_theater_mode_keyboard")||_.wo("START_IN_FULL_WINDOW_MODE");I&&!O&&(x=!x,_.iO()&&_.p("external_fullscreen")&&(x=!0),_.W7(this.hostElement,"yt-toggle-theater-mode",[x]),Sr(W,P,this.isShortsPage))};
_.J.toggleMiniplayer=function(W,P){var x=this.getPlayerManager();if(this.isMiniplayerActive()){var I;((I=_.FY().resolve(_.Rl(_.rL)))==null?0:I.isOnWatch())?_.FY().resolve(_.kc).close(!0):_.mH(_.FY().resolve(_.kc));Sr(W,P,this.isShortsPage)}else x&&(_.W7(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Sr(W,P,this.isShortsPage))};
_.J.handlePlayerSpaceKey=function(W,P){var x=!!_.RP()||this.isMiniplayerActive();x=_.p("disable_space_scroll_fix")||x;_.p("global_spacebar_pause")&&!this.isKeyBoardInUse()&&x&&(W.preventDefault(),this.passEventToPlayer(W,P))};
kg.prototype.onMiniplayerActiveChange=kg.prototype.onMiniplayerActiveChange;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],kg.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],kg.prototype,"ytdReduxBehavior",void 0);_.f([_.c({selector:_.CGR}),_.l("design:type",Boolean)],kg.prototype,"inlinePreviewIsActive",void 0);_.f([_.c({selector:_.hML}),_.l("design:type",Boolean)],kg.prototype,"isShortsPage",void 0);
_.f([_.c({selector:_.Ab}),_.l("design:type",Boolean)],kg.prototype,"miniplayerIsActive",void 0);_.f([_.OZ("miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kg.prototype,"onMiniplayerActiveChange",null);kg=_.f([_.U({disableElementRegistration:!0,is:"yt-hotkey-manager"})],kg);_.X(kg,"yt-hotkey-manager",void 0,{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var UG=function(){var W=_.b.apply(this,arguments)||this;W.loopStateEntityKey_=null;W.playlistLoopStateEntity_=null;W.isShuffleNextPlaylist=!1;W.PLAYER_EVENTS_=new Map;W.playerListenersSetup_=!1;W.videoSkipJob_=0;W.canAutoAdvance_=!1;W.playerManager_=null;W.TEST_ONLY={};return W};
_.A(UG,_.b);_.J=UG.prototype;_.J.ready=function(){_.FY().addProvider({provide:_.wx,useValue:this.hostElement})};
_.J.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_)};
_.J.attached=function(){document.addEventListener("yt-navigate-start",_.WM(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.WM(this,this.onYtNavigateFinish_))};
_.J.detached=function(){document.removeEventListener("yt-navigate-start",_.WM(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.WM(this,this.onYtNavigateFinish_))};
_.J.updatePlaylistEventListeners=function(W,P){P&&!this.playerListenersSetup_?(this.playerManager_=W,this.registerPlaylistEventListeners_(W)):!P&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(W))};
_.J.setPlayer=function(W){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=W};
_.J.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.J.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.J.registerPlaylistEventListeners_=function(W){var P=this;W.getPlayerPromise().then(function(x){P.playerListenersSetup_||(P.ytPlayerListenerBehavior.listenToPlayerEvents(x,P.PLAYER_EVENTS_),P.playerListenersSetup_=!0)})};
_.J.removePlaylistEventListeners_=function(W){var P=this;W.getPlayerPromise().then(function(x){P.playerListenersSetup_&&(P.ytPlayerListenerBehavior.unlistenFromPlayerEvents(x,P.PLAYER_EVENTS_),P.playerListenersSetup_=!1)})};
_.J.setPlaylistComponent=function(W){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.WM(this,this.onPlaylistYtNavigate_)),W&&(W.data&&this.playlistComponent.data&&W.data.playlistId==this.playlistComponent.data.playlistId?(W.loopOn=this.playlistComponent.loopOn,W.shuffleOn=this.playlistComponent.shuffleOn):(W.loopOn=!1,W.shuffleOn=!1),this.isShuffleNextPlaylist&&(W.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=W;this.playlistComponent.addEventListener("yt-navigate",
_.WM(this,this.onPlaylistYtNavigate_))};
_.J.setAutoplayRenderer=function(W){this.autoplayData=W};
_.J.setPlaylistData=function(W){this.currentPlaylistData_=W;_.Lf(this.hostElement,"yt-playlist-data-updated");_.jU.isEmpty(W)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(W)};
_.J.setPlayerPlaybackControlData=function(W){this.playerManager_&&this.playerManager_.updatePlayerComponents(W.playlistPanelRenderer)};
_.J.getPlaylistData=function(){return this.currentPlaylistData_};
_.J.getTempData_=function(W,P){if(this.playlistComponent==null)return null;W={};this.playlistComponent.shuffleOn&&(W.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(W.loop_on=this.playlistComponent.loopOn);P&&(W.autonav="1",_.FY().resolve(_.jy),P=_.LD(),P>0&&(W.lact=P),this.playerManager_&&(P=this.playerManager_.getPlayer())&&P.shouldSendVisibilityState()&&(P=P.getVisibilityState(),P!=0&&(W.vis=P)));_.p("enable_unknown_lact_fix_on_html5")&&(_.FY().resolve(_.jy),W.lact=
_.LD());return W};
_.J.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.J.setLoopStateEntityKey_=function(W){var P;this.loopStateEntityKey_=((P=this.getPlaylistLoopData_(W))==null?void 0:P.playlistLoopStateEntityKey)||null};
_.J.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.J.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.J.skipVideo=function(){var W=this,P=_.p("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||P)P=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.pC(_.Gr,function(){W.onPlaylistNext();W.videoSkipJob_=0},P)};
_.J.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Gr.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.J.isInBackground_=function(){var W=window.document.visibilityState;return!(!W||W=="visible")};
_.J.onPlaylistIndex_=function(W){this.playlistComponent&&(W=this.playlistComponent.data.contents[W].playlistPanelVideoRenderer.navigationEndpoint,_.Lf(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getTempData_(W)}))};
_.J.onPlayerStateChange_=function(W){if(W=W==0&&this.playlistComponent&&this.canAutoAdvance_)W=_.iG.getInstance(),W=!(W.autonavState_===3?W.autonavPauseReason_&&W.autonavPauseReason_.inputBoxFocus===!0:W.autonavState_===1&&W.disabledAutonavPauseReason_&&W.disabledAutonavPauseReason_.inputBoxFocus===!0);W&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.J.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.J.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.J.navigateToAutoplayWatchEndpoint_=function(W,P,x){var I=this.playlistComponent.data.currentIndex,O=this.getNumPlayableVideos_();W=="NORMAL"&&P=="autoplayVideo"&&I+1>=O&&x||!(W=this.getVideoEndpoint_(W,P))||(x=this.getTempData_(W,x),_.Lf(this.hostElement,"yt-navigate",{endpoint:W,tempData:x}))};
_.J.getNumPlayableVideos_=function(){for(var W=0,P=_.n(this.playlistComponent.data.contents||[]),x=P.next();!x.done;x=P.next())x.value.playlistPanelVideoRenderer&&(W+=1);return W};
_.J.getVideoEndpoint_=function(W,P){if(this.autoplayData&&this.autoplayData.sets)for(var x=0,I=this.autoplayData.sets.length;x<I;x++){var O=this.autoplayData.sets[x];if(O.mode==W){if(O[P])return O[P];break}}else W=new _.mW("AutoplayData is undefined in playlist manager","Mode: "+W+" endpoint: "+P),_.ge(W)};
_.J.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.J.onPlaylistYtNavigate_=function(W){if(W.detail.endpoint){W.stopPropagation();var P=W.detail;P.tempData=this.getTempData_(W.detail.endpoint);_.Lf(this.hostElement,"yt-navigate",P)}};
_.J.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.J.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.J.playlistLoopStateEntityChanged_=function(W){var P=this,x,I,O;return _.y(function(B){if(B.nextAddress==1){if(!W)return B.return();x=W.state==="PLAYLIST_LOOP_STATE_ONE";return P.playerManager_?_.S(B,P.playerManager_.getPlayerPromise(),3):B.jumpTo(2)}B.nextAddress!=2&&(I=B.yieldResult,I.setLoopVideo(x));O=W.state==="PLAYLIST_LOOP_STATE_ALL";P.playlistComponent&&(P.playlistComponent.loopOn=O);_.Kl(B)})};
_.J.getPlaylistLoopData_=function(W){var P,x;if(W=W==null?void 0:(P=W.playlistButtons)==null?void 0:(x=P.menuRenderer)==null?void 0:x.topLevelButtons)for(P=_.n(W),x=P.next();!x.done;x=P.next())if(x=x.value,x.playlistLoopButtonRenderer)return x.playlistLoopButtonRenderer};
_.J.getLoopStateCommand_=function(W){var P=this.getPlaylistData(),x;P=((x=this.getPlaylistLoopData_(P))==null?void 0:x.states)||[];var I;W=(I=_.Q(P[W?1:2],_.idM))==null?void 0:I.button;var O;return(O=_.Q(W,_.w6))==null?void 0:O.command};
_.J.onPlayerLoopChange_=function(W){this.playlistLoopStateEntity_&&(W?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(W=this.getLoopStateCommand_(W))&&this.ytComponentBehavior.resolveCommand(W)};
_.J.onSleepTimerSettingsChanged_=function(W){this.canAutoAdvance_=W!=="End of video"};
UG.prototype.onPlaylistLoopStateEntityChanged=UG.prototype.onPlaylistLoopStateEntityChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],UG.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],UG.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],UG.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UG.prototype,"loopStateEntityKey_",void 0);
_.f([_.c({selectorArgs:["loopStateEntityKey_"],selector:_.$8C}),_.l("design:type",Object)],UG.prototype,"playlistLoopStateEntity_",void 0);_.f([_.OZ("playlistLoopStateEntity_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UG.prototype,"onPlaylistLoopStateEntityChanged",null);UG=_.f([_.U({disableElementRegistration:!0,is:"yt-playlist-manager"})],UG);_.X(UG,"yt-playlist-manager",void 0,{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var iky,RfG=function(){if(iky!==void 0)return iky;var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return iky=W};var XZ=function(){var W=_.b.apply(this,arguments)||this;W.lastCallback=null;W.getAccountLinkPromises={};W.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);W.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return W};
_.A(XZ,_.b);_.J=XZ.prototype;_.J.getLocation=function(){return window.location.href};
_.J.getCompletionUrl=function(){return _.NV(this.getLocation())};
_.J.containsRedirectState=function(W){return(W=_.gh(_.oGU(W)))?(new URLSearchParams(W)).get("redirect_state")!==null:!1};
_.J.createGalConfig=function(W,P){var x=new J39;W=x=P?this.getPopupOrRedirectSetting(x,_.$$("LINK_API_KEY"),_.$$("LINK_API_KEY_REDIRECT"),W):Bn4(x,_.$$("LINK_API_KEY"));W.authUser=_.$$("SESSION_INDEX")||0;W.supportedFlows=new Set([4]);return W.build()};
_.J.getPopupOrRedirectSetting=function(W,P,x,I){this.isGalInteractionPopupMode(I)?(W.interactionMode=0,W=Bn4(W,P)):(W.interactionMode=1,P=this.getCompletionUrl(),W.completionUrl=P,W=Bn4(W,x));return W};
_.J.isGalInteractionPopupMode=function(W){if(this.redirectModeProviderAllowlist.has(W))switch(W){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.p("main_web_redirect_integration_riot");default:return!1}return!0};
_.J.getStatusEntityKeyForProviderId=function(W){return _.On(W+":all","accountLinkStatusEntity")};
_.J.findNestedPropValue=function(W,P){var x=!1,I=null;JSON.stringify(W,function(O,B){x||O!==P||(x=!0,I=B);return x?null:B});
return I};
_.J.findAccountLinkButtonViewModel=function(W,P){var x=null,I=!1;JSON.stringify(W,function(O,B){I||B.accountLinkStatusEntityKey!==P||B.accountLinkStatusSecondaryEntityKey||(I=!0,x=B);return I?null:B});
return x};
_.J.executeLinkingSuccessOrFailureCommands=function(W,P,x){var I=null,O;(P==null?0:(O=P.url)==null?0:O.includes("account_sharing"))?I=P==null?void 0:P.response:I=P==null?void 0:P.response;(P=this.findAccountLinkButtonViewModel(I,W))?(W=x?this.findNestedPropValue(P,"onSuccessCommand"):this.findNestedPropValue(P,"onFailureCommand"))?_.nK([W],this.hostElement):_.co(Error("dl")):_.co(Error("el`"+W))};
_.J.handleInitializeRequest=function(W,P){var x=this,I=U1L(this.createGalConfig(W,!0));this.containsRedirectState(this.getLocation())?EQQ(W,I.config,I.galService).then(function(O){var B=x.getStatusEntityKeyForProviderId(W);if(O.statusCode===1)P&&x.executeLinkingSuccessOrFailureCommands(B,P,!0),O=x.getLocation().indexOf("#"),O!==-1&&window.history.pushState(null,"",x.getLocation().substring(0,O));else return P&&x.executeLinkingSuccessOrFailureCommands(B,P,!1),Promise.reject(Error(O.statusMessage))}).catch(function(O){_.ge(O);
_.Ay("gamingAccountLinkStatusChanged",{serviceId:W,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(O)}):this.getAccountLinkPromises[W]=I.startLinkingSession({serviceId:W})};
_.J.handleAccountLinkCommand=function(W){_.Q(W,RNd)&&this.handleLinkRequest(_.Q(W,RNd))};
_.J.handleLinkRequest=function(W){var P=this,x=W.thirdPartyId;if(x)if(this.isGalInteractionPopupMode(x)){var I=function(){P.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onFailureCommand)},O=function(){P.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onSuccessCommand)};
this.lastCallback=O;this.getAccountLinkPromises[x].then(function(B){aIy(B).then(function(Y){Y.statusCode===1?O():I()})}).catch(function(){I()})}else this.getAccountLinkPromises[x].then(function(B){aIy(B).then(function(Y){if(Y.statusCode!==1)return Promise.reject(Error(Y.statusMessage))})}).catch(function(B){_.ge(B);
_.Ay("gamingAccountLinkStatusChanged",{serviceId:x,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(B)})};
_.J.closeAndFire=function(W,P){_.W7(this.hostElement,"yt-close-popup-action",[W]);P&&_.nK([P],this.hostElement)};
_.J.handleAccountUnlinkCommand=function(W){_.Q(W,Fwm)&&this.handleUnlinkRequest(_.Q(W,Fwm))};
_.J.handleUnlinkRequest=function(W){var P=this,x=W.thirdPartyId;if(x){var I=function(){P.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onFailureCommand)},O=function(){P.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onSuccessCommand)};
this.lastCallback=O;var B=U1L(this.createGalConfig(x,!1));this.unlinkUserGal(B,x).then(function(Y){Y.statusCode===1?O():I()}).catch(function(){I()})}};
_.J.unlinkUserGal=function(W,P){return W.deleteLink(P)};
_.J.handleLogAccountLinkingEventCommand=function(W){_.p("enable_gel_log_commands")&&_.Q(W,qkM)&&(W=_.Q(W,qkM).event)&&_.Ay("gamingAccountLinkStatusChanged",W)};
_.N1.Object.defineProperties(XZ,{template:{configurable:!0,enumerable:!0,get:function(){return RfG()}}});
_.f([_.h(_.xX.YtOpenPopupBehavior),_.l("design:type",Object)],XZ.prototype,"ytOpenPopupBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],XZ.prototype,"ytActionHandlerBehavior",void 0);XZ=_.f([_.U({disableElementRegistration:!0,is:"ytd-third-party-manager"})],XZ);_.X(XZ,"ytd-third-party-manager",function(){return RfG()},{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var FAv,qNy=function(){return FAv!==void 0?FAv:FAv=document.createElement("template")};
document.head.appendChild(qNy().content);var LAy,WIQ=function(){if(LAy!==void 0)return LAy;var W=document.createElement("template");_.G(W,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");W.content.insertBefore(qNy().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return LAy=W};var PLM=_.i4(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),fi=function(){var W=_.b.apply(this,arguments)||this;W.currentPage=void 0;W.renderLoadingStateJobId=0;W.updatePageDataJobId=0;W.pageDisposeJobsets=new WeakMap;W.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"};W.applyZoomTransition=_.Pi("web_page_transition_type")==="zoom";W.applySlideTransition=_.Pi("web_page_transition_type")==="slide";W.TEST_ONLY=void 0;return W};
_.A(fi,_.b);_.J=fi.prototype;_.J.ready=function(){var W=_.FY();W.addProvider({provide:_.rL,useValue:this});W.addProvider({provide:_.KNM,useValue:this})};
_.J.created=function(){this.pagePool=new QMm;this.contextSwitcher=new eT6};
_.J.attached=function(){_.Lf(this.hostElement,"attached");var W=_.FY().resolve(_.Rl(_.v5));W&&(this.contextSwitcher.JSC$17493_networkService_=W);this.viewTransitionManager=_.FY().resolve(_.Rl(_.v4));this.setupPageTransitionAnimation()};
_.J.getPageOffset=function(W){return W.getScrollTop()};
_.J.setPageOffset=function(W,P){try{W.setScrollTop(P)}catch(x){}};
_.J.setPageOffsetForNavigation=function(W,P){_.Lf(this.hostElement,"yt-navigate-set-page-offset",{page:W,offset:P===void 0?0:P})};
_.J.pauseActiveContext=function(){var W=this.contextSwitcher;W.activeContext_&&W.activeContext_.pause()};
_.J.getModuleNameForType=function(W){return W==="watch"?_.p("kevlar_watch_fixie")?"watchFixie":_.p("kevlar_watch_grid")?"watchGrid":"watchFlexy":W==="shorts"||W==="search"?W:"browse"};
_.J.attachPage=function(W){var P,x=!_.p("pc_is_attached_ks")&&(W==null?void 0:(P=W.polymerController)==null?void 0:P.isAttached);if(!W.isAttached&&!x)try{_.g(this.hostElement).appendChild(W)}catch(O){var I;_.ge(new _.mW("Error attaching page element for component",{origin:(I=this.currentPage)==null?void 0:I.is,component:W.is}))}};
_.J.setActivePage=function(W){var P=this,x=!1,I=function(){var O=P.isOnWatch(),B=P.currentPage;if(W)if(W!==P.currentPage){B&&(B.hidden=!0,B.active=!1,B.removeAttribute("role"));P.currentPage=W;var Y,K=_.yy((Y=P.data)==null?void 0:Y.endpoint);B&&_.Lf(P.hostElement,"yt-page-type-changed",{oldPageType:B.is,newPageType:W.is,newPageSubtype:K});_.HM().dispatch(_.LK({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:W.is}));_.HM().dispatch(_.LK({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:K||""}));W.hidden=
!1;P.attachPage(W);W.active=!0;W.setAttribute("role","main");B&&P.setPageOffsetForNavigation(W,0);_.p("kevlar_remove_page_dom_on_switch")&&!O&&B&&_.g(P.hostElement).removeChild(B)}else x=!0;else O=new _.mW("Unable to set active page",B?B.is:"unknown origin",(K=P.data)==null?void 0:K.endpoint),_.G$(O)};
this.viewTransitionManager?BLy(this.viewTransitionManager,I,this.viewTransitionConfigForSetActivePage(this.currentPage,W)):I();return x};
_.J.viewTransitionConfigForSetActivePage=function(W,P){return _.p("web_thumbnail_to_watch_transition")&&(W==null?void 0:W.is)==="ytd-browse"&&this.isWatchPage(P)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(W==null?void 0:W.is)==="ytd-browse"&&(P==null?void 0:P.is)==="ytd-browse"&&W!==P?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.J.updatePageData=function(W){var P=this,x=this.data;this.updatePageDataJobId&&_.Gr.cancelJob(this.updatePageDataJobId);this.data=W;return new _.yE(function(I){var O=function(){W.filler?P.performDataUpdate(W,x):Cq6(function(){P.performDataUpdate(W,x)});
var Z=_.HK();_.ev(Z,"cr")||Z.processSignal("cr");I()},B=function(){W&&W.page==="watch"?P.updatePageDataJobId=_.pC(_.Gr,O):O()};
if(_.p("kevlar_enable_mss_page_modules_client")&&W){var Y=_.FY().resolve(_.X3),K=P.getModuleNameForType(W.page);(Y=OEM(Y,[K]))?Y.then(B):B()}else B()})};
_.J.isDownloadsPage=function(W){var P,x;return(W==null?void 0:(P=W.endpoint)==null?void 0:(x=P.browseEndpoint)==null?void 0:x.browseId)==="FEdownloads"};
_.J.setPlayerSyncInterval=function(W){var P;return _.y(function(x){if(x.nextAddress==1)return _.S(x,_.FY().resolve(_.Pq),2);P=x.yieldResult;P.setUpPositionSyncInterval(W);_.Kl(x)})};
_.J.performDataUpdate=function(W,P){_.p("kevlar_early_popup_close")||_.W7(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var x=!W.filler;x&&(_.CK("lps"),_.p("config_age_report_killswitch")||iDO());var I=xp(W),O,B=!1;if(_.p("kevlar_remove_page_dom_on_switch")){var Y=P&&xp(P);I===Y&&(O=this.getCurrentPage())}O||(O=$g(this.pagePool,I));x&&Gmf(this.pagePool.elementPoolPopulator,I);x&&!this.renderLoadingStateJobId&&(B=this.setActivePage(O));if(O){Y=I==="watch";var K=
I==="shorts",Z=I==="learning_journey_watch";_.p("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(O);if(Y||K||Z)O.playerData=W.playerResponse;if(K){W.reelWatchSequenceResponse?O.reelWatchSequenceResponse=W.reelWatchSequenceResponse:W.cachedReelWatchSequenceResponse?O.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse:_.p("web_enable_cached_reel_sequence_fix")&&O.cachedReelWatchSequenceResponse&&!O.reelWatchSequenceResponse&&(O.reelWatchSequenceResponse=O.cachedReelWatchSequenceResponse);
O.currentEndpoint=W.endpoint;var d;O.isPreviousPageShorts=!!(P==null?0:(d=P.endpoint)==null?0:d.reelWatchEndpoint);W.cachedReelWatchSequenceResponse=W.reelWatchSequenceResponse||W.cachedReelWatchSequenceResponse||(P==null?void 0:P.cachedReelWatchSequenceResponse);O.cachedReelWatchSequenceResponse=W.cachedReelWatchSequenceResponse}d=this.isDownloadsPage(W);var v=this.isDownloadsPage(P);d&&!v?this.setPlayerSyncInterval(6E5):!d&&v&&this.setPlayerSyncInterval();_.p("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(W,O,x,Y,K,Z);nCv(_.FY().resolve(_.kc),P,W);_.lL(_.FY().resolve(_.jy));_.p("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(O);x?(x=typeof O.loadPage,x==="function"?(O.pageContext=ced(this.contextSwitcher,O,O.data!==W.response),x=function(){O.loadPage(W.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&O.is==="ytd-browse"&&B&&this.isDifferentBrowseId(W==null?void 0:W.endpoint,P==null?void 0:P.endpoint)?
this.applySlideTransition?BLy(this.viewTransitionManager,x,{transitionName:"slide"}):BLy(this.viewTransitionManager,x,{transitionName:"zoom"}):x()):_.EA(new _.mW("b/38014653 ",[I,
O.is,O.nodeName,x,O.isAttached,P&&xp(P),this.hostElement.children.length])),_.CK("pdl")):(O.hidden=!0,W.response.filler=!0,O.data=W.response,this.attachPage(O));_.Lf(this.hostElement,"yt-page-data-updated",{pageType:I})}_.VE(_.Gr,function(){_.p("logging_avoid_blocking_during_navigation")&&_.Ot7().transition("none");var m=LXM(),t=O;if(W){var C=$UQ(W),z=w7M(W),D;a:{if(W.playerResponse){var w=W.playerResponse,a;if((D=w.auxiliaryUi)==null?0:(a=D.messageRenderers)==null?0:a.upsellDialogRenderer){D=w.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(W.response&&(D=W.response,(w=D.overlay)==null?0:w.upsellDialogRenderer)){D=D.overlay.upsellDialogRenderer;break a}D=void 0}var k;var T;a=(k=W.playerResponse)==null?void 0:(T=k.auxiliaryUi)==null?void 0:T.messageRenderers;k=(a==null?void 0:a.enforcementMessageViewModel)||(a==null?void 0:a.bkaEnforcementMessageViewModel);k=(k==null?void 0:k.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?k:void 0;var N;a:{if(W.response&&(T=W.response,(N=T.overlay)==null?0:N.commandWrapperPromoRenderer)){N=
T.overlay.commandWrapperPromoRenderer;break a}N=void 0}q3y(m,C,z,D,k,N,t)}})};
_.J.preparePrefetchRequest=function(W,P,x,I,O,B){var Y,K,Z,d,v,m,t,C,z,D,w,a,k,T,N;return _.y(function(Io){if(Io.nextAddress==1)return!x||!(I||O||B)||_.p("kevlar_disable_background_prefetch")&&_.Ho(_.Lmx)()===0?Io.return():(Y=_.ih(P))?_.S(Io,Y.getPlayerPromise(),2):Io.return();K=Io.yieldResult;Z=_.FY().resolve(_.Rl(_.v5));if(!Z)return Io.return();if(O)return d=_.yV(_.O3),hVG(d,(v=W.endpoint)==null?void 0:v.reelWatchEndpoint,P.reelWatchSequenceResponse,K,Z),Io.return();C=(m=W.response)==null?void 0:
(t=m.responseContext)==null?void 0:t.webResponseContextExtensionData;if(!C)return Io.return();k=(z=W.response)==null?void 0:(D=z.contents)==null?void 0:(w=D.twoColumnWatchNextResults)==null?void 0:(a=w.autoplay)==null?void 0:a.autoplay;T=_.FY().resolve(_.wx);N=_.yV(_.O3);Htm(N,C,K,Z,T,k);_.Kl(Io)})};
_.J.movePlayerToWatch=function(W){var P=this,x,I;return _.y(function(O){x=$g(P.pagePool,"watch");I=x.getPlayerContainer();W.appendTo(I);_.Kl(O)})};
_.J.movePlayerToShorts=function(W){var P=this,x,I,O;return _.y(function(B){x=$g(P.pagePool,"shorts");I=x.getPlayerContainer();(O=W)==null||O.appendTo(I,void 0,!0);_.Kl(B)})};
_.J.getPlayerFromWatch=function(){var W=$g(this.pagePool,"watch");return _.ih(W)};
_.J.getPlayerFromShorts=function(){var W=$g(this.pagePool,"shorts");return _.ih(W)};
_.J.startLoadingWatch=function(){var W=$g(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Gr.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(W)};
_.J.startLoadingShorts=function(){var W=$g(this.pagePool,"shorts");this.setActivePage(W)};
_.J.startLoadingLearningJourney=function(){var W=$g(this.pagePool,"learning_journey_watch");this.setActivePage(W)};
_.J.getCurrentPage=function(){return this.currentPage};
_.J.getDestinationPageType=function(){return this.destinationPageType};
_.J.getCurrentData=function(){return this.data};
_.J.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.J.isOnShorts=function(){var W;return((W=this.currentPage)==null?void 0:W.is)==="ytd-shorts"};
_.J.isWatchPage=function(W){return!!W&&(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-fixie"||W.is==="ytd-watch-grid")};
_.J.preparePage=function(W,P){var x=this,I=function(){var Y=x.pagePool.preparePage(W,x.currentPage,P);Y&&x.attachPage(Y)},O=function(Y){_.Dw(Y,P);
_.ge(Y)};
if(_.p("kevlar_enable_mss_page_modules_client")){var B=this.getModuleNameForType(W);if(B=OEM(_.FY().resolve(_.X3),[B])){B.then(I.bind(this)).catch(O.bind(this));return}}try{I()}catch(Y){O(Y)}};
_.J.lazyPrepareCriticalPages=function(W,P){W=_.yy(P)||W;_.p("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(W).then(this.maybePrepareWatchPage.bind(this,W)):this.maybePrepareWatchPage(W)};
_.J.maybePrepareWatchPage=function(W){W!=="watch"&&_.VE(_.Gr,this.preparePage.bind(this,"watch"))};
_.J.downloadPageModules=function(W){W=this.getModuleNameForType(W);var P=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);P.delete(W);var x=_.FY().resolve(_.X3);x.JSC$16229_loadModules(W);return x.JSC$16229_loadModules.apply(x,_.ju(P))};
_.J.renderPageLoadingState=function(W,P){this.preparePage(W,P);var x=$g(this.pagePool,W);x.loadingData&&(x.loadingData.endpoint=P);x.loading=!0;this.setActivePage(x);W==="watch"&&_.Lf(this.hostElement,"yt-guide-close")};
_.J.prepareForNavigation=function(W,P){var x=this;if(this.currentPage&&this.data){var I=_.yy(P)||W;this.destinationPageType=I;xp(this.data)==I&&_.Lf(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(W==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.Gr.cancelJob(this.renderLoadingStateJobId);_.FY().resolve(_.kc).deactivate(P);var O=this.data;this.renderLoadingStateJobId=_.GS(_.Gr,function(){if(x.data!=O){var B=$g(x.pagePool,W);x.setActivePage(B)}else x.renderPageLoadingState(W,
P);x.renderLoadingStateJobId=0},150)}};
_.J.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var W=new _.NH(1);this.currentPage.pageDisposeJobs.forEach(function(P){_.lc(W,P)});
this.pageDisposeJobsets.set(this.currentPage,W)}};
_.J.flushPageDisposeJobset=function(W){var P=this.pageDisposeJobsets.get(W);P&&(P.flushJobs(),this.pageDisposeJobsets.delete(W))};
_.J.onYtStopOldPlayer=function(W,P){P=P===void 0?!1:P;var x,I=_.xO("kevlar_new_stop_old_player_logic_pages");if(_.p("kevlar_check_current_page_on_stop_old_player")&&(I.length===0||this.currentPage&&I.includes(this.currentPage.is)))if(this.data&&(x=xp(this.data)),xp(W)===x&&this.currentPage&&xp(this.currentPage.data)!==x)var O=_.ih(this.currentPage);else x=xp(this.data),O=$g(this.pagePool,x),O=_.ih(O);else this.data&&(x=xp(this.data),O=$g(this.pagePool,x),O=_.ih(O));if(O)if(W=xp(W),I=$g(this.pagePool,
W),I=_.ih(I),O==I)P&&!_.p("kevlar_disable_preemptive_player_reset")&&O.resetForNewPlayback();else if(P=x==="watch"&&W!=="watch",!P||W==="shorts"||_.$W3()&&!NO4(this.data)&&W!=="yts-products"&&W!="mini_app"&&W!="playables")x=_.FY().resolve(_.kc),P&&x.isMiniplayerActive()&&x.pipController.getWindow()||O.stop()};
_.J.setupPageTransitionAnimation=function(){var W=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){FE(this.viewTransitionManager,"slide",{beforeTransition:function(){W.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){W.hostElement.style.viewTransitionName=""}});
FE(this.viewTransitionManager,"zoom",{beforeTransition:function(){W.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){W.hostElement.style.viewTransitionName=""}});
var P=_.Wi("web_page_transition_exit_ms"),x=_.Wi("web_page_transition_wait_ms"),I=_.Wi("web_page_transition_enter_ms");if(!isNaN(P)||!isNaN(x)||!isNaN(I))if(P=qyf(PLM,P,x,I))x=document.createElement("style"),x.textContent=_.CId(P),document.head.appendChild(x)}};
_.J.isDifferentBrowseId=function(W,P){W=_.Q(W,_.KL);P=_.Q(P,_.KL);return(W==null?void 0:W.browseId)!==(P==null?void 0:P.browseId)};
_.N1.Object.defineProperties(fi,{template:{configurable:!0,enumerable:!0,get:function(){return WIQ()}}});
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],fi.prototype,"ytActionHandlerBehavior",void 0);fi=_.f([_.U({disableElementRegistration:!0,is:"ytd-page-manager"})],fi);_.X(fi,"ytd-page-manager",function(){return WIQ()},{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var ND=function(W,P,x){x=x===void 0?!1:x;_.vn.call(this);this.draggableElement=W;this.callbacks=P;this.allowClicks=x;this.dragOccurred=!1;this.internalDragger=new _.et(this.draggableElement);this.dragDelay=new _.r7(this.delayedDrag.bind(this));xWL(this);this.allowClicks&&(_.iXP(this.internalDragger,5),W.addEventListener("click",_.WM(this,this.validateClick),{capture:!0}))};
_.A(ND,_.vn);var xWL=function(W){_.uq(W.internalDragger,"earlycancel",function(){W.allowClicks&&(W.dragOccurred=!1)});
_.uq(W.internalDragger,"start",function(P){var x,I;(I=(x=W.callbacks).onStartDrag)==null||I.call(x,P);!P.defaultPrevented&&W.allowClicks&&(W.dragOccurred=!0)});
_.uq(W.internalDragger,"beforedrag",function(P){P.preventDefault();W.lastOffset=new _.Al(P.clientX-W.internalDragger.startX,P.clientY-W.internalDragger.startY);W.dragDelay.start()});
_.uq(W.internalDragger,"end",function(){W.dragDelay.stop();var P,x;(x=(P=W.callbacks).onEndDrag)==null||x.call(P);W.lastOffset=void 0})};
ND.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
ND.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.WM(this,this.validateClick),{capture:!0})};
ND.prototype.validateClick=function(W){this.dragOccurred&&(this.dragOccurred=!1,W.stopPropagation(),W.preventDefault())};var ll=function(W,P){_.vn.call(this);this.JSC$17694_resizeContainer=W;this.callbacks=P;this.aspectRatio=16/9;this.JSC$17694_resizers=[];W=_.n(this.JSC$17694_resizeContainer.children);for(P=W.next();!P.done;P=W.next())Ix4(this,P.value)};
_.A(ll,_.vn);ll.prototype.disposeInternal=function(){for(var W=_.n(this.JSC$17694_resizers),P=W.next();!P.done;P=W.next())P.value.dispose();W=_.n(this.JSC$17694_resizeContainer.children);for(P=W.next();!P.done;P=W.next())P.value.setAttribute("disabled","");this.JSC$17694_resizers.length=0};
ll.prototype.setSize=function(W){this.currentMiniplayerSize=W};
ll.prototype.setAspectRatio=function(W){this.aspectRatio=W};
ll.prototype.update=function(W,P){for(var x=_.n(this.JSC$17694_resizeContainer.children),I=x.next();!I.done;I=x.next()){I=I.value;var O=I.getAttribute("alignment");_.Rf(I,"disabled",O===W||O===P)}};
var Ix4=function(W,P){var x=P.getAttribute("alignment"),I=new ND(P,{onStartDrag:function(O){if(P.hasAttribute("disabled"))O.preventDefault();else{W.dragStartSize=W.currentMiniplayerSize;var B,Y;(Y=(B=W.callbacks).onStartResize)==null||Y.call(B)}},
onDrag:function(O){if(W.dragStartSize){x!=="north"&&x!=="west"||O.scale(-1);var B=x==="north"||x==="south";O=B?O.y:O.x;B&&W.aspectRatio>=1?O*=W.aspectRatio:!B&&W.aspectRatio<1&&(O/=W.aspectRatio);W.callbacks.onResize(W.dragStartSize+O)}}});
W.JSC$17694_resizers.push(I)};var OBQ,Jxd=function(){return OBQ!==void 0?OBQ:OBQ=document.createElement("template")};
document.head.appendChild(Jxd().content);var BWf;var nyv=_.kl(function(W){var P=_.fa(),x=W.onDrag,I=W.onDragStart,O=W.onDragEnd,B=_.bw(W,{allowClicks:!1,dragThreshold:5}),Y=B.dragThreshold,K=B.allowClicks;W=B.children;B=B.className;var Z=void 0,d=void 0,v=new _.Al(0,0),m=!1;_.AQ(function(){Z=new _.et(P.value);d=new _.r7(C);t(Z,d);if(K()){_.iXP(Z,Y());var D;(D=P.value)==null||D.addEventListener("click",z,{capture:!0})}_.C4(function(){var w;(w=Z)==null||w.dispose();if(K()){var a;(a=P.value)==null||a.removeEventListener("click",z,{capture:!0})}})});
var t=function(D,w){_.uq(D,"earlycancel",function(){K()&&(m=!1)});
_.uq(D,"start",function(a){I==null||I(a);a.defaultPrevented||K()&&(m=!0)});
_.uq(D,"beforedrag",function(a){Z&&d&&(a.preventDefault(),v=new _.Al(a.clientX-Z.startX,a.clientY-Z.startY),d.start())});
_.uq(D,"end",function(){w.stop();O==null||O();v=new _.Al(0,0)})},C=function(){v&&x(v)},z=function(D){m&&(m=!1,D.stopPropagation(),D.preventDefault())};
return _.u("yt-draggable",{el:P,class:_.O4("ytDraggableComponentHost",B)},W)},"eg");var YmG=_.kl(function(W){var P=_.n(_.YV(0,void 0,"CvAwBd")),x=P.next().value,I=P.next().value;P=function(O){var B={},Y={};return _.u(nyv,{className:_.O4("ytdMiniplayerComponentResizer",(B.ytdMiniplayerComponentResizerDisabled=function(){return O===W.horizontalAlignment()||O===W.verticalAlignment()},B.ytdMiniplayerComponentResizerNorth=O==="north",B.ytdMiniplayerComponentResizerEast=O==="east",B.ytdMiniplayerComponentResizerSouth=O==="south",B.ytdMiniplayerComponentResizerWest=O==="west",B)),
onDragStart:function(){I(W.currentMiniplayerSize());if(W.onResizeStart)W.onResizeStart()},
onDrag:function(K){O!=="north"&&O!=="west"||K.scale(-1);var Z;K=(Z=O==="north"||O==="south")?K.y:K.x;var d=W.currentAspectRatio();Z&&d>=1?K*=d:!Z&&d<1&&(K/=d);Z=K;W.onResize(x()+Z)}},_.u("div",{class:_.O4("ytdMiniplayerComponentResizerCorner",(Y.ytdMiniplayerComponentResizerNorthCorner=O==="north",Y.ytdMiniplayerComponentResizerEastCorner=O==="east",Y.ytdMiniplayerComponentResizerSouthCorner=O==="south",Y.ytdMiniplayerComponentResizerWestCorner=O==="west",Y))}))};
return _.u("div",{class:"ytdMiniplayerComponentResizers"},P("north"),P("east"),P("south"),P("west"))},"fg");var yx6=16/9,KIB=_.kl(function(){var W=_.fa(),P=_.n(_.YV(new _.y7(NaN,NaN),void 0,"UYv80c")),x=P.next().value,I=P.next().value;P=_.n(_.YV(!1,void 0,"L9O3Tc"));var O=P.next().value,B=P.next().value;P=_.n(_.YV(!1,void 0,"nw5gMc"));var Y=P.next().value,K=P.next().value;P=_.n(_.YV(!1,void 0,"X4YUZc"));var Z=P.next().value,d=P.next().value;P=_.n(_.YV(!1,void 0,"jOjwyc"));var v=P.next().value,m=P.next().value;P=_.n(_.YV(!1,void 0,"EmWIj"));var t=P.next().value,C=P.next().value;P=_.n(_.YV(!1,void 0,"pdZbNb"));
var z=P.next().value,D=P.next().value;P=_.n(_.YV(yx6,void 0,"vdAiue"));var w=P.next().value,a=P.next().value,k=_.n(_.YV(!1,void 0,"agiiqf"));P=k.next().value;var T=k.next().value;k=_.n(_.YV(!1,void 0,"z3vkHe"));var N=k.next().value,Io=k.next().value;k=_.n(_.YV(void 0,void 0,"FMEjz"));var F=k.next().value,nm=k.next().value;k=_.n(_.YV(_.$$("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var pm=k.next().value,zR=k.next().value;k=_.n(_.YV("south",void 0,"R5stie"));var Am=k.next().value,kW=k.next().value;
k=_.n(_.YV(400,void 0,"CJeuke"));var $W=k.next().value,ao=k.next().value,e8=_.FY().resolve(_.kc).miniplayerPropSignalMap[0],iC=e8.data,hw=e8.externalPlaylistData;k=e8.toastData;var dk=e8.playabilityStatus,Oc=e8.isReadyToResume,Bm=e8.isDisabled,GA=e8.watchWhile,KM=e8.playerVe,PZ=e8.expandVe,j$=e8.closeVe,YW=e8.readyToResumeVe,QZ=e8.readyToResumeCloseVe,ez=e8.repositionVe,b3=e8.resizeVe;e8=_.n(_.Zh(Oc));var D3=e8.next().value,lp=e8.next().value,TE=!1,sc=!1,rS;_.AQ(function(){I(_.S9());W.value.addEventListener("animationend",
function(Xl){Xl.target===W.value&&(C(!1),D(!1))});
PxO(W.value)});
_.XL("yt-window-resized",function(Xl){Xl&&I(Xl)});
var jz=function(){rS&&a(rS.getVideoAspectRatio())},yf=function(){if(rS){var Xl=rS.getPlayerState()===1;
D3()&&Xl&&lp(!1)}},CM=function(){var Xl=PZ();
if(Xl){var t9=_.E_(3);t9&&_.bB(t9,Xl)}},Vf=function(){var Xl=j$(),t9=QZ();
Xl&&_.bB(_.E_(3),Xl);Oc()&&t9&&_.bB(_.E_(3),t9)};
_.XL("yt-activate-miniplayer",function(Xl){var t9;return _.y(function(RG){if(RG.nextAddress==1)return O()?RG.return():_.S(RG,(t9=_.FY().resolve(_.kc).getPlayerElement())==null?void 0:t9.getPlayerPromise(),2);rS=RG.yieldResult;if(!rS)return RG.return();!N()&&_.p("kevlar_watch_while_v2")&&(kW(Xl&&!_.p("kevlar_watch_while_bottom_align")?"north":"south"),zR(_.$$("HTML_DIR")==="rtl"?"west":"east"));var F6=rS;F6.addEventListener("onVideoDataChange",jz);F6.addEventListener("onStateChange",yf);F6.addEventListener("onExpandMiniplayer",
CM);F6.addEventListener("onCloseMiniplayer",Vf);a(rS.getVideoAspectRatio());B(!0);C(!0);_.Kl(RG)})});
_.XL("yt-deactivate-miniplayer",function(Xl){return _.y(function(t9){if(!O())return t9.return();B(!1);lp(!1);D(Xl);C(!0);if(rS){var RG=rS;RG.removeEventListener("onVideoDataChange",jz);RG.removeEventListener("onStateChange",yf);RG.removeEventListener("onExpandMiniplayer",CM);RG.removeEventListener("onCloseMiniplayer",Vf)}_.Kl(t9)})});
var Kx=function(){return!(GA()&&_.p("kevlar_watch_while_modern"))},SV=function(){var Xl;
return!((Xl=hw())==null||!Xl.contents)},k4=function(){var Xl=$W();
var t9=x();t9=Math.min(Math.min(t9.width,t9.height)-32,720);var RG=w(),F6=Kx(),EW=SV()&&Y(),pl=Math.min(Xl,t9);Xl=new _.y7(192,F6?116:192);RG=hod(new _.y7(EW?yx6:RG,1),new _.y7(pl,F6?pl-76:pl));Xl.width<=RG.width&&Xl.height<=RG.height||(wMO(RG,Xl),RG.width=Math.min(RG.width,t9),RG.height=Math.min(RG.height,t9));return new _.y7(RG.width,_.HX(192,RG.height+BEd(F6,EW),720))},to=function(){var Xl=k4(),t9=Kx(),RG=SV()&&Y();
return new _.y7(Xl.width,Xl.height-BEd(t9,RG))},QE=function(){var Xl=function(t9){t9.target===W.value&&v()&&(m(!1),W.value.removeEventListener("transitionend",Xl))};
W.value.addEventListener("transitionend",Xl);m(!0);K(!Y())};
_.jj(function(){var Xl=KM(),t9=_.E_(3),RG=_.G7(3);if(t9&&RG&&Xl){_.hn(t9,RG,Xl);RG=ez();var F6=b3(),EW=PZ(),pl=j$(),uE=QZ();EW&&pl&&uE&&(_.H7(t9,Xl,[EW,pl,uE]),_.c7(t9,[EW,pl]));RG&&F6&&_.H7(t9,Xl,[RG,F6])}});
_.jj(function(){var Xl=D3(),t9=YW();if(t9&&(Xl===void 0?0:Xl)){Xl=_.E_(0);var RG=_.G7(0);Xl&&RG&&(_.hn(Xl,RG,t9),_.c7(Xl,[t9]))}});
e8={};return _.u("ytd-miniplayer",{el:W,class:_.O4("ytdMiniplayerComponentHost",(e8.ytdMiniplayerComponentVisible=function(){return O()||t()},e8.ytdMiniplayerComponentAnimatingSnap=Z,e8.ytdMiniplayerComponentAnimatingPlaylistExpand=v,e8.ytdMiniplayerComponentAnimatingFade=t,e8),function(){if(t()){var Xl=Am();
var t9=O(),RG=z();Xl=t9?Xl==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":RG?Xl==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Xl==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Xl="";return Xl}),
style:_.oP({top:function(){return Am()==="north"?"16px":""},
right:function(){return pm()==="east"?"16px":""},
bottom:function(){return Am()==="south"?"16px":""},
left:function(){return pm()==="west"?"16px":""},
width:function(){return k4().width+"px"},
height:function(){return k4().height+"px"},
transform:function(){var Xl=F();return Xl?"translate("+Xl.x+"px, "+Xl.y+"px)":""}})},_.u("div",{class:"ytdMiniplayerComponentContent"},_.u(nyv,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Xl){var t9=Jb3(pm(),Am(),x(),k4(),F()),RG=to();Math.abs(Xl.clientY-(t9.y+RG.height))>15?(T(!0),Xl=_.E_(3),t9=ez(),TE||(TE=!0,Xl&&t9&&_.c7(Xl,[t9])),Xl&&t9&&_.bB(Xl,t9)):Xl.preventDefault()},
onDrag:function(Xl){nm(Xl)},
onDragEnd:function(){var Xl=xB6(Jb3(pm(),Am(),x(),k4(),F()),x(),k4()),t9=ORm(pm(),Am(),x(),k4()),RG=ORm(Xl.horizontalAlignment,Xl.verticalAlignment,x(),k4());RG=new _.Al(RG.x-t9.x,RG.y-t9.y);var F6;t9=t9.y+(((F6=F())==null?void 0:F6.y)||0)+k4().height/2;var EW=function(){pm()===Xl.horizontalAlignment&&Am()===Xl.verticalAlignment||Io(!0);zR(Xl.horizontalAlignment);kW(Xl.verticalAlignment);nm(void 0)},pl=function(uE){uE.target===W.value&&Z()&&(d(!1),EW(),W.value.removeEventListener("transitionend",
pl))};
T(!1);Am()==="south"&&t9>x().height?(EW(),_.FY().resolve(_.kc).close()):(W.value.addEventListener("transitionend",pl),d(!0),nm(RG))}},_.u(_.V,{cond:O,
then:function(){return _.u(_.oTf,{isDisabled:Bm,playabilityStatus:dk,size:to})}}),_.u(_.V,{cond:Kx,
then:function(){return _.u(_.Kuf,{isReadyToResume:D3,data:iC,expanded:Y,onExpandClick:QE,playlistData:hw})}}),_.u(_.V,{cond:P,
then:function(){return _.u("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.u(_.V,{cond:function(){return SV()&&Y()||v()},
then:function(){return _.u(_.wEd,{className:"ytdMiniplayerComponentPlaylistPanel",data:hw,hideHeaderText:!0,withinMiniplayer:!0})}}),_.u("div",{class:"ytdMiniplayerComponentToast"},_.u(_.Si6,{toastData:k}))),_.u(YmG,{onResize:function(Xl){ao(_.HX(192,Xl,720))},
onResizeStart:function(){var Xl=_.E_(3),t9=b3();sc||(sc=!0,Xl&&t9&&_.c7(Xl,[t9]));Xl&&t9&&_.bB(Xl,t9)},
currentAspectRatio:w,currentMiniplayerSize:$W,horizontalAlignment:pm,verticalAlignment:Am}))},"gg");_.p("ytd_miniplayer_to_wiz")&&_.lq(KIB,"ytd-miniplayer",{});_.lq(_.Si6,"ytd-miniplayer-toast",{props:{toastData:_.cv}});var ZBf=16/9,oy6=new _.y7(400,400/ZBf),RL=function(){var W=_.b.apply(this,arguments)||this;W.active=!1;W.hasNoData=!1;W.enabled=!1;W.expanded=!1;W.readyToResume=!1;W.isDisabled=!1;W.externalPlaylistData={};W.premiumBadges=[];W.watchWhile=!1;W.playerState=null;W.verticalAttachment="south";W.horizontalAttachment=_.$$("HTML_DIR")==="rtl"?"west":"east";W.isAnimatingFade=!1;W.isAnimatingSnap=!1;W.isAnimatingExpand=!1;W.isDragging=!1;W.playerHidden=!1;W.hasPlaylistData=!1;W.closed=!1;W.expandedClosed=!1;
W.isForReadyToResume=!1;W.watchResponse=null;W.player=null;W.playerVe=null;W.expandVe=null;W.closeVe=null;W.readyToResumeCloseVe=null;W.disabledInitialStateIsPlaying=!1;W.PLAYER_EVENTS=new Map;W.aspectRatio=ZBf;W.currentMiniplayerSize=400;W.userSetSize=!1;W.userSetPosition=!1;W.userHasDragged=!1;W.maxMiniplayerSize=720;W.transform=new _.Al(0,0);W.windowDimensions=new _.y7(NaN,NaN);W.dimensions=oy6;W.screenLayer=3;W.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return W};
_.A(RL,_.b);_.J=RL.prototype;_.J.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.J.ready=function(){this.setUpDragging();this.setUpResizing()};
_.J.attached=function(){this.onWindowResized(_.S9());this.hostElement.addEventListener("animationend",_.WM(this,this.resetFadingAnimation))};
_.J.detached=function(){this.hostElement.removeEventListener("animationend",_.WM(this,this.resetFadingAnimation))};
_.J.resetFadingAnimation=function(W){W.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.J.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.J.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.J.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var W=_.E_(this.screenLayer);this.readyToResumeCloseVe&&W&&_.c7(W,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.J.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var W=_.E_(0),P=_.G7(0);W&&P&&(_.hn(W,P,this.readyToResumeVe),_.c7(W,[this.readyToResumeVe]))}};
_.J.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var W=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=W===-1||W===1||W===3)&&this.player.pauseVideo()}};
_.J.activate=function(W,P){P=P===void 0?!1:P;var x=this,I;return _.y(function(O){if(O.nextAddress==1)return x.setInitialActivatePositioning(P),x.enabled=!0,x.active=!0,x.expanded=!1,x.closed=!1,x.expandedClosed=!1,x.watchWhileHidden||(x.isAnimatingFade=!0),_.FY().resolve(_.wx).setPlaylistComponent(x.JSC$17705_playlistPanel),W.appendTo(x.playerContainer),_.S(O,W.getPlayerPromise(),2);I=O.yieldResult;I.setSizeStyle(!1,!0);x.ytPlayerListenerBehavior.listenToPlayerEvents(I,x.PLAYER_EVENTS);x.player=I;
x.watchWhile&&_.p("kevlar_watch_while_minimum_size")&&x.setMiniplayerSize(192);x.setAspectRatio(x.player.getVideoAspectRatio());x.onIsDisabledChanged();_.Kl(O)})};
_.J.setInitialActivatePositioning=function(W){if(!this.userSetPosition&&_.p("kevlar_watch_while_v2")){this.verticalAttachment=W&&!_.p("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.$$("HTML_DIR")==="rtl"?"west":"east";var P;(P=this.JSC$17705_resizers)==null||P.update(this.horizontalAttachment,this.verticalAttachment)}};
_.J.deactivate=function(W,P){var x=this;return _.y(function(I){if(!x.active)return I.return();W||(x.expanded?x.expandedClosed=!0:x.closed=!0);x.active=!1;x.isForReadyToResume=!1;P&&_.p("kevlar_watch_while_counterfactual")||(x.isAnimatingFade=!0);x.player&&x.ytPlayerListenerBehavior.unlistenFromPlayerEvents(x.player,x.PLAYER_EVENTS);x.player=null;_.Kl(I)})};
_.J.onMetadataTap=function(W){this.expandVe&&(W===void 0||W)&&(W=_.E_(this.screenLayer))&&_.bB(W,this.expandVe);_.mH(_.FY().resolve(_.kc))};
_.J.onDisabledTap=function(W){W.target===_.g(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.J.onPlaylistExpandTap=function(W){if(this.hasPlaylistData){W=_.c5(W)||[];W=_.n(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;if(P===this.hostElement)break;if(P.classList&&P.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.J.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.WM(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.J.animatedResizePlaylist=function(W){W.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.WM(this,this.animatedResizePlaylist)))};
_.J.getExpandIcon=function(W){return W?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.J.onPlayerVideoDataChange=function(){var W,P=(W=this.player)==null?void 0:W.getVideoAspectRatio();P&&P!==this.aspectRatio&&this.setAspectRatio(P)};
_.J.setAspectRatio=function(W){if(this.active){this.aspectRatio=W;this.updateDimensionsAndResize();var P;(P=this.JSC$17705_resizers)==null||P.setAspectRatio(W)}};
_.J.updateDimensionsAndResize=function(){var W=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),P=this.expanded?ZBf:this.aspectRatio,x=new _.y7(192,this.showInfoBar?116:192);W=hod(new _.y7(P,1),new _.y7(W,this.showInfoBar?W-76:W));x.width<=W.width&&x.height<=W.height||(wMO(W,x),W.width=Math.min(W.width,this.maxMiniplayerSize),W.height=Math.min(W.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&P<=1?Math.max(W.width,W.height)+76:Math.max(W.width,W.height)));this.dimensions=
new _.y7(W.width,this.clamp(W.height+this.getNonPlayerHeight()));this.resize()};
_.J.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var W=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=W.height+"px";var P;(P=this.player)==null||P.setInternalSize(W.width,W.height)};
_.J.getPlayerSize=function(W){var P=Math.max(0,W.height-this.getNonPlayerHeight());return new _.y7(W.width,P)};
_.J.getNonPlayerHeight=function(){var W=0;this.showInfoBar&&(W+=76);this.expanded&&(W+=285);return W};
_.J.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.FY().resolve(_.kc).close()};
_.J.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.J.logClosingClick=function(){this.closeVe&&_.bB(_.E_(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.bB(_.E_(this.screenLayer),this.readyToResumeCloseVe)};
_.J.onPlayerExpandMiniplayer=function(){if(this.expandVe){var W=_.E_(this.screenLayer);W&&_.bB(W,this.expandVe)}};
_.J.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var W=this.playerState===1;this.continueWatching&&W&&(this.continueWatching=!1);this.premiumBadges.length&&W&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logMiniplayer=function(){var W=_.E_(this.screenLayer),P=_.G7(this.screenLayer);W&&P&&this.playerVe&&(_.hn(W,P,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.H7(W,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.c7(W,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.H7(W,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.J.computePlaylistData=function(W,P){return P};
_.J.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.J.computeExpandButtonHidden=function(W,P,x){return!W||!P||x};
_.J.computePlaylistIndexHidden=function(W,P){return!W||P};
_.J.computePlaylistPanelHidden=function(W,P){return!P&&!W};
_.J.computeExpandButtonLabel=function(W){return W?_.KK("MINIPLAYER_COLLAPSE_LABEL"):_.KK("MINIPLAYER_EXPAND_LABEL")};
_.J.computeDisabledStateCloseButtonLabel=function(){return _.KK("MINIPLAYER_CLOSE",void 0,"Close")};
_.J.onWindowResized=function(W){W&&(W=this.windowDimensions=W,this.maxMiniplayerSize=Math.min(Math.min(W.width,W.height)-32,720),this.updateDimensionsAndResize())};
_.J.setUpResizing=function(){var W=this;this.JSC$17705_resizers||(this.JSC$17705_resizers=new ll(this.JSC$17705_resizeContainer,{onStartResize:function(){W.handleResizeStart()},
onResize:function(P){W.handleResize(P)}}),this.JSC$17705_resizers.setSize(this.currentMiniplayerSize),this.JSC$17705_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.J.handleResizeStart=function(){var W=_.E_(this.screenLayer);this.userSetSize||(this.userSetSize=!0,W&&this.resizeVe&&_.c7(W,[this.resizeVe]));W&&this.resizeVe&&_.bB(W,this.resizeVe)};
_.J.handleResize=function(W){this.setMiniplayerSize(W);this.updateDimensionsAndResize()};
_.J.setUpDragging=function(){var W=this;this.JSC$17705_dragger||(this.JSC$17705_dragger=new ND(this.draggableContainer,{onStartDrag:function(P){!W.isSafeToDrag(P)||W.isAnimatingSnap?P.preventDefault():W.handleDragStart()},
onDrag:function(P){W.transform=P;W.setTransform(W.transform)},
onEndDrag:function(){W.handleDragEnd()}},!0))};
_.J.handleDragStart=function(){this.isDragging=!0;var W=_.E_(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,W&&this.repositionVe&&_.c7(W,[this.repositionVe]));W&&this.repositionVe&&_.bB(W,this.repositionVe)};
_.J.handleDragEnd=function(){this.isDragging=!1;var W=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&W>this.windowDimensions.height&&_.FY().resolve(_.kc).close();this.animateSnapToCorner()};
_.J.animateSnapToCorner=function(){var W=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),P=this.getNearestAttachments();P=this.getGlobalPositionFromAttachments(P.horizontalAttachment,P.verticalAttachment);W=new _.Al(P.x-W.x,P.y-W.y);this.isAnimatingSnap=!0;this.setTransform(W);this.hostElement.addEventListener("transitionend",_.WM(this,this.endSnapAnimation))};
_.J.endSnapAnimation=function(W){W.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.WM(this,this.endSnapAnimation)),this.endDrag())};
_.J.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.J.setTransform=function(W){this.hostElement.style.transform=W?"translate("+W.x+"px, "+W.y+"px)":""};
_.J.getGlobalPositionFromAttachments=function(W,P){return new _.Al(W==="west"?16:this.windowDimensions.width-this.dimensions.width-16,P==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.J.updateAttachments=function(){var W=this.getNearestAttachments();if(this.horizontalAttachment!==W.horizontalAttachment||this.verticalAttachment!==W.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=W.horizontalAttachment;this.verticalAttachment=W.verticalAttachment;var P;(P=this.JSC$17705_resizers)==null||P.update(this.horizontalAttachment,this.verticalAttachment)};
_.J.getNearestAttachments=function(){var W=this.getCurrentGlobalPosition();return{horizontalAttachment:W.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:W.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.J.getCurrentGlobalPosition=function(){var W=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return I54(W,this.transform)};
_.J.isSafeToDrag=function(W){var P=this.playerContainer.getBoundingClientRect();return Math.abs(W.clientY-(P.y+P.height))>15};
_.J.setMiniplayerSize=function(W){this.currentMiniplayerSize=this.clamp(W);var P;(P=this.JSC$17705_resizers)==null||P.setSize(this.currentMiniplayerSize)};
_.J.clamp=function(W){return _.HX(192,W,720)};
_.J.registerViewTransitionTasks=function(){var W=this,P=_.FY().resolve(_.Rl(_.v4));if(P){var x={beforeTransition:function(){W.hostElement&&(W.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){W.hostElement&&(W.hostElement.style.viewTransitionName="")}};
FE(P,"slide",x);FE(P,"zoom",x)}};
_.N1.Object.defineProperties(RL.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.p("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.KK("CONTINUE_WATCHING",void 0,"Continue watching")};var W;if((W=this.externalPlaylistData)==null?0:W.contents)return this.externalPlaylistData.titleText;var P;return(P=this.data)==null?void 0:P.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.externalPlaylistData)==null?0:W.contents){var P;return(P=_.yem(this.externalPlaylistData))==null?void 0:P.title}var x;return(x=this.data)==null?void 0:x.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var W,P,x,I;return((W=this.externalPlaylistData)==null?void 0:W.currentIndex)!==void 0&&((P=this.externalPlaylistData)==null?0:P.totalVideos)&&!((x=this.data)==null?0:(I=x.playlistData)==null?0:I.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.nvW(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.p("kevlar_watch_while_counterfactual")}}});
RL.prototype.onIsDisabledChanged=RL.prototype.onIsDisabledChanged;RL.prototype.readyToResumeVeChanged=RL.prototype.readyToResumeVeChanged;RL.prototype.premiumBrandingChanged=RL.prototype.premiumBrandingChanged;RL.prototype.onPlayerVeChange=RL.prototype.onPlayerVeChange;RL.prototype.hasPlaylistDataChanged=RL.prototype.hasPlaylistDataChanged;_.f([_.h(_.aO.YtPlayerListenerBehavior),_.l("design:type",_.bL)],RL.prototype,"ytPlayerListenerBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],RL.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],RL.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],RL.prototype,"ytdReduxBehavior",void 0);_.f([_.BM("#draggable"),_.l("design:type",HTMLDivElement)],RL.prototype,"draggableContainer",void 0);
_.f([_.BM("#resize-container"),_.l("design:type",HTMLDivElement)],RL.prototype,"JSC$17705_resizeContainer",void 0);_.f([_.BM("#video-container"),_.l("design:type",HTMLDivElement)],RL.prototype,"videoContainer",void 0);_.f([_.BM("#player-container"),_.l("design:type",HTMLDivElement)],RL.prototype,"playerContainer",void 0);_.f([_.BM("#playlist"),_.l("design:type",HTMLDivElement)],RL.prototype,"JSC$17705_playlistPanel",void 0);_.f([_.c(),_.l("design:type",Object)],RL.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"active",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"hasNoData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"enabled",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"expanded",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"readyToResume",void 0);
_.f([_.c(),_.l("design:type",Object)],RL.prototype,"isDisabled",void 0);_.f([_.c(),_.l("design:type",Object)],RL.prototype,"externalPlaylistData",void 0);_.f([_.c(),_.l("design:type",Array)],RL.prototype,"premiumBadges",void 0);_.f([_.c(),_.l("design:type",Object)],RL.prototype,"toastData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"watchWhile",void 0);_.f([_.c(),_.l("design:type",Boolean)],RL.prototype,"premiumBranding",void 0);
_.f([_.c(),_.l("design:type",Object)],RL.prototype,"playerState",void 0);_.f([_.c(),_.l("design:type",Boolean)],RL.prototype,"continueWatching",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],RL.prototype,"verticalAttachment",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],RL.prototype,"horizontalAttachment",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"isAnimatingFade",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"isAnimatingSnap",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"isAnimatingExpand",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"isDragging",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"playerHidden",void 0);
_.f([_.c({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.l("design:type",Object)],RL.prototype,"playlistData",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.l("design:type",Object)],RL.prototype,"hasPlaylistData",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"closed",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],RL.prototype,"expandedClosed",void 0);
_.f([_.c({selector:_.j9o}),_.l("design:type",Boolean)],RL.prototype,"isSingleOptionSurveyActive",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.zK}),_.l("design:type",Boolean)],RL.prototype,"isWatchPage",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("watchWhile"),_.l("design:type",Object),_.l("design:paramtypes",[])],RL.prototype,"showInfoBar",null);_.f([_.H("premiumBadges","showInfoBar"),_.l("design:type",Object),_.l("design:paramtypes",[])],RL.prototype,"showOverlayPremiumBadges",null);
_.f([_.c(),_.l("design:type",Object)],RL.prototype,"watchResponse",void 0);_.f([_.c(),_.l("design:type",Object)],RL.prototype,"miniplayerRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],RL.prototype,"playabilityStatus",void 0);_.f([_.c(),_.l("design:type",Object)],RL.prototype,"playerVe",void 0);_.f([_.c(),_.l("design:type",Object)],RL.prototype,"expandVe",void 0);_.f([_.c(),_.l("design:type",Object)],RL.prototype,"closeVe",void 0);
_.f([_.c(),_.l("design:type",Object)],RL.prototype,"readyToResumeCloseVe",void 0);_.f([_.c(),_.l("design:type",_.z7)],RL.prototype,"readyToResumeVe",void 0);_.f([_.c(),_.l("design:type",_.z7)],RL.prototype,"resizeVe",void 0);_.f([_.c(),_.l("design:type",_.z7)],RL.prototype,"repositionVe",void 0);_.f([_.OZ("hasPlaylistData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RL.prototype,"hasPlaylistDataChanged",null);
_.f([_.OZ("playerVe"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RL.prototype,"onPlayerVeChange",null);_.f([_.OZ("premiumBranding"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RL.prototype,"premiumBrandingChanged",null);_.f([_.OZ("readyToResumeVe"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RL.prototype,"readyToResumeVeChanged",null);
_.f([_.OZ("isDisabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RL.prototype,"onIsDisabledChanged",null);_.f([_.H("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.l("design:type",Object),_.l("design:paramtypes",[])],RL.prototype,"miniplayerSubtitle",null);_.f([_.H("data.miniplayerTitle","externalPlaylistData"),_.l("design:type",Object),_.l("design:paramtypes",[])],RL.prototype,"miniplayerTitle",null);
_.f([_.H("externalPlaylistData","continueWatching"),_.l("design:type",Object),_.l("design:paramtypes",[])],RL.prototype,"playlistIndexMessage",null);_.f([_.c({reflectToAttribute:!0}),_.H("playabilityStatus"),_.l("design:type",Object),_.l("design:paramtypes",[])],RL.prototype,"showErrorScreen",null);_.f([_.c({reflectToAttribute:!0}),_.H("watchWhile"),_.l("design:type",Object),_.l("design:paramtypes",[])],RL.prototype,"watchWhileHidden",null);
_.p("ytd_miniplayer_to_wiz")||_.X(RL,"ytd-miniplayer",function(){if(BWf===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
W.content.insertBefore(Jxd().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);BWf=W}W=BWf;return W},{mode:2});var SmQ;var FZ=function(){var W=_.b.apply(this,arguments)||this;W.useListItemStyles=_.p("web_list_item_style_for_menu_items");W.systemIcons=_.p("kevlar_system_icons");return W};
_.A(FZ,_.b);_.J=FZ.prototype;_.J.ready=function(){this.hostElement.addEventListener("tap",_.WM(this,this.onEndpointTapExtra))};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var W;(W=_.g(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.J.onEndpointTapExtra=function(W){_.Lf(this.hostElement,"iron-activate");var P=this.data.navigationEndpoint;P&&_.Q(P,_.lkW)&&(W.stopPropagation(),_.OL(this.hostElement,[P],this.hostElement))};
_.J.computeIcon=function(W){return W&&W.iconType?_.PW(W.iconType):""};
_.J.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.p("kevlar_legacy_browsers")&&_.qa(this.hostElement)};
FZ.prototype.forceUpdateStylesOnLegacyBrowsers=FZ.prototype.forceUpdateStylesOnLegacyBrowsers;FZ.prototype.onFocus=FZ.prototype.onFocus;_.f([_.h(_.bb),_.l("design:type",Object)],FZ.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.eGp.YtConditionalRendererBehavior),_.l("design:type",Object)],FZ.prototype,"ytConditionalRendererBehavior",void 0);_.f([_.h(_.IM.YtEndpointBehavior),_.l("design:type",Object)],FZ.prototype,"ytEndpointBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],FZ.prototype,"data",void 0);_.f([_.c({computed:"computeIcon(data.icon)",value:""}),_.l("design:type",String)],FZ.prototype,"icon",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FZ.prototype,"useIcons",void 0);_.f([_.c({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Boolean)],FZ.prototype,"hasSeparator",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FZ.prototype,"useListItemStyles",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],FZ.prototype,"systemIcons",void 0);_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FZ.prototype,"onFocus",null);_.f([_.OZ("useIcons","hasSeparator"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FZ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.X(FZ,"ytd-menu-navigation-item-renderer",function(){if(SmQ===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);SmQ=W}W=SmQ;return W},{mode:1});var uNd;var dWQ=_.bx(_.KK("DOWNLOAD",{},"Download")),sOQ=_.bx(_.KK("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),vyQ=_.bx(_.KK("RETRY",{},"Retry")),mWf=_.bx(_.KK("PAUSE_DOWNLOADING",{},"Pause downloading")),VZ9=_.bx(_.KK("RESUME_DOWNLOAD",{},"Resume download")),qD=function(){var W=_.b.apply(this,arguments)||this;W.primaryText=dWQ;W.primaryIconType="OFFLINE_DOWNLOAD";W.hasSecondaryContent=!1;W.hasSeparator=!1;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.isHidden=!1;W.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return W};
_.A(qD,_.b);_.J=qD.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){this.primaryEntry.focus()};
_.J.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.J.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.J.getRemoveAction=function(){return"ACTION_REMOVE"};
_.J.sendOfflineAction=function(W){var P=this.data.serviceEndpoint;if(P){var x=_.Q(P,_.ZZ);x&&W&&(x.action=W);this.ytComponentBehavior.resolveCommand(P)}};
_.J.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=dWQ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=dWQ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=vyQ;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=sOQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=VZ9;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=sOQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
mWf;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=sOQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=sOQ;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=dWQ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.J.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.J.isSecondaryEntryHidden=function(W,P){return W?!0:!P};
_.J.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
qD.prototype.showHideButton=qD.prototype.showHideButton;qD.prototype.onTransferStateChange=qD.prototype.onTransferStateChange;qD.prototype.onFocus=qD.prototype.onFocus;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],qD.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],qD.prototype,"ytComponentBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],qD.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],qD.prototype,"primaryText",void 0);_.f([_.c(),_.l("design:type",String)],qD.prototype,"primaryIconType",void 0);_.f([_.c(),_.l("design:type",String)],qD.prototype,"primaryAction",void 0);_.f([_.c(),_.l("design:type",Object)],qD.prototype,"secondaryText",void 0);_.f([_.c(),_.l("design:type",String)],qD.prototype,"secondaryIconType",void 0);
_.f([_.c(),_.l("design:type",String)],qD.prototype,"secondaryAction",void 0);_.f([_.c(),_.l("design:type",Object)],qD.prototype,"hasSecondaryContent",void 0);_.f([_.c({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Object)],qD.prototype,"hasSeparator",void 0);_.f([_.c({selector:_.GK,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",String)],qD.prototype,"transferState",void 0);
_.f([_.c({selector:_.XAx,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",Object)],qD.prototype,"isVideoDeletedByUser",void 0);_.f([_.c(),_.l("design:type",Object)],qD.prototype,"isHidden",void 0);_.f([_.c({selector:_.eE7,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",Object)],qD.prototype,"offlineabilityState",void 0);_.f([_.BM("#primary-entry"),_.l("design:type",Object)],qD.prototype,"primaryEntry",void 0);
_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qD.prototype,"onFocus",null);_.f([_.K_("transferState","isVideoDeletedByUser"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qD.prototype,"onTransferStateChange",null);_.f([_.K_("offlineabilityState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qD.prototype,"showHideButton",null);
_.X(qD,"ytd-menu-service-item-download-renderer",function(){if(uNd===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);uNd=W}W=uNd;return W},{mode:1});var tZQ;var Li=function(){var W=_.b.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.p("kevlar_system_icons");W.useListItemStyles=_.p("web_list_item_style_for_menu_items");return W};
_.A(Li,_.b);_.J=Li.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var W;(W=_.g(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.J.onTap=function(){_.P7(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var W=this.data.serviceEndpoint,P=this.data.command;if(W){var x,I=(x=this.data)==null?void 0:x.trackingParams;x=!!_.Q(W,_.qjl);I&&x&&_.Xe().dispatch(_.LK({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:I}}));this.ytComponentBehavior.resolveCommand(W)||_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}})}P&&(this.ytComponentBehavior.resolveCommand(P)||_.OL(this.hostElement,
[P],this.hostElement))};
_.J.computeIcon=function(W){return W&&W.iconType?_.PW(W.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.p("kevlar_legacy_browsers")&&_.qa(this.hostElement)};
_.J.computeIsSelected=function(){var W;return!((W=this.data)==null||!W.isSelected)};
Li.prototype.forceUpdateStylesOnLegacyBrowsers=Li.prototype.forceUpdateStylesOnLegacyBrowsers;Li.prototype.onTap=Li.prototype.onTap;Li.prototype.onFocus=Li.prototype.onFocus;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],Li.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Li.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.eGp.YtConditionalRendererBehavior),_.l("design:type",Object)],Li.prototype,"ytConditionalRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Li.prototype,"data",void 0);_.f([_.c({computed:"computeIcon(data.icon)",value:""}),_.l("design:type",String)],Li.prototype,"icon",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Li.prototype,"useIcons",void 0);
_.f([_.c({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Li.prototype,"hasSeparator",void 0);_.f([_.c({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Li.prototype,"isSelected",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Li.prototype,"systemIcons",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Li.prototype,"useListItemStyles",void 0);
_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Li.prototype,"onFocus",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Li.prototype,"onTap",null);_.f([_.OZ("useIcons","hasSeparator"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Li.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.X(Li,"ytd-menu-service-item-renderer",function(){if(tZQ===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);tZQ=W}W=tZQ;return W},{mode:2});var pbQ;var WY=function(){return _.b.apply(this,arguments)||this};
_.A(WY,_.b);_.J=WY.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var W=this;_.Xm(this,function(){W.postbox.openDialog();W.focus();_.Lf(W.hostElement,"yt-refit")})};
_.J.focus=function(){this.postbox.focus()};
_.J.closePopup=function(){_.W7(this.hostElement,"yt-close-popup-action")};
_.J.onYtCommentboxDismiss=function(){this.closePopup()};
WY.prototype.onYtCommentboxDismiss=WY.prototype.onYtCommentboxDismiss;WY.prototype.onDataChanged=WY.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],WY.prototype,"data",void 0);_.f([_.c({value:function(){return _.KK("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],WY.prototype,"closeButtonAriaLabel",void 0);_.f([_.BM("#postbox"),_.l("design:type",Object)],WY.prototype,"postbox",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WY.prototype,"onDataChanged",null);_.f([_.I7("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WY.prototype,"onYtCommentboxDismiss",null);
WY=_.f([_.U({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],WY);
_.X(WY,"ytd-backstage-post-dialog-popup-renderer",function(){if(pbQ!==void 0)return pbQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return pbQ=W},{mode:1});var jO9;var PY=function(){return _.b.apply(this,arguments)||this};
_.A(PY,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],PY.prototype,"data",void 0);PY=_.f([_.U({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],PY);
_.X(PY,"ytd-sender-id-section-renderer",function(){if(jO9!==void 0)return jO9;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return jO9=W},{mode:1});var QO3;var CLL;var Axm;var x0=function(){return _.b.apply(this,arguments)||this};
_.A(x0,_.b);x0.prototype.closePopup=function(){_.W7(this.hostElement,"yt-close-popup-action")};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],x0.prototype,"data",void 0);x0=_.f([_.jd({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],x0);
_.X(x0,"yt-community-post-section-renderer",function(){if(Axm===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;CLL===void 0&&(CLL=document.createElement("template"));var I=CLL;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Axm=W}W=Axm;return W},{mode:2});var zH9;var Gpd;var Ey4;var gyB;var DWd;var MZB;var Ia=function(){return _.b.apply(this,arguments)||this};
_.A(Ia,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ia.prototype,"data",void 0);Ia=_.f([_.jd({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Ia);
_.X(Ia,"yt-share-start-time-with-context-renderer",function(){if(MZB===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;DWd===void 0&&(DWd=document.createElement("template"));var I=DWd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);MZB=W}W=MZB;return W},{mode:2});var OO=function(){return _.b.apply(this,arguments)||this};
_.A(OO,_.b);OO.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],OO.prototype,"data",void 0);OO=_.f([_.jd({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],OO);
_.X(OO,"yt-share-panel-title-v15-renderer",function(){if(gyB===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Ey4===void 0&&(Ey4=document.createElement("template"));var I=Ey4;x.call(P,I.content.cloneNode(!0),W.content.firstChild);gyB=W}W=gyB;return W},{mode:2});var Ji=function(){return _.b.apply(this,arguments)||this};
_.A(Ji,_.b);Ji.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ji.prototype,"data",void 0);Ji=_.f([_.jd({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Ji);
_.X(Ji,"yt-share-panel-header-renderer",function(){if(Gpd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;zH9===void 0&&(zH9=document.createElement("template"));var I=zH9;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Gpd=W}W=Gpd;return W},{mode:2});var $WB;var wbO;var BY=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-open-popup-action":"onOpen"};return W};
_.A(BY,_.b);_.J=BY.prototype;_.J.attached=function(){this.onOpen()};
_.J.updateTimeSecs=function(W){this.currentTimeSecs=W};
_.J.computeTimeString=function(W){W=W.toString();var P=Math.floor(Number(W)/3600),x=Math.floor(Number(W)%3600%60);return(P>0?P+":":"")+_.I_(Math.floor(Number(W)%3600/60),P>0?2:1)+":"+_.I_(x,2)};
_.J.computeTimeStringA11y=function(W){W=_.N6U({seconds:W});var P=W.hours===void 0?0:W.hours,x=W.minutes===void 0?0:W.minutes,I=W.seconds===void 0?0:W.seconds;W=[];if(P>0){var O=MV6().format({hours:P});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.MB)||P>9999)O=O.replace(P.toString(),_.lyW(P)),_.MB==="km"&&(O=O.replace(".",","));W.push(O)}x>0&&W.push(MV6().format({minutes:x}));I>0&&W.push(MV6().format({seconds:I}));P="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");x=_.MB==
"am"?"{0}\u1363 ":_.MB=="fa"?"{0}\u060c\u200f ":_.MB=="my"?"{0} - ":_.MB=="ne"?"{0},":_.MB=="th"?"{0} ":_.MB=="ur"?"{0}\u060c ":_.MB=="ar"||_.MB=="ar-XB"?"{0} \u0648":_.MB=="ja"||_.MB=="zh-CN"||_.MB=="zh-HK"||_.MB=="zh-TW"?"{0}\u3001":"{0}, ";I=_.MB=="am"?"\u1363 ":_.MB=="fa"?"\u060c\u200f ":_.MB=="my"?" - ":_.MB=="th"?" ":_.MB=="ur"?"\u060c ":_.MB=="ar"||_.MB=="ar-XB"?" \u0648":_.MB=="ja"||_.MB=="zh-CN"||_.MB=="zh-HK"||_.MB=="zh-TW"?"\u3001":", ";O=_.MB=="am"?" \u12a5\u1293 {0}":_.MB=="as"?" \u0986\u09f0\u09c1 {0}":
_.MB=="az"?" v\u0259 {0}":_.MB=="bn"?" \u098f\u09ac\u0982 {0}":_.MB=="cs"?" a\u00a0{0}":_.MB=="de"?" und {0}":_.MB=="el"?" \u03ba\u03b1\u03b9 {0}":_.MB=="eu"?" eta {0}":_.MB=="fa"?"\u060c \u0648 {0}":_.MB=="fil"?", at {0}":_.MB=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.MB=="hi"?", \u0914\u0930 {0}":_.MB=="hu"?" \u00e9s {0}":_.MB=="hy"?" \u0587 {0}":_.MB=="id"?", dan {0}":_.MB=="iw"?" \u05d5-{0}":_.MB=="ja"?"\u3001{0}":_.MB=="ka"?" \u10d3\u10d0 {0}":_.MB=="km"?" \u1793\u17b7\u1784 {0}":_.MB=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.MB=="ko"?" \ubc0f {0}":_.MB=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.MB=="lt"?" ir {0}":_.MB=="lv"?" un {0}":_.MB=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.MB=="mr"?" \u0906\u0923\u093f {0}":_.MB=="ms"?" dan {0}":_.MB=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.MB=="ne"?" \u0930 {0}":_.MB=="or"?", \u0b13 {0}":_.MB=="pa"?" \u0a05\u0a24\u0a47 {0}":_.MB=="ro"?" \u0219i {0}":_.MB=="si"?", \u0dc3\u0dc4 {0}":_.MB=="sk"?" a {0}":_.MB=="sl"?" in {0}":_.MB=="sq"?" dhe {0}":_.MB=="sv"?" och {0}":
_.MB=="sw"?" na {0}":_.MB=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.MB=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.MB=="th"?" \u0e41\u0e25\u0e30{0}":_.MB=="tr"?" ve {0}":_.MB=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.MB=="uz"?" va {0}":_.MB=="vi"?" v\u00e0 {0}":_.MB=="zh-HK"?"\u53ca{0}":_.MB=="zu"?", ne-{0}":_.MB=="af"||_.MB=="nl"?" en {0}":_.MB=="ar"||_.MB=="ar-XB"?" \u0648{0}":_.MB=="be"||_.MB=="uk"?" \u0456 {0}":_.MB=="en-GB"||_.MB=="en-IN"?" and {0}":_.MB=="en"||_.MB=="en-XA"?
", and {0}":_.MB=="et"||_.MB=="fi"?" ja {0}":_.MB=="fr"||_.MB=="fr-CA"?" et {0}":_.MB=="zh-CN"||_.MB=="zh-TW"?"\u548c{0}":_.MB=="da"||_.MB=="is"||_.MB=="no"?" og {0}":_.MB=="es"||_.MB=="es-419"||_.MB=="es-US"?" y {0}":_.MB=="kk"||_.MB=="lo"||_.MB=="mn"?", {0}":_.MB=="bg"||_.MB=="mk"||_.MB=="ru"||_.MB=="sr"?" \u0438 {0}":_.MB=="gl"||_.MB=="it"||_.MB=="pt-BR"||_.MB=="pt-PT"?" e {0}":" i {0}";var B=_.MB=="am"?"{0} \u12a5\u1293 {1}":_.MB=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.MB=="az"?"{0} v\u0259 {1}":
_.MB=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.MB=="de"?"{0} und {1}":_.MB=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.MB=="eu"?"{0} eta {1}":_.MB=="fa"?"{0} \u0648 {1}":_.MB=="fil"?"{0} at {1}":_.MB=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.MB=="hi"?"{0} \u0914\u0930 {1}":_.MB=="hu"?"{0} \u00e9s {1}":_.MB=="hy"?"{0} \u0587 {1}":_.MB=="iw"?"{0} \u05d5-{1}":_.MB=="ja"?"{0}\u3001{1}":_.MB=="ka"?"{0} \u10d3\u10d0 {1}":_.MB=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.MB=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.MB=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.MB=="ko"?"{0} \ubc0f {1}":_.MB=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.MB=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.MB=="lt"?"{0} ir {1}":_.MB=="lv"?"{0} un {1}":_.MB=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.MB=="mn"?"{0}, {1}":_.MB=="mr"?"{0} \u0906\u0923\u093f {1}":_.MB=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.MB=="ne"?"{0} \u0930 {1}":_.MB=="or"?"{0} \u0b13 {1}":_.MB=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.MB=="ro"?"{0} \u0219i {1}":_.MB==
"si"?"{0} \u0dc3\u0dc4 {1}":_.MB=="sl"?"{0} in {1}":_.MB=="sq"?"{0} dhe {1}":_.MB=="sv"?"{0} och {1}":_.MB=="sw"?"{0} na {1}":_.MB=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.MB=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.MB=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.MB=="tr"?"{0} ve {1}":_.MB=="ur"?"{0} \u0627\u0648\u0631 {1}":_.MB=="uz"?"{0} va {1}":_.MB=="vi"?"{0} v\u00e0 {1}":_.MB=="zh-HK"?"{0}\u53ca{1}":_.MB=="zu"?"{0} ne-{1}":_.MB=="af"||_.MB=="nl"?"{0} en {1}":_.MB=="ar"||_.MB==
"ar-XB"?"{0} \u0648{1}":_.MB=="be"||_.MB=="uk"?"{0} \u0456 {1}":_.MB=="cs"||_.MB=="sk"?"{0} a\u00a0{1}":_.MB=="et"||_.MB=="fi"?"{0} ja {1}":_.MB=="fr"||_.MB=="fr-CA"?"{0} et {1}":_.MB=="id"||_.MB=="ms"?"{0} dan {1}":_.MB=="zh-CN"||_.MB=="zh-TW"?"{0}\u548c{1}":_.MB=="da"||_.MB=="is"||_.MB=="no"?"{0} og {1}":_.MB=="es"||_.MB=="es-419"||_.MB=="es-US"?"{0} y {1}":_.MB=="bg"||_.MB=="mk"||_.MB=="ru"||_.MB=="sr"?"{0} \u0438 {1}":_.MB=="en"||_.MB=="en-GB"||_.MB=="en-IN"||_.MB=="en-XA"?"{0} and {1}":_.MB==
"gl"||_.MB=="it"||_.MB=="pt-BR"||_.MB=="pt-PT"?"{0} e {1}":"{0} i {1}";_.MB==="sq"?(O=O.replace("dhe","e"),B=B.replace("dhe","e")):_.MB==="th"?(I=I.replace("{0}"," {0}"),B=B.replace("{0}","{0} "),B=B.replace("{1}"," {1}")):_.MB==="ne"?I=",":_.MB==="zh-CN"?I="":P.includes(_.MB)&&(I=" ");return W.length<2?W.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(_.MB)?W.length===2?
B.replace("{0}",W[0]).replace("{1}",W[1]):x.replace("{0}",W[0])+W.slice(1,-1).join(I)+O.replace("{0}",W[W.length-1]):W.join(I)};
_.J.getTimeParam=function(){return nzd(this.timeString)};
_.J.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var W={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},P;_.Kg(_.YY(),(P=this.data)==null?void 0:P.trackingParams,W,7)};
_.J.onChangeStartAtTimestamp=function(){for(var W=this.startAtTimestamp.value.split(":"),P=0,x=1,I=W.length-1;I>=0;I--)P+=Number(W[I])*x,x*=60;this.updateTimeSecs(P);this.setTimestamp()};
_.J.onOpen=function(){var W=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var P=_.RP();P?P.getPlayerPromise().then(function(x){x=x.getCurrentTime();W.updateTimeSecs(x)}):gM3()&&this.updateTimeSecs(gM3())};
_.J.setTimestamp=function(){var W=Math.floor(this.currentTimeSecs);_.W7(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!W,timestamp:W||""}])};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],BY.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],BY.prototype,"data",void 0);_.f([_.c({value:!1,notify:!0}),_.l("design:type",Boolean)],BY.prototype,"isStartAtChecked",void 0);_.f([_.c(),_.l("design:type",Number)],BY.prototype,"currentTimeSecs",void 0);
_.f([_.c({computed:"computeTimeString(currentTimeSecs)"}),_.l("design:type",String)],BY.prototype,"timeString",void 0);_.f([_.c({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.l("design:type",String)],BY.prototype,"timeStringA11y",void 0);_.f([_.BM("#start-at-timestamp"),_.l("design:type",Object)],BY.prototype,"startAtTimestamp",void 0);BY=_.f([_.jd({is:"yt-start-at-renderer",disableElementRegistration:!0})],BY);
_.X(BY,"yt-start-at-renderer",function(){if(wbO===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;$WB===void 0&&($WB=document.createElement("template"));var I=$WB;x.call(P,I.content.cloneNode(!0),W.content.firstChild);wbO=W}W=wbO;return W},{mode:2});var hHO;var HBv;var eH6=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),cxQ=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),axf=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var bB3={};bB3.YtBindingExpressionsBehavior={identity:_.UU,msg:function(W,P){P=P===void 0?{}:P;return _.KK(W,P,W)},
msgPlural:function(W,P){return _.ZE(W,P)},
getMusicIconFromType:function(W){if(_.p("music_web_enable_icon_wil"))W=_.PW(W);else if(cxQ.has(W))W="yt-sys-icons:"+cxQ.get(W);else{var P=eH6.get(W)||_.PW(W).split(":")[1];P=_.Hqt(P);var x;W=((x=axf.get(W))!=null?x:"yt-sys-icons:")+P}return W}};var kpL;var UW6;var Xb6;var fx6=document.head,NW6=fx6.appendChild,lxf;if(Xb6===void 0){var TW4=document.createElement("template");_.G(TW4,'\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>');Xb6=TW4}lxf=Xb6;NW6.call(fx6,lxf.content);var n9=function(){var W=_.b.apply(this,arguments)||this;W.screenLayer=7;return W};
_.A(n9,_.b);n9.prototype.getScreenLayer=function(){return this.screenLayer};
n9.prototype.onTap=function(W){W&&W.detail&&(W.detail.x||W.detail.y)&&_.g(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Iu(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(W=this.getScreenLayer(),_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:W}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.N1.Object.defineProperties(n9.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()}}});
n9.prototype.onTap=n9.prototype.onTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],n9.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],n9.prototype,"data",void 0);_.f([_.H("data.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],n9.prototype,"title",null);
_.f([_.H("data.serviceName"),_.l("design:type",String),_.l("design:paramtypes",[])],n9.prototype,"icon",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],n9.prototype,"onTap",null);n9=_.f([_.jd({is:"yt-share-target-renderer",disableElementRegistration:!0})],n9);
_.X(n9,"yt-share-target-renderer",function(){if(UW6===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;kpL===void 0&&(kpL=document.createElement("template"));var I=kpL;x.call(P,I.content.cloneNode(!0),W.content.firstChild);UW6=W}W=UW6;return W},{mode:2});var rx4;var iBO;var Y0=function(){var W=_.b.apply(this,arguments)||this;W.SHARE_TARGET_WIDTH=70;W.SHARE_TARGET_MARGIN_RIGHT=8;W.PAGE_SCROLL_SPEED=9;W.actionMap={"yt-share-panel-reset-action":"onReset_"};return W};
_.A(Y0,_.b);_.J=Y0.prototype;_.J.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.J.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.g(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.g(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.J.onReset_=function(){if(_.g(this.hostElement).querySelector("#list")){var W=_.g(this.hostElement).querySelector("#list");var P=_.g(this.hostElement).querySelector("#list");var x=P.offsetLeft,I=P.offsetParent;I||_.YvM(P)!="fixed"||(I=_.GD(P).documentElement);if(I){if(_.KW&&!_.od(58)){var O=_.sGw(I);x+=O.left}else Number(_.bN8)>=8&&!(Number(_.bN8)>=9)&&(O=_.sGw(I),x-=O.left);P=_.u6P(I)?I.clientWidth-(x+P.offsetWidth):x}else P=x;gC9(W,P);this.updateScrollButtons_()}};
_.J.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.J.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.J.onScrollWheel_=function(W){W.stopPropagation();W.preventDefault();var P=EC3(_.g(this.hostElement).querySelector("#list"));W=Math.abs(W.deltaX)>Math.abs(W.deltaY)?W.deltaX:W.deltaY;gC9(_.g(this.hostElement).querySelector("#list"),P+W);this.updateScrollButtons_()};
_.J.smoothScrollByOnePage_=function(W){var P=_.g(this.hostElement).querySelector("#list"),x=(Math.floor(P.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,I=EC3(P),O=x*(W?1:-1),B=this.PAGE_SCROLL_SPEED,Y=this.updateScrollButtons_.bind(this),K=0,Z;(function v(){K+=B;Z=K/x*2;gC9(P,I+O*(Z<1?Z*Z:-Z*Z+4*Z-2));K<x?window.requestAnimationFrame(v):Y()})()};
_.J.updateScrollButtons_=function(){var W=EC3(_.g(this.hostElement).querySelector("#list")),P=_.g(this.hostElement).querySelector("#list").scrollWidth-_.g(this.hostElement).querySelector("#list").clientWidth;_.g(this.hostElement).querySelector("#scroll-button-back").hidden=W<=0;_.g(this.hostElement).querySelector("#scroll-button-forward").hidden=W>=P};
Y0.prototype.onScrollWheel_=Y0.prototype.onScrollWheel_;Y0.prototype.onDataChanged_=Y0.prototype.onDataChanged_;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Y0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Y0.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(bB3.YtBindingExpressionsBehavior),_.l("design:type",Object)],Y0.prototype,"ytBindingExpressionsBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Y0.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Y0.prototype,"onDataChanged_",null);_.f([_.I7("wheel"),_.l("design:type",Function),_.l("design:paramtypes",[WheelEvent]),_.l("design:returntype")],Y0.prototype,"onScrollWheel_",null);
Y0=_.f([_.jd({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Y0);
_.X(Y0,"yt-third-party-share-target-section-renderer",function(){if(iBO===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;rx4===void 0&&(rx4=document.createElement("template"));var I=rx4;x.call(P,I.content.cloneNode(!0),W.content.firstChild);iBO=W}W=iBO;return W},{mode:2});var yj=function(){return _.b.apply(this,arguments)||this};
_.A(yj,_.b);yj.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"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yj.prototype,"data",void 0);yj=_.f([_.jd({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],yj);
_.X(yj,"yt-third-party-network-section-renderer",function(){if(HBv===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;hHO===void 0&&(hHO=document.createElement("template"));var I=hHO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);HBv=W}W=HBv;return W},{mode:2});_.lq(_.kl(function(W){return _.u("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.u("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.u(_.Ea,{data:function(){return W.data().firstPartyItems}},{listItemViewModel:_.tG})))},"hg"),"first-party-network-section-view-model",{props:{data:_.cv}});var RH9=_.i4(["data:image/svg+xml;charset=UTF-8;base64,",""]),K9=function(){var W=_.b.apply(this,arguments)||this;W.screenLayer=7;W.qrCodeEnabled=_.p("web_enable_sharing_qr_code");W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return W};
_.A(K9,_.b);_.J=K9.prototype;_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.J.attached=function(){this.JSC$17757_scroller&&(this.JSC$17757_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17757_scroller.attached&&typeof this.JSC$17757_scroller.attached==="function"&&this.JSC$17757_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.J.onDataChanged=function(){var W=this,P;(P=this.data)!=null&&P.contents&&(this.hostElement.setAttribute("links-only","true"),_.Rf(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Xm(this,function(){_.Lf(W.hostElement,"yt-refit");W.focusSharePanelHeader()}))};
_.J.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.J.handleSetTimestamp=function(W){var P=this.shortUrl();W.isSet&&(P=_.UF(P,"t",W.timestamp));this.maybeRenderQrCode(P)};
_.J.shortUrl=function(){var W,P=(W=this.data)==null?void 0:W.contents;if(P)for(W=0;W<P.length;W++){var x=void 0,I=void 0;if((x=P[W])==null?0:(I=x.thirdPartyNetworkSection)==null?0:I.copyLinkContainer){var O=I=x=void 0;return(O=_.Q((x=P[W])==null?void 0:(I=x.thirdPartyNetworkSection)==null?void 0:I.copyLinkContainer,MJL))==null?void 0:O.shortUrl}}};
_.J.maybeRenderQrCode=function(W){var P=this,x,I,O,B,Y,K,Z,d,v;return _.y(function(m){if(m.nextAddress==1){x=_.g(P.hostElement).querySelector("#qr-code");if(!P.qrCodeEnabled||!W)return x&&(x.style.display="none"),m.return();I=_.iZC(_.FY().resolve(_.xY),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});O=document.createElement("div");return typeof I==="function"?(I(O),m.jumpTo(2)):_.S(m,I,3)}m.nextAddress!=2&&(B=m.yieldResult,B(O));Z=(Y=O)==null?void 0:(K=Y.firstChild)==null?void 0:K.firstChild;
d=document.createElement("img");v=_.pz(RH9,btoa(Z.outerHTML));d.onload=function(){var t={canvas:x,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:d},C=new BUM;oa2(C,W);S_y(C,!1,uud(C));var z=C.modules,D=Object.assign({},Z0v,t);z=structuredClone(z);t=z.length;var w,a=(w=D.canvas)!=null?w:document.createElement("canvas");w=D.cellSize;C=D.logo;var k,T=(k=D.logoSize)!=null?k:Math.floor(t/4);t%2!==T%2&&T++;var N=D.logoPadding,Io=D.backgroundColor;k=t*w;var F=
D.width,nm=0;F&&(nm=D.padding,nm=Math.ceil(nm*k/(F-nm*2)),a.style.width=F+"px",a.style.height=F+"px");a.width!==k+nm*2&&(a.width=k+nm*2);a.height!==k+nm*2&&(a.height=k+nm*2);k=a.getContext("2d");D.autoClear&&k.clearRect(0,0,a.width,a.height);k.fillStyle=Io;k.beginPath();k.roundRect(0,0,a.width,a.height,D.borderRadius);k.fill();k.save();k.translate(nm,nm);if(C)for(a=Math.floor(t-T)/2-N,N=Math.floor(t+T)/2+N,Io=a;Io<N;Io++)for(F=a;F<N;F++)z[Io][F]=!1;for(a=0;a<t;a++)for(N=0;N<t;N++)(a<7&&N<7||a<7&&
N>=t-7||a>=t-7&&N<7)&&(z[a][N]=!1);var pm;a=(pm=D.markerColor)!=null?pm:D.color;siM(k,0,0,w,a);siM(k,w*(t-7),0,w,a);siM(k,0,w*(t-7),w,a);switch(D.cellStyle){case 0:pm=z;z=pm.length;a=D.cellSize;k.beginPath();for(N=0;N<z;N++)for(Io=0;Io<z;Io++)pm[N][Io]&&k.rect(N*a,Io*a,a,a);k.fillStyle=D.color;k.fill();break;case 1:pm=z;z=pm.length;a=D.cellSize;N=a*D.relativeCircleSize;k.fillStyle=D.color;k.beginPath();for(D=0;D<z;D++)for(Io=0;Io<z;Io++)pm[D][Io]&&(k.beginPath(),k.ellipse((D+.5)*a,(Io+.5)*a,N/2,N/
2,0,0,2*Math.PI),k.fill());k.fill();break;case 2:pm=z;z=pm.length;a=D.cellSize;k.fillStyle=D.color;D=[[1,1],[-1,1],[-1,-1],[1,-1]];k.beginPath();for(N=0;N<z;N++)for(Io=0;Io<z;Io++)if(pm[N][Io])k.roundRect(N*a,Io*a,a,a,a/2),N+1<z&&pm[N+1][Io]&&k.rect(N*a+a/2,Io*a,a,a),Io+1<z&&pm[N][Io+1]&&k.rect(N*a,Io*a+a/2,a,a);else{F=N*a+a/2;nm=Io*a+a/2;for(var zR=0;zR<4;zR++){var Am=_.n(D[zR]),kW=Am.next().value;Am=Am.next().value;N+kW>=0&&N+kW<z&&Io+Am>=0&&Io+Am<z&&pm[N+kW][Io]&&pm[N][Io+Am]&&pm[N+kW][Io+Am]&&
(kW=zR*Math.PI/2,Am=a/2,k.moveTo(F+Am*Math.cos(kW),nm+Am*Math.sin(kW)),k.arc(F,nm,a/2,kW,kW+Math.PI/2,!1),k.lineTo(F+Am*(Math.cos(kW)-Math.sin(kW)),nm+Am*(Math.cos(kW)+Math.sin(kW))),k.lineTo(F+Am*Math.cos(kW),nm+Am*Math.sin(kW)))}}k.fill()}C&&k.drawImage(C,(t-T)*w/2,(t-T)*w/2,T*w,T*w);k.restore();x.style.removeProperty("display")};
d.src=_.u5(v);_.Kl(m)})};
_.J.hasCommunityPostRenderer=function(){var W,P,x,I;return!!((W=this.data)==null?0:(P=W.header)==null?0:(x=P.sharePanelHeaderRenderer)==null?0:(I=x.communityPost)==null?0:I.communityPostSectionRenderer)};
_.J.onTapClose=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logSharePanelPage=function(){if(!_.p("enable_share_panel_navigation_logging_fix_on_web")){var W;if((W=this.data)!=null&&W.trackingParams){W=this.data.trackingParams;var P=this.parentClickTrackingParams;P=P?_.ox(P):void 0;var x=_.YY();_.JN(x,21760,P,{layer:7,parentLayer:0});x.graftServerVe(W,void 0,7);_.Xe().dispatch(_.LK({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
K9.prototype.onDataChanged=K9.prototype.onDataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],K9.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],K9.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],K9.prototype,"data",void 0);_.f([_.c({value:_.KK("SBOX_INAPPROPRIATE_CANCEL")}),_.l("design:type",String)],K9.prototype,"closeButtonAriaLabel",void 0);_.f([_.BM("yt-share-panel-header-renderer"),_.l("design:type",HTMLElement)],K9.prototype,"header",void 0);_.f([_.c({selector:function(W){return W.share.parentClickTrackingParams}}),
_.l("design:type",String)],K9.prototype,"parentClickTrackingParams",void 0);_.f([_.c(),_.l("design:type",Object)],K9.prototype,"qrCodeEnabled",void 0);_.f([_.BM("#scroller"),_.l("design:type",Object)],K9.prototype,"JSC$17757_scroller",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],K9.prototype,"onDataChanged",null);K9=_.f([_.U({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],K9);
_.X(K9,"ytd-unified-share-panel-renderer",function(){if(QO3!==void 0)return QO3;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return QO3=W},{mode:1});var FIB;var Zo=function(){var W=_.b.apply(this,arguments)||this;W.modernModal=_.p("kevlar_sign_in_modal_modernization");return W};
_.A(Zo,_.b);Zo.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Zo.prototype.computeShouldHideOldButtons=function(){var W;return!((W=this.data)==null?0:W.button)};
_.N1.Object.defineProperties(Zo.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var W,P;if(this.modernModal&&((W=this.data)==null?0:(P=W.button)==null?0:P.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var x,I;return(x=this.data)==null?void 0:(I=x.button)==null?void 0:I.buttonRenderer}}});
_.f([_.c(),_.l("design:type",Object)],Zo.prototype,"data",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],Zo.prototype,"ytEventForwardingBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Zo.prototype,"modernModal",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zo.prototype,"buttonRendererData",null);
Zo=_.f([_.U({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Zo);
_.X(Zo,"ytd-modal-with-title-and-button-renderer",function(){if(FIB!==void 0)return FIB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return FIB=W},{mode:1});var qmf;var oa=function(){return _.b.apply(this,arguments)||this};
_.A(oa,_.b);oa.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("page-changed",this.page))};
oa.prototype.pageChangedForBinding=oa.prototype.pageChangedForBinding;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],oa.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],oa.prototype,"page",void 0);_.f([_.OZ("page"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oa.prototype,"pageChangedForBinding",null);
oa=_.f([_.U({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],oa);
_.X(oa,"ytd-account-item-section-header-renderer",function(){if(qmf!==void 0)return qmf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return qmf=W},{mode:1});var LIG;var S6=function(){return _.b.apply(this,arguments)||this};
_.A(S6,_.b);S6.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"}}}};
S6.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],S6.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],S6.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!1}),_.l("design:type",Function)],S6.prototype,"onAccountItemTap",void 0);
S6=_.f([_.U({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],S6);
_.X(S6,"ytd-account-item-section-renderer",function(){if(LIG!==void 0)return LIG;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return LIG=W},{mode:1});var W3y;var PRd;var uQ=function(){return _.b.apply(this,arguments)||this};
_.A(uQ,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],uQ.prototype,"data",void 0);uQ=_.f([_.U({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],uQ);
_.X(uQ,"ytd-accounts-dialog-header-renderer",function(){if(PRd!==void 0)return PRd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return PRd=W},{mode:1});var xfO;var dz=function(){return _.b.apply(this,arguments)||this};
_.A(dz,_.b);dz.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dz.prototype,"data",void 0);dz=_.f([_.U({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],dz);
_.X(dz,"ytd-google-account-header-renderer",function(){if(xfO!==void 0)return xfO;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return xfO=W},{mode:1});var sO=function(){return _.b.apply(this,arguments)||this};
_.A(sO,_.b);sO.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"}}}};
sO.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("page-changed",this.page))};
sO.prototype.pageChangedForBinding=sO.prototype.pageChangedForBinding;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sO.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],sO.prototype,"page",void 0);
_.f([_.OZ("page"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sO.prototype,"pageChangedForBinding",null);sO=_.f([_.U({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],sO);
_.R7()(sO,"ytd-account-section-list-renderer",function(){if(W3y===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);W3y=W}W=W3y;return W},{allowedProps:["data"],
mode:1});var Id4;var vY=function(){var W=_.b.apply(this,arguments)||this;W.enableHandlesAccountMenuSwitcher=_.p("enable_handles_account_menu_switcher");return W};
_.A(vY,_.b);vY.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
vY.prototype.dataChanged=vY.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vY.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],vY.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.f([_.BM("#avatar"),_.l("design:type",Object)],vY.prototype,"avatar",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vY.prototype,"dataChanged",null);vY=_.f([_.U({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],vY);
_.R7()(vY,"ytd-active-account-header-renderer",function(){if(Id4===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);Id4=W}W=Id4;return W},{allowedProps:["data"],
mode:1});var O7B;var Jfd;var mV=function(){return _.b.apply(this,arguments)||this};
_.A(mV,_.b);mV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mV.prototype.onBackTap=function(){_.Lf(this.hostElement,"yt-menu-back-tapped")};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mV.prototype,"data",void 0);mV=_.f([_.U({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],mV);
_.R7()(mV,"ytd-simple-menu-header-renderer",function(){if(Jfd===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);Jfd=W}W=Jfd;return W},{allowedProps:["data"],
mode:2});var BqM;var Vj=function(){return _.b.apply(this,arguments)||this};
_.A(Vj,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Vj.prototype,"data",void 0);Vj=_.f([_.U({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Vj);
_.X(Vj,"ytd-comment-video-thumbnail-header-renderer",function(){if(BqM!==void 0)return BqM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return BqM=W},{mode:1});var nwM;var ti=function(){return _.b.apply(this,arguments)||this};
_.A(ti,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ti.prototype,"data",void 0);ti=_.f([_.U({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],ti);
_.X(ti,"ytd-abuse-type-selector-renderer",function(){if(nwM!==void 0)return nwM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return nwM=W},{mode:1});var Yf9;var p9=function(){return _.b.apply(this,arguments)||this};
_.A(p9,_.b);p9.prototype.attached=function(){var W=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){W.additionalContextInput.focusTextInput()})};
p9.prototype.handleAdditionalContextChanged=function(){var W=this;_.De(this,"ytd-report-channel-additional-context-update",function(){W.ytdReduxBehavior.dispatch(_.LK({type:"ADDITIONAL_CONTEXT_UPDATED",payload:W.additionalContext}))},300)};
p9.prototype.updateAdditionalContextFromBinding=function(W){this.additionalContext=W.detail.value};
p9.prototype.handleAdditionalContextChanged=p9.prototype.handleAdditionalContextChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],p9.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",String)],p9.prototype,"additionalContext",void 0);_.f([_.c({selector:function(W){return W.reportChannelAbuse.additionalContext}}),
_.l("design:type",String)],p9.prototype,"additionalContextRedux",void 0);_.f([_.c(),_.l("design:type",Object)],p9.prototype,"data",void 0);_.f([_.BM("yt-text-input-form-field-renderer"),_.l("design:type",Object)],p9.prototype,"additionalContextInput",void 0);_.f([_.OZ("additionalContext"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p9.prototype,"handleAdditionalContextChanged",null);
p9=_.f([_.U({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],p9);
_.X(p9,"ytd-report-channel-modal-additional-context-renderer",function(){if(Yf9!==void 0)return Yf9;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Yf9=W},{mode:1});var yf2;var j6=function(){var W=_.b.apply(this,arguments)||this;W.nextButtonDisabled=null;W.submitEndpoint=null;W.navigationEndpoint=null;W.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return W};
_.A(j6,_.b);_.J=j6.prototype;_.J.computeNextButtonData=function(W,P,x){var I={};P&&(I.navigationEndpoint=P);x&&(I.serviceEndpoint=x);W&&W.buttonRenderer&&_.jU.extend(I,W.buttonRenderer);return I};
_.J.handleReportChannelModalDisableNextButtonAction=function(W){this.setNextButtonIsDisabled(W)};
_.J.handleReportFormEndpointUpdateAction=function(W){this.setNextButtonIsDisabled(!!W.disableSubmitButton);this.resetEndpointData();W.submitEndpoint?this.submitEndpoint=W.submitEndpoint:W.submitNavigationEndpoint&&(this.navigationEndpoint=W.submitNavigationEndpoint)};
_.J.handleSignalActionSubmitForm=function(){var W,P=Object.keys(((W=this.reportChannelAbuseForm)==null?void 0:W.selectedVideoIds)||{}),x;W=((x=this.reportChannelAbuseForm)==null?void 0:x.additionalContext)||"";var I;x=((I=this.reportChannelAbuseForm)==null?void 0:I.impersonatedChannelUrl)||"";var O;if((O=this.data)==null?0:O.submitEndpoint){P={impersonated_channel_url:x,text:W,video_ids:P};var B;_.FY().resolve(_.qR).resolveCommand((B=this.data)==null?void 0:B.submitEndpoint,{form:Object.assign({},
P,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.J.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.J.onYtServiceRequestError=function(W){this.setNextButtonIsDisabled(!1);_.Iq(this.hostElement,W.detail.error.message)};
_.J.setNextButtonIsDisabled=function(W){this.set("data.nextButton.buttonRenderer.isDisabled",W)};
_.J.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
j6.prototype.onYtServiceRequestError=j6.prototype.onYtServiceRequestError;j6.prototype.onYtServiceRequestCompleted=j6.prototype.onYtServiceRequestCompleted;_.f([_.c(),_.l("design:type",Object)],j6.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],j6.prototype,"nextButtonDisabled",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],j6.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],j6.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],j6.prototype,"submitEndpoint",void 0);_.f([_.c(),_.l("design:type",Object)],j6.prototype,"navigationEndpoint",void 0);_.f([_.c({selector:function(W){return W.reportChannelAbuse}}),
_.l("design:type",Object)],j6.prototype,"reportChannelAbuseForm",void 0);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],j6.prototype,"onYtServiceRequestCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],j6.prototype,"onYtServiceRequestError",null);
j6=_.f([_.U({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],j6);
_.X(j6,"ytd-report-channel-modal-footer-renderer",function(){if(yf2!==void 0)return yf2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return yf2=W},{mode:1});var K3m;var Qj=function(){var W=_.b.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.closePopup()};
return W};
_.A(Qj,_.b);Qj.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Qj.prototype.handleDataChanged=function(){_.XG(this.hostElement)};
Qj.prototype.closePopup=function(){_.W7(this.hostElement,"yt-close-popup-action")};
Qj.prototype.handleDataChanged=Qj.prototype.handleDataChanged;_.f([_.c(),_.l("design:type",Object)],Qj.prototype,"boundOnTapDismissButton",void 0);_.f([_.c(),_.l("design:type",Object)],Qj.prototype,"data",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qj.prototype,"handleDataChanged",null);Qj=_.f([_.U({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Qj);
_.X(Qj,"ytd-report-channel-modal-header-renderer",function(){if(K3m!==void 0)return K3m;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return K3m=W},{mode:1});var Z7m;var C9=function(){var W=_.b.apply(this,arguments)||this;W.autoValidate=!1;W.invalid=!1;W.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return W};
_.A(C9,_.b);_.J=C9.prototype;_.J.attached=function(){var W=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){W.channelUrlInput.focusTextInput()})};
_.J.disableNextButton=function(W){_.W7(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[W])};
_.J.handleImpersonatedChannelUrlChanged=function(){var W=this;this.disableNextButton(!0);this.invalid=!1;_.De(this,"ytd-report-channel-impersonated-channel-update",function(){var P=W.impersonatedChannelUrl.trim();W.ytdReduxBehavior.dispatch(_.LK({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:P}));var x;((x=W.data)==null?0:x.submitEndpoint)&&P&&_.FY().resolve(_.qR).resolveCommand(W.data.submitEndpoint,{form:{impersonated_channel_url:P,element:W.hostElement}})},500)};
_.J.handleModifyReportFormCommand=function(W){this.invalid=this.get("modifyReportFormCommand.action",W)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.J.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.J.updateImpersonatedChannelUrlFromBinding=function(W){this.impersonatedChannelUrl=W.detail.value};
C9.prototype.handleImpersonatedChannelUrlChanged=C9.prototype.handleImpersonatedChannelUrlChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],C9.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],C9.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],C9.prototype,"autoValidate",void 0);_.f([_.c(),_.l("design:type",Object)],C9.prototype,"invalid",void 0);
_.f([_.c(),_.l("design:type",String)],C9.prototype,"impersonatedChannelUrl",void 0);_.f([_.c({selector:function(W){return W.reportChannelAbuse.impersonatedChannelUrl}}),
_.l("design:type",String)],C9.prototype,"impersonatedChannelUrlRedux",void 0);_.f([_.c(),_.l("design:type",Object)],C9.prototype,"data",void 0);_.f([_.BM("#text-input"),_.l("design:type",Object)],C9.prototype,"channelUrlInput",void 0);_.f([_.OZ("impersonatedChannelUrl"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C9.prototype,"handleImpersonatedChannelUrlChanged",null);
C9=_.f([_.U({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],C9);
_.X(C9,"ytd-report-channel-modal-impersonation-renderer",function(){if(Z7m!==void 0)return Z7m;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Z7m=W},{mode:1});var owf;var Sff;var Ai=function(){return _.b.apply(this,arguments)||this};
_.A(Ai,_.b);Ai.prototype.onCheckboxToggled=function(W){var P,x,I=(x=_.Q((P=this.data)==null?void 0:P.video,_.HA))==null?void 0:x.videoId;I&&this.ytdReduxBehavior.dispatch(W.target.checked?_.LK({type:"VIDEO_SELECTED",payload:I}):_.LK({type:"VIDEO_UNSELECTED",payload:I}))};
Ai.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.N1.Object.defineProperties(Ai.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var W,P=(W=this.data)==null?void 0:W.video;if(!P)return{};var x;W=(x=_.Q(P,_.HA))==null?void 0:x.navigationEndpoint;if(!W)return P;_.Q(W==null?void 0:W.commandMetadata,_.rU)&&(_.Q(W.commandMetadata,_.rU).ignoreNavigation=!0);return P}}});
_.f([_.c({reflectToAttribute:!0,selector:function(W,P){return P in W.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.l("design:type",Boolean)],Ai.prototype,"checked",void 0);_.f([_.c(),_.l("design:type",Object)],Ai.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ai.prototype,"video",null);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],Ai.prototype,"ytdReduxBehavior",void 0);Ai=_.f([_.U({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Ai);
_.X(Ai,"ytd-selectable-video-renderer",function(){if(Sff!==void 0)return Sff;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Sff=W},{mode:1});var zo=function(){var W=_.b.apply(this,arguments)||this;W.monitorScroll=!0;return W};
_.A(zo,_.b);zo.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],zo.prototype,"data",void 0);zo=_.f([_.U({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],zo);
_.X(zo,"ytd-selectable-video-list-renderer",function(){if(owf!==void 0)return owf;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return owf=W},{mode:1});var uK9;_.Ad("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Go=function(){return _.b.apply(this,arguments)||this};
_.A(Go,_.b);Go.prototype.onChange=function(W){if(W=_.af(W).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.p("kevlar_command_handler_migration_killswitch"))_.OL(this.hostElement,W,this.hostElement);else{W=_.n(W);for(var P=W.next();!P.done;P=W.next())this.ytComponentBehavior.resolveCommand(P.value)}};
Go.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Go.prototype.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Go.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Go.prototype,"data",void 0);_.f([_.c({computed:"isEnabled(data)"}),_.l("design:type",Boolean)],Go.prototype,"enabled",void 0);Go=_.f([_.U({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Go);
_.X(Go,"ytd-toggle-item-renderer",function(){if(uK9!==void 0)return uK9;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return uK9=W},{mode:1});var df4;var sVy;var vwQ;var EO=function(){var W=_.b.apply(this,arguments)||this;W.setVisible=!1;W.boundOnSubmitButtonClick=function(){W.onSubmitButtonClick()};
W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.A(EO,_.b);EO.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}}}}}};
EO.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
EO.prototype.onSubmitButtonClick=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&!_.p("enable_ytc_refunds_submit_form_signal_action")&&_.Iu(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
EO.prototype.handleSignalActionSubmitForm=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&_.Iu(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.N1.Object.defineProperties(EO.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hiddenByDefault)&&!this.setVisible}}});
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],EO.prototype,"setVisible",void 0);_.f([_.c(),_.l("design:type",Object)],EO.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],EO.prototype,"surveyFeedbackData",void 0);_.f([_.c(),_.l("design:type",Object)],EO.prototype,"boundOnSubmitButtonClick",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data","setVisible"),_.l("design:type",Object),_.l("design:paramtypes",[])],EO.prototype,"visibilityHidden",null);EO=_.f([_.jd({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],EO);
_.X(EO,"yt-flow-footer-renderer",function(){if(vwQ===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;sVy===void 0&&(sVy=document.createElement("template"));var I=sVy;x.call(P,I.content.cloneNode(!0),W.content.firstChild);vwQ=W}W=vwQ;return W},{mode:2});var gz=function(){return _.b.apply(this,arguments)||this};
_.A(gz,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],gz.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],gz.prototype,"data",void 0);_.f([_.c({selector:function(W){return W.ypc.surveyFeedbackData}}),
_.l("design:type",Object)],gz.prototype,"surveyFeedbackData",void 0);gz=_.f([_.U({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],gz);
_.X(gz,"ytd-flow-footer-renderer",function(){if(df4!==void 0)return df4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return df4=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var mfO;var VgL;var Do=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return W};
_.A(Do,_.b);_.J=Do.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.z4("multiPageMenuSectionItems")}}};
_.J.handleHideEnclosingAction_=function(W){if(this.data&&this.data.items)for(var P=0;P<this.data.items.length;P++){var x=this.data.items[P].notificationRenderer;if(x&&x.notificationId==W.hideEnclosingAction.notificationId){this.splice("data.items",P,1);_.W7(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.J.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Rf(this.hostElement,"hidden",!0)};
_.J.updateMenu_=function(W){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&W&&!W.doNotRefreshInbox){W=this.data.continuations;for(var P=0;P<W.length;P++)if(W[P].invalidationContinuationData){var x=void 0;var I=(x=W[P].invalidationContinuationData)==null?void 0:x.continuation;break}W=_.jU.clone(this.data.continuationUpdateEndpoint||null);W.continuation=I;W.click_tracking_params=this.data.trackingParams;_.Iu(this.hostElement,[W])}};
_.J.onServiceRequestCompleted_=function(W,P){if(this.data&&(W=P.actions)){P=0;for(var x=W.length;P<x;P++){var I=_.Q(W[P],_.YFz);if(!I)break;if((I.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||I.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&I.continuationItems&&this.data.items){var O=this.data.items.length-1;this.data.items[O].continuationItemRenderer&&this.splice.apply(this,["data.items",O,1].concat(I.continuationItems))}}}};
Do.prototype.onServiceRequestCompleted_=Do.prototype.onServiceRequestCompleted_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Do.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Do.prototype,"data",void 0);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],Do.prototype,"onServiceRequestCompleted_",null);Do=_.f([_.jd({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Do);
_.R7()(Do,"yt-multi-page-menu-section-renderer",function(){if(VgL===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;mfO===void 0&&(mfO=document.createElement("template"));var I=mfO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);VgL=W}W=VgL;return W},{allowedProps:["data"],
mode:2});var tg6;var pwG;var My=function(){return _.b.apply(this,arguments)||this};
_.A(My,_.b);My.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.N1.Object.defineProperties(My.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)==null?0:this.data.progress*100}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],My.prototype,"data",void 0);_.f([_.H("data.progress"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],My.prototype,"showProgressBar",null);
_.f([_.H("data.progress"),_.l("design:type",Number),_.l("design:paramtypes",[])],My.prototype,"progress",null);My=_.f([_.jd({is:"yt-flow-header-renderer",disableElementRegistration:!0})],My);
_.X(My,"yt-flow-header-renderer",function(){if(pwG===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;tg6===void 0&&(tg6=document.createElement("template"));var I=tg6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);pwG=W}W=pwG;return W},{mode:2});var jVB;var QV6;var $0=function(){return _.b.apply(this,arguments)||this};
_.A($0,_.b);$0.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$0.prototype,"data",void 0);$0=_.f([_.jd({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],$0);
_.X($0,"yt-post-confirmation-flow-step-renderer",function(){if(QV6===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;jVB===void 0&&(jVB=document.createElement("template"));var I=jVB;x.call(P,I.content.cloneNode(!0),W.content.firstChild);QV6=W}W=QV6;return W},{mode:2});var CR9;var AfO;var wz=function(){return _.b.apply(this,arguments)||this};
_.A(wz,_.b);
wz.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"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wz.prototype,"data",void 0);wz=_.f([_.jd({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],wz);
_.X(wz,"yt-refund-confirmation-flow-step-renderer",function(){if(AfO===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;CR9===void 0&&(CR9=document.createElement("template"));var I=CR9;x.call(P,I.content.cloneNode(!0),W.content.firstChild);AfO=W}W=AfO;return W},{mode:2});_.ql(YnQ);_.ql(ybv);var KBQ=_.CC({avatarViewModel:_.DI});_.ql(ZR3);var ozQ=_.CC({commentInteractionViewModel:ybv,sharedSubscriptionViewModel:ZR3,buttonViewModel:_.cq});_.ql(Snf);_.ql(ueG);_.ql(dB6);_.ql(sYm);_.ql(vz3);var mBd=_.CC({profileIdentityInfoViewModel:_.p93,profileInfoViewModel:vz3});_.ql(Vlm);_.WF(Vlm,"yt-profile-card-view-model",{propNames:["data"]});var hi=function(){var W=_.b.apply(this,arguments)||this;W.enableFocusFix=_.p("music_web_enable_focus_on_setting_menu_fix")&&_.wo("IS_MOBILE_WEB",!1);W.covered=!1;W.hideMenu=!1;W.isCommentNotificationOnProfileCard=!1;W.scrolledByTouch=!1;W.disableBackdropFilter=_.p("web_disable_backdrop_filter");W.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return W};
_.A(hi,_.b);_.J=hi.prototype;
_.J.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"}}}};
_.J.ready=function(){var W=this;this.JSC$17866_containerElement.addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.J.attributeChanged=function(W,P){W==="menu-style"&&_.W7(this.hostElement,"yt-multi-page-menu-closed-action",[P])};
_.J.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.WM(this,this.focusOnStampFinished))};
_.J.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.WM(this,this.focusOnStampFinished))};
_.J.reset=function(){this.closeJobId&&(_.Gr.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.J.focusOnStampFinished=function(W){W.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.WM(this,this.focusOnStampFinished)),this.doFocus())};
_.J.doFocus=function(){var W=_.tKd(this.sectionsElement);W.length&&W[0].focus()};
_.J.computeMenuStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.J.computeIsCommentNotificationOnProfileCard=function(W){return _.p("enable_profile_cards_on_comments")&&W.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.J.computeHideMenu=function(W,P){return W||!(!P||!P.showLoadingSpinner)};
_.J.onPopupClosed=function(){this.isPopUpOpen=!1;_.W7(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.J.onPopupOpened=function(W,P){this.isPopUpOpen=!0;P.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Lf(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.LK({type:"CHANNEL_REPORT_RESET"})))};
_.J.onYtNavigate=function(W,P){this.shouldCloseOnNavigateEvent(P.endpoint)&&_.W7(this.hostElement,"yt-close-all-popups-action")};
_.J.handleEndpoint=function(W){W=_.Q(W,_.g6);!this.isCommentNotificationOnProfileCard&&W&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17866_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.J.handleActions=function(W){for(var P=0,x=W.length;P<x;P++){var I=_.Q(W[P],hN2);I&&this.handleGetMultiPageMenuAction(I);(I=_.Q(W[P],_.YFz))&&this.handleAppendContinuationItemsAction(I)}};
_.J.onServiceRequestSentOrCompleted=function(W,P){W.detail&&W.detail.endpoint&&this.handleEndpoint(W.detail.endpoint);P.actions&&this.handleActions(P.actions)};
_.J.handleGetMultiPageMenuAction=function(W){var P=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.g(this.submenuElement).appendChild(P);(W=W.menu.multiPageMenuRenderer)&&this.logSubmenu(W);P.data=W;P.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.J.handleAppendContinuationItemsAction=function(W){if(this.data&&W.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&W.continuationItems&&this.data.sections){var P=this.data.sections.length-1;this.data.sections[P].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),P--);if(this.data.sections[P].multiPageMenuNotificationSectionRenderer&&W.continuationItems){W=_.n(W==null?void 0:W.continuationItems);for(var x=W.next();!x.done;x=W.next())if(x=x.value,_.Q(x,nZ6)){var I=
void 0,O=void 0,B=void 0,Y=void 0,K=void 0;((I=this)==null?0:(O=I.data)==null?0:(B=O.sections)==null?0:(Y=B[P])==null?0:(K=Y.multiPageMenuNotificationSectionRenderer)==null?0:K.items)&&this.push("data.sections."+P+".multiPageMenuNotificationSectionRenderer.items",x)}else if(_.Q(x,_.r6c)||_.Q(x,_.Yc))this.push("data.sections",x),P++}}};
_.J.logSubmenu=function(W){if(!_.p("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var P=this.ytRendererBehavior.getScreenLayer(),x=_.E_(P),I=_.G7(P);if((W=W.trackingParams)&&x&&I){var O=_.ox(W);_.p("combine_ve_grafts")?_.YY().graftServerVe(W,I,P):_.hn(x,I,O)}}};
_.J.emptySubmenuContainer=function(){for(var W=_.g(this.submenuElement);W.firstChild;)W.removeChild(W.firstChild)};
_.J.onMenuBackTap=function(W){_.Lf(this.hostElement,"yt-submenu-closed");W.stopPropagation()};
_.J.onSubmenuClosed=function(W){_.af(W)!==this.hostElement&&(this.covered=!1,_.Lf(this.hostElement,"yt-refit"),W.stopPropagation())};
_.J.onRetrieveLocation=function(W,P){P.hasComments&&(P.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),W.stopPropagation())};
_.J.shouldCloseOnNavigateEvent=function(W){if(!W)return!0;if(_.Q(W,_.Nll)||_.Q(W,_.lgA)||_.Q(W,_.fgm)||_.Q(W,_.aR))return!1;var P;return((P=_.Q(W==null?void 0:W.commandMetadata,_.rU))==null?0:P.ignoreNavigation)?!1:!0};
_.J.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.J.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.J.refitAfterRender=function(){var W=this;_.Xm(this,function(){_.Lf(W.hostElement,"yt-refit")})};
hi.prototype.refitAfterRender=hi.prototype.refitAfterRender;hi.prototype.onRetrieveLocation=hi.prototype.onRetrieveLocation;hi.prototype.onSubmenuClosed=hi.prototype.onSubmenuClosed;hi.prototype.onMenuBackTap=hi.prototype.onMenuBackTap;hi.prototype.onServiceRequestSentOrCompleted=hi.prototype.onServiceRequestSentOrCompleted;hi.prototype.onYtNavigate=hi.prototype.onYtNavigate;hi.prototype.onPopupOpened=hi.prototype.onPopupOpened;hi.prototype.onPopupClosed=hi.prototype.onPopupClosed;
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],hi.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],hi.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],hi.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],hi.prototype,"enableFocusFix",void 0);_.f([_.c(),_.l("design:type",Object)],hi.prototype,"covered",void 0);_.f([_.c({computed:"computeHideMenu(covered, data)"}),_.l("design:type",Object)],hi.prototype,"hideMenu",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.l("design:type",String)],hi.prototype,"menuStyle",void 0);
_.f([_.c({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.l("design:type",Object)],hi.prototype,"isCommentNotificationOnProfileCard",void 0);_.f([_.c(),_.l("design:type",Boolean)],hi.prototype,"isPopUpOpen",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],hi.prototype,"scrolledByTouch",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],hi.prototype,"disableBackdropFilter",void 0);
_.f([_.BM("#sections"),_.l("design:type",HTMLElement)],hi.prototype,"sectionsElement",void 0);_.f([_.BM("#spinner"),_.l("design:type",HTMLElement)],hi.prototype,"spinnerElement",void 0);_.f([_.BM("#header"),_.l("design:type",HTMLElement)],hi.prototype,"headerElement",void 0);_.f([_.BM("#container"),_.l("design:type",HTMLElement)],hi.prototype,"JSC$17866_containerElement",void 0);_.f([_.BM("#submenu"),_.l("design:type",HTMLElement)],hi.prototype,"submenuElement",void 0);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hi.prototype,"onPopupClosed",null);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],hi.prototype,"onPopupOpened",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],hi.prototype,"onYtNavigate",null);
_.f([_.I7("yt-service-request-completed"),_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],hi.prototype,"onServiceRequestSentOrCompleted",null);_.f([_.I7("yt-menu-back-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hi.prototype,"onMenuBackTap",null);
_.f([_.I7("yt-submenu-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hi.prototype,"onSubmenuClosed",null);_.f([_.I7("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],hi.prototype,"onRetrieveLocation",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hi.prototype,"refitAfterRender",null);
hi=_.f([_.U({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],hi);
_.X(hi,"ytd-multi-page-menu-renderer",function(){if(O7B!==void 0)return O7B;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return O7B=W},{mode:1});var z96;var HY=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return W};
_.A(HY,_.b);_.J=HY.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.computeAccessibility_=function(W){return this.get("accessibility.accessibilityData",W)||null};
_.J.onTap=function(){var W=_.P7(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(W&&W.length===1&&W[0])_.W7(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var P;if((P=this.data)==null?0:P.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var x;((x=this.data)==null?0:x.menuRequest)&&_.Iu(this.hostElement,[this.data.menuRequest])}}};
_.J.handleTopbarMenuClosedAction=function(W){var P,x;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(W)===((P=this.data)==null?void 0:(x=P.icon)==null?void 0:x.iconType)&&this.toggleIconState(!1)};
_.J.toggleIconState=function(W){_.p("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=W)};
_.J.handleUpdateTopbarAvatarAction=function(W){var P;W=(P=_.Q(W,Gb9))==null?void 0:P.avatarUrl;var x,I;P=(x=this.data)==null?void 0:(I=x.avatar)==null?void 0:I.thumbnails;W&&P&&(x={thumbnails:[Object.assign({},P[0],{url:W})]},this.set("data.avatar",x))};
_.N1.Object.defineProperties(HY.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.g(this.hostElement).querySelector("#button")}}});
HY.prototype.onTap=HY.prototype.onTap;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],HY.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],HY.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.Bab.YtButtonBehavior),_.l("design:type",Object)],HY.prototype,"ytButtonBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],HY.prototype,"data",void 0);
_.f([_.BM("yt-icon-button#button"),_.l("design:type",Object)],HY.prototype,"iconButton",void 0);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HY.prototype,"onTap",null);HY=_.f([_.U({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],HY);
_.X(HY,"ytd-topbar-menu-button-renderer",function(){if(z96!==void 0)return z96;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return z96=W},{mode:1});var GqQ;var e6=function(){return _.b.apply(this,arguments)||this};
_.A(e6,_.b);e6.prototype.getSelected=function(){return this.reasons.selected};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],e6.prototype,"data",void 0);_.f([_.BM("#reasons"),_.l("design:type",Object)],e6.prototype,"reasons",void 0);e6=_.f([_.U({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],e6);
_.X(e6,"ytd-ad-feedback-content",function(){if(GqQ!==void 0)return GqQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return GqQ=W},{mode:1});var Ewd;var cY=function(){return _.b.apply(this,arguments)||this};
_.A(cY,_.b);_.J=cY.prototype;_.J.onPopupOpened=function(){_.W7(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.J.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
_.J.computeCancelButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.cancelLabel}};
_.J.onConfirmTap=function(){var W=this.content.getSelected();W!==void 0&&(W=this.data.reasons[W].endpoint)&&(_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}}),_.W7(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.J.sendFeedbackSubmitToastAction=function(){var W;(W=this.data)!=null&&W.completionMessage&&_.W7(this.hostElement,"yt-open-popup-action",[_.NB(this.data.completionMessage),this])};
_.J.onCancelTap=function(){_.W7(this.hostElement,"yt-close-popup-action")};
cY.prototype.onPopupOpened=cY.prototype.onPopupOpened;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],cY.prototype,"data",void 0);_.f([_.BM("#content"),_.l("design:type",Object)],cY.prototype,"content",void 0);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],cY.prototype,"onPopupOpened",null);
cY=_.f([_.U({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],cY);
_.X(cY,"ytd-ad-feedback-renderer",function(){if(Ewd!==void 0)return Ewd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ewd=W},{mode:1});var gwm;var aa=function(){return _.b.apply(this,arguments)||this};
_.A(aa,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],aa.prototype,"data",void 0);aa=_.f([_.U({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],aa);
_.X(aa,"ytd-ad-info-dialog-content",function(){if(gwm!==void 0)return gwm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gwm=W},{mode:1});var DfO;var bQ=function(){return _.b.apply(this,arguments)||this};
_.A(bQ,_.b);bQ.prototype.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
bQ.prototype.onConfirmTap=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
bQ.prototype.computeShouldShowTitle=function(){var W;return!((W=this.data)==null||!W.title)};
bQ.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
bQ.prototype.onPopupClosed=bQ.prototype.onPopupClosed;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bQ.prototype,"data",void 0);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],bQ.prototype,"onPopupClosed",null);bQ=_.f([_.U({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],bQ);
_.X(bQ,"ytd-ad-info-dialog-renderer",function(){if(DfO!==void 0)return DfO;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return DfO=W},{mode:1});var MgQ;var k0=function(){var W=_.b.apply(this,arguments)||this;W.actionButtonClass="action-button";W.dismissButtonId="dismiss-button";W.dialogDismiss=!0;return W};
_.A(k0,_.b);_.J=k0.prototype;_.J.computeInPlayer=function(W){return(W==null?void 0:W.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.J.computedLogo=function(){var W,P;return this.isDarkTheme()?(W=this.data)==null?void 0:W.logoDark:(P=this.data)==null?void 0:P.logo};
_.J.computedHeaderImage=function(){var W,P;return this.isDarkTheme()?(W=this.data)==null?void 0:W.headerImageDark:(P=this.data)==null?void 0:P.headerImage};
_.J.computeLogoIconId=function(){var W,P,x,I=(W=this.computedLogo())==null?void 0:(P=W.sources)==null?void 0:(x=P[0])==null?void 0:x.height;return I&&I%31===0?"logo-icon-with-padding":"logo-icon"};
_.J.computeLogoIconHeight=function(){var W,P,x,I=(W=this.computedLogo())==null?void 0:(P=W.sources)==null?void 0:(x=P[0])==null?void 0:x.height;return I&&I%31===0?"31":"24"};
_.J.onPopupClosed=function(){_.FY().resolve(_.LZ).dispose()};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.J.onShow=function(){this.inPlayer&&_.nL(6)};
_.J.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++){var P=_.Q(this.data.impressionEndpoints[W],_.Ct);P&&this.ytComponentBehavior.resolveCommand(P)}};
_.J.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.W7(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.N1.Object.defineProperties(k0.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var W,P;return!((W=this.data)==null||!W.headerImageDark)&&!((P=this.data)==null||!P.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.secondaryButton)}}});
k0.prototype.onPopupClosed=k0.prototype.onPopupClosed;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],k0.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.$9.YtVisibilityBehavior),_.l("design:type",Object)],k0.prototype,"ytVisibilityBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],k0.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],k0.prototype,"actionButtonClass",void 0);_.f([_.c(),_.l("design:type",Object)],k0.prototype,"dismissButtonId",void 0);_.f([_.c(),_.l("design:type",Object)],k0.prototype,"dialogDismiss",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],k0.prototype,"hasHeaderImage",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],k0.prototype,"hasPremiumButton",null);
_.f([_.c({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.l("design:type",Boolean)],k0.prototype,"inPlayer",void 0);_.f([_.BM("#dismiss-button"),_.l("design:type",HTMLElement)],k0.prototype,"dismissButton",void 0);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],k0.prototype,"onPopupClosed",null);k0=_.f([_.U({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],k0);
_.X(k0,"ytd-enforcement-message-view-model",function(){if(MgQ!==void 0)return MgQ;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return MgQ=W},{mode:1});var $f9;var wwO;var UO=function(){var W=_.b.apply(this,arguments)||this;W.TEST_ONLY={immediateValidation:function(){W.immediateValidation()},
onValidationResponse:function(P){W.onValidationResponse(P)},
onGenerateHandleFromNameResponse:function(P){W.onGenerateHandleFromNameResponse(P)}};
return W};
_.A(UO,_.b);_.J=UO.prototype;_.J.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.J.validate=function(){this.immediateValidation()};
_.J.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.J.setHandleInputValue=function(W){this.handleDir=this.getHandleDir(W);this.handleInput.value=W;this.validationState={status:"PENDING"};this.immediateValidation()};
_.J.getHandleDir=function(W){var P=W===""&&!1;return(P=_.Szd.test.call(_.Szd,W))?"rtl":"ltr"};
_.J.onDataChanged=function(){var W,P;this.handleDir=this.getHandleDir((P=(W=this.data)==null?void 0:W.handle)!=null?P:"");var x;this.validationState=((x=this.data)==null?0:x.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var I;((I=this.data)==null?0:I.validateOnInit)&&this.immediateValidation()};
_.J.stopPropagation=function(W){W.stopPropagation()};
_.J.onInput=function(){var W;this.handleDir=this.getHandleDir((W=this.handleInput.value)!=null?W:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.J.onFocusout=function(W){this.handleInput.contains(W.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.J.delayedValidation=function(){var W,P;this.debouncedValidation((P=(W=this.data)==null?void 0:W.validationDelayMs)!=null?P:1E3)};
_.J.immediateValidation=function(){this.debouncedValidation(0)};
_.J.debouncedValidation=function(W){var P=this;_.De(this,"debouncedValidation",function(){var x,I=P.staticValidation((x=P.handleInput.value)!=null?x:"");if(I!==void 0)P.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:I};else{var O;if((O=P.data)!=null&&O.validateChannelHandleCommand){P.validationState={status:"LOADING"};var B;P.ytComponentBehavior.resolveCommand(P.data.validateChannelHandleCommand,{form:{handle:(B=P.handleInput.value)!=null?B:""},commandController:{onSuccess:function(Y,
K){P.onValidationResponse(K)},
onServerError:function(Y,K){P.onValidationServerError(K)}}})}else P.handleUnexpectedValidationError(new _.mW("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",P.data))}},W)};
_.J.staticValidation=function(W){var P;if(((P=this.data)==null?void 0:P.channelHandleStaticValidationParams)!==void 0){P=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(W)&&P.validValueRegexpErrorMessage!==void 0)return P.validValueRegexpErrorMessage;if(P.minLength!==void 0&&W.length<P.minLength&&P.minLengthErrorMessage!==void 0)return P.minLengthErrorMessage;if(P.maxLength!==void 0&&W.length>P.maxLength&&P.maxLengthErrorMessage!==void 0)return P.maxLengthErrorMessage}};
_.J.onValidationResponse=function(W){var P=_.Q(W.result,Eu2);P===void 0?this.handleUnexpectedValidationError(new _.mW("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",W)):this.handleValidationResultRenderer(P)};
_.J.onValidationServerError=function(W){this.handleUnexpectedValidationError(new _.mW("ValidateChannelHandle request failed.",W))};
_.J.handleValidationResultRenderer=function(W){if(W.handle===void 0)this.handleUnexpectedValidationError(new _.mW("ChannelHandleValidationResultRenderer does not contain handle.",W));else if(W.handle===this.handleInput.value)switch(W.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:W.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:W.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.mW("Unrecognized ChannelHandleValidationResult",W));break;default:_.n2(W.result)}};
_.J.handleUnexpectedValidationError=function(W){var P;this.validationState={status:"UNKNOWN",handle:(P=this.handleInput.value)!=null?P:""};_.ge(W)};
_.J.stopEventPropagation=function(W){W.stopPropagation()};
_.J.updateHandleOnChannelNameInputChange=function(W){if(!this.wasEdited){var P,x;this.debouncedGenerateHandleFromName(W,(x=(P=this.data)==null?void 0:P.validationDelayMs)!=null?x:1E3)}};
_.J.debouncedGenerateHandleFromName=function(W,P){var x=this;_.De(this,"debouncedGenerateHandleFromName",function(){var I;(I=x.data)!=null&&I.validateChannelHandleCommand?x.ytComponentBehavior.resolveCommand(x.data.validateChannelHandleCommand,{form:{name:W},commandController:{onSuccess:function(O,B){x.onGenerateHandleFromNameResponse(B)},
onServerError:function(O,B){_.ge(new _.mW("Error calling GenerateHandleFromName",B))}}}):_.ge(new _.mW("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",x.data))},P)};
_.J.onGenerateHandleFromNameResponse=function(W){this.wasEdited||((W=_.Q(W.result,guG))?this.setHandleInputValue(W.handle):_.ge(new _.mW("Invalid results when generate handle from name")))};
_.N1.Object.defineProperties(UO.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W;if(W=this.validationState)W=this.validationState,W=W.status==="OK"||W.status==="UNKNOWN";if(W)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.validationState)==null?void 0:W.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 W,P=(W=this.channelHandleEntity)==null?void 0:W.handleEdit;this.handleDir=this.getHandleDir(P!=null?P:"");return P}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var W,P;if(((W=this.data)==null?void 0:(P=W.channelHandleStaticValidationParams)==null?void 0:P.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
UO.prototype.stopEventPropagation=UO.prototype.stopEventPropagation;UO.prototype.onDataChanged=UO.prototype.onDataChanged;UO.prototype.applyHandleEdit=UO.prototype.applyHandleEdit;UO.prototype.onValueChanged=UO.prototype.onValueChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],UO.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],UO.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Boolean)],UO.prototype,"wasEdited",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],UO.prototype,"handleDir",void 0);_.f([_.BM("#handle-input"),_.l("design:type",Object)],UO.prototype,"handleInput",void 0);_.f([_.c(),_.H("validationState"),_.l("design:type",Object),_.l("design:paramtypes",[])],UO.prototype,"value",null);
_.f([_.OZ("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"onValueChanged",null);_.f([_.H("validationState"),_.l("design:type",Object),_.l("design:paramtypes",[])],UO.prototype,"errorIndicator",null);_.f([_.c({reflectToAttribute:!0}),_.H("errorIndicator"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UO.prototype,"borderErrorIndicator",null);
_.f([_.c({selectorArgs:["data.channelHandleEntityKey"],selector:function(W,P){return _.Jb(W.entities,"channelHandle",P)}}),
_.l("design:type",Object)],UO.prototype,"channelHandleEntity",void 0);_.f([_.H("channelHandleEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],UO.prototype,"handleEdit",null);_.f([_.OZ("handleEdit"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"applyHandleEdit",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"onDataChanged",null);
_.f([_.H("data.channelHandleStaticValidationParams.validValueRegexp"),_.l("design:type",Object),_.l("design:paramtypes",[])],UO.prototype,"validValueRegexp",null);_.f([_.I7("yt-service-request-sent"),_.I7("yt-service-request-completed"),_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],UO.prototype,"stopEventPropagation",null);UO=_.f([_.U({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],UO);
_.X(UO,"ytd-channel-handle-input-renderer",function(){if(wwO!==void 0)return wwO;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return wwO=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var Xn=function(){var W=_.b.apply(this,arguments)||this;W.data=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!1;W.enableNewChannelCreationOnIdForAll=_.p("enable_new_channel_creation_for_id4all");W.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"};W.testOnly={setErrorMessage:function(P){W.resetErrorState();
W.setErrorState(P)}};
return W};
_.A(Xn,_.b);_.J=Xn.prototype;_.J.created=function(){this.logScreenVe()};
_.J.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")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var W;((W=this.zeroStepErrorMessageEntity)==null?0:W.value)&&this.set("errorMessage",_.bx(this.zeroStepErrorMessageEntity.value))};
_.J.onCreateTap=function(){var W=this;if(this.data&&this.data.channelCreationEndpoint){var P,x;if(!((P=this.data.createChannelButton)==null?0:(x=P.buttonRenderer)==null?0:x.isDisabled)){var I;if((I=this.nameInput)!=null&&I.value){this.setLoadingState();var O,B;P=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(O=this.handleInput)==null?void 0:O.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((B=this.handleInput)==null?void 0:B.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:P,commandController:{onSuccess:function(Y,K){W.onChannelCreationEndpointSuccess(K);W.obakeImageSource&&_.Ay("channelCreatedWithObakeImage",{imageSourceType:W.obakeImageSource})},
onServerError:function(){W.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.J.endpointRequiresServiceRequestAction=function(W){return!!_.Q(W,_.wh)||!!_.Q(W,Gb9)};
_.J.isNavigateAction=function(W){var P;return!!_.Q(W,_.aZ)||!!_.Q((P=_.Q(W,$K4))==null?void 0:P.command,_.aZ)};
_.J.isPlaylistAction=function(W){return!!_.Q(W,_.Dy)||!!_.Q(W,_.eO)};
_.J.onChannelCreationEndpointSuccess=function(W){if(W.createChannelError){var P;this.setErrorState((P=W.createChannelError)==null?void 0:P.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.p("enable_secondary_channel_creation_form")&&W.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(W.navigationEndpoint);if(W.actions){P=_.n(W.actions);for(var x=P.next();!x.done;x=P.next())if(x=x.value,this.endpointRequiresServiceRequestAction(x)&&this.ytComponentBehavior.resolveCommand(x),
this.isNavigateAction(x)){var I=void 0;x=_.Q((I=_.Q(x,$K4))==null?void 0:I.command,_.aZ);I=void 0;this.isPlaylistAction((I=x)==null?void 0:I.endpoint)&&(_.W7(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),I=void 0,this.ytComponentBehavior.resolveCommand((I=x)==null?void 0:I.endpoint))}}W.actions&&W.actions.some(function(O){var B;return _.Q(O,_.aZ)||_.Q((B=_.Q(O,$K4))==null?void 0:B.command,_.aZ)})||_.W7(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.J.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.J.onCancelTap=function(){var W,P,x;if(!((W=this.data)==null?0:(P=W.cancelButton)==null?0:(x=P.buttonRenderer)==null?0:x.isDisabled)){var I,O,B;W=(I=this.data)==null?void 0:(O=I.cancelButton)==null?void 0:(B=O.buttonRenderer)==null?void 0:B.command;if(!W||!_.Q(W,_.QJU)){var Y;this.nameInput&&((Y=this.data)==null?0:Y.name)&&(this.nameInput.value=this.data.name);var K;this.handleInput&&((K=this.data)==null?0:K.channelHandleInput)&&(this.handleInput.data=_.Q(this.data.channelHandleInput,DKf));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.J.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.J.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.J.onClearProfilePhotoTap=function(){var W,P,x;((W=this.data)==null?0:(P=W.clearProfilePhotoButton)==null?0:(x=P.buttonRenderer)==null?0:x.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.J.onEditAvatarTap=function(){var W,P,x;((W=this.data)==null?0:(P=W.editAvatarButton)==null?0:(x=P.buttonRenderer)==null?0:x.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.J.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)};
_.J.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var W;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((W=this.data)==null?0:W.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.J.setErrorState=function(W){this.resetErrorState();if(W)this.set("errorMessage",W);else{var P;if((P=this.zeroStepErrorMessageEntity)==null?0:P.value)this.set("errorMessage",_.bx(this.zeroStepErrorMessageEntity.value));else{var x;((x=this.data)==null?0:x.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.J.fetchImageBlobWithAlr=function(W,P){P=P===void 0?5:P;var x=this,I,O,B,Y,K;return _.y(function(Z){switch(Z.nextAddress){case 1:return _.S(Z,fetch(W,{method:"GET",mode:"cors"}),2);case 2:I=Z.yieldResult;if(I.ok){Z.jumpTo(3);break}if(P===0)throw Error();O=x.addJitter(Math.pow(2,5-P));return _.S(Z,new Promise(function(d){setTimeout(d,O*1E3)}),4);
case 4:return Z.return(x.fetchImageBlobWithAlr(W,P-1));case 3:if(!I.headers.get("content-type").split(";").some(function(d){return d.trim()==="text/plain"})){Z.jumpTo(5);
break}B=x;Y=B.fetchImageBlobWithAlr;return _.S(Z,I.text(),6);case 6:return Z.return(Y.call(B,Z.yieldResult,P-1));case 5:return _.S(Z,I.blob(),7);case 7:return K=Z.yieldResult,Z.return(K)}})};
_.J.addJitter=function(W){var P=W*.3*Math.random();Math.random()>.5&&(P*=-1);return W+P};
_.J.openProfilePicturePicker=function(){var W=this,P,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1){P=W.data.scottyUploadUrl;if(!P)return Y.return();x=document.documentElement.hasAttribute("dark");I=document.body.style.colorScheme;x&&(document.body.style.colorScheme="dark");O=hwv(HW2(wIB(zwQ(x?"dark":"light")),function(K){var Z,d,v,m,t;return _.y(function(C){if(C.nextAddress==1)return Z=_.UF(UC2(new C8(K.photoUrl,!1)).build(),"alr","yes"),W.obakeImageSource=W.pictureChangeSourceToObakeImageSourceType(K.photoSource),
_.OT(C,2),W.setLoadingState(),_.S(C,W.fetchImageBlobWithAlr(Z),4);if(C.nextAddress!=2)return d=C.yieldResult,v=new FileReader,v.addEventListener("load",function(){var z,D,w,a,k,T;return _.y(function(N){if(N.nextAddress==1){if(d.size>15728640)return W.setErrorState((z=W.data)==null?void 0:z.imageSizeErrorMessage),_.ge(Error("il")),N.return();if(!v.result)return W.setErrorState((D=W.data)==null?void 0:D.genericImageLoadErrorMessage),_.ge(Error("jl")),N.return();w=v.result;_.OT(N,2);return _.S(N,tlB(d,
P),4)}if(N.nextAddress!=2)return a=N.yieldResult,W.handleImageUpdatedAction(w,a),W.resetErrorState(),_.ci(N,0);k=_.yn(N);W.setErrorState((T=W.data)==null?void 0:T.uploadErrorMessage);if(k instanceof Error)_.G$(k);else{var Io=new _.mW(JSON.stringify(k));_.G$(Io)}_.Kl(N)})}),v.readAsDataURL(d),_.ci(C,0);
m=_.yn(C);W.setErrorState((t=W.data)==null?void 0:t.genericImageLoadErrorMessage);m instanceof Error?_.G$(m):_.EA(new _.mW(JSON.stringify(m)));_.Kl(C)})}),function(){W.hideContainer=!1;
document.body.style.colorScheme=I});
_.OT(Y,2);return _.S(Y,O.openPicker(),4)}if(Y.nextAddress!=2)return _.ci(Y,0);_.yn(Y);W.setErrorState((B=W.data)==null?void 0:B.selectImageErrorMessage);_.Kl(Y)})};
_.J.pictureChangeSourceToObakeImageSourceType=function(W){switch(W){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.J.logScreenVe=function(){_.JN(_.YY(),124448)};
_.J.graftServerVe=function(){var W=_.G7(),P,x,I=(P=this.data)==null?void 0:(x=P.loggingDirectives)==null?void 0:x.trackingParams;I&&W&&(this.channelCreationFormVe=_.YY().graftServerVe(I,W),W={visualElement:this.channelCreationFormVe},_.BW().reportShown(W))};
_.J.isNameChanged=function(W){var P;return((P=this.data)==null?void 0:P.name)!==W};
_.J.isHandleChanged=function(W){var P,x=_.Q((P=this.data)==null?void 0:P.channelHandleInput,DKf);return x&&W?x.handle!==W:!1};
_.J.handleImageUpdatedAction=function(W,P){this.hideContainer=!1;this.previewDataUrl=W;this.encryptedBlobId=P};
_.J.handleImageSelectionErrorAction=function(W){this.hideContainer=!1;this.setErrorState(W)};
_.J.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.J.showContainer=function(){this.hideContainer=!1};
_.J.maybeWipeZeroStepErrorMessage=function(){var W,P=(W=this.data)==null?void 0:W.zeroStepErrorMessageEntityKey,x;P&&((x=this.zeroStepErrorMessageEntity)==null?0:x.value)&&this.ytdReduxBehavior.dispatch(_.mG("stringEntity",P,{key:P,value:""}))};
_.N1.Object.defineProperties(Xn.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 W;return((W=this.photoThumbnail)==null?0:W.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 W;return!((W=this.data)==null||!W.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.descriptionInfo}}});
Xn.prototype.dataChanged=Xn.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Xn.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Xn.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Xn.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Xn.prototype,"errorMessage",void 0);
_.f([_.c(),_.l("design:type",Object)],Xn.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",String)],Xn.prototype,"previewDataUrl",void 0);_.f([_.c(),_.l("design:type",Number)],Xn.prototype,"obakeImageSource",void 0);_.f([_.c(),_.l("design:type",Object)],Xn.prototype,"hideContainer",void 0);_.f([_.BM("#title-input"),_.l("design:type",Object)],Xn.prototype,"nameInput",void 0);_.f([_.BM("#handle-input"),_.l("design:type",Object)],Xn.prototype,"handleInput",void 0);
_.f([_.c(),_.l("design:type",Boolean)],Xn.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.f([_.c({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.nI8}),_.l("design:type",Object)],Xn.prototype,"zeroStepErrorMessageEntity",void 0);_.f([_.H("data","data.isDefaultProfilePhoto","previewDataUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xn.prototype,"photoThumbnail",null);
_.f([_.H("data","data.isDefaultProfilePhoto","photoThumbnail"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xn.prototype,"userSetPhotoThumbnailUrl",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xn.prototype,"hideProfilePhotoButtonLayer",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xn.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.f([_.K_("data","zeroStepErrorMessageEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xn.prototype,"dataChanged",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.descriptionInfo","zeroStepErrorMessageEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xn.prototype,"description",null);Xn=_.f([_.U({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Xn);
_.X(Xn,"ytd-channel-creation-dialog-renderer",function(){if($f9!==void 0)return $f9;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return $f9=W},{mode:1});var h94;var f9=function(){var W=_.b.apply(this,arguments)||this;W.isLoading=!1;W.isDisabled=!1;return W};
_.A(f9,_.b);f9.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
f9.prototype.updateDisabled=function(){var W;this.isDisabled=this.isLoading||((W=this.handleInput)==null?void 0:W.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
f9.prototype.onSaveClick=function(){var W=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var P;((P=this.data)==null?void 0:P.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var x;if((x=W.data)==null?0:x.nextEndpoint){var I;W.ytComponentBehavior.resolveCommand((I=W.data)==null?void 0:I.nextEndpoint)}else W.isLoading=
!1,W.closeDialog()},
onServerError:function(){W.isLoading=!1;W.handleInput.validate();var x;W.errorMessage=(x=W.data)==null?void 0:x.errorMessage}}}))}};
f9.prototype.closeDialog=function(){_.W7(this.hostElement,"yt-close-popup-action",[this.is])};
f9.prototype.updateDisabled=f9.prototype.updateDisabled;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],f9.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],f9.prototype,"data",void 0);_.f([_.BM("#handle-input"),_.l("design:type",Object)],f9.prototype,"handleInput",void 0);_.f([_.OZ("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],f9.prototype,"updateDisabled",null);
f9=_.f([_.U({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],f9);
_.X(f9,"ytd-channel-handle-edit-dialog-renderer",function(){if(h94!==void 0)return h94;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return h94=W},{mode:1});var H7f;var Ny=function(){return _.b.apply(this,arguments)||this};
_.A(Ny,_.b);Ny.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ny.prototype,"data",void 0);Ny=_.f([_.U({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Ny);
_.X(Ny,"ytd-channel-switcher-footer-renderer",function(){if(H7f!==void 0)return H7f;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return H7f=W},{mode:1});var e92;var cfG;var lQ=function(){return _.b.apply(this,arguments)||this};
_.A(lQ,_.b);lQ.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
lQ.prototype.onIronChange=lQ.prototype.onIronChange;_.f([_.c(),_.l("design:type",Object)],lQ.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!1}),_.l("design:type",Function)],lQ.prototype,"onDontAskAgainChanged",void 0);_.f([_.BM("#checkbox"),_.l("design:type",Object)],lQ.prototype,"checkbox",void 0);_.f([_.I7("iron-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lQ.prototype,"onIronChange",null);
lQ=_.f([_.U({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],lQ);
_.X(lQ,"ytd-identity-prompt-footer-renderer",function(){if(cfG!==void 0)return cfG;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return cfG=W},{mode:1});var To=function(){var W=_.b.apply(this,arguments)||this;W.dontAskAgain=!1;W.showPopup=!1;W.boundDontAskAgainChanged=function(P){W.dontAskAgainChanged(P)};
W.boundOnAccountItemTap=function(P){W.onAccountItemTap(P)};
return W};
_.A(To,_.b);_.J=To.prototype;
_.J.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]]"}}}}}};
_.J.ready=function(){var W=this;_.g(this.hostElement).querySelector("#container").addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.J.dontAskAgainChanged=function(W){this.dontAskAgain=W};
_.J.onAccountItemTap=function(W){if(W){var P={};this.dontAskAgain&&(P={dont_ask_again:this.dontAskAgain});_.G1(W,P)}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.J.redirectOnlyAccount=function(W){W.sections&&W.sections.length>0&&(W=_.Q(W.sections[0],_.J8Z),(W==null?0:W.contents)&&(W==null?void 0:W.contents.length)<=1?(W=_.UV(window.location.href),(W==null?0:W.next)&&_.zyA(W.next)?_.G1(W.next):_.G1("/")):this.showPopup=!0)};
To.prototype.dataChanged=To.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],To.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!1}),_.l("design:type",Object)],To.prototype,"dontAskAgain",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],To.prototype,"showPopup",void 0);_.f([_.c({reflectToAttribute:!1}),_.l("design:type",Object)],To.prototype,"boundDontAskAgainChanged",void 0);_.f([_.c({reflectToAttribute:!1}),_.l("design:type",Object)],To.prototype,"boundOnAccountItemTap",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],To.prototype,"dataChanged",null);
To=_.f([_.U({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],To);
_.X(To,"ytd-channel-switcher-renderer",function(){if(e92!==void 0)return e92;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return e92=W},{mode:1});var adB;var rz=function(){return _.b.apply(this,arguments)||this};
_.A(rz,_.b);_.N1.Object.defineProperties(rz.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.f([_.c(),_.l("design:type",Object)],rz.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],rz.prototype,"steps",null);rz=_.f([_.U({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],rz);
_.X(rz,"ytd-channel-transfer-stepper-renderer",function(){if(adB!==void 0)return adB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return adB=W},{mode:1});var b7L;var iQ=function(){var W=_.b.apply(this,arguments)||this;W.data=null;W.isError=!1;W.isLoading=!1;return W};
_.A(iQ,_.b);_.J=iQ.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.J.computeProfileName=function(W){return W?W.givenNameValue+" "+W.familyNameValue:""};
_.J.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)};
_.J.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)};
iQ.prototype.onYtServiceRequestError=iQ.prototype.onYtServiceRequestError;iQ.prototype.onYtServiceRequestSent=iQ.prototype.onYtServiceRequestSent;iQ.prototype.dataChanged=iQ.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],iQ.prototype,"data",void 0);
_.f([_.c({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.l("design:type",String)],iQ.prototype,"profileName",void 0);_.f([_.c(),_.l("design:type",Object)],iQ.prototype,"isError",void 0);_.f([_.c(),_.l("design:type",Object)],iQ.prototype,"isLoading",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iQ.prototype,"dataChanged",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],iQ.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],iQ.prototype,"onYtServiceRequestError",null);iQ=_.f([_.U({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],iQ);
_.X(iQ,"ytd-channel-warm-welcome-cont-renderer",function(){if(b7L!==void 0)return b7L;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return b7L=W},{mode:1});var kqQ;var Ra=function(){var W=_.b.apply(this,arguments)||this;W.data=null;return W};
_.A(Ra,_.b);Ra.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ra.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ra.prototype,"data",void 0);Ra=_.f([_.U({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Ra);
_.X(Ra,"ytd-channel-warm-welcome-renderer",function(){if(kqQ!==void 0)return kqQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return kqQ=W},{mode:1});var Ufy;var Fn=function(){return _.b.apply(this,arguments)||this};
_.A(Fn,_.b);_.N1.Object.defineProperties(Fn.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.authorThumbnail)||{}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Fn.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Fn.prototype,"thumbnailDetails",null);Fn=_.f([_.U({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Fn);
_.X(Fn,"ytd-comment-preview-renderer",function(){if(Ufy!==void 0)return Ufy;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ufy=W},{mode:1});var Xwm;var qy=function(){return _.b.apply(this,arguments)||this};
_.A(qy,_.b);qy.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N1.Object.defineProperties(qy.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.submitButton}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qy.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],qy.prototype,"submitButton",null);qy=_.f([_.U({is:"ytd-notice-renderer",disableElementRegistration:!0})],qy);
_.X(qy,"ytd-notice-renderer",function(){if(Xwm!==void 0)return Xwm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Xwm=W},{mode:1});var fdd;var L9=function(){return _.b.apply(this,arguments)||this};
_.A(L9,_.b);L9.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],L9.prototype,"data",void 0);L9=_.f([_.U({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],L9);
_.X(L9,"ytd-preview-comment-dialog-content",function(){if(fdd!==void 0)return fdd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return fdd=W},{mode:1});var NqG;var W0=function(){return _.b.apply(this,arguments)||this};
_.A(W0,_.b);W0.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
W0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],W0.prototype,"data",void 0);W0=_.f([_.U({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],W0);
_.X(W0,"ytd-preview-comment-dialog-renderer",function(){if(NqG!==void 0)return NqG;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return NqG=W},{mode:1});var ldd;var Tqy=_.p("web_button_rework")&&_.wo("BUTTON_REWORK")||_.p("web_button_rework_with_live"),P0=function(){var W=_.b.apply(this,arguments)||this;W.selectedAmountIndex=1;W.privacyCheckboxValue=!1;W.useAmsterdamStyle=Tqy;W.amountPlaceholderIndex=-1;return W};
_.A(P0,_.b);_.J=P0.prototype;_.J.onAmountClick=function(W){this.selectedAmountIndex=_.g(this.hostElement).querySelector("#amounts").indexForElement(W.currentTarget)};
_.J.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.W7(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.J.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.W7(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.W7(this.hostElement,"yt-close-popup-action",[this.is]);var W;(W=_.RP())==null||W.getPlayerPromise().then(function(P){P.pauseVideo()})}};
_.J.donationCallback=function(W){W.success?(this.hostElement.hasAttribute("live-chat")&&W.response&&W.response.data&&W.response.data.actions&&_.W7(this.hostElement,"yt-live-chat-open-popup",[W.response.data.actions[0]]),_.W7(this.hostElement,"yt-close-popup-action",[this.is]),_.W7(this.hostElement,"yt-live-chat-close-buy-flow")):W.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(W.errorMessageRenderer)};
_.J.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.g(this.hostElement).querySelector("#custom-amount-input").focus()};
_.J.updateConfirmationDialogTextWithAmount=function(W){var P=this.getConfirmDialogRuns();P&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(P),"text"],this.getFormattedAmount(W))};
_.J.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.J.getAmountPlaceholderIndex=function(W){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=W.findIndex(function(P){return P.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.J.getFormattedAmount=function(W){var P;return(new _.$z(4,((P=this.data)==null?void 0:P.currencyCode)||"")).format(W)};
_.J.isAmountValid=function(W){if(W==="")return!1;W=Number(W)*1E6;var P=this.get("minAmountMicros",this.data),x=this.get("maxAmountMicros",this.data);return P&&W<P||x&&W>x?!1:!0};
_.J.setInputError=function(){this.shouldShowValidationError?_.g(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.g(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.J.setInitialCheckboxValue=function(){var W;this.privacyCheckboxValue=!((W=this.data)==null||!W.privacyCheckboxInitialState)};
_.J.updateCustomAmountInputFromBinding=function(W){this.customAmountInput=W.detail.value};
_.J.updatePrivacyCheckboxValueFromBinding=function(W){this.privacyCheckboxValue=W.detail.value};
_.N1.Object.defineProperties(P0.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var W=this,P,x;return((P=this.data)==null?void 0:(x=P.suggestedAmounts)==null?void 0:x.map(function(I,O){return{buttonRenderer:{style:W.selectedAmountIndex===O?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:I.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 W;return!((W=this.data)==null||!W.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 W=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(W&&this.amountMicros!==null)return Object.assign({},W,{ypcGetCartEndpoint:Object.assign({},W.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 W=this.get("confirmLargeAmount",this.data);if(W&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),W}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.get("donateButton.buttonRenderer",this.data);if(W)return Object.assign({},W,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
P0.prototype.setInitialCheckboxValue=P0.prototype.setInitialCheckboxValue;P0.prototype.setInputError=P0.prototype.setInputError;P0.prototype.setFocusOnCustomAmountInput=P0.prototype.setFocusOnCustomAmountInput;_.f([_.h(WAd),_.l("design:type",Object)],P0.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],P0.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],P0.prototype,"selectedAmountIndex",void 0);_.f([_.c(),_.l("design:type",String)],P0.prototype,"customAmountInput",void 0);_.f([_.c(),_.l("design:type",Object)],P0.prototype,"privacyCheckboxValue",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],P0.prototype,"useAmsterdamStyle",void 0);_.f([_.OZ("customAmount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P0.prototype,"setFocusOnCustomAmountInput",null);_.f([_.H("data","selectedAmountIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],P0.prototype,"suggestedAmountButtons",null);
_.f([_.H("data","selectedAmountIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],P0.prototype,"isCustomAmountSelected",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],P0.prototype,"showPrivacyCheckbox",null);_.f([_.H("data","selectedAmountIndex","customAmount"),_.l("design:type",Object),_.l("design:paramtypes",[])],P0.prototype,"amountMicros",null);
_.f([_.H("isCustomAmountSelected","customAmountInput"),_.l("design:type",Object),_.l("design:paramtypes",[])],P0.prototype,"customAmount",null);_.f([_.H("customAmount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],P0.prototype,"shouldShowValidationError",null);_.f([_.H("customAmount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],P0.prototype,"isDonateButtonEnabled",null);
_.f([_.H("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.l("design:type",Object),_.l("design:paramtypes",[])],P0.prototype,"donateCommand",null);_.f([_.H("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.l("design:type",Object),_.l("design:paramtypes",[])],P0.prototype,"donateCommandWithConfirmation",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],P0.prototype,"largeDonationThreshold",null);
_.f([_.H("customAmount","donateCommand","amountMicros"),_.l("design:type",Object),_.l("design:paramtypes",[])],P0.prototype,"confirmLargeAmountCommand",null);_.f([_.H("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.l("design:type",Object),_.l("design:paramtypes",[])],P0.prototype,"donateButtonRenderer",null);_.f([_.OZ("shouldShowValidationError"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P0.prototype,"setInputError",null);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P0.prototype,"setInitialCheckboxValue",null);P0=_.f([_.U({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],P0);
_.X(P0,"ytd-donation-amount-picker-renderer",function(){if(ldd!==void 0)return ldd;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[msg(\'CLOSE\')]]" 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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ldd=W},{mode:1});var rf3;var xo=function(){return _.b.apply(this,arguments)||this};
_.A(xo,_.b);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],xo.prototype,"ytComponentBehavior",void 0);_.f([_.c({}),_.l("design:type",Object)],xo.prototype,"data",void 0);xo=_.f([_.U({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],xo);
_.X(xo,"ytd-donation-post-transaction-content",function(){if(rf3!==void 0)return rf3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return rf3=W},{mode:1});var i7G;var IN=function(){return _.b.apply(this,arguments)||this};
_.A(IN,_.b);IN.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.f([_.c({}),_.l("design:type",Object)],IN.prototype,"data",void 0);IN=_.f([_.U({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],IN);
_.X(IN,"ytd-donation-post-transaction-renderer",function(){if(i7G!==void 0)return i7G;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return i7G=W},{mode:1});var R92;var F3d;var O9=function(){return _.b.apply(this,arguments)||this};
_.A(O9,_.b);O9.prototype.computeIsStreamingProvider=function(W){return!!W.isStreamingShelf};
O9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],O9.prototype,"data",void 0);_.f([_.c({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],O9.prototype,"isStreamingProvider",void 0);
O9=_.f([_.U({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],O9);
_.X(O9,"ytd-media-provider-renderer",function(){if(F3d!==void 0)return F3d;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return F3d=W},{mode:1});var qfO;var J$=function(){return _.b.apply(this,arguments)||this};
_.A(J$,_.b);J$.prototype.observeLightsourcePalette=function(){var W,P=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;P&&_.QB(this.hostElement,P)};
J$.prototype.observeLightsourcePalette=J$.prototype.observeLightsourcePalette;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],J$.prototype,"data",void 0);
_.f([_.OZ("data.vibrantsourceColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J$.prototype,"observeLightsourcePalette",null);J$=_.f([_.U({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],J$);
_.X(J$,"ytd-streaming-pop-up-dialog",function(){if(qfO!==void 0)return qfO;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return qfO=W},{mode:1});var B0=function(){return _.b.apply(this,arguments)||this};
_.A(B0,_.b);B0.prototype.onPopupOpened_=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.FY().resolve(_.qR).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
B0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
B0.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"}}}}};
B0.prototype.onPopupOpened_=B0.prototype.onPopupOpened_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.Dv),_.l("design:type",Object)],B0.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],B0.prototype,"data",void 0);
_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B0.prototype,"onPopupOpened_",null);B0=_.f([_.U({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],B0);
_.X(B0,"ytd-brandconnect-popup-renderer",function(){if(R92!==void 0)return R92;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return R92=W},{mode:1});var L33;var nS=function(){return _.b.apply(this,arguments)||this};
_.A(nS,_.b);_.J=nS.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){for(var W=0;W<this.getOptionRenderers().length;W++)this.notifyPath("data.options."+W+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+W+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.J.updateSubmitButton=function(W){this.set("data.submitButton.buttonRenderer.isDisabled",!W)};
_.J.computeAlt=function(W){return _.kz(W)};
_.J.onDismissTap=function(){_.W7(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.getOptionRenderers=function(W){return(W=W||this.data)&&W.options?W.options.reduce(function(P,x){x.checkboxSurveyOptionRenderer&&P.push(x.checkboxSurveyOptionRenderer);return P},[]):[]};
_.J.onOptionChange=function(W){var P=this,x=!1;if(W.detail.checked)for(var I=this.getOptionRenderers().find(function(K){return K.value===W.detail.value}),O=this.getOptionRenderers(),B=0;B<O.length;B++){var Y=O[B];
this.notifyPath("data.options."+B+".checkboxSurveyOptionRenderer.checked");Y.checked&&((I==null?0:I.isExclusiveOption)?!Y.isExclusiveOption:Y.isExclusiveOption)?this.set("data.options."+B+".checkboxSurveyOptionRenderer.checked",!1):Y.checked&&(x=!0)}else x=this.getOptionRenderers().some(function(K,Z){P.notifyPath("data.options."+Z+".checkboxSurveyOptionRenderer.checked");return K.checked});
this.updateSubmitButton(x)};
_.J.onSubmitTap=function(){var W=this.getOptionRenderers().filter(function(B){return B.checked});
if(W.length!==0){var P=W.map(function(B){return B.responseEndpoint});
W=[];for(var x=1;x<P.length;x++){var I=void 0,O=(I=_.Q(P[x],_.hM))==null?void 0:I.feedbackToken;O&&W.push(O)}P=[P[0]];W.length&&P.push({extra_feedback_tokens:W});_.Iu(this.hostElement,P);_.W7(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);W=this.data&&this.data.submitActions||[];if(_.p("kevlar_command_handler_migration_killswitch"))_.OL(this.hostElement,W,this.hostElement);else for(W=_.n(W),P=W.next();!P.done;P=W.next())this.ytComponentBehavior.resolveCommand(P.value)}};
nS.prototype.onOptionChange=nS.prototype.onOptionChange;nS.prototype.dataChanged=nS.prototype.dataChanged;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],nS.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],nS.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.f([_.h(Vf9),_.l("design:type",Object)],nS.prototype,"ytdHatsSurveyBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],nS.prototype,"data",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nS.prototype,"dataChanged",null);
_.f([_.I7("ytd-checkbox-survey-option-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],nS.prototype,"onOptionChange",null);nS=_.f([_.U({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],nS);
_.X(nS,"ytd-checkbox-survey-renderer",function(){if(L33!==void 0)return L33;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return L33=W},{mode:1});var Wl2;var PWB;var Yo=function(){return _.b.apply(this,arguments)||this};
_.A(Yo,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.f([_.h(moG),_.l("design:type",Object)],Yo.prototype,"ytdDismissalReasonBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Yo.prototype,"data",void 0);Yo=_.f([_.U({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Yo);
_.X(Yo,"ytd-dismissal-reason-text-renderer",function(){if(PWB!==void 0)return PWB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return PWB=W},{mode:1});var x0G;var yv=function(){return _.b.apply(this,arguments)||this};
_.A(yv,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.f([_.h(moG),_.l("design:type",Object)],yv.prototype,"ytdDismissalReasonBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yv.prototype,"data",void 0);yv=_.f([_.U({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],yv);
_.X(yv,"ytd-dismissal-reason-video-renderer",function(){if(x0G!==void 0)return x0G;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return x0G=W},{mode:1});var KS=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(KS,_.b);_.J=KS.prototype;_.J.created=function(){this.selectedFeedbackTokens=new fH};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.J.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.J.onDismissalReasonSelected=function(W,P){_.Lf(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(P);this.hasReasonsSelected=!0};
_.J.onDismissalReasonDeselected=function(W,P){_.Lf(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(P);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.J.onCancelTap=function(){_.W7(this.hostElement,"yt-close-popup-action")};
_.J.onSubmitTap=function(){var W=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(W={feedback_tokens:W},_.FY().resolve(_.qR).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}));_.W7(this.hostElement,"yt-close-popup-action")};
KS.prototype.onDismissalReasonDeselected=KS.prototype.onDismissalReasonDeselected;KS.prototype.onDismissalReasonSelected=KS.prototype.onDismissalReasonSelected;KS.prototype.dataChanged=KS.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],KS.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Boolean)],KS.prototype,"hasReasonsSelected",void 0);_.f([_.c(),_.l("design:type",fH)],KS.prototype,"selectedFeedbackTokens",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],KS.prototype,"darkerDarkTheme",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KS.prototype,"dataChanged",null);
_.f([_.I7("yt-dismissal-reason-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],KS.prototype,"onDismissalReasonSelected",null);_.f([_.I7("yt-dismissal-reason-deselected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],KS.prototype,"onDismissalReasonDeselected",null);KS=_.f([_.U({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],KS);
_.X(KS,"ytd-dismissal-follow-up-renderer",function(){if(Wl2!==void 0)return Wl2;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Wl2=W},{mode:1});var IWB;var Z4=function(){return _.b.apply(this,arguments)||this};
_.A(Z4,_.b);_.J=Z4.prototype;_.J.onCheckedChange=function(){this.multiselect||_.Lf(this.hostElement,"yt-feedback-single-select-changed");_.g(this.hostElement).querySelector("#freeform").focus();_.Lf(this.hostElement,"yt-refit")};
_.J.showTextBox=function(W,P){return W&&P};
_.J.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))};
_.J.updateDataCheckedFromBinding=function(W){this.set("data.checked",W.detail.value)};
_.J.updateDataResultTextFromBinding=function(W){this.set("data.resultText",W.detail.value)};
Z4.prototype.dataChanged=Z4.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Z4.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Z4.prototype,"multiselect",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Z4.prototype,"dataChanged",null);
Z4=_.f([_.U({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Z4);
_.X(Z4,"ytd-feedback-option-renderer",function(){if(IWB!==void 0)return IWB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return IWB=W},{mode:1});var Or3;var oN=function(){return _.b.apply(this,arguments)||this};
_.A(oN,_.b);oN.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
oN.prototype.onSingleSelectCheckedChanged=function(W){W=_.af(W);for(var P=0;P<this.data.options.length;P++)if(W.data!==_.Q(this.data.options[P],s9G)){var x="data.options."+P+".feedbackOptionRenderer.checked";this.notifyPath(x);this.set(x,!1)}};
oN.prototype.onSingleSelectCheckedChanged=oN.prototype.onSingleSelectCheckedChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],oN.prototype,"data",void 0);
_.f([_.I7("yt-feedback-single-select-changed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],oN.prototype,"onSingleSelectCheckedChanged",null);oN=_.f([_.U({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],oN);
_.X(oN,"ytd-feedback-question-renderer",function(){if(Or3!==void 0)return Or3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Or3=W},{mode:1});var JT3;var SE=function(){return _.b.apply(this,arguments)||this};
_.A(SE,_.b);SE.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
SE.prototype.getSelectedFeedbackResults=function(){for(var W={},P=0;P<this.data.questions.length;P++)for(var x=_.Q(this.data.questions[P],d3f),I=0;I<x.options.length;I++){var O=_.Q(x.options[I],s9G);O&&O.checked&&(W[O.optionKey]=O.resultText)}return W};
SE.prototype.onKeyUp=function(){var W=this;_.Fo(_.Gr,function(){_.Lf(W.hostElement,"yt-refit")});
_.Gr.start()};
SE.prototype.submitSurvey=function(){var W=this.getSelectedFeedbackResults();Object.keys(W).length>0&&this.data.submitFeedbackEndpoint&&(W={survey_results:W,is_feedback_token_unencrypted:!0},_.FY().resolve(_.qR).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],SE.prototype,"data",void 0);SE=_.f([_.U({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],SE);
_.X(SE,"ytd-feedback-survey-renderer",function(){if(JT3!==void 0)return JT3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return JT3=W},{mode:1});var BZ6;var nt4;var ua=function(){return _.b.apply(this,arguments)||this};
_.A(ua,_.b);ua.prototype.computeAlt=function(W){return _.kz(W)};
ua.prototype.submitResponse=function(){var W,P;(W=this.data)!=null&&W.feedbackToken&&((P=this.data)==null?void 0:P.nextStageIndex)!==void 0&&(_.P7(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.P7(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
ua.prototype.onClick=function(){this.submitResponse()};
ua.prototype.onClick=ua.prototype.onClick;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ua.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],ua.prototype,"vertical",void 0);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ua.prototype,"onClick",null);
ua=_.f([_.U({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],ua);
_.X(ua,"ytd-single-select-answer-option-renderer",function(){if(nt4!==void 0)return nt4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return nt4=W},{mode:1});var Y$G;var d5=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return W};
_.A(d5,_.b);d5.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
d5.prototype.dataChanged=function(){var W,P;this.vertical=((P=(W=this.data)==null?void 0:W.answerOrientation)!=null?P:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
d5.prototype.submitFeedback=function(W){var P;((P=this.data)==null?0:P.responseEndpoint)&&W&&_.Iu(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[W]}])};
d5.prototype.dataChanged=d5.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],d5.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],d5.prototype,"eventForwardingBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],d5.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],d5.prototype,"vertical",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],d5.prototype,"darkerDarkTheme",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],d5.prototype,"dataChanged",null);d5=_.f([_.U({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],d5);
_.X(d5,"ytd-single-select-question-renderer",function(){if(Y$G!==void 0)return Y$G;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Y$G=W},{mode:1});var s9=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return W};
_.A(s9,_.b);_.J=s9.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.jumpToStage(0)};
_.J.jumpToStage=function(W){var P,x;if((P=this.data)==null?0:(x=P.stages)==null?0:x[W])this.currentStage=this.data.stages[W],this.refitAfterRender()};
_.J.computeAlt=function(W){return _.kz(W)};
_.J.computeSimpleMessage=function(W){var P;return(P=_.Q(W,VOM))==null?void 0:P.messageText};
_.J.computeHideDismiss=function(W){var P;return(P=_.Q(W,lbO))==null?void 0:P.hideParentDismissButton};
_.J.onDismissTap=function(){_.W7(this.hostElement,"yt-close-popup-action");_.Q(this.currentStage,VOM)||this.data.dismissalEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.refitAfterRender=function(){var W=this;_.Xm(this,function(){_.Lf(W.hostElement,"yt-refit")})};
s9.prototype.dataChanged=s9.prototype.dataChanged;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],s9.prototype,"eventForwardingBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],s9.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.h(Vf9),_.l("design:type",Object)],s9.prototype,"ytdHatsSurveyBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],s9.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],s9.prototype,"currentStage",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],s9.prototype,"dataChanged",null);s9=_.f([_.U({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],s9);
_.X(s9,"ytd-multi-stage-survey-renderer",function(){if(BZ6!==void 0)return BZ6;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return BZ6=W},{mode:1});var yT4;var v0=function(){return _.b.apply(this,arguments)||this};
_.A(v0,_.b);v0.prototype.computeAlt=function(W){return _.kz(W)};
v0.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.FY().resolve(_.qR).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.W7(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.BJ2(!1)))};
v0.prototype.onTap=function(){this.vertical&&this.submitResponse()};
v0.prototype.onTap=v0.prototype.onTap;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],v0.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],v0.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],v0.prototype,"vertical",void 0);
_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v0.prototype,"onTap",null);v0=_.f([_.U({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],v0);
_.X(v0,"ytd-single-option-survey-option-renderer",function(){if(yT4!==void 0)return yT4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return yT4=W},{mode:1});var Kl9;var m_=function(){return _.b.apply(this,arguments)||this};
_.A(m_,_.b);_.J=m_.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){var W,P;this.vertical=(((W=this.data)==null?void 0:(P=W.surveyOrientation)==null?void 0:P.type)||"HORIZONTAL")==="VERTICAL"};
_.J.computeAlt=function(W){return _.kz(W)};
_.J.onDismissTap=function(){_.W7(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.FY().resolve(_.qR).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.BJ2(!1))};
m_.prototype.dataChanged=m_.prototype.dataChanged;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],m_.prototype,"eventForwardingBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(Vf9),_.l("design:type",Object)],m_.prototype,"ytdHatsSurveyBehavior",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],m_.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],m_.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],m_.prototype,"vertical",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],m_.prototype,"dataChanged",null);m_=_.f([_.U({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],m_);
_.X(m_,"ytd-single-option-survey-renderer",function(){if(Kl9!==void 0)return Kl9;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Kl9=W},{mode:1});var ZrO;var Vv=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(Vv,_.b);Vv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Vv.prototype.onDismissTap=function(){_.W7(this.hostElement,"yt-close-popup-action")};
Vv.prototype.onNavigate=function(){_.W7(this.hostElement,"yt-close-popup-action")};
Vv.prototype.onNavigate=Vv.prototype.onNavigate;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],Vv.prototype,"ytEventForwardingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Vv.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Vv.prototype,"darkerDarkTheme",void 0);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Vv.prototype,"onNavigate",null);Vv=_.f([_.U({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Vv);
_.X(Vv,"ytd-survey-follow-up-renderer",function(){if(ZrO!==void 0)return ZrO;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ZrO=W},{mode:1});var ot2;var S$6;var u72;var t$=function(){var W=_.b.apply(this,arguments)||this;W.polymer2="Element"in Polymer;return W};
_.A(t$,_.b);_.J=t$.prototype;_.J.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.J.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.J.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.J.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("minutes-changed",this.minutes))};
_.J.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("seconds-changed",this.seconds))};
_.J.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.J.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
t$.prototype.secondsChangedForBinding=t$.prototype.secondsChangedForBinding;t$.prototype.minutesChangedForBinding=t$.prototype.minutesChangedForBinding;t$.prototype.secondsChanged=t$.prototype.secondsChanged;_.f([_.c(),_.l("design:type",String)],t$.prototype,"minutes",void 0);_.f([_.c(),_.l("design:type",String)],t$.prototype,"seconds",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],t$.prototype,"polymer2",void 0);
_.f([_.BM("#seconds"),_.l("design:type",Object)],t$.prototype,"secondsEl",void 0);_.f([_.OZ("seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t$.prototype,"secondsChanged",null);_.f([_.OZ("minutes"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t$.prototype,"minutesChangedForBinding",null);
_.f([_.OZ("seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t$.prototype,"secondsChangedForBinding",null);t$=_.f([_.jd({is:"yt-timestamp-input",disableElementRegistration:!0})],t$);
_.X(t$,"yt-timestamp-input",function(){if(u72===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;S$6===void 0&&(S$6=document.createElement("template"));var I=S$6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);u72=W}W=u72;return W},{mode:2});var pS=function(){return _.b.apply(this,arguments)||this};
_.A(pS,_.b);_.J=pS.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18038_scroller.dialogElement=this.hostElement.parentNode};
_.J.dataChanged=function(){var W=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.F_().getPlayerPromise().then(function(P){P=P.getCurrentTime();W.minutes=Math.floor(P/60).toString();W.seconds=(Math.floor(P)%60).toString()})};
_.J.onTapSubmit=function(W){W.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(W={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(W.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(W.minutes=this.minutes,W.seconds=this.seconds),_.FY().resolve(_.qR).resolveCommand(this.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.J.onYtServiceRequestCompleted=function(W,P){P=P.actions;if(Array.isArray(P))for(var x=0,I=P.length;x<I;x++)_.Q(P[x],_.Ac)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(P[x]))};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.J.toggleSubmitButton=function(W){this.set("submitButton.isDisabled",!W)};
_.J.handleInput=function(){var W=this.issueType,P=this.affiliation,x=this.minutes,I=this.seconds;x=!this.showTimestamp||!!x&&!!I;this.toggleSubmitButton(!!this.descriptionText&&!!W&&!!P&&x)};
_.J.computeServiceEndpoint=function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)};
_.J.computeSubmitButton=function(W){(W=this.get("submitButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.J.computeShowTimestamp=function(W){return!!W};
_.J.onValueChangedForIssueType=function(W){this.issueType=W.detail.value};
_.J.onValueChangedForAffiliation=function(W){this.affiliation=W.detail.value};
_.J.updateDescriptionTextFromBinding=function(W){this.descriptionText=W.detail.value};
_.J.updateFullNameTextFromBinding=function(W){this.fullNameText=W.detail.value};
_.J.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.J.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
pS.prototype.handleInput=pS.prototype.handleInput;pS.prototype.onYtServiceRequestError=pS.prototype.onYtServiceRequestError;pS.prototype.onYtServiceRequestCompleted=pS.prototype.onYtServiceRequestCompleted;pS.prototype.onYtServiceRequestSent=pS.prototype.onYtServiceRequestSent;pS.prototype.dataChanged=pS.prototype.dataChanged;_.f([_.h(_.xX.YtOpenPopupBehavior),_.l("design:type",Object)],pS.prototype,"ytOpenPopupBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.f([_.BM("#scroller"),_.l("design:type",Object)],pS.prototype,"JSC$18038_scroller",void 0);_.f([_.BM("#description"),_.l("design:type",HTMLInputElement)],pS.prototype,"description",void 0);_.f([_.BM("#full-name"),_.l("design:type",Object)],pS.prototype,"fullName",void 0);_.f([_.c(),_.l("design:type",Object)],pS.prototype,"data",void 0);
_.f([_.c({computed:"computeShowTimestamp(data.timestampLabel)"}),_.l("design:type",Boolean)],pS.prototype,"showTimestamp",void 0);_.f([_.c({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.l("design:type",Object)],pS.prototype,"serviceEndpoint",void 0);_.f([_.c({computed:"computeSubmitButton(data)"}),_.l("design:type",Object)],pS.prototype,"submitButton",void 0);_.f([_.c(),_.l("design:type",String)],pS.prototype,"descriptionText",void 0);
_.f([_.c(),_.l("design:type",Number)],pS.prototype,"issueType",void 0);_.f([_.c(),_.l("design:type",Number)],pS.prototype,"affiliation",void 0);_.f([_.c(),_.l("design:type",String)],pS.prototype,"fullNameText",void 0);_.f([_.c(),_.l("design:type",String)],pS.prototype,"minutes",void 0);_.f([_.c(),_.l("design:type",String)],pS.prototype,"seconds",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pS.prototype,"dataChanged",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],pS.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],pS.prototype,"onYtServiceRequestCompleted",null);
_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pS.prototype,"onYtServiceRequestError",null);_.f([_.OZ("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pS.prototype,"handleInput",null);pS=_.f([_.U({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],pS);
_.X(pS,"ytd-legal-report-details-form-renderer",function(){if(ot2!==void 0)return ot2;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return ot2=W},{mode:1});var d0d;var jE=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return W};
_.A(jE,_.b);jE.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
jE.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var W=this.formRenderer.getForm();W&&this.data.submitEndpoint&&(_.FY().resolve(_.qR).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},W,{element:this.hostElement})}),_.W7(this.hostElement,"yt-close-popup-action"))}};
jE.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.W7(this.hostElement,"yt-close-popup-action"))};
jE.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
jE.prototype.onPopupClosed=jE.prototype.onPopupClosed;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],jE.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],jE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],jE.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);
_.f([_.BM("yt-form-renderer"),_.l("design:type",Object)],jE.prototype,"formRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],jE.prototype,"data",void 0);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jE.prototype,"onPopupClosed",null);jE=_.f([_.U({is:"ytd-form-popup-content",disableElementRegistration:!0})],jE);
_.X(jE,"ytd-form-popup-content",function(){if(d0d!==void 0)return d0d;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return d0d=W},{mode:1});var s8M;var Qv=function(){return _.b.apply(this,arguments)||this};
_.A(Qv,_.b);Qv.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Qv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Qv.prototype.onPopupOpened=function(){_.Lf(this.hostElement,"yt-invalidate-popup-tabbables")};
Qv.prototype.onYtServiceRequestCompleted=function(W,P){P.data&&P.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Lf(this.hostElement,"yt-invalidate-popup-tabbables"))};
Qv.prototype.onYtServiceRequestCompleted=Qv.prototype.onYtServiceRequestCompleted;Qv.prototype.onPopupOpened=Qv.prototype.onPopupOpened;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],Qv.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Qv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Qv.prototype,"data",void 0);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qv.prototype,"onPopupOpened",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],Qv.prototype,"onYtServiceRequestCompleted",null);Qv=_.f([_.U({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Qv);
_.X(Qv,"ytd-form-popup-renderer",function(){if(s8M!==void 0)return s8M;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return s8M=W},{mode:1});var vtG;var CS=function(){var W=_.b.apply(this,arguments)||this;W.isLoading=!1;return W};
_.A(CS,_.b);_.J=CS.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");CEQ(this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.isLoading=!0};
_.J.onYtServiceRequestCompleted=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.J.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.OL(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.J.closePopupHandler=function(){this.fireOnCloseActions()};
_.J.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var W=this.get("data.headerImage.thumbnails");W&&(W=_.Tm(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")")}};
_.J.onYtNavigate=function(W){(W=_.af(W))&&W.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
CS.prototype.onYtNavigate=CS.prototype.onYtNavigate;CS.prototype.onHeaderImageChanged=CS.prototype.onHeaderImageChanged;CS.prototype.closePopupHandler=CS.prototype.closePopupHandler;CS.prototype.onYtServiceRequestCompleted=CS.prototype.onYtServiceRequestCompleted;CS.prototype.onYtServiceRequestSent=CS.prototype.onYtServiceRequestSent;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],CS.prototype,"ytEventForwardingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],CS.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],CS.prototype,"isLoading",void 0);_.f([_.BM("#header"),_.l("design:type",HTMLDivElement)],CS.prototype,"header",void 0);_.f([_.BM("#confirm-button"),_.l("design:type",_.YX)],CS.prototype,"confirmButton",void 0);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],CS.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],CS.prototype,"onYtServiceRequestCompleted",null);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],CS.prototype,"closePopupHandler",null);_.f([_.OZ("data.headerImage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CS.prototype,"onHeaderImageChanged",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],CS.prototype,"onYtNavigate",null);
CS=_.f([_.U({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],CS);
_.X(CS,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(vtG!==void 0)return vtG;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return vtG=W},{mode:1});var m0Q;var A$=function(){var W=_.b.apply(this,arguments)||this;W.isLoading=!1;return W};
_.A(A$,_.b);_.J=A$.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);CEQ(this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.J.onYtServiceRequestError=function(W){_.Iq(this.hostElement,W.detail.error.message)};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.W7(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.J.onDataChanged=function(){this.isLoading=!1;var W=this.get("data.headerImage.thumbnails");W&&(W=_.Tm(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")");W=_.E_();var P=_.G7(),x=this.get("data.trackingParams");x&&P&&W&&_.hn(W,P,_.ox(x))};
_.N1.Object.defineProperties(A$.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
A$.prototype.onDataChanged=A$.prototype.onDataChanged;A$.prototype.onDomChange=A$.prototype.onDomChange;A$.prototype.onYtServiceRequestError=A$.prototype.onYtServiceRequestError;A$.prototype.onYtServiceRequestCompleted=A$.prototype.onYtServiceRequestCompleted;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],A$.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],A$.prototype,"isLoading",void 0);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],A$.prototype,"hasDescription",null);_.f([_.BM("tp-yt-paper-dialog-scrollable"),_.l("design:type",Object)],A$.prototype,"scrollable",void 0);_.f([_.BM("#header"),_.l("design:type",HTMLElement)],A$.prototype,"header",void 0);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],A$.prototype,"onYtServiceRequestCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],A$.prototype,"onYtServiceRequestError",null);
_.f([_.I7("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],A$.prototype,"onDomChange",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A$.prototype,"onDataChanged",null);A$=_.f([_.U({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],A$);
_.X(A$,"ytd-gaming-account-link-setting-renderer",function(){if(m0Q!==void 0)return m0Q;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return m0Q=W},{mode:1});var VpG;var tpd;var zU=function(){var W=_.b.apply(this,arguments)||this;W.isHeader=!1;W.getEndpointForm=zp9;return W};
_.A(zU,_.b);_.J=zU.prototype;_.J.triggerHintActions=function(){var W=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var P=_.P7(W.hostElement,"yt-get-opened-popups-action");!(P&&P.length===1?P[0]:[]).some(function(x){x=x.openPopupAction.popupType;return x==="SURVEY"||x==="MEALBAR"||x==="HINT"})&&W.data.hintActions&&W.guideOpened&&(_.OL(W.hostElement,W.data.hintActions,W.hostElement),W.data.hintActions=void 0)})};
_.J.getBadgeIconType=function(W){return W&&W.liveBroadcasting?"live":null};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(W){if(this.data.serviceEndpoint){var P;_.p("shorts_controller_retrieve_seedless_sequence_v2")&&((P=_.Q(this.data.serviceEndpoint,_.uS))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):AbO(this.data.serviceEndpoint,this);W.preventDefault()}else this.data.navigationEndpoint&&!_.Nx(_.c5(W),this.hostElement,["A".toString()])&&_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.J.computeActive=function(W,P){if(!W)return!1;var x=W.navigationEndpoint;W=W.serviceEndpoint;if(!x&&!W||!P)return!1;if(x){W=(W=_.yy(P))&&["subscriptions","filteredsubscriptions"].includes(W);if(_.Q(x,_.KL)&&_.Q(P,_.KL)&&!W){var I=_.Q(x,_.KL).browseId;P=_.Q(P,_.KL).browseId;return I!==void 0&&P!==void 0&&(I===P||I==="VLWL"&&P==="FEwatch_later"||I==="FEwatch_later"&&P==="VLWL")}var O;x=(O=_.Q(x.commandMetadata,_.rU))==null?void 0:O.url;P=(I=_.Q(P.commandMetadata,_.rU))==null?void 0:I.url;return!(!x||
!P||x!==P&&x!==_.YO(P))}return this.isActiveShortsTab(W,P)};
_.J.isActiveShortsTab=function(W,P){P=!!_.Q(P,_.uS)||!!_.Q(P,_.M3);return(!!_.Q(W,_.uS)||!!_.Q(W,_.M3))&&P};
_.J.computeIsPrimary=function(W){return!!W};
_.N1.Object.defineProperties(zU.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 W=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&W)return W}}});
zU.prototype.onTap=zU.prototype.onTap;zU.prototype.onUp=zU.prototype.onUp;zU.prototype.onDown=zU.prototype.onDown;zU.prototype.triggerHintActions=zU.prototype.triggerHintActions;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],zU.prototype,"componentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zU.prototype,"rendererBehavior",void 0);_.f([_.h(_.XU.YtTaskEmitterBehavior),_.l("design:type",Object)],zU.prototype,"taskEmitterBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],zU.prototype,"activeEndpoint",void 0);_.f([_.c(),_.l("design:type",Object)],zU.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],zU.prototype,"guideOpened",void 0);_.f([_.c(),_.l("design:type",String)],zU.prototype,"type",void 0);_.f([_.BM("yt-interaction"),_.l("design:type",Object)],zU.prototype,"interaction",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],zU.prototype,"isHeader",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data","activeEndpoint"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zU.prototype,"active",null);_.f([_.c({reflectToAttribute:!0}),_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zU.prototype,"isPrimary",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.count","data.presentationStyle","data.badges.*"),_.l("design:type",String),_.l("design:paramtypes",[])],zU.prototype,"lineEndStyle",null);
_.f([_.H("lineEndStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],zU.prototype,"ariaLabel",null);_.f([_.OZ("data.hintActions","guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zU.prototype,"triggerHintActions",null);_.f([_.I7("down"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zU.prototype,"onDown",null);
_.f([_.I7("up"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zU.prototype,"onUp",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],zU.prototype,"onTap",null);zU=_.f([_.U({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],zU);
_.X(zU,"ytd-guide-entry-renderer",function(){if(tpd!==void 0)return tpd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return tpd=W},{mode:1});var GU=function(){var W=_.b.apply(this,arguments)||this;W.userToggled=!1;return W};
_.A(GU,_.b);_.J=GU.prototype;_.J.getItemsPath=function(){return"data.expandableItems"};
_.J.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.J.onExpanderItemTapped=function(W){var P=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.p("kevlar_guide_expandable_items_killswitch")&&_.Xm(this,function(){_.fD(P.expandableItems)});
W.preventDefault()};
_.J.onCollapserItemTapped=function(W){var P=this;this._setExpanded(!1);this.userToggled=!0;W.preventDefault();this.expandableItems&&!_.p("kevlar_guide_collapsible_items_killswitch")&&_.Xm(this,function(){_.XG(P.hostElement)})};
_.J.observeActiveEndpoint=function(){for(var W=this.activeEndpoint,P=this.data,x=this.expandableItems.children,I=0,O=x.length;I<O;I++)x[I].activeEndpoint=W;P&&P.autoExpandCommand&&W&&!this.userToggled&&(x=this.data.autoExpandCommand,P=!(!_.Q(x,_.KL)||!_.Q(W,_.KL)||_.Q(x,_.KL).browseId!==_.Q(W,_.KL).browseId),W=this.get("commandMetadata.webCommandMetadata.url",W),x=this.get("commandMetadata.webCommandMetadata.url",x),P=P||!!(W&&x&&W.includes(x)),this._setExpanded(P),P&&this.ytLazyListBehavior.fillRemainingListItems())};
GU.prototype.observeActiveEndpoint=GU.prototype.observeActiveEndpoint;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],GU.prototype,"ytLazyListBehavior",void 0);_.f([_.BM("#expandable-items"),_.l("design:type",HTMLElement)],GU.prototype,"expandableItems",void 0);
_.f([_.c(),_.l("design:type",Object)],GU.prototype,"data",void 0);_.f([_.c({readOnly:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],GU.prototype,"expanded",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],GU.prototype,"initialCount",void 0);_.f([_.c(),_.l("design:type",Object)],GU.prototype,"activeEndpoint",void 0);_.f([_.OZ("data","activeEndpoint","canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"observeActiveEndpoint",null);
GU=_.f([_.U({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],GU);
_.X(GU,"ytd-guide-collapsible-entry-renderer",function(){if(VpG!==void 0)return VpG;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return VpG=W},{mode:_.F4("kevlar_poly_si_batch_j079")?1:2});var pgG;var j84;var E9=function(){var W=_.b.apply(this,arguments)||this;W.allVideosCount=0;W.renderGuideEntry=!1;return W};
_.A(E9,_.b);E9.prototype.observeRenderEntry=function(){var W;this.renderGuideEntry=!((W=this.data)==null||!W.alwaysShow)||!!this.allVideosCount};
E9.prototype.observeRenderEntry=E9.prototype.observeRenderEntry;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],E9.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],E9.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],E9.prototype,"activeEndpoint",void 0);_.f([_.c({selector:_.MO7}),_.l("design:type",Object)],E9.prototype,"allVideosCount",void 0);
_.f([_.c(),_.l("design:type",Object)],E9.prototype,"renderGuideEntry",void 0);_.f([_.K_("allVideosCount","data.alwaysShow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],E9.prototype,"observeRenderEntry",null);E9=_.f([_.U({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],E9);
_.X(E9,"ytd-guide-downloads-entry-renderer",function(){if(j84===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);j84=W}W=j84;return W},{mode:1});var g5=function(){var W=_.b.apply(this,arguments)||this;W.youtab=_.p("web_enable_youtab");W.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return W};
_.A(g5,_.b);_.J=g5.prototype;_.J.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]]"}}}}}};
_.J.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var W=this.sectionItems.children,P=0,x=W.length;P<x;P++)W[P].activeEndpoint=this.activeEndpoint}};
_.J.handleAddToGuideSectionAction=function(W){var P=_.Q(W,HTy);if(P&&this.data&&(W=P.items,P=P.handlerData,W&&P&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(P)>-1)){P=0;for(var x=W.length;P<x;P++)W[P].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,W[P])}};
_.J.handleRemoveFromGuideSectionAction=function(W){var P=_.Q(W,eN2);P&&this.data&&(W=P.guideEntryId,P=P.handlerData,W&&P&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(P)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(W,this.data.sectionItems),this.removeFromCollapsedSection(W,this.data.sectionItems)))};
_.J.removeFromExpandedSection=function(W,P){W=this.getEntryIndexMatchingId(W,P);W!==-1&&this.splice("data.sectionItems",W,1)};
_.J.removeFromCollapsedSection=function(W,P){var x=P.findIndex(function(I){return!!_.Q(I,Lwy)});
x&&x!==-1&&P[x]&&_.Q(P[x],Lwy)&&(P=_.Q(P[x],Lwy).expandableItems)&&(W=this.getEntryIndexMatchingId(W,P),W!==-1&&this.splice("data.sectionItems."+x+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.J.getEntryIndexMatchingId=function(W,P){var x=this;return P.findIndex(function(I){return x.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",I)===W})};
g5.prototype.activeEndpointChanged=g5.prototype.activeEndpointChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],g5.prototype,"actionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("#section-items"),_.l("design:type",HTMLDivElement)],g5.prototype,"sectionItems",void 0);
_.f([_.BM("#header-entry"),_.l("design:type",Object)],g5.prototype,"headerEntry",void 0);_.f([_.c(),_.l("design:type",Object)],g5.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],g5.prototype,"activeEndpoint",void 0);_.f([_.c(),_.l("design:type",Object)],g5.prototype,"youtab",void 0);_.f([_.OZ("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g5.prototype,"activeEndpointChanged",null);
g5=_.f([_.U({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],g5);
_.X(g5,"ytd-guide-collapsible-section-entry-renderer",function(){if(pgG===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);pgG=W}W=pgG;return W},{mode:1});var Q83;var CW9;var D4=function(){var W=_.b.apply(this,arguments)||this;W.modernTypography=_.p("web_modern_typography");W.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 W};
_.A(D4,_.b);_.J=D4.prototype;
_.J.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}}}}};
_.J.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var W=_.P7(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);W&&W.length===1&&W[0]&&_.P7(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.J.handleResetChannelUnreadCountCommand=function(W){var P;(W=(P=_.Q(W,abO))==null?void 0:P.channelId)&&this.data&&this.data.items&&(P=this.getPathToEntryMatchingId(W))&&(this.set(P+".guideEntryRenderer.count",0),this.set(P+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.handleResetSubscriptionsUnreadDotCommand=function(W){var P,x=(P=_.Q(W,bTv))==null?void 0:P.targetId,I;x&&(I=this.data)!=null&&I.items&&(W=this.data.items.findIndex(function(O){var B;return((B=O.guideEntryRenderer)==null?void 0:B.targetId)===x}),W<0||this.set("data.items."+W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.getPathToEntryMatchingId=function(W){if(this.data&&this.data.items){var P=this.getEntryIndexMatchingId(W,this.data.items);if(P>-1)return"data.items."+P;for(var x=0;x<this.data.items.length;x++)if(P=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[x]))if(P=this.getEntryIndexMatchingId(W,P),P>-1)return"data.items."+x+".guideCollapsibleEntryRenderer.expandableItems."+P}};
_.J.handleAddToGuideSectionAction=function(W){var P=this;if(_.Q(W,HTy)){var x=_.Q(W,HTy).items;W=_.Q(W,HTy).handlerData;var I,O;x&&W&&((I=this.data)==null?void 0:(O=I.handlerDatas)==null?void 0:O.indexOf(W))>-1&&(x=x.filter(function(B){return(B=P.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",B))&&!P.isGuideItemPresent(B)}),this.unshift.apply(this,["data.items"].concat(_.ju(x))))}};
_.J.isGuideItemPresent=function(W){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(W,this.data.items)!==-1)return!0;var P=this.data.items.find(function(x){return!!x.guideCollapsibleEntryRenderer});
if((P==null?0:P.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(W,P.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.J.getEntryIndexMatchingId=function(W,P){var x=this;return P.findIndex(function(I){return x.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",I)===W})};
_.J.handleRemoveFromGuideSectionAction=function(W){if(_.Q(W,eN2)){var P=_.Q(W,eN2).guideEntryId;W=_.Q(W,eN2).handlerData;var x,I;P&&W&&((x=this.data)==null?void 0:(I=x.handlerDatas)==null?void 0:I.indexOf(W))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(P,this.data.items),this.removeFromCollapsedSection(P,this.data.items))}};
_.J.removeFromExpandedSection=function(W,P){W=this.getEntryIndexMatchingId(W,P);W!==-1&&this.splice("data.items",W,1)};
_.J.removeFromCollapsedSection=function(W,P){var x=P.findIndex(function(I){return!!I.guideCollapsibleEntryRenderer});
x!==-1&&(P=P[x].guideCollapsibleEntryRenderer.expandableItems)&&(W=this.getEntryIndexMatchingId(W,P),W!==-1&&this.splice("data.items."+x+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.J.activeEndpointChanged=function(){for(var W=_.g(this.hostElement).querySelector("#items").children,P=0,x=W.length;P<x;P++)W[P].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.J.guideOpenedChanged=function(){for(var W=_.g(this.hostElement).querySelector("#items").children,P=0,x=W.length;P<x;P++)W[P].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
D4.prototype.guideOpenedChanged=D4.prototype.guideOpenedChanged;D4.prototype.activeEndpointChanged=D4.prototype.activeEndpointChanged;D4.prototype.persistentGuideChanged=D4.prototype.persistentGuideChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],D4.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],D4.prototype,"ytLazyListBehavior",void 0);_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],D4.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],D4.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],D4.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],D4.prototype,"modernTypography",void 0);_.f([_.c(),_.l("design:type",String)],D4.prototype,"type",void 0);_.f([_.c({value:20}),_.l("design:type",Number)],D4.prototype,"initialCount",void 0);_.f([_.c({value:10}),_.l("design:type",Number)],D4.prototype,"targetFramerate",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],D4.prototype,"autoFill",void 0);_.f([_.c({value:50}),_.l("design:type",Number)],D4.prototype,"renderDelay",void 0);
_.f([_.OZ("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D4.prototype,"persistentGuideChanged",null);_.f([_.K_("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D4.prototype,"activeEndpointChanged",null);_.f([_.K_("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D4.prototype,"guideOpenedChanged",null);
D4=_.f([_.U({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],D4);
_.X(D4,"ytd-guide-section-renderer",function(){if(CW9!==void 0)return CW9;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return CW9=W},{mode:_.F4("kevlar_poly_si_batch_j073")?1:2});var ATy;var MF=function(){return _.b.apply(this,arguments)||this};
_.A(MF,_.b);_.N1.Object.defineProperties(MF.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],MF.prototype,"rendererBehaviors",void 0);_.f([_.c(),_.l("design:type",Object)],MF.prototype,"data",void 0);_.f([_.c(),_.H("data.signInButton.buttonRenderer.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],MF.prototype,"alignByText",null);MF=_.f([_.U({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],MF);
_.X(MF,"ytd-guide-signin-promo-renderer",function(){if(ATy===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);ATy=W}W=ATy;return W},{mode:1});var $o=function(){var W=_.b.apply(this,arguments)||this;W.showFooter=!1;return W};
_.A($o,_.b);$o.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}}}}};
$o.prototype.attached=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1){P=_.FY().resolve(_.Rl(_.$y));if(!P)return x.jumpTo(0);P.setGuideData(W.hostElement);return _.S(x,0,3)}W.ytLazyListBehavior.initialCount=2;return x.return()})};
$o.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
$o.prototype.dataChanged=$o.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],$o.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.iL.YtLazyListBehavior),_.l("design:type",Object)],$o.prototype,"ytLazyListBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],$o.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],$o.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],$o.prototype,"showFooter",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],$o.prototype,"autoFill",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$o.prototype,"dataChanged",null);$o=_.f([_.U({is:"ytd-guide-renderer",disableElementRegistration:!0})],$o);
_.X($o,"ytd-guide-renderer",function(){if(Q83!==void 0)return Q83;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Q83=W},{mode:_.F4("kevlar_poly_si_batch_j073")?1:2});var zLy;var w5=function(){var W=_.b.apply(this,arguments)||this;W.systemIcons=_.p("kevlar_system_icons");W.frostedGlass=_.p("web_frosted_glass");W.getEndpointForm=zp9;return W};
_.A(w5,_.b);_.J=w5.prototype;_.J.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.J.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.kz(this.data.formattedTitle))};
_.J.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(W){if(this.data.serviceEndpoint){var P;_.p("shorts_controller_retrieve_seedless_sequence_v2")&&((P=_.Q(this.data.serviceEndpoint,_.uS))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):AbO(this.data.serviceEndpoint,this);W.preventDefault()}else{var x;((x=this.data)==null?0:x.navigationEndpoint)&&!_.Nx(_.c5(W),this.hostElement,["A".toString()])&&_.Lf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.J.computeActive=function(W,P){if(!W)return!1;var x=W.navigationEndpoint;W=W.serviceEndpoint;if(!x&&!W||!P)return!1;if(x){W=_.Q(x,_.KL);var I=_.Q(P,_.KL);if(W&&I)return W.browseId===I.browseId&&W.params===I.params;var O;x=(O=_.Q(x.commandMetadata,_.rU))==null?void 0:O.url;var B;P=(B=_.Q(P.commandMetadata,_.rU))==null?void 0:B.url;return!(!x||!P||x!==P&&x!==_.YO(P))}return this.isActiveShortsTab(W,P)};
_.J.isActiveShortsTab=function(W,P){P=!!_.Q(P,_.uS)||!!_.Q(P,_.M3);return(!!_.Q(W,_.uS)||!!_.Q(W,_.M3))&&P};
_.J.computeTitle=function(W,P){return P?"":_.kz(W)};
_.N1.Object.defineProperties(w5.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
w5.prototype.onTap=w5.prototype.onTap;w5.prototype.onUp=w5.prototype.onUp;w5.prototype.onDown=w5.prototype.onDown;w5.prototype.onActiveStateChange=w5.prototype.onActiveStateChange;w5.prototype.dataChanged=w5.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],w5.prototype,"ytComponentBehavior",void 0);
_.f([_.h(_.$u),_.l("design:type",Object)],w5.prototype,"ironButtonState",void 0);_.f([_.c(),_.l("design:type",Object)],w5.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],w5.prototype,"activeEndpoint",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],w5.prototype,"noLabels",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.l("design:type",Boolean)],w5.prototype,"isActive",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],w5.prototype,"systemIcons",void 0);_.f([_.BM("yt-interaction"),_.l("design:type",Object)],w5.prototype,"interaction",void 0);_.f([_.H("isActive"),_.l("design:type",Object),_.l("design:paramtypes",[])],w5.prototype,"ariaSelected",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],w5.prototype,"frostedGlass",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w5.prototype,"dataChanged",null);_.f([_.OZ("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w5.prototype,"onActiveStateChange",null);_.f([_.I7("down"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w5.prototype,"onDown",null);
_.f([_.I7("up"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w5.prototype,"onUp",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],w5.prototype,"onTap",null);w5=_.f([_.U({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],w5);
_.X(w5,"ytd-mini-guide-entry-renderer",function(){if(zLy!==void 0)return zLy;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return zLy=W},{mode:_.F4("kevlar_poly_si_batch_j063")?1:2});var G56;var h$=function(){var W=_.b.apply(this,arguments)||this;W.allVideosCount=0;W.noLabels=_.p("kevlar_mini_guide_no_labels");W.frostedGlass=_.p("web_frosted_glass");return W};
_.A(h$,_.b);_.J=h$.prototype;_.J.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.J.visibleChanged=function(){if(this.visible&&!this.data){var W=_.FY().resolve(_.Rl(_.$y));W&&W.setGuideData(this.hostElement)}};
_.J.dataChanged=function(){var W=[],P;if((P=this.data)!=null&&P.items){P=_.n(this.data.items);for(var x=P.next();!x.done;x=P.next()){x=x.value;var I=void 0;if((I=x.guideSectionRenderer)==null?0:I.items)for(I=void 0,x=_.n((I=x.guideSectionRenderer)==null?void 0:I.items),I=x.next();!I.done;I=x.next())if(I=I.value,I.guideEntryRenderer)I=I.guideEntryRenderer,I.isPrimary&&W.push({guideEntryRenderer:I});else if(I.guideCollapsibleSectionEntryRenderer){var O=void 0;((O=_.Q(I.guideCollapsibleSectionEntryRenderer.headerEntry,
lv))==null?0:O.isPrimary)&&W.push({guideEntryRenderer:_.Q(I.guideCollapsibleSectionEntryRenderer.headerEntry,lv)});if(I=I.guideCollapsibleSectionEntryRenderer.sectionItems)for(I=_.n(I),O=I.next();!O.done;O=I.next()){var B=O.value;O=_.Q(B,W4m);var Y=void 0;((Y=_.Q(B,lv))==null?0:Y.isPrimary)?W.push({guideEntryRenderer:_.Q(B,lv)}):O&&(B=void 0,_.Q((B=O)==null?void 0:B.entryRenderer,lv)&&(O.alwaysShow||this.allVideosCount)&&W.push({guideEntryRenderer:_.Q(O.entryRenderer,lv)}))}}}}this.miniGuideItems=
W};
_.J.activeEndpointChanged=function(){for(var W=this.items.children,P=0;P<W.length;P++)W[P].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
h$.prototype.activeEndpointChanged=h$.prototype.activeEndpointChanged;h$.prototype.dataChanged=h$.prototype.dataChanged;h$.prototype.visibleChanged=h$.prototype.visibleChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],h$.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],h$.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],h$.prototype,"ytComponentBehavior",void 0);_.f([_.BM("#items"),_.l("design:type",Object)],h$.prototype,"items",void 0);_.f([_.c(),_.l("design:type",Object)],h$.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],h$.prototype,"visible",void 0);
_.f([_.c(),_.l("design:type",Object)],h$.prototype,"miniGuideItems",void 0);_.f([_.c({selector:_.MO7}),_.l("design:type",Object)],h$.prototype,"allVideosCount",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],h$.prototype,"noLabels",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],h$.prototype,"frostedGlass",void 0);_.f([_.K_("visible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],h$.prototype,"visibleChanged",null);
_.f([_.K_("data","allVideosCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],h$.prototype,"dataChanged",null);_.f([_.K_("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],h$.prototype,"activeEndpointChanged",null);h$=_.f([_.U({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],h$);
_.X(h$,"ytd-mini-guide-renderer",function(){if(G56===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);G56=W}W=G56;return W},{mode:1});var Etf;var gtf=/^[\x00-\x7F]+$/,H0=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(H0,_.b);_.N1.Object.defineProperties(H0.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var W,P=_.kz((W=this.data)==null?void 0:W.handle);if(P)return _.bx("@"+P)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.kz(this.displayHandle),P,x=_.kz((P=this.data)==null?void 0:P.handleUrl);if(W&&x)return _.bx(x+W)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var W=_.kz(this.displayHandle);if(W&&!gtf.test(W)){var P;return(P=this.data)==null?void 0:P.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.kz(this.displayHandleUrl),P,x=_.kz((P=this.data)==null?void 0:P.urlInfoText);if(W&&x)return _.bx(x+" "+W)}}});
_.f([_.c(),_.l("design:type",Object)],H0.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],H0.prototype,"displayHandle",null);_.f([_.H("displayHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],H0.prototype,"displayHandleUrl",null);_.f([_.H("displayHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],H0.prototype,"warningText",null);
_.f([_.H("displayHandleUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],H0.prototype,"urlInfoTextWithUrl",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],H0.prototype,"darkerDarkTheme",void 0);H0=_.f([_.U({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],H0);
_.X(H0,"ytd-handles-claiming-confirm-dialog-content",function(){if(Etf!==void 0)return Etf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Etf=W},{mode:1});var D0M;var eE=function(){var W=_.b.apply(this,arguments)||this;W.okButtonOverride={style:"mono",type:"outline",size:"M"};return W};
_.A(eE,_.b);eE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eE.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eE.prototype,"okButtonOverride",void 0);_.f([_.c(),_.l("design:type",Object)],eE.prototype,"data",void 0);eE=_.f([_.U({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],eE);
_.X(eE,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(D0M!==void 0)return D0M;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return D0M=W},{mode:1});var MpG;var $0d=/^[\x00-\x7F]+$/,c0=function(){var W=_.b.apply(this,arguments)||this;W.isLoading=!1;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(c0,_.b);c0.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(this.selectedHandle);_.P7(this.hostElement,"yt-refit-popups-action")}};
_.N1.Object.defineProperties(c0.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.bx("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.bx(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!$0d.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],c0.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],c0.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],c0.prototype,"selectedHandle",void 0);_.f([_.c(),_.l("design:type",Object)],c0.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Function)],c0.prototype,"onSelectedHandleChanged",void 0);_.f([_.BM("#channel-handle-input"),_.l("design:type",Object)],c0.prototype,"handleInput",void 0);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],c0.prototype,"handleUrlPrefix",null);_.f([_.H("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],c0.prototype,"displayHandle",null);_.f([_.H("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],c0.prototype,"displayHandleUrl",null);_.f([_.H("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],c0.prototype,"warningText",null);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],c0.prototype,"darkerDarkTheme",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);c0=_.f([_.U({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],c0);
_.X(c0,"ytd-handles-claiming-edit-dialog-content",function(){if(MpG!==void 0)return MpG;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return MpG=W},{mode:1});var wgQ;var aN=function(){var W=_.b.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.selectButtonDisabled=!1;W.isLoading=!1;W.hasSelectedHandleEventListener=!1;W.selectedHandleChanged=function(P){W.selectedHandle=P};
return W};
_.A(aN,_.b);_.J=aN.prototype;_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.J.onDataChanged=function(){var W,P;this.selectedHandle=(P=_.Q((W=this.data)==null?void 0:W.inputField,DKf))==null?void 0:P.handle};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.selectedHandle="";_.W7(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var P;((P=this.data)==null?void 0:P.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(x,I){if(I.newHandleUpdateStatus!==void 0&&I.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&I.newHandleUpdateStatus.errorMessage)_.Iq(W.hostElement,_.kz(I.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var O;if((O=W.data)==null?0:O.onChannelUpdateSuccess){x=W.data.onChannelUpdateSuccess;var B,Y;if(I=(B=_.Q(x,_.Ac))==null?void 0:(Y=B.popup)==null?void 0:Y.handlesClaimingConfirmDialogRenderer)I.handle=_.bx(W.selectedHandle);W.ytComponentBehavior.resolveCommand(x);_.W7(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){var x;W.content&&((x=W.content)==null?0:x.handleInput)&&W.content.handleInput.validate();W.isLoading=!1;_.Iq(W.hostElement,_.KK("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
aN.prototype.onDataChanged=aN.prototype.onDataChanged;aN.prototype.onSelectedHandleChanged=aN.prototype.onSelectedHandleChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],aN.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],aN.prototype,"actionButtonOverride",void 0);_.f([_.c(),_.l("design:type",Object)],aN.prototype,"cancelButtonOverride",void 0);_.f([_.c(),_.l("design:type",Object)],aN.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",String)],aN.prototype,"selectedHandle",void 0);_.f([_.c(),_.l("design:type",Object)],aN.prototype,"selectButtonDisabled",void 0);_.f([_.c(),_.l("design:type",Object)],aN.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Object)],aN.prototype,"hasSelectedHandleEventListener",void 0);_.f([_.c(),_.l("design:type",Object)],aN.prototype,"handleInput",void 0);
_.f([_.OZ("selectedHandle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aN.prototype,"onSelectedHandleChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aN.prototype,"onDataChanged",null);_.f([_.BM("ytd-handles-claiming-edit-dialog-content"),_.l("design:type",Object)],aN.prototype,"content",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);aN=_.f([_.U({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],aN);
_.X(aN,"ytd-handles-claiming-edit-dialog-renderer",function(){if(wgQ!==void 0)return wgQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return wgQ=W},{mode:1});var hLy;var ba=function(){return _.b.apply(this,arguments)||this};
_.A(ba,_.b);_.N1.Object.defineProperties(ba.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.handle){var P;return _.bx("@"+_.kz((P=this.data)==null?void 0:P.handle))}}}});
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ba.prototype,"formattedHandle",null);_.f([_.c(),_.l("design:type",Object)],ba.prototype,"data",void 0);ba=_.f([_.U({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],ba);
_.X(ba,"ytd-handles-claiming-radio-option-renderer",function(){if(hLy!==void 0)return hLy;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return hLy=W},{mode:1});var Hrf;var eL6=/^[\x00-\x7F]+$/,ko=function(){var W=_.b.apply(this,arguments)||this;W.initialRadioIndex="-1";W.isLoading=!1;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.feedbackSurveyRenderer.submitSurvey()};
return W};
_.A(ko,_.b);ko.prototype.updateSelectedHandleIndexFromBinding=function(W){this.selectedRadioIndex=+W.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(W)};
ko.prototype.selectedHandleChanged=function(W){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var P;this.selectedHandle=(P=this.handleInput)==null?void 0:P.value;this.onSelectedHandleChanged(W)}};
_.N1.Object.defineProperties(ko.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.bx("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.bx(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!eL6.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.f([_.c(),_.l("design:type",Object)],ko.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],ko.prototype,"initialRadioIndex",void 0);_.f([_.c(),_.l("design:type",Number)],ko.prototype,"selectedRadioIndex",void 0);_.f([_.c(),_.l("design:type",String)],ko.prototype,"selectedHandle",void 0);_.f([_.c(),_.l("design:type",Object)],ko.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Function)],ko.prototype,"onSelectedHandleChanged",void 0);
_.f([_.c(),_.l("design:type",Function)],ko.prototype,"onSelectedRadioIndexChanged",void 0);_.f([_.BM("#channel-handle-input"),_.l("design:type",Object)],ko.prototype,"handleInput",void 0);_.f([_.BM("ytd-feedback-survey-renderer"),_.l("design:type",Object)],ko.prototype,"feedbackSurveyRenderer",void 0);_.f([_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],ko.prototype,"radioButtonLength",null);
_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ko.prototype,"handleUrlPrefix",null);_.f([_.H("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],ko.prototype,"displayHandle",null);_.f([_.H("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],ko.prototype,"displayHandleUrl",null);_.f([_.H("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],ko.prototype,"warningText",null);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ko.prototype,"darkerDarkTheme",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);ko=_.f([_.U({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],ko);
_.X(ko,"ytd-handles-claiming-select-dialog-content",function(){if(Hrf!==void 0)return Hrf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Hrf=W},{mode:1});var cT4;var U9=function(){var W=_.b.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.initialRadioIndex="-1";W.selectButtonDisabled=!1;W.isLoading=!1;W.selectedRadioIndexChanged=function(P){W.selectedRadioIndex=Number(P.detail.value)};
W.selectedHandleChanged=function(P){W.selectedHandle=P.detail.value};
W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(U9,_.b);_.J=U9.prototype;_.J.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.J.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.P7(this.hostElement,"yt-refit-popups-action")};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.W7(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var P;((P=this.data)==null?void 0:P.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(x,I){if(I.newHandleUpdateStatus!==void 0&&I.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&I.newHandleUpdateStatus.errorMessage)_.Iq(W.hostElement,_.kz(I.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var O;if((O=W.data)==null?0:O.onChannelUpdateSuccess){x=W.data.onChannelUpdateSuccess;I=_.Q(x,_.Ac);var B;if(I==null?0:(B=I.popup)==null?0:B.handlesClaimingConfirmDialogRenderer)I.popup.handlesClaimingConfirmDialogRenderer.handle=_.bx(W.selectedHandle);W.ytComponentBehavior.resolveCommand(x);_.W7(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){if(W.selectedRadioIndex===W.radioButtonLength){var x;W.content&&((x=W.content)==null?0:x.handleInput)&&W.content.handleInput.validate()}W.isLoading=!1;_.Iq(W.hostElement,_.KK("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var W,P;this.selectedHandle=(W=this.content)==null?void 0:(P=W.handleInput)==null?void 0:P.value}else this.selectedRadioIndex>=0&&((W=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(W==null?void 0:W.handle):this.selectedHandle=void 0)};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.J.getRadioItem=function(W){if(this.radioButtonLength>W&&W>=0)return _.Q(this.data.radioButton[W],TKv)};
_.N1.Object.defineProperties(U9.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}}});
U9.prototype.onSelectedHandleChanged=U9.prototype.onSelectedHandleChanged;U9.prototype.onSelectedHandleIndexChanged=U9.prototype.onSelectedHandleIndexChanged;U9.prototype.onDataChanged=U9.prototype.onDataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],U9.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],U9.prototype,"actionButtonOverride",void 0);_.f([_.c(),_.l("design:type",Object)],U9.prototype,"cancelButtonOverride",void 0);
_.f([_.c(),_.l("design:type",Object)],U9.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],U9.prototype,"initialRadioIndex",void 0);_.f([_.c(),_.l("design:type",Number)],U9.prototype,"selectedRadioIndex",void 0);_.f([_.c(),_.l("design:type",String)],U9.prototype,"selectedHandle",void 0);_.f([_.c(),_.l("design:type",Object)],U9.prototype,"selectButtonDisabled",void 0);_.f([_.c(),_.l("design:type",Object)],U9.prototype,"isLoading",void 0);
_.f([_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],U9.prototype,"radioButtonLength",null);_.f([_.BM("ytd-handles-claiming-select-dialog-content"),_.l("design:type",Object)],U9.prototype,"content",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],U9.prototype,"onDataChanged",null);
_.f([_.OZ("selectedRadioIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],U9.prototype,"onSelectedHandleIndexChanged",null);_.f([_.OZ("selectedHandle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],U9.prototype,"onSelectedHandleChanged",null);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],U9.prototype,"darkerDarkTheme",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);U9=_.f([_.U({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],U9);
_.X(U9,"ytd-handles-claiming-select-dialog-renderer",function(){if(cT4!==void 0)return cT4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return cT4=W},{mode:1});var aWM;var brQ;var Xa=function(){return _.b.apply(this,arguments)||this};
_.A(Xa,_.b);Xa.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Xa.prototype,"data",void 0);Xa=_.f([_.U({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Xa);
_.X(Xa,"ytd-hotkey-dialog-section-option-renderer",function(){if(brQ!==void 0)return brQ;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return brQ=W},{mode:1});var k5y;var fS=function(){return _.b.apply(this,arguments)||this};
_.A(fS,_.b);fS.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],fS.prototype,"data",void 0);fS=_.f([_.U({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],fS);
_.X(fS,"ytd-hotkey-dialog-section-renderer",function(){if(k5y!==void 0)return k5y;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return k5y=W},{mode:1});var NF=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(NF,_.b);NF.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],NF.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],NF.prototype,"darkerDarkTheme",void 0);NF=_.f([_.U({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],NF);
_.X(NF,"ytd-hotkey-dialog-content",function(){if(aWM!==void 0)return aWM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return aWM=W},{mode:1});var U0y;var la=function(){return _.b.apply(this,arguments)||this};
_.A(la,_.b);la.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W=document.querySelector("ytd-hotkey-dialog-content #scrollable");W&&(W.dialogElement=this.hostElement.parentElement)};
la.prototype.onCloseTap=function(){_.W7(this.hostElement,"yt-close-popup-action")};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],la.prototype,"data",void 0);la=_.f([_.U({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],la);
_.X(la,"ytd-hotkey-dialog-renderer",function(){if(U0y!==void 0)return U0y;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return U0y=W},{mode:1});var Xg6;var TU=function(){return _.b.apply(this,arguments)||this};
_.A(TU,_.b);TU.prototype.onYtServiceRequestError=function(){if(this.blocked){var W;var P=(W=this.data)==null?void 0:W.defaultServiceEndpoint}else{var x;P=(x=this.data)==null?void 0:x.toggledServiceEndpoint}var I;(P=(I=_.Q(P,_.q7A))==null?void 0:I.onFailureAction)&&this.ytComponentBehavior.resolveCommand(P);this.updateBlockState(!this.blocked)};
TU.prototype.onYtToggleButton=function(W){this.updateBlockState(W.detail.toggled)};
TU.prototype.updateBlockState=function(W){if(W!==this.blocked){var P=this.blockedEntityKey;P&&this.ytdReduxBehavior.dispatch(_.mG("blockStateEntity",P,{key:P,blocked:W}));this.set("data.isToggled",W)}};
_.N1.Object.defineProperties(TU.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)}}});
TU.prototype.onYtToggleButton=TU.prototype.onYtToggleButton;TU.prototype.onYtServiceRequestError=TU.prototype.onYtServiceRequestError;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],TU.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],TU.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],TU.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],TU.prototype,"blockedEntityKey",void 0);
_.f([_.c({selectorArgs:["blockedEntityKey"],selector:function(W,P){return _.Jb(W.entities,"blockStateEntity",P)}}),
_.l("design:type",Object)],TU.prototype,"blockStateEntity",void 0);_.f([_.H("data","blockStateEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],TU.prototype,"blocked",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],TU.prototype,"onYtServiceRequestError",null);
_.f([_.I7("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],TU.prototype,"onYtToggleButton",null);TU=_.f([_.U({is:"ytd-block-button",disableElementRegistration:!0})],TU);
_.X(TU,"ytd-block-button",function(){if(Xg6!==void 0)return Xg6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Xg6=W},
{mode:1});var fWQ;var NZ9;var r5=function(){return _.b.apply(this,arguments)||this};
_.A(r5,_.b);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],r5.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],r5.prototype,"data",void 0);r5=_.f([_.U({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],r5);
_.X(r5,"ytd-kids-blocklist-picker-item-renderer",function(){if(NZ9!==void 0)return NZ9;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return NZ9=W},{mode:1});var ia=function(){return _.b.apply(this,arguments)||this};
_.A(ia,_.b);ia.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ia.prototype,"data",void 0);ia=_.f([_.U({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],ia);
_.X(ia,"ytd-kids-blocklist-picker-content",function(){if(fWQ!==void 0)return fWQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return fWQ=
W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var lW2;var RN=function(){var W=_.b.apply(this,arguments)||this;W.hasAnyRequestSucceeded=!1;W.hasAnyRequestFailed=!1;W.numPendingRequests=0;return W};
_.A(RN,_.b);_.J=RN.prototype;_.J.attached=function(){this.hostElement.setAttribute("dialog","")};
_.J.onDoneButtonTap=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.J.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.J.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.J.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.J.onPopupClosed=function(W){var P,x;if(((P=W.detail)==null?void 0:(x=P.popup)==null?void 0:x.is)==="tp-yt-paper-dialog"){var I;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((I=this.data)==null?0:I.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.NB(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
RN.prototype.onPopupClosed=RN.prototype.onPopupClosed;RN.prototype.onYtServiceRequestError=RN.prototype.onYtServiceRequestError;RN.prototype.onYtServiceRequestCompleted=RN.prototype.onYtServiceRequestCompleted;RN.prototype.onYtServiceRequestSent=RN.prototype.onYtServiceRequestSent;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],RN.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],RN.prototype,"data",void 0);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RN.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RN.prototype,"onYtServiceRequestCompleted",null);
_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RN.prototype,"onYtServiceRequestError",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],RN.prototype,"onPopupClosed",null);RN=_.f([_.U({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],RN);
_.X(RN,"ytd-kids-blocklist-picker-renderer",function(){if(lW2!==void 0)return lW2;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return lW2=W},{mode:1});var TZf;var rTf;var Fa=function(){return _.b.apply(this,arguments)||this};
_.A(Fa,_.b);Fa.prototype.setTip=function(W){var P=this;this.data&&(this.tip=H62(wv6.getInstance(),W,this.data),_.Xm(this,function(){_.Lf(P.hostElement,"yt-refit")}))};
Fa.prototype.clearTip=function(){this.tip=void 0};
Fa.prototype.computeHidden=function(W){return!W};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Fa.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.l("design:type",Boolean)],Fa.prototype,"hidden",void 0);_.f([_.c(),_.l("design:type",Object)],Fa.prototype,"tip",void 0);Fa=_.f([_.U({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Fa);
_.X(Fa,"ytd-menu-popup-tip-renderer",function(){if(rTf!==void 0)return rTf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);
return rTf=W},{mode:1});var irm;var qF=function(){var W=_.b.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.p("kevlar_system_icons");W.useListItemStyles=_.p("web_list_item_style_for_menu_items");return W};
_.A(qF,_.b);_.J=qF.prototype;_.J.onFocus=function(){var W;(W=_.g(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.J.onTap=function(){var W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(W&&_.Q(W,_.B7))this.componentBehavior.resolveCommand(W),this.updateToggledStateInEntity();else if(W){this.componentBehavior.resolveCommand(W)||_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}});var P;((P=_.Q(W,_.Y6))==null?void 0:P.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.J.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.J.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.J.updateToggledStateInEntity=function(){var W=this.data.toggleMenuServiceItemEntityKey,P=!this.data.isToggled;W&&this.ytdReduxBehavior.dispatch(_.mG("toggleMenuServiceItemEntity",W,{key:W,isToggled:P}))};
_.J.computeIcon=function(W,P,x){return(W=W?x:P)&&W.iconType?_.PW(W.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.isIconActive=function(W){return!_.p("toggle_menu_active_icon_killswitch")&&W};
_.N1.Object.defineProperties(qF.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.data)==null?0:W.isToggled)?(P=this.data)==null?void 0:P.toggledText:(x=this.data)==null?void 0:x.defaultText}}});
qF.prototype.toggledStateEntityChanged=qF.prototype.toggledStateEntityChanged;qF.prototype.onYtServiceRequestCompleted=qF.prototype.onYtServiceRequestCompleted;qF.prototype.onTap=qF.prototype.onTap;qF.prototype.onFocus=qF.prototype.onFocus;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],qF.prototype,"componentBehavior",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],qF.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],qF.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qF.prototype,"useIcons",void 0);_.f([_.c({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.l("design:type",String)],qF.prototype,"icon",void 0);
_.f([_.c({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(W,P){return _.Jb(W.entities,"toggleMenuServiceItemEntity",P)}}),
_.l("design:type",Object)],qF.prototype,"toggleMenuServiceItemEntity",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qF.prototype,"systemIcons",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],qF.prototype,"useListItemStyles",void 0);_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qF.prototype,"onFocus",null);
_.f([_.H("data.isToggled"),_.l("design:type",Object),_.l("design:paramtypes",[])],qF.prototype,"toggleButtonText",null);_.f([_.I7("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qF.prototype,"onTap",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qF.prototype,"onYtServiceRequestCompleted",null);
_.f([_.OZ("toggleMenuServiceItemEntity.isToggled","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qF.prototype,"toggledStateEntityChanged",null);qF=_.f([_.U({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],qF);
_.X(qF,"ytd-toggle-menu-service-item-renderer",function(){if(irm!==void 0)return irm;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return irm=W},{mode:1});var RL2;var LS=function(){return _.b.apply(this,arguments)||this};
_.A(LS,_.b);LS.prototype.onFocus=function(){var W;(W=_.g(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.N1.Object.defineProperties(LS.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.my(this.data.iconUrl)}}});
LS.prototype.onFocus=LS.prototype.onFocus;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],LS.prototype,"rendererBehavior",void 0);_.f([_.h(_.IM.YtEndpointBehavior),_.l("design:type",Object)],LS.prototype,"ytEndpointBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],LS.prototype,"data",void 0);_.f([_.I7("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LS.prototype,"onFocus",null);
_.f([_.H("data.iconUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],LS.prototype,"imageSource",null);LS=_.f([_.U({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],LS);
_.X(LS,"ytd-menu-custom-icon-item-renderer",function(){if(RL2!==void 0)return RL2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return RL2=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});_.lq(_.tG,"yt-list-item-view-model",{props:{data:_.cv,isMenuItem:_.cv,isCompact:_.cv,onTap:_.Ng,trailingAccessory:_.Ng,hideSelectionTextChevron:_.cv,disabled:_.cv,inPopup:_.cv,disableHorizontalPadding:_.cv,isOverlay:_.cv}});var Wh=function(){var W=_.b.apply(this,arguments)||this;W.disableBackdropFilter=_.p("web_disable_backdrop_filter");return W};
_.A(Wh,_.b);_.J=Wh.prototype;
_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.J.computeAriaLabel=function(W){return W};
_.J.onPopupOpened=function(){this.items.selected=0;for(var W=_.n(_.g(this.items).children),P=W.next();!P.done;P=W.next())P.value.popupPositionTarget=this.positionTarget;if(W=this.popupTip||void 0)W.setTip(this.source||""),this.source=void 0;this.veData&&(W=_.E_())&&_.c7(W,[this.veData])};
_.J.onPopupClosed=function(){var W=this.popupTip||void 0;W&&W.clearTip()};
_.J.onIronActivate=function(W){this.shouldPersist(W)||_.W7(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(W=_.E_())&&_.bB(W,this.veData)};
_.J.shouldPersist=function(W){var P,x;if(((P=W.detail)==null?void 0:P.selected)===void 0||(x=this.data)==null||!x.items)return!1;var I,O;return!((O=(I=this.data.items[W.detail.selected])==null?void 0:I.toggleMenuServiceItemRenderer)==null||!O.persistentOnMenuPopup)};
_.J.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(W){return W.menuNavigationItemRenderer?!!W.menuNavigationItemRenderer.icon:W.menuServiceItemRenderer?!!W.menuServiceItemRenderer.icon:W.menuConditionalServiceItemRenderer?!!W.menuConditionalServiceItemRenderer.icon:W.menuConditionalNavigationItemRenderer?!!W.menuConditionalNavigationItemRenderer.icon:W.toggleMenuServiceItemRenderer?!!W.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Wh.prototype.onPopupClosed=Wh.prototype.onPopupClosed;Wh.prototype.onPopupOpened=Wh.prototype.onPopupOpened;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],Wh.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],Wh.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Wh.prototype,"veData",void 0);_.f([_.c({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.l("design:type",String)],Wh.prototype,"ariaLabel",void 0);_.f([_.c({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Wh.prototype,"useIcons",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Wh.prototype,"disableBackdropFilter",void 0);_.f([_.BM("#items"),_.l("design:type",Object)],Wh.prototype,"items",void 0);_.f([_.BM("ytd-menu-popup-tip-renderer"),_.l("design:type",Object)],Wh.prototype,"popupTip",void 0);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wh.prototype,"onPopupOpened",null);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wh.prototype,"onPopupClosed",null);Wh=_.f([_.U({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Wh);
_.X(Wh,"ytd-menu-popup-renderer",function(){if(TZf!==void 0)return TZf;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return TZf=W},{mode:1});var Fl3;var q$4=_.kl(function(W){W=_.bw(W,{icon:void 0});var P=W.data;W=W.icon;var x=function(){return P().iconBadgeText},I={},O=_.O4("yt-spec-icon-badge-shape",function(){a:switch(P().iconBadgeType){case "notification":var B="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":B="yt-spec-icon-badge-shape--type-cart";break a;default:B=""}return B},function(){a:switch(P().iconBadgeStyle){case "overlay":var B="yt-spec-icon-badge-shape--style-overlay";
break a;default:B=""}return B},(I["yt-spec-icon-badge-shape--text-size-small"]=function(){var B=x();
return!!((B==null?0:B.length)&&B.length>2)},I));
return _.u("yt-icon-badge-shape",null,_.u(_.V,{cond:W,then:function(B){return _.u("div",{class:O},_.u("div",{class:"yt-spec-icon-badge-shape__icon"},_.u(_.Sy,{icon:B})),_.u(_.V,{cond:x,then:function(Y){return _.u("div",{class:"yt-spec-icon-badge-shape__badge"},Y)}}))}}))},"ig");
q$4.idomCompat=!0;_.lq(q$4,"yt-icon-badge-shape",{props:{data:_.cv,icon:_.cv}});var Ph=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};W.unseenCount=0;W.isOverlay=!1;return W};
_.A(Ph,_.b);_.J=Ph.prototype;_.J.attached=function(){var W=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(P){W.onServiceWorkerMessage(P)})};
_.J.onDataChanged=function(){this.isAttached&&!this.JSC$18169_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18169_lastData=this.data};
_.J.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.computeIcon=function(){var W,P;return(W=this.data)==null?void 0:(P=W.icon)==null?void 0:P.iconType};
_.J.onServiceWorkerMessage=function(W){W.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.J.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.Q(this.data.updateUnseenCountEndpoint,_.Y6)&&_.Q(this.data.updateUnseenCountEndpoint,_.Y6).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.J.handleUpdateNotificationsUnseenCountAction=function(W){var P=this;W=_.Q(W,cu3);W!=null&&W.unseenCount&&W.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(W.unseenCount),_.Gr.addLowPriorityJob(function(){P.data.updateUnseenCountEndpoint&&P.ytComponentBehavior.resolveCommand(P.data.updateUnseenCountEndpoint)},W.timeoutMs))};
_.J.onClick=function(){_.Lf(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var W=_.P7(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),P=this.data.menuRequest;W&&W.length===1&&W[0]?_.W7(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):P&&this.ytComponentBehavior.resolveCommand(P)};
_.J.handleTopbarMenuClosedAction=function(W){W==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.J.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
_.J.sendUnseenCountRequest=function(W){var P=this;_.VE(_.Gr,function(){P.ytComponentBehavior.resolveCommand(W)})};
_.J.updateCountUI=function(W){this.set("unseenCount",W<9?W:"9+")};
_.N1.Object.defineProperties(Ph.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Ph.prototype.handleUpdateNotificationsUnseenCountAction=Ph.prototype.handleUpdateNotificationsUnseenCountAction;Ph.prototype.onDataChanged=Ph.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Ph.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.bb),_.l("design:type",Object)],Ph.prototype,"ytdOpenPopupBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Ph.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ph.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Ph.prototype,"unseenCount",void 0);_.f([_.c(),_.l("design:type",Object)],Ph.prototype,"isOverlay",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],Ph.prototype,"showTooltips",void 0);_.f([_.BM("yt-icon-button"),_.l("design:type",Object)],Ph.prototype,"iconButton",void 0);
_.f([_.H("unseenCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ph.prototype,"showNotificationCount",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ph.prototype,"onDataChanged",null);_.f([_.I7("yt-update-notifications-unseen-count-action"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],Ph.prototype,"handleUpdateNotificationsUnseenCountAction",null);
Ph=_.f([_.U({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Ph);
_.X(Ph,"ytd-notification-topbar-button-renderer",function(){if(Fl3!==void 0)return Fl3;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Fl3=W},{mode:_.F4("kevlar_poly_si_batch_j025")?1:2});var Ll4;var xx=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return W};
_.A(xx,_.b);xx.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}}}}}};
xx.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
xx.prototype.onDarkModeToggled=function(W){this.dark=W};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],xx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],xx.prototype,"data",void 0);_.f([_.c({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],xx.prototype,"dark",void 0);
xx=_.f([_.U({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],xx);
_.X(xx,"yt-pdg-buy-flow-header-renderer",function(){if(Ll4!==void 0)return Ll4;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Ll4=W},{mode:1});var WcM;var P8v;var Iy=function(){var W=_.b.apply(this,arguments)||this;W.immediateValue=0;W.isDarkTheme=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(Iy,_.b);_.J=Iy.prototype;_.J.created=function(){_.b7.requestAvailability()};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.dataChanged=function(){var W=_.g(this.hostElement).querySelector("#color-slider");W.immediateValue&&this.updateSliderKnobAndGradientStyles(W.immediateValue);this.data.notches[0].knobColorArgb&&_.qa(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Qy(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.$$("HTML_DIR")==="rtl"&&_.g(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.J.onSliderImmediateChange=function(){var W=_.g(this.hostElement).querySelector("#color-slider");W.dragging&&(W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue)),this.updateSliderAria())};
_.J.onSliderChange=function(){var W=_.g(this.hostElement).querySelector("#color-slider");W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue));this.updateSliderAria()};
_.J.updateSliderAria=function(){var W=_.g(this.hostElement).querySelector("#color-slider"),P=_.g(this.hostElement).querySelector("#color-slider");P=_.kz(this.data.notches[P.immediateValue].tierValue);_.M7()&&_.Lf(this.hostElement,"iron-announce",{text:P});W.setAttribute("aria-valuetext",P)};
_.J.updateSuperThanksSelectedTierEntity=function(W){if(W!==this.immediateValue){var P,x,I=this==null?void 0:(P=this.data)==null?void 0:(x=P.superThanksSelectedTierEntity)==null?void 0:x.key;I&&I.length>0&&this.ytdReduxBehavior.dispatch(_.mG("superThanksSelectedTierEntity",I,{key:I,index:W}))}};
_.J.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.J.updateSliderKnobAndGradientStyles=function(W){this.immediateValue=W;W=this.data.notches[W];if(W==null?0:W.knobColorArgb)var P={"--ytd-pdg-color-slider-knob-color":_.Qy(W.knobColorArgb)};(W==null?0:W.linearGradientCssStyle)&&P!==null&&(P=Object.assign({},P,{"--ytd-pdg-color-slider-active-color":W==null?void 0:W.linearGradientCssStyle}));P!==null&&_.qa(this.hostElement,P)};
Iy.prototype.onSliderChange=Iy.prototype.onSliderChange;Iy.prototype.onSliderImmediateChange=Iy.prototype.onSliderImmediateChange;Iy.prototype.dataChanged=Iy.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],Iy.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Iy.prototype,"immediateValue",void 0);_.f([_.c(),_.l("design:type",Number)],Iy.prototype,"maxMarkers",void 0);
_.f([_.c({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$lf}),_.l("design:type",Object)],Iy.prototype,"superThanksSelectedTierEntity",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Iy.prototype,"isDarkTheme",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],Iy.prototype,"ytdReduxBehavior",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Iy.prototype,"dataChanged",null);
_.f([_.I7("immediate-value-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Iy.prototype,"onSliderImmediateChange",null);_.f([_.I7("change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Iy.prototype,"onSliderChange",null);Iy=_.f([_.U({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Iy);
_.X(Iy,"ytd-pdg-color-slider-renderer",function(){if(P8v!==void 0)return P8v;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return P8v=W},{mode:1});var x2v;var Iv6;var Oq=null;
_.vM({is:"ytd-comment-input",_template:function(){if(Iv6!==void 0)return Iv6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Iv6=W},
behaviors:[_.yTW.YtHostElementBehavior,_.tu,_.gb.YtComponentBehavior,_.TC.YtRendererstamperBehavior,_.Hez.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 _.gy}},
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",_.WM(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;_.ZR();this.focus()},
detached:function(){document.removeEventListener("tap",_.WM(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var P=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(P,W);this.maybeUpdateTextDirection_();_.Lf(this.hostElement,"input")},
getInputRange_:function(){var W=_.jQ();if(W){W=W.getBrowserRangeObject();for(var P=W.commonAncestorContainer;P;){if(P===this.getEditableTextArea_())return W;P=P.parentNode}}W=this.getEditableTextArea_();W=_.hh(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,P,x){(P=this.emojiManager.createDocumentFragment(P,!0,!1,x===void 0?!0:x))&&P.childNodes.length!==0&&(W.collapsed||W.deleteContents(),x=P.lastChild,W.insertNode(P),_.jY3(x).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var W=_.jQ();if(W){var P=W.JSC$9152_getStartNode(),x=W.JSC$9152_getEndNode();if(GK2(P)&&GK2(x)){var I=W.JSC$9152_getStartOffset(),O;if(_.Se&&P.nodeType===Node.ELEMENT_NODE&&(O=_.HMM(P)))_.hh(O,0).select();else{O=qk(P)?P:_.MT(P,qk);var B=qk(x)?x:_.MT(x,qk);if(O||B)if(W.isCollapsed()){if(P.nodeType===Node.TEXT_NODE){W=!0;I===P.length&&(W=!1);if(Oq==="end"||Oq==="right")W=!1;P=P.parentNode;W=[].concat(_.ju(P.parentNode.childNodes)).indexOf(P)+(W?0:1);_.hh(P.parentNode,W).select()}}else O?
O.previousSibling&&O.previousSibling.length>0?_.Hz(x,W.JSC$9152_getEndOffset(),O.previousSibling,O.previousSibling.length-1).select():(P=document.createTextNode("\u200b"),O.parentNode.insertBefore(P,O),_.Hz(x,W.JSC$9152_getEndOffset(),P,0).select()):B&&(B.nextSibling&&B.nextSibling.length>0?_.Hz(P,W.JSC$9152_getStartOffset(),B.nextSibling,1).select():(x=document.createTextNode("\u200b"),B.parentNode.insertBefore(x,B.nextSibling),_.Hz(P,W.JSC$9152_getStartOffset(),x,x.length).select()));Oq=null}}else Oq=
null}else Oq=null},
leftKeyPressed_:function(){Oq="left"},
rightKeyPressed_:function(){Oq="right"},
endKeyPressed_:function(){Oq="end"},
maybeDeleteChip_:function(){var W=wu3(!0);if(W){var P=_.jQ(),x=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();_.gQ(x,P,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=wu3(!1);if(W){var P=_.jQ(),x=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();_.gQ(x,P,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var P=_.jQ();if(P.isCollapsed()){var x=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();var I=hpO(x,P,!0);I&&(_.gQ(x,P,I,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var P=_.jQ();if(P.isCollapsed()){var x=P.JSC$9152_getStartNode();P=P.JSC$9152_getStartOffset();var I=hpO(x,P,!1);I&&(_.gQ(x,P,I,I.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onContentClick:function(W){W.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(W){W.defaultPrevented||W.currentTarget.tagName==="YTD-COMMENT-INPUT"&&qk(W.target)&&W.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.g(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.g(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(W,P){W=gzQ(W,this.emojiManager,P).cloneNode(!0);for(P=W.firstChild;P;)if(P.nodeType!==1)P=P.nextSibling;else switch(P.tagName){case "BR":var x=_.GT();_.f3c(x,P);P=x.nextSibling;break;case "DIV":(x=P.lastChild)&&P.nextSibling&&_.MQ(_.GT(),x);P.previousSibling&&(P.previousSibling.nodeType===1||P.previousSibling.nodeType===3&&!P.previousSibling.textContent.endsWith("\n"))&&_.D9(_.GT(),P);x&&x.nodeName==="BR"&&_.oE(x);x=P;P.hasChildNodes()?(P=P.firstChild,
_.NkP(x)):(P=P.nextSibling,_.oE(x));break;default:P=P.nextSibling}return HRM(W)},
setTextAreaValue:function(W){W||(W="");var P=this.getEditableFormattedString_();P.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});P.text=W},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Oq=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.hh(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.$$("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),P=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",P)}},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var P=this.getInputRange_();P&&(W=this.emojiInput.retrieveTextBeforeRange(P))}this.insertText_(W,!0);this.updateCharCount_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){this.isEmojiButtonDisplayed&&(W.preventDefault(),W.stopImmediatePropagation(),W=W.clipboardData.getData("text/plain"),this.insertText_(W,!1,!1),_.Lf(this.hostElement,"input"))},
insertText_:function(W,P,x){P=P===void 0?!1:P;x=x===void 0?!0:x;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var I=this.getInputRange_().cloneRange();this.emojiManager&&I&&(P&&this.emojiInput.offsetStartOfRangeBy(I,W.length),this.insertTextWithEmojis_(I,W,x),Ez9(this.getEditableTextArea_().lastChild)||(I=this.getInputRange_().cloneRange()),I&&(this.emojiInput.updateSuggestions(I,W),this.updateSuggestionOffset_(I)))}},
getSimpleString:_.kz,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computePlaceholderText_:function(W){return this.getSimpleString(W)},
computeEditableText_:function(W){return this.getSimpleString(W)},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(W,P){W?this.fire("yt-autonav-pause-focus"):P!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var P=this.getEditableTextArea_();[].concat(_.ju(W.dataTransfer.items)).forEach(function(x){x.kind==="string"&&x.type.match("^text/plain")&&x.getAsString(function(I){P.appendChild(document.createTextNode(I))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.g(this.emojiInput).querySelector("#dropdown")){var P=this.getEditableTextArea_().getBoundingClientRect().bottom,x=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(P-x)+5;P=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-P;_.g(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.$N("yt-post"));return this.localStorage}});var JU=function(){var W=_.b.apply(this,arguments)||this;W.currentCommentOptionIndex=0;W.isEmojiPickerDisplayed=!1;W.emojiManager=_.gy;W.isUgcEmpty=!1;W.userGeneratedCommentChangedHandler=function(){_.Lf(W.hostElement,"ytd-pdg-user-generated-comment-changed");W.isEmojiYtdCommentInputEnabled&&(W.isUgcEmpty=!W.ytdCommentInputEl.getTextAreaValue())};
W.pasteHandler=function(P){P.preventDefault();P.stopImmediatePropagation();var x;if(P=(x=P.clipboardData)==null?void 0:x.getData("text/plain"))x=document.getSelection().getRangeAt(0),x.collapsed||x.deleteContents(),P=document.createTextNode(P),x.insertNode(P),x.selectNodeContents(P),x.collapse(!1),P=window.getSelection(),P.removeAllRanges(),P.addRange(x)};
W.onDocumentClick=function(P){if(W.isEmojiPickerDisplayed){var x,I,O;!(P.target instanceof Node)||(x=P.composedPath())!=null&&x.includes(W.editableTextEl)||(I=P.composedPath())!=null&&I.includes(W.emojiButtonEl)||(O=P.composedPath())!=null&&O.includes(W.emojiPickerEl)||(W.isEmojiPickerDisplayed=!1)}};
return W};
_.A(JU,_.b);_.J=JU.prototype;_.J.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.J.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.J.detached=function(){var W;(W=this.contentEl)==null||W.removeEventListener("input",this.userGeneratedCommentChangedHandler);var P;(P=this.contentEl)==null||P.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.J.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.J.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var W;this.contentEl.textContent=this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.J.reloadEmojis=function(){this.emojiPickerEl&&_.Q(this.emojiPicker,_.yVM)&&this.emojiPickerEl.updateEmojiCategories()};
_.J.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.qa(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.J.handleBackgroundColorStyling=function(){var W;if((W=this.currentCommentOption)==null?0:W.commentBackgroundColorArgb){var P;_.qa(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Qy((P=this.currentCommentOption)==null?void 0:P.commentBackgroundColorArgb)})}else _.qa(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.J.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var W;(W=this.contentEl)==null||W.focus()}};
_.J.onEditButtonClick=function(W){var P=document.getSelection();P&&this.contentEl&&(W.stopPropagation(),W.preventDefault(),P.selectAllChildren(this.contentEl),P.collapseToEnd())};
_.J.onContentDrop=function(W){var P=this;if(W.dataTransfer){W=_.n(W.dataTransfer.items);for(var x=W.next();!x.done;x=W.next())x=x.value,x.kind==="string"&&x.type.match("^text/plain")&&x.getAsString(function(I){var O;(O=P.contentEl)==null||O.appendChild(document.createTextNode(I))})}};
_.J.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.J.getUserGeneratedCommentText=function(){var W,P=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(W=this.contentEl)==null?void 0:W.textContent;return P?P.trim():""};
_.J.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.J.onEmojiSelect=function(W){this.ytdCommentInputEl.onEmojiSelect(W)};
_.N1.Object.defineProperties(JU.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W;return!((W=this.currentCommentOption)==null||!W.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(_.Q((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.tYw)){var P;return _.Q((P=this.currentCommentOption)==null?void 0:P.chipRenderer,_.tYw)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var W,P;return((W=this.data)==null?0:W.commentOptionRenderers)?_.Q((P=this.data)==null?void 0:P.commentOptionRenderers[this.superThanksSelectedTierEntity.index],K49):void 0}var x,I;return((x=this.data)==null?0:x.commentOptionRenderers)?_.Q((I=this.data)==null?void 0:I.commentOptionRenderers[this.currentCommentOptionIndex],K49):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.commentDialog,_.xQc))==null?void 0:P.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.commentDialog,_.xQc))==null?void 0:P.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=_.Q((W=this.data)==null?void 0:W.commentDialog,_.xQc))==null?void 0:P.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(P=_.Q((W=this.data)==null?void 0:W.commentDialog,_.xQc))==null?void 0:P.emojiPicker;if(!_.Q(x,_.yVM)||!_.Q(x,_.yVM).categories)return!1;W=function(B){return B.emojiPickerCategoryRenderer?B.emojiPickerCategoryRenderer.emojiIds&&B.emojiPickerCategoryRenderer.emojiIds.length>0:B.emojiPickerUpsellCategoryRenderer?B.emojiPickerUpsellCategoryRenderer.emojis&&B.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var I,O;return((I=_.Q(x,_.yVM))==null?0:(O=I.categories)==null?0:O.find(W))?!0:!1}}});
JU.prototype.onEmojiSelect=JU.prototype.onEmojiSelect;JU.prototype.dataChanged=JU.prototype.dataChanged;JU.prototype.currentCommentOptionChanged=JU.prototype.currentCommentOptionChanged;_.f([_.h(_.Gp),_.l("design:type",Object)],JU.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],JU.prototype,"rendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.BM("#content-dom-if"),_.l("design:type",_.VL)],JU.prototype,"contentDomIfEl",void 0);_.f([_.BM("#content-no-emojis"),_.l("design:type",HTMLElement)],JU.prototype,"contentEl",void 0);_.f([_.BM("#container"),_.l("design:type",HTMLElement)],JU.prototype,"containerEl",void 0);_.f([_.BM("#comment-chip-container"),_.l("design:type",HTMLElement)],JU.prototype,"paidCommentChipContainerEl",void 0);_.f([_.BM("#text-input"),_.l("design:type",HTMLElement)],JU.prototype,"editableTextEl",void 0);
_.f([_.BM("#emoji-button"),_.l("design:type",HTMLElement)],JU.prototype,"emojiButtonEl",void 0);_.f([_.BM("#emoji-picker > yt-emoji-picker-renderer"),_.l("design:type",Object)],JU.prototype,"emojiPickerEl",void 0);_.f([_.BM("#text-input > ytd-comment-input"),_.l("design:type",Object)],JU.prototype,"ytdCommentInputEl",void 0);_.f([_.c(),_.l("design:type",Object)],JU.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],JU.prototype,"currentCommentOptionIndex",void 0);
_.f([_.c({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$lf}),_.l("design:type",Object)],JU.prototype,"superThanksSelectedTierEntity",void 0);_.f([_.c(),_.l("design:type",Object)],JU.prototype,"isEmojiPickerDisplayed",void 0);_.f([_.c(),_.l("design:type",Object)],JU.prototype,"emojiManager",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],JU.prototype,"isUgcEmpty",void 0);
_.f([_.OZ("currentCommentOption"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JU.prototype,"currentCommentOptionChanged",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JU.prototype,"dataChanged",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],JU.prototype,"isEmojiYtdCommentInputEnabled",null);
_.f([_.H("data.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"title",null);_.f([_.H("data.authorText"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"channelName",null);_.f([_.H("data.commentOptionRenderers","currentCommentOption"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],JU.prototype,"shouldShowPaidCommentChipRenderer",null);
_.f([_.H("data.commentOptionRenderers","currentCommentOption"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"paidCommentChipRenderer",null);_.f([_.H("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"currentCommentOption",null);
_.f([_.H("data.defaultCommentText","superThanksSelectedTierEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"commentText",null);_.f([_.H("data.placeholderText"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"placeholderText",null);_.f([_.H("data.commentDialog.commentDialogRenderer.editableText"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"editableText",null);
_.f([_.H("data.commentDialog.commentDialogRenderer.emojiButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"emojiButton",null);_.f([_.H("data.commentDialog.commentDialogRenderer.emojiPicker"),_.l("design:type",Object),_.l("design:paramtypes",[])],JU.prototype,"emojiPicker",null);
_.f([_.H("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],JU.prototype,"isEmojiButtonDisplayed",null);_.f([_.I7("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],JU.prototype,"onEmojiSelect",null);JU=_.f([_.U({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],JU);
_.X(JU,"ytd-pdg-comment-preview-renderer",function(){if(x2v!==void 0)return x2v;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return x2v=W},{mode:2});var OO2;var Bh=function(){var W=_.b.apply(this,arguments)||this;W.selected=!1;return W};
_.A(Bh,_.b);_.J=Bh.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.J.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.J.dataChanged=function(){this.data&&(_.rT(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.qa(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Qy(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Qy(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.J.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.J.onClick=function(){this.logClick()};
_.J.onKeyboardSelect=function(){_.Lf(this.hostElement,"tap");this.onClick()};
_.J.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Bh.prototype.onClick=Bh.prototype.onClick;Bh.prototype.selectedChanged=Bh.prototype.selectedChanged;Bh.prototype.dataChanged=Bh.prototype.dataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Bh.prototype,"componentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.tu),_.l("design:type",Object)],Bh.prototype,"ironA11yKeysBehavior",void 0);
_.f([_.h(_.$l),_.l("design:type",Object)],Bh.prototype,"ironSelectableBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Bh.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Bh.prototype,"shownThumbnail",void 0);_.f([_.c(),_.l("design:type",Object)],Bh.prototype,"basePriceText",void 0);_.f([_.c(),_.l("design:type",Object)],Bh.prototype,"purchaseCommand",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Bh.prototype,"selected",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bh.prototype,"dataChanged",null);_.f([_.OZ("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bh.prototype,"selectedChanged",null);_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bh.prototype,"onClick",null);
Bh=_.f([_.U({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Bh);
_.X(Bh,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(OO2!==void 0)return OO2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return OO2=W},{mode:1});var n1=function(){var W=_.b.apply(this,arguments)||this;W.selectedItemIndex=0;W.buyButtonDisabled=!1;return W};
_.A(n1,_.b);_.J=n1.prototype;
_.J.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]]"}}}}}};
_.J.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var W;var P=(W=_.Q(this.data.colorSlider,yc4))==null?void 0:W.notches[this.selectedItemIndex].purchaseCommand}else{var x;P=(x=_.Q(this.data.selectableItemButtons[this.selectedItemIndex],oZ6))==null?void 0:x.purchaseCommand}if(P){W=_.Q(P,_.Rlw);W.productData||(W.productData={});var I;W.productData={pdgData:{commentMessageText:(I=this.commentPreviewRenderer)==null?void 0:I.getUserGeneratedCommentText()}};
_.Lf(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(P)}}};
_.J.dataChanged=function(){if(this.data){_.gy.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.dNl(_.gy,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.gy.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var W;this.buyButtonDisabled=!((W=_.Q(this.data.commentPreview,Zwd))==null||!W.placeholderText);this.updatePriceSelectorStatus();var P;if((P=this.data)==null?0:P.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;W=[];this.data.preloadImages&&(W=this.data.preloadImages);
W=W.map(function(x){return _.Tm(x.thumbnails,1920)});
W=_.n(W);for(P=W.next();!P.done;P=W.next())(P=P.value)&&_.hmR(P).thenCatch(function(){_.ge(Error("kl"))})}};
_.J.superThanksSelectedTierEntityChanged=function(){var W;(this==null?void 0:(W=this.superThanksSelectedTierEntity)==null?void 0:W.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.J.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.J.updatePriceSelectorStatus=function(){this.isColorSlider?(_.g(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.g(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.g(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.g(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.J.closeBuyFlow=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.J.onUserGeneratedContentChanged=function(){var W;this.buyButtonDisabled=!((W=this.commentPreviewRenderer)==null?0:W.getUserGeneratedCommentText())};
_.J.updateSelectedItemIndexFromBinding=function(W){this.selectedItemIndex=W.detail.value};
_.N1.Object.defineProperties(n1.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disclaimerText)}}});
n1.prototype.onUserGeneratedContentChanged=n1.prototype.onUserGeneratedContentChanged;n1.prototype.closeBuyFlow=n1.prototype.closeBuyFlow;n1.prototype.selectedItemIndexChanged=n1.prototype.selectedItemIndexChanged;n1.prototype.superThanksSelectedTierEntityChanged=n1.prototype.superThanksSelectedTierEntityChanged;n1.prototype.dataChanged=n1.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],n1.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],n1.prototype,"selectedItemIndex",void 0);_.f([_.c(),_.l("design:type",Boolean)],n1.prototype,"isColorSlider",void 0);
_.f([_.c(),_.l("design:type",Object)],n1.prototype,"buyButtonDisabled",void 0);_.f([_.c({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$lf}),_.l("design:type",Object)],n1.prototype,"superThanksSelectedTierEntity",void 0);_.f([_.BM("ytd-pdg-comment-preview-renderer"),_.l("design:type",Object)],n1.prototype,"commentPreviewRenderer",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],n1.prototype,"ytdReduxBehavior",void 0);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],n1.prototype,"dataChanged",null);_.f([_.OZ("superThanksSelectedTierEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],n1.prototype,"superThanksSelectedTierEntityChanged",null);_.f([_.OZ("selectedItemIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],n1.prototype,"selectedItemIndexChanged",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],n1.prototype,"closeBuyFlow",null);_.f([_.I7("ytd-pdg-user-generated-comment-changed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],n1.prototype,"onUserGeneratedContentChanged",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],n1.prototype,"isDisclaimerTextShown",null);
n1=_.f([_.U({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],n1);
_.X(n1,"yt-super-vod-buy-flow-content-renderer",function(){if(WcM!==void 0)return WcM;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return WcM=W},{mode:1});var JLv;var Yx=function(){var W=_.b.apply(this,arguments)||this;W.lottieAnimationRef={};return W};
_.A(Yx,_.b);_.J=Yx.prototype;_.J.created=function(){_.b7.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.WM(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.J.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Lf(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.J.detached=function(){this.autoCloseJobId&&_.Gr.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.WM(this,this.onPopupIronOverlayOpened))};
_.J.dataChanged=function(){var W=this;this.data&&this.data.autoCloseDelay&&(_.W7(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Fo(_.Gr,function(){W.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.qa(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.J.onDOMLoadedLottie=function(){var W=this,P,x,I=Number((P=this.data)==null?void 0:(x=P.autoCloseDelay)==null?void 0:x.seconds)||0;this.fadeOutJobId=_.Fo(_.Gr,function(){W.lottiePlayerEl.classList.add("fadeout")},(I-.25)*1E3);
this.autoCloseJobId=_.Fo(_.Gr,function(){W.closePopup()},I*1E3)};
_.J.openPopup=function(){this.ironOverlayBehavior.open()};
_.J.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.W7(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.OL(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.FY().resolve(_.qR).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Gr.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Gr.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.J.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var W,P;(W=this.lottieAnimationRef)==null||(P=W.lottieEl)==null||P.destroy();W=this.data.lottie;var x,I;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:W.url+"_"+Math.random(),path:W.url,autoplay:!0,loop:(I=(x=W.settings)==null?void 0:x.loop)!=null?I:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.N1.Object.defineProperties(Yx.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var W,P;return!!((W=this.data)==null?0:(P=W.lottie)==null?0:P.url)}}});
Yx.prototype.maybeInitializeLottie=Yx.prototype.maybeInitializeLottie;Yx.prototype.dataChanged=Yx.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Yx.prototype,"rendererBehavior",void 0);_.f([_.h(_.NK),_.l("design:type",Object)],Yx.prototype,"ironOverlayBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Yx.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Yx.prototype,"lottiePlayerProps",void 0);
_.f([_.c(),_.l("design:type",Object)],Yx.prototype,"lottieAnimationRef",void 0);_.f([_.BM("ytd-lottie-player"),_.l("design:type",HTMLElement)],Yx.prototype,"lottiePlayerEl",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yx.prototype,"dataChanged",null);_.f([_.H("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Yx.prototype,"hasLottieAnimation",null);
_.f([_.OZ("data.lottie.url"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yx.prototype,"maybeInitializeLottie",null);Yx=_.f([_.U({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Yx);
_.X(Yx,"ytd-desktop-image-overlay-renderer",function(){if(JLv!==void 0)return JLv;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return JLv=W},{mode:1});var BCB;var yr=function(){return _.b.apply(this,arguments)||this};
_.A(yr,_.b);_.J=yr.prototype;_.J.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"}}}}};
_.J.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",_.WM(this,this.closePopup))};
_.J.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.WM(this,this.closePopup))};
_.J.dataChanged=function(){_.P7(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.Q(this.data.header,YtM)&&(this.hasBackgroundBanner=!!_.Q(this.data.header,YtM).backgroundBanner)};
_.J.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.WM(this,this.closePopup))};
_.J.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Iu(this.hostElement,[this.data.onCloseCommand])};
yr.prototype.handleBuyflowSelectionSubmitted=yr.prototype.handleBuyflowSelectionSubmitted;yr.prototype.dataChanged=yr.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],yr.prototype,"data",void 0);
_.f([_.c({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],yr.prototype,"hasBackgroundBanner",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yr.prototype,"dataChanged",null);_.f([_.I7("yt-pdg-buy-flow-selection-submitted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yr.prototype,"handleBuyflowSelectionSubmitted",null);
yr=_.f([_.U({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],yr);
_.X(yr,"ytd-pdg-buy-flow-renderer",function(){if(BCB!==void 0)return BCB;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return BCB=W},{mode:1});var nJ9;var K1=function(){var W=_.b.apply(this,arguments)||this;W.isOpen=!1;W.isPlaylistCreated=!1;return W};
_.A(K1,_.b);_.J=K1.prototype;_.J.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.J.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Lf(this.hostElement,"yt-refit")};
_.J.onCreateTap=function(){var W=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Iu(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(P,x){if(!_.p("killswitch_ep_in_create_playlist_response")&&(x==null?0:x.actions))for(P=_.n(x.actions),x=P.next();!x.done;x=P.next())x=x.value,_.Q(x,_.wh)&&W.ytComponentBehavior.resolveCommand(x)}}]),this.isPlaylistCreated=!0)};
_.J.onKeydown=function(W){if(W.keyCode===13)this.onCreateTap()};
_.J.onServiceRequestCompleted=function(W){W.stopPropagation();_.W7(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.J.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
K1.prototype.onServiceRequestCompleted=K1.prototype.onServiceRequestCompleted;K1.prototype.onKeydown=K1.prototype.onKeydown;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],K1.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],K1.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],K1.prototype,"isOpen",void 0);
_.f([_.c(),_.l("design:type",Object)],K1.prototype,"isPlaylistCreated",void 0);_.f([_.c({value:{REQUIRED_LABEL:_.KK("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.KK("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.l("design:type",Object)],K1.prototype,"addToStrings",void 0);_.f([_.c({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.l("design:type",Array)],K1.prototype,"privacyBadge",void 0);
_.f([_.BM("#privacy-input"),_.l("design:type",Object)],K1.prototype,"privacyInput",void 0);_.f([_.BM("#name-input"),_.l("design:type",Object)],K1.prototype,"nameInput",void 0);_.f([_.I7("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],K1.prototype,"onKeydown",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],K1.prototype,"onServiceRequestCompleted",null);
K1=_.f([_.U({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],K1);
_.X(K1,"ytd-add-to-playlist-create-renderer",function(){if(nJ9!==void 0)return nJ9;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return nJ9=W},{mode:1});var YBL;var yLB;var ZQ=function(){var W=_.b.apply(this,arguments)||this;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.A(ZQ,_.b);ZQ.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
ZQ.prototype.onCheckboxChange=function(W){var P=this;this.data&&_.De(this,"yt-playlist-checkbox-changed",function(){var x=_.af(W).checked?P.data.addToPlaylistServiceEndpoint:P.data.removeFromPlaylistServiceEndpoint;x&&_.FY().resolve(_.qR).resolveCommand(x,{form:{element:P.hostElement}});_.p("dl_playlist_killswitch")||P.transferState!=="TRANSFER_STATE_UNKNOWN"&&P.transferState!=="TRANSFER_STATE_FAILED"&&P.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:P.data.playlistId,action:"ACTION_SYNC"}})},
100)};
ZQ.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
ZQ.prototype.dataChanged=ZQ.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ZQ.prototype,"data",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],ZQ.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ZQ.prototype,"ytComponentBehavior",void 0);_.f([_.BM("#checkbox"),_.l("design:type",HTMLInputElement)],ZQ.prototype,"checkbox",void 0);
_.f([_.c({selector:_.En,selectorArgs:["data.playlistId"]}),_.l("design:type",String)],ZQ.prototype,"transferState",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZQ.prototype,"dataChanged",null);ZQ=_.f([_.U({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],ZQ);
_.X(ZQ,"ytd-playlist-add-to-option-renderer",function(){if(yLB!==void 0)return yLB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return yLB=W},{mode:1});_.ql(epy);_.WF(epy,"ytd-menu-title-renderer",{propNames:["data"]});var oy=function(){var W=_.b.apply(this,arguments)||this;W.addToStrings={ADD_TO_DROPDOWN_LABEL:_.KK("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};W.closeButtonAriaLabel=_.KK("SBOX_INAPPROPRIATE_CANCEL");W.dialog=_.p("desktop_add_to_playlist_renderer_dialog_popup");return W};
_.A(oy,_.b);_.J=oy.prototype;_.J.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"}}}};
_.J.onPopupOpened=function(){_.iS(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.J.onPopupClosed=function(){_.iS(this.playlists,"scrollable",!1)};
_.J.computeAriaLabel=function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.n(this.data.actions);for(var P=W.next();!P.done;P=W.next())if(P=P.value,P.menuTitleRenderer)return _.kz(P.menuTitleRenderer.title)}};
_.J.onTapClose=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.N1.Object.defineProperties(oy.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.n(this.data.actions);for(var P=W.next();!P.done;P=W.next())if(P=P.value,P.menuTitleRenderer)return P.menuTitleRenderer}return!1}}});
oy.prototype.onPopupClosed=oy.prototype.onPopupClosed;oy.prototype.onPopupOpened=oy.prototype.onPopupOpened;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],oy.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],oy.prototype,"ytRendererStamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],oy.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],oy.prototype,"addToStrings",void 0);_.f([_.c({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.l("design:type",String)],oy.prototype,"ariaLabel",void 0);_.f([_.c(),_.l("design:type",String)],oy.prototype,"closeButtonAriaLabel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],oy.prototype,"dialog",void 0);
_.f([_.BM("#playlists"),_.l("design:type",HTMLElement)],oy.prototype,"playlists",void 0);_.f([_.BM("ytd-add-to-playlist-create-renderer"),_.l("design:type",Object)],oy.prototype,"createRenderer",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],oy.prototype,"menuTitleRenderer",null);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oy.prototype,"onPopupOpened",null);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oy.prototype,"onPopupClosed",null);oy=_.f([_.U({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],oy);
_.X(oy,"ytd-add-to-playlist-renderer",function(){if(YBL!==void 0)return YBL;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return YBL=W},{mode:1});var Kc6;var SR=function(){var W=_.b.apply(this,arguments)||this;W.isPlaylistEditComplete=!1;W.isCollabEngagementDisabled=!1;W.closeButtonAriaLabel=_.KK("SBOX_INAPPROPRIATE_CANCEL");W.saveButton={title:_.KK("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"};W.onValueChanged=function(){W.updateSaveButtonState();W.computeCollabEngagementDisabled()};
return W};
_.A(SR,_.b);_.J=SR.prototype;_.J.attached=function(){this.JSC$18225_scroller&&(this.JSC$18225_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18225_scroller.attached&&typeof this.JSC$18225_scroller.attached==="function"&&this.JSC$18225_scroller.attached())};
_.J.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.J.onPopupClosed=function(){this.reset()};
_.J.close=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.J.onClickSave=function(){var W=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var P=[];this.nameInput.value!==null&&P.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&P.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var x=Number(this.privacyInput.value);isNaN(x)||P.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:x})}this.votingInput.value!==null&&(x=this.votingInput.value)&&P.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:x});if(P.length>0){var I;_.Q((I=this.data)==null?void 0:I.updateSettingsEndpoint,_.Dy).actions=P;var O;if((O=this.data)==null?0:O.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){W.close()}}}),this.isPlaylistEditComplete=!0}}};
_.J.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
_.J.computeEditorData=function(W){var P,x;return W==null?void 0:(P=W.sections)==null?void 0:(x=P[0])==null?void 0:x.playlistSettingsEditorCasualSectionRenderer};
_.J.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.J.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}}}}}};
_.J.computeAriaLabel=function(){var W,P,x,I=(W=this.data)==null?void 0:(P=W.sections)==null?void 0:(x=P[0])==null?void 0:x.playlistSettingsEditorCasualSectionRenderer;return _.kz(I==null?void 0:I.title)};
_.J.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"}))};
_.J.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.J.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.J.isNameChanged=function(){var W,P,x;return(((W=this.editorData)==null?void 0:(P=W.name)==null?void 0:(x=P.textInputFormFieldRenderer)==null?void 0:x.value)||"")!==(this.nameInput.value||"")};
_.J.isDescriptionChanged=function(){var W,P,x;return(((W=this.editorData)==null?void 0:(P=W.description)==null?void 0:(x=P.textInputFormFieldRenderer)==null?void 0:x.value)||"")!==(this.descriptionInput.value||"")};
_.J.isPrivacyChanged=function(){var W,P,x,I,O,B,Y,K;return((Y=(W=this.editorData)==null?void 0:(P=W.privacy)==null?void 0:(x=P.dropdownFormFieldRenderer)==null?void 0:(I=x.dropdown)==null?void 0:(O=I.dropdownRenderer)==null?void 0:(B=O.entries)==null?void 0:B.find(function(Z){var d;return Z==null?void 0:(d=Z.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(K=Y.privacyDropdownItemRenderer)==null?void 0:K.int32Value)!==this.privacyInput.value};
_.J.isVotingChanged=function(){var W,P,x,I,O,B,Y,K;return((Y=(W=this.editorData)==null?void 0:(P=W.voting)==null?void 0:(x=P.dropdownFormFieldRenderer)==null?void 0:(I=x.dropdown)==null?void 0:(O=I.dropdownRenderer)==null?void 0:(B=O.entries)==null?void 0:B.find(function(Z){var d;return Z==null?void 0:(d=Z.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(K=Y.privacyDropdownItemRenderer)==null?void 0:K.int32Value)!==this.votingInput.value};
SR.prototype.onPopupClosed=SR.prototype.onPopupClosed;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],SR.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],SR.prototype,"ytRendererStamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],SR.prototype,"data",void 0);_.f([_.c({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.l("design:type",Array)],SR.prototype,"privacyBadge",void 0);_.f([_.c({computed:"computeEditorData(data)"}),_.l("design:type",Object)],SR.prototype,"editorData",void 0);_.f([_.c(),_.l("design:type",Object)],SR.prototype,"isPlaylistEditComplete",void 0);_.f([_.c(),_.l("design:type",Object)],SR.prototype,"isCollabEngagementDisabled",void 0);
_.f([_.c({value:{REQUIRED_LABEL:_.KK("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.KK("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.l("design:type",Object)],SR.prototype,"addToStrings",void 0);_.f([_.c({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.l("design:type",String)],SR.prototype,"ariaLabel",void 0);_.f([_.c(),_.l("design:type",String)],SR.prototype,"closeButtonAriaLabel",void 0);
_.f([_.c(),_.l("design:type",Object)],SR.prototype,"saveButton",void 0);_.f([_.BM("#name-input"),_.l("design:type",Object)],SR.prototype,"nameInput",void 0);_.f([_.BM("#description-input"),_.l("design:type",Object)],SR.prototype,"descriptionInput",void 0);_.f([_.BM("#privacy-input"),_.l("design:type",Object)],SR.prototype,"privacyInput",void 0);_.f([_.BM("#voting-input"),_.l("design:type",Object)],SR.prototype,"votingInput",void 0);
_.f([_.BM("#scroller"),_.l("design:type",Object)],SR.prototype,"JSC$18225_scroller",void 0);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SR.prototype,"onPopupClosed",null);_.f([_.c(),_.l("design:type",Object)],SR.prototype,"onValueChanged",void 0);SR=_.f([_.U({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],SR);
_.X(SR,"ytd-playlist-settings-editor-renderer",function(){if(Kc6===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);Kc6=W}W=Kc6;return W},{mode:1});var ZOB;_.Ad("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var u$=function(){return _.b.apply(this,arguments)||this};
_.A(u$,_.b);_.J=u$.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.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 W=this.get("data.nextButton.buttonRenderer.navigationEndpoint");W&&(this.nextNavigationEndpoint=W,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.J.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 W={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",W)}}};
_.J.onPopupOpened=function(W){W.detail!==this&&W.detail!==this.hostElement||!_.p("enable_premium_voluntary_pause")||_.W7(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.J.onNextButtonTap=function(){var W=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);W&&this.ytdOpenPopupBehavior.openPopup(W)};
_.J.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
u$.prototype.onPopupOpened=u$.prototype.onPopupOpened;u$.prototype.onSelectedResponseIndexChange=u$.prototype.onSelectedResponseIndexChange;u$.prototype.dataChanged=u$.prototype.dataChanged;_.f([_.h(_.bb),_.l("design:type",Object)],u$.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],u$.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],u$.prototype,"selectedResponseIndex",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],u$.prototype,"dataChanged",null);_.f([_.OZ("selectedResponseIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],u$.prototype,"onSelectedResponseIndexChange",null);
_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],u$.prototype,"onPopupOpened",null);u$=_.f([_.U({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],u$);
_.X(u$,"ytd-red-cancel-survey-renderer",function(){if(ZOB!==void 0)return ZOB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ZOB=W},{mode:1});var oJm;var dF=function(){var W=_.b.apply(this,arguments)||this;W.closeButtonAriaLabel=_.KK("SBOX_INAPPROPRIATE_CANCEL");return W};
_.A(dF,_.b);dF.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
dF.prototype.onClickClose=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],dF.prototype,"rendererStamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],dF.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],dF.prototype,"closeButtonAriaLabel",void 0);dF=_.f([_.U({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],dF);
_.X(dF,"ytd-search-filter-options-dialog-renderer",function(){if(oJm!==void 0)return oJm;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return oJm=W},{mode:1});var SB4;var bRv=function(){return function(W){W=W.availabilityType;return W===void 0||W==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||W==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var sq=function(){var W=_.b.apply(this,arguments)||this;W.qualityOptions=[];W.upsellOptions=[];W.showUpsellSection=!1;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.rememberSettingsChecked=!1;return W};
_.A(sq,_.b);_.J=sq.prototype;_.J.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}}}}};
_.J.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.J.updateQualityOptions=function(){if(this.formats===void 0)_.W7(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var W=[],P=[];this.showUpsellSection=!1;for(var x=_.n(this.formats),I=x.next();!I.done;I=x.next())(I=I.value)&&(I.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?P.push(I):W.push(I));W.length&&(this.qualityOptions=a5M(W));P.length&&(this.showUpsellSection=!0,this.upsellOptions=a5M(P))}};
_.J.updateRememberString=function(){if(this.downloadQualityPickerEntity)var W=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var P;W=(P=this.data)==null?void 0:P.premiumRememberSettingString}else{var x;W=(x=this.data)==null?void 0:x.rememberSettingString}W=W===void 0?_.KK("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):W;this.rememberSettingsCheckboxRenderer={title:_.Ru(W),disabled:!1}};
_.J.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.N1.Object.defineProperties(sq.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
sq.prototype.updateRememberString=sq.prototype.updateRememberString;sq.prototype.updateQualityOptions=sq.prototype.updateQualityOptions;sq.prototype.dataChanged=sq.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],sq.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sq.prototype,"data",void 0);
_.f([_.h(_.Gp),_.l("design:type",Object)],sq.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Boolean)],sq.prototype,"selectedUpsellQuality",void 0);_.f([_.c({computed:"computeIcon_(data.premiumIcon)",value:""}),_.l("design:type",String)],sq.prototype,"premiumIcon",void 0);_.f([_.c({selector:EN3,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.l("design:type",Object)],sq.prototype,"downloadQualityPickerEntity",void 0);
_.f([_.c(),_.l("design:type",Array)],sq.prototype,"qualityOptions",void 0);_.f([_.c(),_.l("design:type",Array)],sq.prototype,"upsellOptions",void 0);_.f([_.c(),_.l("design:type",Object)],sq.prototype,"showUpsellSection",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],sq.prototype,"darkerDarkTheme",void 0);_.f([_.c(),_.l("design:type",Object)],sq.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.f([_.BM("#remember-settings"),_.l("design:type",HTMLInputElement)],sq.prototype,"rememberSettingsCheckbox",void 0);_.f([_.c(),_.l("design:type",Object)],sq.prototype,"rememberSettingsChecked",void 0);_.f([_.c(),_.l("design:type",Function)],sq.prototype,"onRememberSettingsCheckedChanged",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sq.prototype,"dataChanged",null);
_.f([_.OZ("downloadQualityPickerEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sq.prototype,"updateQualityOptions",null);_.f([_.OZ("selectedUpsellQuality"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sq.prototype,"updateRememberString",null);sq=_.f([_.U({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],sq);
_.X(sq,"ytd-download-quality-selector-content",function(){if(SB4!==void 0)return SB4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return SB4=W},{mode:1});var uxG;var vh=function(){var W=_.b.apply(this,arguments)||this;W.selectedUpsellQuality=!1;W.qualityOptions=[];W.darkerDarkTheme=_.p("web_darker_dark_theme");W.useUpsellDismissAlternate=_.p("use_not_now_dl_upsell_dismiss_cta");W.shouldShowAlternateUpsellDimiss=!1;W.rememberSettings=!1;W.rememberSettingsChecked=!1;W.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};W.rememberSettingsCheckedChanged=function(P){W.rememberSettingsChecked=P};
return W};
_.A(vh,_.b);_.J=vh.prototype;
_.J.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ru(_.KK("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ru(_.KK("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ru(_.KK("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ru(_.KK("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.J.updateQualityOptions=function(){this.formats===void 0?_.W7(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=a5M(this.formats)};
_.J.onQualityOptionsSelect=function(W){if(this.qualityOptions&&W){W!==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 P=_.n(this.qualityOptions.entries()),x=P.next();!x.done;x=
P.next()){x=_.n(x.value);var I=x.next().value;x=x.next().value;var O=void 0,B=void 0;if(((O=x)==null?void 0:(B=O.settingsRadioOptionRenderer)==null?void 0:B.id)===W){this.selectedQualityIndex=I;W=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((W=this.formats[I])==null?void 0:W.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.J.onClickSubmit=function(){var W;if((W=this.downloadButtonRenderer)==null||!W.isDisabled){var P,x;W=(x=(P=this.data)==null?void 0:P.onSubmitEndpoint)!=null?x:{};var I,O;if(this.formats&&(((I=_.Q(W,_.ZZ))==null?0:I.videoId)||((O=_.Q(W,_.SK))==null?0:O.playlistId))){var B,Y,K,Z,d,v;P={formatType:(Z=(B=this.formats)==null?void 0:(Y=B[(K=this.selectedQualityIndex)!=null?K:0])==null?void 0:Y.format)!=null?Z:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(d=this.getOfflineEndpoint(W))==null?void 0:(v=d.actionParams)==null?void 0:v.settingsAction)};this.getOfflineEndpoint(W).actionParams=P;this.ytComponentBehavior.resolveCommand(W)}_.W7(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.J.onClickUpsell=function(){var W;if((W=this.upsellButtonRenderer)==null||!W.isDisabled){var P,x;W=(x=(P=this.data)==null?void 0:P.upsellEndpoint)!=null?x:{};this.ytComponentBehavior.resolveCommand(W);_.W7(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);P="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var I,O,B,Y;P=(Y=(I=this.formats)==null?void 0:(O=I[(B=this.selectedQualityIndex)!=null?B:0])==null?void 0:O.format)!=null?Y:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:P}})}};
_.J.onClickClose=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.J.getOfflineSettingsAction=function(W,P){return W?P===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":P:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.J.getOfflineEndpoint=function(W){return _.Q(W,_.ZZ)?_.Q(W,_.ZZ):_.Q(W,_.SK)};
_.N1.Object.defineProperties(vh.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Ru(_.KK("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
vh.prototype.updateQualityOptions=vh.prototype.updateQualityOptions;vh.prototype.dataChanged=vh.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],vh.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],vh.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],vh.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Number)],vh.prototype,"selectedQualityIndex",void 0);_.f([_.c(),_.l("design:type",Object)],vh.prototype,"selectedUpsellQuality",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],vh.prototype,"ytdReduxBehavior",void 0);
_.f([_.c({selector:EN3,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.l("design:type",Object)],vh.prototype,"downloadQualityPickerEntity",void 0);_.f([_.c(),_.l("design:type",Array)],vh.prototype,"qualityOptions",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],vh.prototype,"darkerDarkTheme",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],vh.prototype,"useUpsellDismissAlternate",void 0);
_.f([_.c(),_.l("design:type",Object)],vh.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.f([_.c(),_.l("design:type",Object)],vh.prototype,"downloadButtonRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],vh.prototype,"upsellButtonRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],vh.prototype,"cancelButtonRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],vh.prototype,"upsellCancelButtonRenderer",void 0);_.f([_.c(),_.l("design:type",Object)],vh.prototype,"rememberSettings",void 0);
_.f([_.c(),_.l("design:type",Object)],vh.prototype,"rememberSettingsChecked",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vh.prototype,"dataChanged",null);_.f([_.OZ("downloadQualityPickerEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vh.prototype,"updateQualityOptions",null);vh=_.f([_.U({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],vh);
_.X(vh,"ytd-download-quality-selector-renderer",function(){if(uxG!==void 0)return uxG;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return uxG=W},{mode:1});var d26;var m6=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(m6,_.b);m6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
m6.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"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],m6.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],m6.prototype,"darkerDarkTheme",void 0);_.f([_.c({computed:"computeIcon_(data.infoIcon)"}),_.l("design:type",Object)],m6.prototype,"infoIcon",void 0);
_.f([_.c({computed:"computeIcon_(data.warningIcon)"}),_.l("design:type",Object)],m6.prototype,"warningIcon",void 0);m6=_.f([_.U({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],m6);
_.X(m6,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(d26!==void 0)return d26;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return d26=W},{mode:1});var sr4;var Vr=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(Vr,_.b);Vr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Vr.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"}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Vr.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Vr.prototype,"darkerDarkTheme",void 0);Vr=_.f([_.U({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Vr);
_.X(Vr,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(sr4!==void 0)return sr4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return sr4=W},{mode:1});var vJG;var tU=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(tU,_.b);tU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
tU.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"}}}}};
tU.prototype.onServiceRequestSentOrCompleted=function(W,P){P&&P.actions&&P.actions.length>0&&_.W7(this.hostElement,"yt-close-popup-action",[this.is])};
tU.prototype.onServiceRequestSentOrCompleted=tU.prototype.onServiceRequestSentOrCompleted;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],tU.prototype,"darkerDarkTheme",void 0);_.f([_.c(),_.l("design:type",Object)],tU.prototype,"data",void 0);
_.f([_.I7("yt-service-request-completed"),_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],tU.prototype,"onServiceRequestSentOrCompleted",null);tU=_.f([_.U({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],tU);
_.X(tU,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(vJG!==void 0)return vJG;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return vJG=W},{mode:1});var m2L;var p1=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.submitButtonDisabled=!0;return W};
_.A(p1,_.b);_.J=p1.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.J.onDataChanged=function(){var W,P,x;if(((W=this.data)==null?void 0:(P=W.confirmButton)==null?void 0:(x=P.buttonRenderer)==null?void 0:x.isDisabled)!==void 0){var I,O,B;this.submitButtonDisabled=(I=this.data)==null?void 0:(O=I.confirmButton)==null?void 0:(B=O.buttonRenderer)==null?void 0:B.isDisabled}};
_.J.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.J.updateSubmitButtonDisabledFromBinding=function(W){this.submitButtonDisabled=W.detail.value};
_.J.updateSubmitButtonDisabledFromConfirmCheckbox=function(W){this.submitButtonDisabled=!W.detail.value};
p1.prototype.onDataChanged=p1.prototype.onDataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],p1.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],p1.prototype,"darkerDarkTheme",void 0);
_.f([_.c(),_.l("design:type",Object)],p1.prototype,"submitButtonDisabled",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p1.prototype,"onDataChanged",null);p1=_.f([_.U({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],p1);
_.X(p1,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(m2L!==void 0)return m2L;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return m2L=W},{mode:1});var VM3;var jR=function(){return _.b.apply(this,arguments)||this};
_.A(jR,_.b);_.N1.Object.defineProperties(jR.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var W,P,x;return((W=this.data)==null?void 0:W.title)+" "+((P=this.data)==null?void 0:P.metadataPrimary)+" "+((x=this.data)==null?void 0:x.metadataSecondary)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],jR.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jR.prototype,"data",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jR.prototype,"ariaLabel",null);jR=_.f([_.U({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],jR);
_.X(jR,"ytd-compact-product-list-item-renderer",function(){if(VM3!==void 0)return VM3;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return VM3=W},{mode:1});var tM6;var Qr=function(){return _.b.apply(this,arguments)||this};
_.A(Qr,_.b);Qr.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]]"}}}}}};
_.N1.Object.defineProperties(Qr.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Qr.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Qr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Qr.prototype,"data",void 0);Qr=_.f([_.U({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Qr);
_.X(Qr,"ytd-compact-product-list-renderer",function(){if(tM6!==void 0)return tM6;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return tM6=W},{mode:1});var pem;var C1=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(C1,_.b);_.J=C1.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.J.getBackgroundUrl=function(){var W=this.get("data.headerImage.thumbnails");return W?"url("+_.Tm(W,this.hostElement.clientWidth)+")":""};
_.J.onDataChanged=function(){var W=this.getBackgroundUrl();W&&(this.header.style.backgroundImage=W);W=_.E_();var P=_.G7(),x=this.get("data.trackingParams");x&&P&&W&&_.hn(W,P,_.ox(x));W=_.n(this.hostElement.querySelectorAll("yt-img-shadow"));for(P=W.next();!P.done;P=W.next())P.value.onShow()};
_.J.onPopupClosed=function(W){_.af(W).localName==="ytd-membership-post-cancel-renderer"&&_.W7(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
C1.prototype.onPopupClosed=C1.prototype.onPopupClosed;C1.prototype.onDataChanged=C1.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],C1.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],C1.prototype,"darkerDarkTheme",void 0);
_.f([_.BM("#header"),_.l("design:type",HTMLDivElement)],C1.prototype,"header",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C1.prototype,"onDataChanged",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],C1.prototype,"onPopupClosed",null);C1=_.f([_.U({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],C1);
_.X(C1,"ytd-membership-post-cancel-renderer",function(){if(pem!==void 0)return pem;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return pem=W},{mode:1});var jr4;var AU=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(AU,_.b);AU.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
AU.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],AU.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],AU.prototype,"darkerDarkTheme",void 0);_.f([_.BM("ytd-feedback-survey-renderer"),_.l("design:type",Object)],AU.prototype,"feedbackSurveyRenderer",void 0);AU=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],AU);
_.X(AU,"ytd-sponsorship-confirm-cancel-content",function(){if(jr4!==void 0)return jr4;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return jr4=W},{mode:1});var Qr6;var z9=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.content&&W.content.maybeSubmitFeedback()};
return W};
_.A(z9,_.b);_.J=z9.prototype;_.J.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.J.onYtPopupOpened=function(W,P){P===this&&this.data&&this.data.onOpenCommands&&_.OL(this.hostElement,this.data.onOpenCommands,this.hostElement);_.W7(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.J.onYtPopupClosed=function(W,P){(P&&P.canceled===!0||P&&P.canceled===!1&&P.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.OL(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.J.onYtServiceRequestError=function(W){_.Iq(this.hostElement,W.detail.error.message)};
_.J.onDataChanged=function(){if(this.isAttached){var W=this.backgroundUrl;W&&(_.g(this.hostElement).querySelector("#header").style.backgroundImage=W)}};
_.N1.Object.defineProperties(z9.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return W?"url("+_.Tm(W,this.hostElement.clientWidth)+")":""}}});
z9.prototype.onDataChanged=z9.prototype.onDataChanged;z9.prototype.onYtServiceRequestError=z9.prototype.onYtServiceRequestError;z9.prototype.onYtServiceRequestCompleted=z9.prototype.onYtServiceRequestCompleted;z9.prototype.onYtPopupClosed=z9.prototype.onYtPopupClosed;z9.prototype.onYtPopupOpened=z9.prototype.onYtPopupOpened;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],z9.prototype,"data",void 0);_.f([_.c({value:function(){return _.KK("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],z9.prototype,"closeButtonAriaLabel",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],z9.prototype,"darkerDarkTheme",void 0);_.f([_.BM("#scrollable"),_.l("design:type",Object)],z9.prototype,"scrollable",void 0);_.f([_.BM("ytd-sponsorship-confirm-cancel-content"),_.l("design:type",Object)],z9.prototype,"content",void 0);
_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],z9.prototype,"onYtPopupOpened",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],z9.prototype,"onYtPopupClosed",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],z9.prototype,"onYtServiceRequestCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],z9.prototype,"onYtServiceRequestError",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z9.prototype,"onDataChanged",null);
z9=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],z9);
_.X(z9,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Qr6!==void 0)return Qr6;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return Qr6=W},{mode:_.F4("kevlar_poly_si_batch_j081")?1:2});var C8d;var G9=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(G9,_.b);G9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],G9.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],G9.prototype,"darkerDarkTheme",void 0);G9=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],G9);
_.X(G9,"ytd-sponsorships-celebration-content",function(){if(C8d!==void 0)return C8d;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return C8d=
W},{mode:1});var ALG;var zZf=_.i4(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Eq=function(){var W=_.b.apply(this,arguments)||this;W.scriptsAppended=!1;W.buttonOverrides={type:"tonal",style:"overlay-dark"};return W};
_.A(Eq,_.b);_.J=Eq.prototype;
_.J.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:_.p("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var W;(W=this.header)==null||W.style.setProperty("background-color",this.backgroundColor);if(W=this.headerImageUrl){var P;(P=this.header)==null||P.style.setProperty("background-image",W)}P=_.E_(4);W=_.G7(4);var x=this.get("data.trackingParams");if(x&&W&&P){var I=_.ox(x);_.hn(P,W,I);_.p("combine_ve_grafts")?_.YY().graftServerVe(x,W,4):_.hn(P,W,I)}P=_.n(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=P.next();!W.done;W=P.next())W.value.onShow();if(P=this.get("data.gtmId"))_.db(P,
_.$$("GL","")),this.setupConversionTracking()};
_.J.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("script");var P=_.hH(zZf.join(""));_.e5(W,P);document.head.appendChild(W);W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
_.J.onPopupClosed=function(W){if(_.af(W).localName==="ytd-sponsorships-celebration-renderer"){_.W7(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var P;this.data&&((P=this.data)==null?0:P.dismissCommand)&&_.Ix.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.N1.Object.defineProperties(Eq.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Qy(W)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return W?"url("+_.Tm(W,this.hostElement.getBoundingClientRect().width)+")":""}}});
Eq.prototype.onPopupClosed=Eq.prototype.onPopupClosed;Eq.prototype.onDataChanged=Eq.prototype.onDataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Eq.prototype,"data",void 0);_.f([_.BM("#header"),_.l("design:type",HTMLElement)],Eq.prototype,"header",void 0);
_.f([_.c(),_.l("design:type",Object)],Eq.prototype,"scriptsAppended",void 0);_.f([_.c(),_.l("design:type",Object)],Eq.prototype,"buttonOverrides",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Eq.prototype,"onDataChanged",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Eq.prototype,"onPopupClosed",null);
Eq=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Eq);
_.X(Eq,"ytd-sponsorships-celebration-renderer",function(){if(ALG!==void 0)return ALG;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return ALG=W},{mode:1});var GiQ;var gF=function(){var W=_.b.apply(this,arguments)||this;W.isToggleChecked=!1;return W};
_.A(gF,_.b);gF.prototype.onDataChanged=function(){var W;this.isToggleChecked=((W=this.data)==null?void 0:W.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
gF.prototype.close=function(){var W;((W=this.data)==null?0:W.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
gF.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var W,P=_.Q((W=this.data)==null?void 0:W.switchButton,StQ);P&&(this.isToggleChecked&&P.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(P.switchOnInnertubeCommand),!this.isToggleChecked&&P.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(P.switchOffInnertubeCommand))};
gF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gF.prototype.onDataChanged=gF.prototype.onDataChanged;_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],gF.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],gF.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],gF.prototype,"isToggleChecked",void 0);_.f([_.c({value:_.KK("CLOSE")}),_.l("design:type",String)],gF.prototype,"closeButtonAriaLabel",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gF.prototype,"onDataChanged",null);gF=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],gF);
_.X(gF,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(GiQ!==void 0)return GiQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return GiQ=W},{mode:1});var EJQ;var DQ=function(){return _.b.apply(this,arguments)||this};
_.A(DQ,_.b);_.J=DQ.prototype;_.J.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"}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.playerElement.stop()};
_.J.onYtServiceRequestCompleted=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.J.onYtServiceRequestError=function(W){_.Iq(this.hostElement,W.detail.error.message)};
_.J.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.J.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.J.getTier=function(W,P){return!W||!W.tiers||P<0?null:_.Q(W.tiers[P],vZQ)};
_.J.moreThanOne=function(W){return!!(W&&W.length>1)};
_.J.tierOverviewTap=function(W){var P=this;this.selectedTier=W.model.index;_.Xm(this,function(){_.Lf(P.hostElement,"yt-refit")})};
_.J.computeSelectedClass=function(W,P){return this.isSelected(W,P)?"selected":""};
_.J.computeButtonAriaPressed=function(W,P){return this.isSelected(W,P)?"true":"false"};
_.J.isSelected=function(W,P){return W===P};
_.J.onDataChanged=function(){_.g(this.hostElement).querySelector("#header-overlay").style.visibility="";_.g(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 W=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),
P=W.next();!P.done;P=W.next())P.value.onShow();var x;this.set("selectedTier",(x=this.get("data.targetTierIndex"))!=null?x:0);var I;(W=(I=this.data)==null?void 0:I.onVisible)&&this.ytComponentBehavior.resolveCommand(W)};
_.J.initializeVe=function(W){var P=_.E_(),x=_.G7(),I=this.get("data.trackingParams");x&&P&&(this.screenLayer=4,P=_.Ho(_.ppR)(void 0,69877,{clientScreenNonce:P,visualElement:x},void 0,void 0,void 0),_.Dt(P,69877,4),x=_.G7(4),I&&x&&(I=_.ox(I),_.hn(P,x,I),W&&(this.offerVideoVe=_.td(74659),_.hn(P,I,this.offerVideoVe))))};
_.J.setHeaderBackground=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.g(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Qy(W);if(W=this.getHeaderImage())W=_.Tm(W,screen.width),_.g(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+W+")"};
_.J.getHeaderImage=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&W?W:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setupVideoPlayer=function(W){var P=this,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1)return x=P.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),I=P.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.p("kevlar_player_update_killswitch")?P.playerElement.update({args:{autoplay:x,video_id:W,player_params:I}}):P.playerElement.loadVideoWithPlayerVars({autoplay:x,video_id:W,player_params:I}),
_.S(Y,P.playerElement.getPlayerPromise(),2);O=Y.yieldResult;O.addEventListener("onStateChange",function(K){P.onPlayerStateChange(K)});
O.setScreenLayer(P.screenLayer);(B=_.E_(4))&&P.offerVideoVe&&_.eI(B,P.offerVideoVe);x&&(P.pauseOtherPlayers(),P.playerElement.focusOnPlayer(),P.playerElement.getPlayer().hideControls(),_.VE(_.Gr,function(){P.fadeOutHeaderOverlay()},4E3));
_.Kl(Y)})};
_.J.onPlayerStateChange=function(W){W===1?this.backgroundPlayerElement&&(W=this.backgroundPlayerElement.player_.getPlayerState(),W!==1&&W!==3||this.backgroundPlayerElement.pause()):W===0&&(_.g(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.g(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.J.fadeOutHeaderOverlay=function(){_.g(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.J.onHeaderTap=function(){if(this.offerVideo){_.g(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var W;((W=this.playerElement.player_)==null?void 0:W.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(W=_.E_(4))&&this.offerVideoVe&&_.bB(W,this.offerVideoVe)}};
_.J.getBackgroundImageLayerClass=function(W){return W?"background-image-layer-with-video":""};
_.J.getHeaderClass=function(W){return W?"header-with-video":""};
_.J.getHeaderOverlayClass=function(W){return W?"header-overlay-with-video":""};
_.J.getTitleContainerClass=function(W,P){return W?"title-container-with-video":P?"title-container-without-video-flexible":"title-container-without-video"};
_.J.tierTitleDisplayStatus=function(W){return this.moreThanOne(W)?"hide":"show"};
_.J.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.FY().resolve(_.kc).getPlayerElement():this.backgroundPlayerElement=_.RP();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var W=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=W===1||W===3;this.backgroundPlayerElement.pause()}};
_.J.isMiniplayerActive=function(){return _.FY().resolve(_.kc).isMiniplayerActive()};
_.J.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("selected-tier-changed",this.selectedTier))};
DQ.prototype.selectedTierChangedForBinding=DQ.prototype.selectedTierChangedForBinding;DQ.prototype.onDataChanged=DQ.prototype.onDataChanged;DQ.prototype.onYtPopupClosed=DQ.prototype.onYtPopupClosed;DQ.prototype.onYtPopupOpened=DQ.prototype.onYtPopupOpened;DQ.prototype.onYtServiceRequestError=DQ.prototype.onYtServiceRequestError;DQ.prototype.onYtServiceRequestCompleted=DQ.prototype.onYtServiceRequestCompleted;
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],DQ.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],DQ.prototype,"data",void 0);_.f([_.c({value:0}),_.l("design:type",Number)],DQ.prototype,"selectedTier",void 0);
_.f([_.c({value:""}),_.l("design:type",String)],DQ.prototype,"offerVideo",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],DQ.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.f([_.c({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.nM(this)}}),
_.l("design:type",String)],DQ.prototype,"playerId",void 0);_.f([_.BM("tp-yt-paper-dialog-scrollable"),_.l("design:type",Object)],DQ.prototype,"scrollable",void 0);_.f([_.BM("ytd-sponsorships-tier-renderer"),_.l("design:type",Object)],DQ.prototype,"tierRenderer",void 0);_.f([_.BM("#player"),_.l("design:type",Object)],DQ.prototype,"playerElement",void 0);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],DQ.prototype,"onYtServiceRequestCompleted",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],DQ.prototype,"onYtServiceRequestError",null);
_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DQ.prototype,"onYtPopupOpened",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DQ.prototype,"onYtPopupClosed",null);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DQ.prototype,"onDataChanged",null);
_.f([_.OZ("selectedTier"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DQ.prototype,"selectedTierChangedForBinding",null);DQ=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],DQ);
_.X(DQ,"ytd-sponsorships-offer-renderer",function(){if(EJQ!==void 0)return EJQ;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return EJQ=W},{mode:_.F4("kevlar_poly_si_batch_j077")?1:2});var gJB;var M9=function(){var W=_.b.apply(this,arguments)||this;W.buttonOverrides={type:"filled",style:"mono"};return W};
_.A(M9,_.b);M9.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}}}}}};
M9.prototype.backgroundColorChanged=function(){var W,P,x,I=(P=_.Q((W=this.data)==null?void 0:W.content,m3v))==null?void 0:(x=P.backgroundColor)==null?void 0:x.backgroundColor;I&&(W=_.j9(I),_.g(this.hostElement).querySelector("#banner").style.backgroundColor=W,_.g(this.hostElement).querySelector("#abstract-art").style.backgroundColor=W)};
M9.prototype.attached=function(){this.JSC$18311_scroller&&(this.JSC$18311_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18311_scroller.attached&&typeof this.JSC$18311_scroller.attached==="function"&&this.JSC$18311_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
M9.prototype.backgroundColorChanged=M9.prototype.backgroundColorChanged;_.f([_.c(),_.l("design:type",Object)],M9.prototype,"data",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("#scroller"),_.l("design:type",Object)],M9.prototype,"JSC$18311_scroller",void 0);_.f([_.c(),_.l("design:type",Object)],M9.prototype,"buttonOverrides",void 0);
_.f([_.OZ("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M9.prototype,"backgroundColorChanged",null);M9=_.f([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],M9);
_.X(M9,"ytd-sponsorships-promotion-celebration-renderer",function(){if(gJB!==void 0)return gJB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return gJB=W},{mode:_.F4("kevlar_poly_si_batch_j077")?1:2});var D2y;var MMM;var $x=function(){return _.b.apply(this,arguments)||this};
_.A($x,_.b);$x.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
$x.prototype.computeIsInitiallyChecked=function(W){return W===1};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],$x.prototype,"data",void 0);_.f([_.BM("#checkbox"),_.l("design:type",Object)],$x.prototype,"checkbox",void 0);$x=_.f([_.U({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],$x);
_.X($x,"ytd-subscription-toggle-option-renderer",function(){if(MMM!==void 0)return MMM;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return MMM=W},{mode:1});var wF=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return W};
_.A(wF,_.b);wF.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"}}}};
wF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wF.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var W=_.g(this.hostElement).querySelector("#options").selected;W=this.data.options[W].subscriptionRadioOptionRenderer.serviceEndpoint;var P=_.g(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");P&&W&&W.modifyChannelNotificationPreferenceEndpoint&&(P=P.getValue())&&(W.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[P]);_.FY().resolve(_.qR).resolveCommand(W,{form:{element:this.hostElement}});
_.W7(this.hostElement,"yt-close-popup-action")};
_.N1.Object.defineProperties(wF.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var W=this.data.options,P=0;P<W.length;P++){var x=W[P].subscriptionRadioOptionRenderer;if(x&&x.selected)return P}return null}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],wF.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],wF.prototype,"eventForwardingBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],wF.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],wF.prototype,"darkerDarkTheme",void 0);_.f([_.H("data.options"),_.l("design:type",Object),_.l("design:paramtypes",[])],wF.prototype,"initialIndex",null);wF=_.f([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],wF);
_.X(wF,"ytd-subscription-notification-options-renderer",function(){if(D2y!==void 0)return D2y;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return D2y=W},{mode:1});var $29;var hU=function(){return _.b.apply(this,arguments)||this};
_.A(hU,_.b);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],hU.prototype,"data",void 0);hU=_.f([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],hU);
_.X(hU,"ytd-tvfilm-offer-groups-renderer",function(){if($29!==void 0)return $29;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return $29=W},{mode:1});var wem;var Hh=function(){var W=_.b.apply(this,arguments)||this;W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(Hh,_.b);_.J=Hh.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.J.computeThumbnailClass=function(W){return W.thumbnailOverlays?W.isShow?"thumbnail-show":"thumbnail-movie":W.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.J.computeCommerceSectionClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.J.computeTitleClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.J.onDataChanged=function(){[].concat(_.ju(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(W){W.onShow()})};
Hh.prototype.onDataChanged=Hh.prototype.onDataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Hh.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"darkerDarkTheme",void 0);
_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hh.prototype,"onDataChanged",null);Hh=_.f([_.U({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Hh);
_.X(Hh,"ytd-ypc-offers-overlay-renderer",function(){if(wem!==void 0)return wem;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return wem=W},{mode:_.F4("kevlar_poly_si_batch_j028")?1:2});var hZM;var HOM=function(){this.usedMethods=new Set};
HOM.prototype.add=function(W){this.usedMethods.add(W)};
HOM.prototype.reset=function(){this.usedMethods.clear()};var avy=function(W,P){this.query=W;this.previousSearchQuery=P;this.id=eZ2++;if(!cLL){P=_.$$("SBOX_SETTINGS");W="https://"+((P==null?void 0:P.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var x=P==null?void 0:P.REQUEST_LANGUAGE;x&&(W+="&hl="+x);(x=P==null?void 0:P.REQUEST_DOMAIN)&&(W+="&gl="+x);W+="&client=youtube&gs_ri=youtube";(x=P==null?void 0:P.SUGG_EXP_ID)&&(W+="&sugexp="+encodeURIComponent(x));(x=P==null?void 0:P.PSUGGEST_TOKEN)&&(W+="&tok="+x);(P=
P==null?void 0:P.SESSION_INDEX)&&(W+="&authuser="+P);_.p("desktop_enable_visual_suggest")&&(W+="&h=180&w=320&ytvs=1");cLL=W}},bOG=function(W){var P="q="+encodeURIComponent(W.query);
W.previousSearchQuery&&(P+="&pq="+encodeURIComponent(W.previousSearchQuery));return P},kiv=function(){var W=_.$$("SBOX_SETTINGS"),P={};
if(W==null?0:W.SEND_VISITOR_DATA)P["X-Goog-Visitor-Id"]=W==null?void 0:W.VISITOR_DATA;return P},U2L=function(W){var P=cLL;
P+="&gs_id="+W.id.toString(36);P+="&q="+encodeURIComponent(W.query);P+="&cp="+W.query.length;W.previousSearchQuery&&(P+="&pq="+encodeURIComponent(W.previousSearchQuery));(W=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(P+="&video_id="+W);return P},eZ2=0,cLL="";var Xef=_.fY.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,fv9=_.fY.SEARCH_ENTITY_SUGGESTION_MOVIE,NC2=_.fY.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,lvv=_.fY.SEARCH_ENTITY_SUGGESTION_TV_SHOW,TCM=function(W,P){this.text=W;this.bold=P},rLv=function(W,P,x){this.input=P;
this.index=x;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=W[0];this.type=W[1];this.subtypes=W[2];var I;this.displayText=W$((I=W[3])==null?void 0:I.b);var O;this.ignoredPrefix=W$((O=W[3])==null?void 0:O.a);var B,Y;this.hasNewVideo=((B=W[3])==null?void 0:(Y=B.zam)==null?void 0:Y.toString())==="true"?!0:!1;var K;this.visualSuggestUrl=(K=W[3])==null?void 0:K.zai;var Z;this.entityType=W$((Z=W[3])==null?void 0:Z.zap);var d;this.entityName=W$((d=W[3])==null?void 0:d.zao);var v;P=W$((v=
W[3])==null?void 0:v.zaf);var m;this.entityMid=(m=W[3])==null?void 0:m.zae;v=UBd(this.subtypes,this.entityMid);if(P&&v){if(P){m="";switch(v){case "YOUTUBE_ENTITY_TYPE_SONG":m=NC2;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":m=Xef;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":m=lvv;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":m=fv9}v=v==="YOUTUBE_ENTITY_TYPE_SONG"||v==="YOUTUBE_ENTITY_TYPE_ALBUM"?m+" \u2022  \u2022 "+P:P}else v="";this.entitySubtitle=v}var t;this.externalChannelId=(t=W[3])==null?void 0:t.zav},iOB=
function(W){var P=[],x,I=(x=W.displayText)!=null?x:W.text;
if(W.type===33)return P.push(new TCM(I,!1)),P;if(I.length>=W.input.length&&I.substring(0,W.input.length)===W.input)P.push(new TCM(W.input,!1)),P.push(new TCM(I.substring(W.input.length),!0));else{var O=new Set(W.input.split(/\s/)),B=I.split(/\s/);P=B.map(function(Y,K){return new TCM(Y.trim()+(K===B.length-1?"":" "),!O.has(Y))})}return P};var RZ6=function(W){this.rawResponse=["",[],{}];this.suggestions=[];try{var P=JSON.parse(Xuf(W));if(typeof P==="object"&&P!==null)this.rawResponse=P;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(I){console.log("Suggest: Failed to parse SuggestResponse!");return}var x=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(I,O){return new rLv(I,x,O)})};var Fcd=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new HOM;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18347_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},qB9,Lc2=function(){qB9||(qB9=new Fcd);
return qB9};
Fcd.prototype.updateSuggestions=function(W){var P=this;this.availableSuggestions.forEach(function(x){P.previousSuggestions[x]=!0});
this.availableSuggestions=W.map(function(x){var I=x.type.toString();x.subtypes.length>0&&(I+="i"+x.subtypes.join("i"),I+="k"+x.suggestionSources.COMPLETE_SERVER.toString());return I})};
var WUy=function(W,P){var x=Date.now();W.firstEditTime<0&&(W.firstEditTime=x);P&&(W.lastQueryBuildTime=x);W.lastEditTime=x};
Fcd.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18347_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var PF6=function(W){var P="";W.availableSuggestions.forEach(function(O){delete W.previousSuggestions[O]});
for(var x=_.n(Object.keys(W.previousSuggestions)),I=x.next();!I.done;I=x.next())I=I.value,W.previousSuggestions[I]&&(P+=(P?"j":"")+I);return P},xvm=function(W,P){var x=[];
P&&(x[1]=P.toString());x[0]="youtube";x[7]=Date.now()-W.startTime;x[6]=W.sessionNumber;W.zeroPrefixSuggestionCount>=0&&(x[33]=W.zeroPrefixSuggestionCount);x[13]=W.outOfSyncResponseCount;if(W.availableSuggestions.length>0){for(var I=P="",O=0,B=_.n(W.availableSuggestions),Y=B.next();!Y.done;Y=B.next())Y=Y.value,Y!==I&&(O>1&&(P+="l"+O),P+=(I?"j":"")+Y,O=0,I=Y),O+=1;O>1&&(P+="l"+O);x[3]=P}x[35]=PF6(W);W.selectedSuggestionIndex>=0&&(x[2]=W.selectedSuggestionIndex);var K;if(P=(K=_.$$("SBOX_SETTINGS"))==
null?void 0:K.SUGG_EXP_ID)x[19]=W.normalize(P),K=0,W.experimentTriggeredBeforeFinal&&(K|=1),W.experimentTriggeredFinal&&(K|=2),x[20]=K;x[26]=Array.from(W.inputMethodsTracker.usedMethods).join("j");if(W.JSC$18347_totalRoundTripTime>0){x[15]=W.JSC$18347_totalRoundTripTime;x[14]=W.maxRoundTripTime;K=[];for(O=P=0;O<10;O++)I=W.roundTripTimeHistogram[O],I===0?P++:(P>1?K.push(O+"-"+I):P===1?K.push("0j"+I):K.push(I.toString()),P=0);K=K.join("j");x[16]=K}W.zeroPrefixRoundTripTime>0&&(x[36]=W.zeroPrefixRoundTripTime);
W.lastQueryBuildTime>0&&(x[18]=W.lastQueryBuildTime-W.startTime);W.firstEditTime>0&&(x[4]=W.firstEditTime-W.startTime);W.lastEditTime>0&&(x[5]=W.lastEditTime-W.startTime);return x.join(".")};
Fcd.prototype.normalize=function(W){return W.replaceAll(".","-")};
var ILL=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var eR=function(){var W=_.b.apply(this,arguments)||this;W.microphoneSpinnerActive=!1;W.noAnimations=!1;W.boundExitClick=function(){W.onExitButtonClick()};
W.speechOverlayClassName="";W.isLevelAnimating=!1;W.playCloseDialogAudioFeedback=!0;W.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return W};
_.A(eR,_.b);_.J=eR.prototype;_.J.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=XUO()};
_.J.dataChanged=function(){this.logDialog()};
_.J.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var W;(W=this.manager.audioPlayer)!=null&&(W.JSC$17637_audioEnabled=!1)}this.manager.stop();(W=this.manager.audioPlayer)!=null&&(W.JSC$17637_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.J.handleSpeechQueryCompleteAction=function(W){var P=W.navigationAction;P&&(W.trackingParams&&_.YY().graftServerVe(W.trackingParams,this.dialogVe,5),_.Lf(this.hostElement,"yt-navigate",{endpoint:P,tempData:this.getNavigationParams(P),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.J.onExitButtonClick=function(){this.closeDialog()};
_.J.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var W;if((W=this.manager)!=null){var P;(P=W.audioPlayer)==null||cC(P,"failure");W.setState("microphone-off");W.stop()}}else(W=this.manager)==null||W.start()};
_.J.transcriptionChanged=function(){var W,P;(((W=this.transcription)==null?0:W.low)||((P=this.transcription)==null?0:P.high))&&this.setState("transcribing",this.transcription)};
_.J.stateChanged=function(){this.setState(this.state,this.transcription)};
_.J.logDialog=function(){var W;(W=this.data)!=null&&W.trackingParams&&(W=_.YY(),_.JN(W,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=W.graftServerVe(this.data.trackingParams,void 0,5))};
_.J.getNavigationParams=function(W){var P={};if(_.p("web_yt_searchbox")){var x=Lc2();x.inputMethodsTracker.add(6);x=xvm(x,15);P.gs_l=x;var I;P.oq=((I=_.Q(W,_.Zz))==null?void 0:I.query)||""}else if(W=window.ytvoicesearchloggingparams){if(W=W())P.oq=W.oq,P.gs_l=W.gs_l}else _.co(Error("ll"));return P};
_.J.closeDialog=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.J.setState=function(W,P){if(this.data){var x=this.data,I={};switch(W){case "listening":I={headerText:x.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:x.microphoneButtonAriaLabel};break;case "timeout":I={headerText:x.promptHeader,microphoneState:"try-again",microphoneLabel:x.promptMicrophoneLabel,microphoneAriaLabel:x.promptMicrophoneLabel};break;case "microphone-off":I={headerText:x.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:x.promptMicrophoneLabel,
microphoneAriaLabel:x.promptMicrophoneLabel};break;case "transcribing":(P==null?0:P.low)||(P==null?0:P.high)?I={transcriptionLow:P==null?void 0:P.low,transcriptionHigh:P==null?void 0:P.high,microphoneState:"speaking",microphoneAriaLabel:x.microphoneButtonAriaLabel}:I={headerText:x.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:x.microphoneButtonAriaLabel};break;case "processing":I={headerText:x.loadingHeader,microphoneState:"processing",microphoneAriaLabel:x.microphoneButtonAriaLabel};
break;case "offline":I={headerText:x.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:x.connectionErrorMicrophoneLabel,microphoneAriaLabel:x.connectionErrorMicrophoneLabel};break;case "permission":I={headerText:x.permissionsHeader,bodyLine1:x.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:x.permissionsSubtext};break;case "permission-denied":I={headerText:x.disabledHeader,bodyLine1:x.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:x.disabledSubtext}}I.className=
W;this.speechOverlayState=I;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.J.setMicrophoneState=function(W){var P=this.isLevelAnimating;this.isLevelAnimating=W==="speaking";!P&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=W==="processing"&&!this.noAnimations};
_.J.setClass=function(W){this.speechOverlayClassName&&_.iS(this.hostElement,this.speechOverlayClassName,!1);W&&(this.speechOverlayClassName=W,_.iS(this.hostElement,W,!0))};
_.J.runLevelAnimation=function(){var W=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var P=1+Math.random()*.75,x=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+x/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+P+")");_.Gr.addJob(function(){W.runLevelAnimation()},3,x)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
eR.prototype.stateChanged=eR.prototype.stateChanged;eR.prototype.transcriptionChanged=eR.prototype.transcriptionChanged;eR.prototype.onPopupClosed=eR.prototype.onPopupClosed;eR.prototype.dataChanged=eR.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],eR.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],eR.prototype,"rendererStamperBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],eR.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],eR.prototype,"eventForwardingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eR.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],eR.prototype,"speechOverlayState",void 0);
_.f([_.c(),_.l("design:type",Object)],eR.prototype,"microphoneSpinnerActive",void 0);_.f([_.c({type:_.p("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.l("design:type",Object)],eR.prototype,"noAnimations",void 0);_.f([_.c({selector:function(W){var P;return(P=W.voiceSearch)==null?void 0:P.transcription}}),
_.l("design:type",Object)],eR.prototype,"transcription",void 0);_.f([_.c({selector:function(W){var P;return(P=W.voiceSearch)==null?void 0:P.overlay}}),
_.l("design:type",String)],eR.prototype,"state",void 0);_.f([_.c(),_.l("design:type",Object)],eR.prototype,"boundExitClick",void 0);_.f([_.BM("#microphone-levels"),_.l("design:type",HTMLElement)],eR.prototype,"level",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eR.prototype,"dataChanged",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eR.prototype,"onPopupClosed",null);
_.f([_.K_("transcription"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eR.prototype,"transcriptionChanged",null);_.f([_.K_("state"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eR.prototype,"stateChanged",null);eR=_.f([_.U({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],eR);
_.X(eR,"ytd-voice-search-dialog-renderer",function(){if(hZM!==void 0)return hZM;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return hZM=W},{mode:1});var Os9;var ch=function(){var W=_.b.apply(this,arguments)||this;W.isOverlay=!1;W.hidden=!1;return W};
_.A(ch,_.b);_.J=ch.prototype;_.J.onPopupClosed=function(){this.toggleIconState(!1)};
_.J.computeIcon=function(){var W,P,x;return(P=_.Q((W=this.data)==null?void 0:W.icon,Q9d))==null?void 0:(x=P.icon)==null?void 0:x.iconType};
_.J.computeIconBadgeShape=function(){var W;return{iconBadgeType:"cart",iconBadgeText:(W=this.iconBadgeEntity)==null?void 0:W.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.onClick=function(){var W;(W=this.data)!=null&&W.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.J.computeHidden=function(W){return!W};
_.J.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
ch.prototype.onPopupClosed=ch.prototype.onPopupClosed;_.f([_.h(_.Gp),_.l("design:type",Object)],ch.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],ch.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ch.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],ch.prototype,"isOverlay",void 0);
_.f([_.c({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.l("design:type",Object)],ch.prototype,"hidden",void 0);_.f([_.c({selectorArgs:["data.iconBadgeEntityKey"],selector:function(W,P){return _.Jb(W.entities,"iconBadgeEntity",P)}}),
_.l("design:type",Object)],ch.prototype,"iconBadgeEntity",void 0);_.f([_.BM("yt-icon-button"),_.l("design:type",HTMLButtonElement)],ch.prototype,"iconButton",void 0);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ch.prototype,"onPopupClosed",null);ch=_.f([_.U({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],ch);
_.X(ch,"ytd-icon-badge-topbar-button-renderer",function(){if(Os9!==void 0)return Os9;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Os9=W},{mode:1});var J7L;var ay=function(){var W=_.b.apply(this,arguments)||this;W.premiumOptions=[];W.darkerDarkTheme=_.p("web_darker_dark_theme");return W};
_.A(ay,_.b);ay.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.N1.Object.defineProperties(ay.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],ay.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Array)],ay.prototype,"premiumOptions",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],ay.prototype,"darkerDarkTheme",void 0);_.f([_.H("premiumOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],ay.prototype,"hasPremiumOptions",null);
ay=_.f([_.U({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],ay);
_.X(ay,"ytd-offline-promo-content",function(){if(J7L!==void 0)return J7L;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return J7L=W},{mode:1});var BB2;var b$=function(){var W=_.b.apply(this,arguments)||this;W.premiumOptions=[];return W};
_.A(b$,_.b);b$.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W;this.premiumOptions=kK3((W=this.data)==null?void 0:W.formats)};
b$.prototype.onClickSubmit=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var W;(W=_.RP())==null||W.pause()};
b$.prototype.attached=function(){this.JSC$18367_scroller&&(this.JSC$18367_scroller.dialogElement=this.hostElement.parentNode)};
_.N1.Object.defineProperties(b$.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
b$.prototype.dataChanged=b$.prototype.dataChanged;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],b$.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],b$.prototype,"data",void 0);
_.f([_.c({computed:"computeIcon_(data.headersIcon)",value:""}),_.l("design:type",String)],b$.prototype,"headersIcon",void 0);_.f([_.c(),_.l("design:type",Array)],b$.prototype,"premiumOptions",void 0);_.f([_.BM("#scroller"),_.l("design:type",Object)],b$.prototype,"JSC$18367_scroller",void 0);_.f([_.H("headersIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],b$.prototype,"showIcon",null);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b$.prototype,"dataChanged",null);b$=_.f([_.U({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],b$);
_.X(b$,"ytd-offline-promo-renderer",function(){if(BB2!==void 0)return BB2;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return BB2=W},{mode:1});var nnB;var kx=function(){var W=_.b.apply(this,arguments)||this;W.playbackPauseInterval=NaN;W.isLoading=!1;W.hasError=!1;W.dialogClass="";W.youtubeLabel=_.KK("LOGO_ALT_LABEL",{},"YouTube Home");W.logoName="yt-logos-ext:yt-logo-updated";W.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return W};
_.A(kx,_.b);_.J=kx.prototype;_.J.onDataChange=function(){var W;if(this.showEOMV1Text=!((W=this.data)==null||!W.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.J.attached=function(){this.pausePlayer()};
_.J.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.J.handleLangSelect=function(W){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[W.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.J.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.J.handleSaveConsent=function(W){var P=this;this.showLoadingSpinner();this.showLoadingSpinner();vN2(_.Q(W,C7Q)).catch(function(x){_.ge(new _.mW("Something went wrong when save consent "+(x.message?x.message:x)+"."));P.hideLoadingSpinner();P.showErrorMessage()})};
_.J.handleDisablePersonalization=function(W){var P=this;this.showLoadingSpinner();mt3(_.Q(W,Qn6)).then(function(){P.dialog.close();P.resumePlayer()}).catch(function(x){_.ge(new _.mW("Something went wrong when disable personalization "+(x.message?x.message:x)+"."));
P.hideLoadingSpinner();P.showErrorMessage()})};
_.J.showLoadingSpinner=function(){var W=this;this.showSpinnerJobId=_.Gr.addLowPriorityJob(function(){W.isLoading=!0},500)};
_.J.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Gr.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.J.showErrorMessage=function(){var W=this;this.hasError=!0;_.Gr.addLowPriorityJob(function(){W.hasError=!1},2E3)};
_.J.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.JY(function(){try{var W=_.RP();W&&W.pause()}catch(P){}},100))};
_.J.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var W=_.RP();W&&W.play()}catch(P){}};
_.N1.Object.defineProperties(kx.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var P=["SHIELD","WARNING","BAR_CHART"],x=this.data.eomV1Text.essentialCookieMsg.items,I=0;I<P.length&&I<x.length;I++)W.push({icon:P[I],text:x[I]});return W}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var P=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],x=this.data.eomV1Text.nonEssentialCookieMsg.items,I=0;I<P.length&&I<x.length;I++)W.push({icon:P[I],text:x[I]});return W}}});
kx.prototype.onDataChange=kx.prototype.onDataChange;_.f([_.c(),_.l("design:type",Object)],kx.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],kx.prototype,"showEOMV1Text",void 0);_.f([_.c(),_.l("design:type",Object)],kx.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Object)],kx.prototype,"hasError",void 0);_.f([_.c(),_.l("design:type",Number)],kx.prototype,"showSpinnerJobId",void 0);_.f([_.c(),_.l("design:type",Object)],kx.prototype,"dialogClass",void 0);
_.f([_.BM("#dialog"),_.l("design:type",Object)],kx.prototype,"dialog",void 0);_.f([_.BM("#cb-header"),_.l("design:type",HTMLElement)],kx.prototype,"header",void 0);_.f([_.BM("#lang-select"),_.l("design:type",HTMLElement)],kx.prototype,"langSelect",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],kx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],kx.prototype,"ytComponentBehavior",void 0);
_.f([_.c(),_.l("design:type",String)],kx.prototype,"youtubeLabel",void 0);_.f([_.c(),_.l("design:type",Object)],kx.prototype,"logoName",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kx.prototype,"onDataChange",null);_.f([_.H("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],kx.prototype,"eomEssentialCookieMsgItems",null);
_.f([_.H("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],kx.prototype,"eomNonEssentialCookieMsgItems",null);kx=_.f([_.U({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],kx);
_.X(kx,"ytd-consent-bump-v2-lightbox",function(){if(nnB!==void 0)return nnB;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return nnB=W},{mode:1});var YJd;var Uq=function(){return _.b.apply(this,arguments)||this};
_.A(Uq,_.b);Uq.prototype.ready=function(){if(!_.dO()||eWv)var W=!0;else eWv=!0,W=!1;W||(W=document.querySelector("ytd-app"),W||(W=document.body),this.internalLightBox=_.g(W).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.f([_.c(),_.l("design:type",Object)],Uq.prototype,"data",void 0);_.f([_.BM("#lightbox"),_.l("design:type",Object)],Uq.prototype,"lightBox",void 0);Uq=_.f([_.U({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Uq);
_.X(Uq,"ytd-consent-bump-v2-renderer",function(){if(YJd!==void 0)return YJd;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return YJd=W},{mode:1});var y79;var KUG;var ZsM;var XA=function(){var W=_.b.apply(this,arguments)||this;W.ephemeralActionsEnabled=_.p("web_ephemeral_actions");return W};
_.A(XA,_.b);_.J=XA.prototype;_.J.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&WQB(this.toastManager,this.toastType)};
_.J.open=function(W){this.toast&&(this.ephemeralAction&&_.FY().resolve(_.y9).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=W!=null?W:0,this.toastManager.enqueue(this.toast,W)):this.toast.open())};
_.J.close=function(W){var P;(P=this.toast)==null||P.close();this.toastManager&&W===1&&WQB(this.toastManager,W)};
_.J.refit=function(){var W;(W=this.toast)==null||W.refit()};
_.J.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var W;(W=this.toast)==null||W.close()}};
_.J.setVerticalOffset=function(W){this.toast&&(this.toast.verticalOffset=W,this.toast.fit())};
_.J.computeButtonClass_=function(W){return W?"toast-button":""};
_.J.computeText_=function(W){return _.kz(W)};
_.J.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.wy("toast-opened-changed",this.toastOpened))};
_.J.updateToastOpenedFromBinding=function(W){this.toastOpened=W.detail.value};
_.N1.Object.defineProperties(XA.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var W,P,x=(W=this.data)==null?void 0:(P=W.actionButton)==null?void 0:P.buttonRenderer;return(x==null?void 0:x.command)||(x==null?void 0:x.serviceEndpoint)||(x==null?void 0:x.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var W=[],P;((P=this.data)==null?0:P.responseText)&&W.push(_.kz(this.data.responseText));var x;((x=this.data)==null?0:x.subText)&&W.push(_.kz(this.data.subText));var I,O;if((I=this.data)==null?0:(O=I.actionButton)==null?0:O.buttonRenderer){var B,Y;W.push(((B=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Y=B.accessibilityData)==null?void 0:Y.label)||_.kz(this.data.actionButton.buttonRenderer.text))}return W.filter(function(K){return K}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var W,P;return(P=(W=this.toast)==null?void 0:W.opened)!=null?P:!1}}});
XA.prototype.toastOpenedChangedForBinding=XA.prototype.toastOpenedChangedForBinding;XA.prototype.toastOpenedChanged=XA.prototype.toastOpenedChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],XA.prototype,"ytEventForwardingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],XA.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],XA.prototype,"duration",void 0);
_.f([_.c(),_.l("design:type",Number)],XA.prototype,"toastType",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],XA.prototype,"useCloseButton",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],XA.prototype,"closeToastOnActionButtonClick",void 0);_.f([_.c({value:function(){return _.KK("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],XA.prototype,"closeButtonAriaLabel",void 0);_.f([_.c(),_.l("design:type",Boolean)],XA.prototype,"toastOpened",void 0);_.f([_.c(),_.l("design:type",Boolean)],XA.prototype,"hasOpened",void 0);_.f([_.c(),_.l("design:type",Object)],XA.prototype,"ephemeralActionsEnabled",void 0);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],XA.prototype,"command",null);
_.f([_.H("ephemeralActionsEnabled","labelText","command","duration"),_.l("design:type",Object),_.l("design:paramtypes",[])],XA.prototype,"ephemeralAction",null);_.f([_.H("ephemeralAction"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XA.prototype,"hasEphemeralAction",null);_.f([_.BM("#toast"),_.l("design:type",Object)],XA.prototype,"toast",void 0);_.f([_.c({value:function(){return{style:"call-to-action-inverse"}}}),
_.l("design:type",Object)],XA.prototype,"buttonOverrides",void 0);_.f([_.c({value:{style:"mono-inverse"}}),_.l("design:type",Object)],XA.prototype,"closeButtonOverrides",void 0);_.f([_.c({value:function(){return _.FY().resolve(_.Rl(_.xbf))}}),
_.l("design:type",Object)],XA.prototype,"toastManager",void 0);_.f([_.H("data.responseText","data.subText","data.actionButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],XA.prototype,"labelText",null);_.f([_.OZ("toastOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XA.prototype,"toastOpenedChanged",null);
_.f([_.OZ("toastOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XA.prototype,"toastOpenedChangedForBinding",null);XA=_.f([_.jd({is:"yt-notification-action-renderer",disableElementRegistration:!0})],XA);
_.X(XA,"yt-notification-action-renderer",function(){if(ZsM===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;KUG===void 0&&(KUG=document.createElement("template"));var I=KUG;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ZsM=W}W=ZsM;return W},{mode:2});var f1=function(){var W=_.b.apply(this,arguments)||this;W.duration=4E3;W.downloadingCount=0;W.downloadedCount=0;W.downloadingOnlySmartDownloads=!1;W.sessionTotalDownloads=0;W.sessionDownloaded=0;W.previousSessionsDownloaded=0;W.totalDownloadPercentage=0;W.currentDownloadProgress=0;W.currentDownloadPercentage=0;W.isLeaderTab=!0;W.isFullScreen=!1;W.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};W.boundBeforeUnload=function(P){W.isLeaderTab&&W.downloadingCount>0&&(P.preventDefault(),
P.returnValue=!0)};
return W};
_.A(f1,_.b);_.J=f1.prototype;
_.J.open=function(){this.updateDownloadState();if(this.data){var W=this.sessionDownloaded+1,P=this.sessionTotalDownloads>1?_.KK("VIDEOS_DOWNLOADING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+W+"/"+this.sessionTotalDownloads):_.KK("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(P=this.sessionTotalDownloads>1?_.KK("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
W+"/"+this.sessionTotalDownloads):_.KK("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));W=this.isLeaderTab?_.KK("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.kz(this.data.responseText)!==P||_.kz(this.data.subText)!==W)this.set("data.responseText",_.bx(P)),this.set("data.subText",_.bx(W)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.J.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.J.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.J.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.J.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var W=this.downloadedCount-this.previousSessionsDownloaded;W<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-W);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.J.handleFullscreenChange=function(W){(this.isFullScreen=W)||this.updatePopup()};
f1.prototype.updateCurrentDownloadProgress=f1.prototype.updateCurrentDownloadProgress;f1.prototype.updatePopup=f1.prototype.updatePopup;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],f1.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],f1.prototype,"ytEventForwardingBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],f1.prototype,"actionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],f1.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],f1.prototype,"duration",void 0);_.f([_.c({selector:function(W){return _.P7U(W.entities).length}}),
_.l("design:type",Object)],f1.prototype,"downloadingCount",void 0);_.f([_.c({selector:GrB}),_.l("design:type",Object)],f1.prototype,"downloadedCount",void 0);_.f([_.c({selector:function(W){var P=_.P7U(W.entities);return zh9(W.entities,P)}}),
_.l("design:type",Object)],f1.prototype,"downloadingOnlySmartDownloads",void 0);_.f([_.c(),_.l("design:type",Object)],f1.prototype,"sessionTotalDownloads",void 0);_.f([_.c(),_.l("design:type",Object)],f1.prototype,"sessionDownloaded",void 0);_.f([_.c(),_.l("design:type",Object)],f1.prototype,"previousSessionsDownloaded",void 0);_.f([_.c(),_.l("design:type",Object)],f1.prototype,"totalDownloadPercentage",void 0);
_.f([_.c({selector:function(W){var P;W=(P=_.P7U(W.entities))!=null?P:[];return W.length>0?_.fRW(W.slice(-1)):0}}),
_.l("design:type",Object)],f1.prototype,"currentDownloadProgress",void 0);_.f([_.c(),_.l("design:type",Object)],f1.prototype,"currentDownloadPercentage",void 0);_.f([_.c({selector:_.HwR}),_.l("design:type",Object)],f1.prototype,"isLeaderTab",void 0);_.f([_.BM("yt-notification-action-renderer"),_.l("design:type",Object)],f1.prototype,"notificationActionRenderer",void 0);
_.f([_.K_("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],f1.prototype,"updatePopup",null);_.f([_.K_("currentDownloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],f1.prototype,"updateCurrentDownloadProgress",null);f1=_.f([_.U({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],f1);
_.X(f1,"ytd-video-download-toast-renderer",function(){if(y79!==void 0)return y79;var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return y79=W},{mode:1});var onM;var SJy;var N9=function(){return _.b.apply(this,arguments)||this};
_.A(N9,_.b);N9.prototype.computeIsRedLogo=function(W,P){!W&&P&&(W=P);return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
N9.prototype.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],N9.prototype,"componentBehavior",void 0);_.f([_.c({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.l("design:type",Boolean)],N9.prototype,"isRedLogo",void 0);_.f([_.c({computed:"computeLogoName(data)"}),_.l("design:type",String)],N9.prototype,"logoName",void 0);_.f([_.c({value:{}}),_.l("design:type",Object)],N9.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],N9.prototype,"logoType",void 0);N9=_.f([_.U({disableElementRegistration:!0,is:"ytd-logo"})],N9);
_.X(N9,"ytd-logo",function(){if(SJy!==void 0)return SJy;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return SJy=W},{mode:_.F4("kevlar_poly_si_batch_j074")?1:2});var l$=function(){var W=_.b.apply(this,arguments)||this;W.animationRef={};return W};
_.A(l$,_.b);_.J=l$.prototype;_.J.attached=function(){document.addEventListener("yt-navigate-finish",_.WM(this,this.logYoodle))};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.WM(this,this.logYoodle))};
_.J.logYoodle=function(){var W,P;if((W=this.data)==null?0:(P=W.loggingDirectives)==null?0:P.trackingParams)this.ytRendererBehavior.markDirty(),_.YY().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.J.computeHideImg=function(W,P){return!!W||!!P};
_.J.computeHideYtdLogo=function(W,P){return!W||!!P};
_.J.computeHideLottie=function(W){return!W};
_.J.computeIsRedLogo=function(W){return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
_.J.renderLogoEntity=function(){var W=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),P=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),x=this.getLogoTitleText(this.data),I=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==W&&(this.url=W);this.animatedUrl!==P&&(this.animatedUrl=P);this.logoTitleText!==x&&(this.logoTitleText=x);this.lottieUrl!==I&&(this.lottieUrl=I,this.lottiePlayerProps=this.computeLottiePlayerProps(I))};
_.J.getSanitizedThumbnail=function(W){return W&&W.thumbnails?_.IPW(W.thumbnails,122)||"":""};
_.J.getThumbnailUrl=function(W,P){if(!P)return"";var x,I;W=W?(x=P.darkThemeLogo)==null?void 0:x.thumbnail:(I=P.lightThemeLogo)==null?void 0:I.thumbnail;return this.getSanitizedThumbnail(W)};
_.J.getAnimatedThumbnailUrl=function(W,P){return P?this.getSanitizedThumbnail(W?P.darkThemeAnimatedLogo:P.lightThemeAnimatedLogo):""};
_.J.getLogoTitleText=function(W){if(W)return _.kz(W.tooltipText)};
_.J.computeLogoIcon=function(W,P){if(P){var x,I;return W?(x=P.darkThemeLogo)==null?void 0:x.icon:(I=P.lightThemeLogo)==null?void 0:I.icon}};
_.J.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.J.getLottieUrl=function(W,P){var x,I,O,B;return W?P==null?void 0:(x=P.darkThemeLogo)==null?void 0:(I=x.lottieAnimation)==null?void 0:I.url:P==null?void 0:(O=P.lightThemeLogo)==null?void 0:(B=O.lottieAnimation)==null?void 0:B.url};
_.J.computeLottiePlayerProps=function(W){if(W){var P;if((P=this.animationRef)==null?0:P.lottieEl){var x;(x=this.animationRef)==null||x.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:W,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.J.onLottieError=function(){this.data&&this.lottieUrl&&_.Lf(this.hostElement,"yoodle-error")};
_.J.onImgError=function(){this.data&&!this.lottieUrl&&_.Lf(this.hostElement,"yoodle-error")};
l$.prototype.playAnimation=l$.prototype.playAnimation;l$.prototype.renderLogoEntity=l$.prototype.renderLogoEntity;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],l$.prototype,"data",void 0);_.f([_.c({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.l("design:type",Boolean)],l$.prototype,"hideImg",void 0);
_.f([_.c({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.l("design:type",Boolean)],l$.prototype,"hideYtdLogo",void 0);_.f([_.c({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.l("design:type",Boolean)],l$.prototype,"hideLottie",void 0);_.f([_.c({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.l("design:type",Boolean)],l$.prototype,"isRedLogo",void 0);
_.f([_.c(),_.l("design:type",Boolean)],l$.prototype,"useDarkThemeYoodle",void 0);_.f([_.c(),_.l("design:type",String)],l$.prototype,"url",void 0);_.f([_.c(),_.l("design:type",String)],l$.prototype,"animatedUrl",void 0);_.f([_.c(),_.l("design:type",String)],l$.prototype,"logoTitleText",void 0);_.f([_.c({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.l("design:type",Object)],l$.prototype,"logoIcon",void 0);_.f([_.c(),_.l("design:type",Object)],l$.prototype,"logoType",void 0);
_.f([_.c(),_.l("design:type",String)],l$.prototype,"lottieUrl",void 0);_.f([_.c(),_.l("design:type",Object)],l$.prototype,"lottiePlayerProps",void 0);_.f([_.c(),_.l("design:type",Object)],l$.prototype,"animationRef",void 0);_.f([_.OZ("data"),_.OZ("useDarkThemeYoodle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],l$.prototype,"renderLogoEntity",null);
_.f([_.I7("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],l$.prototype,"playAnimation",null);l$=_.f([_.U({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],l$);
_.X(l$,"ytd-yoodle-renderer",function(){if(onM!==void 0)return onM;var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return onM=W},{mode:_.F4("kevlar_poly_si_batch_j074")?1:2});var uvQ;var dvL;var T9=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return W};
_.A(T9,_.b);_.J=T9.prototype;_.J.onYoodleError=function(){_.p("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.J.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.J.computeTitle=function(W,P,x){return x&&(P==null?0:P.tooltipText)?_.kz(P.tooltipText):_.kz(W)};
_.J.computeAriaLabel=function(W,P,x){return x&&(P==null?0:P.tooltipText)?_.kz(W):""};
_.J.computeShowYoodle=function(W,P,x){return!W||!P&&!!x&&!_.jU.isEmpty(x)};
_.J.onNavigateHomeAction=function(){if(_.p("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W;(W=_.g(this.hostElement).querySelector(".yt-simple-endpoint"))==null||W.click()}};
_.J.computeLogoHref=function(W,P,x){var I;(x==null?0:x.onTapCommand)?I=this.componentBehavior.computeHref_(x.onTapCommand):W&&(I=this.componentBehavior.computeHref_(W));return I?I:P};
_.J.computeCommand=function(W,P){return(P==null?void 0:P.onTapCommand)||W};
_.J.getEndpointForm=function(){if(_.p("kevlar_topbar_disable_cache_only_home")){var W=_.FY().resolve(_.Ae),P=wB3(W.getState())||"";W=_.dkm(W.getState())||"";return{disableCache:P==="ytd-browse"&&W==="home"}}return{disableCache:!0}};
T9.prototype.onYoodleError=T9.prototype.onYoodleError;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],T9.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],T9.prototype,"componentBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],T9.prototype,"ytdReduxBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],T9.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],T9.prototype,"countryCode",void 0);_.f([_.c({selectorArgs:["data.overrideEntityKey"],selector:function(W,P){return _.Jb(W.entities,"logoEntity",P)}}),
_.l("design:type",Object)],T9.prototype,"logoEntity",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.l("design:type",Boolean)],T9.prototype,"showYoodle",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],T9.prototype,"yoodleError",void 0);_.f([_.c({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.l("design:type",String)],T9.prototype,"titleText",void 0);
_.f([_.c({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.l("design:type",String)],T9.prototype,"ariaLabelText",void 0);_.f([_.c({value:"/"}),_.l("design:type",String)],T9.prototype,"defaultEndpointUrl",void 0);_.f([_.c({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.l("design:type",String)],T9.prototype,"endpointUrl",void 0);
_.f([_.c({computed:"computeCommand(data.endpoint, logoEntity)"}),_.l("design:type",String)],T9.prototype,"command",void 0);_.f([_.c(),_.l("design:type",Object)],T9.prototype,"logoType",void 0);_.f([_.c({}),_.l("design:type",Boolean)],T9.prototype,"useDarkThemeYoodle",void 0);_.f([_.I7("yoodle-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T9.prototype,"onYoodleError",null);T9=_.f([_.U({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],T9);
_.X(T9,"ytd-topbar-logo-renderer",function(){if(dvL!==void 0)return dvL;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return dvL=W},{mode:_.F4("kevlar_poly_si_batch_j027")?1:2});var sv4=0;var vnQ=_.fY.SEARCH_APPEND_LABEL,mvf=_.fY.SUGGESTION_NEW_VIDEOS_TEXT,VX4=_.fY.SUGGESTION_THUMBNAIL_LABEL,tXm=_.kl(function(W){function P(sc){var rS,jz;return _.y(function(yf){if(yf.nextAddress==1)return rS=new Request(sc),_.OT(yf,2),_.S(yf,fetch(rS,{credentials:"include"}),4);if(yf.nextAddress!=2)return GA(!0),_.ci(yf,0);jz=_.yn(yf);_.ge(jz);_.Kl(yf)})}
var x=W.isHighlighted;var I=W.suggestion;var O=W.onClickCallback;var B=W.onHoverUpdateCallback;var Y=W.labels;var K=W.queryBuilderFunction;var Z=W.onRemoveCallback;var d=W.suggestionIndex;var v=W.generateUniqueId;var m=W.highlightedId;var t=W.useScrollMargin;var C=W.isKeyboardMode;var z=null,D=null,w=_.fa(),a=_.fa(),k=_.Nl(function(sc){sc&&_.e_(237477,sc,D,function(rS){D=rS})}),T=_.Nl(function(sc){sc&&_.e_(237477,sc,D,function(rS){D=rS})}),N=_.yB(function(sc){if((sc==null?void 0:sc.button)===2)return sc.preventDefault(),
!1;
var rS=_.E_();rS&&z&&_.k6(rS,z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var jz;O(sc,I().text,I().index,I().entityMid,sc==null?void 0:(jz=sc.detail)==null?void 0:jz.wasSelectedByKeyboard);return!1}),Io=function(){return I().type===35},F=function(){return _.p("desktop_enable_single_suggestion_highlight")},nm=function(){return _.Wi("desktop_suggestions_panel_row_height")||0},pm=function(){var sc;
return _.p("desktop_enable_new_video_metadata")&&((sc=I())==null?void 0:sc.hasNewVideo)===!0},zR=function(){return _.p("desktop_enable_visual_suggest")},Am=function(){var sc;
if(sc=_.p("desktop_enable_entity_suggest")){var rS=I();sc=!!UBd(rS.subtypes);rS=!!rS.entityMid;sc=sc||rS}return sc},kW=function(){return I().entitySubtitle},$W=function(){return F()?(x==null?void 0:x())||j$()&&!(C==null?0:C()):(x==null?void 0:x())||j$()},ao=function(){var sc=_.$$("SBOX_SETTINGS");
return Io()&&!(sc==null?0:sc.HIDE_REMOVE_LINK)},e8=function(){return iOB(I())},iC,hw=!((iC=_.FY().resolve(_.Rl(_.hF)))==null||!iC()),dk=function(){return Io()?"ARROW_TIME":"SEARCH"},Oc=function(){return Y==null?void 0:Y().SUGGESTION_DISMISS_LABEL},Bm=function(){return Y==null?void 0:Y().SUGGESTION_DISMISSED_LABEL};
iC=_.n(_.YV(!1,void 0,"kHLOZe"));W=iC.next().value;var GA=iC.next().value;iC=_.n(_.YV(!1,void 0,"SGF2sd"));var KM=iC.next().value,PZ=iC.next().value,j$=KM,YW=_.yB(function(){K(a.value.innerText);return!1}),QZ=_.yB(function(sc){sc.preventDefault();
return!1}),ez=_.yB(function(sc){var rS=I().text,jz=_.$$("SBOX_SETTINGS"),yf="https://"+(jz.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
yf+="&delq="+encodeURIComponent(rS);(rS=jz==null?void 0:jz.PSUGGEST_TOKEN)&&(yf+="&tok="+rS);(jz=jz==null?void 0:jz.SESSION_INDEX)&&(yf+="&authuser="+jz);P(yf);sc.preventDefault();(sc=_.E_())&&D&&_.k6(sc,D,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");Z(d==null?void 0:d());return!1}),b3=_.yB(function(){if(F()&&(C==null?0:C()))return!1;
PZ(!0);B(!0);return!1}),D3=_.yB(function(){PZ(!1);
B(!1);return!1});
iC=_.n(_.YV("",void 0,"yaN19c"));var lp=iC.next().value,TE=iC.next().value;_.Qa(function(){ao()&&TE(v==null?void 0:v(d==null?void 0:d()));w.value&&_.e_(12453,w.value,z,function(sc){z=sc})});
return _.u(_.V,{cond:W,then:function(){var sc={};return _.u("div",{class:_.O4("ytSuggestionComponentRemovedText",(sc.ytSuggestionComponentLargerRemovedText=function(){return zR()},sc)),
style:function(){return nm()>0?"height: "+nm()+"px;":""},
role:"button"},Bm)},
else:function(){var sc={},rS={};return _.u("div",{class:_.O4("ytSuggestionComponentSuggestion",(sc.ytSuggestionComponentSuggestionHover=function(){return!F()},sc.ytSuggestionComponentHighlighted=$W,sc.ytSuggestionComponentPersonalizedSuggestion=Io,sc.ytSuggestionComponentMweb=!1,sc.ytSuggestionComponentLargerSuggestion=function(){return pm()||zR()},sc.ytSuggestionComponentThumbnailSuggestion=function(){return zR()},sc.ytSuggestionComponentRoundedSuggestion=function(){return _.p("desktop_enable_scrollable_suggestions_panel")&&
_.p("desktop_enable_suggestions_panel_padding")},sc.ytSuggestionComponentThumbnailPadding=function(){return zR()&&!Io()},sc)),
style:function(){return nm()>0?"height: "+nm()+"px;":""},
role:"presentation","on:mousedown":N,"on:mouseover":b3,"on:mouseout":D3,el:w},_.u("div",{class:_.O4("ytSuggestionComponentText",(rS.ytSuggestionComponentScrollMargin=t,rS)),"aria-label":function(){return pm()?I().text+" "+mvf:I().text},
id:function(){return v==null?void 0:v(d==null?void 0:d())},
"on:mousedown":N,role:"option"},_.u(_.V,{cond:function(){return I().type!==33},
then:function(){return _.u(_.Sy,{icon:dk,className:"ytSuggestionComponentIcon"})}}),_.u("div",{class:"ytSuggestionComponentLeftContainer"},_.u("span",{el:a,
role:"button",tabindex:0},_.u(_.sV,{each:e8},function(jz){return jz.bold?_.u("span",{class:"ytSuggestionComponentBold"},jz.text):_.u("span",null,jz.text)})),_.u(_.V,{cond:function(){return Am()&&!!I().entitySubtitle||pm()},
then:function(){return _.u("div",{class:"ytSuggestionComponentMetadataContainer"},_.u(_.V,{cond:function(){return Am()&&!!I().entitySubtitle},
then:function(){return _.u("div",{class:"ytSuggestionComponentEntitySubtitle"},kW)}}),_.u(_.V,{cond:function(){return pm()},
then:function(){return _.u("div",{class:"ytSuggestionComponentNewVideoContainer"},_.u("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.u("div",{class:"ytSuggestionComponentNewVideoText"},mvf))}}))}}))),_.u("div",{class:"ytSuggestionComponentRightContainer"},_.u(_.V,{cond:function(){return zR()&&I().visualSuggestUrl!==void 0},
then:function(){var jz={};return _.u("div",{class:"ytSuggestionComponentThumbnailContainer"},_.u("img",{"aria-label":VX4,class:_.O4("ytSuggestionComponentVisualSuggestThumbnail",(jz.ytSuggestionComponentCircularFrame=function(){return Am()&&I().subtypes.includes(790)},jz.ytSuggestionComponentEntitySuggestThumbnail=function(){return Am()},jz)),
src:function(){return I().visualSuggestUrl}}))}}),_.u(_.tQ,null,_.u(_.mk,{when:function(){return zR()&&ao()}},function(){var jz={};
return _.u("button",{class:_.O4("ytSuggestionComponentRemoveLinkClearButton",(jz.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return lp()&&lp()===(m==null?void 0:m())},jz.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!$W()},jz)),
el:T,"on:mousedown":ez,"aria-label":Oc,id:function(){return lp()}},_.u(_.Sy,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.u(_.mk,{when:function(){return!(zR()&&I().visualSuggestUrl!==void 0)&&ao()}},function(){var jz={};
return _.u("a",{class:_.O4("ytSuggestionComponentRemoveLink",(jz.ytSuggestionComponentRemoveLinkDark=hw,jz.ytSuggestionComponentRemoveLinkSelected=function(){return lp()&&lp()===(m==null?void 0:m())},jz)),
el:k,"on:mousedown":ez,"aria-label":Oc,tabindex:0,role:"button",id:function(){return lp()}},Oc)}),_.u(_.mk,{when:function(){return!1}},function(){return _.u("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":YW,"on:mousedown":QZ,role:"button","aria-label":vnQ},_.u(_.Sy,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jg");var paQ=_.kl(function(){var W=_.yB(function(){Lc2().inputMethodsTracker.add(3);var P,x=(P=_.$$("SBOX_SETTINGS"))==null?void 0:P.REQUEST_LANGUAGE;if(x)return _.h1("//www.google.com/textinputassistant/14/"+x+"_tia.js"),!1});
return _.u("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.u("button",{class:"ytdTextInputAssistantButton","on:click":W},_.u("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kg");var jvQ=function(){this.cache=new Map},Qv9=function(W){for(var P=_.n(W.cache.entries()),x=P.next();!x.done;x=P.next()){var I=_.n(x.value);
x=I.next().value;I=I.next().value;I.suggestions.some(function(O){return O.type===35})&&W.cache.delete(x)}};var CFy=_.fY.SEARCH,A73=_.fY.SEARCH_CLEAR_LABEL,zOv=new _.Lb("FAKE_SUGGEST_RESPONSE");_.lq(_.kl(function(W){function P(){sc||(sc=setTimeout(function(){jz()},1E3))}
function x(tw,vm,oG){if(tw.trim()){TE=tw;_.MR("REFINEMENTS_TUPLE",void 0);D3=!0;var zk;vm=xvm(j$,vm);var Yi=(zk=W.searchEndpoint)==null?void 0:zk.call(W);zk=Bm.value.value;Yi||(Yi=FrQ);var j5;(j5=_.Q(Yi.commandMetadata,_.rU))!=null&&j5.url||(j5=Error("ml`"+JSON.stringify(Yi)),_.G$(j5),Yi=FrQ);j5=_.jU.unsafeClone(Yi);Yi=_.hy(_.Q(j5.commandMetadata,_.rU).url,"search_query",tw);_.hz(location.href,"sv")==="1"&&(_.Q(j5,_.Zz).params="EgOAAgE%3D",Yi=_.hy(Yi,"sv","1"));_.Q(j5,_.Zz)&&(_.Q(j5,_.Zz).query=tw);
Yi=Yi.replace(/%20/g,"+");_.Q(j5.commandMetadata,_.rU).url=Yi;oG=_.p("desktop_enable_entity_suggest")?{entityMid:oG}:{};_.FY().resolve(_.qR).resolveCommand(j5,{form:{tempData:Object.assign({},{gs_l:vm,oq:zk!=null?zk:tw},oG)}});jz();Bm.value.value=tw;Bm.value.blur();j$.reset()}}
function I(tw){return _.y(function(vm){return vm.return(new Promise(function(oG){var zk=new XMLHttpRequest;zk.open("GET",U2L(tw),!0);zk.withCredentials=!0;var Yi=_.$$("SBOX_SETTINGS");(Yi==null?0:Yi.SEND_VISITOR_DATA)&&zk.setRequestHeader("X-Goog-Visitor-Id",Yi==null?void 0:Yi.VISITOR_DATA);zk.onload=function(){oG(zk.responseText)};
zk.onerror=function(){_.ge(Error("nl"));oG(null)};
setTimeout(function(){zk.abort()},1E4);
zk.send(null)}))})}
function O(tw){var vm,oG,zk,Yi;return _.y(function(j5){switch(j5.nextAddress){case 1:return vm={credentials:"include",headers:kiv()},window.AbortController&&(oG=new AbortController,setTimeout(function(){oG.abort("ytsbox-suggest-timeout")},1E4),vm.signal=oG.signal),_.OT(j5,2),_.S(j5,fetch(U2L(tw),vm),4);
case 4:zk=j5.yieldResult.text();_.ci(j5,3);break;case 2:return Yi=_.yn(j5),Yi!=="ytsbox-abort-last"&&Yi!=="ytsbox-suggest-timeout"&&_.ge(Yi),j5.return(null);case 3:return j5.return(zk)}})}
function B(tw){var vm,oG,zk;return _.y(function(Yi){switch(Yi.nextAddress){case 1:if(vm=_.FY().resolve(_.Rl(zOv)))return Yi.return(vm);oG=Date.now();P();return _.p("yt_searchbox_xhr")?_.S(Yi,I(tw),5):_.S(Yi,O(tw),4);case 4:zk=Yi.yieldResult;Yi.jumpTo(3);break;case 5:zk=Yi.yieldResult;case 3:if(zk){sc&&(clearTimeout(sc),sc=null);var j5=j$,m9=oG,cZ=tw.query.length===0;m9=Date.now()-m9;cZ?j5.zeroPrefixRoundTripTime=m9:(j5.JSC$18347_totalRoundTripTime+=m9,j5.maxRoundTripTime=Math.max(j5.maxRoundTripTime,
m9),cZ=Math.floor(m9/100),cZ>=ILL.length?++j5.roundTripTimeHistogram[9]:++j5.roundTripTimeHistogram[ILL[cZ]])}return Yi.return(zk)}})}
function Y(tw){var vm,oG,zk;return _.y(function(Yi){if(Yi.nextAddress==1)return(vm=PZ.cache.get(bOG(tw)))?Yi.return(vm):_.S(Yi,B(tw),2);oG=Yi.yieldResult;if(oG===null)return Yi.return(null);zk=new RZ6(oG);tw.query.length===0&&zk.suggestions.length===0||PZ.cache.set(bOG(tw),zk);return Yi.return(zk)})}
function K(tw){var vm,oG;return _.y(function(zk){if(zk.nextAddress==1){lp=!1;var Yi=TE;Yi=_.Pvx()==="search"?(_.hz(location.href,"search_query")||_.hz(location.href,"q"))===Yi:!1;vm=new avy(tw,Yi?TE:null);return _.S(zk,Y(vm),2)}oG=zk.yieldResult;if(oG===null)return zk.return();vm.query.length===0&&(j$.zeroPrefixSuggestionCount=oG.suggestions.length);if(vm.id<=rS)return j$.outOfSyncResponseCount++,zk.return();if(document.activeElement!==Bm.value)return zk.return();rS=vm.id;var j5=j$,m9=oG.rawResponse[2]||
{};j5.experimentTriggeredBeforeFinal||(j5.experimentTriggeredBeforeFinal=j5.experimentTriggeredFinal);j5.experimentTriggeredFinal=!!m9.e;j$.updateSuggestions(oG.suggestions);w(-1);iC([]);oG.suggestions!==C()&&Bi(oG.suggestions.length);z(oG.suggestions);pm(oG.suggestions.length>0&&oG.suggestions[0].type===33);KM&&(KM.hidden=oG.suggestions.length===0,nm()?(KM.style.minWidth="",j5=KM.style,m9=(Yi=C()[0])==null?void 0:Yi.ignoredPrefix,j5.marginLeft=(m9?Math.min(m9.length*6,GA.value.offsetWidth):0).toString()+
"px"):(KM.style.minWidth=GA.value.offsetWidth+"px",KM.style.marginLeft="0"),i5());_.Kl(zk)})}
function Z(){if(!D3)return!1;var tw=_.$$("REFINEMENTS_TUPLE");return tw?(tw=tw[1].map(function(vm,oG){return new rLv([vm,0,[71]],Bm.value.value,oG)}),C()!==tw&&Bi(tw.length),iC([]),z(tw),j$.updateSuggestions(tw),D3=!1,KM.hidden=tw.length===0,lp=tw.length>0,!0):!1}
function d(){var tw=Bm.value.value;(typeof tw==="string"||tw instanceof String)&&tw!==""?N(!0):N(!1)}
function v(){if(_.Pvx()==="search"){var tw=window.location.href;try{var vm=_.hz(tw,"search_query")||_.hz(tw,"q")||""}catch(oG){vm=""}vm&&(Bm.value.value=vm,N(!0))}}
var m=_.n(_.YV([],void 0,"kGFAjf")),t=m.next().value;m=m.next().value;var C=t,z=m;t=_.n(_.YV(-1,void 0,"mLGL9e"));var D=t.next().value,w=t.next().value;t=_.n(_.YV(-1,void 0,"u2rYdc"));var a=t.next().value,k=t.next().value;t=_.n(_.YV(!1,void 0,"W9DFC"));var T=t.next().value,N=t.next().value;t=_.n(_.YV(!1,void 0,"Ip4dNc"));var Io=t.next().value,F=t.next().value;m=_.n(_.YV(!1,void 0,"ZNKSQb"));t=m.next().value;m=m.next().value;var nm=t,pm=m;m=_.n(_.YV(!1,void 0,"JBrGLd"));t=m.next().value;var zR=m.next().value;
m=_.n(_.YV(!1,void 0,"P2pD6e"));var Am=m.next().value,kW=m.next().value;m=_.n(_.YV(1,void 0,"SjP20c"));var $W=m.next().value,ao=m.next().value;m=_.n(_.YV([],void 0,"h4dRaf"));var e8=m.next().value,iC=m.next().value;m=_.n(_.YV(!1,void 0,"TUTzaf"));var hw=m.next().value,dk=m.next().value;m=_.p("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Oc=_.fa(),Bm=_.fa(),GA=_.fa(),KM,PZ=new jvQ,j$=Lc2(),YW=_.FY().resolve(_.Rl(_.hF)),
QZ=function(){var tw;return((tw=W.forceDarkMode)==null?void 0:tw.call(W))||!(YW==null||!YW())},ez=function(){return _.p("desktop_enable_scrollable_suggestions_panel")},b3="i"+sv4++,D3=!1,lp=!1,TE="",sc=null,rS=-1,jz=function(){iC([]);
z([]);pm(!1);KM&&(KM.hidden=!0);sc&&(clearTimeout(sc),sc=null);w(-1)},yf=function(tw,vm){tw.preventDefault();
dk(!0);KM&&(KM.hidden=!1);var oG=D();tw=C();var zk=e8();vm=f53(vm);oG+=vm;for(oG>=tw.length?oG=-1:oG<-1&&(oG=tw.length-1);oG!==-1&&(zk.includes(oG)||oG>=tw.length||oG<0);)oG+=vm,oG>=tw.length&&(oG=-1);w(oG);D()>=0&&(Bm.value.value=C()[D()].text,k(0),d(),tw=D(),zk=a(),(zk=document.getElementById(pl[tw][zk]))&&ez()&&(tw===C().length-1?KM.scrollTop=KM.scrollHeight:zk.scrollIntoView({block:"nearest",inline:"start"})))},CM=_.yB(function(tw){if(!(tw.relatedTarget instanceof Element&&tw.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){F(!0);
var vm;(vm=W.focusCallback)==null||vm.call(W,!0);Z()||(lp?KM.hidden=!1:(_.Lf(Oc.value,"yt-autonav-pause-focus",{}),K(tw.target.value)))}}),Vf=_.yB(function(tw){if(!(tw.relatedTarget instanceof Element&&tw.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){F(!1);
var vm;(vm=W.focusCallback)==null||vm.call(W,!1);KM.scrollTop=0;KM.hidden=!0;_.Lf(Oc.value,"yt-autonav-pause-blur",{})}}),Kx=function(tw){tw=f53(tw);
var vm;((vm=pl[D()])==null?0:vm[a()+tw])&&k(a()+tw)},SV=_.yB(function(tw){var vm=tw.target;
switch(tw.keyCode){case 13:tw.preventDefault();var oG;if((oG=pl[D()])==null?0:oG[a()]){var zk;(zk=document.getElementById(pl[D()][a()]))==null||zk.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}tw=tw.shiftKey?4:3;oG=j$;zk=D();oG.selectedSuggestionIndex=zk;x(vm.value,tw);break;case 27:KM&&(KM.hidden=!0);break;case 40:yf(tw,40);break;case 38:yf(tw,38);break;case 39:Kx(39);break;case 37:Kx(37);break;case 229:j$.inputMethodsTracker.add(4);break;default:j$.inputMethodsTracker.add(1),
WUy(j$)}return!1}),k4=_.yB(function(tw){K(tw.target.value);
d();ez()&&KM&&(KM.scrollTop=0);return!1}),to=_.yB(function(){j$.inputMethodsTracker.add(2);
WUy(j$);return!1});
_.Qa(function(){if(KM){j$.reset();if(window.ResizeObserver){var tw=new ResizeObserver(function(){nm()||(KM.style.minWidth=GA.value.offsetWidth+"px")});
tw.observe(GA.value);(new ResizeObserver(function(){i5()})).observe(KM);
_.C4(function(){tw.disconnect()})}v();
window.addEventListener("yt-navigate-finish",v);window.addEventListener("yt-focus-searchbox",function(){Bm.value.focus()});
var vm;zR((vm=_.$$("SBOX_SETTINGS"))==null?void 0:vm.HAS_ON_SCREEN_KEYBOARD)}else _.G$(new _.mW("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var QE=_.yB(function(tw){tw.preventDefault();x(Bm.value.value,12);return!1}),Xl=_.yB(function(tw){tw.preventDefault();
var vm,oG;(vm=Bm)==null||(oG=vm.value)==null||oG.focus();var zk,Yi;((zk=Bm)==null?void 0:(Yi=zk.value)==null?void 0:Yi.value)!==""&&(Bm.value.value="",Bm.value.dispatchEvent(new Event("input")));return!1}),t9=_.yB(function(){var tw=hUL(Bm.value.value,C().filter(function(vm){return vm.type!==35}).map(function(vm){return{label:vm.text}}));
_.W7(Oc.value,"yt-open-popup-action",[{openPopupAction:tw},document.body]);return!1}),RG=_.yB(function(){Bm.value.focus();
return!1}),F6=function(tw,vm,oG,zk,Yi){j$.selectedSuggestionIndex=oG;
x(vm,Yi?3:1,zk)},EW=function(tw){Bm.value.value=tw;
Bm.value.dispatchEvent(new Event("input"));j$.inputMethodsTracker.add(5);WUy(j$,!0)},pl=[[]],uE=function(tw){var vm="searchbox-suggestion"+_.$1(_.vQ);
pl[tw].push(vm);return vm},Bi=function(tw){if(C()){pl=[[]];
for(var vm=0;vm<tw;vm++)pl.push([])}},i5=function(){if(ez()){var tw=KM,vm=tw.scrollTop;
tw=tw.scrollHeight-tw.clientHeight;kW(vm>=tw);vm=Math.abs(tw-vm);vm<=40?ao(1-(40-vm)/40):ao(1)}},uO=function(){return"opacity: "+$W()*100+"%"},tm=_.yB(function(){i5();
return!1}),wS=_.yB(function(){dk(!1);
return!1}),Xt,VZ={},Ov={},M5={},ZB={};
return _.u("yt-searchbox",{class:_.O4("ytSearchboxComponentHost",(VZ.ytSearchboxComponentMweb=!1,VZ.ytSearchboxComponentDesktop=!0,VZ["yt-searchbox-filled-query"]=function(){return T()},VZ["ytd-masthead"]=function(){return!Io()},VZ.ytSearchboxComponentHostDark=QZ,VZ)),
role:"search",el:Oc,"client-ve-type":10349},_.u("div",{el:GA,"on:click":RG,class:_.O4("ytSearchboxComponentInputBox",(Ov.ytSearchboxComponentInputBoxDark=QZ,Ov.ytSearchboxComponentInputBoxHasFocus=Io,Ov))},_.u("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":QE},_.u(_.V,{cond:Io,then:function(){return _.u("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.u(_.Sy,{icon:"SEARCH"}))}}),_.u("input",{el:Bm,
class:_.O4("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":b3,"aria-expanded":!((Xt=KM)==null?0:Xt.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":Vf,"on:focus":CM,"on:input":k4,"on:keydown":SV,"on:paste":to,placeholder:W.placeholderText,"aria-activedescendant":function(){var tw;return(tw=pl[D()])==null?void 0:tw[a()]},
"aria-autocomplete":"list",role:"combobox"})),_.u(_.V,{cond:t,then:function(){return _.u("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.u(paQ,null))}}),_.u(_.V,{cond:T,
then:function(){return _.u("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.u("button",{class:"ytSearchboxComponentClearButton","on:click":Xl,"aria-label":W.clearButtonAriaLabel||A73},_.u(_.Sy,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.u(_.s4,{model:{}})))}})),_.u("button",{class:_.O4("ytSearchboxComponentSearchButton",(M5.ytSearchboxComponentSearchButtonDark=QZ,M5)),
"on:click":QE,"aria-label":CFy,title:W.placeholderText},_.u(_.Sy,{icon:"SEARCH"})),_.u(_.V,{cond:function(){if(WBf()&&_.p("mweb_voice_search")&&W.voiceSearchButton)return W.voiceSearchButton()},
then:function(tw){var vm={};return _.u("div",{class:_.O4("ytSearchboxComponentVoiceSearchWrapper",(vm.ytSearchboxComponentHideVoiceSearchButton=function(){return T()},vm))},_.u(_.Ea,{data:tw},{buttonRenderer:function(oG){return _.u(_.wZ,{data:oG.data,
onButtonClickCallback:function(){}})}}))}}),_.u("div",{el:_.U2(function(tw){return void(KM=tw)}),
id:b3,class:_.O4("ytSearchboxComponentSuggestionsContainer",(ZB.ytSearchboxComponentSuggestionsContainerDark=QZ,ZB["yt-searchbox-suggestions-container"]=!1,ZB.ytSearchboxComponentSuggestionsContainerScrollable=ez(),ZB.ytSearchboxComponentSuggestionsContainerAnimated=m,ZB)),"on:scroll":tm,"on:mousemove":wS,role:"listbox",hidden:!0},_.u(_.sV,{each:C},function(tw,vm){return _.u(tXm,{suggestion:tw,isHighlighted:function(){return vm()===D()},
onClickCallback:F6,onHoverUpdateCallback:function(oG){if(_.p("desktop_enable_single_suggestion_highlight")){var zk=vm();oG&&(k(0),w(zk))}},
onRemoveCallback:function(oG){Qv9(PZ);oG===void 0||oG<0||e8().includes(oG)||iC([].concat(_.ju(e8()),[oG]))},
labels:W.labels,queryBuilderFunction:EW,suggestionIndex:vm,generateUniqueId:uE,highlightedId:function(){var oG;return(oG=pl[D()])==null?void 0:oG[a()]},
useScrollMargin:ez(),isKeyboardMode:hw})}),_.u(_.V,{cond:function(){return!nm()&&C().find(function(tw){return tw.type!==35})&&_.p("searchbox_reporting")},
then:function(){return _.u("button",{class:"ytSearchboxComponentReportButton","on:mousedown":t9},_.KK("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.u(_.V,{cond:function(){return!Am()&&ez()},
then:function(){return _.u("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.u("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:uO}))}})))},"lg"),"yt-searchbox",{props:{searchEndpoint:_.cv,
placeholderText:_.cv,labels:_.cv,voiceSearchButton:_.cv,focusCallback:_.Ng,clearButtonAriaLabel:_.cv,forceDarkMode:_.cv}});var rF=function(){var W=_.b.apply(this,arguments)||this;W.menuButtonTargetId="topbar-guide-menu";W.narrow=!1;W.menuStrings={BACK_ALT_LABEL:_.KK("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.KK("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.KK("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.KK("SBOX_PLACEHOLDER",void 0,"Search")};W.pageDarkTheme=document.documentElement.hasAttribute("dark");W.watchPageScrollTop=0;W.theater=!1;W.fullscreen=!1;W.desktopUnifiedSearchPanelMode=_.p("desktop_enable_unified_search_panel");
W.cinematicTheaterMode=_.p("web_cinematic_theater_mode");W.ytSearchboxFocused=!1;W.searchboxLabels=_.$$("SBOX_LABELS");W.topbarIsAboveChipbar=!1;W.isDarkThemeForced=!1;W.areGhostCardsHidden=!1;W.guideKeyboardToggle=!1;W.voiceSearchManager=XUO();W.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};W.setYtSearchboxFocused=function(P){W.ytSearchboxFocused=P};
return W};
_.A(rF,_.b);_.J=rF.prototype;_.J.computeSimpleText=function(W){return _.kz(W)};
_.J.onDarkChanged=function(){for(var W=_.n(this.buttons||[]),P=W.next();!P.done;P=W.next())P.value.isOverlay=!!this.dark;W=_.n(this.buttonRenderers||[]);for(P=W.next();!P.done;P=W.next())P.value.overrides=this.computeButtonOverride()};
_.J.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.J.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var W=_.ev(_.HK(),"aa");_.iS(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||W||(this.isDarkThemeForced=this.dark=!0);this.logoType?(W=this.hostElement.querySelector("#masthead-logo"))&&(_.p("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.oE(W)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.WM(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.WM(this,this.onSetTheaterModeEnabled))};
_.J.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.WM(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.WM(this,this.onSetTheaterModeEnabled))};
_.J.dataChanged=function(){var W=this.data;W&&(this.voiceEnabled=W.voiceSearchButton?XUO().isSupported():!1,_.jri(_.Bv(),this.menuButtonTargetId,this.guideButton),W.onReceivedActions&&W.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.OL(this.hostElement,W.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&W&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.iS(this.hostElement,"dark",!1),_.iS(this.hostElement,"theater",!1),
(W=this.hostElement.querySelector("#masthead-logo"))&&(_.p("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.oE(W))))};
_.J.computeCenterHidden=function(){var W;return this.data&&!((W=this.data.searchbox)==null?0:W.fusionSearchboxRenderer)};
_.J.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.iS(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.J.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.J.onWatchScroll=function(W){this.watchPageScrollTop=W.detail||0;this.updateMastheadBackgroundOpacity()};
_.J.onFullscreenChangeAction=function(W){W||(this.watchPageScrollTop=0);this.fullscreen=W;this.updateMastheadBackgroundOpacity()};
_.J.onSetTheaterModeEnabled=function(W){this.theater=W.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.J.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.J.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.J.setBackgroundOpacity=function(W){W=this.calculateBackgroundOpacity(W);this.background.style.opacity=""+W};
_.J.calculateBackgroundOpacity=function(W){var P=this.theater&&this.cinematicTheaterMode?.6:0,x=this.hostElement.clientHeight/2;return Math.min(Math.max(W,0),x)/x*(1-P)+P};
_.J.shouldShowCinematicMastHead=function(){var W=_.p("kevlar_watch_grid")&&!_.p("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(W||this.pageDarkTheme)};
_.J.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.J.focusGuide=function(){this.guideButton.focus()};
_.J.onGuideToggleTap=function(){_.Lf(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.J.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.J.onGuideToggleHover=function(){_.Lf(this.hostElement,"yt-guide-hover")};
_.J.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.J.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.J.closeOnOutsideClickCondition=function(W){for(W=_.c5(W);W[0];){var P=W.shift();if(P instanceof Element&&P.id==="kbd")return!1}return!0};
_.J.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.J.pausePlayer=function(){var W;(W=_.RP())==null||W.pause();this.pauseMiniplayer()};
_.J.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var W;(W=_.FY().resolve(_.kc).getPlayerElement())==null||W.pause()}};
_.J.isMiniplayerActive=function(){return _.FY().resolve(_.kc).isMiniplayerActive()};
_.J.updateNarrowFromBinding=function(W){this.narrow=W.detail.value};
_.J.onYtSendFeedbackAction=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.N1.Object.defineProperties(rF.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.p("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var W;return(W=this.data)==null?void 0:W.voiceSearchButton}}}});
rF.prototype.narrowChanged=rF.prototype.narrowChanged;rF.prototype.onWatchPageChange=rF.prototype.onWatchPageChange;rF.prototype.onRendererStamperFinished=rF.prototype.onRendererStamperFinished;rF.prototype.dataChanged=rF.prototype.dataChanged;rF.prototype.onDarkChanged=rF.prototype.onDarkChanged;_.f([_.h(_.Db),_.l("design:type",Object)],rF.prototype,"ironResizableBehavior",void 0);_.f([_.h(_.luB),_.l("design:type",Object)],rF.prototype,"ytdExpandableInputBehavior",void 0);
_.f([_.h(_.wW.YtdGuideStateAwareBehavior),_.l("design:type",Object)],rF.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],rF.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],rF.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Gp),_.l("design:type",Object)],rF.prototype,"ytdReduxBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],rF.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],rF.prototype,"narrow",void 0);_.f([_.c(),_.l("design:type",Object)],rF.prototype,"logoType",void 0);_.f([_.c(),_.l("design:type",Boolean)],rF.prototype,"voiceEnabled",void 0);
_.f([_.c(),_.l("design:type",Object)],rF.prototype,"menuStrings",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],rF.prototype,"dark",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],rF.prototype,"pageDarkTheme",void 0);_.f([_.c(),_.l("design:type",Object)],rF.prototype,"watchPageScrollTop",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.zK}),_.l("design:type",Boolean)],rF.prototype,"isWatchPage",void 0);
_.f([_.c({reflectToAttribute:!0,selector:_.Q9R}),_.l("design:type",Boolean)],rF.prototype,"isShortsPage",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],rF.prototype,"theater",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],rF.prototype,"fullscreen",void 0);_.f([_.c({reflectToAttribute:!0,selector:_.EZG}),_.l("design:type",String)],rF.prototype,"frostedGlassMode",void 0);_.f([_.c(),_.l("design:type",Object)],rF.prototype,"ytSearchboxFocused",void 0);
_.f([_.n_("#buttons > *"),_.l("design:type",Array)],rF.prototype,"buttons",void 0);_.f([_.n_("ytd-button-renderer"),_.l("design:type",Array)],rF.prototype,"buttonRenderers",void 0);_.f([_.BM("#background"),_.l("design:type",HTMLDivElement)],rF.prototype,"background",void 0);_.f([_.BM("#guide-button"),_.l("design:type",Object)],rF.prototype,"guideButton",void 0);_.f([_.BM("#logo"),_.l("design:type",Object)],rF.prototype,"logo",void 0);
_.f([_.c({computed:"computeButtonOverride(dark)"}),_.l("design:type",Object)],rF.prototype,"buttonOverrides",void 0);_.f([_.K_("dark"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rF.prototype,"onDarkChanged",null);_.f([_.c({value:function(){return this.onVoiceTap.bind(this)}}),
_.l("design:type",Function)],rF.prototype,"boundOnTapVoiceButton",void 0);_.f([_.c(),_.l("design:type",Object)],rF.prototype,"topbarIsAboveChipbar",void 0);_.f([_.c(),_.l("design:type",String),_.l("design:paramtypes",[])],rF.prototype,"guideIcon",null);_.f([_.H("voiceEnabled"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rF.prototype,"shouldShowVoiceSearchButton",null);_.f([_.H("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],rF.prototype,"voiceSearchButton",null);
_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rF.prototype,"dataChanged",null);_.f([_.I7("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rF.prototype,"onRendererStamperFinished",null);_.f([_.K_("isWatchPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rF.prototype,"onWatchPageChange",null);
_.f([_.K_("narrow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rF.prototype,"narrowChanged",null);rF=_.f([_.U({disableElementRegistration:!0,is:"ytd-masthead"})],rF);
_.X(rF,"ytd-masthead",function(){if(uvQ!==void 0)return uvQ;var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return uvQ=W},{mode:_.F4("kevlar_poly_si_batch_j036")?1:2});var GWd;var En4={},gny={},Dv9={},MXO={},$vB=(MXO.OFFLINE=(En4["publicytnetworkstatus-online"]="BACK_ONLINE",En4),MXO.ONLINE=(gny["publicytnetworkstatus-offline"]="OFFLINE",gny),MXO.BACK_ONLINE=(Dv9["publicytnetworkstatus-offline"]="OFFLINE",Dv9.TIMER_TRIGGER="ONLINE",Dv9),MXO),i$=function(){var W=_.b.apply(this,arguments)||this;W.currentState="ONLINE";W.scheduledJobId=0;W.bannerString="";W.bannerVe=null;W.networkStatusManagerInstance=new _.bE;return W};
_.A(i$,_.b);_.J=i$.prototype;_.J.attached=function(){var W=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.J.detached=function(){var W=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.J.enterState=function(W){var P=this;this.scheduledJobId&&_.Gr.cancelJob(this.scheduledJobId);W==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):W==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.KK("NO_INTERNET_CONNECTION",void 0,"No internet connection")):W==="BACK_ONLINE"&&(this.bannerString=_.KK("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.VE(_.Gr,function(){P.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=W};
_.J.stateChangeHandler=function(W){(W=$vB[this.currentState][W])&&this.enterState(W)};
_.J.logVisibility=function(W){var P=_.E_();this.createBannerVe(W);P&&this.bannerVe&&(W?_.c7(P,[this.bannerVe]):_.au(P,[this.bannerVe]))};
_.J.createBannerVe=function(W){!this.bannerVe&&W&&(this.bannerVe=_.td(37929),_.YP(_.YY(),this.bannerVe))};
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",String)],i$.prototype,"currentState",void 0);_.f([_.c(),_.l("design:type",Object)],i$.prototype,"scheduledJobId",void 0);_.f([_.c(),_.l("design:type",Object)],i$.prototype,"bannerString",void 0);i$=_.f([_.U({disableElementRegistration:!0,is:"ytd-network-status-banner"})],i$);
_.X(i$,"ytd-network-status-banner",function(){if(GWd!==void 0)return GWd;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return GWd=
W},{mode:1});var waO;var Ry=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};W.hidden=!0;W.frostedGlass=_.p("web_frosted_glass");return W};
_.A(Ry,_.b);Ry.prototype.computeHidden=function(W){return W&&W.status?!1:!0};
Ry.prototype.handleUpdatePermissionRoleCommand=function(W){if(W=_.Q(W,_.jIZ))if(W=_.Q(W.renderer,_.pzl))this.data=W};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Ry.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Ry.prototype,"componentBehavior",void 0);_.f([_.c({value:!0,computed:"computeHidden(data)"}),_.l("design:type",Object)],Ry.prototype,"hidden",void 0);_.f([_.c(),_.l("design:type",Object)],Ry.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ry.prototype,"frostedGlass",void 0);
Ry=_.f([_.U({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Ry);
_.X(Ry,"ytd-permission-role-bottom-bar-renderer",function(){if(waO!==void 0)return waO;var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);return waO=W},{mode:1});var hO2;var Hs6;var NEM={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var FA=function(){return _.b.apply(this,arguments)||this};
_.A(FA,_.b);_.J=FA.prototype;_.J.attached=function(){this.JSC$18449_scroller&&(this.JSC$18449_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18449_scroller.attached&&typeof this.JSC$18449_scroller.attached==="function"&&this.JSC$18449_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(x){x.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var W=_.g(this.hostElement);W.querySelector("tp-yt-paper-radio-group").selected="";var P=W.querySelector("#reason-text");P&&(P.value="");W.querySelector("#description-text").value=""}};
_.J.canSubmit=function(W,P){_.Lf(this.hostElement,"yt-invalidate-popup-tabbables");return!(W&&P)};
_.J.onCancel=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.J.onSubmit=function(){var W=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(B){return B.active}).map(function(B){return B.innerText.trim()}),P=this.hostElement.querySelector("tp-yt-paper-radio-group"),x=P.selectedItem,I=x.name;
x=x.innerText.trim();var O=P.querySelector("#reason-text");P=void 0;O&&(P=O.value);(O=this.descriptionText.value)&&(O=O.trim());l5m(this.data.searchQuery,W,I,x,O,P);_.W7(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.J.sendFormSubmitToast=function(){var W=_.lx(_.KK("SBOX_INAPPROPRIATE_TOAST"));_.W7(this.hostElement,"yt-open-popup-action",[W,this])};
_.J.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(W){return W.active})};
_.J.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
FA.prototype.onIronSelect=FA.prototype.onIronSelect;FA.prototype.onIronChange=FA.prototype.onIronChange;FA.prototype.dataChanged=FA.prototype.dataChanged;_.f([_.c(),_.l("design:type",Object)],FA.prototype,"data",void 0);_.f([_.c({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.l("design:type",Boolean)],FA.prototype,"submitDisabled",void 0);_.f([_.c(),_.l("design:type",Boolean)],FA.prototype,"suggestionSelected",void 0);
_.f([_.c(),_.l("design:type",Boolean)],FA.prototype,"catagorySelected",void 0);_.f([_.BM("#scroller"),_.l("design:type",Object)],FA.prototype,"JSC$18449_scroller",void 0);_.f([_.BM("#description-text"),_.l("design:type",Object)],FA.prototype,"descriptionText",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FA.prototype,"dataChanged",null);
_.f([_.I7("iron-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FA.prototype,"onIronChange",null);_.f([_.I7("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FA.prototype,"onIronSelect",null);FA=_.f([_.U({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],FA);
_.X(FA,"ytd-search-suggestion-report-dialog",function(){if(Hs6!==void 0)return Hs6;var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return Hs6=W},{mode:1});var q9=function(W){var P=W.openPopupAction;var x=W.target;var I=W.container;var O=W.popupContainerConfig;var B=W.getElement;W=W.removeWhenClosed===void 0?!1:W.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=P;this.target=x;this.container=I;this.popupContainerConfig=O;this.getElement=B;this.JSC$18455_popupConfig=this.popupContainerConfig.JSC$17572_popupConfig[this.openPopupAction.popupType];this.rendererName=(P=this.getName())?_.a18(P,tfL(this.popupContainerConfig,
P)):"";_.p("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=W);this.createPopup()};
q9.prototype.updatePopup=function(W){this.openPopupAction=W;this.JSC$18455_popupConfig=this.popupContainerConfig.JSC$17572_popupConfig[this.openPopupAction.popupType];eOM(this);_.p("reorder_popup_updates_killswitch")&&c7M(this);_.p("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var kWB=function(W,P,x){W.target=x;var I;x=((I=W.target.polymerController)!=null?I:W.target).popupPositionTarget||W.target;W.JSC$18455_popupConfig.targetContainer&&(x=W.container);W.popup.positionTarget=x;W.popupContent.positionTarget=x;_.p("reorder_popup_updates_killswitch")||c7M(W);W.JSC$18455_popupConfig.forceFocus&&(W.popupContent.style.outline="none");W.popupContent.tabIndex=-1;W.JSC$18455_popupConfig.narrowProperties&&(W.popup.style.position="static");W.JSC$18455_popupConfig.preventAutonav&&
W.popup.setAttribute("prevent-autonav",!0);W.JSC$18455_popupConfig.forceCloseOnOutsideClick&&W.popup.setAttribute("force-close-on-outside-click",!0);aLO(W,P);bs2(W,W.JSC$18455_popupConfig.styles);W.isRtl()&&bs2(W,W.JSC$18455_popupConfig.rtlStyles);if(!W.openPopupAction.shouldStopParentSignal){var O;P=(O=W.target.polymerController)!=null?O:W.target;(W.popupContent.startForwardingEvents||W.popupContainerConfig.forwardingEnabledPopups.has(W.rendererName))&&P.parentComponent!==W.popupContent&&W.popupContent!==
W.target&&W.target!==document.body&&(W.popupContent.startForwardingEvents?W.popupContent.startForwardingEvents(W.popupContainerConfig.forwardedEvents,W.target):(W.JSC$18455_eventForwarder||(W.JSC$18455_eventForwarder=new _.dh(W.popupContent)),W.JSC$18455_eventForwarder.start(W.popupContainerConfig.forwardedEvents,W.target)))}};
q9.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var aLO=function(W,P){Uv4(W,P&&W.JSC$18455_popupConfig.narrowProperties?W.JSC$18455_popupConfig.narrowProperties:W.JSC$18455_popupConfig.properties);W.isRtl()&&Uv4(W,W.JSC$18455_popupConfig.rtlProperties);c7M(W)};
q9.prototype.createPopup=function(){var W=this.JSC$18455_popupConfig.component;if(this.popupContent=XaO(this,this.rendererName)){if(W){this.popup=XaO(this,W);var P=this.popupContent;_.p("web_enable_wrapper_for_cow_component_in_popup")&&(P=document.createElement("div"),P.appendChild(this.popupContent));_.p("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18455_popupConfig.slotName&&P.setAttribute("slot",this.JSC$18455_popupConfig.slotName);W=this.popup;var x=this.container.tagName.toLowerCase(),
I=_.bS(P);_.Z78(_.Uo(W),_.Na(P,x,I));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.p("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.g(this.container).appendChild(this.popup)}};
var eOM=function(W){var P,x,I=(P=W.openPopupAction.accessibilityData)==null?void 0:(x=P.accessibilityData)==null?void 0:x.label;I&&(W.popup.ariaLabel=I);var O;((O=W.popupContent.polymerController)!=null?O:W.popupContent).data=(0,_.jU.unsafeClone)(W.openPopupAction.popup[W.getName()]);W.popupContent.duration=fLQ(W);W.popupContent.positionType=W.openPopupAction.position;var B=W.openPopupAction.properties;B&&Object.keys(B).forEach(function(Y){W.popupContent[Y]=B[Y]})},Uv4=function(W,P){if(P)for(var x=
_.n(Object.keys(P)),I=x.next();!I.done;I=x.next())I=I.value,W.popup[I]=P[I]},c7M=function(W){if(W.openPopupAction.position){var P=W.JSC$18455_popupConfig.positionalProperties&&W.JSC$18455_popupConfig.positionalProperties[W.openPopupAction.position],x=W.JSC$18455_popupConfig.rtlPositionalProperties&&W.JSC$18455_popupConfig.rtlPositionalProperties[W.openPopupAction.position];
P=W.isRtl()&&x?x:P;P.shiftedHorizontalOffset&&(x=W.popup.style.display,W.popup.style.display="block",W.popupContent&&W.popup.positionTarget&&W.popupContent.clientWidth>W.popup.positionTarget.clientWidth&&(P.horizontalOffset=W.popup.positionTarget.clientWidth/2-P.shiftedHorizontalOffset),W.popup.style.display=x);Uv4(W,P)}},bs2=function(W,P){if(P)for(var x=_.n(Object.keys(P)),I=x.next();!I.done;I=x.next())I=I.value,W.popup.style[I]=P[I]};
q9.prototype.getName=function(){return _.go(this.openPopupAction.popup,"renderer")||_.go(this.openPopupAction.popup,"dialog")||_.go(this.openPopupAction.popup,"model")||void 0};
var fLQ=function(W){W=W.openPopupAction.durationHintMs;return W===0?W:Math.max(4E3,W||4E3)};
q9.prototype.isRtl=function(){return _.$$("HTML_DIR")==="rtl"};
var XaO=function(W,P){W=W.getElement(P,W.target);W==null&&_.ge(new _.mW("popup getElement returned null",P));return W};var NB6={};
NB6.YtPopupContainerBehavior=[_.gb.YtComponentBehavior,_.rb.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Fu(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.qV(this.hostElement)},
closePopup:function(W){var P=this.createCacheKey(void 0,W);this.popups_[P]&&this.handleClosePopupAction_(void 0,W)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Gr.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Gr.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(W){W.opened&&W.keepBelowPlayer&&this.ensurePopupBelowPlayer(W)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var W in this.popups_){var P=this.popups_[W];if(P.popup.scrollAction==="refit"){var x=P.popup.positionTarget.getBoundingClientRect(),I=P.popup;x=x.top;var O=P;if(!O.naturalHeight){O.popup.hidden=!1;O.popup.style.position="fixed";O.popup.style.top="0px";O.popup.style.left="0px";var B=O.popup.getBoundingClientRect();O.naturalHeight=B.bottom-B.top;O.popup.refit()}I.hidden=!(x>=O.naturalHeight+60);P.popupContent.clientHeight===0&&P.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(W){this.popupContainerConfig=W},
handleOpenPopupAction:function(W,P){var x=W.openPopupAction,I=_.FY().resolve(_.Rl(_.xbf))&&x.popupType==="TOAST";I&&!x.uniqueId&&(x.uniqueId=_.G6());if(!_.p("popup_container_parent_target_killswitch")){var O;P=(O=this.getParentTarget(P))!=null?O:P}var B=this.ensurePopup_(x,P);return new _.yE(function(Y){B.then(function(K){if(!K)return Y();this.maybeCreateNarrowMediaQuery_();var Z=this.createCacheKey(K.rendererName,K.openPopupAction.uniqueId);if(x.showOncePerUniqueId){if(this.shownPopupKeys_.has(Z))return Y();
this.shownPopupKeys_.add(Z)}Z=this.popups_[Z];var d=!(!Z||!Z.openPopupAction.beReused);d=!!x.reusePopup||d;if(K.popup.opened&&!d){I&&!K.openPopupAction.replacePopup||this.handleClosePopupAction_(K.rendererName,K.openPopupAction.uniqueId);d=x.popupType==="DIALOG"&&!_.p("popup_container_dialog_reopen_killswitch");if(!I&&!d&&Z&&Z.target==P&&!K.openPopupAction.replacePopup)return Y();_.Xm(K.popup,function(){this.completeOpenPopupAction_(x,P,K);Y()}.bind(this))}else K.popup.opened?K.updatePopup(x):this.completeOpenPopupAction_(x,
P,K),Y()}.bind(this))}.bind(this))},
getParentTarget:function(W){if(W&&W instanceof HTMLElement)for(var P=_.n(Object.entries(this.popups_)),x=P.next();!x.done;x=P.next())if(x=_.n(x.value),x.next(),x=x.next().value,x.popup.tagName==="TP-YT-IRON-DROPDOWN"&&x.popup.opened&&W.closest(x.rendererName))return x.target},
completeOpenPopupAction_:function(W,P,x){_.p("reorder_popup_updates_killswitch")?(kWB(x,this.narrowMediaQuery_.queryMatches,P),x.updatePopup(W)):(x.updatePopup(W),kWB(x,this.narrowMediaQuery_.queryMatches,P));W=x.popup;W.addEventListener("iron-overlay-opened",_.WM(this,this.onPopupIronOverlayOpened_));W.addEventListener("iron-overlay-closed",_.WM(this,this.onPopupIronOverlayClosed_));W.addEventListener("iron-overlay-canceled",_.WM(this,this.onPopupIronOverlayCanceled_));W.addEventListener("yt-refit",
_.WM(this,this.refitPopup_));W.addEventListener("yt-invalidate-popup-tabbables",_.WM(this,this.handleInvalidatePopupTabbables_));W.open()},
getPopupDurationMs_:function(W){return W.durationHintMs===0?W.durationHintMs:Math.max(4E3,W.durationHintMs||4E3)},
handleClosePopupAction_:function(W,P){var x=_.p("web_popup_cache_key_killswitch")||!!P;if(W||x){var I=this.createCacheKey(W,P);W=(W=this.popups_[I])&&W.popup}else W=_.QSp(_.Xs);if(W&&W.close){if(P=_.FY().resolve(_.Rl(_.jK)))W.restoreFocusOnClose=P.isKeyBoardInUse();W.close();this.removePopup_(W,I)}},
handleClosePopupCommand_:function(W){W.closePopupCommand&&W.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,W.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(W){var P={},x;for(x in this.popups_)if(P={key$jscomp$1162:P.key$jscomp$1162},P.key$jscomp$1162=x,!W||!W.some(function(B){return function(Y){return Y==B.key$jscomp$1162}}(P))){var I=this.popups_[P.key$jscomp$1162],O=I.popup;
_.FY().resolve(_.Rl(_.xbf))&&I.openPopupAction.popupType==="TOAST"||(O&&O.close&&O.close(),this.removePopup_(O,P.key$jscomp$1162))}},
handleClosePopupsAction_:function(W){W.forEach(function(P){var x=this.popups_[P];x&&((x=x.popup)&&x.close&&x.close(),this.removePopup_(x,P))}.bind(this))},
handleGetPopupOpenedAction_:function(W,P){return(P=this.createCacheKey(W,P))&&this.popups_[P]?this.popups_[W].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var W=[],P;for(P in this.popups_){var x=this.popups_[P];x.popup.opened&&W.push(x)}return W},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(W,P){_.p("ytpopup_disable_default_html_caching")&&W&&W.removeWhenClosed&&(_.g(this.hostElement).removeChild(W),P&&this.popups_[P]&&delete this.popups_[P])},
shouldReusePopup_:function(W){return!(!W||!W.reusePopup)||!(!W||!W.beReused)},
ensurePopup_:function(W,P){this.maybeCreateNarrowMediaQuery_();var x=_.go(W.popup,"renderer")||_.go(W.popup,"dialog")||_.go(W.popup,"model");if(!x)return _.Jn();x=_.a18(x,tfL(this.popupContainerConfig,x));return _.Jn(this.getAndMaybeCreatePopup_(W,x,P))},
getAndMaybeCreatePopup_:function(W,P,x){var I=this.createCacheKey(P,W.uniqueId);if(this.popups_[I])return this.popups_[I];W=new q9({openPopupAction:W,target:x,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(P)});return this.popups_[I]=W},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(W){return _.p("ytpopup_disable_default_html_caching")?W&&W.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",_.WM(this,this.openPopupQueryMatchesChanged_)),_.g(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(W){W=W.detail.value;for(var P in this.popups_)aLO(this.popups_[P],W)},
onPopupIronOverlayClosed_:function(W){var P=W.currentTarget,x=_.Mgx(P);x=x.length>0?x[0]:P;if(x.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){W.detail.popup=P;W.detail.popupRenderer=x;var I,O={context:{openingElement:((I=this.popups_[(x==null?void 0:x.is)||""])==null?void 0:I.target)||void 0}};Object.assign(O,W.detail);var B;_.Lf((B=x.hostElement)!=null?B:x,"yt-popup-closed",O);P.removeEventListener("yt-refit",_.WM(this,this.refitPopup_));P.removeEventListener("yt-invalidate-popup-tabbables",
_.WM(this,this.handleInvalidatePopupTabbables_));P.removeEventListener("iron-overlay-canceled",_.WM(this,this.onPopupIronOverlayCanceled_));P.removeEventListener("iron-overlay-closed",_.WM(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(P)}},
onPopupIronOverlayCanceled_:function(W,P){var x=W.currentTarget,I=_.Mgx(x);I=I.length>0?I[0]:x;if(I.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){var O;_.Lf((O=I.hostElement)!=null?O:I,"yt-popup-canceled",W.detail);O=P?_.c5(P):null;(!P||["click","tap"].includes(P.type))&&!x.hasAttribute("force-close-on-outside-click")&&x.positionTarget&&O&&O.includes(x.positionTarget)&&W.preventDefault();x.restoreFocusOnClose=_.tu.keyboardEventMatchesKeys(P,"esc")}},
onPopupIronOverlayOpened_:function(W){W=W.currentTarget;var P=_.Mgx(W);P=P.length>0?P[0]:W;var x,I;_.Lf((x=P.hostElement)!=null?x:P,"yt-popup-opened",(I=P.hostElement)!=null?I:P);W.keepBelowPlayer&&(this.ensurePopupBelowPlayer(W,!0),this.dynamicallyPositionedElements_.add(W));x=_.FY().resolve(_.Rl(_.jK));I=!!P.querySelector("#toast");x&&x.isKeyBoardInUse()&&!I&&(typeof P.focusFirstItem==="function"?P.focusFirstItem():(P=_.tKd(W),P.length&&P[0].focus()));W.removeEventListener("iron-overlay-opened",
_.WM(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(W){W=W.currentTarget;W.refit&&W.refit()},
refitPopups_:function(){for(var W in this.popups_)this.popups_[W].refit()},
handleInvalidatePopupTabbables_:function(W){W=W.currentTarget;W.invalidateTabbables&&W.invalidateTabbables()},
createCacheKey:function(W,P){return _.p("web_popup_cache_key_killswitch")?P?W+"#"+P:W:P?"#"+P:W},
openSheet:function(W,P){var x=W==null?void 0:W.openPopupActionCommand;!x&&(W==null?0:W.viewModel)&&(x={openPopupAction:{popup:{sheetViewModel:W.viewModel},popupType:"CONTEXTUAL_SHEET"}});x&&this.handleOpenPopupAction(x,P)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var W=this;return _.y(function(P){return P.return(W.handleGetOpenedPopupsAction_().filter(function(x){var I;return((I=x.openPopupAction)==null?void 0:I.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(W,P,x){if(_.p("web_dialog_utils_killswitch")){var I=W==null?void 0:W.openPopupActionCommand,O=(x==null?0:x.ariaLabel)?{accessibilityData:{accessibilityData:{label:x.ariaLabel}}}:void 0;!I&&(W==null?0:W.viewModel)&&(I={openPopupAction:Object.assign({},{popup:{dialogViewModel:W.viewModel},popupType:(x==null?0:x.isModal)?"MODAL":"DIALOG"},O&&O)});I&&this.handleOpenPopupAction(I,P)}else{if(O=W==null?void 0:W.viewModel){var B=x=x===void 0?{}:x;x=B.ariaLabel;O={popup:{dialogViewModel:O},
popupType:B.isModal?"MODAL":"DIALOG"};B={accessibilityData:{label:x}};x&&(O.accessibilityData=B);O={openPopupAction:O}}else O=void 0;(O=(I=O)!=null?I:W==null?void 0:W.openPopupActionCommand)&&this.handleOpenPopupAction(O,P)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var W=this;return _.y(function(P){return P.return(W.handleGetOpenedPopupsAction_().filter(function(x){var I;return((I=x.openPopupAction)==null?void 0:I.popupType)==="DIALOG"}).length>0)})}}];var lL6;var TB3;var r76=_.i4(["about:blank"]),o4=function(){var W=_.b.apply(this,arguments)||this;W.isMuted=!1;W.pageLoadTimeoutId=void 0;return W};
_.A(o4,_.b);_.J=o4.prototype;_.J.dataChanged=function(){var W=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var P=this.data.url,x=_.Ez(P);_.p("enable_yt_ata_iframe_authuser")?(x=_.Ez(P),_.g9(this.iframe,TE4(x))):_.g9(this.iframe,x);this.pageLoadTimeoutId=_.VE(_.Ds(),function(){return void W.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Wx({destination:window,iframe:this.iframe,origin:_.g4Z(x.toString()),channelName:"ataiframe",onMessage:_.k_m(AuO,function(I){zNd(I.data)?(I=_.t2(I.data,1,_.jm,_.qT()),I.length!==1?_.ge(Error("ol")):(I=I[0],I===3?(W.isMuted=!0,W.logStateChanged({adMuteRequested:!0})):I===1&&W.close())):_.ge(Error("pl"))}),
onEstablished:function(){W.cancelPageLoadTimeout();W.logStateChanged({pageLoadSucceeded:!0})}})}};
_.J.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Ds().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.J.logStateChanged=function(W){var P;if((P=this.data)==null?0:P.trackingParams)W={adsClientData:{aboutThisAdData:W}},_.YY().stateChanged(this.data.trackingParams,W)};
_.J.close=function(){_.W7(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.handlesPopupClosed=function(W,P){var x=this,I,O;return _.y(function(B){if(B.nextAddress==1)return _.$$("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.W7(x.hostElement,"on-about-this-ad-popup-closed",[x.isMuted,P]),B.jumpTo(0)):W&&rbL(W)?_.S(B,iRy(W),4):(x.isMuted&&_.W7(x.hostElement,"yt-mute-ad-action",[x.is,x]),B.jumpTo(0));if(I=B.yieldResult){var Y=O=new _.or(I),K=x.isMuted;Y.getOptions().includes("onAboutThisAdPopupClosed")?_.ITM(Y,"onAboutThisAdPopupClosed",{isMuted:K,layoutId:P}):_.xA("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Kl(B)})};
_.J.onPopupClosed=function(W){var P=this,x,I;return _.y(function(O){x=_.W9(r76);_.g9(P.iframe,x);P.cancelPageLoadTimeout();if(!P.data)return O.jumpTo(0);P.ytRendererBehavior.markDirty();I=W.detail.context.openingElement;return _.S(O,P.handlesPopupClosed(I,P.data.layoutId),0)})};
_.J.detached=function(){this.cancelPageLoadTimeout()};
_.J.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
o4.prototype.onPopupClosed=o4.prototype.onPopupClosed;o4.prototype.dataChanged=o4.prototype.dataChanged;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.f([_.BM("#iframe"),_.l("design:type",HTMLIFrameElement)],o4.prototype,"iframe",void 0);_.f([_.c(),_.l("design:type",Object)],o4.prototype,"data",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],o4.prototype,"dataChanged",null);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype",Promise)],o4.prototype,"onPopupClosed",null);o4=_.f([_.jd({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],o4);
_.X(o4,"yt-about-this-ad-renderer",function(){if(TB3===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;lL6===void 0&&(lL6=document.createElement("template"));var I=lL6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);TB3=W}W=TB3;return W},{mode:2});var isy;var ROB;var SC=function(W){var P=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=P.message;"stack"in P&&(this.stack=P.stack);this.maxFileSizeMB=W;Object.setPrototypeOf(this,SC.prototype)};
_.A(SC,Error);var FUf=function(W,P){var x=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=x.message;"stack"in x&&(this.stack=x.stack);this.minWidth=W;this.minHeight=P;Object.setPrototypeOf(this,FUf.prototype)};
_.A(FUf,Error);var qJ4=function(W){this.requirements=W;this.JSC$18483_maxFileSize=W.maxFileSizeMB*1024*1024},LUM=function(W,P){if(P.size>W.JSC$18483_maxFileSize)throw new SC(W.requirements.maxFileSizeMB);
};var WCB=function(W,P){this.canvas=W;this.imageEditorBuilder=P};
WCB.prototype.addEventListeners=function(W){var P=function(O){Pjm(W,O)};
this.JSC$18489_mouseDownEvent=P;var x=function(O){xO9(W,O)};
this.JSC$18489_mouseMoveEvent=x;var I=function(){Ic9(W)};
this.JSC$18489_mouseUpEvent=I;this.canvas.addEventListener("mousedown",P);this.canvas.addEventListener("mousemove",x);document.addEventListener("mouseup",I)};
WCB.prototype.removeEventListeners=function(){this.JSC$18489_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18489_mouseDownEvent);this.JSC$18489_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18489_mouseMoveEvent);this.JSC$18489_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18489_mouseUpEvent)};
var Oq3=function(W,P){W.removeEventListeners();return new Promise(function(x){var I=new Image;I.crossOrigin="anonymous";I.onload=function(){var O=W.imageEditorBuilder(W.canvas,I);W.addEventListeners(O);x(O)};
I.src=P})},uT=function(W,P,x,I,O,B,Y,K){this.canvas=W;
this.image=P;this.requiredRatio=x;this.minImageCropDimension=I;this.minOutputImageResolution=O;this.component=B;this.styleFocusedCorner=K===void 0?!0:K;this.action=2;this.focusedCorner=this.resizeCorner=0;W=this.canvas.getContext("2d");if(!W)throw Error("ql");this.ctx=W;this.canvasMargin=Y!=null?Y:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Y=this.image;W=this.canvasInnerWidth/Y.width;Y.height*W>912&&(W=Y.width/Y.height*912/Y.width);Y=W;this.scaledImageWidth=this.canvas.width%2?
FBm(this.image.width*Y):Rpm(this.image.width*Y);this.scaledImageHeight=Math.round(this.image.height*Y);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18492_overlayMarginBottom=this.JSC$18492_overlayMarginTop=this.canvasMargin;this.JSC$18492_overlayMarginRight=this.JSC$18492_overlayMarginLeft=this.horizontalMargin;this.JSC$18492_overlayWidth=this.scaledImageWidth;this.JSC$18492_overlayHeight=this.scaledImageHeight;
W=this.image.width/this.image.height;W>this.requiredRatio?(this.JSC$18492_overlayWidth=this.canvas.width%2?FBm(this.scaledImageHeight*this.requiredRatio):Rpm(this.scaledImageHeight*this.requiredRatio),this.JSC$18492_overlayMarginRight=this.JSC$18492_overlayMarginLeft=(this.canvas.width-this.JSC$18492_overlayWidth)/2):W<this.requiredRatio&&(this.JSC$18492_overlayHeight=this.canvas.height%2?FBm(this.scaledImageWidth/this.requiredRatio):Rpm(this.scaledImageWidth/this.requiredRatio),this.JSC$18492_overlayMarginBottom=
this.JSC$18492_overlayMarginTop=(this.canvas.height-this.JSC$18492_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Y,this.scaledImageWidth);Jsf(this)};
uT.prototype.getContext=function(){return this.ctx};
var Pjm=function(W,P){P={x:Math.round(P.pageX-W.canvas.getBoundingClientRect().left),y:Math.round(P.pageY-W.canvas.getBoundingClientRect().top)};W.dragStart=P;Bd2(W,P)!==0?(W.action=1,nL9(W,P),W.resizeCorner=Bd2(W,P)):P.x>W.JSC$18492_overlayMarginLeft&&P.x<W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth&&P.y>W.JSC$18492_overlayMarginTop&&P.y<W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight&&(W.action=0)},Ydv=function(W,P){switch(P){case 1:return{x:W.JSC$18492_overlayMarginLeft,
y:W.JSC$18492_overlayMarginTop};case 2:return{x:W.JSC$18492_overlayMarginLeft,y:W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight};case 3:return{x:W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth,y:W.JSC$18492_overlayMarginTop};case 4:return{x:W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth,y:W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight};default:throw Error("rl");}},KCB=function(W,P){if(W.focusedCorner!==0){W.dragStart=Ydv(W,W.focusedCorner);
W.action=1;W.resizeCorner=W.focusedCorner;var x=W.dragStart.x,I=W.dragStart.y;switch(P){case 0:W.focusedCorner===1||W.focusedCorner===4?(x-=10,I-=10):(x-=10,I+=10);break;case 1:W.focusedCorner===1||W.focusedCorner===4?(x+=10,I+=10):(x+=10,I-=10);break;case 2:x=W.focusedCorner===1||W.focusedCorner===4?x-10:x+10;I-=10;break;case 3:x=W.focusedCorner===1||W.focusedCorner===4?x+10:x-10;I+=10;break;default:throw Error("sl");}ys3(W,{x:x,y:I});Jsf(W);W.action=2;W.dragStart=void 0}},xO9=function(W,P){P={x:Math.round(P.pageX-
W.canvas.getBoundingClientRect().left),
y:Math.round(P.pageY-W.canvas.getBoundingClientRect().top)};nL9(W,P);switch(W.action){case 1:ys3(W,P);break;case 0:W.dragStart&&(W.JSC$18492_overlayMarginLeft=Math.max(W.horizontalMargin,Math.min(W.JSC$18492_overlayMarginLeft-(W.dragStart.x-P.x),W.horizontalMargin+W.scaledImageWidth-W.JSC$18492_overlayWidth)),W.JSC$18492_overlayMarginRight=W.canvas.width-W.JSC$18492_overlayMarginLeft-W.JSC$18492_overlayWidth,W.JSC$18492_overlayMarginTop=Math.max(W.canvasMargin,Math.min(W.JSC$18492_overlayMarginTop-
(W.dragStart.y-P.y),W.scaledImageHeight-W.JSC$18492_overlayHeight+W.canvasMargin)),W.JSC$18492_overlayMarginBottom=W.canvas.height-(W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight));break;default:return}Jsf(W);W.dragStart=P},Ic9=function(W){W.action=2;
W.dragStart=void 0;document.body.style.cursor="auto"},nL9=function(W,P){switch(Bd2(W,P)){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:W.action!==1&&(document.body.style.cursor="auto")}},Bd2=function(W,P){var x=W.JSC$18492_overlayMarginLeft-5,I=W.JSC$18492_overlayMarginTop-5,O=W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth-5;
W=W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight-5;return ZqO(P,{x:x,y:I})?1:ZqO(P,{x:O,y:I})?3:ZqO(P,{x:x,y:W})?2:ZqO(P,{x:O,y:W})?4:0},ZqO=function(W,P){return W.x>=P.x&&W.x<=P.x+10&&W.y>=P.y&&W.y<=P.y+10},ys3=function(W,P){if(W.dragStart)switch(W.resizeCorner){case 2:Math.abs((W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth-P.x)/(P.y-W.JSC$18492_overlayMarginTop))>=W.requiredRatio?oLG(W,P.x):SdM(W,P.y);
break;case 1:Math.abs((W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth-P.x)/(W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight-P.y))>=W.requiredRatio?u$M(W,P.x):SdM(W,P.y);break;case 4:Math.abs((P.x-W.JSC$18492_overlayMarginLeft)/(P.y-W.JSC$18492_overlayMarginTop))>=W.requiredRatio?oLG(W,P.x):dOf(W,P.y);break;case 3:Math.abs((P.x-W.JSC$18492_overlayMarginLeft)/(W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight-P.y))>=W.requiredRatio?u$M(W,P.x):dOf(W,P.y);break;default:throw Error("tl");
}},oLG=function(W,P){var x=W.JSC$18492_overlayMarginTop;
W.JSC$18492_overlayMarginBottom=sXv(W,P);W.JSC$18492_overlayHeight=W.canvas.height-W.JSC$18492_overlayMarginBottom-x;W.JSC$18492_overlayWidth=Math.round(W.JSC$18492_overlayHeight*W.requiredRatio);vLO(W)},u$M=function(W,P){var x=W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight;
W.JSC$18492_overlayMarginTop=sXv(W,P);W.JSC$18492_overlayHeight=x-W.JSC$18492_overlayMarginTop;W.JSC$18492_overlayWidth=Math.round(W.JSC$18492_overlayHeight*W.requiredRatio);vLO(W)},vLO=function(W){switch(W.resizeCorner){case 2:case 1:W.JSC$18492_overlayMarginLeft=W.canvas.width-W.JSC$18492_overlayMarginRight-W.JSC$18492_overlayWidth;
break;case 4:case 3:W.JSC$18492_overlayMarginRight=W.canvas.width-W.JSC$18492_overlayMarginLeft-W.JSC$18492_overlayWidth;break;default:throw Error("tl");}},SdM=function(W,P){var x=W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth;
W.JSC$18492_overlayMarginLeft=mO2(W,P);W.JSC$18492_overlayWidth=x-W.JSC$18492_overlayMarginLeft;W.JSC$18492_overlayHeight=Math.round(W.JSC$18492_overlayWidth/W.requiredRatio);Vb6(W)},dOf=function(W,P){var x=W.JSC$18492_overlayMarginLeft;
W.JSC$18492_overlayMarginRight=mO2(W,P);W.JSC$18492_overlayWidth=W.canvas.width-W.JSC$18492_overlayMarginRight-x;W.JSC$18492_overlayHeight=Math.round(W.JSC$18492_overlayWidth/W.requiredRatio);Vb6(W)},Vb6=function(W){switch(W.resizeCorner){case 2:case 4:W.JSC$18492_overlayMarginBottom=W.canvas.height-W.JSC$18492_overlayMarginTop-W.JSC$18492_overlayHeight;
break;case 1:case 3:W.JSC$18492_overlayMarginTop=W.canvas.height-W.JSC$18492_overlayMarginBottom-W.JSC$18492_overlayHeight;break;default:throw Error("tl");}},sXv=function(W,P){switch(W.resizeCorner){case 2:P=W.canvas.height-(W.JSC$18492_overlayMarginTop+tby(W,P));
break;case 4:P=W.canvas.height-(W.JSC$18492_overlayMarginTop+pcM(W,P));break;case 1:P=W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight-tby(W,P);break;case 3:P=W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight-pcM(W,P);break;default:throw Error("tl");}return Math.max(P,W.canvasMargin)},tby=function(W,P){P=W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth-Math.max(P,W.horizontalMargin);
P=P<0?W.JSC$18492_overlayWidth:Math.max(P,W.minOverlayWidth);return Math.round(P/W.requiredRatio)},pcM=function(W,P){P=W.canvas.width-Math.max(W.canvas.width-P,W.horizontalMargin)-W.JSC$18492_overlayMarginLeft;
P=P<0?W.JSC$18492_overlayWidth:Math.max(P,W.minOverlayWidth);return Math.round(P/W.requiredRatio)},mO2=function(W,P){switch(W.resizeCorner){case 2:P=W.canvas.width-W.JSC$18492_overlayMarginRight-jXG(W,P);
break;case 4:P=W.canvas.width-W.JSC$18492_overlayMarginLeft-jXG(W,P);break;case 1:P=W.canvas.width-W.JSC$18492_overlayMarginRight-QXO(W,P);break;case 3:P=W.canvas.width-W.JSC$18492_overlayMarginLeft-QXO(W,P);break;default:throw Error("tl");}return Math.max(P,W.horizontalMargin)},jXG=function(W,P){P=W.canvas.height-Math.max(W.canvas.height-P,W.canvasMargin)-W.JSC$18492_overlayMarginTop;
return P<0?W.JSC$18492_overlayWidth:Math.max(Math.round(P*W.requiredRatio),W.minOverlayWidth)},QXO=function(W,P){P=W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight-Math.max(P,W.canvasMargin);
return P<0?W.JSC$18492_overlayWidth:Math.max(Math.round(P*W.requiredRatio),W.minOverlayWidth)},Jsf=function(W){W.ctx.clearRect(0,0,W.canvas.width,W.canvas.height);
W.ctx.drawImage(W.image,0,0,W.image.width,W.image.height,W.horizontalMargin,W.canvasMargin,W.canvas.width-2*W.horizontalMargin,W.scaledImageHeight);W.ctx.fillStyle="rgba(0, 0, 0, 0.7)";W.ctx.fillRect(W.horizontalMargin,W.JSC$18492_overlayMarginTop,W.JSC$18492_overlayMarginLeft-W.horizontalMargin,W.JSC$18492_overlayHeight);W.ctx.fillRect(W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth,W.JSC$18492_overlayMarginTop,W.JSC$18492_overlayMarginRight-W.horizontalMargin,W.JSC$18492_overlayHeight);W.ctx.fillRect(W.horizontalMargin,
W.canvasMargin,W.scaledImageWidth,W.JSC$18492_overlayMarginTop-W.canvasMargin);W.ctx.fillRect(W.horizontalMargin,W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight,W.scaledImageWidth,W.JSC$18492_overlayMarginBottom-W.canvasMargin);W.drawOverlay();W.component&&_.Lf(W.component,"image-updated")};
uT.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18492_overlayMarginLeft,this.JSC$18492_overlayMarginTop,this.JSC$18492_overlayWidth,this.JSC$18492_overlayHeight);Cj4(this)};
var Cj4=function(W){var P=W.JSC$18492_overlayMarginLeft-5,x=W.JSC$18492_overlayMarginTop-5,I=W.JSC$18492_overlayMarginLeft+W.JSC$18492_overlayWidth-5,O=W.JSC$18492_overlayMarginTop+W.JSC$18492_overlayHeight-5;W.ctx.fillStyle="#FFF";W.ctx.fillRect(P,x,10,10);W.ctx.strokeRect(P,x,10,10);W.ctx.fillRect(I,x,10,10);W.ctx.strokeRect(I,x,10,10);W.ctx.fillRect(P,O,10,10);W.ctx.strokeRect(P,O,10,10);W.ctx.fillRect(I,O,10,10);W.ctx.strokeRect(I,O,10,10);if(W.focusedCorner!==0&&W.styleFocusedCorner){W.ctx.lineWidth=
4;W.ctx.strokeStyle="#3EA6FF";switch(W.focusedCorner){case 1:--P;--x;break;case 2:--P;x=O-1;break;case 3:P=I-1;--x;break;case 4:P=I-1;x=O-1;break;default:return}W.ctx.strokeRect(P,x,12,12)}};
uT.prototype.crop=function(W,P){P=P===void 0?!0:P;var x=this.image.width/this.scaledImageWidth,I=document.createElement("canvas"),O=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],B=this.JSC$18492_overlayWidth*x,Y=this.JSC$18492_overlayHeight*x;I.width=Math.max(B,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);I.height=Math.max(Y,O);W&&(I.width=Math.min(I.width,I.height),I.height=Math.min(I.width,I.height));
W=I.getContext("2d");if(!W)throw Error("hl");O=(this.JSC$18492_overlayMarginLeft-this.horizontalMargin)*x;x*=this.JSC$18492_overlayMarginTop-this.canvasMargin;P||(W.fillStyle="white",W.fillRect(0,0,I.width,I.height));W.drawImage(this.image,O,x,B,Y,0,0,I.width,I.height);return I};var Asm=function(W,P,x,I,O){uT.call(this,W,P,x,I,void 0,O,8,!1)};
_.A(Asm,uT);Asm.prototype.drawOverlay=function(){var W=this.getContext(),P=this.JSC$18492_overlayWidth,x=this.JSC$18492_overlayHeight,I=this.JSC$18492_overlayMarginTop,O=this.JSC$18492_overlayMarginLeft;W.lineWidth=2;W.strokeStyle="#3EA6FF";W.beginPath();W.arc(O+P/2,I+x/2,P/2,0,2*Math.PI);W.stroke();W.strokeRect(O,I,P,x);Cj4(this)};
var zF9={maxFileSizeMB:15,minWidth:98,minHeight:98},Gwm=["image/png","image/jpeg","image/gif"],dR=function(){var W=_.b.apply(this,arguments)||this;W.fileSelectorFocusListener=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!0;W.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return W};
_.A(dR,_.b);_.J=dR.prototype;_.J.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.J.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.J.computePlaylistThumbnail=function(W){return W==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.J.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.W7(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.J.setErrorState=function(W){this.resetErrorState();W&&(this.errorMessage=W)};
_.J.showPopup=function(){var W=this;this.hideContainer=!1;_.VE(_.Gr,function(){_.Lf(W.hostElement,"yt-refit")});
this.isLoading=!1};
_.J.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.J.closePopup=function(){this.resetFileSelector();_.W7(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onCancelTap=function(){this.isPlaylistThumbnail||_.W7(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.J.openFileSelector=function(){var W=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.VE(_.Gr,function(){setTimeout(function(){if(!W.fileSelector.files||W.fileSelector.files.length===0)W.onCancelTap();W.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(P){P instanceof Error?_.G$(P):_.EA(new _.mW(JSON.stringify(P)))}};
_.J.handleFileSelection=function(){var W=this,P,x,I,O,B,Y;return _.y(function(K){switch(K.nextAddress){case 1:_.OT(K,2);if(!W.fileSelector.files||!W.imageEditorCanvas)return W.onCancelTap(),K.return();P=W.fileSelector.files[0];LUM(W.imageChecker,P);_.OT(K,4);return _.S(K,jYB(P),6);case 6:W.mimeType=K.yieldResult;_.ci(K,5,2);break;case 4:_.yn(K,2),_.W7(W.hostElement,"yt-image-selection-error-action",[(x=W.data)==null?void 0:x.genericImageLoadErrorMessage]),W.onCancelTap();case 5:I=new FileReader;I.addEventListener("load",
function(){var Z,d;return _.y(function(v){if(v.nextAddress==1){if(!I.result)return _.ge(Error("jl")),v.return();Z=I.result;d=new Image;d.src=Z;d.onload=function(){try{var m=W.imageChecker;if(d.width<m.requirements.minWidth||d.height<m.requirements.minHeight)throw new FUf(m.requirements.minWidth,m.requirements.minHeight);}catch(C){if(C instanceof FUf){var t;_.W7(W.hostElement,"yt-image-selection-error-action",[(t=W.data)==null?void 0:t.imageDimensionErrorMessage]);W.logImageDimensionErrorVe()}else C instanceof
Error?_.G$(C):(m=new _.mW(JSON.stringify(C)),_.G$(m));W.onCancelTap()}W.showPopup()};
d.onerror=function(){var m;_.W7(W.hostElement,"yt-image-selection-error-action",[(m=W.data)==null?void 0:m.genericImageLoadErrorMessage]);W.onCancelTap()};
return _.S(v,Oq3(W.imageEditorCanvas,Z),2)}W.imageEditor=v.yieldResult;W.updatePositionOfAllCorners();W.addEventListeners(W.imageEditor);_.Kl(v)})},!1);
I.readAsDataURL(P);_.ci(K,0);break;case 2:O=_.yn(K),O instanceof SC?_.W7(W.hostElement,"yt-image-selection-error-action",[(B=W.data)==null?void 0:B.imageSizeErrorMessage]):(O instanceof Error?_.G$(O):_.EA(new _.mW(JSON.stringify(O))),_.W7(W.hostElement,"yt-image-selection-error-action",[(Y=W.data)==null?void 0:Y.genericImageLoadErrorMessage])),W.onCancelTap(),_.Kl(K)}})};
_.J.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var W=_.nt(_.YY(),{veType:232707,visualElement:_.td(232707)});W&&(W={visualElement:W},_.BW().reportShown(W))}};
_.J.handleImageSelectionErrorAction=function(W){this.isPlaylistThumbnail&&_.rDd(this.hostElement,W)};
_.J.convertToImageFormatBundle=function(W){var P=this,x,I,O;return _.y(function(B){switch(B.nextAddress){case 1:return x=W.toDataURL(P.outputMimeType,1),_.S(B,QYQ(x),2);case 2:I=B.yieldResult;_.OT(B,3);LUM(P.imageChecker,I);_.ci(B,4);break;case 3:O=_.yn(B);if(!(O instanceof SC))throw O;_.ge(new _.mW("Output size is bigger than input size for image",P.mimeType,P.outputMimeType,I.size));x=W.toDataURL("image/jpeg",.95);return _.S(B,QYQ(x),6);case 6:I=B.yieldResult;case 4:return B.return({dataUrl:x,imageFile:I})}})};
_.J.handleUploadImageToScottyCommand=function(W){var P=this,x,I,O,B,Y,K,Z,d,v,m;return _.y(function(t){switch(t.nextAddress){case 1:if(!P.imageEditor||!_.Q(W,UK3))return t.return();x=_.Q(W,UK3).scottyUploadUrl;if(!x){var C=new _.mW("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.G$(C);return t.return()}_.OT(t,2);P.setLoadingState();I=P.imageEditor.crop(!1,!1);return _.S(t,P.convertToImageFormatBundle(I),4);case 4:return O=t.yieldResult,_.S(t,tlB(O.imageFile,x),5);case 5:B=
t.yieldResult;((Y=P.data)==null?0:Y.onUploadEndpoint)?(K=P.buildUploadServiceEndpoint(B),P.ytComponentBehavior.resolveCommand(K),Z=_.Q(K,_.Dy),((d=Z)==null?0:d.params)?P.closePopup():P.resetFileSelector()):(_.W7(P.hostElement,"yt-image-updated-action",[O.dataUrl,B]),P.closePopup());_.ci(t,0);break;case 2:v=_.yn(t),P.setErrorState((m=P.data)==null?void 0:m.uploadErrorMessage),v instanceof Error?_.G$(v):(C=new _.mW(JSON.stringify(v)),_.G$(C)),_.Kl(t)}})};
_.J.buildUploadServiceEndpoint=function(W){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",W),this.data.onUploadEndpoint):null};
_.J.dataChanged=function(){var W=this,P;return _.y(function(x){if(x.nextAddress==1){if(!W.data||!W.canvasElement)return x.return();W.data.imageRatio&&W.data.minImageCropWidth||_.EA(new _.mW("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));P=function(I,O){return W.data.imageType==="IMAGE_TYPE_AVATAR"?new Asm(I,O,W.data.imageRatio,[W.data.minImageCropWidth,W.data.minImageCropWidth/W.data.imageRatio],W.hostElement):new uT(I,O,W.data.imageRatio,[W.data.minImageCropWidth,
W.data.minImageCropWidth/W.data.imageRatio],void 0,W.hostElement,8,!1)};
W.imageEditorCanvas=new WCB(W.canvasElement,P);return W.data.url?_.S(x,Oq3(W.imageEditorCanvas,W.data.url),3):(W.hideContainer=!0,W.openFileSelector(),x.jumpTo(0))}W.imageEditor=x.yieldResult;W.showPopup();W.addEventListeners(W.imageEditor);_.Kl(x)})};
_.J.addEventListeners=function(W){this.removeEventListeners();var P=function(O){Pjm(W,O)};
this.JSC$18500_mouseDownEvent=P;var x=function(O){xO9(W,O)};
this.JSC$18500_mouseMoveEvent=x;var I=function(){Ic9(W)};
this.JSC$18500_mouseUpEvent=I;this.topLeftCorner.addEventListener("mousedown",P);this.topLeftCorner.addEventListener("mousemove",x);this.topLeftCorner.addEventListener("mouseup",I);this.topRightCorner.addEventListener("mousedown",P);this.topRightCorner.addEventListener("mousemove",x);this.topRightCorner.addEventListener("mouseup",I);this.bottomLeftCorner.addEventListener("mousedown",P);this.bottomLeftCorner.addEventListener("mousemove",x);this.bottomLeftCorner.addEventListener("mouseup",I);this.bottomRightCorner.addEventListener("mousedown",
P);this.bottomRightCorner.addEventListener("mousemove",x);this.bottomRightCorner.addEventListener("mouseup",I)};
_.J.removeEventListeners=function(){this.JSC$18500_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18500_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18500_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18500_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18500_mouseDownEvent));this.JSC$18500_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18500_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18500_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18500_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18500_mouseMoveEvent));this.JSC$18500_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18500_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18500_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18500_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18500_mouseUpEvent))};
_.J.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var W=document.activeElement;W&&W.shadowRoot&&W.shadowRoot.activeElement;)W=W.shadowRoot.activeElement;switch(W){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};
_.J.updatePositionOfCorner=function(W,P){var x=W.y-P.offsetHeight/2+4;P.style.left=W.x-P.offsetWidth/2+16+"px";P.style.top=x+"px"};
_.J.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var W=_.n([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),P=W.next();!P.done;P=W.next()){P=P.value;var x=Ydv(this.imageEditor,P.corner);this.updatePositionOfCorner(x,P.div)}};
_.J.onLeft=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(KCB(this.imageEditor,0),this.updatePositionOfAllCorners(),W.preventDefault())};
_.J.onRight=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(KCB(this.imageEditor,1),this.updatePositionOfAllCorners(),W.preventDefault())};
_.J.onUp=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(KCB(this.imageEditor,2),this.updatePositionOfAllCorners(),W.preventDefault())};
_.J.onDown=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(KCB(this.imageEditor,3),this.updatePositionOfAllCorners(),W.preventDefault())};
_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.N1.Object.defineProperties(dR.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Gwm.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var W,P,x;((P=this.data)==null?0:P.imageRatio)&&((x=this.data)==null?0:x.minImageCropWidth)?W={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:W=zF9;return new qJ4(W)}}});
dR.prototype.updatePositionOfAllCorners=dR.prototype.updatePositionOfAllCorners;dR.prototype.dataChanged=dR.prototype.dataChanged;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],dR.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],dR.prototype,"ytComponentBehavior",void 0);_.f([_.h(_.tu),_.l("design:type",Object)],dR.prototype,"ironA11yKeysBehavior",void 0);
_.f([_.BM("#canvas"),_.l("design:type",HTMLCanvasElement)],dR.prototype,"canvasElement",void 0);_.f([_.BM("#file-selector"),_.l("design:type",HTMLInputElement)],dR.prototype,"fileSelector",void 0);_.f([_.BM("#top-left-corner"),_.l("design:type",HTMLDivElement)],dR.prototype,"topLeftCorner",void 0);_.f([_.BM("#top-right-corner"),_.l("design:type",HTMLDivElement)],dR.prototype,"topRightCorner",void 0);
_.f([_.BM("#bottom-left-corner"),_.l("design:type",HTMLDivElement)],dR.prototype,"bottomLeftCorner",void 0);_.f([_.BM("#bottom-right-corner"),_.l("design:type",HTMLDivElement)],dR.prototype,"bottomRightCorner",void 0);_.f([_.c(),_.l("design:type",Object)],dR.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],dR.prototype,"errorMessage",void 0);_.f([_.c(),_.l("design:type",Object)],dR.prototype,"isLoading",void 0);_.f([_.c(),_.l("design:type",Object)],dR.prototype,"hideContainer",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.l("design:type",Boolean)],dR.prototype,"isPlaylistThumbnail",void 0);_.f([_.K_("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],dR.prototype,"dataChanged",null);_.f([_.I7("image-updated"),_.I7("yt-refit"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dR.prototype,"updatePositionOfAllCorners",null);
dR=_.f([_.jd({is:"yt-image-editor-renderer",disableElementRegistration:!0})],dR);
_.X(dR,"yt-image-editor-renderer",function(){if(ROB===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;isy===void 0&&(isy=document.createElement("template"));var I=isy;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ROB=W}W=ROB;return W},{mode:2});var EL6;var gLy;var sp=function(){return _.b.apply(this,arguments)||this};
_.A(sp,_.b);sp.prototype.updateMinutesFromBinding=function(W){this.handleMinutesChanged&&this.handleMinutesChanged(W)};
sp.prototype.updateSecondsFromBinding=function(W){this.handleSecondsChanged&&this.handleSecondsChanged(W)};
sp.prototype.updateDescriptionFromBinding=function(W){this.handleDescriptionChanged&&this.handleDescriptionChanged(W)};
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],sp.prototype,"ytComponentBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],sp.prototype,"data",void 0);_.f([_.c(),_.l("design:type",String)],sp.prototype,"minutes",void 0);_.f([_.c(),_.l("design:type",String)],sp.prototype,"seconds",void 0);_.f([_.c(),_.l("design:type",String)],sp.prototype,"description",void 0);_.f([_.c(),_.l("design:type",Function)],sp.prototype,"handleMinutesChanged",void 0);
_.f([_.c(),_.l("design:type",Function)],sp.prototype,"handleSecondsChanged",void 0);_.f([_.c(),_.l("design:type",Function)],sp.prototype,"handleDescriptionChanged",void 0);_.f([_.c(),_.l("design:type",Number)],sp.prototype,"characterLimit",void 0);_.f([_.c(),_.l("design:type",Number)],sp.prototype,"textNumRows",void 0);sp=_.f([_.jd({is:"yt-report-details-form-content",disableElementRegistration:!0})],sp);
_.X(sp,"yt-report-details-form-content",function(){if(gLy===void 0){var W=document.createElement("template");_.G(W,'\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>');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;EL6===void 0&&(EL6=document.createElement("template"));var I=EL6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);gLy=W}W=gLy;return W},{mode:2});var DOL;var Mbm;var vj=function(){var W=_.b.apply(this,arguments)||this;W.updateMinutesFromBinding=function(P){W.minutes=P.detail.value};
W.updateSecondsFromBinding=function(P){W.seconds=P.detail.value};
W.updateDescriptionFromBinding=function(P){W.description=P.detail.value};
return W};
_.A(vj,_.b);_.J=vj.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.J.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"}}}};
_.J.ready=function(){_.g(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.J.onSubmitYtAction=function(W){var P=W.detail;P.actionName==="yt-service-request"&&(P=P.args[1],P.flagEndpoint&&(W.stopPropagation(),this.refireAction(P)))};
_.J.refireAction=function(W){var P={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(P.vss_id=this.vssId);_.Iu(this.hostElement,[W,P]);this.submitDisabled=!0};
_.J.dataChanged=function(){var W=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var P=_.RP();P&&P.getPlayerPromise().then(function(x){var I=x.getOption("cc","track")||x.getOption("captions","track");I&&(W.vssId=I.vss_id);x=x.getCurrentTime();W.minutes=Math.floor(x/60).toString();W.seconds=(Math.floor(x)%60).toString()})};
_.J.updateSubmitButtonState=function(){var W;((W=this.data)==null?0:W.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==="")};
_.J.onYtServiceRequestCompleted=function(){_.W7(this.hostElement,"yt-close-popup-action")};
_.J.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.N1.Object.defineProperties(vj.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.textNumRows)||4}}});
vj.prototype.onYtServiceRequestError=vj.prototype.onYtServiceRequestError;vj.prototype.onYtServiceRequestCompleted=vj.prototype.onYtServiceRequestCompleted;vj.prototype.updateSubmitButtonState=vj.prototype.updateSubmitButtonState;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);
_.f([_.c({observer:"dataChanged"}),_.l("design:type",Object)],vj.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Boolean)],vj.prototype,"submitDisabled",void 0);_.f([_.c(),_.l("design:type",String)],vj.prototype,"minutes",void 0);_.f([_.c(),_.l("design:type",String)],vj.prototype,"seconds",void 0);_.f([_.c(),_.l("design:type",String)],vj.prototype,"description",void 0);_.f([_.c(),_.l("design:type",String)],vj.prototype,"vssId",void 0);
_.f([_.c({value:_.$$("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.l("design:type",Boolean)],vj.prototype,"isMusic",void 0);_.f([_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],vj.prototype,"characterLimit",null);_.f([_.H("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],vj.prototype,"textNumRows",null);
_.f([_.K_("minutes","seconds","description","submitDisabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vj.prototype,"updateSubmitButtonState",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vj.prototype,"onYtServiceRequestCompleted",null);
_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vj.prototype,"onYtServiceRequestError",null);vj=_.f([_.jd({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],vj);
_.X(vj,"yt-report-details-form-renderer",function(){if(Mbm===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;DOL===void 0&&(DOL=document.createElement("template"));var I=DOL;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Mbm=W}W=Mbm;return W});var $Oy;var wcG;var hFf;var Hq6;var mb=function(){return _.b.apply(this,arguments)||this};
_.A(mb,_.b);
mb.prototype.onCheckedChanged_=function(){if(this.data){var W=_.g(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.W7(this.hostElement,"yt-additional-detail-checkbox-update",[W]):this.data.identifier==="yt-hide-user-checkbox"?_.W7(this.hostElement,"yt-hide-user-checkbox-update",[W]):W&&this.data.enableCommand?_.W7(this.hostElement,"yt-modify-report-form-command",[_.Q(this.data.enableCommand,iT3)]):!W&&this.data.disableCommand&&_.W7(this.hostElement,
"yt-modify-report-form-command",[_.Q(this.data.enableCommand,iT3)])}};
mb.prototype.onLabelTap_=function(W){W.target.tagName!="A"&&(_.g(this.hostElement).querySelector("#checkbox").checked=!_.g(this.hostElement).querySelector("#checkbox").checked)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],mb.prototype,"data",void 0);mb=_.f([_.jd({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],mb);
_.X(mb,"yt-boolean-form-field-v2-renderer",function(){if(Hq6===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;hFf===void 0&&(hFf=document.createElement("template"));var I=hFf;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Hq6=W}W=Hq6;return W});var Vx=function(){var W=_.b.apply(this,arguments)||this;W.canShowAdditionalDetailCheckbox=!1;W.canShowCheckbox=!1;W.keepDropdownFocusedAfterSelection=!0;return W};
_.A(Vx,_.b);Vx.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}}}}};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Vx.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],Vx.prototype,"canShowAdditionalDetailCheckbox",void 0);_.f([_.c(),_.l("design:type",Object)],Vx.prototype,"canShowCheckbox",void 0);_.f([_.c(),_.l("design:type",Object)],Vx.prototype,"keepDropdownFocusedAfterSelection",void 0);
Vx=_.f([_.jd({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Vx);
_.X(Vx,"yt-report-form-modal-content",function(){if(wcG===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;$Oy===void 0&&($Oy=document.createElement("template"));var I=$Oy;x.call(P,I.content.cloneNode(!0),W.content.firstChild);wcG=W}W=wcG;return W},{mode:2});var eFm;var csM;var tP=function(){var W=_.b.apply(this,arguments)||this;W.submitting=!1;W.submitButtonDisabled=!0;W.command=null;W.canShowCheckbox=!1;W.canShowAdditionalDetailCheckbox=!1;W.canShowNextButton=!1;W.additionalDetailCheckboxChecked=!1;W.refitJob=0;W.keepDropdownFocusedAfterSelection=!0;W.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 W};
_.A(tP,_.b);_.J=tP.prototype;_.J.created=function(){this.refitJob=0};
_.J.attached=function(){this.JSC$18523_scroller&&(this.JSC$18523_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18523_scroller.attached&&typeof this.JSC$18523_scroller.attached==="function"&&this.JSC$18523_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(W){W&&(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,W.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),W.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.J.onYtPopupOpened=function(){var W=_.RP();W&&W.getPlayerPromise().then(function(P){P.pauseVideo()})};
_.J.onYtNavigate=function(W){_.Q(W.detail.endpoint,_.c8P)&&(W.stopPropagation(),this.hideReportForm=!0)};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.J.onYtServiceRequestCompleted=function(W,P){var x=P.actions;if(x){if(x.length===1&&_.Q(x[0],_.B7)){var I;x=((I=_.Q(x[0],_.B7))==null?void 0:I.commands)||[]}I=0;for(var O=x.length;I<O;I++)_.Q(x[I],_.Ac)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(x[I]))}if(P.data&&(W=this.get("feedbackResponses",P.data)))for(P=0;P<W.length;P++)if(W[P].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.J._onDescendantIronResize=function(W){W.stopPropagation();return!1};
_.J.handleReportFormEndpointUpdateAction=function(W){if(W.submitEndpoint){var P=this.command=W.submitEndpoint;P=_.Q(P,_.Q1c);if(P==null?0:P.additionalDetailCheckboxChecked)P.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else W.submitNavigationEndpoint?(this.command=W.submitNavigationEndpoint,this.toggleSubmitButton(!1)):W.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:W.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;W.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",W));this.refit()};
_.J.handleConfirmDialogCloseAction=function(W){W.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.J.submitButtonDisabledChanged=function(){var W=this.hostElement.parentElement;W&&W.invalidateTabbables&&W.invalidateTabbables()};
_.J.handleModifyReportFormCommand=function(W){W=this.get("action",W);W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:W==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:W==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.J.updateDialogStyling=function(){var W,P,x,I,O,B=((O=(W=this.data)==null?void 0:(P=W.optionsSupportedRenderers)==null?void 0:(x=P.optionsRenderer)==null?void 0:(I=x.items)==null?void 0:I.length)!=null?O:0)<=2?0:240;_.qa(this.hostElement,{"--yt-report-form-modal-renderer-min-width":B+"px"})};
_.J.toggleSubmitButton=function(W){this.submitButtonDisabled=!W;this.submitButtonDisabled=W};
_.J.computeSubmitButtonData=function(W,P){var x={};_.Q(P,_.c8P)?x.navigationEndpoint=P:x.command=P||void 0;W&&W.buttonRenderer&&_.jU.extend(x,W.buttonRenderer);return x};
_.J.computeNextButtonData=function(W,P){var x={};if(!W||!W.buttonRenderer)return x;_.jU.extend(x,W.buttonRenderer);if(!P)return x;if(_.Q(P,_.c8P))x.navigationEndpoint=ydd(P);else if(x.command=ydd(P),W=_.Q(x.command,_.Q1c))W.legalCheckboxChecked=!0;return x};
_.J.computeShowNextButton=function(W,P,x){return!!W&&P&&x};
_.J.refit=function(){var W=this;this.refitJob||(this.refitJob=_.Gr.addLowPriorityJob(function(){_.Lf(W.hostElement,"yt-refit");W.refitJob=0}))};
_.J.handleAdditionalDetailCheckboxUpdateAction=function(W){this.additionalDetailCheckboxChecked=W;_.Q(this.command,_.Q1c).additionalDetailCheckboxChecked=W};
_.N1.Object.defineProperties(tP,{template:{configurable:!0,enumerable:!0,get:function(){if(csM===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;eFm===void 0&&(eFm=document.createElement("template"));var I=eFm;x.call(P,I.content.cloneNode(!0),W.content.firstChild);csM=W}W=csM;return W}}});
tP.prototype.onYtServiceRequestError=tP.prototype.onYtServiceRequestError;tP.prototype.onYtServiceRequestCompleted=tP.prototype.onYtServiceRequestCompleted;tP.prototype.onYtServiceRequestSent=tP.prototype.onYtServiceRequestSent;tP.prototype.onYtNavigate=tP.prototype.onYtNavigate;tP.prototype.onYtPopupOpened=tP.prototype.onYtPopupOpened;_.f([_.h(_.xX.YtOpenPopupBehavior),_.l("design:type",Object)],tP.prototype,"openPopupBehavior",void 0);
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],tP.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],tP.prototype,"eventForwardingBehavior",void 0);_.f([_.h(_.Db),_.l("design:type",Object)],tP.prototype,"ironResizableBehavior",void 0);_.f([_.c({observer:"dataChanged"}),_.l("design:type",Object)],tP.prototype,"data",void 0);
_.f([_.c(),_.l("design:type",Object)],tP.prototype,"submitting",void 0);_.f([_.c({observer:"submitButtonDisabledChanged"}),_.l("design:type",Object)],tP.prototype,"submitButtonDisabled",void 0);_.f([_.c(),_.l("design:type",Object)],tP.prototype,"command",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],tP.prototype,"hideReportForm",void 0);_.f([_.c(),_.l("design:type",Object)],tP.prototype,"canShowCheckbox",void 0);
_.f([_.c(),_.l("design:type",Object)],tP.prototype,"canShowAdditionalDetailCheckbox",void 0);_.f([_.c(),_.l("design:type",Object)],tP.prototype,"canShowNextButton",void 0);_.f([_.c(),_.l("design:type",Object)],tP.prototype,"additionalDetailCheckboxChecked",void 0);_.f([_.c(),_.l("design:type",Object)],tP.prototype,"refitJob",void 0);_.f([_.c(),_.l("design:type",Object)],tP.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.f([_.BM("#scroller"),_.l("design:type",Object)],tP.prototype,"JSC$18523_scroller",void 0);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tP.prototype,"onYtPopupOpened",null);_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],tP.prototype,"onYtNavigate",null);
_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],tP.prototype,"onYtServiceRequestSent",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],tP.prototype,"onYtServiceRequestCompleted",null);
_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],tP.prototype,"onYtServiceRequestError",null);tP=_.f([_.jd({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],tP);var acG;var bqm;var pv=function(){return _.b.apply(this,arguments)||this};
_.A(pv,_.b);_.J=pv.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.J.onVisible=function(){if(_.p("web_ephemeral_actions_focus")){var W,P;(P=_.FY().resolve(_.Rl(_.y9)))==null||P.enqueue({label:_.kz((W=this.data)==null?void 0:W.messageTitle),elementToFocus:this.hostElement})}};
_.J.onThumbnailLoaded=function(){_.Lf(this.hostElement,"yt-refit")};
_.J.onDismissTap=function(){_.W7(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.J.computeAlternateIcon=function(W){return W?W==="BACKSTAGE_ARTWORK"?"backstage:artwork":W:null};
_.J.computeFontFamily=function(W){return W==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.J.computeBackgroundStyle=function(W,P){if(W=this.computeBackgroundImage(W,P))if(W=_.rc(W.thumbnails))return'background-image: url("'+W+'");'};
_.J.computeHasFullHeightImage=function(W){return!(!(W&&W.thumbnails&&W.thumbnails.length>0)||this.modern)};
_.J.isModernStyle=function(W){return W.style==="STYLE_MODERN"};
_.J.computeIcon=function(W,P){if(W&&W.icon)return P?W.iconDark:W.icon};
_.J.computeBackgroundImage=function(W,P){if(W&&W.backgroundImage)return P?W.backgroundImageDark:W.backgroundImage};
_.J.computeLogo=function(W,P){if(W&&W.logo)return P?W.logoDark:W.logo};
_.J.computeShouldShowModernIcon=function(W,P){return W&&!!P};
_.J.getLogoContainerClassName=function(W){return this.logoWithPadding(W)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.J.getLogoImageId=function(W){return this.logoWithPadding(W)?"mealbar-logo-with-padding":"mealbar-logo"};
_.J.logoWithPadding=function(W){var P,x,I;return(W=(P=this.computeLogo(W,this.isDarkTheme))==null?void 0:(x=P.thumbnails)==null?void 0:(I=x[0])==null?void 0:I.height)&&W%31===0?!0:!1};
pv.prototype.onThumbnailLoaded=pv.prototype.onThumbnailLoaded;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.f([_.c({}),_.l("design:type",Object)],pv.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.l("design:type",Boolean)],pv.prototype,"modern",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],pv.prototype,"isDarkTheme",void 0);
_.f([_.c({computed:"computeIcon(data, isDarkTheme)"}),_.l("design:type",Object)],pv.prototype,"icon",void 0);_.f([_.c({computed:"computeLogo(data, isDarkTheme)"}),_.l("design:type",Object)],pv.prototype,"logo",void 0);_.f([_.c({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.l("design:type",Object)],pv.prototype,"backgroundStyle",void 0);_.f([_.c({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.l("design:type",Object)],pv.prototype,"alternateIcon",void 0);
_.f([_.c({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.l("design:type",Boolean)],pv.prototype,"hasFullHeightImage",void 0);_.f([_.c({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.l("design:type",Boolean)],pv.prototype,"useYoutubeSans",void 0);_.f([_.c({computed:"computeShouldShowModernIcon(modern, icon)"}),_.l("design:type",Boolean)],pv.prototype,"shouldShowModernIcon",void 0);
_.f([_.I7("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pv.prototype,"onThumbnailLoaded",null);pv=_.f([_.jd({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],pv);
_.X(pv,"yt-mealbar-promo-renderer",function(){if(bqm===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;acG===void 0&&(acG=document.createElement("template"));var I=acG;x.call(P,I.content.cloneNode(!0),W.content.firstChild);bqm=W}W=bqm;return W},{mode:2});var kwv;var UO9;var jC=function(){return _.b.apply(this,arguments)||this};
_.A(jC,_.b);_.J=jC.prototype;_.J.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]]"}}}}}};
_.J.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.acceptButton)};
_.J.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.J.observeImpressionEndpoints_=function(){var W=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(P){P.clickTrackingParams&&delete P.clickTrackingParams;_.Iu(W.hostElement,[P])})};
_.J.onTap_=function(){_.W7(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
jC.prototype.observeImpressionEndpoints_=jC.prototype.observeImpressionEndpoints_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],jC.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],jC.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],jC.prototype,"positionType",void 0);_.f([_.c({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.l("design:type",Boolean)],jC.prototype,"hasButtons_",void 0);_.f([_.c({value:function(){return this.onTap_.bind(this)}}),
_.l("design:type",Function)],jC.prototype,"boundOnTap_",void 0);_.f([_.c({value:{style:"mono-inverse"}}),_.l("design:type",Object)],jC.prototype,"buttonOverride",void 0);_.f([_.OZ("data.promoConfig.impressionEndpoints"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jC.prototype,"observeImpressionEndpoints_",null);jC=_.f([_.jd({is:"yt-tooltip-renderer",disableElementRegistration:!0})],jC);
_.X(jC,"yt-tooltip-renderer",function(){if(UO9===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;kwv===void 0&&(kwv=document.createElement("template"));var I=kwv;x.call(P,I.content.cloneNode(!0),W.content.firstChild);UO9=W}W=UO9;return W},{mode:2});var XcQ;var fc2;var NdO={},lcM=(NdO.WEB_REMIX="music.youtube.com",NdO),Qx=function(){var W=_.b.apply(this,arguments)||this;W.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return W};
_.A(Qx,_.b);_.J=Qx.prototype;_.J.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.created=function(){this.embedHost_=lcM[_.$$("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.J.ready=function(){_.g(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.J.computeEmbedCode_=function(W,P,x,I,O){if(!W)return"";var B=W.videoId,Y=W.fullListId,K=[];W.attributionId&&K.push("si="+W.attributionId);I||K.push("controls=0");x&&Number(P)>0&&K.push("start="+P);Y&&(B="videoseries",K.push("list="+Y));x="https://"+(O?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+B;W.clipId&&(K.push("clip="+W.clipId),K.push("clipt="+W.clipTiming));P=K.length>0?x+"?"+K.join("&amp;"):x;W.encryptedEmbedConfig&&K.push("embed_config="+JSON.stringify({enc:W.encryptedEmbedConfig}));
K=K.length>0?x+"?"+K.join("&amp;"):x;_.p("web_sharing_embed_preview_killswitch")?_.g(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(K,W.previewWidth||854,W.previewHeight||480):(_.gN(this.videoPreviewContainer),_.g(this.videoPreviewContainer).appendChild(this.buildIframeElement(K)));return this.getEmbedCode_(P,W.width||560,W.height||315)};
_.J.buildIframeElement=function(W){var P=document.createElement("iframe"),x,I;P.width=""+((I=(x=this.data)==null?void 0:x.previewWidth)!=null?I:854);var O,B;P.height=""+((B=(O=this.data)==null?void 0:O.previewHeight)!=null?B:480);_.V$G(P,2,W);P.title="YouTube video player";P.frameBorder="0";P.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";P.referrerPolicy="strict-origin-when-cross-origin";P.allowFullscreen=!0;return P};
_.J.computeIsSquareAspectRatio_=function(W){return W.previewHeight&&W.previewWidth?W.previewHeight==W.previewWidth:!1};
_.J.computeShowEmbedOptions_=function(W){return!!W.enablePrivacyModeOptionLabel||!!W.showPlayerControlsOptionLabel};
_.J.getEmbedCode_=function(W,P,x){return'<iframe width="'+P+'" height="'+x+'" src="'+W+'" 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>'};
_.J.handleSignalActionCopyShareEmbedUrl_=function(){_.g(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.J.handleSetTimestamp_=function(W){this.startAtTimeStamp_=(this.startAtChecked_=W.isSet)?W.timestamp:0};
_.J.closePanel_=function(){_.W7(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.J.onEmbedCode_=function(){_.g(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.J.onYtPopupClosed_=function(){_.gN(_.g(this.hostElement).querySelector("#video-preview"))};
_.J.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.Q(this.data.actionButtons[0],_.w6)&&this.ytRendererBehavior.logExplicitClick(_.Q(this.data.actionButtons[0],_.w6))};
Qx.prototype.onYtPopupClosed_=Qx.prototype.onYtPopupClosed_;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Qx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Qx.prototype,"data",void 0);
_.f([_.c({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.l("design:type",String)],Qx.prototype,"embedCode_",void 0);_.f([_.c({value:!0}),_.l("design:type",Boolean)],Qx.prototype,"isPlayerControlsOptionChecked_",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],Qx.prototype,"isPrivacyModeOptionChecked_",void 0);_.f([_.c({value:!1,notify:!0}),_.l("design:type",Boolean)],Qx.prototype,"startAtChecked_",void 0);
_.f([_.c({value:0}),_.l("design:type",Number)],Qx.prototype,"startAtTimeStamp_",void 0);_.f([_.c({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Qx.prototype,"isSquareAspectRatio_",void 0);_.f([_.BM("#video-preview"),_.l("design:type",HTMLElement)],Qx.prototype,"videoPreviewContainer",void 0);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qx.prototype,"onYtPopupClosed_",null);
Qx=_.f([_.jd({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Qx);
_.X(Qx,"yt-sharing-embed-renderer",function(){if(fc2===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;XcQ===void 0&&(XcQ=document.createElement("template"));var I=XcQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);fc2=W}W=fc2;return W},{mode:2});var Tdf={};
Tdf.YtUnlimitedFamilyInterstitialBehavior=[_.xX.YtOpenPopupBehavior,_.rb.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(W){W=_.J9A(_.af(W),"yt-button-renderer");return W?W.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(W){this.dialogHistory_.push(W)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var W=this.popFromHistory();if(W){var P={openPopupAction:{popupType:"DIALOG",popup:{}}};P.openPopupAction.popup[W.renderer]=W.data;this.showingPreviousDialog_=!0;this.openPopup(P)}},
handleOpenPopupAction_:function(W){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var P=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(I){return!!W.openPopupAction.popup[I]}),x=this.getElementName_();
P&&this.data&&(this.pushToHistory({renderer:x,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(W){if(W=_.Q(W,j9G))this.loading=!0,_.W7(this.hostElement,"yt-open-create-family-dialog",[W,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var W=this.hostElement.nodeName.split("-").slice(1).map(function(P){return""+P[0].toUpperCase()+P.slice(1).toLowerCase()}).join("");
return W[0].toLowerCase()+W.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var rsv;var iq2;var Cv=function(){return _.b.apply(this,arguments)||this};
_.A(Cv,_.b);_.J=Cv.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.W7(this.hostElement,"yt-register-create-family-dialog");_.g(this.hostElement).querySelector("#thumbnail").onShow()};
_.J.fireOnCloseCommand_=function(){var W;((W=this.data)==null?0:W.onCloseCommand)&&_.OL(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.J.onYtServiceRequestSent_=function(W,P){P&&P.endpoint&&_.Q(P.endpoint,_.Y6)||(this.loading=!0)};
_.J.onYtServiceRequestCompleted_=function(){var W=this.hostElement.parentElement;W.close&&W.close();this.loading=!1};
_.J.openPopupHandler_=function(W){if(W.detail==this){var P;((P=this.data)==null?0:P.onOpenCommands)&&_.OL(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.J.closePopupHandler_=function(W,P){this.fireOnCloseCommand_();if(P&&P.canceled===!0||P&&P.canceled===!1&&P.confirmed===!1){var x;((x=this.data)==null?0:x.onDismissCommands)&&_.OL(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.J.dataChanged_=function(){this.loading=!1};
Cv.prototype.dataChanged_=Cv.prototype.dataChanged_;Cv.prototype.closePopupHandler_=Cv.prototype.closePopupHandler_;Cv.prototype.openPopupHandler_=Cv.prototype.openPopupHandler_;Cv.prototype.onYtServiceRequestCompleted_=Cv.prototype.onYtServiceRequestCompleted_;Cv.prototype.onYtServiceRequestSent_=Cv.prototype.onYtServiceRequestSent_;_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],Cv.prototype,"ytEventForwardingBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(Tdf.YtUnlimitedFamilyInterstitialBehavior),_.l("design:type",Object)],Cv.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Cv.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Cv.prototype,"loading",void 0);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],Cv.prototype,"onYtServiceRequestSent_",null);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],Cv.prototype,"onYtServiceRequestCompleted_",null);
_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Cv.prototype,"openPopupHandler_",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Cv.prototype,"closePopupHandler_",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cv.prototype,"dataChanged_",null);
Cv=_.f([_.jd({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Cv);
_.X(Cv,"yt-unlimited-family-message-interstitial-renderer",function(){if(iq2===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;rsv===void 0&&(rsv=document.createElement("template"));var I=rsv;x.call(P,I.content.cloneNode(!0),W.content.firstChild);iq2=W}W=iq2;return W},{mode:2});var RFQ;var FCL;var AP=function(){return _.b.apply(this,arguments)||this};
_.A(AP,_.b);AP.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"}}}};
AP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.g(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(W){W.onShow()});
_.g(this.hostElement).querySelector("#main-thumbnail").onShow()};
AP.prototype.onButtonTap_=function(W){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(W)};
AP.prototype.computeMainThumbnailWidth_=function(W){return W&&W.length!==0?72:96};
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.f([_.h(Tdf.YtUnlimitedFamilyInterstitialBehavior),_.l("design:type",Object)],AP.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],AP.prototype,"data",void 0);
_.f([_.c({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.l("design:type",Number)],AP.prototype,"mainThumbnailWidth_",void 0);_.f([_.c({value:function(){return this.onButtonTap_.bind(this)}}),
_.l("design:type",Function)],AP.prototype,"boundButtonTap_",void 0);AP=_.f([_.jd({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],AP);
_.X(AP,"yt-unlimited-family-profile-interstitial-renderer",function(){if(FCL===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;RFQ===void 0&&(RFQ=document.createElement("template"));var I=RFQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);FCL=W}W=FCL;return W},{mode:2});var qdG;var LCv;var zH=function(){var W=_.b.apply(this,arguments)||this;W.sliderAriaValueText_=null;W.selectedIndex_=0;W.messages={PAUSE_SLIDER:_.KK("PAUSE_SLIDER",void 0,"Pause Duration")};return W};
_.A(zH,_.b);_.J=zH.prototype;_.J.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_]]"}}}}}};
_.J.onPopupOpened_=function(W){W.detail==this&&_.p("enable_premium_voluntary_pause")&&(_.W7(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.setDialogData=function(W){this.data=W;this.resetSlider_()};
_.J.dataChanged_=function(){this.data&&this.resetSlider_()};
_.J.onSubmitTap_=function(){if(this.data.confirmCommand){var W=this.data.confirmCommand;_.Q(W,_.hlw)&&_.Iu(this.hostElement,[W,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.J.onExitButtonTap_=function(){_.W7(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.J.closePopupHandler_=function(W,P){(P&&P.canceled===!0||P.canceled===!1&&P.confirmed===!1)&&this.handleOnDismissCommands_()};
_.J.onSliderChange_=function(){this.selectedIndex_=_.g(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.J.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.J.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.J.resetSlider_=function(){if(this.data){var W=this.data.defaultEndOptionIndex||0,P=_.g(this.hostElement).querySelector("#id-pause-slider");if(P.immediateValue<W)for(;P.immediateValue!=W;)P.increment();else if(W<P.immediateValue)for(;P.immediateValue!=W;)P.decrement();this.selectedIndex_=W;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.J.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.OL(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.OL(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.loading=!0};
_.J.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
zH.prototype.onYtServiceRequestCompleted=zH.prototype.onYtServiceRequestCompleted;zH.prototype.onYtServiceRequestSent=zH.prototype.onYtServiceRequestSent;zH.prototype.closePopupHandler_=zH.prototype.closePopupHandler_;zH.prototype.dataChanged_=zH.prototype.dataChanged_;zH.prototype.onPopupOpened_=zH.prototype.onPopupOpened_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],zH.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],zH.prototype,"loading",void 0);_.f([_.c(),_.l("design:type",Number)],zH.prototype,"selectIndexMax_",void 0);_.f([_.c(),_.l("design:type",Object)],zH.prototype,"selectedData_",void 0);
_.f([_.c(),_.l("design:type",Object)],zH.prototype,"sliderAriaValueText_",void 0);_.f([_.c({value:function(){return this.onSubmitTap_.bind(this)}}),
_.l("design:type",Function)],zH.prototype,"onButtonTap_",void 0);_.f([_.c({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.l("design:type",Function)],zH.prototype,"onSecondaryTap_",void 0);_.f([_.c(),_.l("design:type",Object)],zH.prototype,"messages",void 0);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],zH.prototype,"onPopupOpened_",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zH.prototype,"dataChanged_",null);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],zH.prototype,"closePopupHandler_",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],zH.prototype,"onYtServiceRequestSent",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],zH.prototype,"onYtServiceRequestCompleted",null);zH=_.f([_.jd({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],zH);
_.X(zH,"yt-unplugged-pause-membership-dialog-renderer",function(){if(LCv===void 0){var W=document.createElement("template");_.G(W,'\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>');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;qdG===void 0&&(qdG=document.createElement("template"));var I=qdG;x.call(P,I.content.cloneNode(!0),W.content.firstChild);LCv=W}W=LCv;return W},{mode:2});var Wo6;var P02;var GH=function(){return _.b.apply(this,arguments)||this};
_.A(GH,_.b);GH.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.z4("vcBalanceRenderer")}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],GH.prototype,"data",void 0);GH=_.f([_.jd({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],GH);
_.X(GH,"yt-vc-offer-layout-header-renderer",function(){if(P02===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;Wo6===void 0&&(Wo6=document.createElement("template"));var I=Wo6;x.call(P,I.content.cloneNode(!0),W.content.firstChild);P02=W}W=P02;return W},{mode:2});var xXG;var IK4;var Ocd;var Ja9;var Ep=function(){return _.b.apply(this,arguments)||this};
_.A(Ep,_.b);Ep.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.N1.Object.defineProperties(Ep.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)}}});
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.eaz.YtTappableItemBehavior),_.l("design:type",Object)],Ep.prototype,"ytTappableItemBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Ep.prototype,"data",void 0);
_.f([_.c({reflectToAttribute:!0}),_.H("data.accessibilityText"),_.l("design:type",String),_.l("design:paramtypes",[])],Ep.prototype,"ariaLabel",null);_.f([_.c({reflectToAttribute:!0}),_.H("data.style"),_.l("design:type",String),_.l("design:paramtypes",[])],Ep.prototype,"vcOfferStyle",null);_.f([_.H("data.style","data.titleText"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ep.prototype,"showTitleText",null);Ep=_.f([_.jd({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Ep);
_.X(Ep,"yt-vc-offer-renderer",function(){if(Ja9===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Ocd===void 0&&(Ocd=document.createElement("template"));var I=Ocd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);Ja9=W}W=Ja9;return W},{mode:2});var gR=function(){return _.b.apply(this,arguments)||this};
_.A(gR,_.b);gR.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}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],gR.prototype,"data",void 0);gR=_.f([_.jd({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],gR);
_.X(gR,"yt-vc-offer-layout-renderer",function(){if(IK4===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;xXG===void 0&&(xXG=document.createElement("template"));var I=xXG;x.call(P,I.content.cloneNode(!0),W.content.firstChild);IK4=W}W=IK4;return W},{mode:2});var BGQ;var nm6;var YHL;var yaf;var Dr=function(){return _.b.apply(this,arguments)||this};
_.A(Dr,_.b);Dr.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}}}}}};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],Dr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Dr.prototype,"data",void 0);Dr=_.f([_.jd({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Dr);
_.X(Dr,"yt-ypc-offers-modal-top-bar-renderer",function(){if(yaf===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;YHL===void 0&&(YHL=document.createElement("template"));var I=YHL;x.call(P,I.content.cloneNode(!0),W.content.firstChild);yaf=W}W=yaf;return W},{mode:2});var MP=function(){return _.b.apply(this,arguments)||this};
_.A(MP,_.b);MP.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"}}}}};
MP.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
MP.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var W=this.scrollable;W.attached&&typeof W.attached==="function"&&W.attached()};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.BM("#scrollable"),_.l("design:type",Object)],MP.prototype,"scrollable",void 0);_.f([_.c(),_.l("design:type",Object)],MP.prototype,"data",void 0);MP=_.f([_.jd({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],MP);
_.X(MP,"yt-ypc-offers-modal-renderer",function(){if(nm6===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;BGQ===void 0&&(BGQ=document.createElement("template"));var I=BGQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);nm6=W}W=nm6;return W},{mode:2});var Kom;var ZcM;var $h=function(){return _.b.apply(this,arguments)||this};
_.A($h,_.b);_.J=$h.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.g(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.J.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.W7(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.J.onYtPopupOpened_=function(W,P){(P==null?void 0:P.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.OL(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.onYtPopupClosed_=function(W,P){this.continueButtonTapped||P&&(P.canceled===!0||P.canceled===!1&&P.confirmed===!1)&&this.data.onDismissCommands&&_.OL(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestError_=function(W){this.set("showSpinner",!1);_.Iq(this.hostElement,W.detail.error.message)};
_.J.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.p("enable_ypc_spinners")?_.W7(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
$h.prototype.onYtServiceRequestError_=$h.prototype.onYtServiceRequestError_;$h.prototype.onYtPopupClosed_=$h.prototype.onYtPopupClosed_;$h.prototype.onYtPopupOpened_=$h.prototype.onYtPopupOpened_;$h.prototype.onYtServiceRequestCompleted_=$h.prototype.onYtServiceRequestCompleted_;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.c(),_.l("design:type",Object)],$h.prototype,"data",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],$h.prototype,"showSpinner",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],$h.prototype,"continueButtonTapped",void 0);_.f([_.c({value:function(){return this.onContinueTapped_.bind(this)}}),
_.l("design:type",Function)],$h.prototype,"bindOnContinueTapped_",void 0);_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$h.prototype,"onYtServiceRequestCompleted_",null);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],$h.prototype,"onYtPopupOpened_",null);
_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],$h.prototype,"onYtPopupClosed_",null);_.f([_.I7("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$h.prototype,"onYtServiceRequestError_",null);$h=_.f([_.jd({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],$h);
_.X($h,"yt-ypc-upgrade-dialog-renderer",function(){if(ZcM===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;Kom===void 0&&(Kom=document.createElement("template"));var I=Kom;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ZcM=W}W=ZcM;return W},{mode:2});var omQ;var SHL;var wR=function(){return _.b.apply(this,arguments)||this};
_.A(wR,_.b);wR.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
wR.prototype.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.confirmButton)};
wR.prototype.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],wR.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],wR.prototype,"data",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],wR.prototype,"positionType",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.l("design:type",Boolean)],wR.prototype,"hasButtons_",void 0);_.f([_.c({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.l("design:type",Boolean)],wR.prototype,"style_",void 0);wR=_.f([_.jd({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],wR);
_.X(wR,"yt-bubble-hint-renderer",function(){if(SHL===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;omQ===void 0&&(omQ=document.createElement("template"));var I=omQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);SHL=W}W=SHL;return W},{mode:2});var uHQ;var dXQ;var hP=function(){var W=_.lV.apply(this,arguments)||this;W.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return W};
_.A(hP,_.lV);_.J=hP.prototype;_.J.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.J.attached=function(){var W=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){W.$.thumbnail.onShow();W.$["header-image"].onShow()})};
_.J.handleCheckBoxUpdateAction_=function(W){this.canShowCheckboxEnabledConfirmButton=W};
_.J.computeUseOverlayForSpinner_=function(W,P){return!!W&&P};
_.J.computeShowSpinner_=function(W,P){return W||!!P};
_.J.fireOnCloseActions_=function(){var W,P=_.n(((W=this.data)==null?void 0:W.onClosedActions)||[]);for(W=P.next();!W.done;W=P.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.J.fireOnOpenCommands_=function(W){var P,x=(P=this.data)==null?void 0:P.onOpenCommands;if(x)for(W.stopImmediatePropagation(),W=_.n(x),P=W.next();!P.done;P=W.next())this.ytRendererBehavior.resolveCommand(P.value)};
_.J.fireOnDismissCommands_=function(W){var P,x=(P=this.data)==null?void 0:P.onDismissCommands;if(x)for(W.stopImmediatePropagation(),W=_.n(x),P=W.next();!P.done;P=W.next())this.ytRendererBehavior.resolveCommand(P.value)};
_.J.openPopupHandler_=function(W){W.detail==this&&this.fireOnOpenCommands_(W)};
_.J.closePopupHandler_=function(W,P){_.P7(this,"yt-confirm-dialog-close-action",[P]);this.fireOnCloseActions_();(P&&P.canceled===!0||P&&P.canceled===!1&&P.confirmed===!1)&&this.fireOnDismissCommands_(W)};
_.J.onHeaderImageChanged_=function(){var W;((W=this.data)==null?0:W.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.J.computeHasHeaderImageWidth_=function(W){return W!=void 0};
_.J.computeHasLoadingMessage=function(W){return!!W};
_.J.onHeaderImageWidthChanged_=function(){var W,P=(W=this.data)==null?void 0:W.headerImageWidth;if(P){if(W=1.25*P*2+P,this.$.main.style.width=W+"px",P=this.$.scroller.firstElementChild)P.style.minWidth=W+"px"}else this.$.main.style.width="100%"};
_.J.onThumbnailChanged_=function(){var W;((W=this.data)==null?0:W.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")};
_.J.onYtNavigate_=function(W){W=_.af(W);W instanceof Node&&_.rT(this.$["confirm-button"]).contains(W)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.J.computePrimaryIsCancel_=function(W){return W};
_.J.computeIsCancelButtonHidden_=function(W){return W.skipCancelButton||!W.cancelButton};
_.J.computeIsCheckboxHidden_=function(W){return!W.checkbox};
_.J.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.J.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.J.onYtServiceRequestCompleted_=function(){var W;((W=this.data)==null?0:W.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.N1.Object.defineProperties(hP,{template:{configurable:!0,enumerable:!0,get:function(){if(dXQ===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;uHQ===void 0&&(uHQ=document.createElement("template"));var I=uHQ;x.call(P,I.content.cloneNode(!0),W.content.firstChild);dXQ=W}W=dXQ;return W}}});
hP.prototype.onYtServiceRequestCompleted_=hP.prototype.onYtServiceRequestCompleted_;hP.prototype.onYtServiceRequestSent_=hP.prototype.onYtServiceRequestSent_;hP.prototype.onThumbnailLoaded_=hP.prototype.onThumbnailLoaded_;hP.prototype.onYtNavigate_=hP.prototype.onYtNavigate_;hP.prototype.onThumbnailChanged_=hP.prototype.onThumbnailChanged_;hP.prototype.onHeaderImageWidthChanged_=hP.prototype.onHeaderImageWidthChanged_;hP.prototype.onHeaderImageChanged_=hP.prototype.onHeaderImageChanged_;
hP.prototype.closePopupHandler_=hP.prototype.closePopupHandler_;hP.prototype.openPopupHandler_=hP.prototype.openPopupHandler_;_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],hP.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);
_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],hP.prototype,"ytEventForwardingBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],hP.prototype,"data",void 0);_.f([_.c({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.l("design:type",Boolean)],hP.prototype,"primaryIsCancel",void 0);_.f([_.c({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.l("design:type",Boolean)],hP.prototype,"isCancelButtonHidden",void 0);
_.f([_.c({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.l("design:type",Boolean)],hP.prototype,"isCheckboxHidden",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],hP.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.f([_.c({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.l("design:type",Boolean)],hP.prototype,"useOverlayForSpinner_",void 0);
_.f([_.c({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.l("design:type",Boolean)],hP.prototype,"showSpinner_",void 0);_.f([_.c({value:!1}),_.l("design:type",Boolean)],hP.prototype,"isActionInProgress_",void 0);_.f([_.c({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.l("design:type",Boolean)],hP.prototype,"hasHeaderImageWidth_",void 0);
_.f([_.c({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.l("design:type",Boolean)],hP.prototype,"hasLoadingMessage",void 0);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],hP.prototype,"openPopupHandler_",null);_.f([_.I7("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],hP.prototype,"closePopupHandler_",null);
_.f([_.OZ("data.headerImage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hP.prototype,"onHeaderImageChanged_",null);_.f([_.OZ("data.headerImageWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hP.prototype,"onHeaderImageWidthChanged_",null);_.f([_.OZ("data.thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hP.prototype,"onThumbnailChanged_",null);
_.f([_.I7("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],hP.prototype,"onYtNavigate_",null);_.f([_.I7("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hP.prototype,"onThumbnailLoaded_",null);_.f([_.I7("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.wL]),_.l("design:returntype")],hP.prototype,"onYtServiceRequestSent_",null);
_.f([_.I7("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.U4]),_.l("design:returntype")],hP.prototype,"onYtServiceRequestCompleted_",null);hP=_.f([_.jd({is:"yt-confirm-dialog-renderer",noInjection:!0})],hP);var sjO;var vm9;var Hj=function(){return _.b.apply(this,arguments)||this};
_.A(Hj,_.b);Hj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.g(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Hj.prototype.computeConfirmButton_=function(W){var P={text:W.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};W.confirmNavigationEndpoint?P.navigationEndpoint=W.confirmNavigationEndpoint:W.confirmServiceEndpoint&&(P.serviceEndpoint=W.confirmServiceEndpoint);return P};
Hj.prototype.computeShowTitle_=function(W){return!(W==null||!W.title)};
_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],Hj.prototype,"data",void 0);_.f([_.c({computed:"computeShowTitle_(data)"}),_.l("design:type",Boolean)],Hj.prototype,"showTitle",void 0);Hj=_.f([_.jd({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Hj);
_.X(Hj,"yt-fancy-dismissible-dialog-renderer",function(){if(vm9===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;sjO===void 0&&(sjO=document.createElement("template"));var I=sjO;x.call(P,I.content.cloneNode(!0),W.content.firstChild);vm9=W}W=vm9;return W});var mXd;var VqQ;var eC=function(){var W=_.b.apply(this,arguments)||this;W.spinnerActive=!1;return W};
_.A(eC,_.b);eC.prototype.created=function(){Un6(2201)};
eC.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
eC.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
eC.prototype.onIronOverlayClosed=eC.prototype.onIronOverlayClosed;eC.prototype.onIronOverlayOpened=eC.prototype.onIronOverlayOpened;_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.NK),_.l("design:type",Object)],eC.prototype,"tpYtIronOverlayBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],eC.prototype,"data",void 0);_.f([_.c(),_.l("design:type",Object)],eC.prototype,"spinnerActive",void 0);
_.f([_.I7("iron-overlay-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eC.prototype,"onIronOverlayOpened",null);_.f([_.I7("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eC.prototype,"onIronOverlayClosed",null);eC=_.f([_.jd({is:"yt-loading-renderer",disableElementRegistration:!0})],eC);
_.X(eC,"yt-loading-renderer",function(){if(VqQ===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;mXd===void 0&&(mXd=document.createElement("template"));var I=mXd;x.call(P,I.content.cloneNode(!0),W.content.firstChild);VqQ=W}W=VqQ;return W},{mode:2});var tq2;var pR2;var cj=function(){var W=_.b.apply(this,arguments)||this;W.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);W.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);W.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.A(cj,_.b);_.J=cj.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.J.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.J.openPopupHandler_=function(W){W.detail===this.hostElement&&this.hostElement.hidden&&_.W7(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.J.onDismissButtonTap_=function(){var W;this.closeOnDismissButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.W7(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.onAcceptButtonTap_=function(){var W;this.closeOnAcceptButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.W7(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.computeHasHeader_=function(W){return!!W.headerBackgroundImage};
_.J.computeLayoutStyle_=function(W){return W};
_.J.computePopupSize_=function(W){return W};
_.J.computeIconType_=function(W){return W.dialogIcon&&W.dialogIcon.iconType?W.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":W.dialogIcon.iconType:""};
_.J.computeIsLogo_=function(W){return!!W.dialogIcon&&!!W.dialogIcon.iconType&&(W.dialogIcon.iconType==="YOUTUBE_LOGO"||W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||W.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.J.computeHasCustomLogo=function(W){return!(W==null||!W.headerForegroundImage)};
_.J.computeCustomLogo=function(W,P){if(W!=null&&W.headerForegroundImage)return W.headerForegroundImageDark?P?W.headerForegroundImageDark:W.headerForegroundImage:W.headerForegroundImage};
_.J.computeHeaderBackgroundImage=function(W,P){if(W!=null&&W.headerBackgroundImage)return P&&(W==null?0:W.headerBackgroundImageDark)?W.headerBackgroundImageDark:W.headerBackgroundImage};
_.J.shouldShowIconContainer=function(W,P){return W&&!P};
_.J.shouldShowNonYouTubeIcon=function(W,P){return!W&&!P};
_.J.getLogoImageId=function(W){var P,x,I;return(W=(P=this.computeCustomLogo(W,this.isDarkTheme))==null?void 0:(x=P.thumbnails)==null?void 0:(I=x[0])==null?void 0:I.height)&&W%31===0?"custom-logo-with-padding":"custom-logo"};
cj.prototype.openPopupHandler_=cj.prototype.openPopupHandler_;cj.prototype.dataChanged_=cj.prototype.dataChanged_;_.f([_.h(_.TC.YtRendererstamperBehavior),_.l("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.f([_.c(),_.l("design:type",Boolean)],cj.prototype,"isDarkTheme",void 0);
_.f([_.c({computed:"computeCustomLogo(data, isDarkTheme)"}),_.l("design:type",Object)],cj.prototype,"customLogo",void 0);_.f([_.c({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.l("design:type",Object)],cj.prototype,"headerBackgroundImage",void 0);_.f([_.c(),_.l("design:type",Object)],cj.prototype,"data",void 0);_.f([_.c({computed:"computeHasHeader_(data)"}),_.l("design:type",Boolean)],cj.prototype,"hasHeader",void 0);
_.f([_.c({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.l("design:type",Object)],cj.prototype,"layoutStyle",void 0);_.f([_.c({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.l("design:type",Object)],cj.prototype,"popupSize",void 0);_.f([_.c({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],cj.prototype,"hasLogo",void 0);
_.f([_.c({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],cj.prototype,"hasCustomLogo",void 0);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cj.prototype,"dataChanged_",null);_.f([_.I7("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],cj.prototype,"openPopupHandler_",null);
cj=_.f([_.jd({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],cj);
_.X(cj,"yt-upsell-dialog-renderer",function(){if(pR2===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;tq2===void 0&&(tq2=document.createElement("template"));var I=tq2;x.call(P,I.content.cloneNode(!0),W.content.firstChild);pR2=W}W=pR2;return W},{mode:2});var jj3=_.kl(function(W){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.u(_.V,{cond:W.title,then:function(P){return _.u("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},P)}}))},"mg"),Qjy=_.kl(function(W){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.u(_.Ea,{data:W.closeButton},{buttonViewModel:function(P){return _.u("div",null,_.u(_.cq,{data:P.data}))}}))},"ng"),C03=_.kl(function(W){var P=
W.data;
return _.u(_.qS,null,_.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.u(_.V,{cond:function(){return!!P().image&&!!P().title},
then:function(){return _.u(_.bq,{data:function(){return P().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.u(_.V,{cond:function(){return P().title},
then:function(x){return _.u("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},x)}}),_.u(_.V,{cond:function(){return P().primaryGenre},
then:function(x){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},x)}}))),_.u(_.V,{cond:function(){var x=P().description;
return x&&x.length<=150},
then:function(){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return P().description}))}}))},"og"),Aa4=_.kl(function(W){W=W.infoRows;
var P=_.FY().resolve(_.Gf),x=_.p("enable_displaying_ppn");return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.u(_.sV,{each:W},function(I){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.u(_.V,{cond:function(){return I.label},
then:function(O){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},O)}}),_.u(_.V,{cond:function(){return I.attributedLabel},
then:function(O){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.u(_.mQ,{text:O,noPreWrap:!0}))}}),_.u(_.V,{cond:function(){return I.value},
then:function(O){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},O)}}),_.u(_.V,{cond:function(){return I.attributedValue},
then:function(O){return _.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.u(_.mQ,{text:O,noPreWrap:!0}))}}))}),_.u(_.V,{cond:function(){return x&&P.clientData.has("post_play_nonce")},
then:function(){return _.u("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.u("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},P.getData("post_play_nonce")))}}))},"pg"),zt3=_.kl(function(W){var P=W.data;
return _.u("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.u(jj3,{title:function(){return P().dialogTitle}}),_.u(C03,{data:P}),_.u(_.V,{cond:function(){return P().infoRow},
then:function(x){return _.u(Aa4,{infoRows:x})}}),_.u(Qjy,{closeButton:function(){return P().closeButton}}))},"qg");
zt3.idomCompat=!0;_.lq(zt3,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;return _.u("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.u(_.bq,{data:function(){return P().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.u("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.u("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.u(_.V,{cond:function(){var x=P().ytLogo;return x?x.iconType:null},
then:function(x){return _.u(_.Sy,{icon:x,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.u("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.u("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.u(_.mQ,{text:function(){return P().body}})),_.u("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.u(_.mQ,{text:function(){return P().verifyStateText}}))),
_.u("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.u("div",null,_.u(_.Ea,{data:function(){return P().dismissButton}},{buttonViewModel:_.cq})),_.u("div",null,_.u(_.Ea,{data:function(){return P().linkParentButton}},{buttonViewModel:_.cq})))))},"rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.cv}});var Gvm=_.kl(function(W){var P=W.data;return _.u("installment-agreements-view-model",{class:_.O4("ytInstallmentAgreementsViewModelHost")},_.u(_.sV,{each:_.a7(function(){return P().agreements},[])},function(x){return _.u("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.u("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.u(_.mQ,{text:x.label})),_.u("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.u(_.Ea,{data:function(){return x.openButton}},{buttonViewModel:_.cq})))}))},
"sg");
Gvm.idomCompat=!0;var Em3=_.kl(function(W){return _.u("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.u(_.mQ,{text:function(){return W.data().inviteMessage}})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.u(_.mQ,{text:function(){return W.data().attributedAccountSectionHeaderText}})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.u(_.Ea,{data:function(){return W.data().accountAvatar}},{avatarViewModel:_.DI}),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.u(_.mQ,{text:function(){return W.data().accountName}}),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.u(_.mQ,{text:function(){return W.data().handle}}))),_.u(_.Ea,{data:function(){return W.data().trailingButton}},{buttonViewModel:_.cq})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.u(_.mQ,{text:function(){return W.data().termsOfService}})))},"tg");var gm4=_.kl(function(W){var P=_.n(_.Zh(function(){var F,nm;return((F=W.data().createPlaylistDialogFormSchema)==null?0:(nm=F.initialValues)==null?0:nm.title)?W.data().createPlaylistDialogFormSchema.initialValues.title:""})),x=P.next().value,I=P.next().value;
P=_.n(_.Zh(function(){W.data();return!1}));
var O=P.next().value,B=P.next().value;P=_.n(_.Zh(function(){W.data();return!1}));
var Y=P.next().value,K=P.next().value;P=_.n(_.Zh(function(){var F,nm;return(F=W.data().createPlaylistDialogFormSchema)==null?void 0:(nm=F.initialValues)==null?void 0:nm.visibility}));
var Z=P.next().value,d=P.next().value;P=_.n(_.Zh(function(){W.data();return!1}));
var v=P.next().value,m=P.next().value;P=_.n(_.Zh(function(){var F,nm;return(F=W.data().createPlaylistDialogFormSchema)==null?void 0:(nm=F.initialValues)==null?void 0:nm.isCollaborative}));
var t=P.next().value,C=P.next().value,z=_.fa();_.jj(function(){var F=z.value.querySelector("textarea");F&&(F.value=x())});
_.AQ(function(){var F;_.FYG((F=W.data().createPlaylistDialogFormSchema)==null?void 0:F.id,{onSubmit:function(){var nm=x();var pm=Z(),zR=t(),Am=W.data();nm={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:nm,privacyStatus:pm,videoIds:Am.videoIds,sourcePlaylistId:Am.sourcePlaylistId,params:zR?Am.createPlaylistParamsCollaborationEnabled:Am.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.FY().resolve(_.qR).resolveCommand(nm)},
isValid:function(){return O()&&!Y()&&!v()}})});
var D=function(F){if(F!==void 0&&(I(F),!O()&&F.length>0&&B(!0),O())){var nm=qn9(W.data());if(nm){var pm=nm.minLength;nm=nm.maxLength;pm&&F.length<pm?K(!0):nm&&F.length>nm?K(!0):K(!1)}}},w=function(){var F=!(!t()||Z()!=="PRIVATE");
m(F)},a=function(F){F!==void 0&&(d(F),w())},k=function(){if(v())return W7m(W.data())},T=function(){C(!t());
w()},N=function(){return{validate:function(F){if(O()){var nm=qn9(W.data());
if(nm){var pm=nm.minLength;nm=nm.translations;if(pm&&F.length<pm)return nm==null?void 0:nm.minLengthErrorMessage}}}}},Io=function(){var F=qn9(W.data()),nm=F==null?void 0:F.maxLength,pm;
F=F==null?void 0:(pm=F.translations)==null?void 0:pm.maxLengthErrorMessage;if(nm&&F)return{maxChars:nm,errorMessage:F}};
return _.u("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.u("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:z},_.u(_.Ea,{data:function(){return W.data().playlistTitle}},{textFormFieldViewModel:function(F){return _.u(_.woM,{data:F.data,
text:x,onInput:D,validation:N,characterLimit:Io})},
textFieldViewModel:function(F){return _.u(_.$R9,{data:F.data,text:x,onInput:D,validation:N,characterLimit:Io})}})),_.u("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.u(_.Ea,{data:function(){return W.data().playlistVisibility}},{dropdownViewModel:function(F){return _.u(_.l$m,{data:F.data,
onSelected:a,error:k})}})),_.u(_.V,{cond:function(){return!!W.data().playlistCollaborate},
then:function(){return _.u("div",null,_.u(_.Ea,{data:function(){return W.data().playlistCollaborate}},{switchListItemViewModel:function(F){return _.u(_.NR3,{data:F.data,
onTap:T})}}))}}))},"ug");var DX4=_.kl(function(W){var P=_.a7(W.noPadding,!1),x=function(){var O,B;return(B=(O=W.data().logo.accessibilityData)==null?void 0:O.label)!=null?B:""},I={};
return _.u("upsell-view-model",{class:_.O4("ytUpsellViewModelHost",(I.ytUpsellViewModelHostNoPadding=function(){return P()},I))},_.u("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.u(_.V,{cond:function(){return _.LC(W.data().logo)},
then:function(O){return _.u(_.bq,{data:O,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:x})}})),_.u("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.u(_.mQ,{text:function(){return W.data().title}})),_.u("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.u(_.sV,{each:function(){var O;
return(O=W.data().subtitles)!=null?O:[]},
keyBy:"INDEX"},function(O){return _.u("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.u(_.mQ,{text:O}))})),_.u("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.u(_.sV,{each:function(){var O;
return(O=W.data().benefitInfos)!=null?O:[]},
keyBy:"INDEX"},function(O){return _.u(_.V,{cond:function(){return O().info},
then:function(B){return _.u("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.u(_.Sy,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.u(_.mQ,{text:B}))}})})),_.u("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.u(_.sV,{each:function(){var O;
return(O=W.data().legalInfos)!=null?O:[]},
keyBy:"INDEX"},function(O){return _.u("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.u(_.mQ,{text:O}))})))},"vg");var MqQ=_.kl(function(W){var P=W.data;W={};W=(W.ytMiniAppScoreChallengeViewModelScoreRadial=!0,W.ytMiniAppScoreChallengeViewModelDarkScoreRadial=PS4(),W);return _.u("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.u("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return P().title}),_.u("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return P().subtitle}),_.u("div",{class:_.BF(W)},_.u("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return P().score})),_.u("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return P().prompt}))},"wg");var $XB=function(){this.store=_.HM();this.formId=""};var wRQ=_.kl(function(W){function P(K){if(K&&(K=_.Q(K,_.tp)))return Object.assign({},K,{isSelected:B()})}
var x=_.n(_.Zh(function(){var K,Z;return(Z=(K=_.Q(W.data().option,_.tp))==null?void 0:K.isSelected)!=null?Z:!1})),I=x.next().value,O=x.next().value,B=I;
_.AQ(function(){var K;_.FYG((K=W.data().formSchema)==null?void 0:K.id,{onSubmit:function(){var Z=_.FY().resolve(_.qR),d=!!W.data().selectedCommand,v=!!W.data().unselectedCommand;if(B()){if(d)var m=W.data().selectedCommand}else v&&(m=W.data().unselectedCommand);m=_.AF(m);P(W.data().option)&&!m?(Z="",!d&&v?Z="selected ":d&&!v&&(Z="unselected "),d=new _.mW("No "+Z+"command found for SelectionListItemFormViewModel"),_.G$(d)):m&&Z.resolveCommand(m)},
isValid:function(){return!0}})});
var Y=function(){O(!B())};
_.C4(function(){var K,Z,d=(K=W.data())==null?void 0:(Z=K.formSchema)==null?void 0:Z.id;d&&_.i56()().delete(d)});
return _.u("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.u("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.u(_.mQ,{text:function(){return W.data().paragraph}})),_.u(_.V,{cond:function(){return P(W.data().option)},
then:function(K){return _.u(_.tG,{data:K,isCompact:!0,hideSelectionTextChevron:!0,onTap:Y,disableHorizontalPadding:!0})}}))},"xg");var ht9=_.kl(function(W){var P=W.data;var x=W.disablePadding;var I=W.className;var O=_.fa(),B=function(){return xa9(P().banner,P().assetContainerPaddingStyle)},Y=function(){return xa9(P().imageBanner,P().assetContainerPaddingStyle)},K=function(){return P().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.AQ(function(){var Z=function(){_.W7(O.value,"yt-refit-popups-action")},d;
(d=O.value)==null||d.addEventListener("image-loaded",Z);_.C4(function(){var v;(v=O.value)==null||v.removeEventListener("image-loaded",Z)})});
W={};return _.u("yt-dialog-header-view-model",{el:O,class:_.O4(I,(W.ytDialogHeaderViewModelHost=!0,W.ytDialogHeaderViewModelHostDisablePadding=x,W))},_.u(_.V,{cond:function(){return P().banner},
then:function(){var Z={};return _.u("div",{class:_.O4(I,(Z.ytDialogHeaderViewModelBanner=!0,Z.ytDialogHeaderViewModelBannerFullBleed=K,Z)),style:_.oP({"max-height":function(){return P().assetContainerMaxHeight?P().assetContainerMaxHeight+"px":""}})},_.u(_.lW,{data:B,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.u(_.V,{cond:function(){return P().imageBanner},
then:function(){var Z={};return _.u("div",{class:_.O4(I,(Z.ytDialogHeaderViewModelBanner=!0,Z.ytDialogHeaderViewModelBannerFullBleed=K,Z)),style:_.oP({"max-height":function(){return P().assetContainerMaxHeight!==void 0?P().assetContainerMaxHeight+"px":void 0}})},_.u(_.lW,{data:Y,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.u(_.V,{cond:function(){return P().customAssetContainer},
then:function(Z){return _.u("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.u(_.Ea,{data:Z},{avatarStackViewModel:_.VA}))}}),_.u(_.V,{cond:function(){return P().customBanner},
then:function(Z){return _.u("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.u(_.Ea,{data:Z},{avatarStackViewModel:_.VA}))}}),_.u(_.V,{cond:function(){return P().headline},
then:function(Z){return _.u("h2",null,_.u(_.mQ,{text:Z,className:"ytDialogHeaderViewModelText"}))}}))},"yg");
ht9.idomCompat=!0;var Hc2=_.kl(function(W){var P=_.qhO(function(){return W.data().formId}),x=P.onSubmit,I=P.isValid;
return _.u("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.u(_.Ea,{data:function(){return W.data().panelFooter}},{panelFooterViewModel:function(O){return _.u(_.bf,{data:O.data,
disablePadding:!0,disablePrimaryButton:function(){return!I()},
onClickPrimaryButton:function(){x()}})}}))},"zg");var et4=_.kl(function(W){var P=function(){var x,I;return(I=(x=_.Q(W.data().rendererContext,_.TS))==null?void 0:x.label)!=null?I:""};
return _.u("yt-dialog-image-content-view-model",{class:_.O4("ytDialogImageContentViewModelHost",W.className)},_.u(_.V,{cond:function(){return _.LC(W.data().image)},
then:function(x){return _.u(_.bq,{data:x,alt:P,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.u(_.mQ,{text:function(){return W.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Ag");var bcO=_.kl(function(W){var P=_.bw(W,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),x=P.elRefCallback;W=P.iconWiz;var I=P.assetWiz,O=P.assetType,B=P.titleWiz,Y=P.leadingActionHeaderWiz,K=P.trailingActionHeaderWiz,Z=P.headerPosition,d=P.contentWiz,v=P.buttonLayout,m=P.buttonStyle,t=P.primaryButtonWiz,C=P.secondaryButtonWiz,z=P.contentAlignment,D=P.isFullscreen,w=P.width,a=P.maxHeight,k=P.isHeaderWizDefined,
T=P.headerWiz,N=P.isFooterWizDefined,Io=P.footerWiz;P=_.fa(function(e8){x==null||x(e8)});
var F=I?function(){return I({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,nm=t?function(){var e8={};
return t({buttonOverrides:function(){return{style:(m==null?void 0:m())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.O4((e8["yt-spec-dialog-layout__dialog-layout-button"]=!0,e8["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(v==null?void 0:v())===0||(v==null?void 0:v())===2},e8))})}:void 0,pm=C?function(){var e8={};
return C({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.O4((e8["yt-spec-dialog-layout__dialog-layout-button"]=!0,e8["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(v==null?void 0:v())===0||(v==null?void 0:v())===2},e8))})}:void 0,zR=function(){return(!!B||!!Y||!!K)&&Z()===0},Am={},kW={},$W={},ao={};
return _.u("dialog-layout",{el:P,class:_.O4((Am["yt-spec-dialog-layout"]=!0,Am["yt-spec-dialog-layout--dialog-layout-fullscreen"]=D,Am["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!D()},Am["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return a()===1},Am["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(O==null?void 0:O())===1},Am)),
style:function(){return(w==null?void 0:w())!==void 0?"width: "+w+"px;":""}},W?_.u("div",{class:_.O4((kW["yt-spec-dialog-layout__dialog-layout-icon"]=!0,kW["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!I&&Z()===1},kW["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return z()===1},kW))},_.u(W,null)):null,_.u(_.V,{cond:k,
then:function(){return T?_.u("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.u(T,null)):null},
else:function(){return _.u(_.qS,null,_.u(_.V,{cond:zR,then:function(){return _.u(ca2,{contentAlignment:z,LeadingActionHeader:Y,TrailingActionHeader:K,Title:B,isAboveAsset:!!F})}}),F?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.u(F,null)):null)}}),_.u("div",{class:_.O4(($W["yt-spec-dialog-layout__dialog-layout-container"]=!0,$W["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(z==null?void 0:z())===1},$W["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!B&&!T||!!F&&(Z==null?void 0:Z())===0},$W))},_.u(_.V,{cond:function(){return B&&!T&&(Z==null?void 0:Z())===1},
then:function(){return _.u(ca2,{contentAlignment:z,LeadingActionHeader:Y,TrailingActionHeader:K,Title:B,isAboveAsset:!1})}}),d?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.u(d,null))):null,_.u(_.V,{cond:N,
then:function(){return Io?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.u(Io,null)):null}}),nm||pm?_.u(aKm,{footerClasses:_.O4((ao["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,ao["yt-spec-dialog-layout__dialog-layout-footer"]=!0,ao["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(v==null?void 0:v())===2},ao["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(v==null?void 0:v())===1},ao)),
PrimaryButton:nm,SecondaryButton:pm}):null))},"Bg"),ca2=_.kl(function(W){var P=_.bw(W,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),x=P.contentAlignment,I=P.LeadingActionHeader;W=P.Title;var O=P.TrailingActionHeader,B=P.isAboveAsset,Y=P.enableLeadingActionHeader;P={};return _.u("div",{class:_.O4((P["yt-spec-dialog-layout__dialog-header-container"]=!0,P["yt-spec-dialog-layout__dialog-header"]=!0,P["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=B,P["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(x==null?void 0:x())===1&&Y()},P))},_.u(_.V,{cond:function(){return Y()},
then:function(){return I?_.u("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.u(I,null)):null}}),W?_.u("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.u(W,null)):null,O?_.u("div",null,_.u(O,null)):null)},"Cg"),aKm=_.kl(function(W){var P=W.footerClasses;
var x=W.PrimaryButton;W=W.SecondaryButton;return _.u("div",{class:P},W?_.u(W,null):null,x?_.u(x,null):null)},"Dg");var kvQ=_.kl(function(W){var P=W.data;return _.u("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.u("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.u(_.Ea,{data:function(){return P().avatar}},{avatarViewModel:_.DI})),_.u("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u(_.mQ,{text:function(){return P().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Eg");var UXy=_.kl(function(W){var P=W.data;return _.u("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.u("div",{class:"ytAccessConfirmationViewModelContent"},_.u(_.Ea,{data:function(){return P().dualAvatar}},{dualAvatarViewModel:function(x){return _.u("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.u(_.pEW,{data:x.data}))}}),_.u("h2",{class:"ytAccessConfirmationViewModelTitle"},_.u(_.mQ,{text:function(){return P().title}})),_.u(_.mQ,{text:function(){return P().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Fg");var XRO=_.kl(function(W){var P=W.data;var x=void 0;W=_.n(_.YV("",void 0,"bj3Bbf"));var I=W.next().value,O=W.next().value,B,Y=function(){O("");var d;(d=x)!=null&&d.store.dispatch(_.LK({type:"RESET_COMMAND_MAP"}))};
_.AQ(function(){x=new $XB;window.addEventListener("yt-popup-closed",Y)});
_.jj(function(){if(x&&B!==P().formId){var d=x,v=P();v.formId&&(d.formId=v.formId,d.store.dispatch(_.LK({type:"SET_CURRENT_FORM_ID",payload:{formId:d.formId}})));B=P().formId}});
_.C4(function(){window.removeEventListener("yt-popup-closed",Y)});
var K=function(d,v,m){v.key&&m&&v.key!==I()&&(O(v.key),x&&v.command&&x.store.dispatch(_.LK({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:m,command:v.command}})))},Z=function(){if(_.Q(P().content,_.u8d))return!(I==null?0:I())};
return _.u("yt-dialog-view-model",{class:_.O4("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.u(bcO,{headerWiz:function(){return _.u("span",{skip:!0},_.u(_.Ea,{data:function(){return P().header}},{dialogHeaderViewModel:function(d){return _.u(ht9,{data:d.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!P().header},
contentWiz:function(){return _.u("span",{skip:!0},_.u(_.Ea,{data:function(){return P().customContent?P().customContent:P().content}},{basicContentViewModel:_.OMf,
createPlaylistDialogFormViewModel:gm4,collaborativePlaylistInviteMessageViewModel:Em3,miniAppScoreChallengeViewModel:MqQ,radioButtonGroupViewModel:function(d){return _.u(_.Xod,{data:d.data,selectedKey:I,onSelected:K})},
selectionListItemFormViewModel:wRQ,upsellViewModel:function(d){return _.u(DX4,{data:d.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:kvQ,installmentAgreementsViewModel:Gvm,accessConfirmationViewModel:UXy,listViewModel:function(d){return _.u(_.qpW,{data:d.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:et4}))},
footerWiz:function(){return _.u("span",{skip:!0},_.u(_.Ea,{data:function(){return P().footer}},{panelFooterViewModel:function(d){return _.u(_.bf,{data:d.data,
disablePadding:!0,disablePrimaryButton:Z})},
formPanelFooterViewModel:Hc2,formFooterViewModel:function(d){return _.u(_.g$O,{data:d.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!P().footer}}))},"Gg");
XRO.idomCompat=!0;_.lq(XRO,"yt-dialog-view-model",{props:{data:_.cv},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var fKL=_.kl(function(W){var P=W.data;W={};return _.u("yt-panel-header-view-model",{class:_.O4("yt-panel-header-view-model-wiz",(W["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!P().shouldHideDivider},W["yt-panel-header-view-model-wiz--compact"]=function(){return!!P().subtitle},W))},_.u("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.u(_.V,{cond:function(){return P().title},
then:function(x){return _.u(_.mQ,{text:x,className:"yt-panel-header-view-model-wiz__title"})}}),_.u(_.V,{cond:function(){return P().subtitle},
then:function(x){return _.u(_.mQ,{text:x,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.u("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.u(_.Ea,{data:function(){return P().trailingButtons}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Hg");
fKL.idomCompat=!0;var NGv=_.kl(function(W){var P=_.yB(function(B){var Y;if((Y=W.skipContentClick)==null?0:Y.call(W))return!1;W.onContentWrapperClick(B);return!0}),x,I,O;
return _.u("div",{class:_.O4("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return W.isAnimating()?"transform: translateY("+W.currentY()+"px);transition: 0.2s":""}},(x=W.header)==null?void 0:x.call(W),_.u("div",{id:W.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.oP({"max-height":(0,_.mq)(W.maxHeightForContentWrapper)}),"on:scroll":BT2(W.onScroll),"on:touchmove":BT2(function(B){return void B.stopPropagation()})},_.u("div",{el:{onRender:W.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":P},(I=W.body)==null?void 0:I.call(W))),(O=W.footer)==null?void 0:O.call(W))},"Ig");
NGv.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var lKM=_.kl(function(W){var P=_.a7(W.leadingLabel),x=_.a7(W.trailingLabel),I=_.a7(W.footerButtonType),O=function(){return P()||x()||W.hasPrimaryButton()||W.hasSecondaryButton()},B={},Y=_.O4("yt-spec-bottom-sheet-layout__primary-button",(B["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return I()===0&&W.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return I()===1&&W.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return I()===2&&W.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return I()===3&&W.hasPrimaryButton()},B));
B={};var K=_.O4("yt-spec-bottom-sheet-layout__secondary-button",(B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return I()===1&&W.hasSecondaryButton()},B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return I()===2&&W.hasSecondaryButton()},B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return I()===3&&W.hasPrimaryButton()},B));
return _.u(_.V,{cond:W.hasFooterOverride,then:function(){var Z;return _.u(_.qS,null,(Z=W.footerOverride)==null?void 0:Z.call(W))},
else:function(){return _.u(_.V,{cond:O,then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.u(_.V,{cond:function(){return P()||x()},
then:function(){var Z={};return _.u("div",{class:_.O4("yt-spec-bottom-sheet-layout__footer-label-wrapper",(Z["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!W.hasPrimaryButton()},Z))},_.u(_.V,{cond:P,
then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},P)}}),_.u(_.V,{cond:x,
then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},x)}}))}}),_.u(_.V,{cond:function(){return W.hasPrimaryButton()||W.hasSecondaryButton()},
then:function(){var Z={};return _.u("div",{class:_.O4("yt-spec-bottom-sheet-layout__footer-button-wrapper",(Z["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.qdW,Z))},_.u(_.V,{cond:function(){return W.hasSecondaryButton()&&I()!==0},
then:function(){var d;return _.u("div",{class:K},(d=W.secondaryButton)==null?void 0:d.call(W))}}),_.u(_.V,{cond:W.hasPrimaryButton,
then:function(){var d;return _.u("div",{class:Y},(d=W.primaryButton)==null?void 0:d.call(W))}}))}}))}})}})},"Jg");
lKM.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var TG6=_.kl(function(W){var P=_.a7(W.title),x=_.a7(W.subtitle),I=_.yB(function(Y){var K;(K=W.touchstart)==null||K.call(W,Y);return!1}),O=_.yB(function(Y){var K;
(K=W.touchmove)==null||K.call(W,Y);return!1}),B=_.yB(function(Y){var K;
(K=W.touchend)==null||K.call(W,Y);return!1});
return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:W.headerId,"on:touchstart":I,"on:touchmove":O,"on:touchend":B},_.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.u(_.V,{cond:W.hasHeaderOverride,then:function(){var Y;return _.u(_.qS,null,(Y=W.headerOverride)==null?void 0:Y.call(W))},
else:function(){var Y={};return _.u("div",{class:_.O4((Y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=P,Y))},_.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.u(_.V,{cond:P,then:function(){return _.u(_.qS,null,_.u("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},P),_.u(_.V,{cond:x,then:function(){return _.u("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
x)}}))}})),_.u(_.V,{cond:function(){return P()&&W.hasActionHeader()},
then:function(){var K;return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(K=W.actionHeader)==null?void 0:K.call(W))}}))}}))},"Kg");
TG6.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.kl(function(W){function P(F){if(!a&&typeof MutationObserver!=="undefined"){var nm={childList:!0};"MutationObserver"in window&&(a=new MutationObserver(x.bind(void 0,F)),a.observe(F,nm))}}
function x(F){typeof a!=="undefined"&&(k["content-wrapper"]===void 0&&(k["content-wrapper"]=F.children[0].clientHeight),C(k["content-wrapper"]),t()>z()||D(t()))}
function I(){m(window.innerHeight);t()>z()||D(t());T.isFullScreen[0]()&&t()>z()?N().dispatch("Snap To Full Screen",{maxHeight:w()}):N().dispatch("Snap To Neutral Position",{maxHeight:z()})}
function O(F){document.body.style.overscrollBehavior="none";F.preventDefault();N().dispatch("Touch Start",{event:F})}
function B(F){F.preventDefault();N().dispatch("Touch Move",{event:F,contentScrollable:t()>z(),fullContentWrapperHeight:w(),contentWrapperHeight:z(),contentHeightMap:k,contentWrapperId:"content-wrapper",header:YoG(W),footer:YoG(W)})}
function Y(){document.body.style.overscrollBehavior="";T.isFullScreen[0]()?T.currentY[0]()>=60?N().dispatch("Snap To Neutral Position",{maxHeight:z()}):N().dispatch("Snap To Full Screen",{maxHeight:w()}):T.currentY[0]()>=60?K():T.currentY[0]()<=-60&&t()>z()?N().dispatch("Snap To Full Screen",{maxHeight:w()}):N().dispatch("Snap To Neutral Position",{maxHeight:z()})}
function K(){N().dispatch("Close Sheet",{clientHeight:v(),maxHeight:0});setTimeout(function(){n34()},250)}
var Z=_.n(_.YV(window.innerHeight,void 0,"NWeFS")),d=Z.next().value;Z=Z.next().value;var v=d,m=Z;Z=_.n(_.YV(0,void 0,"oxfm4"));d=Z.next().value;Z=Z.next().value;var t=d,C=Z;Z=_.n(_.Zh(function(){var F=YoG(W);return.6*v()-Izd(F)-OL2(F)}));
d=Z.next().value;Z=Z.next().value;var z=d,D=Z,w=function(){var F=YoG(W);return v()-Izd(F)-OL2(F)-24-24},a=null,k={},T={initialY:_.YV(0,void 0,"cYBE5c"),
currentY:_.YV(0,void 0,"RndqHc"),isAnimating:_.YV(!1,void 0,"vO9DVd"),isFullScreen:_.YV(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Zh(z)},N=function(){var F=null;return function(){if(!F){var nm={initialY:T.initialY[0](),currentY:T.currentY[0](),isAnimating:T.isAnimating[0](),isFullScreen:T.isFullScreen[0](),maxHeightForContentWrapper:T.maxHeightForContentWrapper[0]()};F=Jqy(nm)}return F}}();
_.AQ(function(){window.addEventListener("resize",I);N().subscribe(function(F){T.initialY[1](F.initialY);T.currentY[1](F.currentY);T.isAnimating[1](F.isAnimating);T.isFullScreen[1](F.isFullScreen);T.maxHeightForContentWrapper[1](F.maxHeightForContentWrapper)})});
_.C4(function(){window.removeEventListener("resize",I);a&&(a.disconnect(),a=null)});
var Io=_.O4({"bottom-sheet-content-without-icon":function(){var F;return!((F=W.shouldShowIcons)==null?0:F.call(W))}});
return _.u("bottom-sheet-layout",null,_.u(NGv,{contentWrapperId:"content-wrapper",isAnimating:function(){return T.isAnimating[0]()},
currentY:function(){return T.currentY[0]()},
maxHeightForContentWrapper:function(){return T.maxHeightForContentWrapper[0]()},
shouldShowIcons:W.shouldShowIcons,skipContentClick:W.skipContentClick,onScroll:function(){var F=document.getElementById("header-wrapper"),nm=document.getElementById("content-wrapper");if(F&&nm){var pm={};pm=(pm["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,pm["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,pm);F.className=nm.scrollTop>1?_.BF(pm):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:n34,contentWrapperEl:function(F){P(F);requestAnimationFrame(function(){x(F)})},
header:function(){return _.u(TG6,{touchstart:O,touchmove:B,touchend:Y,title:W.headerTitle,subtitle:W.headerSubtitle,headerId:"header-wrapper",headerOverride:W.headerFn,hasHeaderOverride:W.hasHeaderFn,actionHeader:W.headerActionHeader,hasActionHeader:W.hasHeaderActionHeader})},
footer:function(){return _.u(lKM,{footerButtonType:W.footerButtonType,leadingLabel:W.footerLeadingLabel,trailingLabel:W.footerTrailingLabel,primaryButton:W.footerPrimaryButton,hasPrimaryButton:W.hasFooterPrimaryButton,secondaryButton:W.footerSecondaryButton,hasSecondaryButton:W.hasFooterSecondaryButton,footerOverride:W.footerFn,hasFooterOverride:W.hasFooterFn})},
body:function(){return _.u(_.V,{cond:W.hasContentFn,then:function(){var F;return _.u("div",{class:Io},(F=W.contentFn)==null?void 0:F.call(W))}})}}))},"Lg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var ram=_.kl(function(W){var P=_.FY().resolve(_.Vz),x=_.yB(function(){return void P.closeSheet()});
return _.u("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":x},_.u(_.V,{cond:function(){return!!W.header},
then:function(){return _.u("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},W.header())}}),_.u(_.V,{cond:function(){return!!W.content},
then:function(){return _.u("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},W.content())}}),_.u(_.V,{cond:function(){return!!W.footer},
then:function(){return _.u("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},W.footer())}}))},"Mg");
ram.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var icM=_.kl(function(W){W=W.data;var P=_.fa(function(I){if(_.p("web_focus_first_element_sheet"))return I.addEventListener("focus",function(){lwy(I)}),function(){I.removeEventListener("focus",function(){lwy(I)})}}),x={};
return _.u("yt-sheet-view-model",{class:_.O4("yt-sheet-view-model-wiz",(x["yt-sheet-view-model-wiz--contextual"]=!0,x["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.p("web_disable_backdrop_filter"),x)),el:P,tabindex:-1},_.u(_.V,{cond:W,then:function(I){return _.u(ram,{header:function(){return _.u(_.Ea,{data:function(){return I().header}},{panelHeaderViewModel:fKL})},
content:function(){return _.u(_.Ea,{data:function(){return I().content}},{listViewModel:function(O){return _.u(_.qpW,{data:O.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:DX4,miniAppScoreChallengeViewModel:MqQ})},
footer:function(){return _.u(_.Ea,{data:function(){return I().footer}},{panelFooterViewModel:_.bf})}})}}))},"Ng");
icM.idomCompat=!0;_.lq(icM,"yt-sheet-view-model",{props:{data:_.cv}});var Fo3=_.kl(function(W){var P=function(){var x;return(x=W.data().enableDebuggingFeatures)!=null?x:!1};
return _.u("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.u(_.sV,{each:function(){var x;return(x=W.data().stickers)!=null?x:[]}},function(x){return _.u(Rt6,{data:function(){return x},
debugMode:P})}))},"Og"),Rt6=_.kl(function(W){var P=_.bw(W,{debugMode:!1}).debugMode,x=_.a7(function(){var Z;
return(Z=W.data().region)==null?void 0:Z.w},0),I=_.a7(function(){var Z;
return(Z=W.data().region)==null?void 0:Z.h},0),O=_.a7(function(){var Z;
return(Z=W.data().region)==null?void 0:Z.x},0),B=_.a7(function(){var Z;
return(Z=W.data().region)==null?void 0:Z.y},0),Y=_.yB(function(){var Z=W.data().onTap;
Z&&_.D1(Z)}),K={};
return _.u("div",{class:_.O4("ytStoriesStickerLayerViewModelSticker",(K.ytStoriesStickerLayerViewModelDebugMode=P,K)),style:_.oP({width:function(){return 100*x()+"%"},
height:function(){return 100*I()+"%"},
left:function(){return 100*O()+"%"},
top:function(){return 100*B()+"%"},
"flex-direction":function(){return yqB(W.data().flexDirection)},
"justify-content":function(){return K7L(W.data().justifyContent)},
"align-items":function(){return ZLM(W.data().alignItems)}}),
"on:click":Y},_.u(_.Ea,{data:function(){return W.data().button||W.data().toggleButton}},{buttonViewModel:function(Z){return _.u(_.cq,{data:Z.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(Z){return _.u(_.MI,{data:Z.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Pg");var LoO=_.kl(function(W){var P=function(){return W.data()},x=_.a7(function(){return P().backgroundColor},0),I=_.a7(function(){return P().actionButtons},[]),O=_.a7(function(){return P().stickerLayer},{}),B={},Y=function(){var Z,d;
return{animationRef:B,animationConfig:{autoplay:!1,loop:!1,path:(d=(Z=P().foregroundAnimation)==null?void 0:Z.url)!=null?d:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){W.navigateToNextItemOnLottieComplete()}}}},K=function(){var Z,d,v,m,t,C,z,D;
return{animationConfig:{autoplay:(C=(Z=P().backgroundAnimation)==null?void 0:(d=Z.settings)==null?void 0:d.autoplay)!=null?C:!1,loop:(z=(v=P().backgroundAnimation)==null?void 0:(m=v.settings)==null?void 0:m.loop)!=null?z:!1,path:(D=(t=P().backgroundAnimation)==null?void 0:t.url)!=null?D:"",name:"stories_item_background_animation"}}};
_.jj(function(){if(W.isVisible()){var Z;(Z=B.lottieEl)==null||Z.play()}else{var d;(d=B.lottieEl)==null||d.stop()}});
return _.u("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.oP({"background-color":function(){return _.Qy(x())+";"}})},_.u("div",{class:"ytStoriesItemViewModelAssetContent"},_.u(_.V,{cond:function(){return!!P().backgroundAnimation},
then:function(){return _.u(_.Jd,{data:K,animationName:function(){return K().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.u(_.V,{cond:function(){return!!P().backgroundImage},
then:function(){return _.u(_.bq,{data:function(){return P().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.u(_.V,{cond:function(){return!!P().foregroundAnimation},
then:function(){return _.u(_.Jd,{data:Y,animationName:function(){return Y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.u(_.V,{cond:function(){return!!P().foregroundImage},
then:function(){return _.u(_.bq,{data:function(){return P().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.u("div",{class:"ytStoriesItemViewModelTopShadow"}),_.u(_.Ea,{data:function(){return O()}},{storiesStickerLayerViewModel:Fo3})),_.u("div",{class:"ytStoriesItemViewModelBottomShadow"},_.u("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.yB(W.pauseAutoNavigation)},_.u(_.sV,{each:I},function(Z){return _.u(qHB,{data:function(){return Z}})}))))},"Qg"),qHB=_.kl(function(W){var P={};
return _.u("div",{class:_.O4("ytStoriesItemViewModelActionButton",(P.ytStoriesItemViewModelStretchedActionButton=function(){return W.data().size==="STORIES_BUTTON_SIZE_STRETCH"},P))},_.u(_.Ea,{data:function(){return W.data().button}},{buttonViewModel:function(x){return _.u(_.cq,{data:x.data,
className:"ytStoriesItemViewModelButton"})}}))},"Rg");_.lq(_.kl(function(W){var P=_.n(_.Zh(function(){var k;return(k=W.data().startIndex)!=null?k:0})),x=P.next().value,I=P.next().value;
P=_.n(_.YV(!1,void 0,"klmjc"));var O=P.next().value,B=P.next().value,Y=function(){var k;return(k=W.data().storyItems)!=null?k:[]},K=function(){return W.data().dismissButton},Z=function(){var k;
return _.Q((k=_.Q(K(),_.gp))==null?void 0:k.onTap,_.Ct)},d=_.fa(),v,m=function(){var k;
(k=v)==null||k.cancel();v=t(x()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});v.onfinish=function(){t(x()).style.width="100%";var T=_.Q(Y()[x()],Iyv),N,Io;T!=null&&T.foregroundAnimation&&((T==null?0:(N=T.foregroundAnimation)==null?0:N.url)||(T==null?0:(Io=T.foregroundAnimation)==null?0:Io.payload))||(x()!==Y().length-1?(I(x()+1),m()):Z()&&_.zm(Z()))}},t=function(k){return d.value.children[k].children[0]},C=function(){for(var k=0;k<x();k++)t(k).style.width="100%"};
P=_.yB(function(){O()?B(!1):(x()===Y().length-1&&Z()&&_.zm(Z()),t(x()).style.width="100%",x()!==Y().length-1&&(I(x()+1),m()))});
var z=_.yB(function(){O()?B(!1):(t(x()).style.width="0%",x()!==0?I(x()-1):I(x()),m())}),D=function(){B(!0)},w=function(){t(x()).style.width="100%";
x()!==Y().length-1?(I(x()+1),m()):Z()&&_.zm(Z())},a=_.yB(function(){var k;
(k=v)==null||k.pause()});
_.jj(function(){if(O()){var k;(k=v)==null||k.pause()}else{var T;(T=v)==null||T.play()}});
_.jj(function(){C();x()===W.data().startIndex&&m()});
_.AQ(function(){C();m()});
return _.u("yt-stories-viewer-view-model",{class:_.O4("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.u("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.u("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":z,"on:mousedown":a}),_.u("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":P,"on:mousedown":a})),_.u(_.Ea,{data:Y},{storiesItemViewModel:function(k,T){var N=k.data;return _.u(_.V,{cond:function(){return Math.abs(T()-
x())<=1},
then:function(){var Io={};return _.u("div",{class:_.O4("ytStoriesViewerViewModelStoryItem",(Io.ytStoriesViewerViewModelHiddenStoryItem=function(){return T()!==x()},Io))},_.u(LoO,{data:N,
pauseAutoNavigation:D,navigateToNextItemOnLottieComplete:w,isVisible:function(){return T()===x()}}))}})}}),_.u("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:d},_.u(_.sV,{each:Y},function(){return _.u("div",{class:"ytStoriesViewerViewModelProgressBar"},_.u("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.u("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.u(_.Ea,{data:K},{buttonViewModel:_.cq})))},"Sg"),"yt-stories-viewer-view-model",{props:{data:_.cv}});_.lq(_.kl(function(W){var P=W.data;var x=_.fa(),I=[];return _.u("yt-gen-ai-feedback-form-view-model",{el:x,class:"ytGenAiFeedbackFormViewModelHost"},_.u(_.mQ,{text:function(){return P().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.u("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.u(_.Ea,{data:function(){return P().feedbackChips}},{toggleButtonViewModel:function(O){var B=O.data;
return _.u(_.MI,{data:B,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Y){var K=B();K=_.Q(K,_.DZ);K=_.Q(K==null?void 0:K.defaultButtonViewModel,_.gp).trackingParams;Y?I.push(K):(Y=I.indexOf(K),Y>-1&&I.splice(Y,1))}})}})),_.u(_.mQ,{text:function(){return P().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.u("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.u(_.Ea,{data:function(){return P().submitButton}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){o3d(x.value,I,P().uniqueId)}})}}),_.u(_.Ea,{data:function(){return P().moreFeedbackButton}},{buttonViewModel:function(O){return _.u(_.cq,{data:O.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Tg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.cv},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var a4=function(){return _.b.apply(this,arguments)||this};
_.A(a4,_.b);a4.prototype.created=function(){Un6(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(jM6);var W=_.FY().resolve(_.aAv);W&&(W.container=this.ytPopupContainerBehavior);if(W=_.FY().resolve(_.Vz))W.container=this.ytPopupContainerBehavior;if(W=_.FY().resolve(_.tf)){var P=this.ytPopupContainerBehavior;W.containerWasInjected?_.ge(Error("bj")):W.container=P}};
a4.prototype.ensurePopupBelowPlayer=function(W,P){var x=_.FY().resolve(_.Rl(_.rL));if(!x||!x.isOnWatch()||!_.RP())return!1;x=x.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.S9().height>x+this.getPopupHeight(W,P)?(W.style.top="auto",W.style.bottom="0px"):(W.style.top=x+"px",W.style.bottom="auto");return!0};
a4.prototype.getPopupHeight=function(W,P){P&&(W.cachedPopupHeight=0);if(!W.cachedPopupHeight){P=0;var x=W.clientHeight,I=window.getComputedStyle(W);P+=parseInt(I.marginTop,10);P+=parseInt(I.marginBottom,10);W.cachedPopupHeight=x+P}return W.cachedPopupHeight};
a4.prototype.getElement=function(W){return document.createElement(W)};
_.f([_.h(NB6.YtPopupContainerBehavior),_.l("design:type",Object)],a4.prototype,"ytPopupContainerBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],a4.prototype,"ytComponentBehavior",void 0);a4=_.f([_.U({disableElementRegistration:!0,is:"ytd-popup-container"})],a4);
_.X(a4,"ytd-popup-container",function(){if(hO2!==void 0)return hO2;var W=document.createElement("template");_.G(W,"\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");W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);return hO2=W},{mode:1});var Wq3;var PU9={};PU9.YtLogYpcFlowCommandsBehavior=[_.rb.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(W){_.Q(W,pA2)&&(W=_.Q(W,pA2))&&(W.serializedTransactionFlowLoggingParams?_.$WA(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.DD("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.DD("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=W.serializedYpcPauseFlowLoggingParams)&&
_.DD("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams?(W=W.serializedYpcRefundFlowLoggingParams)&&CsG("YPC_EVENT_TYPE_START",W):W.serializedYpcDeactivateFlowLoggingParams?(W=W.serializedYpcDeactivateFlowLoggingParams)&&_.DD("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",W):W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(W=W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.DD("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",W))},
handleLogYpcFlowDismiss_:function(W){_.Q(W,tOy)&&(W=_.Q(W,tOy),W.serializedTransactionFlowLoggingParams?_.wbR(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.DD("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.DD("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=
W.serializedYpcPauseFlowLoggingParams)&&_.DD("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams&&(W=W.serializedYpcRefundFlowLoggingParams)&&CsG("YPC_EVENT_TYPE_CANCEL",W))}}];var xs6={};xs6.YtCancelRecurrenceBehavior=[_.gb.YtComponentBehavior,_.e4c,{attached:function(){var W=this;AFy(this,function(P,x){return W.ypcCancelRecurrenceHandler(P,x)})},
ypcCancelRecurrenceHandler:function(W,P){var x=this;if(!P||!P.ypcCancelRecurrenceEndpoint)return!1;if(!P.ypcCancelRecurrenceEndpoint.params)return _.hQ(Error("ul")),!0;_.Fj(this.hostElement);var I=_.HF.instance,O=_.FY().resolve(_.Rl(_.v5));I&&_.ey(I,P)?_.cF(I,P).then(function(B){x.ypcCancelRecurrenceSuccess_(W,P,{data:B})},function(B){x.ypcCancelRecurrenceFailure_(W,P,B)}).thenCatch(function(){_.hQ(Error("vl"))}):O?O.requestDataForServiceEndpoint(P).then(function(B){x.ypcCancelRecurrenceSuccess_(W,
P,B)},function(B){x.ypcCancelRecurrenceFailure_(W,P,B)}).thenCatch(function(){_.hQ(Error("vl"))}):_.hQ(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(W,P,x){_.qz(this.hostElement);x.data||(x={data:x});x.data&&x.data.actions&&_.OL(this.hostElement,x.data.actions,this.hostElement);x.data.messageRenderer?zU6(P.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(P=P.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.DD("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",P);_.Lf(W,"yt-service-request-completed",x)},
ypcCancelRecurrenceFailure_:function(W,P,x){_.qz(this.hostElement);zU6(P.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Lf(W,"yt-service-request-error",{error:x,params:[W,P]})}}];var IOv=function(W,P){_.Wd.call(this,P)};
_.A(IOv,RWM);var OIf={};OIf.YtCompleteTransactionBehavior=[_.gb.YtComponentBehavior,_.e4c,{attached:function(){var W=this;AFy(this,function(P,x){return W.ypcCompleteTransactionHandler(P,x)})},
completeTransaction:function(W,P){var x=this;P={payments_payload:window.btoa(P.integratorData),buybucket_params:W.data.buybucketParams,offer_params:W.data.offerParams};var I=_.FY().resolve(_.v5),O=W.data.completeTransactionEndpoint,B=this.get("ypcCompleteTransactionEndpoint.actions",O);B&&_.OL(this.hostElement,B,this.hostElement);return(B=_.HF.instance)&&_.ey(B,O)?_.cF(B,O,P).then(function(Y){return!Y||(Y==null?0:Y.error)?(Y=x.get("data.serializedTransactionFlowLoggingParams",W),_.s2(new P$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Y))):{data:Y}}).then(function(Y){return x.handleCompleteTransactionSuccess_(Y,W)},function(){return x.handleCompleteTransactionFailure_(W)}):I.requestDataForServiceEndpoint(O,P).then(function(Y){return x.handleCompleteTransactionSuccess_(Y,W)},function(){return x.handleCompleteTransactionFailure_(W)})},
handleCompleteTransactionSuccess_:function(W,P){W.data||(W={data:W});if(W.data.messageRenderer)return _.s2(new IOv(W.data.messageRenderer));if(W.data.trackingParams){var x=_.E_(),I=_.G7();x&&I&&_.hn(x,I,_.ox(W.data.trackingParams))}P=this.get("data.serializedTransactionFlowLoggingParams",P);Ayy(P);return _.Jn(W)},
handleCompleteTransactionFailure_:function(W){W=this.get("data.serializedTransactionFlowLoggingParams",W);_.H5("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W);return _.s2(new P$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W))},
ypcCompleteTransactionHandler:function(W,P){var x=this;if(!P.ypcCompleteTransactionEndpoint)return!1;if(!P.ypcCompleteTransactionEndpoint.transactionParams)return _.hQ(Error("xl")),!0;P.ypcCompleteTransactionEndpoint&&P.ypcCompleteTransactionEndpoint.gtmData&&_.s3(P.ypcCompleteTransactionEndpoint.gtmData);var I=_.FY().resolve(_.Rl(_.v5));if(I){_.Fj(this.hostElement);var O=_.HF.instance;O&&_.ey(O,P)?_.cF(O,P).then(function(B){return!B||(B==null?0:B.error)?(B=x.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
P),_.s2(new P$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",B))):{data:B}}).then(function(B){_.Lf(W,"yt-service-request-completed");
x.ypcCompleteTransactionSuccess_(P,B)},function(){return x.ypcCompleteTransactionFailure_(P)}):I.requestDataForServiceEndpoint(P).then(function(B){_.Lf(W,"yt-service-request-completed");
x.ypcCompleteTransactionSuccess_(P,B)},function(){return x.ypcCompleteTransactionFailure_(P)})}return!0},
ypcCompleteTransactionSuccess_:function(W,P){_.qz(this.hostElement);P.data||(P={data:P});_.W7(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);P.data.messageRenderer||P.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(W):(_.s3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",W));P.data.actions&&(W=bKy(P.data.actions),P=kZf(P.data.actions),W.length&&_.Iu(this.hostElement,
W),P.length&&_.OL(this.hostElement,P,this.hostElement))},
ypcCompleteTransactionFailure_:function(W){_.qz(this.hostElement);_.W7(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",W,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(W,P,x){if(P=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",P))P={serializedTransactionFlowLoggingParams:P},x&&(P.errorType=x),_.Ay(W,P),_.z$()}}];var JG3={};JG3.YtEndpointHandlerWithYpcBehavior=[_.e4c,_.rb.YtActionHandlerBehavior,[{openWalletDialog:function(W,P,x,I,O,B,Y){var K=this,Z=_.aP();P=P.replace(/-/g,"+").replace(/_/g,"/");var d=_.SI().get("hl");_.KbU(_.yV(_.e9),P,Z.resolve,O,function(v){B&&B();Z.reject(v)},d,function(v){return K.onServerBackendAnalyticEvent_(W,x,v)},this.onDialogClose_.bind(this),I,Y);
return Z.promise},
openFixFlowDialog:function(W,P,x,I){W=W.replace(/-/g,"+").replace(/_/g,"/");_.yV(_.e9).openFixFlowDialog(W,P,x,I)},
onDialogClose_:function(){_.W7(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(W,P,x){_.Lf(W,"yt-commerce-action-init-done");P&&_.Iu(this.hostElement,[P,{backend_analytics:x}])}}],
_.xX.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(W,P){W=this.get("data.nativeFlowEndpoint",P);P=this.get("data.fallbackEndpoint",P);W?_.Iu(this.hostElement,[W]):P&&_.Lf(this.hostElement,"yt-navigate",{endpoint:P})}}],
xs6.YtCancelRecurrenceBehavior,OIf.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 W=this;AFy(this,function(P,x,I){return W.handleYPCEndpoint(P,x,I)});
this.ypcRegisterActionMapJobId_=_.VE(_.Gr,function(){W.registerActionMap(W.buyFlowActionMap_)})},
detached:function(){var W=this;_.Gr.cancelJob(this.ypcRegisterActionMapJobId_);_.VE(_.Gr,function(){W.unregisterActionMap(W.buyFlowActionMap_)})},
handleYPCEndpoint:function(W,P,x){var I=P.ypcGetCartEndpoint;if(I){_.QY("commerce_transaction");var O=I.gtmId;O&&_.db(O);(I=I.gtmData)&&_.s3(I)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",P)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(W,P),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",P)!=null?(this.handleYPCFixInstrumentEndpoint_(W,P),!0):P.ypcPauseSubscriptionCommand?(p5v(this.hostElement,W,P,x),
!0):P.ypcResumeSubscriptionCommand?(CSf(this.hostElement,W,P),!0):P.getPaymentInstrumentsParamsCommand?(mam(this.hostElement,W,P),!0):P.ypcHandleTransactionEndpoint?(sf4(this.hostElement,W,P,x),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(W,P){var x=this;_.CK("ttcr",void 0,"commerce_transaction");P=P.ypcGetCartEndpoint;var I=P.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,O=I.encryptedPurchaseParams,B=I.serializedTransactionFlowLoggingParams,Y=I.serializedPaymentsClientParams,K=this.createGetCartResponseFromParams_(I,P.offerParams,B);this.changeButtonState(W,!0);_.CA(this.openWalletDialog(W,O,I.ypcLogWalletAnalyticDataEndpoint,B,function(){x.changeButtonState(W,!1)},function(){x.changeButtonState(W,
!1)},Y).then(function(Z){return x.handleBuyFlowCompleteCallback_(W,K,Z)},function(){return x.handleOnLoadError(K)}).then(function(Z){return void x.handlePostPurchaseSuccess_(W,K,Z)},function(Z){return void x.handlePostPurchaseError_(Z)}),function(){x.changeButtonState(W,!1);
W instanceof Element&&_.Lf(W,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(W,P,x){var I=W.completeTransactionEndpoint,O=W.handleTransactionEndpoint;P={data:{offerParams:window.btoa(P),serializedTransactionFlowLoggingParams:x}};O?P.data.handleTransactionEndpoint=O:P.data.completeTransactionEndpoint=I;W.onCartDismissCommand&&(P.data.onCartDismissCommand=W.onCartDismissCommand);return P},
onGetCartServiceRequestCompleted_:function(W,P){var x=this,I=W.target;if(P&&P.data&&P.data.messageRenderer)_.qz(this.hostElement),this.handleMessageRenderer_(P.data.messageRenderer),this.changeButtonState(I,!1);else{var O=this.get("data.encryptedPurchaseParams",P),B=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",P),Y=this.get("data.ypcLogWalletAnalyticDataEndpoint",P),K=this.get("data.serializedPaymentsClientParams",P),Z=this.getLoggingParams_(P);if(Z||O||B)W.stopPropagation(),_.CK("ttcr",
void 0,"commerce_transaction"),O||_.qz(this.hostElement),this.changeButtonState(I,!1),B?_.W7(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.$$("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:B}}},this]):O&&(this.changeButtonState(I,!0),W=null,W=this.openWalletDialog(I,O,Y,Z,function(){_.qz(x.hostElement);x.changeButtonState(I,!1)},function(){_.qz(x.hostElement);
x.changeButtonState(I,!1)},K),_.CA(W.then(function(d){return x.handleBuyFlowCompleteCallback_(I,P,d)},function(){return x.handleOnLoadError(P)}).then(function(d){return x.handlePostPurchaseSuccess_(I,P,d)},function(d){return x.handlePostPurchaseError_(d)}),function(){x.changeButtonState(I,!1);
_.Lf(I,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(W,P){P&&P.endpoint&&P.endpoint.ypcGetCartEndpoint&&!P.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",P.endpoint.ypcGetCartEndpoint)&&_.OL(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",P.endpoint.ypcGetCartEndpoint)],W.target),_.Fj(this.hostElement),this.changeButtonState(W.target,!0))},
onServiceRequestError_:function(W,P){if(P&&P.params&&P.params.length){P=_.n(P.params);for(var x=P.next();!x.done;x=P.next())if((x=x.value)&&x.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",x.ypcGetCartEndpoint)&&_.OL(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",x.ypcGetCartEndpoint)],W.target);_.qz(this.hostElement);this.changeButtonState(W.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(W,P,x){var I=x.integratorData;return I==null||I===""||x.error!=null?(I=this.getLoggingParams_(P),String(x.error)==="-1"?(P.data.onCartDismissCommand&&_.OL(this.hostElement,[P.data.onCartDismissCommand],W),_.s2(new P$("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",I,!0))):_.s2(new P$("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",I))):P.data.handleTransactionEndpoint?v39(this.hostElement,P.data.handleTransactionEndpoint,{payments_payload:I,funds_guarantee_callback_client_data:x.integratorClientCallbackData}):
this.completeTransaction(P,x)},
handlePostPurchaseSuccess_:function(W,P,x){P=x.data;var I=!1,O,B;if(P&&((O=P.command)==null?0:(B=O.commandExecutorCommand)==null?0:B.commands)){var Y,K;O=(Y=P.command)==null?void 0:(K=Y.commandExecutorCommand)==null?void 0:K.commands;for(Y=0;Y<O.length;Y++)if(_.Q(O[Y],_.$G3)){I=!0;break}}I||(P&&P.gtmDatas&&P.gtmDatas.length?_.s3(P.gtmDatas[0]):_.s3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));x.data&&x.data.actions&&(P=bKy(x.data.actions),x=kZf(x.data.actions),P.length&&
_.Iu(this.hostElement,P),x.length&&_.OL(this.hostElement,x,W))},
handlePostPurchaseError_:function(W){W&&W.payload&&W.payload.isUserDismiss||_.G$(Error("zl"))},
handleOnLoadError:function(W){W=this.getLoggingParams_(W);return _.s2(new P$("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W))},
getLoggingParams_:function(W){return this.get("data.serializedTransactionFlowLoggingParams",W)},
handleMessageRenderer_:function(W){var P=_.go(W,"renderer"),x=_.$$("openPopupConfig");P==="confirmDialogRenderer"&&x&&_.W7(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:x.popupTypeMap[P],popup:W}},this])},
handleYPCFixInstrumentEndpoint_:function(W,P){var x=this,I=P.ypcFixInstrumentEndpoint;P=I.encryptedFixInstrumentParameters;this.logFixFopEvent_(I,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(W,!0);this.openFixFlowDialog(P,function(O,B){x.onFixFlowCompleteCallback_(I,O,B)},function(){return x.changeButtonState(W,!1)},function(){x.changeButtonState(W,!1);
x.logFixFopEvent_(I,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(W,P,x){var I=_.eL("payments.business.integration.scenario.FixInstrument");if(P==I.IntegratorCallbackType.ON_COMPLETE){P="FIX_FOP_EVENT_TYPE_CANCEL";var O=null;x.error!=null?x.error!=I.OnCompleteCallbackError.USER_CANCELLED&&(_.OL(this.hostElement,[W.errorAction],this.hostElement),P="FIX_FOP_EVENT_TYPE_FAILURE",O="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.OL(this.hostElement,[W.successAction],this.hostElement),P="FIX_FOP_EVENT_TYPE_SUCCESS");_.OL(this.hostElement,[W.onFinishAction],
this.hostElement);this.logFixFopEvent_(W,P,O)}},
logFixFopEvent_:function(W,P,x){(W=W.serializedFixFopLoggingParams)?(P={eventType:P,serializedFixFopLoggingParams:W},x!=null&&(P.errorType=x),_.Ay("fixFopFlow",P),_.z$()):_.G$(Error("Al"))},
changeButtonState:function(W,P){_.p("enable_ypc_spinners")&&W&&(W.is==="yt-button-renderer"||W.is==="ytd-button-renderer")&&(W.disabled=P)}}];var BaL=function(W){this.JSC$28630_clientRoot=W;this.feedbackCollectorActionMap={"yt-help-dialog-requested":zkm,"yt-feedback-dialog-requested":AqB,"yt-signal-action-help":G1O,"yt-signal-action-send-feedback":E32,"yt-send-feedback-action":DaM,"yt-user-feedback-endpoint":M9d};_.kM(_.bs.getInstance(),this.feedbackCollectorActionMap,this.JSC$28630_clientRoot)},nqQ;var YIB=function(W){this.JSC$28635_clientRoot=W;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":$aM.bind(null,this.JSC$28635_clientRoot),"yt-signal-action-delete-all-downloads":hk4,"yt-signal-action-delete-download":HLv,"yt-signal-action-delete-playlist-download":cq3,"yt-signal-action-install-pwa":fzG,"yt-signal-action-refresh-downloads":Ua6,"yt-offline-video-endpoint":lzd,"yt-offline-playlist-endpoint":rqy,"yt-update-local-app-setting-command":Rky,"yt-offline-orchestration-action-command":qo4,
"yt-signal-action-undo-delete-download":bLO,"yt-local-watch-history-command":Pw3};_.kM(_.bs.getInstance(),this.downloadManagerActionMap,this.JSC$28635_clientRoot);_.Ma.instance=new _.Ma},yGG;var bT=function(){var W=_.b.apply(this,arguments)||this;W.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_"};W.remoteApi_=null;return W};
_.A(bT,_.b);_.J=bT.prototype;
_.J.ready=function(){_.p("polymer_enable_mdx")&&(jsy({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.p("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.p("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.p("enable_cast_short_lived_lounge_token")}),_.IR("yt-remote-connection-change",this.handleConnectionChange_,this),_.IR("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=g99())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.J.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.J.handleConnectionChange_=function(W){(this.mdxConnected=W)?(W=Ae2(),!W&&CBO()&&Anf()&&(W={key:"cast-selector-receiver",name:Anf()}),W=W.name):W=null;this.receiverName=W;_.TD(this.remoteApi_);(this.remoteApi_=g99())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.J.handleReceiverAvailabilityChange_=function(){var W=Cc6();CBO()&&_.ye("yt-remote-cast-available")&&W.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=W.length>0};
_.J.handleRemoteQueueChange_=function(){var W=this.currentVideoId_,P=this.currentListId_,x=ni(this.remoteApi_);this.currentVideoId_=x.videoId;this.currentListId_=x.listId;this.currentVideoId_&&_.W7(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.p("polymer_enable_mdx_queue")?this.currentListId_:null,W,P])};
_.J.handleAddToQueueAction_=function(W){W=_.Q(W,OwM);this.remoteApi_&&(W.videoId?this.remoteApi_.addVideo(W.videoId):W.playlistId&&this.remoteApi_.addPlaylist(W.playlistId))};
_.J.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.J.handleInsertInQueueAction_=function(W){W=_.Q(W,Jcd);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$17474_insertVideo(W.videoId)};
_.J.handleRemoveFromQueueAction_=function(W){W=_.Q(W,B66);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$17474_removeVideo(W.videoId)};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],bT.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c(),_.l("design:type",Object)],bT.prototype,"appId",void 0);_.f([_.c(),_.l("design:type",Boolean)],bT.prototype,"mdxConnected",void 0);_.f([_.c(),_.l("design:type",Boolean)],bT.prototype,"receiverAvailable",void 0);_.f([_.c(),_.l("design:type",Object)],bT.prototype,"receiverName",void 0);_.f([_.c(),_.l("design:type",Object)],bT.prototype,"currentVideoId_",void 0);
_.f([_.c(),_.l("design:type",Object)],bT.prototype,"currentListId_",void 0);bT=_.f([_.jd({is:"yt-mdx-manager",disableElementRegistration:!0})],bT);_.X(bT,"yt-mdx-manager",void 0,{mode:2});var KqM;var ZIy;var kh=function(){var W=_.b.apply(this,arguments)||this;W.APP_IDS={ytr:3,ytm:5};W.JSC$18712_timeoutId_=0;W.actionMap={"yt-open-create-family-dialog":"open"};return W};
_.A(kh,_.b);_.J=kh.prototype;_.J.created=function(){Un6(2200)};
_.J.detached=function(){this.observer_&&this.observer_.disconnect()};
_.J.open=function(W,P){var x=this,I=W.serializedYpcFamilyCreateLoggingParams;this.JSC$18712_timeoutId_=setTimeout(this.abort_.bind(this,W.postFlowErrorEndpoint,I),3E4);P&&(this.onReadyCallback_=P);var O=_.g(this.hostElement).querySelector("#unicorn-iframe");I&&I&&QRQ("ypcFamilyCreateFlowStarted",I);_.ttU("family_creation",function(){var B=_.eL("gapi.family_creation.render");_.eL("gapi.config.update")("iframes/family_creation/url",x.getFamilyCreationUrlWithUnicornParams_());var Y=3;W.appId&&W.appId in
x.APP_IDS&&(Y=x.APP_IDS[W.appId]);Y={authUser:_.$$("SESSION_INDEX")||0,clientId:Y,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.$$("HL"),initialflow:[4,5,6,7],m:x.isMobile?1:0,onFlowComplete:x.onUnicornFlowComplete_.bind(x,W.postFlowSuccessEndpoint,I),onError:x.onUnicornFlowError_.bind(x,W.postFlowErrorEndpoint,I),onReady:x.onUnicornFlowReady_.bind(x,W.referencePcidParams)};B(O,Y)})};
_.J.close=function(){_.g(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.J.onUnicornFlowComplete_=function(W,P){this.close();P&&P&&QRQ("ypcFamilyCreateFlowSucceeded",P);_.Lf(this.hostElement,"yt-navigate",{endpoint:W})};
_.J.onUnicornFlowError_=function(W,P){this.close();P&&QRQ("ypcFamilyCreateFlowCancelled",P);_.Lf(this.hostElement,"yt-navigate",{endpoint:W})};
_.J.onUnicornFlowReady_=function(W){var P=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();W&&_.eL("gapi.family_creation.setConfig")(0,W);this.observer_=new MutationObserver(function(){_.g(P.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.g(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.g(this.hostElement).querySelector("#dialog").open()};
_.J.getFamilyCreationUrlWithUnicornParams_=function(){return _.$$("YTR_FAMILY_CREATION_URL")};
_.J.getCurrentUrl_=function(){return document.location.href};
_.J.abort_=function(W,P){this.clearTimeout_();this.onUnicornFlowError_(W,P)};
_.J.clearTimeout_=function(){clearTimeout(this.JSC$18712_timeoutId_)};
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],kh.prototype,"ytActionHandlerBehavior",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],kh.prototype,"isMobile",void 0);_.f([_.c(),_.l("design:type",Object)],kh.prototype,"onReadyCallback_",void 0);_.f([_.c(),_.l("design:type",Object)],kh.prototype,"observer_",void 0);kh=_.f([_.jd({is:"yt-create-family-dialog",disableElementRegistration:!0})],kh);
_.X(kh,"yt-create-family-dialog",function(){if(ZIy===void 0){var W=document.createElement("template");_.G(W,'\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');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);var P=W.content,x=P.insertBefore;KqM===void 0&&(KqM=document.createElement("template"));var I=KqM;x.call(P,I.content.cloneNode(!0),W.content.firstChild);ZIy=W}W=ZIy;return W},{mode:2});var oqB;var SIy;var Up=function(){var W=_.b.apply(this,arguments)||this;W.STEP=1;W.BLOCK_ON=80;W.MIN_PROGESS=0;W.MAX_PROGESS=100;return W};
_.A(Up,_.b);_.J=Up.prototype;_.J.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.J.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));_.FY().addProvider({provide:JJB,useValue:this})};
_.J.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.J.finish=function(){var W=this;this.progress=this.MAX_PROGESS;xnf(function(){W.progress==W.MAX_PROGESS&&(W.hostElement.hidden=!0)})};
_.J.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.N1.Object.defineProperties(Up.prototype,{progress:{configurable:!0,enumerable:!0,set:function(W){this.progress_=W;var P="scaleX("+W/this.MAX_PROGESS+")",x=_.g(this.hostElement).querySelector("#progress").style;x.transform=P;x.webkitTransform=P;this.hostElement.setAttribute("aria-valuenow",String(W))},
get:function(){return this.progress_}}});
_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Up.prototype,"ytComponentBehavior",void 0);Up=_.f([_.jd({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Up);
_.X(Up,"yt-page-navigation-progress",function(){if(SIy===void 0){var W=document.createElement("template");_.G(W,'\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');W.content.insertBefore(_.q().content.cloneNode(!0),
W.content.firstChild);var P=W.content,x=P.insertBefore;oqB===void 0&&(oqB=document.createElement("template"));var I=oqB;x.call(P,I.content.cloneNode(!0),W.content.firstChild);SIy=W}W=SIy;return W},{mode:2});var uT9={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"},dsf={"font-size":"12px","font-style":"italic"},sAB={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.BYL=function(){return _.y(function(W){_.Kl(W)})};_.lq(_.kl(function(){var W=_.G4(_.wjx);return _.u("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var P;return(P=W())==null?void 0:P.announcement})},"Ug"),"yt-ephemeral-actions");var Cwm=new Map;var Iqf=function(W,P){var x=this;this.handleError=W;this.logEventInternal=P;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){x.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Iqf.prototype.logError=function(W){this.handleError(W)};
Iqf.prototype.logEvent=function(W,P){switch(W){case "IDB_DATA_CORRUPTED":_.p("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",P);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",P);break;case "IS_SUPPORTED_COMPLETED":_.p("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",P);break;case "QUOTA_EXCEEDED":vq2(this,P);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",P);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":W=Object.assign({},P,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",W)}};
var vq2=function(W,P){_.ZD.getInstance().estimate().then(function(x){x=Object.assign({},P,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:zom(x==null?void 0:x.usage),deviceStorageQuotaMbytes:zom(x==null?void 0:x.quota)});W.logEventInternal("idbQuotaExceeded",x)})};var Xg=function(){var W=_.b.apply(this,arguments)||this;W.tabGesturesIsActive=!1;W.deprecateFullerscreenUi=_.p("web_watch_fullerscreen_deprecation_ui");W.hasDelegation=!1;W.darkerDarkTheme=_.p("web_darker_dark_theme");W.isFrostedGlassInitialized=!1;W.frostedGlassExp=_.p("web_frosted_glass");W.mastheadHiddenFocusWithinKillswitch=_.p("web_masthead_hidden_focus_within_killswitch");W.ephemeralActionsEnabled=_.p("web_ephemeral_actions");W.scrollAtTop=!0;W.guideScrollTop=0;W.isTheaterModeSession=_.wo("START_IN_THEATER_MODE");
W.iMaxTheaterMode=_.p("web_watch_imax_theater_mode");W.isFullWindowSession=_.wo("START_IN_FULL_WINDOW_MODE");W.hasCreateFamilyDialog=!1;W.mastheadHeight=56;W.networkStatusManager=new _.bE;W.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"};W.dynamicActionMap={"yt-run-attestation-command":function(P){var x=_.sgc.instance,I=_.Q(P,_.P9z);return I?_.p("use_rta_manager_for_async")&&
UMv()?MSQ(x,I,P.clickTrackingParams):DgG(x,I,P.clickTrackingParams):_.s2(Error("li"))}};
W.isFrostedGlassDisabled=!1;W.isChannelOrPlaylistPage=!1;return W};
_.A(Xg,_.b);_.J=Xg.prototype;_.J.created=function(){var W=_.FY();_.p("kevlar_clear_duplicate_pref_cookie")&&_.VE(_.Gr,function(){var P=_.SB.get("PREF");P&&!/f\d=/.test(P)&&(P=_.Pi("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=P?"PREF=null;domain="+P+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.p("gzip_gel_with_worker")&&_.hpR();_.p("jspb_serialize_with_worker")&&SzQ();_.p("web_worker_availability_check")&&AEL();_.p("nwl_init_killswitch")||ZDQ().then(function(){_.Gr.addLowPriorityJob(MI3)});
this.pageManagerAttachedPromise=_.aP();this.ytdAppBehavior.loadDepsPromise=_.Qq([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.WO(this.onThrottledScroll,200,this);_.p("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);OD3();iEG=!!_.eL("ytappsettings.initialized");oU=_.eL("ytappsettings.previousValue");Oa2=_.eL("ytappsettings.previousSnapshotTime");iEG||(iEG=!0,JyL());cn4();aEv();_.MR("DEFERRED_DETACH",
_.p("kevlar_tuner_should_defer_detach"));_.MR("REUSE_COMPONENTS",!0);_.MR("STAMPER_STABLE_LIST",!0);_.MR("SCHEDULED_LAZY_LIST",!0);_.MR("openPopupConfig",pUf);_.MR("useClickHandler",!0);_.p("kevlar_shell_cleanup")&&_.Gr.addLowPriorityJob(T36.bind(this,_.xW.caches));_.wo("IS_SHELL_LOAD")&&_.jI({shellStartupDurationMs:Math.round((0,_.iA)()-_.v7())});Krd(this.networkStatusManager);_.p("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Iev(uT9)),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!",
Iev(dsf)),console.log("%cVisit http://go/join-youtube-web to apply today.",Iev(sAB)));_.O4G(W.resolve(_.nQ),1E3)};
_.J.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var W=QDO();W&&!_.p("external_fullscreen_killswitch")&&document.addEventListener(W,this.setFullscreen.bind(this));(W=window.matchMedia("(prefers-color-scheme: dark)"))&&W.addEventListener&&W.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.J.attached=function(){var W=this;_.HK().processSignal("ci");_.p("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.hA7?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.vX(_.kQU(),"SUCCESS");this.updateIconSet();_.Fu(this.guideInnerContent,!1);_.Bv().initVisibilityObserver();this.guideService.guideElement=this.guide;var P=document.createElement("ytd-miniplayer"),x=_.g(this.hostElement).querySelector("#content");
_.g(this.hostElement).insertBefore(P,x);_.HK().processSignal("ma");_.FY().resolve(_.kc).init(P);_.wo("IS_SHELL_LOAD")&&(x=document.createElement("ytd-network-status-banner"),_.g(this.hostElement).insertBefore(x,P));_.p("kevlar_right_click_on_lockups")&&_.Xs._onCaptureClick&&document.addEventListener("contextmenu",_.Xs._onCaptureClick.bind(_.Xs),!0);var I=function(){var O=_.f6("yt-page-navigation-progress");_.g(W.hostElement).appendChild(O)};
setTimeout(function(){_.HK().parkOrScheduleJob(I,0,"eocs",16)},0);
_.p("service_worker_push_enabled")&&_.VE(_.Gr,jRy);_.kM(_.bs.getInstance(),this.dynamicActionMap,this.hostElement);_.Lf(this.hostElement,"ytd-app-attached");_.HK().processSignal("aa");bDG(this.hostElement);_.lA("gapi.load",_.ttU);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.VE(_.Gr,
function(){var O=document.createElement("ytd-video-preview");_.g(_.g(W.hostElement).querySelector("#video-preview")).appendChild(O)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.VE(_.Gr,function(){nlB();W.registerViewTransitionTasks()});
if(_.Dz()&&this.isAppDarkTheme()!==_.Eo())this.onDarkModeToggledAction();else P=_.gT()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==P&&(_.p("enable_dark_theme_only_on_shorts")?_.G1(_.p("enable_dark_theme_only_on_shorts_control")?window.location.href:_.XY(window.location.href,{theme:"dark"})):_.ge(new _.mW("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(AJ9=new Cb2(this.hostElement)),yGG=new YIB(this.hostElement),nqQ=new BaL(this.hostElement),NyB=new fFL(this.hostElement)};
_.J.getThemeSettingsToLog=function(){var W=_.gT()==="USER_INTERFACE_THEME_DARK";W=_.Dz()?_.Eo()?"os-dark":"os-light":W?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:W,cookiesEnabled:_.dO()}};
_.J.detached=function(){_.qV(this.guideInnerContent);_.Gr.cancelJob(n8);n8=0;_.Gr.cancelJob(y8);y8=0;_.rqd(aq4);aq4.length=0;HD6=_.SNC=null;_.Bv().dispose();_.p("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.UA(_.bs.getInstance(),AJ9.playlistHandlerActionMap,AJ9.JSC$28331_clientRoot);_.UA(_.bs.getInstance(),yGG.downloadManagerActionMap,yGG.JSC$28635_clientRoot);_.UA(_.bs.getInstance(),nqQ.feedbackCollectorActionMap,nqQ.JSC$28630_clientRoot);
for(var W=_.n(NyB.eventListeners),P=W.next();!P.done;P=W.next()){var x=_.n(P.value);P=x.next().value;x=x.next().value;x=_.n(x);for(var I=x.next();!I.done;I=x.next()){var O=_.n(I.value);I=O.next().value;O=O.next().value;P.removeEventListener(I,O)}}_.UA(_.bs.getInstance(),NyB.autonavPauseActionMap,NyB.JSC$17659_clientRoot)};
_.J.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.SI().getFlag(186)};
_.J.computeIsInlinePreviewEnabled=function(W,P,x){return!x&&_.W9y({miniplayerIsActive:W,miniplayerPlaybackState:P})};
_.J.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.LK({type:"SET_FROSTED_GLASS_MODE",payload:!_.p("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"}))};
_.J.computeIsFrostedGlassDisabled=function(W,P,x,I){return W||P||x||I&&_.p("web_frosted_glass_disable_watch")};
_.J.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.p("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.J.computeIsHomePage=function(W,P){if(!W||P==null||!P.endpoint)return!1;var x;return((x=_.Q(P.endpoint,_.KL))==null?void 0:x.browseId)==="FEwhat_to_watch"};
_.J.updateIsChannelOrPlaylistPage=function(){if(_.p("web_frosted_glass")){var W,P,x=(P=(W=_.FY().resolve(_.Rl(_.rL)))==null?void 0:W.getCurrentPage())==null?void 0:P.pageSubtype;this.isChannelOrPlaylistPage=x?["channel","channels","playlist"].includes(x):!1}};
_.J.scheduleFrostedGlassInitialization=function(){var W=this;_.p("web_frosted_glass")&&_.HK().parkOrScheduleJob(function(){W.isFrostedGlassInitialized=!0},0,_.Md(["eocs",
"cr"]),300)};
_.J.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.EwA(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.LK({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.LK({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.J.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(ah4(!0))};
_.J.onYtSignalActionRequestPersistentStorage=function(){if(!_.p("request_persistent_storage_killswitch")){var W=_.FY().resolve(_.LR4);W.cachedPersistStatePromise||(W.cachedPersistStatePromise=IhO())}};
_.J.handleYtChannelCreationFormEndpoints=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.J.handleShowEngagementPanelEndpoint=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.J.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(ah4(!1))};
_.J.initIconDefs=function(W,P,x){var I=document.createElement("iron-iconset-svg");I.name=W;W=document.createElementNS("http://www.w3.org/2000/svg","svg");I.appendChild(W);W.appendChild(P);if(x)for(var O in x)I[O]=x[O];document.body.appendChild(I);return I};
_.J.onWindowResized=function(){_.W7(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var W=_.aWk.getInstance();W.documentWidth_=document.body.clientWidth;OtL(W)};
_.J.onWindowScrolled=function(){var W=_.FY().resolve(_.rL).getCurrentPage();if(W!=null&&W.getScrollTop){var P=this.ytdReduxBehavior,x=P.dispatch;W=W.getScrollTop()<=0;x.call(P,_.LK({type:"SET_SCROLL_AT_TOP",payload:W}))}};
_.J.guideIsVisibleButNotPersistentSelectorChanged=function(){var W=_.FY().resolve(_.rL).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=W.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"),
W.setScrollTop(this.guideScrollTop));_.P7(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.J.getCurrentPageScrollableElementType=function(){var W=_.FY().resolve(_.rL).getCurrentPage();if(W&&W.getPageScrollingElement())return W.getPageScrollingElement().nodeName};
_.J.observeGuideVisibility=function(){var W=_.aWk.getInstance(),P=this.miniGuideVisible;W.guidePersistentAndVisible_=this.guidePersistentAndVisible;W.miniGuideVisible_=P;OtL(W)};
_.J.handleEduDismissAction=function(W){W&&W.eduDismissAction&&(_.W7(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.wgd.getInstance(),_.ig.set(W.eduDismissAction.key+"-dismissed",!0))};
_.J.handleEduImpressionAction=function(W){if(W&&W.eduImpressionAction){var P=_.wgd.getInstance();W=W.eduImpressionAction.key;P.JSC$10807_eduDisplayedThisLoad_[_.$0A[W].setKey||W]=!0;_.ig.set(W+"-impression",parseInt(_.ig.get(W+"-impression")||0,10)+1)}};
_.J.onYtSignalActionConfirmMentionsEdu=function(){_.W7(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.qG.getInstance();_.Fz.set("edu-dismissed",!0)};
_.J.onYtSignalActionRecordMentionsEduImpression=function(){_.qG.getInstance();var W=_.Fz.set,P=parseInt(_.Fz.get("edu-impressions"),10);W.call(_.Fz,"edu-impressions",(isFinite(P)?P:0)+1)};
_.J.onYtPageManagerAttached=function(W){var P;((P=_.af(W))==null?void 0:P.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.J.onInvokeInstrumentManagerAction=function(W,P){DnQ(P,W)};
_.J.updateIconSet=function(){var W=this.hostElement.querySelector("#masthead");if(W){var P=_.rT(W),x=P.querySelector("g#yt-logo-updated");x&&(W=document.createElementNS("http://www.w3.org/2000/svg","defs"),W.appendChild(x.cloneNode(!0)),(P=P.querySelector("g#yt-logo-red-updated"))&&W.appendChild(P.cloneNode(!0)),this.initIconDefs("yt-logos-ext",W))}};
_.J.updateMastheadData=function(){var W=this,P,x,I,O,B;return _.y(function(Y){if(Y.nextAddress==1){P=W.data;x=W.hostElement.querySelector("#masthead");if(!x)return Y.return();_.Xm(W,function(){x.data=W.topbarData});
if(!W.get("response.topbar",P)||W.get("response.topbar.responseContext.maxAgeSeconds",P)===0)return Y.jumpTo(0);if(I=_.FY().resolve(_.Ub))return _.S(Y,I(),6);O=_.FY().resolve(_.Pw);return _.S(Y,O.put("service:topbar:fallback",new _.xw({innertubeResponse:W.get("response.topbar",P)})),0)}return(B=Y.yieldResult)?_.S(Y,B.put("service:topbar:fallback",new _.xw({innertubeResponse:W.get("response.topbar",P)})),0):Y.jumpTo(0)})};
_.J.computeTopbarData=function(W){if(!W)return null;var P;return this.isShortsPage&&this.topbarData&&!_.Q((P=W.response)==null?void 0:P.topbar,NK3)?this.topbarData:W.response&&"topbar"in W.response?_.Q(W.response.topbar,NK3)||null:null};
_.J.onSetTheaterModeEnabled=function(W,P){this.isTheaterModeSession=P.enabled;this.setTheaterModeStyles(P.enabled)};
_.J.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.J.onDarkModeToggledAction=function(){var W=_.YO(window.location.href);if(!_.jOm(W)){(W=!!_.UV(window.location.href).themeRefresh)&&_.ge(new _.mW("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!W){JyL();W={themeRefresh:1};var P=_.FY().resolve(_.rL);if(P.isOnWatch()){var x,I;P=((x=P.getPlayerFromWatch())==null?void 0:(I=x.getPlayer())==null?void 0:I.getCurrentTime())||0;P>=1&&(W.time_continue=Math.floor(P))}_.dO()||_.gT()!=="USER_INTERFACE_THEME_DARK"||(W.theme="dark");_.G1(_.XY(window.location.href,
W))}_.p("web_appshell_refresh_trigger")&&_.xW.caches&&this.refreshAppShellResponse();x=_.en(window.location.href);_.Jf(_.FY().resolve(_.Bw),_.T7(x,"theme"))}};
_.J.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.J.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.J.onPlayerFullscreen=function(W){_.iO();this.playerFullscreen=W};
_.J.setRestrictedMode=function(W){var P=_.SI();_.uB(0,58,W);P.save();_.FY().resolve(_.Je).reload()};
_.J.onPageChanged=function(W){W.detail.newPageType==="ytd-watch-flexy"||W.detail.newPageType==="ytd-watch-fixie"||W.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.M$("WEB_PAGE_TYPE_WATCH")):W.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.M$("WEB_PAGE_TYPE_SHORTS")):W.detail.newPageType==="ytd-browse"&&W.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.M$("WEB_PAGE_TYPE_MINI_APP")):_.p("web_frosted_glass")&&W.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.M$("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.M$("WEB_PAGE_TYPE_UNKNOWN"));W.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.J.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.J.onGuideToggleTap=function(){_.Lf(this.hostElement,"yt-guide-toggle")};
_.J.onGuideToggleHover=function(){_.Lf(this.hostElement,"yt-guide-hover")};
_.J.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setMastheadTheme=function(){var W=_.rT(this.hostElement).querySelector("#masthead");W&&(W.dark=W.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),W.isDarkThemeForced=!1)};
_.J.onRequestPanelModeChange=function(W,P){this.hideHeaderShadow=P.mode!=="seamed"};
_.J.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.J.onDrawerIronSelect=function(W){_.af(W).id==="guide"&&this.processDrawerIronSelect()};
_.J.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var W="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(W="opened"));_.Lf(this.hostElement,"yt-autonav-pause-guide-"+W)};
_.J.onAddElementToApp=function(W){_.g(this.hostElement).appendChild(W.detail)};
_.J.onThrottledScroll=function(){var W=_.FY().resolve(_.rL).getCurrentPage();W&&(this.scrollAtTop=W.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.J.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.J.setFullscreen=function(){if(_.p("external_fullscreen")||!this.isWatchPage){var W=_.p("kevlar_fullerscreen_root_only_killswitch")?!!_.iO():!!_.iO()&&_.iO()===document.documentElement;W=(this.isWatchPage||_.p("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(W||this.isFullWindowSession);this.fullscreen!==W&&((this.fullscreen=W)&&_.P7(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Xe().dispatch(_.cYL(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.W7(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.J.setFullscreenLoggingForShorts=function(W){var P,x,I;return _.y(function(O){if(O.nextAddress==1)return _.S(O,(P=_.RP())==null?void 0:P.getPlayerPromise(),2);x=O.yieldResult;(I=x)==null||I.setAppFullscreen(W);_.Kl(O)})};
_.J.updateMastheadCssHeight=function(){var W=this.mastheadHeight;this.fullscreen&&(W=0);_.qa(this.hostElement,{"--ytd-masthead-height":W+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.J.updateNetworkStatusBannerDisplayStatus=function(){var W="unset";this.fullscreen&&(W="none");_.qa(this.hostElement,{"--ytd-network-status-banner-display":W})};
_.J.updateNetworkStatusBannerCssHeight=function(){var W="unset";this.fullscreen&&(W="0px");_.qa(this.hostElement,{"--ytd-network-status-banner-max-height":W})};
_.J.updateScrollAndMasthead=function(W,P,x,I){this.iMaxTheaterMode||(I=!1);var O=_.FY().resolve(_.rL).getCurrentPage();W||P||I?(document.body.classList.add("no-scroll"),O.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.WM(this,this.onScroll)),O.setScrollTop(0),_.qa(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.EM()+"px"})):x?_.Lf(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Lf(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
O.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.WM(this,this.onScroll)));this.mastheadHidden=W||P||x;this.updateMastheadCssHeight();_.p("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.J.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.J.onYtNavigateAction=function(W){W=this.get("navigateAction.endpoint",W);_.Lf(this.hostElement,"yt-navigate",{endpoint:W})};
_.J.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var W=document.createElement("yt-create-family-dialog");_.g(this.hostElement).appendChild(W);this.hasCreateFamilyDialog=!0}};
_.J.onSetPushNotificationsEnabledCommand=function(W){var P=this,x=_.Q(W,fbv);x&&typeof x.enabled==="boolean"&&(Notification.permission!=="granted"?vMO().then(function(){Notification.permission==="granted"?(Wnv(!x.enabled).then(Iw3),x.successAction&&_.Iu(P.hostElement,[x.successAction])):x.failureAction&&_.Iu(P.hostElement,[x.failureAction])}):(Wnv(!x.enabled).then(Iw3),x.successAction&&_.Iu(this.hostElement,[x.successAction])))};
_.J.onYtSignalActionEnableChromeNotifications=function(){mlL(!0)};
_.J.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.Q(this.topbarData.hotkeyDialog,ruL)}}})};
_.J.onYtSignalActionShowKeyboardShortcutDialog=function(){_.W7(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.J.onYtEndpointChangeHandler=function(W,P){var x=_.yV(_.O3);x.pendingPrefetchJob_&&(P=!(!P||P.autonav!="1"),x.pendingPrefetchJob_.resolve(W&&_.uOW(W)?_.doR(W,P):""),x.pendingPrefetchJob_=null);_.W7(this.hostElement,"yt-pause-active-page-context");_.W7(this.hostElement,"ytd-log-youthere-nav");_.W7(this.hostElement,"yt-prepare-page-dispose")};
_.J.handleCommandWithCommandHandler=function(W,P){_.Ix.instance.resolveCommand(W,{form:{element:P}})};
_.J.onYtTimedCommand=function(W){var P=this;W=_.Q(W,$K4);var x=W.command;x&&_.GS(_.Gr,function(){var I=_.Q(x,_.yci);I?(_.Ix.instance.resolveCommand(x),P.maybeLogGetAnswerRequestTick(I)):_.OL(P.hostElement,[x],P.hostElement)},W.timeoutMs||0)};
_.J.maybeLogGetAnswerRequestTick=function(W){W&&W.isFirstRequest&&(_.QY("search_overview_answer"),_.CK("so_rq",void 0,"search_overview_answer"))};
_.J.onYtSignalActionSkipNavigation=function(){var W=_.FY().resolve(_.rL).getCurrentPage();_.fD(W)};
_.J.onYtSignalActionCopyDebugData=function(){MoQ()};
_.J.handleEntityUpdateCommand=function(W){_.KR(_.Q(W,_.yWd).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.J.logFlowLoggingEventCommand=function(W){if(W=_.Q(W,_.P0m))if(W.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var P=W.flowEventNamespace,x=W.flowEventType,I=W.flowType;I&&P&&x&&_.nXo(_.Oo(P,x,W.flowEventMetadata),I)}else{P=_.B5();x=W.flowEventNamespace;I=W.flowEventType;var O=W.flowType;O&&x&&I&&_.Jq(P,_.Oo(x,I,W.flowEventMetadata),O,W.flowNonce)}};
_.J.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.J.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.J.onTouchStart=function(){var W=_.n6();_.E_()&&_.hd(W.JSC$10958_screenManager,{visualElement:W.ve})};
_.J.handleSelectLanguageCommand=function(W){if(W=_.Q(W,kb2).hl){var P=_.SI();P.set("hl",W);P.save();_.FY().resolve(_.Je).reload()}};
_.J.handleConfirmDialogEndpoint=function(W){(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W)};
_.J.handleOpenPopupNavigationEndpoints=function(W,P){_.p("web_button_rework")&&(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W,P)};
_.J.handleSaveCommandToSessionStorage=function(W){if(W=_.Q(W,_.n5Z)){var P=W.key;P&&W.command&&window.sessionStorage.setItem(P,JSON.stringify(W.command))}};
_.J.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(W){W&&W.active&&W.active.postMessage({type:"refresh_shell"})}).catch(function(W){W.name!=="SecurityError"&&_.G$(W)})};
_.J.onDeviceThemeChanged=function(){var W=_.Eo();_.uB(_.SI(),185,W);_.SI().save()};
_.J.handleYtRegisterPromoCommand=function(W){if(_.Q(W,XT4)){var P=_.FY().resolve(_.rL).getCurrentPage()||this.hostElement;LXM().registerPromoCommand(_.Q(W,XT4),P)}};
_.J.onYtNavigateHomeAction=function(){if(!_.p("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W,P,x,I,O=(I=(W=this.topbarData)==null?void 0:(P=W.logo)==null?void 0:(x=P.topbarLogoRenderer)==null?void 0:x.endpoint)!=null?I:_.dx;this.ytComponentBehavior.resolveCommand(O)}};
_.J.onYtLocationCollectionCommand=function(W){JEd(_.Q(W,x3d))};
_.J.onYtGetLocationCommand=function(W){Nwf(_.Q(W,PG3),this)};
_.J.updateRenderGuideFromBinding=function(W){this.renderGuide=W.detail.value};
_.J.updateGuidePersistentAndVisibleFromBinding=function(W){this.guidePersistentAndVisible=W.detail.value};
_.J.updateMiniGuideVisibleFromBinding=function(W){this.miniGuideVisible=W.detail.value};
_.J.onThemeSelected=function(W,P){var x=_.SI(),I=W||P?W:_.Eo(),O=(I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.jOm(_.YO(window.location.href));_.uB(0,165,W);_.uB(0,174,P);x.save();O&&_.W7(this.hostElement,"yt-dark-mode-toggled-action",[I]);_.W7(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.getCurrentTheme=function(){return _.Dz()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.gT()};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.J.handleShowConsentPrimitive=function(W){var P=this,x,I;return _.y(function(O){if(O.nextAddress==1){try{x=(I=_.RP())==null?void 0:I.getPlayerPromise()}catch(B){}return _.S(O,Q74(W,x),2)}_.W7(P.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Kl(O)})};
_.J.handleSelectActiveIdentityEndpointInternal=function(W){_.Aq();W=_.Q(W,_.CGA);if(W!=null&&W.supportedTokens){W=_.n(W.supportedTokens);for(var P=W.next();!P.done;P=W.next())P=P.value,P.accountSigninToken&&_.G1(P.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.J.handleUpdatePermissionRoleCommand=function(W){if(W=_.Q(W,_.jIZ)){var P;this.hasDelegation=!((P=_.Q(W.renderer,_.pzl))==null||!P.status)}};
_.J.registerViewTransitionTasks=function(){var W=this,P=_.FY().resolve(_.Rl(_.v4));if(P){var x,I=(x=this.guide)==null?void 0:x.querySelector("#scrim"),O,B=(O=this.guide)==null?void 0:O.querySelector("#contentContainer");I&&B&&(x={beforeTransition:function(){var Y;(Y=W.guide)!=null&&Y.persistent||(I.style.viewTransitionName="app-drawer-scrim",B.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var Y;(Y=W.guide)!=null&&Y.persistent||(I.style.viewTransitionName="",B.style.viewTransitionName="")}},FE(P,"slide",x),FE(P,"zoom",x))}};
_.N1.Object.defineProperties(Xg.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.p("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.N1.Object.defineProperties(Xg,{template:{configurable:!0,enumerable:!0,get:function(){if(Wq3===void 0){var W=document.createElement("template");_.G(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
W.content.insertBefore(_.q().content.cloneNode(!0),W.content.firstChild);Wq3=W}W=Wq3;return W}}});
Xg.prototype.onOpenHotkeyDialog=Xg.prototype.onOpenHotkeyDialog;Xg.prototype.setFullscreen=Xg.prototype.setFullscreen;Xg.prototype.onAddElementToApp=Xg.prototype.onAddElementToApp;Xg.prototype.onDrawerIronSelect=Xg.prototype.onDrawerIronSelect;Xg.prototype.onGuideOpenButtonHover=Xg.prototype.onGuideOpenButtonHover;Xg.prototype.onRequestPanelModeChange=Xg.prototype.onRequestPanelModeChange;Xg.prototype.onPageDataUpdated=Xg.prototype.onPageDataUpdated;Xg.prototype.onPageChanged=Xg.prototype.onPageChanged;
Xg.prototype.onSetTheaterModeEnabled=Xg.prototype.onSetTheaterModeEnabled;Xg.prototype.updateMastheadData=Xg.prototype.updateMastheadData;Xg.prototype.onYtPageManagerAttached=Xg.prototype.onYtPageManagerAttached;Xg.prototype.observeGuideVisibility=Xg.prototype.observeGuideVisibility;Xg.prototype.guideIsVisibleButNotPersistentSelectorChanged=Xg.prototype.guideIsVisibleButNotPersistentSelectorChanged;Xg.prototype.isInlinePreviewEnabledChanged=Xg.prototype.isInlinePreviewEnabledChanged;
Xg.prototype.isWatchPageChanged=Xg.prototype.isWatchPageChanged;Xg.prototype.dispatchFrostedGlassMode=Xg.prototype.dispatchFrostedGlassMode;_.f([_.h(_.Gp),_.l("design:type",Object)],Xg.prototype,"ytdReduxBehavior",void 0);_.f([_.h(_.Kr.YtEventForwardingBehavior),_.l("design:type",Object)],Xg.prototype,"ytEventForwardingBehavior",void 0);_.f([_.h(_.xX.YtOpenPopupBehavior),_.l("design:type",Object)],Xg.prototype,"ytOpenPopupBehavior",void 0);
_.f([_.h(_.rb.YtActionHandlerBehavior),_.l("design:type",Object)],Xg.prototype,"ytActionHandlerBehavior",void 0);_.f([_.h({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.bs.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.p("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(W){this.actionRouter_.handleAction(W.detail)}}),
_.l("design:type",Object)],Xg.prototype,"ytActionRouterBehavior",void 0);_.f([_.h(nXG.YtdAppBehavior),_.l("design:type",Object)],Xg.prototype,"ytdAppBehavior",void 0);_.f([_.h(_.IM.YtEndpointBehavior),_.l("design:type",Object)],Xg.prototype,"ytEndpointBehavior",void 0);_.f([_.h(JG3.YtEndpointHandlerWithYpcBehavior),_.l("design:type",Object)],Xg.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.f([_.h(PU9.YtLogYpcFlowCommandsBehavior),_.l("design:type",Object)],Xg.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.f([_.h(_.L.YtRendererBehavior),_.l("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.f([_.h(_.gb.YtComponentBehavior),_.l("design:type",Object)],Xg.prototype,"ytComponentBehavior",void 0);_.f([_.c({selector:_.$i3}),_.l("design:type",Object)],Xg.prototype,"tabGesturesIsActive",void 0);_.f([_.c(),_.l("design:type",Boolean)],Xg.prototype,"renderGuide",void 0);
_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"guidePersistentAndVisible",void 0);_.f([_.c({selector:_.MuG}),_.l("design:type",Boolean)],Xg.prototype,"guideIsVisibleButNotPersistent",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"standalone",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"miniGuideVisible",void 0);
_.f([_.c({selector:_.zER}),_.l("design:type",Number)],Xg.prototype,"miniplayerPlaybackState",void 0);_.f([_.c({selector:_.Ab,reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"miniplayerIsActive",void 0);_.f([_.c({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.l("design:type",Boolean)],Xg.prototype,"isInlinePreviewEnabled",void 0);_.f([_.c(),_.l("design:type",Boolean)],Xg.prototype,"isInlinePreviewDisabled",void 0);
_.f([_.c({reflectToAttribute:!0,value:function(){return _.wo("START_IN_FULL_WINDOW_MODE")}}),
_.l("design:type",Boolean)],Xg.prototype,"mastheadHidden",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"playerFullscreen",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Xg.prototype,"deprecateFullerscreenUi",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"fullscreen",void 0);_.f([_.c({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"hideHeaderShadow",void 0);
_.f([_.c({value:{GUIDE_ALT_LABEL:_.KK("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.l("design:type",Object)],Xg.prototype,"menuStrings",void 0);_.f([_.c({computed:"computeTopbarData(data)"}),_.l("design:type",Object)],Xg.prototype,"topbarData",void 0);_.f([_.c({selector:_.zK}),_.l("design:type",Boolean)],Xg.prototype,"isWatchPage",void 0);_.f([_.c({selector:_.Q9R,reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"isShortsPage",void 0);
_.f([_.c({selector:function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.l("design:type",Boolean)],Xg.prototype,"isMiniAppPage",void 0);_.f([_.c({selector:function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.l("design:type",Boolean)],Xg.prototype,"isBrowsePage",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Boolean)],Xg.prototype,"scrolling",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Xg.prototype,"hasDelegation",void 0);_.f([_.c({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Xg.prototype,"guideScrolledByTouch",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Xg.prototype,"darkerDarkTheme",void 0);
_.f([_.c(),_.l("design:type",Object)],Xg.prototype,"isFrostedGlassInitialized",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Xg.prototype,"frostedGlassExp",void 0);_.f([_.c({selector:function(W){return W.ui.chipBarIsSticky}}),
_.l("design:type",Boolean)],Xg.prototype,"chipBarIsSticky",void 0);_.f([_.c({computed:"computeIsHomePage(isBrowsePage, data)"}),_.l("design:type",Boolean)],Xg.prototype,"isHomePage",void 0);_.f([_.c({reflectToAttribute:!0}),_.l("design:type",Object)],Xg.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.f([_.c(),_.l("design:type",Object)],Xg.prototype,"ephemeralActionsEnabled",void 0);_.f([_.R2("guide"),_.l("design:type",Object)],Xg.prototype,"guide",void 0);
_.f([_.R2("guide-service"),_.l("design:type",rJd)],Xg.prototype,"guideService",void 0);_.f([_.R2("guide-inner-content"),_.l("design:type",HTMLDivElement)],Xg.prototype,"guideInnerContent",void 0);_.f([_.c({selector:_.EZG}),_.l("design:type",String)],Xg.prototype,"frostedGlassMode",void 0);
_.f([_.OZ("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"dispatchFrostedGlassMode",null);_.f([_.c({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.l("design:type",Object)],Xg.prototype,"isFrostedGlassDisabled",void 0);
_.f([_.OZ("isWatchPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"isWatchPageChanged",null);_.f([_.H("isHomePage","chipBarIsSticky"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xg.prototype,"applyFrostedGlassToChipBar",null);_.f([_.c(),_.l("design:type",Object)],Xg.prototype,"isChannelOrPlaylistPage",void 0);
_.f([_.K_("isInlinePreviewEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"isInlinePreviewEnabledChanged",null);_.f([_.OZ("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.f([_.OZ("guidePersistentAndVisible","miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"observeGuideVisibility",null);_.f([_.I7("attached"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Xg.prototype,"onYtPageManagerAttached",null);_.f([_.OZ("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],Xg.prototype,"updateMastheadData",null);
_.f([_.I7("yt-set-theater-mode-enabled"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Xg.prototype,"onSetTheaterModeEnabled",null);_.f([_.I7("yt-page-type-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Xg.prototype,"onPageChanged",null);_.f([_.I7("yt-page-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"onPageDataUpdated",null);
_.f([_.I7("yt-request-panel-mode-change"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],Xg.prototype,"onRequestPanelModeChange",null);_.f([_.I7("yt-guide-hover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"onGuideOpenButtonHover",null);_.f([_.I7("app-drawer-transitioned"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Xg.prototype,"onDrawerIronSelect",null);
_.f([_.I7("yt-add-element-to-app"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Xg.prototype,"onAddElementToApp",null);_.f([_.I7("yt-set-fullerscreen-styles"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"setFullscreen",null);_.f([_.I7("yt-open-hotkey-dialog"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xg.prototype,"onOpenHotkeyDialog",null);
Xg=_.f([_.U({is:"ytd-app"})],Xg);_.HK().processSignal("eor");
_.Az();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
